[MPlayer-cvslog] CVS: main configure,1.954,1.955
Alex Beregszaszi
syncmail at mplayerhq.hu
Fri Jan 21 22:32:18 CET 2005
CVS change done by Alex Beregszaszi
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv17609
Modified Files:
configure
Log Message:
better test for MAP_FAILED by Ian Lindsay
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.954
retrieving revision 1.955
diff -u -r1.954 -r1.955
--- configure 20 Jan 2005 13:22:52 -0000 1.954
+++ configure 21 Jan 2005 21:32:15 -0000 1.955
@@ -2618,6 +2618,19 @@
fi
echores "$_mman"
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/mman.h>
+int main(void) { void *p = MAP_FAILED; return 0; }
+EOF
+_mman_has_map_failed=no
+cc_check && _mman_has_map_failed=yes
+if test "$_mman_has_map_failed" = yes ; then
+ _def_mman_has_map_failed=''
+else
+ _def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)'
+fi
+
echocheck "dynamic loader"
cat > $TMPC << EOF
#include <dlfcn.h>
@@ -6806,11 +6819,6 @@
/* use GNU internationalization */
$_def_i18n
-/* missing mmap function on libc5 systems */
-#ifndef MAP_FAILED
-# define MAP_FAILED ((void *) -1)
-#endif
-
/* Runtime CPU detection */
$_def_runtime_cpudetection
@@ -6977,6 +6985,7 @@
/* Define this if your system has the "sys/mman.h" header file */
$_def_mman
+$_def_mman_has_map_failed
/* Define this if you have the elf dynamic linker -ldl library */
$_def_dl
More information about the MPlayer-cvslog
mailing list