--- configure.bak	2017-04-24 21:04:09.000000000 -0700
+++ configure	2017-04-24 21:55:28.000000000 -0700
@@ -5109,7 +5109,7 @@
 else
 	echo "** Could not find the udunits2.h file, udunits support will not be included **"
 fi
-UDUNITS2_LIBNAME=libudunits2.a
+UDUNITS2_LIBNAME=libudunits2.dylib
 
 # Check whether --with-udunits2_libdir was given.
 if test "${with_udunits2_libdir+set}" = set; then :
@@ -5303,7 +5303,7 @@
 fi
 
 fi
-UDUNITS2_LIBNAME=`echo $UDUNITS2_LIBNAME | sed s/lib// | sed s/\.a//`
+UDUNITS2_LIBNAME=`echo $UDUNITS2_LIBNAME | sed s/lib// | sed s/\.dylib//`
 UDUNITS2_PRESENT=no
 if test $UDUNITS2_INC_PRESENT = yes; then
 	if test x$UDUNITS2_LIBDIR != x; then
@@ -5504,7 +5504,7 @@
 	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           **"
 fi
-PNG_LIBNAME=libpng.so
+PNG_LIBNAME=libpng.dylib
 
 # Check whether --with-png_libdir was given.
 if test "${with_png_libdir+set}" = set; then :
@@ -5698,7 +5698,7 @@
 fi
 
 fi
-PNG_LIBNAME=`echo $PNG_LIBNAME | sed s/lib// | sed s/\.so//`
+PNG_LIBNAME=`echo $PNG_LIBNAME | sed s/lib// | sed s/\.dylib//`
 PNG_PRESENT=no
 if test $PNG_INC_PRESENT = yes; then
 	if test x$PNG_LIBDIR != x; then
@@ -5779,32 +5779,6 @@
 if test x$NETCDF_CC_TEST_SAME = xcc; then
 	NETCDF_CC_TEST_SAME=gcc
 fi
-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 " "
-	echo "There are two possible ways to fix this."
-	echo " "
-	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 " "
-	echo "   ./configure --with-nc-config=/path/to/newly/compiled/nc-config"
-	echo " "
-	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 "==================================================================="
-	exit -1
-fi
 
 #----------------------------------------------------------------------------------
 # Construct our RPATH flags.  Idea here is that we have LDFLAGS that might look,