diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-11 09:11:17 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-14 09:34:14 +0200 |
commit | deca298d7b5651276ab7cd8bcb3090a2a4946d79 (patch) | |
tree | 459b06b797b64122d691d7b2efc02fab114e6e1e /lib/replace/strptime.m4 | |
parent | 0a92ac2ddc8d27c70d3399610c51d1ed65564239 (diff) | |
download | samba-deca298d7b5651276ab7cd8bcb3090a2a4946d79.tar.gz samba-deca298d7b5651276ab7cd8bcb3090a2a4946d79.tar.bz2 samba-deca298d7b5651276ab7cd8bcb3090a2a4946d79.zip |
lib/replace: define HAVE_WORKING_STRPTIME instead of REPLACE_STRPTIME
That makes the logic in 'wscript' simpler.
metze
Diffstat (limited to 'lib/replace/strptime.m4')
-rw-r--r-- | lib/replace/strptime.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/replace/strptime.m4 b/lib/replace/strptime.m4 index b1a56b4aab..8ac22f6342 100644 --- a/lib/replace/strptime.m4 +++ b/lib/replace/strptime.m4 @@ -1,3 +1,5 @@ +AC_CHECK_FUNCS(strptime) +AC_CHECK_DECLS(strptime, [], [], [#include <time.h>]) AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[ AC_TRY_RUN([ #define LIBREPLACE_CONFIGURE_TEST_STRPTIME @@ -8,6 +10,7 @@ AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_ [libreplace_cv_STRPTIME_OK="assuming not"]) ]) if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then - AC_DEFINE(REPLACE_STRPTIME,1,[Whether strptime should be replaced]) LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o" +else + AC_DEFINE(HAVE_WORKING_STRPTIME,1,[Whether strptime is working correct]) fi |