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 cbbe2369..f3ec930b 100755
--- a/configure
+++ b/configure
@@ -1688,6 +1688,24 @@ else
printf "no\n"
fi
+printf "Checking for strptime function ... "
+
+cat > conftest.c <<!
+#include <time.h>
+
+int main(int argc, char **argv)
+{
+ struct tm stm = { 0 };
+ strptime("2016-08-20 00:00:00", "%Y-%m-%d %H:%M:%S", &stm);
+ return 0;
+}
+!
+if conftest ; then
+ printf "yes\n"
+ printf "#define HAVE_STRPTIME 1\n" >> $config_h
+else
+ printf "no\n"
+fi
printf "Checking for POSIX sleep function ... "