]> err.no Git - varnish/commitdiff
Defining _GNU_SOURCE gives us native asprintf() and strptime() on glibc
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Aug 2006 12:42:49 +0000 (12:42 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Aug 2006 12:42:49 +0000 (12:42 +0000)
systems, and has no effect on FreeBSD.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@768 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index 321f40a9bca5d1783a7f24d6e91b65753a7dea96..f7472108b577c1d65283e2974852675847d964c6 100644 (file)
@@ -27,6 +27,7 @@ AC_ARG_ENABLE(werror,
        CFLAGS="${CFLAGS} -Werror")
 
 # Checks for programs.
+AC_GNU_SOURCE
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_INSTALL
@@ -61,6 +62,7 @@ AC_FUNC_VPRINTF
 AC_CHECK_FUNCS([strerror])
 AC_FUNC_STRERROR_R
 AC_CHECK_FUNCS([socket])
+AC_CHECK_FUNCS([strptime])
 
 # These functions are provided by libcompat on platforms where they
 # are not available