added support for finding PetsC headers and libs.
This commit is contained in:
parent
9c38d16504
commit
7f1b39d808
3
aclocal.m4
vendored
3
aclocal.m4
vendored
@ -1,5 +1,6 @@
|
||||
sinclude(/home/casc/software/autoconfig/macros/casc_libs_and_headers.m4)
|
||||
sinclude(casc_mpi.m4)
|
||||
sinclude(/home/casc/software/autoconfig/macros/casc_specific_libs.m4)
|
||||
sinclude(/home/casc/software/autoconfig/macros/casc_mpi.m4)
|
||||
sinclude(/home/casc/software/autoconfig/macros/casc_fortran.m4)
|
||||
sinclude(/home/casc/software/autoconfig/macros/casc_opt_debug.m4)
|
||||
sinclude(/home/casc/software/autoconfig/macros/casc_misc.m4)
|
||||
|
||||
18
configure.in
18
configure.in
@ -52,6 +52,7 @@ unset F77
|
||||
casc_user_chose_compilers=no
|
||||
casc_user_chose_mpi=no
|
||||
casc_using_pthreads=no
|
||||
casc_using_petsc=no
|
||||
|
||||
AC_ARG_WITH(CC,
|
||||
[ --with-CC=ARG manually set C compiler to ARG],
|
||||
@ -197,6 +198,14 @@ AC_ARG_WITH(pthreads,
|
||||
)
|
||||
|
||||
|
||||
AC_ARG_WITH(petsc,
|
||||
[ --with-petsc use petsc],
|
||||
if test "$withval" != "no"
|
||||
then
|
||||
casc_using_patsc=yes
|
||||
fi
|
||||
)
|
||||
|
||||
AC_PROG_RANLIB
|
||||
|
||||
dnl *********************************************************************
|
||||
@ -534,6 +543,10 @@ then
|
||||
HYPRE_FIND_MPI
|
||||
fi
|
||||
|
||||
if test "$casc_using_petsc" = "yes"
|
||||
then
|
||||
CASC_FIND_PETSC
|
||||
fi
|
||||
|
||||
CC="$PREPEND $CC"
|
||||
|
||||
@ -583,6 +596,11 @@ AC_SUBST(CFLAGS)
|
||||
AC_SUBST(CXXFLAGS)
|
||||
AC_SUBST(F77FLAGS)
|
||||
AC_SUBST(PREPEND)
|
||||
AC_SUBST(HAVE_PETSC)
|
||||
AC_SUBST(LACKS_PETSC)
|
||||
AC_SUBST(PETSCLIBS)
|
||||
AC_SUBST(PETSCLIBDIRS)
|
||||
AC_SUBST(PETSCINCLUDE)
|
||||
|
||||
dnl *********************************************************************
|
||||
dnl * Use CASC_CONFIG_OUTPUT_LIST with AC_OUTPUT if you want to handle the
|
||||
|
||||
Loading…
Reference in New Issue
Block a user