Skip to content
Snippets Groups Projects
Commit 500c1ba7 authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

reuse variable with_<package> as string for a ./configure-summary

[[Imported from SVN: r223]]
parent a7a37a86
No related branches found
No related tags found
No related merge requests found
......@@ -92,11 +92,17 @@ if test x$HAVE_ALBERT = x1 ; then
DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $ALBERT_LDFLAGS"
DUNE_PKG_LIBS="$DUNE_PKG_LIBS $ALBERT_LIBS"
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $ALBERT_CPPFLAGS"
# set variable for summary
with_albert="yes"
else
echo no albert found...
AC_SUBST(ALBERT_LIBS, "")
AC_SUBST(ALBERT_LDFLAGS, "")
AC_SUBST(ALBERT_CPPFLAGS, "")
# set variable for summary
with_albert="no"
fi
# also tell automake
......
......@@ -71,10 +71,16 @@ if test x$HAVE_BLAS = x1 ; then
# add to global list
DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $BLAS_LDFLAGS"
DUNE_PKG_LIBS="$DUNE_PKG_LIBS $BLAS_LIBS"
# set variable for summary
with_blas="yes"
else
echo "******** no BLAS Library is uesd. Enable with the --enable-blas option."
AC_SUBST(BLAS_LIBS, "")
AC_SUBST(BLAS_LDFLAGS, "")
# set variable for summary
with_blas="no"
fi
# also tell automake
......
......@@ -69,6 +69,9 @@ if test "x$X_LIBS" != x ; then
AC_MSG_WARN([libgr not found in $GRAPEROOT!])])
fi
# pre-set variable for summary
with_grape="no"
# did it work?
if test x$HAVE_GRAPE = x1 ; then
AC_SUBST(GRAPE_LIBS, "$LIBS $GRAPE_LIBS")
......@@ -80,6 +83,9 @@ if test "x$X_LIBS" != x ; then
DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $GRAPE_LDFLAGS"
DUNE_PKG_LIBS="$DUNE_PKG_LIBS $GRAPE_LIBS"
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $GRAPE_CPPFLAGS"
# re-set variable correctly
with_grape="yes"
fi
# also tell automake
......
......@@ -5,9 +5,12 @@ AC_DEFUN([DUNE_PATH_OPENGL],[
AC_REQUIRE([AC_PROG_CC])
AC_CHECK_HEADERS(GL/gl.h)
AC_CHECK_LIB(GL, glNewList, [GL_LIBS="-lGL"], [have_gl=no])
AC_CHECK_LIB(GL, glNewList, [GL_LIBS="-lGL"], [have_gl=no])
# set variable for summary
with_opengl="no"
if test x$have_gl != xno ; then
AC_SUBST(GL_LIBS, $GL_LIBS)
with_opengl="yes"
fi
])
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment