# HG changeset patch # User Andreas Schwab # Date 1165767876 0 # Node ID 0c93767fd6a64e33c8f956c2cc727f08b1fee459 # Parent f43c6119c6c447f82edaa0d8d6d2babc9a81b794 Remove check for struct timezone, its result is never used. diff -r f43c6119c6c4 -r 0c93767fd6a6 configure.in --- a/configure.in Sun Dec 10 03:13:00 2006 +0000 +++ b/configure.in Sun Dec 10 16:24:36 2006 +0000 @@ -2651,38 +2651,6 @@ fi fi -# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. -AC_STRUCT_TIMEZONE - -dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect. -if test "$ac_cv_func_gettimeofday" = yes; then - AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone, - [AC_TRY_COMPILE([#include ], - [struct timezone tz;], - dnl It may be that we can't call gettimeofday with a non-null pointer, - dnl even though we have struct timezone (e.g. HPUX). In that case - dnl we'll lie about struct timezone. - [AC_TRY_RUN([ -#ifdef TIME_WITH_SYS_TIME -#include -#include -#else -#ifdef HAVE_SYS_TIME_H -#include -#else -#include -#endif -#endif -main () { - struct timeval time; - struct timezone dummy; - exit (gettimeofday (&time, &dummy)); -}], - emacs_cv_struct_timezone=yes, - emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)], - emacs_cv_struct_timezone=no)]) -fi - ok_so_far=yes AC_CHECK_FUNC(socket, , ok_so_far=no) if test $ok_so_far = yes; then