--- configure.bak 2017-04-24 21:04:09.000000000 -0700
+++ configure 2017-04-24 21:55:28.000000000 -0700
echo "** Could not find the udunits2.h file, udunits support will not be included **"
-UDUNITS2_LIBNAME=libudunits2.a
+UDUNITS2_LIBNAME=libudunits2.dylib
# Check whether --with-udunits2_libdir was given.
if test "${with_udunits2_libdir+set}" = set; then :
-UDUNITS2_LIBNAME=`echo $UDUNITS2_LIBNAME | sed s/lib// | sed s/\.a//`
+UDUNITS2_LIBNAME=`echo $UDUNITS2_LIBNAME | sed s/lib// | sed s/\.dylib//`
if test $UDUNITS2_INC_PRESENT = yes; then
if test x$UDUNITS2_LIBDIR != x; then
echo "** Could not find the png.h file, so -frames support will not be included **"
echo "** Install the PNG library (and development headers) to fix this **"
+PNG_LIBNAME=libpng.dylib
# Check whether --with-png_libdir was given.
if test "${with_png_libdir+set}" = set; then :
-PNG_LIBNAME=`echo $PNG_LIBNAME | sed s/lib// | sed s/\.so//`
+PNG_LIBNAME=`echo $PNG_LIBNAME | sed s/lib// | sed s/\.dylib//`
if test $PNG_INC_PRESENT = yes; then
if test x$PNG_LIBDIR != x; then
if test x$NETCDF_CC_TEST_SAME = xcc; then
-if test x$CC_TEST_SAME != x$NETCDF_CC_TEST_SAME; then
- echo "======================================================================"
- echo "Configuration error: You specified that the \"$CC\" C compiler should be"
- echo "used to build ncview, but the netcdf library was compiled with the \"$NETCDF_CC\""
- echo "compiler. Here is the path where I found the netcdf library:"
- echo " $NETCDF_LDFLAGS"
- echo "You must use the same compiler for ncview as was used to build the netcdf library!"
- echo "There are two possible ways to fix this."
- echo "1) Download the netcdf library and compile it with the $CC compiler,"
- echo "install it, and try again to build ncview. NOTE that if you do this,"
- echo "you might have more than one version of the netcdf library on your system,"
- echo "built with differnt compilers, which can get confusing. If you do this,"
- echo "you will have to specify the path to the (new) version of nc-config"
- echo "that was compiled using the $CC compiler by configuring ncview in a "
- echo "way similar to this:"
- echo " ./configure --with-nc-config=/path/to/newly/compiled/nc-config"
- echo "2) Configure ncview to use the $NETCDF_CC compiler."
- echo "To do this, set environmental variable CC to $NETCDF_CC"
- echo "and run ./configure again"
- echo "==================================================================="
#----------------------------------------------------------------------------------
# Construct our RPATH flags. Idea here is that we have LDFLAGS that might look,