diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-08 17:19:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:04:00 -0500 |
commit | 4480a62ec3845d1e4f7d3f161f542d7cfe748320 (patch) | |
tree | fade6fda6430db5690743b293d087ddaf889662f /source4/lib/util/time.m4 | |
parent | 9dfdfc65b7e2c5583201d032e3b62565d329c821 (diff) | |
download | samba-4480a62ec3845d1e4f7d3f161f542d7cfe748320.tar.gz samba-4480a62ec3845d1e4f7d3f161f542d7cfe748320.tar.bz2 samba-4480a62ec3845d1e4f7d3f161f542d7cfe748320.zip |
r15002: More cleanups in build/m4/rewrite.m4
(This used to be commit f5e2cc845696b56b9cb6a6c3cad48cd57fcc51c4)
Diffstat (limited to 'source4/lib/util/time.m4')
-rw-r--r-- | source4/lib/util/time.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/util/time.m4 b/source4/lib/util/time.m4 new file mode 100644 index 0000000000..f61ae4cd25 --- /dev/null +++ b/source4/lib/util/time.m4 @@ -0,0 +1,9 @@ +AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[ +AC_TRY_RUN([ +#include <sys/time.h> +#include <unistd.h> +main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}], + samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=cross)]) +if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then + AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available]) +fi |