Skip to content

Commit ffc5083

Browse files
committed
Fix gsl and improve hdf5 detection without Conda
1 parent 62d0321 commit ffc5083

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

support/configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,7 @@ then
31063106
# we assume that the conda metadata is correct, and that if it isn't there's
31073107
# an expert packager who can fix things.
31083108
printf "%s\n" "Conda package build detected, skipping checks for dependencies."
3109-
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 netcdf4 sapporo_light"
3109+
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 libz netcdf4 sapporo_light"
31103110
31113111
else
31123112
if test "x" != "x$CONDA_DEFAULT_ENV"
@@ -15571,7 +15571,7 @@ if test "x" != "x${HAVE_LAPACK}"
1557115571
then :
1557215572
FEATURES="${FEATURES} lapack"
1557315573
fi
15574-
if test "x" != "x${FOUND_GSL}"
15574+
if test "x${FOUND_GSL}" = "xyes"
1557515575
then :
1557615576
FEATURES="${FEATURES} gsl"
1557715577
fi
@@ -15591,7 +15591,7 @@ if test "x${FOUND_LIBZ}" = "xyes"
1559115591
then :
1559215592
FEATURES="${FEATURES} libz"
1559315593
fi
15594-
if test "x" != "x${with_hdf5}"
15594+
if test "x${with_hdf5}" = "xyes"
1559515595
then :
1559615596
FEATURES="${FEATURES} hdf5"
1559715597
fi

support/configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ then
2121
# we assume that the conda metadata is correct, and that if it isn't there's
2222
# an expert packager who can fix things.
2323
AS_ECHO(["Conda package build detected, skipping checks for dependencies."])
24-
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 netcdf4 sapporo_light"
24+
ASSUME_FEATURES="c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 libz netcdf4 sapporo_light"
2525

2626
else
2727
if test "x" != "x$CONDA_DEFAULT_ENV"
@@ -217,12 +217,12 @@ ENABLE_FEATURE_IF_DEFINED([cuda], [CUDA_TK])
217217
ENABLE_FEATURE_IF_EQUALS([opencl], [FOUND_OPENCL], [yes])
218218
ENABLE_FEATURE_IF_DEFINED([blas], [BLAS_LIBS])
219219
ENABLE_FEATURE_IF_DEFINED([lapack], [HAVE_LAPACK])
220-
ENABLE_FEATURE_IF_DEFINED([gsl], [FOUND_GSL])
220+
ENABLE_FEATURE_IF_EQUALS([gsl], [FOUND_GSL], [yes])
221221
ENABLE_FEATURE_IF_EQUALS([gmp], [FOUND_GMP], [yes])
222222
ENABLE_FEATURE_IF_EQUALS([mpfr], [FOUND_MPFR], [yes])
223223
ENABLE_FEATURE_IF_EQUALS([fftw], [FOUND_FFTW], [yes])
224224
ENABLE_FEATURE_IF_EQUALS([libz], [FOUND_LIBZ], [yes])
225-
ENABLE_FEATURE_IF_DEFINED([hdf5], [with_hdf5])
225+
ENABLE_FEATURE_IF_EQUALS([hdf5], [with_hdf5], [yes])
226226
ENABLE_FEATURE_IF_EQUALS([netcdf4], [FOUND_NETCDF], [yes])
227227
ENABLE_FEATURE_IF_EQUALS([qhull], [FOUND_QHULL], [yes])
228228
ENABLE_FEATURE_IF_EQUALS([healpix-cxx], [FOUND_HEALPIX_CXX], [yes])

0 commit comments

Comments
 (0)