summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>2012-07-21 16:50:36 +0000
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2012-07-21 16:50:36 +0000
commit60c304616370e73f5771017528e787879b9dcac8 (patch)
tree89ef5fd33247328ca536e4a9d415ced73f9cd87a
parentab0dd18eda3b24745b67778c7f7e58eca0cc1c42 (diff)
downloadeina-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.ac8
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"