diff options
Diffstat (limited to 'libjava/configure.ac')
| -rw-r--r-- | libjava/configure.ac | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/libjava/configure.ac b/libjava/configure.ac index 5732fb21c71..69f43174b1c 100644 --- a/libjava/configure.ac +++ b/libjava/configure.ac @@ -895,7 +895,7 @@ else access stat mkdir rename rmdir unlink realpath utime chmod \ nl_langinfo setlocale \ inet_pton uname inet_ntoa \ - fork execvp pipe sigaction ftruncate]) + fork execvp pipe sigaction ftruncate mmap]) AC_CHECK_FUNCS(inet_aton inet_addr, break) AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h) # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl @@ -1352,31 +1352,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm tim; tim.t AC_FUNC_ALLOCA -dnl Check for mmap() -# AC_FUNC_MMAP goes to far and checks for mmap fixed, we do only need mmap -# at a mmap selected address. See -# gnu/java/nio/channels/natFileChannelPosix.cc - -AC_MSG_CHECKING([for mmap]) -AC_CACHE_VAL(ac_cv_func_mmap_ok, - [AC_TRY_LINK( - changequote(<<, >>)dnl - << -#include <unistd.h> -#include <sys/mman.h> -#include <sys/stat.h> -#include <fcntl.h> - >>, - changequote([, ])dnl - [mmap((void *)0, 0, PROT_READ, 0, 0, 0);], - ac_cv_func_mmap_ok=yes, - ac_cv_func_mmap_ok=no)] ) -AC_MSG_RESULT($ac_cv_func_mmap_ok) -if test $ac_cv_func_mmap_ok = yes -then - AC_DEFINE(HAVE_MMAP, 1, [ Define to 1 if you have a working `mmap' system call w/o fixed address ability.]) -fi - AC_CHECK_PROGS(PERL, perl, false) SYSDEP_SOURCES= |

