diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2011-05-23 17:29:14 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2011-05-23 17:29:14 (GMT) |
commit | 3cfec078a6d5305657380b68558900d8aa955470 (patch) | |
tree | 61d1850eced904bad37ad61be552de3a291d4b68 | |
parent | c8d91d05a40a05e0d73202ad1348294a5446d42e (diff) | |
download | hdf5-3cfec078a6d5305657380b68558900d8aa955470.zip hdf5-3cfec078a6d5305657380b68558900d8aa955470.tar.gz hdf5-3cfec078a6d5305657380b68558900d8aa955470.tar.bz2 |
[svn-r20892] Purpose:
Adds a check for the mach_time header file.
Description:
The mach time header file is needed for the monotonic timer / log VFD
work. No code in the trunk depends on this file at this time.
Tested on:
jam(linux32-LE) tejeda(darwin32 LE) local darwin64 (snow leopard)
-rwxr-xr-x | configure | 15 | ||||
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | src/H5config.h.in | 3 |
3 files changed, 20 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in 20890 2011-05-23 14:19:26Z hdftest . +# From configure.in Id: configure.in 20891 2011-05-23 17:02:39Z derobins . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for HDF5 1.9.82. # @@ -22088,6 +22088,19 @@ fi done +for ac_header in mach/mach_time.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default" +if test "x$ac_cv_header_mach_mach_time_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_MACH_MACH_TIME_H 1 +_ACEOF + +fi + +done + + case "`uname`" in CYGWIN*) for ac_header in io.h sys/timeb.h diff --git a/configure.in b/configure.in index f1c0383..c761e5a 100644 --- a/configure.in +++ b/configure.in @@ -1214,6 +1214,9 @@ AC_CHECK_HEADERS([sys/socket.h sys/types.h]) AC_CHECK_HEADERS([stddef.h setjmp.h features.h]) AC_CHECK_HEADERS([stdint.h], [C9x=yes]) +dnl Darwin +AC_CHECK_HEADERS([mach/mach_time.h]) + dnl Windows case "`uname`" in CYGWIN*) diff --git a/src/H5config.h.in b/src/H5config.h.in index c53ccca..628996a 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -226,6 +226,9 @@ /* Define to 1 if you have the `lstat' function. */ #undef HAVE_LSTAT +/* Define to 1 if you have the <mach/mach_time.h> header file. */ +#undef HAVE_MACH_MACH_TIME_H + /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H |