* mmap test
@ 2000-08-14 11:46 Andrej Borsenkow
2000-08-14 15:31 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 2000-08-14 11:46 UTC (permalink / raw)
To: ZSH workers mailing list
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? Do we need to ask
permissions from ehh FSF? RMS?
-andrej
Have a nice DOS!
B >>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mmap test
2000-08-14 11:46 mmap test Andrej Borsenkow
@ 2000-08-14 15:31 ` Bart Schaefer
2000-08-14 15:36 ` Andrej Borsenkow
2000-08-14 16:38 ` PATCH: " Andrej Borsenkow
0 siblings, 2 replies; 4+ messages in thread
From: Bart Schaefer @ 2000-08-14 15:31 UTC (permalink / raw)
To: Andrej Borsenkow, ZSH workers mailing list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: mmap test
2000-08-14 15:31 ` Bart Schaefer
@ 2000-08-14 15:36 ` Andrej Borsenkow
2000-08-14 16:38 ` PATCH: " Andrej Borsenkow
1 sibling, 0 replies; 4+ messages in thread
From: Andrej Borsenkow @ 2000-08-14 15:36 UTC (permalink / raw)
To: ZSH workers mailing list
>
> We should just use the autoconf AC_FUNC_MMAP test.
>
:(( Really ashamed ...
^ permalink raw reply [flat|nested] 4+ messages in thread
* PATCH: RE: mmap test
2000-08-14 15:31 ` Bart Schaefer
2000-08-14 15:36 ` Andrej Borsenkow
@ 2000-08-14 16:38 ` Andrej Borsenkow
1 sibling, 0 replies; 4+ messages in thread
From: Andrej Borsenkow @ 2000-08-14 16:38 UTC (permalink / raw)
To: ZSH workers mailing list
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-08-14 16:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-14 11:46 mmap test Andrej Borsenkow
2000-08-14 15:31 ` Bart Schaefer
2000-08-14 15:36 ` Andrej Borsenkow
2000-08-14 16:38 ` PATCH: " Andrej Borsenkow
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).