summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 2e0a3cc13c..57f7c32282 100755
--- a/configure
+++ b/configure
@@ -2702,6 +2702,21 @@ fi
echores "$_lrintf"
+echocheck "mkstemp"
+cat > $TMPC << EOF
+#include <stdlib.h>
+int main(void) { char a; mkstemp(&a); return 0; }
+EOF
+_mkstemp=no
+cc_check && _mkstemp=yes
+if test "$_mkstemp" = yes ; then
+ _def_mkstemp='#define HAVE_MKSTEMP 1'
+else
+ _def_mkstemp='#undef HAVE_MKSTEMP'
+fi
+echores "$_mkstemp"
+
+
echocheck "nanosleep"
# also check for nanosleep
cat > $TMPC << EOF
@@ -8078,6 +8093,9 @@ $_def_lrintf
/* int_fastXY_t emulation */
$_def_fast_inttypes
+/* mkstemp support */
+$_def_mkstemp
+
/* nanosleep support */
$_def_nanosleep