#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Altered by Andrew Knyazev 09/17/2003 for Hypre 1.8.1b # to pass HYPRE_LAPACKLIB to LOBPCG # Copy it over the existing hypre_dir/src/configure # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_default_prefix=`pwd`/hypre ac_help="$ac_help --with-CC=ARG User can manually set C compiler to ARG. The environment variables 'CC' will be overridden by the configure script." ac_help="$ac_help --with-CXX=ARG User can manually set C++ compiler to ARG. The environment variables 'CXX' will be overridden by the configure script." ac_help="$ac_help --with-F77=ARG User can manually set f77 compiler to ARG. The environment variables 'F77' will be overridden by the configure script." ac_help="$ac_help --with-LD=ARG User can manually set linker to ARG. The environment variables 'LD' will be overridden by the configure script." ac_help="$ac_help --with-CFLAGS=ARG User can manually set c compiler flags. This option is not necessary to turn on optimization or debug flags unless you want to use an opt or debug flag that is not the default. To choose the default use --enable-opt or --enable-debug. The 'CFLAGS' environment variable will be overridden." ac_help="$ac_help --with-CXXFLAGS=ARG User can manually set c++ compiler flags. The 'CXXFLAGS' environment variable will be overridden." ac_help="$ac_help --with-F77FLAGS=ARG User can manually set f77 compiler flags. The 'F77FLAGS' environment variable will be overridden." ac_help="$ac_help --with-LDFLAGS=ARG User can manually set linker flags. The 'LDFLAGS' environment variable will be overridden." ac_help="$ac_help --with-extra-incpath=PATH define extra include path, where PATH is a space-separated list of directories." ac_help="$ac_help --with-extra-ldpath=PATH define extra ld path, where PATH is a space-separated list of directories." ac_help="$ac_help --with-insure=FLAGS FLAGS are optional to pass to insure, e.g. -Zoi \"report_file stderr\" will send output to standard error, while -Zoi \"report_file insure.log\" will send output to a file. assign cc and CC as the C and C++ compilers if not already set by user and prepends "insure" to compile/link line-- no checking is done to ensure insure is present on the machine" ac_help="$ac_help --with-purify=FLAGS FLAGS are optional to pass to purify, e.g. \"-log-file=struct_ls.purify -append-logfile=yes\" will send output to a file. assign cc and CC as the C and C++ compilers if not already set by user and prepends "purify" to compile/link line-- no checking is done to ensure purify is present on the machine" ac_help="$ac_help --with-insure-to-file direct insure output to the file \"insure.log\"" ac_help="$ac_help --with-purify-to-file direct purify output to the file \"purify.log\"" ac_help="$ac_help --with-cegdb assign gcc and g++ as the c and c++ compilers and -g as the compiler flag and link in -lcegdb and include cegdb.h-- no checking is done to ensure cegdb is on the machine" ac_help="$ac_help --with-gdb assign gcc and g++ as the C and c++ compilers and -g and the compiler flag and link in -lgdb and include gdb.h--not checking is done to ensure gdb is on the machine" ac_help="$ac_help --with-strict-checking compiles with out MPI ('--without-MPI') and assigns gcc and g++ as the c and c++ compilers." ac_help="$ac_help --with-mpi-include=DIR User specifies that mpi.h is in DIR. The options --with-mpi-include --with-mpi-libs and --with-mpi-lib-dirs must be used together." ac_help="$ac_help --with-mpi-libs=LIBS LIBS is space-separated list of library names needed for MPI, e.g. \"nsl socket mpi\". The options --with-mpi-include --with-mpi-libs and --with-mpi-lib-dirs must be used together." ac_help="$ac_help --with-mpi-lib-dirs=DIRS DIRS is space-separated list of directories containing the libraries specified by \`--with-mpi-libs', e.g \"/usr/lib /usr/local/mpi/lib\". The options --with-mpi-include --with-mpi-libs and --with-mpi-lib-dirs must be used together." ac_help="$ac_help --with-mpi-flags=FLAGS FLAGS is a space seperated list of whatever flags other than -l and -L are needed to link with MPI libraries-- Does not de-activate auto search for other MPI information. May be used with the other three mpi options or alone in conjunction with the automatic mpi search." ac_help="$ac_help --with-MPI compiles with MPI (this is the default). Selecting '--without-MPI' may affect which compiler is chosen" ac_help="$ac_help --with-COMM_SIMPLE Do not use MPI derived data types. This option is automatically chosen for IBM, but may be selected for other platforms as well." ac_help="$ac_help --with-dmalloc use dmalloc package--no checking is done to ensure the package is on the machine" ac_help="$ac_help --with-timing use HYPRE timing routines" ac_help="$ac_help --with-openmp use openMP--this may affect which compiler is chosen. Supported on IBM and DECS, test on Linux." ac_help="$ac_help --with-blas search for and use the BLAS" ac_help="$ac_help --with-babel use babel" ac_help="$ac_help --with-mli use MLI" ac_help="$ac_help --with-FEI_BASE_DIR specify the directory where the fei header files live." ac_help="$ac_help --with-FEI_LIB_DIR specify an additional directory for fei library intalls." ac_help="$ac_help --with-FEI_INC_DIR specify an additional directory for fei include installs." ac_help="$ac_help --with-mpi-include=DIR mpi.h is in DIR" ac_help="$ac_help --with-mpi-libs=LIBS LIBS is space-separated list of library names needed for MPI, e.g. \"nsl socket mpi\"" ac_help="$ac_help --with-mpi-lib-dirs=DIRS DIRS is space-separated list of directories containing the libraries specified by \`--with-mpi-libs', e.g \"/usr/lib /usr/local/mpi/lib\"" ac_help="$ac_help --with-mpi-flags=FLAGS FLAGS is space-separated list of whatever flags other than -l and -L are needed to link with mpi libraries" ac_help="$ac_help --with-MPICC=ARG ARG is mpicc or similar MPI C compiling tool" ac_help="$ac_help --enable-opt Sets up compiler flags for optimization" ac_help="$ac_help --enable-debug Sets up compiler flags for debugging" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=utilities/hypre_memory.c # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi ac_aux_dir= for ac_dir in config $srcdir/config; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fi done if test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. echo $ac_n "checking the hostname""... $ac_c" 1>&6 echo "configure:693: checking the hostname" >&5 casc_hostname=hostname HOSTNAME="`$casc_hostname`" if test -z "$HOSTNAME" then HOSTNAME=unknown echo "configure: warning: hostname is unknown" 1>&2 else echo "$ac_t""$HOSTNAME" 1>&6 fi echo $ac_n "checking the architecture""... $ac_c" 1>&6 echo "configure:707: checking the architecture" >&5 if test -z "$ARCH"; then casc_tarch_dir= for casc_dir in $srcdir $srcdir/.. $srcdir/../.. $srcdir/config; do if test -f $casc_dir/tarch; then casc_tarch_dir=$casc_dir casc_tarch=$casc_tarch_dir/tarch break fi done if test -z "$casc_tarch_dir"; then echo "configure: warning: cannot find tarch" 1>&2 ARCH=$HOSTTYPE else ARCH="`$casc_tarch`" if test -z "$ARCH" || test "$ARCH" = "unknown"; then ARCH=$HOSTTYPE fi fi if test -z "$ARCH"; then ARCH=unknown echo "configure: warning: architecture is unknown" 1>&2 else echo "$ac_t""$ARCH" 1>&6 fi else echo "$ac_t""$ARCH" 1>&6 fi casc_user_chose_compilers=no casc_user_chose_mpi=no casc_using_babel=no casc_using_mli=no casc_using_openmp=no #casc_using_ibm_smp=no #casc_using_sgi_smp=no #casc_using_pgcc_smp=no # Check whether --with-CC or --without-CC was given. if test "${with_CC+set}" = set; then withval="$with_CC" case "${withval}" in yes) casc_user_chose_compilers=no ;; no) casc_user_chose_compilers=no ;; *) casc_user_chose_compilers=yes CC=$withval ;; esac else casc_user_chose_compilers=no fi # Check whether --with-CXX or --without-CXX was given. if test "${with_CXX+set}" = set; then withval="$with_CXX" case "${withval}" in yes) casc_user_chose_compilers=no ;; no) casc_user_chose_compilers=no ;; *) casc_user_chose_compilers=yes CXX=$withval ;; esac fi # Check whether --with-F77 or --without-F77 was given. if test "${with_F77+set}" = set; then withval="$with_F77" case "${withval}" in yes) casc_user_chose_compilers=no ;; no) casc_user_chose_compilers=no ;; *) casc_user_chose_compilers=yes F77=$withval ;; esac fi # Check whether --with-LD or --without-LD was given. if test "${with_LD+set}" = set; then withval="$with_LD" case "${withval}" in yes) casc_user_chose_compilers=no ;; no) casc_user_chose_compilers=no ;; *) casc_user_chose_compilers=yes LD=$withval ;; esac fi # Check whether --with-CFLAGS or --without-CFLAGS was given. if test "${with_CFLAGS+set}" = set; then withval="$with_CFLAGS" CFLAGS=$withval fi # Check whether --with-CXXFLAGS or --without-CXXFLAGS was given. if test "${with_CXXFLAGS+set}" = set; then withval="$with_CXXFLAGS" CXXFLAGS=$withval fi # Check whether --with-F77FLAGS or --without-F77FLAGS was given. if test "${with_F77FLAGS+set}" = set; then withval="$with_F77FLAGS" F77FLAGS=$withval fi # Check whether --with-LDFLAGS or --without-LDFLAGS was given. if test "${with_LDFLAGS+set}" = set; then withval="$with_LDFLAGS" LDFLAGS=$withval fi # Check whether --with-extra-incpath or --without-extra-incpath was given. if test "${with_extra_incpath+set}" = set; then withval="$with_extra_incpath" CCFLAGS="${CCFLAGS} -I`echo ${withval}|sed 's/ /\ -I/g'`" fi # Check whether --with-extra-ldpath or --without-extra-ldpath was given. if test "${with_extra_ldpath+set}" = set; then withval="$with_extra_ldpath" LDFLAGS="-L`echo ${withval}|sed 's/ /\ -L/g'` ${LDFLAGS}" fi # Check whether --with-insure or --without-insure was given. if test "${with_insure+set}" = set; then withval="$with_insure" if test "$casc_user_chose_compilers" = "no" then CC=insure CXX=insure CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" casc_user_chose_compilers=yes fi else PREPEND="" fi # Check whether --with-purify or --without-purify was given. if test "${with_purify+set}" = set; then withval="$with_purify" if test "$casc_user_chose_compilers" = "no" then CC=cc CXX=CC CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" casc_user_chose_compilers=yes fi case "${withval}" in yes) PREPEND="purify" ;; no) PREPEND="" ;; *) PREPEND="purify $withval" ;; esac else PREPEND="" fi # Check whether --with-insure-to-file or --without-insure-to-file was given. if test "${with_insure_to_file+set}" = set; then withval="$with_insure_to_file" if test "$casc_user_chose_compilers" = "no" then CC=insure CXX=insure CFLAGS="$CFLAGS -Zoi \"report_file insure.log\"" CXXFLAGS="$CXXFLAGS -Zoi \"report_file insure.log\"" casc_user_chose_compilers=yes fi fi # Check whether --with-purify-to-file or --without-purify-to-file was given. if test "${with_purify_to_file+set}" = set; then withval="$with_purify_to_file" if test "$casc_user_chose_compilers" = "no" then CC=cc CXX=CC CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" casc_user_chose_compilers=yes fi case "${withval}" in yes) PREPEND="purify -log-file=purify.log -append-logfile=yes -best-effort";; no) PREPEND="" ;; *) PREPEND="purify $withval" ;; esac fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:934: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 # Check whether --with-cegdb or --without-cegdb was given. if test "${with_cegdb+set}" = set; then withval="$with_cegdb" CC=gcc CXX=g++ CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" for casc_dir in '' /home/casc/include ; do if test -n "$casc_dir"; then casc_header=$casc_dir/cegdb.h else casc_header=cegdb.h fi ac_safe=`echo "$casc_header" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $casc_header""... $ac_c" 1>&6 echo "configure:1030: checking for $casc_header" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 if test -n "$casc_dir"; then INCLUDES="$INCLUDES -I$casc_dir" fi casc_header_found=yes # define some macros to hopefully improve readability # 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 cegdb in -lcegdb""... $ac_c" 1>&6 echo "configure:1068: checking for cegdb in -lcegdb" >&5 ac_lib_var=`echo cegdb'_'cegdb | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="$LDLIBDIRS $LDLIBS $LIBS -lcegdb" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LDLIBS="$LDLIBS -lcegdb" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /home/casc/lib; do echo $ac_n "checking for cegdb in -lcegdb""... $ac_c" 1>&6 echo "configure:1112: checking for cegdb in -lcegdb" >&5 ac_lib_var=`echo cegdb'_'cegdb | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $LDLIBDIRS $LDLIBS -lcegdb $LIBS -lcegdb" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LDLIBDIRS="-L$casc_lib_dir $LDLIBDIRS" LDLIBS="$LDLIBS -lcegdb" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found break else echo "$ac_t""no" 1>&6 fi done unset casc_header_found casc_users_chose_compilers=yes fi # Check whether --with-gdb or --without-gdb was given. if test "${with_gdb+set}" = set; then withval="$with_gdb" CC=gcc CXX=g++ CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" for casc_dir in '' /usr/local/include /usr/include ; do if test -n "$casc_dir"; then casc_header=$casc_dir/gdb.h else casc_header=gdb.h fi ac_safe=`echo "$casc_header" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $casc_header""... $ac_c" 1>&6 echo "configure:1205: checking for $casc_header" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 if test -n "$casc_dir"; then INCLUDES="$INCLUDES -I$casc_dir" fi casc_header_found=yes # define some macros to hopefully improve readability # 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 gdb in -lgdb""... $ac_c" 1>&6 echo "configure:1243: checking for gdb in -lgdb" >&5 ac_lib_var=`echo gdb'_'gdb | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="$LDLIBDIRS $LDLIBS $LIBS -lgdb" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LDLIBS="$LDLIBS -lgdb" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /usr/local/lib /usr/lib; do echo $ac_n "checking for gdb in -lgdb""... $ac_c" 1>&6 echo "configure:1287: checking for gdb in -lgdb" >&5 ac_lib_var=`echo gdb'_'gdb | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $LDLIBDIRS $LDLIBS -lgdb $LIBS -lgdb" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LDLIBDIRS="-L$casc_lib_dir $LDLIBDIRS" LDLIBS="$LDLIBS -lgdb" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found break else echo "$ac_t""no" 1>&6 fi done unset casc_header_found casc_users_chose_compilers=yes fi # Check whether --with-strict-checking or --without-strict-checking was given. if test "${with_strict_checking+set}" = set; then withval="$with_strict_checking" CC=gcc CXX=g++ CFLAGS="$CFLAGS -Wall -ansi -pedantic" CXXFLAGS="$CXXFLAGS -Wall -Wshadow -fno-implicit-templates" CXXFLAGS="$CXXFLAGS -Woverloaded-virtual -ansi -pedantic" casc_users_chose_compilers=yes casc_using_mpi=no cat >> confdefs.h <<\EOF #define HYPRE_SEQUENTIAL 1 EOF fi # Check whether --with-mpi-include or --without-mpi-include was given. if test "${with_mpi_include+set}" = set; then withval="$with_mpi_include" for mpi_dir in $withval; do MPIINCLUDE="$MPIINCLUDE -I$withval" done; casc_user_chose_mpi=yes else casc_user_chose_mpi=no fi # Check whether --with-mpi-libs or --without-mpi-libs was given. if test "${with_mpi_libs+set}" = set; then withval="$with_mpi_libs" for mpi_lib in $withval; do MPILIBS="$MPILIBS -l$mpi_lib" done; casc_user_chose_mpi=yes fi # Check whether --with-mpi-lib-dirs or --without-mpi-lib-dirs was given. if test "${with_mpi_lib_dirs+set}" = set; then withval="$with_mpi_lib_dirs" for mpi_lib_dir in $withval; do MPILIBDIRS="-L$mpi_lib_dir $MPILIBDIRS" done; casc_user_chose_mpi=yes fi # Check whether --with-mpi-flags or --without-mpi-flags was given. if test "${with_mpi_flags+set}" = set; then withval="$with_mpi_flags" case "${withval}" in yes) MPIFLAGS="" ;; no) MPIFLAGS="" ;; *) MPIFLAGS=$withval ;; esac else MPIFLAGS="" fi # Check whether --with-MPI or --without-MPI was given. if test "${with_MPI+set}" = set; then withval="$with_MPI" case "${withval}" in yes) casc_using_mpi=yes ;; no) casc_using_mpi=no ;; *) casc_using_mpi=$withval ;; esac else casc_using_mpi=yes fi if test $casc_using_mpi = "no" then cat >> confdefs.h <<\EOF #define HYPRE_SEQUENTIAL 1 EOF fi # Check whether --with-COMM_SIMPLE or --without-COMM_SIMPLE was given. if test "${with_COMM_SIMPLE+set}" = set; then withval="$with_COMM_SIMPLE" if test "$withval" = "yes" then CFLAGS="$CFLAGS -DHYPRE_COMM_SIMPLE" fi fi # Check whether --with-dmalloc or --without-dmalloc was given. if test "${with_dmalloc+set}" = set; then withval="$with_dmalloc" if test "$withval" = "yes" then # define some macros to hopefully improve readability # 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 malloc in -ldmalloc""... $ac_c" 1>&6 echo "configure:1476: checking for malloc in -ldmalloc" >&5 ac_lib_var=`echo dmalloc'_'malloc | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="$LDLIBDIRS $LDLIBS $LIBS -ldmalloc" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LDLIBS="$LDLIBS -ldmalloc" casc_lib_found=yes cat >> confdefs.h <<\EOF #define HYPRE_MEMORY_DMALLOC 1 EOF else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /home/casc/lib /usr/local/lib; do echo $ac_n "checking for malloc in -ldmalloc""... $ac_c" 1>&6 echo "configure:1523: checking for malloc in -ldmalloc" >&5 ac_lib_var=`echo dmalloc'_'malloc | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $LDLIBDIRS $LDLIBS -ldmalloc $LIBS -ldmalloc" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LDLIBDIRS="-L$casc_lib_dir $LDLIBDIRS" LDLIBS="$LDLIBS -ldmalloc" casc_lib_found=yes cat >> confdefs.h <<\EOF #define HYPRE_MEMORY_DMALLOC 1 EOF break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found fi fi # Check whether --with-timing or --without-timing was given. if test "${with_timing+set}" = set; then withval="$with_timing" if test "$withval" = "yes" then cat >> confdefs.h <<\EOF #define HYPRE_TIMING 1 EOF fi fi # Check whether --with-openmp or --without-openmp was given. if test "${with_openmp+set}" = set; then withval="$with_openmp" case "${withval}" in yes) casc_using_openmp=yes cat >> confdefs.h <<\EOF #define HYPRE_USING_OPENMP 1 EOF ;; no) casc_using_openmp=no ;; esac else casc_using_openmp=no fi #AC_ARG_WITH(IBM_smp, #[ --with-IBM_smp use IBM SMP--not yet supported], #[case "${withval}" in # yes) casc_using_ibm_smp=yes # AC_DEFINE(HYPRE_USING_IBM_SMP) ;; # no) casc_using_ibm_smp=no ;; # esac], #[casc_using_ibm_smp=no] #) #AC_ARG_WITH(SGI_smp, #[ --with-SGI_smp use SGI SMP--not yet supported], #[case "${withval}" in # yes) casc_using_sgi_smp=yes # AC_DEFINE(HYPRE_USING_SGI_SMP) ;; # no) casc_using_sgi_smp=no ;; # esac], #[casc_using_sgi_smp=no] #) #AC_ARG_WITH(pgcc_smp, #[ --with-pgcc_smp use pgcc SMP (Red)--not yet supported], #[case "${withval}" in # yes) casc_using_pgcc_smp=yes # AC_DEFINE(HYPRE_USING_PGCC_SMP) ;; # no) casc_using_sgi_smp=no ;; # esac], #[casc_using_pgcc_smp=no] #) # Check whether --with-blas or --without-blas was given. if test "${with_blas+set}" = set; then withval="$with_blas" case "${withval}" in yes) casc_using_blas="" ;; no) casc_using_blas="" ;; *) casc_using_blas=$withval ;; esac else casc_using_blas="" fi HYPRE_TOP_SRC_DIR=`pwd` # Check whether --with-babel or --without-babel was given. if test "${with_babel+set}" = set; then withval="$with_babel" case "${withval}" in yes) casc_using_babel=yes ;; no) casc_using_babel=no ;; esac else casc_using_babel=no fi # Check whether --with-mli or --without-mli was given. if test "${with_mli+set}" = set; then withval="$with_mli" case "${withval}" in yes) casc_using_mli=yes ;; no) casc_using_mli=no ;; esac else casc_using_mli=no fi # Check whether --with-FEI_BASE_DIR or --without-FEI_BASE_DIR was given. if test "${with_FEI_BASE_DIR+set}" = set; then withval="$with_FEI_BASE_DIR" case "${withval}" in yes) FEI_BASE_DIR="${srcdir}/../fei-base" ;; no) FEI_BASE_DIR="${srcdir}/../fei-base" ;; *) FEI_BASE_DIR=$withval ;; esac else FEI_BASE_DIR="${srcdir}/../fei-base" fi # Check whether --with-FEI_LIB_DIR or --without-FEI_LIB_DIR was given. if test "${with_FEI_LIB_DIR+set}" = set; then withval="$with_FEI_LIB_DIR" case "${withval}" in yes) FEI_LIB_DIR="$HYPRE_TOP_SRC_DIR/hypre/lib" ;; no) FEI_LIB_DIR="$HYPRE_TOP_SRC_DIR/hypre/lib" ;; *) FEI_LIB_DIR=$withval ;; esac else FEI_LIB_DIR="$HYPRE_TOP_SRC_DIR/hypre/lib" fi # Check whether --with-FEI_INC_DIR or --without-FEI_INC_DIR was given. if test "${with_FEI_INC_DIR+set}" = set; then withval="$with_FEI_INC_DIR" case "${withval}" in yes) FEI_INC_DIR="$HYPRE_TOP_SRC_DIR/hypre/include" ;; no) FEI_INC_DIR="$HYPRE_TOP_SRC_DIR/hypre/include" ;; *) FEI_INC_DIR=$withval ;; esac else FEI_INC_DIR="$HYPRE_TOP_SRC_DIR/hypre/include" fi case $HOSTNAME in sasn100 ) if test "$casc_user_chose_compilers" = "no" then for ac_prog in cicc cc 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:1746: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done for ac_prog in ciCC CC 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:1780: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done for ac_prog in cif77 f77 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:1814: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi if test "$casc_user_chose_mpi" = "no" && test "$casc_using_mpi" = "yes" then for casc_dir in '' /opt/intel/tflop/current/tflops/cougar/include ; do if test -n "$casc_dir"; then casc_header=$casc_dir/mpi.h else casc_header=mpi.h fi ac_safe=`echo "$casc_header" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $casc_header""... $ac_c" 1>&6 echo "configure:1857: checking for $casc_header" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 if test -n "$casc_dir"; then INCLUDES="$INCLUDES -I$casc_dir" fi casc_header_found=yes break else echo "$ac_t""no" 1>&6 fi done unset casc_header_found MPIINCLUDE="$MPIINCLUDE $INCLUDES" # define some macros to hopefully improve readability # 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 -lmpi""... $ac_c" 1>&6 echo "configure:1909: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="$MPILIBDIRS $MPILIBS $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /opt/intel/tflop/current/tflops/cougar/lib/puma; do echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6 echo "configure:1949: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $MPILIBDIRS $MPILIBS -lmpi $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBDIRS="-L$casc_lib_dir $MPILIBDIRS" MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found if test -z "$MPILIBS" then echo "configure: warning: MPI not found--in sasn100 test-must set manually using --with-flags" 1>&2 fi fi CFLAGS="$CFLAGS" if test -z "$COPT"; then COPT="-O" fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXOPT"; then CXXOPT="-O" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test -z "$FOPT"; then FOPT="-O" fi if test -z "$FDEBUG"; then FDEBUG="-g" fi if test -z "$casc_using_blas" then casc_using_blas=yes fi ;; janus ) if test "$casc_user_chose_compilers" = "no" then for ac_prog in pgcc cc 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:2063: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done for ac_prog in pgCC CC 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:2097: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done for ac_prog in pgf77 f77 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:2131: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi if test "$casc_user_chose_mpi" = "no" && test "$casc_using_mpi" = "yes" then for casc_dir in '' /cougar/include ; do if test -n "$casc_dir"; then casc_header=$casc_dir/mpi.h else casc_header=mpi.h fi ac_safe=`echo "$casc_header" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $casc_header""... $ac_c" 1>&6 echo "configure:2174: checking for $casc_header" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 if test -n "$casc_dir"; then INCLUDES="$INCLUDES -I$casc_dir" fi casc_header_found=yes break else echo "$ac_t""no" 1>&6 fi done unset casc_header_found MPIINCLUDE="$MPIINCLUDE $INCLUDES" # define some macros to hopefully improve readability # 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 -lmpi""... $ac_c" 1>&6 echo "configure:2226: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="$MPILIBDIRS $MPILIBS $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /cougar/lib/puma; do echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6 echo "configure:2266: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $MPILIBDIRS $MPILIBS -lmpi $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBDIRS="-L$casc_lib_dir $MPILIBDIRS" MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found if test -z "$MPILIBS" then echo "configure: warning: MPI not found--in janus test-must set manually using --with-flags" 1>&2 fi fi CFLAGS="$CFLAGS -cougar -mp -Mx,123,0x2000" LIBS="$LIBS -cougar -mp -Mx,123,0x2000" if test -z "$COPT"; then COPT="-O" fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXOPT"; then CXXOPT="-O" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test -z "$FOPT"; then FOPT="-O" fi if test -z "$FDEBUG"; then FDEBUG="-g" fi if test -z "$casc_using_blas" then casc_using_blas=yes fi ;; nirvana ) if test "$casc_user_chose_compilers" = "no" then for ac_prog in cc kcc gcc 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:2381: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done for ac_prog in CC KCC g++ 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:2415: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done for ac_prog in f77 g77 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:2449: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi if test "$casc_user_chose_mpi" = "no" && test "$casc_using_mpi" = "yes" then # define some macros to hopefully improve readability # 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 -lmpi""... $ac_c" 1>&6 echo "configure:2490: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="$MPILIBDIRS $MPILIBS $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /usr/lib; do echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6 echo "configure:2530: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $MPILIBDIRS $MPILIBS -lmpi $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBDIRS="-L$casc_lib_dir $MPILIBDIRS" MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found if test -z "$MPILIBS" then echo "configure: warning: MPI not found--in nirvana test-must set manually using --with-flags" 1>&2 fi fi if test -z "$COPT"; then COPT="-O" fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXOPT"; then CXXOPT="-O" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test -z "$FOPT"; then FOPT="-O" fi if test -z "$FDEBUG"; then FDEBUG="-g" fi if test -z "$casc_using_blas" then casc_using_blas=yes fi ;; n02 ) if test "$casc_user_chose_compilers" = "no" then for ac_prog in cc kcc gcc 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:2643: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done for ac_prog in CC KCC g++ 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:2677: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done for ac_prog in f77 g77 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:2711: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi if test "$casc_user_chose_mpi" = "no" && test "$casc_using_mpi" = "yes" then # define some macros to hopefully improve readability # 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 -lmpi""... $ac_c" 1>&6 echo "configure:2752: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="$MPILIBDIRS $MPILIBS $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /usr/lib; do echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6 echo "configure:2792: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $MPILIBDIRS $MPILIBS -lmpi $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBDIRS="-L$casc_lib_dir $MPILIBDIRS" MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found if test -z "$MPILIBS" then echo "configure: warning: MPI not found--in n02 test-must set manually using --with-flags" 1>&2 fi fi if test -z "$COPT"; then COPT="-O -64" fi if test -z "$CDEBUG"; then CDEBUG="-g -64" fi if test -z "$CXXOPT"; then CXXOPT="-64 -64" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g -64" fi if test -z "$FOPT"; then FOPT="-O -64" fi if test -z "$FDEBUG"; then FDEBUG="-g -64" fi LDFLAGS="-O -64 ${LDFLAGS}" if test -z "$casc_using_blas" then casc_using_blas=yes fi ;; tckk* ) if test -z "$CC"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in cc kcc gcc c89 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:2907: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in cc kcc gcc c89 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:2943: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else for ac_prog in guidec 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:2978: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done fi fi fi if test -z "$CXX"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in cxx KCC g++ 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:3019: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in cxx KCC g++ 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:3055: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else for ac_prog in guidec++ 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:3090: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done fi fi fi if test -z "$F77"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in f77 kf77 g77 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:3131: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in f77 kf77 g77 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:3167: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else for ac_prog in guidef77 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:3202: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi fi fi if test "$casc_user_chose_mpi" = "no" && test "$casc_using_mpi" = "yes" && test "$CC" != "mpicc" then for casc_dir in '' /usr/include ; do if test -n "$casc_dir"; then casc_header=$casc_dir/mpi.h else casc_header=mpi.h fi ac_safe=`echo "$casc_header" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $casc_header""... $ac_c" 1>&6 echo "configure:3249: checking for $casc_header" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 if test -n "$casc_dir"; then INCLUDES="$INCLUDES -I$casc_dir" fi casc_header_found=yes break else echo "$ac_t""no" 1>&6 fi done unset casc_header_found MPIINCLUDE="$MPIINCLUDE $INCLUDES" # define some macros to hopefully improve readability # 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 -lrt""... $ac_c" 1>&6 echo "configure:3301: checking for main in -lrt" >&5 ac_lib_var=`echo rt'_'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 else ac_save_LIBS="$LIBS" LIBS="$LIBDIRS $LIBS $LIBS -lrt" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lrt" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /usr/lib; do echo $ac_n "checking for main in -lrt""... $ac_c" 1>&6 echo "configure:3341: checking for main in -lrt" >&5 ac_lib_var=`echo rt'_'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 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $LIBDIRS $LIBS -lrt $LIBS -lrt" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LIBDIRS="-L$casc_lib_dir $LIBDIRS" LIBS="$LIBS -lrt" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found # define some macros to hopefully improve readability # 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 -lmpi""... $ac_c" 1>&6 echo "configure:3404: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="$MPILIBDIRS $MPILIBS $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /usr/lib; do echo $ac_n "checking for main in -lmpi""... $ac_c" 1>&6 echo "configure:3444: checking for main in -lmpi" >&5 ac_lib_var=`echo mpi'_'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 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $MPILIBDIRS $MPILIBS -lmpi $LIBS -lmpi" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBDIRS="-L$casc_lib_dir $MPILIBDIRS" MPILIBS="$MPILIBS -lmpi" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found if test -z "$MPILIBS" then echo "configure: warning: MPI not found--in alpha test-must set manually using --with-flags" 1>&2 fi fi if test -z "$CFLAGS"; then if test "$CC" = "cc" || test "$CC" = "mpicc" ; then if test -z "$COPT"; then COPT="-fast" fi if test "$casc_using_openmp" = "yes"; then if test -z "$COPT"; then COPT="-fast -omp" fi fi elif test "$CC" = "kcc" ; then if test -z "$COPT"; then COPT="-o=5" fi else if test -z "$COPT"; then COPT="-O" fi fi fi if test -z "$CXXFLAGS"; then if test "$CXX" = "cxx" || test "$CXX" = "mpicxx" ; then if test -z "$CXXOPT"; then CXXOPT="-fast" fi if test "$casc_using_openmp" = "yes"; then if test -z "$CXXOPT"; then CXXOPT="-fast -omp" fi fi else if test -z "$CXXOPT"; then CXXOPT="-O" fi fi fi if test -z "$F77FLAGS"; then if test "$F77" = "f77" || test "$F77" = "mpif77" ; then if test -z "$FOPT"; then FOPT="-fast" fi else if test -z "$FOPT"; then FOPT="-O" fi fi fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test -z "$FDEBUG"; then FDEBUG="" fi ;; esac case $ARCH in sun4 | solaris ) if test -z "$CC"; then if test "$casc_using_mpi" = "no" ; then for ac_prog in cc gcc kcc 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:3612: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else for ac_prog in mpcc mpicc 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:3647: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done fi fi if test -z "$CXX"; then if test "$casc_using_mpi" = "no" ; then for ac_prog in CC g++ 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:3685: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else for ac_prog in mpCC mpiCC 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:3720: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done fi fi if test -z "$F77"; then if test "$casc_using_mpi" = "no" ; then for ac_prog in f77 g77 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:3758: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else for ac_prog in mpf77 mpif77 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:3793: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi fi if test -z "$CFLAGS"; then if test -z "$COPT"; then COPT="-O" fi fi if test -z "$CXXFLAGS"; then if test -z "$CXXOPT"; then CXXOPT="-O -DMPICH_SKIP_MPICXX" fi fi if test -z "$F77FLAGS"; then if test "$F77" != "g77"; then if test -z "$FOPT"; then FOPT="-O -silent" fi else if test -z "$FOPT"; then FOPT="-O" fi fi fi if test "$casc_user_chose_mpi" = "no" && test "$casc_using_mpi" = "yes" && test "$CC" != "mpicc" then if test -r "/usr/local/mpi/mpich-1.2.0/include/mpi.h"; then MPIINCLUDE="-I/usr/local/mpi/mpich-1.2.0/include" MPILIBS="-lmpich -lsocket -lnsl -lnsl -laio" MPILIBDIRS="-L/usr/local/mpi/mpich-1.2.0/lib" elif test -r "/usr/apps/mpich/1.2.4/include/mpi.h"; then MPIINCLUDE="-I/usr/apps/mpich/1.2.4/include" MPILIBS="-lmpich -lsocket -lnsl -lnsl -laio" MPILIBDIRS="-L/usr/apps/mpich/1.2.0/lib" else for casc_dir in '' /usr/local/mpi/mpich-1.2.0/include /usr/apps/mpich/1.2.4/include ; do if test -n "$casc_dir"; then casc_header=$casc_dir/mpi.h else casc_header=mpi.h fi ac_safe=`echo "$casc_header" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $casc_header""... $ac_c" 1>&6 echo "configure:3881: checking for $casc_header" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:3891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 if test -n "$casc_dir"; then INCLUDES="$INCLUDES -I$casc_dir" fi casc_header_found=yes break else echo "$ac_t""no" 1>&6 fi done unset casc_header_found MPIINCLUDE="$MPIINCLUDE $INCLUDES" # define some macros to hopefully improve readability # 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 MPI_Init in -lmpich""... $ac_c" 1>&6 echo "configure:3933: checking for MPI_Init in -lmpich" >&5 ac_lib_var=`echo mpich'_'MPI_Init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="$MPILIBDIRS $MPILIBS $LIBS -lmpich" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBS="$MPILIBS -lmpich" casc_lib_found=yes else echo "$ac_t""no" 1>&6 unset ac_cv_lib_$ac_lib_var for casc_lib_dir in /usr/local/mpi/mpich-1.2.0/lib /usr/apps/mpich/1.2.4/lib; do echo $ac_n "checking for MPI_Init in -lmpich""... $ac_c" 1>&6 echo "configure:3977: checking for MPI_Init in -lmpich" >&5 ac_lib_var=`echo mpich'_'MPI_Init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-L$casc_lib_dir $MPILIBDIRS $MPILIBS -lmpich $LIBS -lmpich" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 MPILIBDIRS="-L$casc_lib_dir $MPILIBDIRS" MPILIBS="$MPILIBS -lmpich" casc_lib_found=yes break else echo "$ac_t""no" 1>&6 fi unset ac_cv_lib_$ac_lib_var done fi unset ac_cv_lib_$ac_lib_var # ACTION-IF-NOT_FOUND for when the library is found nowhere unset casc_lib_found fi if test -z "$MPILIBS" then echo "configure: warning: MPI not found--in alpha test-must set manually using --with-flags" 1>&2 fi fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test "$F77" != "g77" then if test -z "$FDEBUG"; then FDEBUG="-g -silent" fi else if test -z "$FDEBUG"; then FDEBUG="-g" fi fi ;; LINUX | Linux ) if test -z "$CC"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in ccc icc pgcc gcc cc kcc KCC 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:4082: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpiicc mpipgcc icc mpicc 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:4118: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else for ac_prog in mpiicc mpipgcc icc pgcc 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:4153: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done fi fi fi if test -z "$CXX"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in icc pgCC CC g++ KCC 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:4194: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpiicc mpipgCC icc mpiCC 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:4230: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else for ac_prog in mpiicc mpipgCC icc pgCC 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:4265: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done fi fi fi if test -z "$F77"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in ifc pgf77 fort f77 g77 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:4306: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpiifc mpipgf77 ifc mpif77 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:4342: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else for ac_prog in mpiifc mpipgf77 ifc pgf77 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:4377: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi fi fi if test "$casc_using_mpi" = "yes" && test "$casc_user_chose_mpi" = "no" then if test "$CC" = "icc" ; then MPIINCLUDE="-I/usr/lib/mpi_ifc/include" MPILIBS="-lmpi -lelan -lmpif -lelan3 -lrmscall" MPILIBDIRS="-L/usr/lib/mpi_ifc/lib" fi fi if test "$casc_using_openmp" = "no" ; then if test -z "$CFLAGS"; then if test "$CC" = "pgcc" ; then if test -z "$COPT"; then COPT="-fast" fi elif test "$CC" = "icc" ; then if test -z "$COPT"; then COPT="-O3 -xW -tpp7" fi else if test -z "$COPT"; then COPT="-O" fi fi fi if test -z "$CXXFLAGS"; then if test "$CXX" = "pgCC" ; then if test -z "$CXXOPT"; then CXXOPT="-fast" fi elif test "$CXX" = "icc" ; then if test -z "$CXXOPT"; then CXXOPT="-O3 -xW -tpp7" fi else if test -z "$CXXOPT"; then CXXOPT="-O -DMPICH_SKIP_MPICXX" fi fi fi if test -z "$F77FLAGS"; then if test "$F77" = "pgf77" ; then if test -z "$FOPT"; then FOPT="-fast" fi elif test "$F77" = "ifc" ; then if test -z "$FOPT"; then FOPT="-O3 -xW -tpp7" fi else if test -z "$FOPT"; then FOPT="-O" fi fi fi else if test -z "$CFLAGS"; then if test "$CC" = "pgcc" ; then if test -z "$COPT"; then COPT="-fast -mp" fi elif test "$CC" = "icc" ; then if test -z "$COPT"; then COPT="-O3 -openmp -xW -tpp7" fi else if test -z "$COPT"; then COPT="-O" fi fi fi if test -z "$CXXFLAGS"; then if test "$CXX" = "pgCC" ; then if test -z "$CXXOPT"; then CXXOPT="-fast -mp" fi elif test "$CXX" = "icc" ; then if test -z "$CXXOPT"; then CXXOPT="-O3 -openmp -xW -tpp7" fi else if test -z "$CXXOPT"; then CXXOPT="-O" fi fi fi if test -z "$F77FLAGS"; then if test "$F77" = "pgf77" ; then if test -z "$FOPT"; then FOPT="-fast -mp" fi elif test "$F77" = "ifc" ; then if test -z "$FOPT"; then FOPT="-O3 -openmp -xW -tpp7" fi else if test -z "$FOPT"; then FOPT="-O" fi fi fi fi if test "$casc_using_mpi" = "no" ; then CFLAGS="$CFLAGS -DHYPRE_COMM_SIMPLE" fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test -z "$FDEBUG"; then FDEBUG="-g" fi ;; hpux | HPUX | hppa | HPPA ) if test -z "$CC"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in c89 cc gcc kcc 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:4599: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpicc 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:4635: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else for ac_prog in guidec 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:4670: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done fi fi fi if test -z "$CXX"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in aCC CC g++ 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:4711: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpiCC 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:4747: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else for ac_prog in guidec++ 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:4782: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done fi fi fi if test -z "$F77"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in fort77 f77 g77 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:4823: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpif77 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:4859: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done else for ac_prog in guidef77 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:4894: 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 if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F77="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi F77="$ac_cv_prog_F77" if test -n "$F77"; then echo "$ac_t""$F77" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$F77" && break done fi fi fi if test -z "$CFLAGS"; then if test -z "$COPT"; then COPT="-O" fi fi if test -z "$CXXFLAGS"; then if test -z "$CXXOPT"; then CXXOPT="-O" fi fi if test -z "$F77FLAGS"; then if test -z "$FOPT"; then FOPT="-O" fi fi if test -z "$CDEBUG"; then CDEBUG="-g" fi if test -z "$CXXDEBUG"; then CXXDEBUG="-g" fi if test -z "$FDEBUG"; then FDEBUG="-g" fi ;; alpha) if test -z "$CC"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in cc kcc gcc c89 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:4981: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpicc cc kcc 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:5017: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done else for ac_prog in guidec 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:5052: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CC" && break done fi fi fi if test -z "$CXX"; then if test "$casc_using_mpi" = "no" && test "$casc_using_openmp" = "no" then for ac_prog in cxx KCC g++ 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:5093: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CXX="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi CXX="$ac_cv_prog_CXX" if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6 else echo "$ac_t""no" 1>&6 fi test -n "$CXX" && break done else if test "$casc_using_openmp" = "no" ; then for ac_prog in mpicxx cxx KCC 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:5129: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else IFS="${IFS= }";