Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: mmap test



On Aug 14,  3:46pm, Andrej Borsenkow wrote:
} Subject: mmap test
}
} I noted, that configure for libiberty has a bit better test for mmap() that
} also tests for usability of it. Can we simply include it?

No, it's probably GPL'd.

We should just use the autoconf AC_FUNC_MMAP test.

Index: configure.in
===================================================================
@@ -859,7 +859,6 @@
 	       initgroups nis_list \
 	       setuid seteuid setreuid setresuid setsid \
 	       memcpy memmove strstr strerror \
-	       mmap munmap msync \
 	       cap_get_proc \
 	       getrlimit \
 	       setlocale \
@@ -869,6 +868,11 @@
 	       brk sbrk \
 	       pathconf sysconf)
 AC_FUNC_STRCOLL
+
+AC_FUNC_MMAP
+if test $ac_cv_func_mmap = yes; then
+  AC_CHECK_FUNCS(munmap msync)
+fi
 
 if test $ac_cv_func_setpgrp = yes; then
   AC_FUNC_GETPGRP

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author