mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
merged configure.ac and CMakeLists.txt with changes from master branch
This commit is contained in:
parent
74c4b9db83
commit
f3435da592
@ -620,6 +620,14 @@ IF(USE_HDF5)
|
|||||||
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIR})
|
||||||
MESSAGE(STATUS "Using HDF5 C Library: ${HDF5_C_LIBRARY}")
|
MESSAGE(STATUS "Using HDF5 C Library: ${HDF5_C_LIBRARY}")
|
||||||
MESSAGE(STATUS "Using HDF5 HL LIbrary: ${HDF5_HL_LIBRARY}")
|
MESSAGE(STATUS "Using HDF5 HL LIbrary: ${HDF5_HL_LIBRARY}")
|
||||||
|
if (EXISTS "${HDF5_INCLUDE_DIR}/H5pubconf.h")
|
||||||
|
file(READ "${HDF5_INCLUDE_DIR}/H5pubconf.h" _hdf5_version_lines
|
||||||
|
REGEX "#define[ \t]+H5_VERSION")
|
||||||
|
string(REGEX REPLACE ".*H5_VERSION .*\"\(.*\)\".*" "\\1" _hdf5_version "${_hdf5_version_lines}")
|
||||||
|
set(HDF5_VERSION "${_hdf5_version}")
|
||||||
|
unset(_hdf5_version)
|
||||||
|
unset(_hdf5_version_lines)
|
||||||
|
endif ()
|
||||||
ELSE(HDF5_C_LIBRARY AND HDF5_HL_LIBRARY AND HDF5_INCLUDE_DIR) # We are seeking out HDF5 with Find Package.
|
ELSE(HDF5_C_LIBRARY AND HDF5_HL_LIBRARY AND HDF5_INCLUDE_DIR) # We are seeking out HDF5 with Find Package.
|
||||||
###
|
###
|
||||||
# For now we assume that if we are building netcdf
|
# For now we assume that if we are building netcdf
|
||||||
@ -1870,7 +1878,7 @@ ENDIF(ENABLE_BASH_SCRIPT_TESTING)
|
|||||||
|
|
||||||
MACRO(add_sh_test prefix F)
|
MACRO(add_sh_test prefix F)
|
||||||
IF(HAVE_BASH)
|
IF(HAVE_BASH)
|
||||||
ADD_TEST(${prefix}_${F} bash "-c" "export srcdir=${CMAKE_CURRENT_SOURCE_DIR};export TOPSRCDIR=${CMAKE_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR}/${F}.sh ${F}.sh ${ARGN}")
|
ADD_TEST(${prefix}_${F} bash "-c" "export srcdir=${CMAKE_CURRENT_SOURCE_DIR};export TOPSRCDIR=${CMAKE_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR}/${F}.sh ${ARGN}")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDMACRO()
|
ENDMACRO()
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ AC_CONFIG_LINKS([nc_test4/ref_hdf5_compat3.nc:nc_test4/ref_hdf5_compat3.nc])
|
|||||||
|
|
||||||
AC_CONFIG_LINKS([hdf4_test/ref_chunked.hdf4:hdf4_test/ref_chunked.hdf4])
|
AC_CONFIG_LINKS([hdf4_test/ref_chunked.hdf4:hdf4_test/ref_chunked.hdf4])
|
||||||
AC_CONFIG_LINKS([hdf4_test/ref_contiguous.hdf4:hdf4_test/ref_contiguous.hdf4])
|
AC_CONFIG_LINKS([hdf4_test/ref_contiguous.hdf4:hdf4_test/ref_contiguous.hdf4])
|
||||||
|
AC_CONFIG_LINKS([dap4_test/baselinethredds/GOES16_CONUS_20170821_020218_0.47_1km_33.3N_91.4W.nc4.thredds:dap4_test/baselinethredds/GOES16_TEST1.nc4.thredds])
|
||||||
AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects])
|
AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects])
|
||||||
|
|
||||||
# Check for the existence of this file before proceeding.
|
# Check for the existence of this file before proceeding.
|
||||||
@ -522,10 +522,10 @@ CFLAGS="$SAVECFLAGS"
|
|||||||
# --enable-dap => enable-dap4
|
# --enable-dap => enable-dap4
|
||||||
enable_dap4=$enable_dap
|
enable_dap4=$enable_dap
|
||||||
# Default is to do the short remote tests.
|
# Default is to do the short remote tests.
|
||||||
AC_MSG_CHECKING([whether dap remote testing should be enabled (default off)])
|
AC_MSG_CHECKING([whether dap remote testing should be enabled])
|
||||||
AC_ARG_ENABLE([dap-remote-tests],
|
AC_ARG_ENABLE([dap-remote-tests],
|
||||||
[AS_HELP_STRING([--enable-dap-remote-tests],
|
[AS_HELP_STRING([--disable-dap-remote-tests],
|
||||||
[enable dap remote tests])])
|
[disable dap remote tests])])
|
||||||
test "x$enable_dap_remote_tests" = xno || enable_dap_remote_tests=yes
|
test "x$enable_dap_remote_tests" = xno || enable_dap_remote_tests=yes
|
||||||
if test "x$enable_dap" = "xno" ; then
|
if test "x$enable_dap" = "xno" ; then
|
||||||
enable_dap_remote_tests=no
|
enable_dap_remote_tests=no
|
||||||
|
Loading…
Reference in New Issue
Block a user