fseeko: Respect rules for use of AC_LIBOBJ.
[pspp] / m4 / tzset.m4
index 4fed1fd7db3633bf44aecc97414c75fdf8b09297..3c78b3b26944b93448dc22a9ac4bc7f4999819bf 100644 (file)
@@ -1,6 +1,6 @@
-# serial 4
+# serial 5
 
-# Copyright (C) 2003, 2007, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -34,11 +34,11 @@ main ()
   putenv ("TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00");
   tzset ();
   return (p->tm_year != s.tm_year
-         || p->tm_mon != s.tm_mon
-         || p->tm_mday != s.tm_mday
-         || p->tm_hour != s.tm_hour
-         || p->tm_min != s.tm_min
-         || p->tm_sec != s.tm_sec);
+          || p->tm_mon != s.tm_mon
+          || p->tm_mday != s.tm_mday
+          || p->tm_hour != s.tm_hour
+          || p->tm_min != s.tm_min
+          || p->tm_sec != s.tm_sec);
 }
   ]])],
        [gl_cv_func_tzset_clobber=no],
@@ -49,6 +49,7 @@ main ()
     [Define to 1 if you have run the test for working tzset.])
 
   if test $gl_cv_func_tzset_clobber = yes; then
+    REPLACE_GETTIMEOFDAY=1
     gl_GETTIMEOFDAY_REPLACE_LOCALTIME
 
     AC_DEFINE([tzset], [rpl_tzset],