]> https://gitweb.dealii.org/ - dealii.git/commitdiff
test for netcdf failed
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 29 Mar 2006 17:15:16 +0000 (17:15 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 29 Mar 2006 17:15:16 +0000 (17:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@12755 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index b9f2da61d5fa6dbc454be793b6e7818379dfe373..267f28ca612c2d50956cfa99d8d75fd460e5f8ed 100644 (file)
@@ -4775,7 +4775,8 @@ AC_DEFUN(DEAL_II_CONFIGURE_NETCDF, dnl
   
   dnl If the C library was found, but not the C++ library
   dnl abort configure with an error message
-  if test "x$HAVE_LIBNETCDF" == "x1" ; then
+  AC_MSG_NOTICE("HAVE_LIBNETCDF = $LIBS)
+  if expr "x$LIBS : netcdf" ; then
     LIBS="-lnetcdf_c++ $LIBS"
     AC_LINK_IFELSE(
     [  AC_LANG_PROGRAM([[#include <netcdfcpp.h>
index 3f0c139d5cac15ea65aa40bd87585c341ef41b99..be9367475465182ce9849ddaaec32af0bef669b8 100755 (executable)
@@ -11268,7 +11268,9 @@ fi
 
 
 
-      if test "x$HAVE_LIBNETCDF" == "x1" ; then
+      { echo "$as_me:$LINENO: \"HAVE_LIBNETCDF = $LIBS" >&5
+echo "$as_me: \"HAVE_LIBNETCDF = $LIBS" >&6;}
+  if expr "x$LIBS : netcdf" ; then
     LIBS="-lnetcdf_c++ $LIBS"
     cat >conftest.$ac_ext <<_ACEOF
   /* confdefs.h.  */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.