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

PATCH: RE: mmap test



> 
> We should just use the autoconf AC_FUNC_MMAP test.
> 
> +if test $ac_cv_func_mmap = yes; then

It used wrong cache variable.

I also removed CYGWIN cludge from system.h now when test for mmap works.

(Line numbers in configure.in may be a bit off)

-andrej

Index: Src/system.h
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/system.h,v
retrieving revision 1.6
diff -u -r1.6 system.h
--- Src/system.h        2000/08/14 07:30:28     1.6
+++ Src/system.h        2000/08/14 16:35:33
@@ -647,7 +647,3 @@
 #if defined(CONFIG_LOCALE) && defined(HAVE_SETLOCALE) && defined(LC_ALL)
 # define USE_LOCALE 1
 #endif /* CONFIG_LOCALE && HAVE_SETLOCALE && LC_ALL */
-
-#ifdef __CYGWIN__
-# undef HAVE_MMAP
-#endif
Index: configure.in
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.in,v
retrieving revision 1.23
diff -u -r1.23 configure.in
--- configure.in        2000/08/14 15:46:53     1.23
+++ configure.in        2000/08/14 16:35:35
@@ -870,7 +870,7 @@
 AC_FUNC_STRCOLL
 
 AC_FUNC_MMAP
-if test $ac_cv_func_mmap = yes; then
+if test x$ac_cv_func_mmap_fixed_mapped = xyes; then
   AC_CHECK_FUNCS(munmap msync)
 fi
 



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