comparison configure @ 98491:29005e3eddab

configure.in: Report USE_TOOLKIT_SCROLLBARS as such (not mentioning 'X') to avoid confusion
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Fri, 03 Oct 2008 18:43:29 +0000
parents dafd1efe2d45
children 46fbf568b2bd
comparison
equal deleted inserted replaced
98490:468c55dd37a2 98491:29005e3eddab
16658 # else 16658 # else
16659 # include <time.h> 16659 # include <time.h>
16660 # endif 16660 # endif
16661 #endif 16661 #endif
16662 16662
16663 #include <limits.h>
16664 #include <stdlib.h> 16663 #include <stdlib.h>
16665 16664
16666 #ifdef HAVE_UNISTD_H 16665 #ifdef HAVE_UNISTD_H
16667 # include <unistd.h> 16666 # include <unistd.h>
16668 #endif 16667 #endif
16807 /* This test makes some buggy mktime implementations loop. 16806 /* This test makes some buggy mktime implementations loop.
16808 Give up after 60 seconds; a mktime slower than that 16807 Give up after 60 seconds; a mktime slower than that
16809 isn't worth using anyway. */ 16808 isn't worth using anyway. */
16810 alarm (60); 16809 alarm (60);
16811 16810
16812 for (;;) 16811 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16813 { 16812 continue;
16814 t = (time_t_max << 1) + 1; 16813 time_t_max--;
16815 if (t <= time_t_max) 16814 if ((time_t) -1 < 0)
16816 break; 16815 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16817 time_t_max = t; 16816 continue;
16818 }
16819 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16820
16821 delta = time_t_max / 997; /* a suitable prime number */ 16817 delta = time_t_max / 997; /* a suitable prime number */
16822 for (i = 0; i < N_STRINGS; i++) 16818 for (i = 0; i < N_STRINGS; i++)
16823 { 16819 {
16824 if (tz_strings[i]) 16820 if (tz_strings[i])
16825 putenv (tz_strings[i]); 16821 putenv (tz_strings[i]);
16830 if (! (mktime_test ((time_t) 1) 16826 if (! (mktime_test ((time_t) 1)
16831 && mktime_test ((time_t) (60 * 60)) 16827 && mktime_test ((time_t) (60 * 60))
16832 && mktime_test ((time_t) (60 * 60 * 24)))) 16828 && mktime_test ((time_t) (60 * 60 * 24))))
16833 return 1; 16829 return 1;
16834 16830
16835 for (j = 1; ; j <<= 1) 16831 for (j = 1; 0 < j; j *= 2)
16836 if (! bigtime_test (j)) 16832 if (! bigtime_test (j))
16837 return 1; 16833 return 1;
16838 else if (INT_MAX / 2 < j) 16834 if (! bigtime_test (j - 1))
16839 break;
16840 if (! bigtime_test (INT_MAX))
16841 return 1; 16835 return 1;
16842 } 16836 }
16843 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 16837 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16844 } 16838 }
16845 _ACEOF 16839 _ACEOF
18744 /* confdefs.h. */ 18738 /* confdefs.h. */
18745 _ACEOF 18739 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext 18740 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF 18741 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */ 18742 /* end confdefs.h. */
18749 #include <sys/types.h> /* for off_t */ 18743 #include <stdio.h>
18750 #include <stdio.h>
18751 int 18744 int
18752 main () 18745 main ()
18753 { 18746 {
18754 int (*fp) (FILE *, off_t, int) = fseeko; 18747 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18755 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18756 ; 18748 ;
18757 return 0; 18749 return 0;
18758 } 18750 }
18759 _ACEOF 18751 _ACEOF
18760 rm -f conftest.$ac_objext conftest$ac_exeext 18752 rm -f conftest.$ac_objext conftest$ac_exeext
18790 _ACEOF 18782 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext 18783 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF 18784 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */ 18785 /* end confdefs.h. */
18794 #define _LARGEFILE_SOURCE 1 18786 #define _LARGEFILE_SOURCE 1
18795 #include <sys/types.h> /* for off_t */ 18787 #include <stdio.h>
18796 #include <stdio.h>
18797 int 18788 int
18798 main () 18789 main ()
18799 { 18790 {
18800 int (*fp) (FILE *, off_t, int) = fseeko; 18791 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18801 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18802 ; 18792 ;
18803 return 0; 18793 return 0;
18804 } 18794 }
18805 _ACEOF 18795 _ACEOF
18806 rm -f conftest.$ac_objext conftest$ac_exeext 18796 rm -f conftest.$ac_objext conftest$ac_exeext
24295 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" 24285 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24296 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" 24286 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24297 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" 24287 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24298 echo " Does Emacs use -lxft? ${HAVE_XFT}" 24288 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24299 24289
24300 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" 24290 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24301 echo 24291 echo
24302 24292
24303 if test $USE_XASSERTS = yes; then 24293 if test $USE_XASSERTS = yes; then
24304 echo " Compiling with asserts turned on." 24294 echo " Compiling with asserts turned on."
24305 CPPFLAGS="$CPPFLAGS -DXASSERTS=1" 24295 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"