Merge from vendor branch TCPDUMP:
[dragonfly.git] / contrib / libf2c / libU77 / aclocal.m4
1 dnl See whether we have struct timezone
2 dnl LIBU77_HAVE_STRUCT_TIMEZONE
3 AC_DEFUN(LIBU77_HAVE_STRUCT_TIMEZONE,
4 [AC_MSG_CHECKING([whether struct timezone exists])
5 AC_CACHE_VAL(libu77_cv_have_struct_timezone,
6 [AC_TRY_COMPILE([#include <sys/time.h>],
7 [struct timezone tz;],
8 libu77_ac_have_struct_timezone=yes, libu77_ac_have_struct_timezone=no)])
9 if test $libu77_ac_have_struct_timezone = yes; then
10   AC_MSG_RESULT(yes)
11   AC_DEFINE_UNQUOTED(HAVE_STRUCT_TIMEZONE)
12 else
13   AC_MSG_RESULT(no)
14 fi
15 ])dnl
16