Mercurial > mplayer.hg
comparison configure @ 23749:f7b424ecf3f9
Add check for mkstemp
Fixes compilation afrer ffmpeg commit r9596
author | rtogni |
---|---|
date | Wed, 11 Jul 2007 19:47:20 +0000 |
parents | 0a01af86f76b |
children | 5f186b0f3543 |
comparison
equal
deleted
inserted
replaced
23748:fb2a176224ac | 23749:f7b424ecf3f9 |
---|---|
2700 _def_lrintf="#undef HAVE_LRINTF" | 2700 _def_lrintf="#undef HAVE_LRINTF" |
2701 fi | 2701 fi |
2702 echores "$_lrintf" | 2702 echores "$_lrintf" |
2703 | 2703 |
2704 | 2704 |
2705 echocheck "mkstemp" | |
2706 cat > $TMPC << EOF | |
2707 #include <stdlib.h> | |
2708 int main(void) { char a; mkstemp(&a); return 0; } | |
2709 EOF | |
2710 _mkstemp=no | |
2711 cc_check && _mkstemp=yes | |
2712 if test "$_mkstemp" = yes ; then | |
2713 _def_mkstemp='#define HAVE_MKSTEMP 1' | |
2714 else | |
2715 _def_mkstemp='#undef HAVE_MKSTEMP' | |
2716 fi | |
2717 echores "$_mkstemp" | |
2718 | |
2719 | |
2705 echocheck "nanosleep" | 2720 echocheck "nanosleep" |
2706 # also check for nanosleep | 2721 # also check for nanosleep |
2707 cat > $TMPC << EOF | 2722 cat > $TMPC << EOF |
2708 #include <time.h> | 2723 #include <time.h> |
2709 int main(void) { (void) nanosleep(0, 0); return 0; } | 2724 int main(void) { (void) nanosleep(0, 0); return 0; } |
8076 #define HAVE_INTTYPES_H 1 | 8091 #define HAVE_INTTYPES_H 1 |
8077 | 8092 |
8078 /* int_fastXY_t emulation */ | 8093 /* int_fastXY_t emulation */ |
8079 $_def_fast_inttypes | 8094 $_def_fast_inttypes |
8080 | 8095 |
8096 /* mkstemp support */ | |
8097 $_def_mkstemp | |
8098 | |
8081 /* nanosleep support */ | 8099 /* nanosleep support */ |
8082 $_def_nanosleep | 8100 $_def_nanosleep |
8083 | 8101 |
8084 /* SMB support */ | 8102 /* SMB support */ |
8085 $_def_smbsupport | 8103 $_def_smbsupport |