diff options
author | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-03 20:33:23 +0000 |
---|---|---|
committer | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-03 20:33:23 +0000 |
commit | b0b8d1803b005ed131387ea9a9880757cd2b4b77 (patch) | |
tree | 5d0b79312956dbb5c464f4a1d69e27b0ec2f6ebe /gcc/aclocal.m4 | |
parent | 561866edc1ae53c842df6c6338336e7d4cc4fe1b (diff) | |
download | gcc-b0b8d1803b005ed131387ea9a9880757cd2b4b77.tar.gz |
2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
* aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
and mmap() explicitly instead of relying on preset autoconf cache
variables.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r-- | gcc/aclocal.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index c5c71caa31a..6f1679e009a 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -269,8 +269,12 @@ AC_SUBST($1)dnl # mmap(2) blacklisting. Some platforms provide the mmap library routine # but don't support all of the features we need from it. AC_DEFUN([gcc_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], + [gcc_header_sys_mman_h=yes], [gcc_header_sys_mman_h=no]) +AC_CHECK_FUNC([mmap], [gcc_func_mmap=yes], [gcc_func_mmap=no]) +if test "$gcc_header_sys_mman_h" != yes \ + || test "$gcc_func_mmap" != yes; then gcc_cv_func_mmap_file=no gcc_cv_func_mmap_dev_zero=no gcc_cv_func_mmap_anon=no |