2 AC_INIT(evil, 0.0.1, enlightenment-devel@lists.sourceforge.net)
4 AC_CONFIG_SRCDIR([configure.ac])
5 AC_CONFIG_HEADERS([config.h])
8 dnl If the host is not windows, we exit,
9 dnl otherwise, we set the correct flags
10 dnl for each platform.
13 lt_enable_auto_import=""
16 win32_libs="-lole32 -luuid -lws2_32"
19 win32_cflags="-mwin32"
21 lt_enable_auto_import="-Wl,--enable-auto-import"
27 AC_MSG_ERROR([OS must be Windows. Exiting...])
30 AC_SUBST(win32_cflags)
32 AC_SUBST(lt_enable_auto_import)
34 dnl needed for correct definition of EAPI
35 AC_DEFINE(EFL_EVIL_BUILD, 1, [Define to mention that evil is built])
36 AC_DEFINE(EFL_EVIL_MMAN_BUILD, 1, [Define to mention that evil mman is built])
37 AC_DEFINE(EFL_EVIL_DLFCN_BUILD, 1, [Define to mention that evil dlfcn is built])
38 AC_DEFINE(EFL_EVIL_PWD_BUILD, 1, [Define to mention that evil pwd is built])
40 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
43 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
44 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
47 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
48 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
49 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
50 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
51 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
52 AC_SUBST(version_info)
59 AC_MSG_CHECKING([for __attribute__])
60 AC_CACHE_VAL(_cv_have___attribute__,
62 AC_TRY_COMPILE([#include <stdlib.h>],
63 [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
64 [_cv_have___attribute__="yes"],
65 [_cv_have___attribute__="no"])
69 if test "x${_cv_have___attribute__}" = "xyes" ; then
70 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__])
72 AC_MSG_RESULT(${_cv_have___attribute__})
81 src/lib/dlfcn/Makefile
89 #####################################################################
95 echo "------------------------------------------------------------------------"
96 echo "$PACKAGE_NAME $PACKAGE_VERSION $PACKAGE_TARNAME"
97 echo "------------------------------------------------------------------------"
99 echo "Configuration Options Summary:"
101 echo " OS...................: ${host_os}"
103 echo " Compilation..........: make"
105 echo " Installation.........: make install"
107 echo " prefix.............: $prefix"