Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
78badff7
Commit
78badff7
authored
15 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
move grape.m4 to dune-grid
[[Imported from SVN: r5712]]
parent
411a5f26
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
m4/Makefile.am
+1
-1
1 addition, 1 deletion
m4/Makefile.am
m4/grape.m4
+0
-103
0 additions, 103 deletions
m4/grape.m4
with
1 addition
and
104 deletions
m4/Makefile.am
+
1
−
1
View file @
78badff7
...
...
@@ -6,7 +6,7 @@ ALLM4S = acx_blas.m4 acx_lapack.m4 acx_mpi.m4 acx_pthread.m4 \
dune_docu.m4 dune_exprtmpl.m4 dune_linkcxx.m4
\
dune.m4
\
dune_mpi.m4 dune_streams.m4
\
f5.m4 fortran_overwrite.m4
grape.m4
hdf5.m4
\
f5.m4 fortran_overwrite.m4 hdf5.m4
\
immdx_lib_metis.m4 inkscape.m4 mpi-config.m4 opengl.m4
\
pardiso.m4 parmetis.m4 static_assert.m4 shared_ptr.m4 superlu-dist.m4
\
superlu.m4 xdr.m4
...
...
This diff is collapsed.
Click to expand it.
m4/grape.m4
deleted
100644 → 0
+
0
−
103
View file @
411a5f26
# $Id$
# searches for albert-headers and libs
# grape.h und libgr.a/libgr.so are located in the same discretory
AC_DEFUN([DUNE_PATH_GRAPE],[
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_PATH_XTRA])
AC_REQUIRE([DUNE_PATH_OPENGL])
AC_REQUIRE([AC_PROG_LD_GNU])
AC_ARG_WITH(grape,
AC_HELP_STRING([--with-grape=PATH],[directory with Grape inside]))
# store old values
ac_save_LDFLAGS="$LDFLAGS"
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_LIBS="$LIBS"
# don't even start testing if X wasn't found
if test "x$X_LIBS" != x && test x$with_grape != xno ; then
LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
# is --with-grape=bla used?
if test x$with_grape != x ; then
if test -d $with_grape; then
# expand tilde / other stuff
GRAPEROOT=`cd $with_grape && pwd`
else
AC_MSG_ERROR([directory $with_grape does not exist])
fi
else
# set some kind of default grape-path...
GRAPEROOT="/usr/local/grape/"
fi
CPPFLAGS="$CPPFLAGS -I$GRAPEROOT"
LDFLAGS="$LDFLAGS -L$GRAPEROOT"
# check for header
# we have to use CC for checking the header!!
AC_LANG_PUSH([C])
AC_CHECK_HEADER([grape.h],
[GRAPE_CPPFLAGS="-I$GRAPEROOT"
HAVE_GRAPE="1"])
AC_LANG_POP
# check for lib if header was found
if test x$HAVE_GRAPE = x1 ; then
# if GL was found, add it implicitly...
# This is not the best choice, but testing without GL first and
# then trying again fails due to caching...
CPPFLAGS="$GRAPE_CPPFLAGS $GL_CFLAGS -DENABLE_GRAPE"
LIBS="$LIBS $GL_LIBS -lXext"
LDFLAGS="$LDFLAGS $GL_LDFLAGS"
# if we use the gnu linker add the grape path
if test x$lt_cv_prog_gnu_ld = xyes ; then
GRAPE_LINKER_FLAGS="-Wl,--rpath -Wl,$GRAPEROOT"
fi
AC_CHECK_LIB(gr, grape,
[GRAPE_LDFLAGS="-L$GRAPEROOT $GL_LDFLAGS $GRAPE_LINKER_FLAGS"
GRAPE_CPPFLAGS="$CPPFLAGS"
GRAPE_LIBS="-lgr $GL_LIBS -lXext"],
[HAVE_GRAPE="0"])
fi
# did it work?
if test x$HAVE_GRAPE = x1 ; then
AC_SUBST(GRAPE_LIBS, $GRAPE_LIBS)
AC_SUBST(GRAPE_LDFLAGS, $GRAPE_LDFLAGS)
AC_SUBST(GRAPE_CPPFLAGS, $GRAPE_CPPFLAGS)
AC_DEFINE(HAVE_GRAPE, ENABLE_GRAPE,
[This is only true if grape-library was found by configure
_and_ if the application uses the GRAPE_CPPFLAGS])
# add to global list
DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $GRAPE_LDFLAGS"
DUNE_PKG_LIBS="$DUNE_PKG_LIBS $GRAPE_LIBS"
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $GRAPE_CPPFLAGS"
fi
fi
# report to summary
if test x$HAVE_GRAPE = x1 ; then
with_grape="yes"
else
with_grape="no"
fi
# also tell automake
AM_CONDITIONAL(GRAPE, test x$HAVE_GRAPE = x1)
# reset old values
LIBS="$ac_save_LIBS"
CPPFLAGS="$ac_save_CPPFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
DUNE_ADD_SUMMARY_ENTRY([Grape],[$with_grape])
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment