source: branches/samba-3.5.x/lib/util/time.m4@ 717

Last change on this file since 717 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 451 bytes
Line 
1AC_CACHE_CHECK([if gettimeofday takes tz argument],samba_cv_HAVE_GETTIMEOFDAY_TZ,[
2AC_TRY_RUN([
3#include <sys/time.h>
4#include <unistd.h>
5main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
6 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes,samba_cv_HAVE_GETTIMEOFDAY_TZ=no,samba_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
7if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8 AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
9fi
Note: See TracBrowser for help on using the repository browser.