From 247b7fb65488545b4f95e45c723025c30d23a617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umur=20Din=C3=A7?= Date: Fri, 29 Apr 2022 16:39:27 +0300 Subject: [PATCH] add support for non-static libnetcdff compilation Although libnetcdff.so is now supported in the WRF configuration file, it has not been added to WPS. When libnetcdff.a is not present, it needs to be changed to libnetcdff.so every time. Now, with this change, WPS can be compiled with netcdf libraries that are not statically compiled, without making any changes to WPS. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 701b24a5..e724ec71 100755 --- a/configure +++ b/configure @@ -139,7 +139,7 @@ if [ -n "$NETCDF" ] ; then # for 3.6.2 and greater there might be a second library, libnetcdff.a . Check for this and use # if available NETCDFF=" " - if [ -f "$NETCDF/lib/libnetcdff.a" ] ; then + if [ -f "$NETCDF/lib/libnetcdff.a" -o -f "$NETCDF/lib/libnetcdff.so" -o -f "$NETCDF/lib/libnetcdff.dll.a" ] ; then NETCDFF="-lnetcdff" fi else