From c5548e107758aca4c681b1baa338d89c11bcf61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Fri, 19 Apr 2013 16:38:28 +0000 Subject: Add HAVE_TM_ZONE and HAVE_TZNAME detection to fix timezone display in cmake builds. svn path=/trunk/; revision=48932 --- ConfigureChecks.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3e1e125d5f..2baed4edc9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -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) -- cgit v1.2.3