s3: Add a _nosync version of smb2_write_complete
[Samba/gebeck_regimport.git] / lib / replace / strptime.m4
blob8ac22f63426a4662d7b90bce2e128b2504612039
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,[
4         AC_TRY_RUN([
5                 #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
6                 #include "$libreplacedir/test/strptime.c"
7                 ],
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"
14 else
15         AC_DEFINE(HAVE_WORKING_STRPTIME,1,[Whether strptime is working correct])