Test mmap et ajout bigarray
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2864 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
38f64c3ce6
commit
e448d52aa7
|
@ -196,3 +196,8 @@
|
|||
|
||||
/* Define HAS_LOCALE if you have the include file <locale.h> and the
|
||||
setlocale() function. */
|
||||
|
||||
#define HAS_MMAP
|
||||
|
||||
/* Define HAS_MMAP if you have the include file <sys/mman.h> and the
|
||||
functions mmap() and munmap(). */
|
||||
|
|
|
@ -483,7 +483,7 @@ done
|
|||
|
||||
# Configuration for the libraries
|
||||
|
||||
otherlibraries="unix str num dynlink"
|
||||
otherlibraries="unix str num dynlink bigarray"
|
||||
|
||||
# For the Unix library
|
||||
|
||||
|
@ -671,6 +671,11 @@ if sh ./hasgot -ldl dlopen; then
|
|||
dllib=-ldl
|
||||
fi
|
||||
|
||||
if sh ./hasgot -i sys/mman.h && sh ./hasgot mmap munmap; then
|
||||
echo "mmap() found."
|
||||
echo "#define HAS_MMAP" >> s.h
|
||||
fi
|
||||
|
||||
# Determine if the debugger is supported
|
||||
|
||||
if test "$has_sockets" = "yes"; then
|
||||
|
|
Loading…
Reference in New Issue