Mercurial > mplayer.hg
comparison configure @ 14566:f38a2658bdd4
better test for MAP_FAILED by Ian Lindsay
author | alex |
---|---|
date | Fri, 21 Jan 2005 21:32:15 +0000 |
parents | 4a6b79a1ad52 |
children | 3df308b43c50 |
comparison
equal
deleted
inserted
replaced
14565:1a13df0d4fc2 | 14566:f38a2658bdd4 |
---|---|
2616 else | 2616 else |
2617 _def_mman='#undef HAVE_SYS_MMAN_H' | 2617 _def_mman='#undef HAVE_SYS_MMAN_H' |
2618 fi | 2618 fi |
2619 echores "$_mman" | 2619 echores "$_mman" |
2620 | 2620 |
2621 cat > $TMPC << EOF | |
2622 #include <sys/types.h> | |
2623 #include <sys/mman.h> | |
2624 int main(void) { void *p = MAP_FAILED; return 0; } | |
2625 EOF | |
2626 _mman_has_map_failed=no | |
2627 cc_check && _mman_has_map_failed=yes | |
2628 if test "$_mman_has_map_failed" = yes ; then | |
2629 _def_mman_has_map_failed='' | |
2630 else | |
2631 _def_mman_has_map_failed='#define MAP_FAILED ((void *) -1)' | |
2632 fi | |
2633 | |
2621 echocheck "dynamic loader" | 2634 echocheck "dynamic loader" |
2622 cat > $TMPC << EOF | 2635 cat > $TMPC << EOF |
2623 #include <dlfcn.h> | 2636 #include <dlfcn.h> |
2624 int main(void) { dlopen(0, 0); dlclose(0); dlsym(0, 0); return 0; } | 2637 int main(void) { dlopen(0, 0); dlclose(0); dlsym(0, 0); return 0; } |
2625 EOF | 2638 EOF |
6804 #define MPLAYER_CONFIG_H 1 | 6817 #define MPLAYER_CONFIG_H 1 |
6805 | 6818 |
6806 /* use GNU internationalization */ | 6819 /* use GNU internationalization */ |
6807 $_def_i18n | 6820 $_def_i18n |
6808 | 6821 |
6809 /* missing mmap function on libc5 systems */ | |
6810 #ifndef MAP_FAILED | |
6811 # define MAP_FAILED ((void *) -1) | |
6812 #endif | |
6813 | |
6814 /* Runtime CPU detection */ | 6822 /* Runtime CPU detection */ |
6815 $_def_runtime_cpudetection | 6823 $_def_runtime_cpudetection |
6816 | 6824 |
6817 /* Dynamic a/v plugins */ | 6825 /* Dynamic a/v plugins */ |
6818 $_def_dynamic_plugins | 6826 $_def_dynamic_plugins |
6975 /* Define this if your system has the "alloca.h" header file */ | 6983 /* Define this if your system has the "alloca.h" header file */ |
6976 $_def_alloca | 6984 $_def_alloca |
6977 | 6985 |
6978 /* Define this if your system has the "sys/mman.h" header file */ | 6986 /* Define this if your system has the "sys/mman.h" header file */ |
6979 $_def_mman | 6987 $_def_mman |
6988 $_def_mman_has_map_failed | |
6980 | 6989 |
6981 /* Define this if you have the elf dynamic linker -ldl library */ | 6990 /* Define this if you have the elf dynamic linker -ldl library */ |
6982 $_def_dl | 6991 $_def_dl |
6983 | 6992 |
6984 /* Define this if you have the kstat kernel statistics library */ | 6993 /* Define this if you have the kstat kernel statistics library */ |