From 3ab29d1fb877f4e2234e445ec337371500695227 Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Tue, 1 Aug 2006 20:09:34 +0000 Subject: [PATCH] only warn for missing psurface, if user uses --with-psurface=... [[Imported from SVN: r4663]] --- m4/dune_psurface.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/m4/dune_psurface.m4 b/m4/dune_psurface.m4 index 286b2da98..eeb7a1cff 100644 --- a/m4/dune_psurface.m4 +++ b/m4/dune_psurface.m4 @@ -40,14 +40,17 @@ AC_LANG_PUSH([C++]) AC_CHECK_HEADER([psurface.h], [PSURFACE_CPPFLAGS="-I$PSURFACE_INCLUDE_PATH" HAVE_PSURFACE="1"], - AC_MSG_WARN([psurface.h not found in $PSURFACE_INCLUDE_PATH])) + [if test "x$with_psurface" != x ; then + AC_MSG_WARN([psurface.h not found in $PSURFACE_INCLUDE_PATH]) + fi + ]) CPPFLAGS="$PSURFACE_CPPFLAGS" # Psurface uses the AmiraMesh data format to read a write parametrized surfaces to disk. # Therefore, its installation only makes sense if AmiraMesh support is installed as well. if test x$HAVE_AMIRAMESH != x1 ; then - AC_MSG_WARN(Check for psurface library aborted because AmiraMesh is unavailable!) + AC_MSG_NOTICE(Check for psurface library aborted because AmiraMesh is unavailable!) HAVE_PSURFACE="0" fi @@ -60,7 +63,7 @@ if test x$HAVE_PSURFACE = x1 ; then PSURFACE_LDFLAGS="-L$PSURFACE_LIB_PATH" LIBS="$LIBS $PSURFACE_LIBS"], [HAVE_PSURFACE="0" - AC_MSG_WARN(libpsurface not found!)]) + AC_MSG_WARN(psurface header found, but libpsurface missing!)]) fi AC_LANG_POP([C++]) -- GitLab