summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-01-29 22:33:01 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-01-29 22:33:01 (GMT)
commitda2a2d940057ad7c5c224bdc00035d867725e9a1 (patch)
tree451beca7916508d44eca234673ca3e8ebbf554d2
parent5bf140387f08a9395768acfd48e20abe0d3c6b49 (diff)
downloadhdf5-da2a2d940057ad7c5c224bdc00035d867725e9a1.zip
hdf5-da2a2d940057ad7c5c224bdc00035d867725e9a1.tar.gz
hdf5-da2a2d940057ad7c5c224bdc00035d867725e9a1.tar.bz2
[svn-r26079] Removed obsolete HAVE___TM_GMTOFF defines. This is an artifact of the Linux
fork of glibc. It's been deprecated since at least 1997. Part of HDFFV-9085 Tested on: jam
-rwxr-xr-xconfigure36
-rw-r--r--configure.ac10
-rw-r--r--src/H5Omtime.c9
-rw-r--r--src/H5config.h.in3
-rw-r--r--vms/src/h5pubconf.h3
5 files changed, 3 insertions, 58 deletions
diff --git a/configure b/configure
index 8b46307..420a90d 100755
--- a/configure
+++ b/configure
@@ -26369,42 +26369,6 @@ $as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-## check if `struct tm' has a `__tm_gmtoff' member.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __tm_gmtoff in struct tm" >&5
-$as_echo_n "checking for __tm_gmtoff in struct tm... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
- #include <sys/time.h>
- #include <time.h>
-#ifdef FC_DUMMY_MAIN
-#ifndef FC_DUMMY_MAIN_EQ_F77
-# ifdef __cplusplus
- extern "C"
-# endif
- int FC_DUMMY_MAIN() { return 1; }
-#endif
-#endif
-int
-main ()
-{
-struct tm tm; tm.__tm_gmtoff=0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-$as_echo "#define HAVE___TM_GMTOFF 1" >>confdefs.h
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
## Check whether the global variable `timezone' is defined.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
$as_echo_n "checking for global timezone variable... " >&6; }
diff --git a/configure.ac b/configure.ac
index 33e4565..72b0ab0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1791,16 +1791,6 @@ AC_TRY_COMPILE([
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])])
-## check if `struct tm' has a `__tm_gmtoff' member.
-AC_MSG_CHECKING([for __tm_gmtoff in struct tm])
-AC_TRY_COMPILE([
- #include <sys/time.h>
- #include <time.h>], [struct tm tm; tm.__tm_gmtoff=0;],
- [AC_DEFINE([HAVE___TM_GMTOFF], [1],
- [Define if `__tm_gmtoff' is a member of `struct tm'])
- AC_MSG_RESULT([yes])],
- [AC_MSG_RESULT([no])])
-
## Check whether the global variable `timezone' is defined.
AC_MSG_CHECKING([for global timezone variable])
diff --git a/src/H5Omtime.c b/src/H5Omtime.c
index a983ca4..c9375f9 100644
--- a/src/H5Omtime.c
+++ b/src/H5Omtime.c
@@ -222,14 +222,11 @@ H5O_mtime_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, H5O_t UNUSED *open_oh,
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, NULL, "badly formatted modification time message")
#if defined(H5_HAVE_TM_GMTOFF)
- /* FreeBSD, OSF 4.0 */
+ /* BSD-like systems */
the_time += tm.tm_gmtoff;
-#elif defined(H5_HAVE___TM_GMTOFF)
- /* Linux libc-4 */
- the_time += tm.__tm_gmtoff;
#elif defined(H5_HAVE_TIMEZONE)
- /* Linux libc-5 */
- the_time -= timezone - (tm.tm_isdst?3600:0);
+ /* GNU/Linux systems */
+ the_time -= timezone - (tm.tm_isdst ? 3600 : 0);
#else
/*
* The catch-all. If we can't convert a character string universal
diff --git a/src/H5config.h.in b/src/H5config.h.in
index 74a3671..119763f 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -381,9 +381,6 @@
/* Define to 1 if you have the `_scrsize' function. */
#undef HAVE__SCRSIZE
-/* Define if `__tm_gmtoff' is a member of `struct tm' */
-#undef HAVE___TM_GMTOFF
-
/* Define if your system can't handle converting floating-point values to long
long. */
#undef HW_FP_TO_LLONG_NOT_WORKS
diff --git a/vms/src/h5pubconf.h b/vms/src/h5pubconf.h
index a6eb514..6f6a8a2 100644
--- a/vms/src/h5pubconf.h
+++ b/vms/src/h5pubconf.h
@@ -401,9 +401,6 @@
/* Define to 1 if you have the `_scrsize' function. */
/* #undef H5_HAVE__SCRSIZE */
-/* Define if `__tm_gmtoff' is a member of `struct tm' */
-/* #undef H5_HAVE___TM_GMTOFF */
-
/* Define if your system can't handle converting floating-point values to long
long. */
/* #undef H5_HW_FP_TO_LLONG_NOT_WORKS */