aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Blake Jones <blakej@foo.net>2013-08-21 13:09:54 +0200
committerGravatar David Bremner <bremner@debian.org>2013-08-23 17:57:35 +0200
commit8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7 (patch)
treed8e3bed78bbc1323c2f83f21f7867f1666d9911d /configure
parent43843745dcbf31e96f447410e335a8d2aa21b00d (diff)
timegm: add portable implementation (Solaris support)
The timegm(3) function is a non-standard extension to libc which is available in GNU libc and on some BSDs. Although SunOS had this function in its libc, Solaris (unfortunately) removed it. This patch implements a very simple version of timegm() which is good enough for parse-time-string.c. Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index ac44857c..61669179 100755
--- 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