# get rid of that stupid cache mechanism rm -f config.cache AC_INIT(embryo, 0.9.9.050, enlightenment-devel@lists.sourceforge.net) AC_PREREQ(2.52) AC_CONFIG_SRCDIR(configure.ac) AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_ISC_POSIX AM_INIT_AUTOMAKE(1.6 dist-bzip2) AM_CONFIG_HEADER(config.h) AC_C_BIGENDIAN AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_C_CONST AM_PROG_CC_C_O AC_LIBTOOL_WIN32_DLL define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl AC_PROG_LIBTOOL VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'` VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'` VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'` SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'` version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN" AC_SUBST(version_info) WIN32_CFLAGS="" lt_no_undefined="" lt_enable_auto_import="" case "$host_os" in mingw*|cegcc) PKG_CHECK_MODULES([EVIL], evil) AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed]) dnl needed for correct definition of EAPI AC_DEFINE(EFL_EMBRYO_BUILD, 1, [Define to mention that embryo is built]) AC_DEFINE(HAVE_GETTIMEOFDAY, 1, [Defined to 1 (MinGW / CeGCC platform)]) if test "x$host_os" = "xcegcc" ; then WIN32_CFLAGS="-mwin32" lt_enable_auto_import="-Wl,--enable-auto-import" fi lt_no_undefined="-no-undefined" ;; *) AC_CHECK_FUNCS(gettimeofday) esac AC_SUBST(WIN32_CFLAGS) AC_SUBST(lt_no_undefined) AC_SUBST(lt_enable_auto_import) dnl Checking for __attribute__ support AC_MSG_CHECKING([for __attribute__]) AC_CACHE_VAL(_cv_have___attribute__, [ AC_TRY_COMPILE([#include ], [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], [_cv_have___attribute__="yes"], [_cv_have___attribute__="no"]) ] ) if test "x${_cv_have___attribute__}" = "xyes" ; then AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__]) fi AC_MSG_RESULT(${_cv_have___attribute__}) AC_FUNC_ALLOCA AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file])) fnmatch_libs="" AC_CHECK_FUNCS(fnmatch, res=yes, res=no) if test "x$res" = "xno"; then AC_CHECK_LIB(fnmatch, fnmatch, res=yes fnmatch_libs="-lfnmatch", res=no) dnl Test for compilation with MinGW. dnl fnmatch function is in the libiberty library if test "x$res" = "xno"; then AC_CHECK_LIB(iberty, fnmatch, res=yes fnmatch_libs="-liberty", res=no) fi if test "x$res" = "xno"; then AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty]) fi fi AC_SUBST(fnmatch_libs) embryoincludedir='${datadir}/include' AC_SUBST(embryoincludedir) AC_OUTPUT([ Makefile embryo.pc include/Makefile src/Makefile src/lib/Makefile src/bin/Makefile README embryo.spec ]) ##################################################################### ## Info echo echo echo echo "------------------------------------------------------------------------" echo "$PACKAGE $VERSION" echo "------------------------------------------------------------------------" echo echo "Configuration Options Summary:" echo echo " Compilation..........: make" echo echo " Installation.........: make install" echo echo " prefix.............: $prefix" echo