diff options
author | SAITO Fuyuki <saitofuyuki@jamstec.go.jp> | 2022-07-28 21:20:07 +0900 |
---|---|---|
committer | SAITO Fuyuki <saitofuyuki@jamstec.go.jp> | 2022-07-28 21:48:06 +0900 |
commit | f49ed46eb9bf8c502c1086cebd061ad7873e287c (patch) | |
tree | 981207305358494457dce807e1f93e88327e557f | |
parent | 066994d9ac192f8ada9414224aa2ee7e2d38b821 (diff) | |
download | autoconf-archive-f49ed46eb9bf8c502c1086cebd061ad7873e287c.tar.gz |
ax_lib_netcdf4: enable NF_CONFIG run-time definition.
nf-config may not be installed under the same directory as nc-config.
To avoid the automatic definition of nf-config, setting of NF_CONFIG
variable is introduced for a workaround.
-rw-r--r-- | m4/ax_lib_netcdf4.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/ax_lib_netcdf4.m4 b/m4/ax_lib_netcdf4.m4 index e9dd487..877d385 100644 --- a/m4/ax_lib_netcdf4.m4 +++ b/m4/ax_lib_netcdf4.m4 @@ -89,7 +89,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 2 +#serial 3 AC_DEFUN([AX_LIB_NETCDF4], [ @@ -231,8 +231,11 @@ parallel NetCDF4 is not supported (while it was requested) LDFLAGS=$ax_lib_hdf5_save_LDFLAGS + AC_PATH_PROGS([NF_CONFIG], [nf-config], []) AC_MSG_CHECKING([for matching NetCDF4 Fortran libraries]) - NF_CONFIG="${NETCDF4_PREFIX}/bin/nf-config" + if test -z "$NF_CONFIG"; then + NF_CONFIG="${NETCDF4_PREFIX}/bin/nf-config" + fi if test ! -f "$NF_CONFIG" || test ! -x "$NF_CONFIG"; then AC_MSG_RESULT([no]) with_netcdf4_fortran="no" |