comparison configure @ 96718:b9cd22789f50

* editfns.c (Fuser_full_name): Replace the only use of USER_FULL_NAME with its value. * config.in: Regenerate. * configure.in (freebsd, kfreebsd): Undo part of previous change. (USER_FULL_NAME): Remove, not used anymore. * configure: Regenerate.
author Dan Nicolaescu <dann@ics.uci.edu>
date Wed, 16 Jul 2008 07:01:36 +0000
parents 9631844b13ae
children f5cf56c90437
comparison
equal deleted inserted replaced
96717:2fde988b44fb 96718:b9cd22789f50
2403 2403
2404 machine='' opsys='' unported=no 2404 machine='' opsys='' unported=no
2405 case "${canonical}" in 2405 case "${canonical}" in
2406 2406
2407 ## FreeBSD ports 2407 ## FreeBSD ports
2408 *-*-*freebsd* ) 2408 *-*-freebsd* )
2409 opsys=freebsd 2409 opsys=freebsd
2410 case "${canonical}" in 2410 case "${canonical}" in
2411 alpha*-*-freebsd*) machine=alpha ;; 2411 alpha*-*-freebsd*) machine=alpha ;;
2412 arm*-*-freebsd*) machine=arm ;; 2412 arm*-*-freebsd*) machine=arm ;;
2413 ia64-*-freebsd*) machine=ia64 ;; 2413 ia64-*-freebsd*) machine=ia64 ;;
2414 sparc-*-freebsd*) machine=sparc ;; 2414 sparc-*-freebsd*) machine=sparc ;;
2415 sparc64-*-freebsd*) machine=sparc ;; 2415 sparc64-*-freebsd*) machine=sparc ;;
2416 powerpc-*-freebsd*) machine=macppc ;; 2416 powerpc-*-freebsd*) machine=macppc ;;
2417 i[3456]86-*-freebsd*) machine=intel386 ;; 2417 i[3456]86-*-freebsd*) machine=intel386 ;;
2418 amd64-*-freebsd*|x86_64-*-*freebsd*) machine=amdx86-64 ;; 2418 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2419 esac 2419 esac
2420 ;; 2420 ;;
2421 2421
2422 ## FreeBSD kernel + glibc based userland 2422 ## FreeBSD kernel + glibc based userland
2423 *-*-kfreebsd*gnu* ) 2423 *-*-kfreebsd*gnu* )
16931 # else 16931 # else
16932 # include <time.h> 16932 # include <time.h>
16933 # endif 16933 # endif
16934 #endif 16934 #endif
16935 16935
16936 #include <limits.h>
16937 #include <stdlib.h> 16936 #include <stdlib.h>
16938 16937
16939 #ifdef HAVE_UNISTD_H 16938 #ifdef HAVE_UNISTD_H
16940 # include <unistd.h> 16939 # include <unistd.h>
16941 #endif 16940 #endif
17080 /* This test makes some buggy mktime implementations loop. 17079 /* This test makes some buggy mktime implementations loop.
17081 Give up after 60 seconds; a mktime slower than that 17080 Give up after 60 seconds; a mktime slower than that
17082 isn't worth using anyway. */ 17081 isn't worth using anyway. */
17083 alarm (60); 17082 alarm (60);
17084 17083
17085 for (;;) 17084 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17086 { 17085 continue;
17087 t = (time_t_max << 1) + 1; 17086 time_t_max--;
17088 if (t <= time_t_max) 17087 if ((time_t) -1 < 0)
17089 break; 17088 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17090 time_t_max = t; 17089 continue;
17091 }
17092 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17093
17094 delta = time_t_max / 997; /* a suitable prime number */ 17090 delta = time_t_max / 997; /* a suitable prime number */
17095 for (i = 0; i < N_STRINGS; i++) 17091 for (i = 0; i < N_STRINGS; i++)
17096 { 17092 {
17097 if (tz_strings[i]) 17093 if (tz_strings[i])
17098 putenv (tz_strings[i]); 17094 putenv (tz_strings[i]);
17103 if (! (mktime_test ((time_t) 1) 17099 if (! (mktime_test ((time_t) 1)
17104 && mktime_test ((time_t) (60 * 60)) 17100 && mktime_test ((time_t) (60 * 60))
17105 && mktime_test ((time_t) (60 * 60 * 24)))) 17101 && mktime_test ((time_t) (60 * 60 * 24))))
17106 return 1; 17102 return 1;
17107 17103
17108 for (j = 1; ; j <<= 1) 17104 for (j = 1; 0 < j; j *= 2)
17109 if (! bigtime_test (j)) 17105 if (! bigtime_test (j))
17110 return 1; 17106 return 1;
17111 else if (INT_MAX / 2 < j) 17107 if (! bigtime_test (j - 1))
17112 break;
17113 if (! bigtime_test (INT_MAX))
17114 return 1; 17108 return 1;
17115 } 17109 }
17116 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 17110 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17117 } 17111 }
17118 _ACEOF 17112 _ACEOF