comparison configure @ 32183:6f84ff0fa2d8

Simplify mkstemp() check.
author diego
date Thu, 16 Sep 2010 14:38:50 +0000
parents c40f52d5d4c3
children dab4de13e332
comparison
equal deleted inserted replaced
32182:c40f52d5d4c3 32183:6f84ff0fa2d8
3072 3072
3073 echocheck "mkstemp" 3073 echocheck "mkstemp"
3074 cat > $TMPC << EOF 3074 cat > $TMPC << EOF
3075 #define _XOPEN_SOURCE >= 500 3075 #define _XOPEN_SOURCE >= 500
3076 #include <stdlib.h> 3076 #include <stdlib.h>
3077 int main(void) { char a; mkstemp(&a); return 0; } 3077 int main(void) { mkstemp(""); return 0; }
3078 EOF 3078 EOF
3079 _mkstemp=no 3079 _mkstemp=no
3080 cc_check && _mkstemp=yes 3080 cc_check && _mkstemp=yes
3081 if test "$_mkstemp" = yes ; then 3081 if test "$_mkstemp" = yes ; then
3082 def_mkstemp='#define HAVE_MKSTEMP 1' 3082 def_mkstemp='#define HAVE_MKSTEMP 1'