diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-27 06:15:02 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-27 06:15:02 +0000 |
commit | 7931a7867b602fa159f1939daf37756d9c3b1532 (patch) | |
tree | 900d2f0441517541e948c7ab43b462653bca98e6 /autoconf/configure.ac | |
parent | 5d01fa5bbe82504e2977d9152c619303e65c839c (diff) | |
download | external_llvm-7931a7867b602fa159f1939daf37756d9c3b1532.zip external_llvm-7931a7867b602fa159f1939daf37756d9c3b1532.tar.gz external_llvm-7931a7867b602fa159f1939daf37756d9c3b1532.tar.bz2 |
For PR351:
* Add checks for sterror and strerror_r functions
* Add check to determine if /dev/zero is needed for allocating RWX memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index a1c6d5f..9d9762d 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -443,7 +443,8 @@ dnl===-----------------------------------------------------------------------=== AC_CHECK_FUNCS([backtrace getcwd getpagesize getrusage gettimeofday isatty ]) AC_CHECK_FUNCS([mkdtemp mkstemp mktemp ]) -AC_CHECK_FUNCS([realpath setrlimit strdup strtoq strtoll sysconf ]) +AC_CHECK_FUNCS([realpath setrlimit strdup strerror strerror_r strtoll strtoq ]) +AC_CHECK_FUNCS([sysconf]) AC_C_PRINTF_A AC_FUNC_ALLOCA AC_FUNC_RAND48 @@ -459,9 +460,11 @@ AC_FUNC_ISNAN AC_FUNC_ISINF dnl Check for mmap and mprotect support. We need both to do the JIT and for -dnl bytecode loading, etc. +dnl bytecode loading, etc. We also need to know if /dev/zero is required to +dnl be opened for allocating RWX memory. AC_FUNC_MMAP AC_FUNC_MMAP_FILE +AC_NEED_DEV_ZERO_FOR_MMAP AC_CHECK_FUNC(mprotect,, AC_MSG_ERROR([Function mprotect() required but not found])) |