bigtime_test to main, since Solaris 7 (64-bit) mktime loops
even outside of bigtime_test. Use a time limit of 60 seconds
for the whole test, not 10 seconds per iteration.
+1999-04-17 Paul Eggert <eggert@twinsun.com>
+
+ * m4/mktime.m4 (bigtime_test, main): Move alarm from
+ bigtime_test to main, since Solaris 7 (64-bit) mktime loops
+ even outside of bigtime_test. Use a time limit of 60 seconds
+ for the whole test, not 10 seconds per iteration.
+
1999-04-17 Erez Zadok <ezk@cs.columbia.edu>
* automake.in: Create stamps for headers in appropriate
struct tm tm;
time_t now;
tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
- /* This test makes some buggy mktime implementations loop.
- Give up after 10 seconds. */
- alarm (10);
now = mktime (&tm);
- alarm (0);
if (now != (time_t) -1)
{
struct tm *lt = localtime (&now);
time_t t, delta;
int i, j;
+ /* This test makes some buggy mktime implementations loop.
+ Give up after 60 seconds; a mktime slower than that
+ isn't worth using anyway. */
+ alarm (60);
+
for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
continue;
time_t_max--;