summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index aa9c8f05..aa5264fa 100755
--- a/configure
+++ b/configure
@@ -2234,6 +2234,26 @@ if [ -z "$have_winsize" ] ; then
printf "no\n"
fi
+printf "Checking for mkstemps ... "
+
+cat > conftest.c <<!
+#include <stdlib.h>
+
+int main(int argc, char **argv)
+{
+ char template[] = "abcXXXXXX.xyz";
+ int fd = mkstemps(template, 4);
+ return 0;
+}
+!
+
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_MKSTEMPS 1\n" >> $config_h
+else
+ printf "no\n"
+fi
+
#
# Dependent variables
#