Commit 6812853c authored by prudhomm's avatar prudhomm
Browse files

life is cool ;)

added feature to configure: --with-aztec=[LOC]
where [LOC] is the location where you installed aztec

for example  in debug mode if you installed aztec in $HOME/aztec

CXXFLAGS="-g3 -O0" configure --with-aztec=$HOME/aztec

lifev will be configured to find aztec headers (resp. libs) in $HOME/aztec/include (resp. $HOME/aztec/lib)

happy coding!
parent f0a848c7
......@@ -32,22 +32,40 @@ AC_PROG_F77_C_O
# check for libtool
AC_PROG_LIBTOOL
AC_ARG_WITH([aztec],
AS_HELP_STRING([--with-aztec],[tell where aztec resides]),
[
# AZTEC check
AC_MSG_CHECKING([Aztec headers files presence])
ac_aztec_includedirs="$REPOSITORY/$ARCH/include/Aztec_LifeV/ /usr/include /usr/local/include"
ac_aztec_includedir="$withval/include"
AC_MSG_RESULT([$ac_aztec_includedir])
CXXFLAGS="-I$ac_aztec_includedir ${CXXFLAGS}"
# AZTEC check
AC_MSG_CHECKING([Aztec headers files presence])
ac_aztec_includedirs="$REPOSITORY/$ARCH/include/Aztec_LifeV/ /usr/include /usr/local/include"
AC_FIND_FILE("az_aztec.h",$ac_aztec_includedirs , ac_aztec_includedir)
AC_MSG_RESULT([$ac_aztec_includedir])
CXXFLAGS="-I$ac_aztec_includedir ${CXXFLAGS}"
AC_MSG_CHECKING([Aztec libraries presence])
ac_aztec_libdirs="$REPOSITORY/$ARCH/lib$AFFIX/Aztec_LifeV/ /usr/lib /usr/local/lib"
AC_FIND_FILE("libaztec.a", $ac_aztec_libdirs, ac_aztec_libdir)
# echo $ac_aztec_libdir
LDFLAGS="${LDFLAGS} -L${ac_aztec_libdir}"
aztec_libs="-laztec"
AC_SUBST(aztec_libs)
AC_MSG_RESULT([$aztec_libs])
AC_MSG_CHECKING([Aztec libraries presence])
ac_aztec_libdir="$withval/lib"
LDFLAGS="${LDFLAGS} -L${ac_aztec_libdir}"
aztec_libs="-laztec"
AC_SUBST(aztec_libs)
AC_MSG_RESULT([$aztec_libs])
],
[
# AZTEC check
AC_MSG_CHECKING([Aztec headers files presence])
ac_aztec_includedirs="$REPOSITORY/$ARCH/include/Aztec_LifeV/ /usr/include /usr/local/include"
AC_FIND_FILE("az_aztec.h",$ac_aztec_includedirs , ac_aztec_includedir)
AC_MSG_RESULT([$ac_aztec_includedir])
CXXFLAGS="-I$ac_aztec_includedir ${CXXFLAGS}"
AC_MSG_CHECKING([Aztec libraries presence])
ac_aztec_libdirs="$REPOSITORY/$ARCH/lib$AFFIX/Aztec_LifeV/ /usr/lib /usr/local/lib"
AC_FIND_FILE("libaztec.a", $ac_aztec_libdirs, ac_aztec_libdir)
# echo $ac_aztec_libdir
LDFLAGS="${LDFLAGS} -L${ac_aztec_libdir}"
aztec_libs="-laztec"
AC_SUBST(aztec_libs)
AC_MSG_RESULT([$aztec_libs])
])
CXXFLAGS="-I/usr/include/blitz ${CXXFLAGS}"
CXXFLAGS="-I\$(top_srcdir)/life/lifecore -I\$(top_srcdir)/life/lifemesh -I\$(top_srcdir)/life/lifefem ${CXXFLAGS}"
......
......@@ -15,6 +15,12 @@ options='%S.idx'
MakeIndex=Default
QuickBuild=PDFLaTeX+ViewPDF
[item:../tex/lifestyle.cls]
archive=true
encoding=ISO 8859-1
highlight=LaTeX-Kile
open=false
[item:lifev-dev.kilepr]
archive=true
encoding=
......
......@@ -15,7 +15,7 @@
<kdevautoproject>
<general>
<activetarget>testsuite/official/test_mesh/test_mesh</activetarget>
<useconfiguration>optimized</useconfiguration>
<useconfiguration>debug</useconfiguration>
</general>
<run>
<mainprogram>src/life</mainprogram>
......@@ -104,6 +104,7 @@
<kdevfileview>
<groups>
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment