diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2004-08-03 20:36:23 +0000 |
---|---|---|
committer | Nathanael Nerode <neroden@gcc.gnu.org> | 2004-08-03 20:36:23 +0000 |
commit | 4d4473645282ded9c162611b8a658ad34671c824 (patch) | |
tree | 33d61d719d255a8c77f377dd7936927e2fbf7284 /libffi/acinclude.m4 | |
parent | b522f768aba8391c18c16353cf42cc576ec88c06 (diff) | |
download | gcc-4d4473645282ded9c162611b8a658ad34671c824.zip gcc-4d4473645282ded9c162611b8a658ad34671c824.tar.gz gcc-4d4473645282ded9c162611b8a658ad34671c824.tar.bz2 |
acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h> and mmap() explicitly instead of relying on preset...
2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
* acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
and mmap() explicitly instead of relying on preset autoconf cache
variables.
* aclocal.m4: Regenerate.
* configure: Regenerate.
From-SVN: r85500
Diffstat (limited to 'libffi/acinclude.m4')
-rw-r--r-- | libffi/acinclude.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libffi/acinclude.m4 b/libffi/acinclude.m4 index 9089609..61187cf 100644 --- a/libffi/acinclude.m4 +++ b/libffi/acinclude.m4 @@ -11,8 +11,12 @@ AC_SUBST(LIBTOOL) # mmap(2) blacklisting. Some platforms provide the mmap library routine # but don't support all of the features we need from it. AC_DEFUN([AC_FUNC_MMAP_BLACKLIST], -[if test $ac_cv_header_sys_mman_h != yes \ - || test $ac_cv_func_mmap != yes; then +[ +AC_CHECK_HEADER([sys/mman.h], + [libffi_header_sys_mman_h=yes], [libffi_header_sys_mman_h=no]) +AC_CHECK_FUNC([mmap], [libffi_func_mmap=yes], [libffi_func_mmap=no]) +if test "$libffi_header_sys_mman_h" != yes \ + || test "$libffi_func_mmap" != yes; then ac_cv_func_mmap_file=no ac_cv_func_mmap_dev_zero=no ac_cv_func_mmap_anon=no |