diff options
| author | Andreas Schwab | 2006-12-10 16:24:36 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2006-12-10 16:24:36 +0000 |
| commit | 41de5de6c6bb1b93f58ed8579d65f8b864a9142b (patch) | |
| tree | 7e2bdef57b224a1f8c442aa21964d11a2a8197f4 | |
| parent | 4c3384fa02f3d2358290994a697df345982eac12 (diff) | |
| download | emacs-41de5de6c6bb1b93f58ed8579d65f8b864a9142b.tar.gz emacs-41de5de6c6bb1b93f58ed8579d65f8b864a9142b.zip | |
Remove check for struct timezone, its result is never used.
| -rw-r--r-- | configure.in | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/configure.in b/configure.in index 427201491f4..93cac35a32c 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -2651,38 +2651,6 @@ if test "x$HAVE_TIMEVAL" = xyes; then | |||
| 2651 | fi | 2651 | fi |
| 2652 | fi | 2652 | fi |
| 2653 | 2653 | ||
| 2654 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. | ||
| 2655 | AC_STRUCT_TIMEZONE | ||
| 2656 | |||
| 2657 | dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect. | ||
| 2658 | if test "$ac_cv_func_gettimeofday" = yes; then | ||
| 2659 | AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone, | ||
| 2660 | [AC_TRY_COMPILE([#include <sys/time.h>], | ||
| 2661 | [struct timezone tz;], | ||
| 2662 | dnl It may be that we can't call gettimeofday with a non-null pointer, | ||
| 2663 | dnl even though we have struct timezone (e.g. HPUX). In that case | ||
| 2664 | dnl we'll lie about struct timezone. | ||
| 2665 | [AC_TRY_RUN([ | ||
| 2666 | #ifdef TIME_WITH_SYS_TIME | ||
| 2667 | #include <sys/time.h> | ||
| 2668 | #include <time.h> | ||
| 2669 | #else | ||
| 2670 | #ifdef HAVE_SYS_TIME_H | ||
| 2671 | #include <sys/time.h> | ||
| 2672 | #else | ||
| 2673 | #include <time.h> | ||
| 2674 | #endif | ||
| 2675 | #endif | ||
| 2676 | main () { | ||
| 2677 | struct timeval time; | ||
| 2678 | struct timezone dummy; | ||
| 2679 | exit (gettimeofday (&time, &dummy)); | ||
| 2680 | }], | ||
| 2681 | emacs_cv_struct_timezone=yes, | ||
| 2682 | emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)], | ||
| 2683 | emacs_cv_struct_timezone=no)]) | ||
| 2684 | fi | ||
| 2685 | |||
| 2686 | ok_so_far=yes | 2654 | ok_so_far=yes |
| 2687 | AC_CHECK_FUNC(socket, , ok_so_far=no) | 2655 | AC_CHECK_FUNC(socket, , ok_so_far=no) |
| 2688 | if test $ok_so_far = yes; then | 2656 | if test $ok_so_far = yes; then |