make babel/Hypre/* iff configure is run --with-babel

This commit is contained in:
painter 2000-10-10 00:06:18 +00:00
parent 28a3bbb0c5
commit 2c53fab6b9
3 changed files with 71 additions and 58 deletions

View File

@ -69,7 +69,7 @@ HYPRE_EXTRA_DIRS =\
structIJ_matrix_vector\
CI_struct_matrix_vector\
CI_struct_linear_solvers @HYPRE_PETSCLIBDIRS@\
babel/Hypre
@HYPRE_BABELLIBDIR@
all: krylov struct sstruct IJ fei
@ \

121
configure vendored
View File

@ -6639,6 +6639,7 @@ fi
fi
HYPRE_BABELLIBDIR=""
if test "$casc_using_babel" = "yes"
then
# jfp still unsatisfactory...
@ -6657,6 +6658,10 @@ BABELLIBFLAGS="-L../babel/Hypre -lhypre_class -L${BABEL_DIR}/babel -lbabel"
babeldir="$HOME"
HYPRE_BABELLIBDIR="$HYPRE_TOP_SRC_DIR/babel/Hypre"
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
if test -f $ac_dir/install-sh; then
@ -6688,7 +6693,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:6692: checking for a BSD compatible install" >&5
echo "configure:6697: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -6741,7 +6746,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
echo "configure:6745: checking whether build environment is sane" >&5
echo "configure:6750: checking whether build environment is sane" >&5
# Just in case
sleep 1
echo timestamp > conftestfile
@ -6798,7 +6803,7 @@ test "$program_suffix" != NONE &&
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:6802: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:6807: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -6844,7 +6849,7 @@ EOF
missing_dir=`cd $ac_aux_dir && pwd`
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
echo "configure:6848: checking for working aclocal" >&5
echo "configure:6853: checking for working aclocal" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
@ -6857,7 +6862,7 @@ else
fi
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
echo "configure:6861: checking for working autoconf" >&5
echo "configure:6866: checking for working autoconf" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
@ -6870,7 +6875,7 @@ else
fi
echo $ac_n "checking for working automake""... $ac_c" 1>&6
echo "configure:6874: checking for working automake" >&5
echo "configure:6879: checking for working automake" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
@ -6883,7 +6888,7 @@ else
fi
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
echo "configure:6887: checking for working autoheader" >&5
echo "configure:6892: checking for working autoheader" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
@ -6896,7 +6901,7 @@ else
fi
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
echo "configure:6900: checking for working makeinfo" >&5
echo "configure:6905: checking for working makeinfo" >&5
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
@ -6960,7 +6965,7 @@ fi
echo $ac_n "checking for directory""... $ac_c" 1>&6
echo "configure:6964: checking for directory" >&5
echo "configure:6969: checking for directory" >&5
casc_result=
casc_env__dir=$_DIR
@ -7030,7 +7035,7 @@ fi
echo $ac_n "checking for PETSC directory""... $ac_c" 1>&6
echo "configure:7034: checking for PETSC directory" >&5
echo "configure:7039: checking for PETSC directory" >&5
casc_result=
casc_env_PETSC_dir=$PETSC_DIR
@ -7162,7 +7167,7 @@ EOF
have_PETSC=yes
echo $ac_n "checking for PETSc libraries""... $ac_c" 1>&6
echo "configure:7166: checking for PETSc libraries" >&5
echo "configure:7171: checking for PETSc libraries" >&5
if test "$casc_user_chose_petsclibs" = "no"; then
PETSCLIBS="-lpetscvec -lpetscts -lpetscsys -lpetscsnes -lpetscsles \
@ -7250,7 +7255,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:7254: checking for $ac_word" >&5
echo "configure:7259: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -7368,7 +7373,7 @@ EOF
echo $ac_n "checking for fortran libraries""... $ac_c" 1>&6
echo "configure:7372: checking for fortran libraries" >&5
echo "configure:7377: checking for fortran libraries" >&5
if eval "test \"`echo '$''{'casc_cv_f77flags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -7377,7 +7382,7 @@ else
echo $ac_n "checking for Fortran libraries""... $ac_c" 1>&6
echo "configure:7381: checking for Fortran libraries" >&5
echo "configure:7386: checking for Fortran libraries" >&5
echo " END" > conftest.f
foutput=`${F77-f77} -v -o conftest conftest.f 2>&1`
xlf_p=`echo $foutput | grep xlfentry`
@ -7596,7 +7601,7 @@ EOF
# Checks if the LIBRARY from the argument list can be used to link
# a C test program with testflib
echo $ac_n "checking for $THIS_FUNCTION in -l$casc_lib_name""... $ac_c" 1>&6
echo "configure:7600: checking for $THIS_FUNCTION in -l$casc_lib_name" >&5
echo "configure:7605: checking for $THIS_FUNCTION in -l$casc_lib_name" >&5
ac_lib_var=`echo $casc_lib_name'_'$THIS_FUNCTION | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -7604,7 +7609,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="testflib_.o $F77LIBFLAGS $LIBS -l$casc_lib_name"
cat > conftest.$ac_ext <<EOF
#line 7608 "configure"
#line 7613 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -7615,7 +7620,7 @@ int main() {
$THIS_FUNCTION()
; return 0; }
EOF
if { (eval echo configure:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -7705,7 +7710,7 @@ EOF
# Checks if the LIBRARY from the argument list can be used to link
# a C test program with testflib
echo $ac_n "checking for $THIS_FUNCTION in -lf2c""... $ac_c" 1>&6
echo "configure:7709: checking for $THIS_FUNCTION in -lf2c" >&5
echo "configure:7714: checking for $THIS_FUNCTION in -lf2c" >&5
ac_lib_var=`echo f2c'_'$THIS_FUNCTION | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -7713,7 +7718,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="testflib_.o -L/home/casc/g77/lib -lf2c $LIBS -lf2c"
cat > conftest.$ac_ext <<EOF
#line 7717 "configure"
#line 7722 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -7724,7 +7729,7 @@ int main() {
$THIS_FUNCTION()
; return 0; }
EOF
if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -7793,7 +7798,7 @@ EOF
# Checks if the LIBRARY from the argument list can be used to link
# a C test program with testflib
echo $ac_n "checking for $THIS_FUNCTION in -lsunmath""... $ac_c" 1>&6
echo "configure:7797: checking for $THIS_FUNCTION in -lsunmath" >&5
echo "configure:7802: checking for $THIS_FUNCTION in -lsunmath" >&5
ac_lib_var=`echo sunmath'_'$THIS_FUNCTION | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -7801,7 +7806,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="testflib_.o -L/opt/SUNWspro/SC4.2/lib -lF77 -lsunmath $LIBS -lsunmath"
cat > conftest.$ac_ext <<EOF
#line 7805 "configure"
#line 7810 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -7812,7 +7817,7 @@ int main() {
$THIS_FUNCTION()
; return 0; }
EOF
if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:7821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -7883,7 +7888,7 @@ EOF
# Checks if the LIBRARY from the argument list can be used to link
# a C test program with testflib
echo $ac_n "checking for $THIS_FUNCTION in -lfor""... $ac_c" 1>&6
echo "configure:7887: checking for $THIS_FUNCTION in -lfor" >&5
echo "configure:7892: checking for $THIS_FUNCTION in -lfor" >&5
ac_lib_var=`echo for'_'$THIS_FUNCTION | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -7891,7 +7896,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="testflib_.o $LIBS -lfor"
cat > conftest.$ac_ext <<EOF
#line 7895 "configure"
#line 7900 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -7902,7 +7907,7 @@ int main() {
$THIS_FUNCTION()
; return 0; }
EOF
if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -7970,7 +7975,7 @@ EOF
# Checks if the LIBRARY from the argument list can be used to link
# a C test program with testflib
echo $ac_n "checking for $THIS_FUNCTION in -lxlf90""... $ac_c" 1>&6
echo "configure:7974: checking for $THIS_FUNCTION in -lxlf90" >&5
echo "configure:7979: checking for $THIS_FUNCTION in -lxlf90" >&5
ac_lib_var=`echo xlf90'_'$THIS_FUNCTION | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -7978,7 +7983,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="testflib_.o $LIBS -lxlf90"
cat > conftest.$ac_ext <<EOF
#line 7982 "configure"
#line 7987 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -7989,7 +7994,7 @@ int main() {
$THIS_FUNCTION()
; return 0; }
EOF
if { (eval echo configure:7993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8057,7 +8062,7 @@ EOF
# Checks if the LIBRARY from the argument list can be used to link
# a C test program with testflib
echo $ac_n "checking for $THIS_FUNCTION in -lI77""... $ac_c" 1>&6
echo "configure:8061: checking for $THIS_FUNCTION in -lI77" >&5
echo "configure:8066: checking for $THIS_FUNCTION in -lI77" >&5
ac_lib_var=`echo I77'_'$THIS_FUNCTION | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8065,7 +8070,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="testflib_.o -lF77 -lU77 -lI77 -lisam $LIBS -lI77"
cat > conftest.$ac_ext <<EOF
#line 8069 "configure"
#line 8074 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -8076,7 +8081,7 @@ int main() {
$THIS_FUNCTION()
; return 0; }
EOF
if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8144,7 +8149,7 @@ echo "$ac_t""$casc_cv_f77flags" 1>&6
echo $ac_n "checking for the BLAS""... $ac_c" 1>&6
echo "configure:8148: checking for the BLAS" >&5
echo "configure:8153: checking for the BLAS" >&5
if eval "test \"`echo '$''{'casc_cv_blasflags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@ -8183,7 +8188,7 @@ fi
casc_blas_name=sunperf
casc_blas_extra_flags="-L/opt/SUNWspro/lib $F77LIBFLAGS -lm"
echo $ac_n "checking for main in -lSUNWPro_lic""... $ac_c" 1>&6
echo "configure:8187: checking for main in -lSUNWPro_lic" >&5
echo "configure:8192: checking for main in -lSUNWPro_lic" >&5
ac_lib_var=`echo SUNWPro_lic'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8191,14 +8196,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lSUNWPro_lic $casc_blas_extra_flags $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8195 "configure"
#line 8200 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8220,7 +8225,7 @@ else
fi
echo $ac_n "checking for $casc_blas_func in -l$casc_blas_name""... $ac_c" 1>&6
echo "configure:8224: checking for $casc_blas_func in -l$casc_blas_name" >&5
echo "configure:8229: checking for $casc_blas_func in -l$casc_blas_name" >&5
ac_lib_var=`echo $casc_blas_name'_'$casc_blas_func | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8228,7 +8233,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$casc_blas_name $casc_blas_extra_flags $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8232 "configure"
#line 8237 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -8239,7 +8244,7 @@ int main() {
$casc_blas_func()
; return 0; }
EOF
if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8265,7 +8270,7 @@ fi
alpha)
casc_blas_name=dxml
echo $ac_n "checking for $casc_blas_func in -l$casc_blas_name""... $ac_c" 1>&6
echo "configure:8269: checking for $casc_blas_func in -l$casc_blas_name" >&5
echo "configure:8274: checking for $casc_blas_func in -l$casc_blas_name" >&5
ac_lib_var=`echo $casc_blas_name'_'$casc_blas_func | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8273,7 +8278,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$casc_blas_name $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8277 "configure"
#line 8282 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -8284,7 +8289,7 @@ int main() {
$casc_blas_func()
; return 0; }
EOF
if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8310,7 +8315,7 @@ fi
rs6000)
casc_blas_name=essl
echo $ac_n "checking for $casc_blas_func in -l$casc_blas_name""... $ac_c" 1>&6
echo "configure:8314: checking for $casc_blas_func in -l$casc_blas_name" >&5
echo "configure:8319: checking for $casc_blas_func in -l$casc_blas_name" >&5
ac_lib_var=`echo $casc_blas_name'_'$casc_blas_func | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8318,7 +8323,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$casc_blas_name $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8322 "configure"
#line 8327 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -8329,7 +8334,7 @@ int main() {
$casc_blas_func()
; return 0; }
EOF
if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8355,7 +8360,7 @@ fi
*)
casc_blas_name=blas
echo $ac_n "checking for $casc_blas_func in -l$casc_blas_name""... $ac_c" 1>&6
echo "configure:8359: checking for $casc_blas_func in -l$casc_blas_name" >&5
echo "configure:8364: checking for $casc_blas_func in -l$casc_blas_name" >&5
ac_lib_var=`echo $casc_blas_name'_'$casc_blas_func | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8363,7 +8368,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$casc_blas_name $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8367 "configure"
#line 8372 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -8374,7 +8379,7 @@ int main() {
$casc_blas_func()
; return 0; }
EOF
if { (eval echo configure:8378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8402,7 +8407,7 @@ fi
if test "$casc_blas_found" = "no"; then
if test "$casc_blas_name" != "blas"; then
echo $ac_n "checking for $casc_blas_func in -lblas""... $ac_c" 1>&6
echo "configure:8406: checking for $casc_blas_func in -lblas" >&5
echo "configure:8411: checking for $casc_blas_func in -lblas" >&5
ac_lib_var=`echo blas'_'$casc_blas_func | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8410,7 +8415,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lblas $LIBS"
cat > conftest.$ac_ext <<EOF
#line 8414 "configure"
#line 8419 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@ -8421,7 +8426,7 @@ int main() {
$casc_blas_func()
; return 0; }
EOF
if { (eval echo configure:8425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8500,7 +8505,7 @@ fi
# check for the library from first argument. If linking is successful
# the first time, the job is done, otherwise loop through DIRECTORY-LIST
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo "configure:8504: checking for main in -lm" >&5
echo "configure:8509: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8508,14 +8513,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="$LIBDIRS $LIBS $LIBS -lm"
cat > conftest.$ac_ext <<EOF
#line 8512 "configure"
#line 8517 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8540,7 +8545,7 @@ unset ac_cv_lib_$ac_lib_var
for casc_lib_dir in /usr/lib /usr/ccs/lib; do
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo "configure:8544: checking for main in -lm" >&5
echo "configure:8549: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -8548,14 +8553,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-L$casc_lib_dir $LIBDIRS $LIBS -lm $LIBS -lm"
cat > conftest.$ac_ext <<EOF
#line 8552 "configure"
#line 8557 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -8641,6 +8646,7 @@ CXX="$PREPEND $CXX"
@ -8827,6 +8833,7 @@ s%@PREPEND@%$PREPEND%g
s%@BABEL_DIR@%$BABEL_DIR%g
s%@BABEL_HYPRE_INCLUDES@%$BABEL_HYPRE_INCLUDES%g
s%@BABELLIBFLAGS@%$BABELLIBFLAGS%g
s%@HYPRE_BABELLIBDIR@%$HYPRE_BABELLIBDIR%g
s%@PETSCLIBS@%$PETSCLIBS%g
s%@PETSCLIBDIRS@%$PETSCLIBDIRS%g
s%@PETSCINCLUDE@%$PETSCINCLUDE%g

View File

@ -830,6 +830,7 @@ then
HYPRE_FIND_MPI
fi
HYPRE_BABELLIBDIR=""
if test "$casc_using_babel" = "yes"
then
dnl jfp: temporary, until Babel has been installed somewhere:
@ -848,6 +849,10 @@ BABELLIBFLAGS="-L../babel/Hypre -lhypre_class -L${BABEL_DIR}/babel -lbabel"
babeldir="$HOME"
AC_SUBST(babeldir)
HYPRE_BABELLIBDIR="$HYPRE_TOP_SRC_DIR/babel/Hypre"
dnl CASC_FIND_BABEL
AM_INIT_AUTOMAKE()
@ -963,6 +968,7 @@ dnl * libraries
AC_SUBST(BABEL_DIR)
AC_SUBST(BABEL_HYPRE_INCLUDES)
AC_SUBST(BABELLIBFLAGS)
AC_SUBST(HYPRE_BABELLIBDIR)
dnl *PETSC-related header files, libraries and directories for those
dnl * libraries