You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2026/08/28 13:33:19 UTC
svn commit: r1937565 - httpd/httpd/trunk
Author: jorton
Date: Fri Aug 28 13:33:19 2026
New Revision: 1937565
Log:
* configure.in: Use AC_CHECK_MEMBER for struct tm.tm_gmtoff test.
GitHub: PR #380
Modified:
httpd/httpd/trunk/configure.in
Modified: httpd/httpd/trunk/configure.in
==============================================================================
--- httpd/httpd/trunk/configure.in Fri Aug 28 13:33:07 2026 (r1937564)
+++ httpd/httpd/trunk/configure.in Fri Aug 28 13:33:19 2026 (r1937565)
@@ -567,13 +567,10 @@ case ${host}X${ac_cv_func_gettid}X${ap_c
esac
dnl ## Check for the tm_gmtoff field in struct tm to get the timezone diffs
-AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
-[AC_TRY_COMPILE([#include <sys/types.h>
-#include <time.h>], [struct tm tm; tm.tm_gmtoff;],
- ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
-if test "$ac_cv_struct_tm_gmtoff" = "yes"; then
- AC_DEFINE(HAVE_GMTOFF, 1, [Define if struct tm has a tm_gmtoff field])
-fi
+AC_CHECK_MEMBER([struct tm.tm_gmtoff],
+ [AC_DEFINE(HAVE_GMTOFF, 1, [Define if struct tm has a tm_gmtoff field])], [],
+ [#include <sys/types.h>
+#include <time.h>])
AC_CHECK_DECL(CMSG_DATA,,, [#include <sys/types.h>
#include <sys/socket.h>])