summaryrefslogtreecommitdiff
path: root/legacy/evil/configure.ac
diff options
context:
space:
mode:
authordoursse <doursse>2008-04-22 22:53:54 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2008-04-22 22:53:54 +0000
commit21f0fdb18ffc313aa1c353e74c49f53dce8cb509 (patch)
tree481727d53c42971dd019b4ba94320f90b2efcaa2 /legacy/evil/configure.ac
parent3a2fc5eb58eab040522e40169e37657a0ac170c4 (diff)
* configure.ac:
* src/bin/Makefile.am: * src/lib/Makefile.am: * src/lib/dlfcn/Makefile.am: * src/lib/mman/Makefile.am: use -Wl,--enable-auto-import with cegcc fix warning with newest autoconf * src/lib/dlfcn/dlfcn.c: (string_to_wchar): include wchar.h and fix warnings * src/lib/mman/mman.c: use relative path to include sys/mman.h SVN revision: 34348
Diffstat (limited to 'legacy/evil/configure.ac')
-rw-r--r--legacy/evil/configure.ac13
1 files changed, 8 insertions, 5 deletions
diff --git a/legacy/evil/configure.ac b/legacy/evil/configure.ac
index 27393195ca..dcaf907b82 100644
--- a/legacy/evil/configure.ac
+++ b/legacy/evil/configure.ac
@@ -10,6 +10,7 @@ dnl otherwise, we set the correct flags
10dnl for each platform. 10dnl for each platform.
11win32_libs="" 11win32_libs=""
12win32_cflags="" 12win32_cflags=""
13lt_enable_auto_import=""
13case "$host_os" in 14case "$host_os" in
14 mingw|mingw32) 15 mingw|mingw32)
15 win32_libs="-lole32 -luuid -lws2_32" 16 win32_libs="-lole32 -luuid -lws2_32"
@@ -17,6 +18,7 @@ case "$host_os" in
17 cegcc) 18 cegcc)
18 win32_cflags="-mwin32" 19 win32_cflags="-mwin32"
19 win32_libs="-lws2" 20 win32_libs="-lws2"
21 lt_enable_auto_import="-Wl,--enable-auto-import"
20 ;; 22 ;;
21 mingw32ce) 23 mingw32ce)
22 win32_libs="-lws2" 24 win32_libs="-lws2"
@@ -27,6 +29,7 @@ case "$host_os" in
27esac 29esac
28AC_SUBST(win32_cflags) 30AC_SUBST(win32_cflags)
29AC_SUBST(win32_libs) 31AC_SUBST(win32_libs)
32AC_SUBST(lt_enable_auto_import)
30 33
31dnl needed for correct definition of EAPI 34dnl needed for correct definition of EAPI
32AC_DEFINE(EFL_EVIL_BUILD, 1, [Define to mention that evil is built]) 35AC_DEFINE(EFL_EVIL_BUILD, 1, [Define to mention that evil is built])
@@ -51,19 +54,19 @@ AC_PROG_CC
51AC_C_CONST 54AC_C_CONST
52 55
53AC_MSG_CHECKING([for __attribute__]) 56AC_MSG_CHECKING([for __attribute__])
54AC_CACHE_VAL(have___attribute__, 57AC_CACHE_VAL(_cv_have___attribute__,
55 [ 58 [
56 AC_TRY_COMPILE([#include <stdlib.h>], 59 AC_TRY_COMPILE([#include <stdlib.h>],
57 [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], 60 [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
58 [have___attribute__="yes"], 61 [_cv_have___attribute__="yes"],
59 [have___attribute__="no"]) 62 [_cv_have___attribute__="no"])
60 ] 63 ]
61) 64)
62 65
63if test "x${have___attribute__}" = "xyes" ; then 66if test "x${_cv_have___attribute__}" = "xyes" ; then
64 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__]) 67 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__])
65fi 68fi
66AC_MSG_RESULT(${have___attribute__}) 69AC_MSG_RESULT(${_cv_have___attribute__})
67 70
68 71
69AC_CONFIG_FILES([ 72AC_CONFIG_FILES([