diff options
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 74 |
1 files changed, 73 insertions, 1 deletions
diff --git a/bfd/configure b/bfd/configure index bc49dc4..a401e66 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13689,7 +13689,7 @@ _ACEOF fi done -for ac_func in strtoull getrlimit +for ac_func in strtoull getrlimit posix_fallocate fallocate do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -16027,6 +16027,78 @@ $as_echo "#define USE_MMAP 1" >>confdefs.h ;; esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 +$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } +if test "${bfd_cv_mremap_maymove+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#include <sys/mman.h> +void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + bfd_cv_mremap_maymove=yes +else + bfd_cv_mremap_maymove=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_mremap_maymove" >&5 +$as_echo "$bfd_cv_mremap_maymove" >&6; } +if test "$bfd_cv_mremap_maymove" = "yes"; then + +$as_echo "#define HAVE_MREMAP 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking msync with MS_SYNC" >&5 +$as_echo_n "checking msync with MS_SYNC... " >&6; } +if test "${bfd_cv_msync_ms_sync+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +#include <sys/mman.h> +void f() { msync (0, 0, MS_SYNC); } + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + bfd_cv_msync_ms_sync=yes +else + bfd_cv_msync_ms_sync=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_msync_ms_sync" >&5 +$as_echo "$bfd_cv_msync_ms_sync" >&6; } +if test "$bfd_cv_msync_ms_sync" = "yes"; then + +$as_echo "#define HAVE_MSYNC 1" >>confdefs.h + +fi + rm -f doc/config.status ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" |