Add HAVE_TM_ZONE and HAVE_TZNAME detection to fix timezone display
authorJörg Mayer <jmayer@loplof.de>
Fri, 19 Apr 2013 16:38:28 +0000 (16:38 -0000)
committerJörg Mayer <jmayer@loplof.de>
Fri, 19 Apr 2013 16:38:28 +0000 (16:38 -0000)
in cmake builds.

svn path=/trunk/; revision=48932

ConfigureChecks.cmake
cmakeconfig.h.in

index 3e1e125d5f1407c2ff4a00ec5f03cde01b7a0c0a..2baed4edc949eab06f66b6b494f2be69d840e1f2 100644 (file)
@@ -76,9 +76,13 @@ check_function_exists("mkdtemp"          HAVE_MKDTEMP)
 check_function_exists("mkstemp"          HAVE_MKSTEMP)
 check_function_exists("sysconf"          HAVE_SYSCONF)
 
+#Struct members
+include(CheckStructHasMember)
+check_struct_has_member("struct tm"  tm_zone  time.h  HAVE_TM_ZONE)
+
 #Symbols but NOT enums or types
-#include(CheckSymbolExists)
-#check_symbol_exists(NL80211_CMD_SET_CHANNEL "linux/nl80211.h" HAVE_NL80211_CMD_SET_CHANNEL)
+include(CheckSymbolExists)
+check_symbol_exists(tzname "time.h" HAVE_TZNAME)
 
 # Check for stuff that isn't testable via the tests above
 #include(CheckCSourceCompiles)
index 21f2698f94070d730b3945a3466b158b96b6d08e..2b8e9a988ab27af6fb5333a0150471fce68911b2 100644 (file)
 /* Define to 1 if you have the <winsock2.h> header file. */
 #cmakedefine HAVE_WINSOCK2_H 1
 
+/* Define to 1 if tm_zone field exists in struct tm. */
+#cmakedefine HAVE_TM_ZONE 1
+
+/* Define to 1 if tzname array exists. */
+#cmakedefine HAVE_TZNAME 1
+
 /* HTML viewer, e.g. mozilla */
 #cmakedefine HTML_VIEWER