diff options
author | Youness Alaoui <kakaroto@kakaroto.homelinux.net> | 2012-07-21 16:50:36 +0000 |
---|---|---|
committer | Youness Alaoui <kakaroto@kakaroto.homelinux.net> | 2012-07-21 16:50:36 +0000 |
commit | 60c304616370e73f5771017528e787879b9dcac8 (patch) | |
tree | 89ef5fd33247328ca536e4a9d415ced73f9cd87a | |
parent | ab0dd18eda3b24745b67778c7f7e58eca0cc1c42 (diff) | |
download | eina-60c304616370e73f5771017528e787879b9dcac8.tar.gz |
Eina: Set CFLAGS in the configure to allow AC_CHECK_HEADERS to find sys/mman.h installed in exotic/escape
SVN revision: 74274
-rw-r--r-- | configure.ac | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bc02f23..1a6c75d 100644 --- a/configure.ac +++ b/configure.ac @@ -402,7 +402,13 @@ AC_HEADER_ASSERT AC_HEADER_TIME AC_HEADER_DIRENT -AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h sys/mman.h execinfo.h mcheck.h]) +AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h execinfo.h mcheck.h]) + +# sys/mman.h could be provided by evil/escape/exotic so we need to set CFLAGS accordingly +CFLAGS_save="${CFLAGS}" +CFLAGS="${CFLAGS} ${EINA_CFLAGS}" +AC_CHECK_HEADERS([sys/mman.h]) +CFLAGS="${CFLAGS_save}" if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" |