diff options
author | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-11-04 19:12:42 +0000 |
---|---|---|
committer | chappedm@gmail.com <chappedm@gmail.com@6b5cf1ce-ec42-a296-1ba9-69fdba395a50> | 2012-11-04 19:12:42 +0000 |
commit | 86a55316baf2a7c0718670fd7342b648e0ef4a87 (patch) | |
tree | b278856ca72520b5290d4483f3f56d19877ec410 | |
parent | 6f6c2bf68576e43491884364fc05c9ed752adb4f (diff) | |
download | gperftools-86a55316baf2a7c0718670fd7342b648e0ef4a87.tar.gz |
issue-449: Disables mmap check when cross compiling since it is meaningless anyways
git-svn-id: http://gperftools.googlecode.com/svn/trunk@179 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
-rwxr-xr-x | configure | 9 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 15 insertions, 2 deletions
@@ -15482,7 +15482,13 @@ case "$host" in $as_echo "#define HAVE_MMAP 1" >>confdefs.h ;; - *) + *) if test "$cross_compiling" = yes; then + ac_cv_func_mmap_fixed_mapped=yes + +$as_echo "#define HAVE_MMAP 1" >>confdefs.h + + else + for ac_header in $ac_header_list @@ -15683,6 +15689,7 @@ $as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt + fi ;; esac diff --git a/configure.ac b/configure.ac index 9f73616..f4ca2de 100644 --- a/configure.ac +++ b/configure.ac @@ -188,7 +188,13 @@ case "$host" in AC_DEFINE(HAVE_MMAP, 1, [Define to 1 if you have a working `mmap' system call.]) ;; - *) AC_FUNC_MMAP + *) if test "$cross_compiling" = yes; then + ac_cv_func_mmap_fixed_mapped=yes + AC_DEFINE(HAVE_MMAP, 1, + [Define to 1 if you have a working `mmap' system call.]) + else + AC_FUNC_MMAP + fi ;; esac |