aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 11 insertions, 8 deletions
diff --git a/configure b/configure
index c8b5263db17..0aa010d3c65 100755
--- a/configure
+++ b/configure
@@ -14906,20 +14906,23 @@ main ()
14906 int result = 0; 14906 int result = 0;
14907 time_t t, delta; 14907 time_t t, delta;
14908 int i, j; 14908 int i, j;
14909 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
14910 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
14909 14911
14910 /* This test makes some buggy mktime implementations loop. 14912 /* This test makes some buggy mktime implementations loop.
14911 Give up after 60 seconds; a mktime slower than that 14913 Give up after 60 seconds; a mktime slower than that
14912 isn't worth using anyway. */ 14914 isn't worth using anyway. */
14913 alarm (60); 14915 alarm (60);
14914 14916
14915 for (;;) 14917 time_t_max = (! time_t_signed
14916 { 14918 ? (time_t) -1
14917 t = (time_t_max << 1) + 1; 14919 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
14918 if (t <= time_t_max) 14920 * 2 + 1));
14919 break; 14921 time_t_min = (! time_t_signed
14920 time_t_max = t; 14922 ? (time_t) 0
14921 } 14923 : time_t_signed_magnitude
14922 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; 14924 ? ~ (time_t) 0
14925 : ~ time_t_max);
14923 14926
14924 delta = time_t_max / 997; /* a suitable prime number */ 14927 delta = time_t_max / 997; /* a suitable prime number */
14925 for (i = 0; i < N_STRINGS; i++) 14928 for (i = 0; i < N_STRINGS; i++)