mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-10 21:47:18 +08:00
aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not allow mmap from /dev/zero.
* aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not allow mmap from /dev/zero. Don't make decisions for the host based on presence or absence of /dev/zero on the build machine. (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON. (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file. * configure: Regenerate. From-SVN: r59394
This commit is contained in:
parent
05abed76a9
commit
199cbacc90
@ -1,3 +1,12 @@
|
||||
2002-11-22 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
|
||||
allow mmap from /dev/zero. Don't make decisions for the host
|
||||
based on presence or absence of /dev/zero on the build machine.
|
||||
(ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
|
||||
(AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
|
||||
* configure: Regenerate.
|
||||
|
||||
2002-11-22 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* gcc.c (make_relative_prefix, split_directories)
|
||||
|
21
gcc/aclocal.m4
vendored
21
gcc/aclocal.m4
vendored
@ -660,14 +660,13 @@ AC_CACHE_CHECK(for working mmap from /dev/zero,
|
||||
then ac_cv_func_mmap_dev_zero=no
|
||||
else ac_cv_func_mmap_dev_zero=buggy
|
||||
fi],
|
||||
# If this is not cygwin, and /dev/zero is a character device, it's probably
|
||||
# safe to assume it works.
|
||||
# When cross-building, assume that this works, unless we know it
|
||||
# doesn't. Of course, we have no way of knowing if there even is a /dev/zero
|
||||
# on the host, let alone whether mmap will work on it.
|
||||
[case "$host_os" in
|
||||
cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
|
||||
* ) if test -c /dev/zero
|
||||
then ac_cv_func_mmap_dev_zero=yes
|
||||
else ac_cv_func_mmap_dev_zero=no
|
||||
fi ;;
|
||||
darwin* ) ac_cv_func_mmap_dev_zero=no ;;
|
||||
* ) ac_cv_func_mmap_dev_zero=yes ;;
|
||||
esac])
|
||||
])
|
||||
if test $ac_cv_func_mmap_dev_zero = yes; then
|
||||
@ -687,7 +686,10 @@ AC_CACHE_CHECK([for working mmap with MAP_ANON(YMOUS)],
|
||||
fi],
|
||||
# Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
|
||||
# just because it's there. Some SCO Un*xen define it but don't implement it.
|
||||
ac_cv_func_mmap_anon=no)
|
||||
[case "$host_os" in
|
||||
darwin* ) ac_cv_func_mmap_anon=yes ;;
|
||||
* ) ac_cv_func_mmap_anon=no ;;
|
||||
esac])
|
||||
])
|
||||
if test $ac_cv_func_mmap_anon = yes; then
|
||||
AC_DEFINE(HAVE_MMAP_ANON, 1,
|
||||
@ -740,7 +742,10 @@ int main()
|
||||
|
||||
exit(0);
|
||||
}], ac_cv_func_mmap_file=yes, ac_cv_func_mmap_file=no,
|
||||
ac_cv_func_mmap_file=no)])
|
||||
[case "$host_os" in
|
||||
darwin* ) ac_cv_func_mmap_file=yes ;;
|
||||
* ) ac_cv_func_mmap_file=no ;;
|
||||
esac])])
|
||||
if test $ac_cv_func_mmap_file = yes; then
|
||||
AC_DEFINE(HAVE_MMAP_FILE, 1,
|
||||
[Define if read-only mmap of a plain file works.])
|
||||
|
301
gcc/configure
vendored
301
gcc/configure
vendored
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user