]> git.marmaro.de Git - mmh/blobdiff - configure.ac
FreeBSD needs the HAVE_STRUCT_TM_TM_GMTOFF test.
[mmh] / configure.ac
index 51a4d1af4615a6c7c32017335fcb239fbe311260..2595cff0b222f53212d086acda97615da2ca66f9 100644 (file)
@@ -387,7 +387,7 @@ dnl Check location of modf
 AC_CHECK_FUNC(modf, , AC_CHECK_LIB(m, modf))
 
 dnl Checks for network libraries (nsl, socket)
-AC_CHECK_NETLIBS
+NMH_CHECK_NETLIBS
 
 termcap_curses_order="termcap curses ncurses"
 for lib in $termcap_curses_order; do
@@ -533,6 +533,11 @@ dnl ----------------
 dnl CHECK STRUCTURES
 dnl ----------------
 
+dnl For platforms such as FreeBSD that have tm_gmtoff in struct tm.
+dnl (FreeBSD has a timezone() function but not a timezone global
+dnl variable that is visible).
+AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include <time.h>])
+
 AC_STRUCT_DIRENT_D_TYPE
 
 dnl Where is <signal.h> located?  Needed as input for signames.awk