comparison configure @ 95463:e3b30a09b861

Regenerate.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 01 Jun 2008 17:46:16 +0000
parents 5d1a07df31c3
children 0f9033e19d18
comparison
equal deleted inserted replaced
95462:6b06cfc96ec7 95463:e3b30a09b861
16891 # else 16891 # else
16892 # include <time.h> 16892 # include <time.h>
16893 # endif 16893 # endif
16894 #endif 16894 #endif
16895 16895
16896 #include <limits.h>
16897 #include <stdlib.h> 16896 #include <stdlib.h>
16898 16897
16899 #ifdef HAVE_UNISTD_H 16898 #ifdef HAVE_UNISTD_H
16900 # include <unistd.h> 16899 # include <unistd.h>
16901 #endif 16900 #endif
17040 /* This test makes some buggy mktime implementations loop. 17039 /* This test makes some buggy mktime implementations loop.
17041 Give up after 60 seconds; a mktime slower than that 17040 Give up after 60 seconds; a mktime slower than that
17042 isn't worth using anyway. */ 17041 isn't worth using anyway. */
17043 alarm (60); 17042 alarm (60);
17044 17043
17045 for (;;) 17044 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17046 { 17045 continue;
17047 t = (time_t_max << 1) + 1; 17046 time_t_max--;
17048 if (t <= time_t_max) 17047 if ((time_t) -1 < 0)
17049 break; 17048 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17050 time_t_max = t; 17049 continue;
17051 }
17052 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17053
17054 delta = time_t_max / 997; /* a suitable prime number */ 17050 delta = time_t_max / 997; /* a suitable prime number */
17055 for (i = 0; i < N_STRINGS; i++) 17051 for (i = 0; i < N_STRINGS; i++)
17056 { 17052 {
17057 if (tz_strings[i]) 17053 if (tz_strings[i])
17058 putenv (tz_strings[i]); 17054 putenv (tz_strings[i]);
17063 if (! (mktime_test ((time_t) 1) 17059 if (! (mktime_test ((time_t) 1)
17064 && mktime_test ((time_t) (60 * 60)) 17060 && mktime_test ((time_t) (60 * 60))
17065 && mktime_test ((time_t) (60 * 60 * 24)))) 17061 && mktime_test ((time_t) (60 * 60 * 24))))
17066 return 1; 17062 return 1;
17067 17063
17068 for (j = 1; ; j <<= 1) 17064 for (j = 1; 0 < j; j *= 2)
17069 if (! bigtime_test (j)) 17065 if (! bigtime_test (j))
17070 return 1; 17066 return 1;
17071 else if (INT_MAX / 2 < j) 17067 if (! bigtime_test (j - 1))
17072 break;
17073 if (! bigtime_test (INT_MAX))
17074 return 1; 17068 return 1;
17075 } 17069 }
17076 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 17070 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17077 } 17071 }
17078 _ACEOF 17072 _ACEOF
18977 /* confdefs.h. */ 18971 /* confdefs.h. */
18978 _ACEOF 18972 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext 18973 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF 18974 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */ 18975 /* end confdefs.h. */
18982 #include <sys/types.h> /* for off_t */ 18976 #include <stdio.h>
18983 #include <stdio.h>
18984 int 18977 int
18985 main () 18978 main ()
18986 { 18979 {
18987 int (*fp) (FILE *, off_t, int) = fseeko; 18980 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18988 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18989 ; 18981 ;
18990 return 0; 18982 return 0;
18991 } 18983 }
18992 _ACEOF 18984 _ACEOF
18993 rm -f conftest.$ac_objext conftest$ac_exeext 18985 rm -f conftest.$ac_objext conftest$ac_exeext
19023 _ACEOF 19015 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext 19016 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF 19017 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */ 19018 /* end confdefs.h. */
19027 #define _LARGEFILE_SOURCE 1 19019 #define _LARGEFILE_SOURCE 1
19028 #include <sys/types.h> /* for off_t */ 19020 #include <stdio.h>
19029 #include <stdio.h>
19030 int 19021 int
19031 main () 19022 main ()
19032 { 19023 {
19033 int (*fp) (FILE *, off_t, int) = fseeko; 19024 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19034 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19035 ; 19025 ;
19036 return 0; 19026 return 0;
19037 } 19027 }
19038 _ACEOF 19028 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext 19029 rm -f conftest.$ac_objext conftest$ac_exeext
24219 24209
24220 cat >>confdefs.h <<\_ACEOF 24210 cat >>confdefs.h <<\_ACEOF
24221 #define USE_X_TOOLKIT 1 24211 #define USE_X_TOOLKIT 1
24222 _ACEOF 24212 _ACEOF
24223 24213
24224 if test "${USE_X_TOOLKIT}" == "LUCID"; then 24214 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24225 24215
24226 cat >>confdefs.h <<\_ACEOF 24216 cat >>confdefs.h <<\_ACEOF
24227 #define USE_LUCID 1 24217 #define USE_LUCID 1
24228 _ACEOF 24218 _ACEOF
24229 24219
24230 elif test "${USE_X_TOOLKIT}" == "MOTIF"; then 24220 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24231 24221
24232 cat >>confdefs.h <<\_ACEOF 24222 cat >>confdefs.h <<\_ACEOF
24233 #define USE_MOTIF 1 24223 #define USE_MOTIF 1
24234 _ACEOF 24224 _ACEOF
24235 24225