Only give warnings if the user doesn't have mmap(). This is pretty much

a hack that allows users to fight through a build if they don't have mmap().
When I get into the office, I'll make something better.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13801 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John Criswell 2004-05-27 00:57:50 +00:00
parent 75dbe8eafa
commit f3ecf3a40c
2 changed files with 6 additions and 8 deletions

View File

@ -273,12 +273,12 @@ AC_FUNC_ALLOCA
AC_FUNC_MMAP
if test "$ac_cv_func_mmap_fixed_mapped" = "no"
then
AC_MSG_ERROR([mmap() required but not found])
AC_MSG_WARN([mmap() required but not found])
fi
AC_FUNC_MMAP_FILE
if test "$ac_cv_func_mmap_file" = "no"
then
AC_MSG_ERROR([mmap() of files required but not found])
AC_MSG_WARN([mmap() of files required but not found])
fi
AC_HEADER_MMAP_ANONYMOUS
AC_TYPE_SIGNAL

10
configure vendored
View File

@ -21368,9 +21368,8 @@ rm -f conftest.mmap
if test "$ac_cv_func_mmap_fixed_mapped" = "no"
then
{ { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
echo "$as_me: error: mmap() required but not found" >&2;}
{ (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
echo "$as_me: WARNING: mmap() required but not found" >&2;}
fi
echo "$as_me:$LINENO: checking for mmap of files" >&5
echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
@ -21460,9 +21459,8 @@ fi
if test "$ac_cv_func_mmap_file" = "no"
then
{ { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
echo "$as_me: error: mmap() of files required but not found" >&2;}
{ (exit 1); exit 1; }; }
{ echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
fi
echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6