1 AC_CHECK_FUNCS(strptime)
2 AC_CHECK_DECLS(strptime, [], [], [#include <time.h>])
3 AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[
5 #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
6 #include "$libreplacedir/test/strptime.c"
8 [libreplace_cv_STRPTIME_OK=yes],
9 [libreplace_cv_STRPTIME_OK=no],
10 [libreplace_cv_STRPTIME_OK="assuming not"])
12 if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
13 LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o"
15 AC_DEFINE(HAVE_WORKING_STRPTIME,1,[Whether strptime is working correct])