]> git.notmuchmail.org Git - notmuch/blobdiff - configure
timegm: add portable implementation (Solaris support)
[notmuch] / configure
index ac44857c1e10d6f7af9bc4c92d5dc4580b58d168..616691791b2a7da51ecb6fbaa2833fae5a254133 100755 (executable)
--- a/configure
+++ b/configure
@@ -530,6 +530,17 @@ else
 fi
 rm -f compat/have_strsep
 
+printf "Checking for timegm... "
+if ${CC} -o compat/have_timegm "$srcdir"/compat/have_timegm.c > /dev/null 2>&1
+then
+    printf "Yes.\n"
+    have_timegm="1"
+else
+    printf "No (will use our own instead).\n"
+    have_timegm="0"
+fi
+rm -f compat/have_timegm
+
 printf "Checking for standard version of getpwuid_r... "
 if ${CC} -o compat/check_getpwuid "$srcdir"/compat/check_getpwuid.c > /dev/null 2>&1
 then