ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
(Generate patch)

Comparing trunk/OOPSE/configure (file contents):
Revision 816 by gezelter, Fri Oct 24 17:36:02 2003 UTC vs.
Revision 1238 by gezelter, Fri Jun 4 14:59:17 2004 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.57 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10   ## --------------------- ##
# Line 22 | Line 21 | fi
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26   # Support unset when possible.
27 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28    as_unset=unset
29   else
30    as_unset=false
# Line 43 | Line 43 | do
43    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44    LC_TELEPHONE LC_TIME
45   do
46 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47      eval $as_var=C; export $as_var
48    else
49      $as_unset $as_var
# Line 220 | Line 220 | else
220   if mkdir -p . 2>/dev/null; then
221    as_mkdir_p=:
222   else
223 +  test -d ./-p && rmdir ./-p
224    as_mkdir_p=false
225   fi
226  
227   as_executable_p="test -f"
228  
229   # Sed expression to map a string onto a valid CPP name.
230 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231  
232   # Sed expression to map a string onto a valid variable name.
233 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234  
235  
236   # IFS
# Line 311 | Line 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKA
312   # include <unistd.h>
313   #endif"
314  
315 < ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME DEBUG build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315 > ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 670 | Line 671 | for ac_var in bindir sbindir libexecdir datadir syscon
671  
672   # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
# Line 710 | Line 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711    # Try the directory containing this script, then its parent.
712    ac_confdir=`(dirname "$0") 2>/dev/null ||
713   $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 <         X"$0" : 'X\(//\)[^/]' \| \
715 <         X"$0" : 'X\(//\)$' \| \
716 <         X"$0" : 'X\(/\)' \| \
717 <         .     : '\(.\)' 2>/dev/null ||
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718   echo X"$0" |
719      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 784 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   ac_cv_env_F90FLAGS_value=$F90FLAGS
787 ac_env_MPIF77_set=${MPIF77+set}
788 ac_env_MPIF77_value=$MPIF77
789 ac_cv_env_MPIF77_set=${MPIF77+set}
790 ac_cv_env_MPIF77_value=$MPIF77
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 825 | Line 822 | Installation directories:
822    cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 874 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
878 <  --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
879 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
874 >  --with-mpi=<prefix>     compile with MPI libraries in <prefix> [default=no]
875    --with-sprng_prefix=PREFIX
876                            Prefix where SPRNG is installed
877    --with-sprng-libdir=PREFIX  SPRNG library directory
878    --with-sprng-include=PREFIX
879                            SPRNG include directory
880 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
886 <  --with-mpi_f90_mods=<dir>
887 <                          Location where MPI f90 modules are installed
880 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
881  
882   Some influential environment variables:
883    CC          C compiler command
# Line 897 | Line 890 | Some influential environment variables:
890    CXXFLAGS    C++ compiler flags
891    F90         Fortran 90 compiler command
892    F90FLAGS    Fortran 90 compiler flags
900  MPIF77      MPI Fortran compiler command
893    CPP         C preprocessor
894  
895   Use these variables to override the choices made by `configure' or to help
# Line 937 | Line 929 | esac
929      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930      ac_top_srcdir=$ac_top_builddir$srcdir ;;
931   esac
932 < # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
933 < # absolute.
934 < ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
935 < ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
936 < ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
937 < ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 >
933 > # Do not use `cd foo && pwd` to compute absolute paths, because
934 > # the directories may not exist.
935 > case `pwd` in
936 > .) ac_abs_builddir="$ac_dir";;
937 > *)
938 >  case "$ac_dir" in
939 >  .) ac_abs_builddir=`pwd`;;
940 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 >  esac;;
943 > esac
944 > case $ac_abs_builddir in
945 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 > *)
947 >  case ${ac_top_builddir}. in
948 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
949 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 >  esac;;
952 > esac
953 > case $ac_abs_builddir in
954 > .) ac_abs_srcdir=$ac_srcdir;;
955 > *)
956 >  case $ac_srcdir in
957 >  .) ac_abs_srcdir=$ac_abs_builddir;;
958 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 >  esac;;
961 > esac
962 > case $ac_abs_builddir in
963 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 > *)
965 >  case $ac_top_srcdir in
966 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 >  esac;;
970 > esac
971  
972      cd $ac_dir
973      # Check for guested configure; otherwise get Cygnus style configure.
# Line 953 | Line 978 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir &
978        echo
979        $SHELL $ac_srcdir/configure  --help=recursive
980      elif test -f $ac_srcdir/configure.ac ||
981 <           test -f $ac_srcdir/configure.in; then
981 >           test -f $ac_srcdir/configure.in; then
982        echo
983        $ac_configure --help
984      else
# Line 967 | Line 992 | generated by GNU Autoconf 2.57
992   if $ac_init_version; then
993    cat <<\_ACEOF
994   OOPSE configure 1.0
995 < generated by GNU Autoconf 2.57
995 > generated by GNU Autoconf 2.59
996  
997 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 < Free Software Foundation, Inc.
997 > Copyright (C) 2003 Free Software Foundation, Inc.
998   This configure script is free software; the Free Software Foundation
999   gives unlimited permission to copy, distribute and modify it.
1000   _ACEOF
# Line 982 | Line 1006 | generated by GNU Autoconf 2.57.  Invocation command li
1006   running configure, to aid debugging if configure makes a mistake.
1007  
1008   It was created by OOPSE $as_me 1.0, which was
1009 < generated by GNU Autoconf 2.57.  Invocation command line was
1009 > generated by GNU Autoconf 2.59.  Invocation command line was
1010  
1011    $ $0 $@
1012  
# Line 1059 | Line 1083 | do
1083      2)
1084        ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085        if test $ac_must_keep_next = true; then
1086 <        ac_must_keep_next=false # Got value, back to normal.
1086 >        ac_must_keep_next=false # Got value, back to normal.
1087        else
1088 <        case $ac_arg in
1089 <          *=* | --config-cache | -C | -disable-* | --disable-* \
1090 <          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 <          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 <          | -with-* | --with-* | -without-* | --without-* | --x)
1093 <            case "$ac_configure_args0 " in
1094 <              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 <            esac
1096 <            ;;
1097 <          -* ) ac_must_keep_next=true ;;
1098 <        esac
1088 >        case $ac_arg in
1089 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1090 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 >          | -with-* | --with-* | -without-* | --without-* | --x)
1093 >            case "$ac_configure_args0 " in
1094 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 >            esac
1096 >            ;;
1097 >          -* ) ac_must_keep_next=true ;;
1098 >        esac
1099        fi
1100        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101        # Get rid of the leading space.
# Line 1105 | Line 1129 | _ASBOX
1129      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130      *ac_space=\ *)
1131        sed -n \
1132 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134        ;;
1135      *)
1136        sed -n \
1137 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138        ;;
1139      esac;
1140   }
# Line 1139 | Line 1163 | _ASBOX
1163        for ac_var in $ac_subst_files
1164        do
1165          eval ac_val=$`echo $ac_var`
1166 <        echo "$ac_var='"'"'$ac_val'"'"'"
1166 >        echo "$ac_var='"'"'$ac_val'"'"'"
1167        done | sort
1168        echo
1169      fi
# Line 1158 | Line 1182 | _ASBOX
1182        echo "$as_me: caught signal $ac_signal"
1183      echo "$as_me: exit $exit_status"
1184    } >&5
1185 <  rm -f core core.* *.core &&
1185 >  rm -f core *.core &&
1186    rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187      exit $exit_status
1188       ' 0
# Line 1238 | Line 1262 | for ac_var in `(set) 2>&1 |
1262   # value.
1263   ac_cache_corrupted=false
1264   for ac_var in `(set) 2>&1 |
1265 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267    eval ac_new_set=\$ac_env_${ac_var}_set
1268    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
# Line 1255 | Line 1279 | echo "$as_me: error: \`$ac_var' was not set in the pre
1279      ,);;
1280      *)
1281        if test "x$ac_old_val" != "x$ac_new_val"; then
1282 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283   echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285   echo "$as_me:   former value:  $ac_old_val" >&2;}
1286 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287   echo "$as_me:   current value: $ac_new_val" >&2;}
1288 <        ac_cache_corrupted=:
1288 >        ac_cache_corrupted=:
1289        fi;;
1290    esac
1291    # Pass precious variables to config.status.
# Line 1828 | Line 1852 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1852  
1853  
1854  
1831 # what should I build?
1855  
1856 < # Check whether --enable-debug or --disable-debug was given.
1857 < if test "${enable_debug+set}" = set; then
1858 <  enableval="$enable_debug"
1859 <  DEBUG=1
1860 < fi;
1856 >
1857 >
1858 >
1859 >
1860 >
1861 >
1862 >
1863 >
1864 >
1865 >
1866 >
1867 >
1868  
1869 +
1870   # set program name
1871   PROGNAME="oopse"
1872  
1873  
1874 + # there are two ways to do debugging.  One with the --enable-debug flag
1875 + # and one using the DEBUG environment variable
1876 +
1877 + debug=0
1878 + # Check whether --enable-debug or --disable-debug was given.
1879 + if test "${enable_debug+set}" = set; then
1880 +  enableval="$enable_debug"
1881 +  debug=1
1882 + fi;
1883   if test "${DEBUG}"; then
1884  
1885   cat >>confdefs.h <<\_ACEOF
1886 < #define DEBUG 1
1886 > #define debug 1
1887   _ACEOF
1888  
1889    msg="$msg, debug mode"
# Line 2025 | Line 2065 | cat >conftest.$ac_ext <<_ACEOF
2065    (exit $ac_status); }
2066  
2067   cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2068   /* confdefs.h.  */
2069   _ACEOF
2070   cat confdefs.h >>conftest.$ac_ext
# Line 2045 | Line 2084 | echo "$as_me:$LINENO: checking for C compiler default
2084   # Try to create an executable without -o first, disregard a.out.
2085   # It will help us diagnose broken compilers, and finding out an intuition
2086   # of exeext.
2087 < echo "$as_me:$LINENO: checking for C compiler default output" >&5
2088 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2087 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090   if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091    (eval $ac_link_default) 2>&5
# Line 2066 | Line 2105 | do
2105    test -f "$ac_file" || continue
2106    case $ac_file in
2107      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108 <        ;;
2108 >        ;;
2109      conftest.$ac_ext )
2110 <        # This is the source file.
2111 <        ;;
2110 >        # This is the source file.
2111 >        ;;
2112      [ab].out )
2113 <        # We found the default executable, but exeext='' is most
2114 <        # certainly right.
2115 <        break;;
2113 >        # We found the default executable, but exeext='' is most
2114 >        # certainly right.
2115 >        break;;
2116      *.* )
2117 <        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 <        # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 <        # but it would be cool to find out if it's true.  Does anybody
2120 <        # maintain Libtool? --akim.
2121 <        export ac_cv_exeext
2122 <        break;;
2117 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 >        # but it would be cool to find out if it's true.  Does anybody
2120 >        # maintain Libtool? --akim.
2121 >        export ac_cv_exeext
2122 >        break;;
2123      * )
2124 <        break;;
2124 >        break;;
2125    esac
2126   done
2127   else
# Line 2156 | Line 2195 | for ac_file in conftest.exe conftest conftest.*; do
2195    case $ac_file in
2196      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 <          export ac_cv_exeext
2199 <          break;;
2198 >          export ac_cv_exeext
2199 >          break;;
2200      * ) break;;
2201    esac
2202   done
# Line 2182 | Line 2221 | else
2221    echo $ECHO_N "(cached) $ECHO_C" >&6
2222   else
2223    cat >conftest.$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2224   /* confdefs.h.  */
2225   _ACEOF
2226   cat confdefs.h >>conftest.$ac_ext
# Line 2233 | Line 2271 | else
2271    echo $ECHO_N "(cached) $ECHO_C" >&6
2272   else
2273    cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2274   /* confdefs.h.  */
2275   _ACEOF
2276   cat confdefs.h >>conftest.$ac_ext
# Line 2253 | Line 2290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   _ACEOF
2291   rm -f conftest.$ac_objext
2292   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 <  (eval $ac_compile) 2>&5
2293 >  (eval $ac_compile) 2>conftest.er1
2294    ac_status=$?
2295 +  grep -v '^ *+' conftest.er1 >conftest.err
2296 +  rm -f conftest.er1
2297 +  cat conftest.err >&5
2298    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299    (exit $ac_status); } &&
2300 <         { ac_try='test -s conftest.$ac_objext'
2300 >         { ac_try='test -z "$ac_c_werror_flag"
2301 >                         || test ! -s conftest.err'
2302    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303    (eval $ac_try) 2>&5
2304    ac_status=$?
2305    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 +  (exit $ac_status); }; } &&
2307 +         { ac_try='test -s conftest.$ac_objext'
2308 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 +  (eval $ac_try) 2>&5
2310 +  ac_status=$?
2311 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312    (exit $ac_status); }; }; then
2313    ac_compiler_gnu=yes
2314   else
# Line 2270 | Line 2317 | rm -f conftest.$ac_objext conftest.$ac_ext
2317  
2318   ac_compiler_gnu=no
2319   fi
2320 < rm -f conftest.$ac_objext conftest.$ac_ext
2320 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2322  
2323   fi
# Line 2286 | Line 2333 | else
2333    echo $ECHO_N "(cached) $ECHO_C" >&6
2334   else
2335    cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2336   /* confdefs.h.  */
2337   _ACEOF
2338   cat confdefs.h >>conftest.$ac_ext
# Line 2303 | Line 2349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   _ACEOF
2350   rm -f conftest.$ac_objext
2351   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 <  (eval $ac_compile) 2>&5
2352 >  (eval $ac_compile) 2>conftest.er1
2353    ac_status=$?
2354 +  grep -v '^ *+' conftest.er1 >conftest.err
2355 +  rm -f conftest.er1
2356 +  cat conftest.err >&5
2357    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358    (exit $ac_status); } &&
2359 <         { ac_try='test -s conftest.$ac_objext'
2359 >         { ac_try='test -z "$ac_c_werror_flag"
2360 >                         || test ! -s conftest.err'
2361    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362    (eval $ac_try) 2>&5
2363    ac_status=$?
2364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 +  (exit $ac_status); }; } &&
2366 +         { ac_try='test -s conftest.$ac_objext'
2367 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 +  (eval $ac_try) 2>&5
2369 +  ac_status=$?
2370 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371    (exit $ac_status); }; }; then
2372    ac_cv_prog_cc_g=yes
2373   else
# Line 2320 | Line 2376 | rm -f conftest.$ac_objext conftest.$ac_ext
2376  
2377   ac_cv_prog_cc_g=no
2378   fi
2379 < rm -f conftest.$ac_objext conftest.$ac_ext
2379 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380   fi
2381   echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2382   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
# Line 2347 | Line 2403 | cat >conftest.$ac_ext <<_ACEOF
2403    ac_cv_prog_cc_stdc=no
2404   ac_save_CC=$CC
2405   cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2406   /* confdefs.h.  */
2407   _ACEOF
2408   cat confdefs.h >>conftest.$ac_ext
# Line 2375 | Line 2430 | int test (int i, double x);
2430    va_end (v);
2431    return s;
2432   }
2433 +
2434 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435 +   function prototypes and stuff, but not '\xHH' hex character constants.
2436 +   These don't provoke an error unfortunately, instead are silently treated
2437 +   as 'x'.  The following induces an error, until -std1 is added to get
2438 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2439 +   array size at least.  It's necessary to write '\x00'==0 to get something
2440 +   that's true only with -std1.  */
2441 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2442 +
2443   int test (int i, double x);
2444   struct s1 {int (*f) (int a);};
2445   struct s2 {int (*f) (double a);};
# Line 2401 | Line 2466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466    CC="$ac_save_CC $ac_arg"
2467    rm -f conftest.$ac_objext
2468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 <  (eval $ac_compile) 2>&5
2469 >  (eval $ac_compile) 2>conftest.er1
2470    ac_status=$?
2471 +  grep -v '^ *+' conftest.er1 >conftest.err
2472 +  rm -f conftest.er1
2473 +  cat conftest.err >&5
2474    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475    (exit $ac_status); } &&
2476 <         { ac_try='test -s conftest.$ac_objext'
2476 >         { ac_try='test -z "$ac_c_werror_flag"
2477 >                         || test ! -s conftest.err'
2478 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 >  (eval $ac_try) 2>&5
2480 >  ac_status=$?
2481 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 >  (exit $ac_status); }; } &&
2483 >         { ac_try='test -s conftest.$ac_objext'
2484    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485    (eval $ac_try) 2>&5
2486    ac_status=$?
# Line 2418 | Line 2493 | rm -f conftest.$ac_objext
2493   sed 's/^/| /' conftest.$ac_ext >&5
2494  
2495   fi
2496 < rm -f conftest.$ac_objext
2496 > rm -f conftest.err conftest.$ac_objext
2497   done
2498   rm -f conftest.$ac_ext conftest.$ac_objext
2499   CC=$ac_save_CC
# Line 2446 | Line 2521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521   _ACEOF
2522   rm -f conftest.$ac_objext
2523   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 <  (eval $ac_compile) 2>&5
2524 >  (eval $ac_compile) 2>conftest.er1
2525    ac_status=$?
2526 +  grep -v '^ *+' conftest.er1 >conftest.err
2527 +  rm -f conftest.er1
2528 +  cat conftest.err >&5
2529    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530    (exit $ac_status); } &&
2531 <         { ac_try='test -s conftest.$ac_objext'
2531 >         { ac_try='test -z "$ac_c_werror_flag"
2532 >                         || test ! -s conftest.err'
2533    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534    (eval $ac_try) 2>&5
2535    ac_status=$?
2536    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 +  (exit $ac_status); }; } &&
2538 +         { ac_try='test -s conftest.$ac_objext'
2539 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 +  (eval $ac_try) 2>&5
2541 +  ac_status=$?
2542 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543    (exit $ac_status); }; }; then
2544    for ac_declaration in \
2545 <   ''\
2461 <   '#include <stdlib.h>' \
2545 >   '' \
2546     'extern "C" void std::exit (int) throw (); using std::exit;' \
2547     'extern "C" void std::exit (int); using std::exit;' \
2548     'extern "C" void exit (int) throw ();' \
# Line 2466 | Line 2550 | do
2550     'void exit (int);'
2551   do
2552    cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2553   /* confdefs.h.  */
2554   _ACEOF
2555   cat confdefs.h >>conftest.$ac_ext
2556   cat >>conftest.$ac_ext <<_ACEOF
2557   /* end confdefs.h.  */
2475 #include <stdlib.h>
2558   $ac_declaration
2559 + #include <stdlib.h>
2560   int
2561   main ()
2562   {
# Line 2484 | Line 2567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   _ACEOF
2568   rm -f conftest.$ac_objext
2569   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 <  (eval $ac_compile) 2>&5
2570 >  (eval $ac_compile) 2>conftest.er1
2571    ac_status=$?
2572 +  grep -v '^ *+' conftest.er1 >conftest.err
2573 +  rm -f conftest.er1
2574 +  cat conftest.err >&5
2575    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576    (exit $ac_status); } &&
2577 <         { ac_try='test -s conftest.$ac_objext'
2577 >         { ac_try='test -z "$ac_c_werror_flag"
2578 >                         || test ! -s conftest.err'
2579    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580    (eval $ac_try) 2>&5
2581    ac_status=$?
2582    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 +  (exit $ac_status); }; } &&
2584 +         { ac_try='test -s conftest.$ac_objext'
2585 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 +  (eval $ac_try) 2>&5
2587 +  ac_status=$?
2588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589    (exit $ac_status); }; }; then
2590    :
2591   else
# Line 2501 | Line 2594 | rm -f conftest.$ac_objext conftest.$ac_ext
2594  
2595   continue
2596   fi
2597 < rm -f conftest.$ac_objext conftest.$ac_ext
2597 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598    cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2599   /* confdefs.h.  */
2600   _ACEOF
2601   cat confdefs.h >>conftest.$ac_ext
# Line 2520 | Line 2612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   _ACEOF
2613   rm -f conftest.$ac_objext
2614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 <  (eval $ac_compile) 2>&5
2615 >  (eval $ac_compile) 2>conftest.er1
2616    ac_status=$?
2617 +  grep -v '^ *+' conftest.er1 >conftest.err
2618 +  rm -f conftest.er1
2619 +  cat conftest.err >&5
2620    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621    (exit $ac_status); } &&
2622 <         { ac_try='test -s conftest.$ac_objext'
2622 >         { ac_try='test -z "$ac_c_werror_flag"
2623 >                         || test ! -s conftest.err'
2624    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625    (eval $ac_try) 2>&5
2626    ac_status=$?
2627    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 +  (exit $ac_status); }; } &&
2629 +         { ac_try='test -s conftest.$ac_objext'
2630 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 +  (eval $ac_try) 2>&5
2632 +  ac_status=$?
2633 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634    (exit $ac_status); }; }; then
2635    break
2636   else
# Line 2536 | Line 2638 | rm -f conftest.$ac_objext conftest.$ac_ext
2638   sed 's/^/| /' conftest.$ac_ext >&5
2639  
2640   fi
2641 < rm -f conftest.$ac_objext conftest.$ac_ext
2641 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642   done
2643   rm -f conftest*
2644   if test -n "$ac_declaration"; then
# Line 2550 | Line 2652 | rm -f conftest.$ac_objext conftest.$ac_ext
2652   sed 's/^/| /' conftest.$ac_ext >&5
2653  
2654   fi
2655 < rm -f conftest.$ac_objext conftest.$ac_ext
2655 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656   ac_ext=c
2657   ac_cpp='$CPP $CPPFLAGS'
2658   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560
2561
2562
2563
2564 # Try to determine "good" native compiler flags if none specified on command
2565 # line
2566 if test "$ac_test_CFLAGS" != "set"; then
2567  CFLAGS=""
2568  case "${host_cpu}-${host_os}" in
2569
2570  *linux*) if test "$CC" = icc; then
2571                    CFLAGS="-O"
2572                fi;;
2573  sparc-solaris2*) if test "$CC" = cc; then
2574                    CFLAGS="-native -fast -xO5 -dalign"
2575                 fi;;
2576
2577  alpha*-osf*)  if test "$CC" = cc; then
2578                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
2579                fi;;
2580
2581  hppa*-hpux*)  if test "$CC" = cc; then
2582                    CFLAGS="-Ae +O3 +Oall"
2583                fi;;
2584
2585   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
2586                    CFLAGS="-O3 -qtune=auto -qansialias -w"
2587                fi;;
2588   powerpc*-aix*)
2589        if test "$CC" = cc -o "$CC" = xlc; then
2590                CFLAGS="-O3 -qtune=auto -qansialias -w"
2591                echo "*******************************************************"
2592                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2593                echo "*  recommended that you use                           *"
2594                echo "*                                                     *"
2595                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2596                echo "*                                 ^^^                 *"
2597                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2598                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2599                echo "*******************************************************"
2600        fi;;
2601   *darwin*)
2602        if test "$CC" = xlc -o "$CC" = cc; then
2603                CFLAGS="-O3 -qtune=auto -w"
2604                echo "*******************************************************"
2605                echo "*  You have Darwin on an unknown powerpc system.      *"
2606                echo "*  It is recommended that you use                     *"
2607                echo "*                                                     *"
2608                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
2609                echo "*                               ^^^                   *"
2610                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2611                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2612                echo "*******************************************************"
2613        fi;;
2614  esac
2615
2616  # use default flags for gcc on all systems
2617  if test $ac_cv_c_compiler_gnu = yes; then
2618     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2619  fi
2620
2621  # test for gcc-specific flags:
2622  if test $ac_cv_c_compiler_gnu = yes; then
2623    # -malign-double for x86 systems
2624
2625
2626 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
2627 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
2628 if test "${ac_align_double+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631  echo 'void f(){}' > conftest.c
2632 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
2633        ac_align_double=yes
2634 else
2635        ac_align_double=no
2636 fi
2637 rm -f conftest*
2661  
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_align_double" >&5
2641 echo "${ECHO_T}$ac_align_double" >&6
2642 if test "$ac_align_double" = yes; then
2643        :
2644        CFLAGS="$CFLAGS -malign-double"
2645 else
2646        :
2662  
2648 fi
2649
2650    # -fstrict-aliasing for gcc-2.95+
2651
2652
2653 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2654 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2655 if test "${ac_fstrict_aliasing+set}" = set; then
2656  echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658  echo 'void f(){}' > conftest.c
2659 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2660        ac_fstrict_aliasing=yes
2661 else
2662        ac_fstrict_aliasing=no
2663 fi
2664 rm -f conftest*
2665
2666 fi
2667 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
2668 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2669 if test "$ac_fstrict_aliasing" = yes; then
2670        :
2671        CFLAGS="$CFLAGS -fstrict-aliasing"
2672 else
2673        :
2674
2675 fi
2676
2677  fi
2678
2679  CPU_FLAGS=""
2680  if test "$GCC" = "yes"; then
2681                  case "${host_cpu}" in
2682          i586*)
2683
2684 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2685 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2686 if test "${ac_cpu_pentium+set}" = set; then
2687  echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689  echo 'void f(){}' > conftest.c
2690 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2691        ac_cpu_pentium=yes
2692 else
2693        ac_cpu_pentium=no
2694 fi
2695 rm -f conftest*
2696
2697 fi
2698 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
2699 echo "${ECHO_T}$ac_cpu_pentium" >&6
2700 if test "$ac_cpu_pentium" = yes; then
2701        :
2702        CPU_FLAGS=-mcpu=pentium
2703 else
2704        :
2705
2706
2707 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
2708 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
2709 if test "${ac_pentium+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712  echo 'void f(){}' > conftest.c
2713 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2714        ac_pentium=yes
2715 else
2716        ac_pentium=no
2717 fi
2718 rm -f conftest*
2719
2720 fi
2721 echo "$as_me:$LINENO: result: $ac_pentium" >&5
2722 echo "${ECHO_T}$ac_pentium" >&6
2723 if test "$ac_pentium" = yes; then
2724        :
2725        CPU_FLAGS=-mpentium
2726 else
2727        :
2728
2729 fi
2730
2731 fi
2732
2733                  ;;
2734          i686*)
2735
2736 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2737 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2738 if test "${ac_cpu_pentiumpro+set}" = set; then
2739  echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741  echo 'void f(){}' > conftest.c
2742 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2743        ac_cpu_pentiumpro=yes
2744 else
2745        ac_cpu_pentiumpro=no
2746 fi
2747 rm -f conftest*
2748
2749 fi
2750 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
2751 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2752 if test "$ac_cpu_pentiumpro" = yes; then
2753        :
2754        CPU_FLAGS=-mcpu=pentiumpro
2755 else
2756        :
2757
2758
2759 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2760 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2761 if test "${ac_pentiumpro+set}" = set; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764  echo 'void f(){}' > conftest.c
2765 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2766        ac_pentiumpro=yes
2767 else
2768        ac_pentiumpro=no
2769 fi
2770 rm -f conftest*
2771
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
2774 echo "${ECHO_T}$ac_pentiumpro" >&6
2775 if test "$ac_pentiumpro" = yes; then
2776        :
2777        CPU_FLAGS=-mpentiumpro
2778 else
2779        :
2780
2781 fi
2782
2783 fi
2784
2785                  ;;
2786          powerpc*)
2787                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2788                is60x=`echo $cputype | egrep "^600-9e?$"`
2789                if test -n "$is60x"; then
2790
2791
2792 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2793 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2794 if test "${ac_m_cpu_60x+set}" = set; then
2795  echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797  echo 'void f(){}' > conftest.c
2798 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2799        ac_m_cpu_60x=yes
2800 else
2801        ac_m_cpu_60x=no
2802 fi
2803 rm -f conftest*
2804
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
2807 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2808 if test "$ac_m_cpu_60x" = yes; then
2809        :
2810        CPU_FLAGS=-mcpu=$cputype
2811 else
2812        :
2813
2814 fi
2815
2816                elif test "$cputype" = 750; then
2817
2818
2819 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
2820 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2821 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824
2825 cat > conftest.c <<EOF
2826 #ifdef __GNUC__
2827 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2828     yes;
2829 #  endif
2830 #endif
2831 EOF
2832 if { ac_try='${CC-cc} -E conftest.c'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2838  ac_cv_prog_gcc_2_95=yes
2839 else
2840  ac_cv_prog_gcc_2_95=no
2841 fi
2842
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
2845 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2846 if test "$ac_cv_prog_gcc_2_95" = yes; then
2847        :
2848
2849
2850 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
2851 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2852 if test "${ac_m_cpu_750+set}" = set; then
2853  echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855  echo 'void f(){}' > conftest.c
2856 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2857        ac_m_cpu_750=yes
2858 else
2859        ac_m_cpu_750=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
2865 echo "${ECHO_T}$ac_m_cpu_750" >&6
2866 if test "$ac_m_cpu_750" = yes; then
2867        :
2868        CPU_FLAGS=-mcpu=750
2869 else
2870        :
2871
2872 fi
2873
2874 else
2875        :
2876
2877 fi
2878
2879                fi
2880                if test -z "$CPU_FLAGS"; then
2881
2882
2883 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2884 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2885 if test "${ac_m_cpu_powerpc+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888  echo 'void f(){}' > conftest.c
2889 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2890        ac_m_cpu_powerpc=yes
2891 else
2892        ac_m_cpu_powerpc=no
2893 fi
2894 rm -f conftest*
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
2898 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2899 if test "$ac_m_cpu_powerpc" = yes; then
2900        :
2901        CPU_FLAGS=-mcpu=powerpc
2902 else
2903        :
2904
2905 fi
2906
2907                fi
2908                if test -z "$CPU_FLAGS"; then
2909
2910
2911 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
2912 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2913 if test "${ac_m_powerpc+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916  echo 'void f(){}' > conftest.c
2917 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2918        ac_m_powerpc=yes
2919 else
2920        ac_m_powerpc=no
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
2926 echo "${ECHO_T}$ac_m_powerpc" >&6
2927 if test "$ac_m_powerpc" = yes; then
2928        :
2929        CPU_FLAGS=-mpowerpc
2930 else
2931        :
2932
2933 fi
2934
2935                fi
2936          esac
2937  fi
2938
2939  if test -n "$CPU_FLAGS"; then
2940        CFLAGS="$CFLAGS $CPU_FLAGS"
2941  fi
2942
2943  if test -z "$CFLAGS"; then
2944        echo ""
2945        echo "********************************************************"
2946        echo "* WARNING: Don't know the best CFLAGS for this system  *"
2947        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2948        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
2949        echo "********************************************************"
2950        echo ""
2951        CFLAGS="-O3"
2952  fi
2953
2954
2955
2956 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2957 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2958 if test "${ac_guessed_cflags+set}" = set; then
2959  echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961  echo 'void f(){}' > conftest.c
2962 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2963        ac_guessed_cflags=yes
2964 else
2965        ac_guessed_cflags=no
2966 fi
2967 rm -f conftest*
2968
2969 fi
2970 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
2971 echo "${ECHO_T}$ac_guessed_cflags" >&6
2972 if test "$ac_guessed_cflags" = yes; then
2973        :
2974
2975 else
2976        :
2977
2978        echo ""
2979        echo "********************************************************"
2980        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
2981        echo "* your compiler.                                       *"
2982        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2983        echo "********************************************************"
2984        echo ""
2985        CFLAGS=""
2986
2987 fi
2988
2989
2990 fi
2991
2663   ac_ext=cc
2664   ac_cpp='$CXXCPP $CPPFLAGS'
2665   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2668   if test -n "$ac_tool_prefix"; then
2669 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2669 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2670    do
2671      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3037 | Line 2708 | if test -z "$CXX"; then
2708   fi
2709   if test -z "$CXX"; then
2710    ac_ct_CXX=$CXX
2711 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2711 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2712   do
2713    # Extract the first word of "$ac_prog", so it can be a program name with args.
2714   set dummy $ac_prog; ac_word=$2
# Line 3108 | Line 2779 | else
2779    echo $ECHO_N "(cached) $ECHO_C" >&6
2780   else
2781    cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
2782   /* confdefs.h.  */
2783   _ACEOF
2784   cat confdefs.h >>conftest.$ac_ext
# Line 3128 | Line 2798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798   _ACEOF
2799   rm -f conftest.$ac_objext
2800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 <  (eval $ac_compile) 2>&5
2801 >  (eval $ac_compile) 2>conftest.er1
2802    ac_status=$?
2803 +  grep -v '^ *+' conftest.er1 >conftest.err
2804 +  rm -f conftest.er1
2805 +  cat conftest.err >&5
2806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807    (exit $ac_status); } &&
2808 <         { ac_try='test -s conftest.$ac_objext'
2808 >         { ac_try='test -z "$ac_cxx_werror_flag"
2809 >                         || test ! -s conftest.err'
2810    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811    (eval $ac_try) 2>&5
2812    ac_status=$?
2813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 +  (exit $ac_status); }; } &&
2815 +         { ac_try='test -s conftest.$ac_objext'
2816 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 +  (eval $ac_try) 2>&5
2818 +  ac_status=$?
2819 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820    (exit $ac_status); }; }; then
2821    ac_compiler_gnu=yes
2822   else
# Line 3145 | Line 2825 | rm -f conftest.$ac_objext conftest.$ac_ext
2825  
2826   ac_compiler_gnu=no
2827   fi
2828 < rm -f conftest.$ac_objext conftest.$ac_ext
2828 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2830  
2831   fi
# Line 3161 | Line 2841 | else
2841    echo $ECHO_N "(cached) $ECHO_C" >&6
2842   else
2843    cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
2844   /* confdefs.h.  */
2845   _ACEOF
2846   cat confdefs.h >>conftest.$ac_ext
# Line 3178 | Line 2857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857   _ACEOF
2858   rm -f conftest.$ac_objext
2859   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 <  (eval $ac_compile) 2>&5
2860 >  (eval $ac_compile) 2>conftest.er1
2861    ac_status=$?
2862 +  grep -v '^ *+' conftest.er1 >conftest.err
2863 +  rm -f conftest.er1
2864 +  cat conftest.err >&5
2865    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866    (exit $ac_status); } &&
2867 <         { ac_try='test -s conftest.$ac_objext'
2867 >         { ac_try='test -z "$ac_cxx_werror_flag"
2868 >                         || test ! -s conftest.err'
2869    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870    (eval $ac_try) 2>&5
2871    ac_status=$?
2872    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 +  (exit $ac_status); }; } &&
2874 +         { ac_try='test -s conftest.$ac_objext'
2875 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 +  (eval $ac_try) 2>&5
2877 +  ac_status=$?
2878 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879    (exit $ac_status); }; }; then
2880    ac_cv_prog_cxx_g=yes
2881   else
# Line 3195 | Line 2884 | rm -f conftest.$ac_objext conftest.$ac_ext
2884  
2885   ac_cv_prog_cxx_g=no
2886   fi
2887 < rm -f conftest.$ac_objext conftest.$ac_ext
2887 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888   fi
2889   echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2890   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
# Line 3215 | Line 2904 | for ac_declaration in \
2904    fi
2905   fi
2906   for ac_declaration in \
2907 <   ''\
3219 <   '#include <stdlib.h>' \
2907 >   '' \
2908     'extern "C" void std::exit (int) throw (); using std::exit;' \
2909     'extern "C" void std::exit (int); using std::exit;' \
2910     'extern "C" void exit (int) throw ();' \
# Line 3224 | Line 2912 | do
2912     'void exit (int);'
2913   do
2914    cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
2915   /* confdefs.h.  */
2916   _ACEOF
2917   cat confdefs.h >>conftest.$ac_ext
2918   cat >>conftest.$ac_ext <<_ACEOF
2919   /* end confdefs.h.  */
3233 #include <stdlib.h>
2920   $ac_declaration
2921 + #include <stdlib.h>
2922   int
2923   main ()
2924   {
# Line 3242 | Line 2929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   _ACEOF
2930   rm -f conftest.$ac_objext
2931   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 <  (eval $ac_compile) 2>&5
2932 >  (eval $ac_compile) 2>conftest.er1
2933    ac_status=$?
2934 +  grep -v '^ *+' conftest.er1 >conftest.err
2935 +  rm -f conftest.er1
2936 +  cat conftest.err >&5
2937    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938    (exit $ac_status); } &&
2939 <         { ac_try='test -s conftest.$ac_objext'
2939 >         { ac_try='test -z "$ac_cxx_werror_flag"
2940 >                         || test ! -s conftest.err'
2941    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942    (eval $ac_try) 2>&5
2943    ac_status=$?
2944    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 +  (exit $ac_status); }; } &&
2946 +         { ac_try='test -s conftest.$ac_objext'
2947 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 +  (eval $ac_try) 2>&5
2949 +  ac_status=$?
2950 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951    (exit $ac_status); }; }; then
2952    :
2953   else
# Line 3259 | Line 2956 | rm -f conftest.$ac_objext conftest.$ac_ext
2956  
2957   continue
2958   fi
2959 < rm -f conftest.$ac_objext conftest.$ac_ext
2959 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960    cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
2961   /* confdefs.h.  */
2962   _ACEOF
2963   cat confdefs.h >>conftest.$ac_ext
# Line 3278 | Line 2974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974   _ACEOF
2975   rm -f conftest.$ac_objext
2976   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 <  (eval $ac_compile) 2>&5
2977 >  (eval $ac_compile) 2>conftest.er1
2978    ac_status=$?
2979 +  grep -v '^ *+' conftest.er1 >conftest.err
2980 +  rm -f conftest.er1
2981 +  cat conftest.err >&5
2982    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983    (exit $ac_status); } &&
2984 <         { ac_try='test -s conftest.$ac_objext'
2984 >         { ac_try='test -z "$ac_cxx_werror_flag"
2985 >                         || test ! -s conftest.err'
2986    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987    (eval $ac_try) 2>&5
2988    ac_status=$?
2989    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 +  (exit $ac_status); }; } &&
2991 +         { ac_try='test -s conftest.$ac_objext'
2992 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 +  (eval $ac_try) 2>&5
2994 +  ac_status=$?
2995 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996    (exit $ac_status); }; }; then
2997    break
2998   else
# Line 3294 | Line 3000 | rm -f conftest.$ac_objext conftest.$ac_ext
3000   sed 's/^/| /' conftest.$ac_ext >&5
3001  
3002   fi
3003 < rm -f conftest.$ac_objext conftest.$ac_ext
3003 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004   done
3005   rm -f conftest*
3006   if test -n "$ac_declaration"; then
# Line 3310 | Line 3016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017  
3018  
3019 + OOPSE_TEMPLATE_FLAGS=""
3020 + if test $ac_cv_cxx_compiler_gnu = no; then
3021 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3022 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3023 +  echo 'void f(){}' > conftest.cc
3024 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3025 +    echo "$as_me:$LINENO: result: yes" >&5
3026 + echo "${ECHO_T}yes" >&6
3027 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3028 +  else
3029 +    echo "$as_me:$LINENO: result: no" >&5
3030 + echo "${ECHO_T}no" >&6
3031 +  fi
3032 +  rm -f conftest*
3033 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3034 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3035 +  echo 'void f(){}' > conftest.cc
3036 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3037 +    echo "$as_me:$LINENO: result: yes" >&5
3038 + echo "${ECHO_T}yes" >&6
3039 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3040 +  else
3041 +    echo "$as_me:$LINENO: result: no" >&5
3042 + echo "${ECHO_T}no" >&6
3043 +  fi
3044 +  rm -f conftest*
3045 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3046 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3047 +  echo 'void f(){}' > conftest.cc
3048 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3049 +    echo "$as_me:$LINENO: result: yes" >&5
3050 + echo "${ECHO_T}yes" >&6
3051 +    OOPSE_TEMPLATE_FLAGS="-pto"
3052 +  else
3053 +    echo "$as_me:$LINENO: result: no" >&5
3054 + echo "${ECHO_T}no" >&6
3055 +  fi
3056 +  rm -f conftest*
3057 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3058 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3059 +  echo 'void f(){}' > conftest.cc
3060 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3061 +    echo "$as_me:$LINENO: result: yes" >&5
3062 + echo "${ECHO_T}yes" >&6
3063  
3064  
3065 <
3066 < # Try to determine "good" native compiler flags if none specified on command
3067 < # line
3068 < if test "$ac_test_CXXFLAGS" != "set"; then
3319 <  CXXFLAGS=""
3320 <  case "${host_cpu}-${host_os}" in
3321 <
3322 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3323 <                    CXXFLAGS="-O"
3324 <                fi;;
3325 <  sparc-solaris2*) if test "$CXX" = CC; then
3326 <                    CXXFLAGS="-native -fast -xO5 -dalign"
3327 <                 fi;;
3328 <   rs6000*-aix*)  if test "$CXX" = xlC; then
3329 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3330 <                fi;;
3331 <   powerpc*-aix*)
3332 <        if test "$CXX" = xlC; then
3333 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
3334 <                echo "*******************************************************"
3335 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3336 <                echo "*  recommended that you use                           *"
3337 <                echo "*                                                     *"
3338 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3339 <                echo "*                                 ^^^                 *"
3340 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3341 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3342 <                echo "*******************************************************"
3343 <        fi;;
3344 <   *darwin*)
3345 <        if test "$CXX" = xlC; then
3346 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3347 <                echo "*******************************************************"
3348 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3349 <                echo "*  recommended that you use                           *"
3350 <                echo "*                                                     *"
3351 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3352 <                echo "*                                 ^^^                 *"
3353 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3354 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3355 <                echo "*******************************************************"
3356 <        fi;;
3357 <  esac
3358 <
3359 <  # use default flags for gcc on all systems
3360 <  if test $ac_cv_c_compiler_gnu = yes; then
3361 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3065 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3066 >  else
3067 >    echo "$as_me:$LINENO: result: no" >&5
3068 > echo "${ECHO_T}no" >&6
3069    fi
3070 + fi
3071  
3364  # test for gcc-specific flags:
3365  if test $ac_cv_c_compiler_gnu = yes; then
3366    # -malign-double for x86 systems
3072  
3073  
3074 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
3075 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3076 < if test "${ac_align_double+set}" = set; then
3074 >
3075 > ac_ext=f90
3076 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3077 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3079 > if test -n "$ac_tool_prefix"; then
3080 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3081 >  do
3082 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 > if test "${ac_cv_prog_F90+set}" = set; then
3087    echo $ECHO_N "(cached) $ECHO_C" >&6
3088   else
3089 <  echo 'void f(){}' > conftest.cpp
3090 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3376 <        ac_align_double=yes
3089 >  if test -n "$F90"; then
3090 >  ac_cv_prog_F90="$F90" # Let the user override the test.
3091   else
3092 <        ac_align_double=no
3093 < fi
3094 < rm -f conftest*
3092 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 > for as_dir in $PATH
3094 > do
3095 >  IFS=$as_save_IFS
3096 >  test -z "$as_dir" && as_dir=.
3097 >  for ac_exec_ext in '' $ac_executable_extensions; do
3098 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3100 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 >    break 2
3102 >  fi
3103 > done
3104 > done
3105  
3106   fi
3107 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
3108 < echo "${ECHO_T}$ac_align_double" >&6
3109 < if test "$ac_align_double" = yes; then
3110 <        :
3111 <        CXXFLAGS="$CXXFLAGS -malign-double"
3107 > fi
3108 > F90=$ac_cv_prog_F90
3109 > if test -n "$F90"; then
3110 >  echo "$as_me:$LINENO: result: $F90" >&5
3111 > echo "${ECHO_T}$F90" >&6
3112   else
3113 <        :
3114 <
3113 >  echo "$as_me:$LINENO: result: no" >&5
3114 > echo "${ECHO_T}no" >&6
3115   fi
3116  
3117 <    # -fstrict-aliasing for gcc-2.95+
3118 <
3119 <
3120 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3121 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3122 < if test "${ac_fstrict_aliasing+set}" = set; then
3117 >    test -n "$F90" && break
3118 >  done
3119 > fi
3120 > if test -z "$F90"; then
3121 >  ac_ct_F90=$F90
3122 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3123 > do
3124 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3125 > set dummy $ac_prog; ac_word=$2
3126 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3127 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128 > if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3129    echo $ECHO_N "(cached) $ECHO_C" >&6
3130   else
3131 <  echo 'void f(){}' > conftest.cpp
3132 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3403 <        ac_fstrict_aliasing=yes
3131 >  if test -n "$ac_ct_F90"; then
3132 >  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3133   else
3134 <        ac_fstrict_aliasing=no
3135 < fi
3136 < rm -f conftest*
3134 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 > for as_dir in $PATH
3136 > do
3137 >  IFS=$as_save_IFS
3138 >  test -z "$as_dir" && as_dir=.
3139 >  for ac_exec_ext in '' $ac_executable_extensions; do
3140 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3142 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 >    break 2
3144 >  fi
3145 > done
3146 > done
3147  
3148   fi
3149 < echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3150 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3151 < if test "$ac_fstrict_aliasing" = yes; then
3152 <        :
3153 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
3149 > fi
3150 > ac_ct_F90=$ac_cv_prog_ac_ct_F90
3151 > if test -n "$ac_ct_F90"; then
3152 >  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3153 > echo "${ECHO_T}$ac_ct_F90" >&6
3154 > else
3155 >  echo "$as_me:$LINENO: result: no" >&5
3156 > echo "${ECHO_T}no" >&6
3157 > fi
3158 >
3159 >  test -n "$ac_ct_F90" && break
3160 > done
3161 >
3162 >  F90=$ac_ct_F90
3163 > fi
3164 >
3165 >
3166 > # If we don't use `.F90' as extension, the preprocessor is not run on the
3167 > # input file.
3168 > ac_save_ext=$ac_ext
3169 > ac_ext=F90
3170 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3171 > echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3172 > if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3173 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3174 > else
3175 >  cat >conftest.$ac_ext <<_ACEOF
3176 >
3177 > program main
3178 >
3179 > #ifndef __GNUC__
3180 >       choke me
3181 > #endif
3182 >
3183 > end program main
3184 >
3185 > _ACEOF
3186 > rm -f conftest.$ac_objext
3187 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 >  (eval $ac_compile) 2>conftest.er1
3189 >  ac_status=$?
3190 >  grep -v '^ *+' conftest.er1 >conftest.err
3191 >  rm -f conftest.er1
3192 >  cat conftest.err >&5
3193 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 >  (exit $ac_status); } &&
3195 >         { ac_try='test -z "$ac_f90_werror_flag"
3196 >                         || test ! -s conftest.err'
3197 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 >  (eval $ac_try) 2>&5
3199 >  ac_status=$?
3200 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 >  (exit $ac_status); }; } &&
3202 >         { ac_try='test -s conftest.$ac_objext'
3203 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 >  (eval $ac_try) 2>&5
3205 >  ac_status=$?
3206 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 >  (exit $ac_status); }; }; then
3208 >  ac_compiler_gnu=yes
3209 > else
3210 >  echo "$as_me: failed program was:" >&5
3211 > sed 's/^/| /' conftest.$ac_ext >&5
3212 >
3213 > ac_compiler_gnu=no
3214 > fi
3215 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216 > ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3217 >
3218 > fi
3219 > echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3220 > echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3221 > ac_ext=$ac_save_ext
3222 > G95=`test $ac_compiler_gnu = yes && echo yes`
3223 > ac_ext=c
3224 > ac_cpp='$CPP $CPPFLAGS'
3225 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 >
3229 >
3230 >
3231 >
3232 >
3233 > # Try to determine native compiler flags that allow us to use F90 suffix
3234 > # for preprocessed f90 source.
3235 >
3236 > if test "$ac_test_PREPFLAG" != "set"; then
3237 >  PREPFLAG=""
3238 >  case "${host_cpu}-${host_os}" in
3239 >
3240 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3241 >                    PREPFLAG="-fpp1 "
3242 >                fi;;
3243 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3244 >                    PREPFLAG="-qsuffix=cpp=F90 "
3245 >                fi;;
3246 >  *darwin*)
3247 >        if test "$F90" = f90 -o "$F90" = xlf90; then
3248 >                PREPFLAG="-qsuffix=cpp=F90 "
3249 >        fi;;
3250 >  esac
3251 >
3252 >  if test -z "$PREPFLAG"; then
3253 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3254 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3255 >        PREPFLAG=""
3256 >  fi
3257 >
3258 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3259 > echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3260 >
3261 >
3262 >  ac_ext=f90
3263 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3264 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3266 >
3267 >  ac_save_ext=$ac_ext
3268 >  ac_ext=F90
3269 >  ac_save_F90FLAGS=$F90FLAGS
3270 >
3271 >  if test "$PREPFLAG"; then
3272 >  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3273 > fi
3274 >
3275 >    cat >conftest.$ac_ext <<_ACEOF
3276 >
3277 >
3278 > program main
3279 >
3280 >  integer :: i
3281 >  i = 1
3282 >
3283 >
3284 > end program main
3285 >
3286 > _ACEOF
3287 > rm -f conftest.$ac_objext
3288 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 >  (eval $ac_compile) 2>conftest.er1
3290 >  ac_status=$?
3291 >  grep -v '^ *+' conftest.er1 >conftest.err
3292 >  rm -f conftest.er1
3293 >  cat conftest.err >&5
3294 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 >  (exit $ac_status); } &&
3296 >         { ac_try='test -z "$ac_f90_werror_flag"
3297 >                         || test ! -s conftest.err'
3298 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 >  (eval $ac_try) 2>&5
3300 >  ac_status=$?
3301 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 >  (exit $ac_status); }; } &&
3303 >         { ac_try='test -s conftest.$ac_objext'
3304 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 >  (eval $ac_try) 2>&5
3306 >  ac_status=$?
3307 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 >  (exit $ac_status); }; }; then
3309 >  prepflagworks=1
3310 > else
3311 >  echo "$as_me: failed program was:" >&5
3312 > sed 's/^/| /' conftest.$ac_ext >&5
3313 >
3314 > prepflagworks=0
3315 > fi
3316 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317 >
3318 >  F90FLAGS=$ac_save_F90FLAGS
3319 >  ac_ext=$ac_save_ext
3320 >  ac_ext=c
3321 > ac_cpp='$CPP $CPPFLAGS'
3322 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 >
3326 >
3327 >  if test "$prepflagworks" = 1; then
3328 >    echo "$as_me:$LINENO: result: yes" >&5
3329 > echo "${ECHO_T}yes" >&6
3330 >
3331 >  else
3332 >    echo "$as_me:$LINENO: result: no" >&5
3333 > echo "${ECHO_T}no" >&6
3334 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3335 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3336 >   { (exit 1); exit 1; }; }
3337 >  fi
3338 > fi
3339 >
3340 >
3341 >
3342 >
3343 >
3344 > # Try to determine native compiler flags that allow us to use F90 suffix
3345 > # for preprocessed f90 source with -D type defines
3346 >
3347 > if test "$ac_test_PREPDEFFLAG" != "set"; then
3348 >  PREPDEFFLAG=""
3349 >  case "${host_cpu}-${host_os}" in
3350 >
3351 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3352 >                    PREPDEFFLAG=" "
3353 >                fi;;
3354 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3355 >                    PREPDEFFLAG="-WF,"
3356 >                fi;;
3357 >  *darwin*)
3358 >        if test "$F90" = f90 -o "$F90" = xlf90; then
3359 >                PREPDEFFLAG="-WF,"
3360 >        fi;;
3361 >  esac
3362 >
3363 >  if test -z "$PREPDEFFLAG"; then
3364 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3365 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3366 >        PREPDEFFLAG=" "
3367 >  fi
3368 >
3369 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3370 > echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3371 >
3372 >
3373 >  ac_ext=f90
3374 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3375 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3377 >
3378 >  ac_save_ext=$ac_ext
3379 >  ac_ext=F90
3380 >  ac_save_F90FLAGS=$F90FLAGS
3381 >
3382 >  if test "$PREPDEFFLAG"; then
3383 >  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3384 > fi
3385 >
3386 >    cat >conftest.$ac_ext <<_ACEOF
3387 >
3388 >
3389 > program main
3390 >
3391 >  integer :: i
3392 > #ifdef TEST
3393 >  i = 1
3394 > #else
3395 >  choke me
3396 > #endif
3397 >
3398 >
3399 > end program main
3400 >
3401 > _ACEOF
3402 > rm -f conftest.$ac_objext
3403 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 >  (eval $ac_compile) 2>conftest.er1
3405 >  ac_status=$?
3406 >  grep -v '^ *+' conftest.er1 >conftest.err
3407 >  rm -f conftest.er1
3408 >  cat conftest.err >&5
3409 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 >  (exit $ac_status); } &&
3411 >         { ac_try='test -z "$ac_f90_werror_flag"
3412 >                         || test ! -s conftest.err'
3413 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 >  (eval $ac_try) 2>&5
3415 >  ac_status=$?
3416 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 >  (exit $ac_status); }; } &&
3418 >         { ac_try='test -s conftest.$ac_objext'
3419 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 >  (eval $ac_try) 2>&5
3421 >  ac_status=$?
3422 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 >  (exit $ac_status); }; }; then
3424 >  prepdefflagworks=1
3425 > else
3426 >  echo "$as_me: failed program was:" >&5
3427 > sed 's/^/| /' conftest.$ac_ext >&5
3428 >
3429 > prepdefflagworks=0
3430 > fi
3431 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432 >
3433 >  F90FLAGS=$ac_save_F90FLAGS
3434 >  ac_ext=$ac_save_ext
3435 >  ac_ext=c
3436 > ac_cpp='$CPP $CPPFLAGS'
3437 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 >
3441 >
3442 >
3443 >  if test "$prepdefflagworks" = 1; then
3444 >    echo "$as_me:$LINENO: result: yes" >&5
3445 > echo "${ECHO_T}yes" >&6
3446 >
3447 >  else
3448 >    echo "$as_me:$LINENO: result: no" >&5
3449 > echo "${ECHO_T}no" >&6
3450 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3451 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3452 >   { (exit 1); exit 1; }; }
3453 >  fi
3454 > fi
3455 >
3456 > ac_ext=f90
3457 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3458 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3460 >
3461 >
3462 >
3463 > ac_ext=f90
3464 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3465 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3467 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3468 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3469 > if test "${ac_cv_prog_f90_v+set}" = set; then
3470 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3471 > else
3472 >
3473 > cat >conftest.$ac_ext <<_ACEOF
3474 >
3475 > program main
3476 >
3477 >
3478 > end program main
3479 >
3480 > _ACEOF
3481 > rm -f conftest.$ac_objext
3482 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 >  (eval $ac_compile) 2>conftest.er1
3484 >  ac_status=$?
3485 >  grep -v '^ *+' conftest.er1 >conftest.err
3486 >  rm -f conftest.er1
3487 >  cat conftest.err >&5
3488 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 >  (exit $ac_status); } &&
3490 >         { ac_try='test -z "$ac_f90_werror_flag"
3491 >                         || test ! -s conftest.err'
3492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 >  (eval $ac_try) 2>&5
3494 >  ac_status=$?
3495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 >  (exit $ac_status); }; } &&
3497 >         { ac_try='test -s conftest.$ac_objext'
3498 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 >  (eval $ac_try) 2>&5
3500 >  ac_status=$?
3501 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 >  (exit $ac_status); }; }; then
3503 >  ac_cv_prog_f90_v=
3504 > # Try some options frequently used verbose output
3505 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3506 >  ac_ext=f90
3507 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3508 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3510 >
3511 > cat >conftest.$ac_ext <<_ACEOF
3512 >
3513 > program main
3514 >
3515 >
3516 > end program main
3517 >
3518 > _ACEOF
3519 >
3520 > # Compile and link our simple test program by passing a flag (argument
3521 > # 1 to this macro) to the Fortran 90 compiler in order to get
3522 > # "verbose" output that we can then parse for the Fortran 90 linker
3523 > # flags.
3524 > ac_save_F90FLAGS=$F90FLAGS
3525 > F90FLAGS="$F90FLAGS $ac_verb"
3526 >
3527 > (eval echo $as_me:3527: \"$ac_link\") >&5
3528 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3529 > echo "$ac_f90_v_output" >&5
3530 > F90FLAGS=$ac_save_F90FLAGS
3531 >
3532 > rm -f conftest.*
3533 > ac_ext=f90
3534 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3535 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3537 >
3538 > # If we are using xlf then replace all the commas with spaces.
3539 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3540 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3541 > fi
3542 >
3543 > # If we are using Cray Fortran then delete quotes.
3544 > # Use "\"" instead of '"' for font-lock-mode.
3545 > # FIXME: a more general fix for quoted arguments with spaces?
3546 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3547 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3548 > fi
3549 >  # look for -l* and *.a constructs in the output
3550 >  for ac_arg in $ac_f90_v_output; do
3551 >     case $ac_arg in
3552 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3553 >          ac_cv_prog_f90_v=$ac_verb
3554 >          break 2 ;;
3555 >     esac
3556 >  done
3557 > done
3558 > if test -z "$ac_cv_prog_f90_v"; then
3559 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3560 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3561 > fi
3562 > else
3563 >  echo "$as_me: failed program was:" >&5
3564 > sed 's/^/| /' conftest.$ac_ext >&5
3565 >
3566 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3567 > echo "$as_me: WARNING: compilation failed" >&2;}
3568 > fi
3569 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570 >
3571 > fi
3572 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3573 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3574 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3575 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3576 > if test "${ac_cv_flibs+set}" = set; then
3577 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3578 > else
3579 >  if test "x$F90LIBS" != "x"; then
3580 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3581 > else
3582 >
3583 > ac_ext=f90
3584 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3585 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3587 >
3588 > cat >conftest.$ac_ext <<_ACEOF
3589 >
3590 > program main
3591 >
3592 >
3593 > end program main
3594 >
3595 > _ACEOF
3596 >
3597 > # Compile and link our simple test program by passing a flag (argument
3598 > # 1 to this macro) to the Fortran 90 compiler in order to get
3599 > # "verbose" output that we can then parse for the Fortran 90 linker
3600 > # flags.
3601 > ac_save_F90FLAGS=$F90FLAGS
3602 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3603 >
3604 > (eval echo $as_me:3604: \"$ac_link\") >&5
3605 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3606 > echo "$ac_f90_v_output" >&5
3607 > F90FLAGS=$ac_save_F90FLAGS
3608 >
3609 > rm -f conftest.*
3610 > ac_ext=f90
3611 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3612 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3614 >
3615 > # If we are using xlf then replace all the commas with spaces.
3616 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3617 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3618 > fi
3619 >
3620 > # If we are using Cray Fortran then delete quotes.
3621 > # Use "\"" instead of '"' for font-lock-mode.
3622 > # FIXME: a more general fix for quoted arguments with spaces?
3623 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3624 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3625 > fi
3626 >
3627 > ac_cv_f90libs=
3628 >
3629 > # Save positional arguments (if any)
3630 > ac_save_positional="$@"
3631 >
3632 > set X $ac_f90_v_output
3633 > while test $# != 1; do
3634 >  shift
3635 >  ac_arg=$1
3636 >  case $ac_arg in
3637 >        [\\/]*.a | ?:[\\/]*.a)
3638 >            ac_exists=false
3639 >  for ac_i in $ac_cv_f90libs; do
3640 >    if test x"$ac_arg" = x"$ac_i"; then
3641 >      ac_exists=true
3642 >      break
3643 >    fi
3644 >  done
3645 >
3646 >  if test x"$ac_exists" = xtrue; then
3647 >  :
3648   else
3649 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3650 + fi
3651 +
3652 +          ;;
3653 +        -bI:*)
3654 +            ac_exists=false
3655 +  for ac_i in $ac_cv_f90libs; do
3656 +    if test x"$ac_arg" = x"$ac_i"; then
3657 +      ac_exists=true
3658 +      break
3659 +    fi
3660 +  done
3661 +
3662 +  if test x"$ac_exists" = xtrue; then
3663 +  :
3664 + else
3665 +  if test "$ac_compiler_gnu" = yes; then
3666 +  for ac_link_opt in $ac_arg; do
3667 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3668 +  done
3669 + else
3670 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3671 + fi
3672 + fi
3673 +
3674 +          ;;
3675 +          # Ignore these flags.
3676 +        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3677 +          ;;
3678 +        -lkernel32)
3679 +          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3680 +          ;;
3681 +        -[LRuY])
3682 +          # These flags, when seen by themselves, take an argument.
3683 +          # We remove the space between option and argument and re-iterate
3684 +          # unless we find an empty arg or a new option (starting with -)
3685 +          case $2 in
3686 +             "" | -*);;
3687 +             *)
3688 +                ac_arg="$ac_arg$2"
3689 +
3690 +                shift; shift
3691 +                set X $ac_arg "$@"
3692 +                ;;
3693 +          esac
3694 +          ;;
3695 +        -YP,*)
3696 +          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3697 +              ac_exists=false
3698 +  for ac_i in $ac_cv_f90libs; do
3699 +    if test x"$ac_j" = x"$ac_i"; then
3700 +      ac_exists=true
3701 +      break
3702 +    fi
3703 +  done
3704 +
3705 +  if test x"$ac_exists" = xtrue; then
3706 +  :
3707 + else
3708 +  ac_arg="$ac_arg $ac_j"
3709 +                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3710 + fi
3711 +
3712 +          done
3713 +          ;;
3714 +        -[lLR]*)
3715 +            ac_exists=false
3716 +  for ac_i in $ac_cv_f90libs; do
3717 +    if test x"$ac_arg" = x"$ac_i"; then
3718 +      ac_exists=true
3719 +      break
3720 +    fi
3721 +  done
3722 +
3723 +  if test x"$ac_exists" = xtrue; then
3724 +  :
3725 + else
3726 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3727 + fi
3728 +
3729 +          ;;
3730 +          # Ignore everything else.
3731 +  esac
3732 + done
3733 + # restore positional arguments
3734 + set X $ac_save_positional; shift
3735 +
3736 + # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3737 + # then we insist that the "run path" must be an absolute path (i.e. it
3738 + # must begin with a "/").
3739 + case `(uname -sr) 2>/dev/null` in
3740 +   "SunOS 5"*)
3741 +      ac_ld_run_path=`echo $ac_f90_v_output |
3742 +                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3743 +      test "x$ac_ld_run_path" != x &&
3744 +
3745 +        if test "$ac_compiler_gnu" = yes; then
3746 +  for ac_link_opt in $ac_ld_run_path; do
3747 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3748 +  done
3749 + else
3750 +  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3751 + fi
3752 +      ;;
3753 + esac
3754 + fi # test "x$F90LIBS" = "x"
3755 +
3756 + fi
3757 + echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3758 + echo "${ECHO_T}$ac_cv_flibs" >&6
3759 + F90LIBS="$ac_cv_f90libs"
3760 +
3761 + ac_ext=f90
3762 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3763 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3765 +
3766 +
3767 + echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3768 + echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3769 + if test "${ac_cv_f90_mangling+set}" = set; then
3770 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3771 + else
3772 +  ac_ext=f90
3773 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3774 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3776 + cat >conftest.$ac_ext <<_ACEOF
3777 + subroutine foobar()
3778 + return
3779 + end
3780 + subroutine foo_bar()
3781 + return
3782 + end
3783 + _ACEOF
3784 + rm -f conftest.$ac_objext
3785 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 +  (eval $ac_compile) 2>conftest.er1
3787 +  ac_status=$?
3788 +  grep -v '^ *+' conftest.er1 >conftest.err
3789 +  rm -f conftest.er1
3790 +  cat conftest.err >&5
3791 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 +  (exit $ac_status); } &&
3793 +         { ac_try='test -z "$ac_f90_werror_flag"
3794 +                         || test ! -s conftest.err'
3795 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 +  (eval $ac_try) 2>&5
3797 +  ac_status=$?
3798 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 +  (exit $ac_status); }; } &&
3800 +         { ac_try='test -s conftest.$ac_objext'
3801 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 +  (eval $ac_try) 2>&5
3803 +  ac_status=$?
3804 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 +  (exit $ac_status); }; }; then
3806 +  mv conftest.$ac_objext cf90_test.$ac_objext
3807 +
3808 +  ac_ext=c
3809 + ac_cpp='$CPP $CPPFLAGS'
3810 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 +
3814 +  ac_save_LIBS=$LIBS
3815 +  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3816 +
3817 +  ac_success=no
3818 +  for ac_foobar in foobar FOOBAR; do
3819 +    for ac_underscore in "" "_"; do
3820 +      ac_func="$ac_foobar$ac_underscore"
3821 +      cat >conftest.$ac_ext <<_ACEOF
3822 + /* confdefs.h.  */
3823 + _ACEOF
3824 + cat confdefs.h >>conftest.$ac_ext
3825 + cat >>conftest.$ac_ext <<_ACEOF
3826 + /* end confdefs.h.  */
3827 +
3828 + /* Override any gcc2 internal prototype to avoid an error.  */
3829 + #ifdef __cplusplus
3830 + extern "C"
3831 + #endif
3832 + /* We use char because int might match the return type of a gcc2
3833 +   builtin and then its argument prototype would still apply.  */
3834 + char $ac_func ();
3835 + int
3836 + main ()
3837 + {
3838 + $ac_func ();
3839 +  ;
3840 +  return 0;
3841 + }
3842 + _ACEOF
3843 + rm -f conftest.$ac_objext conftest$ac_exeext
3844 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 +  (eval $ac_link) 2>conftest.er1
3846 +  ac_status=$?
3847 +  grep -v '^ *+' conftest.er1 >conftest.err
3848 +  rm -f conftest.er1
3849 +  cat conftest.err >&5
3850 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 +  (exit $ac_status); } &&
3852 +         { ac_try='test -z "$ac_c_werror_flag"
3853 +                         || test ! -s conftest.err'
3854 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 +  (eval $ac_try) 2>&5
3856 +  ac_status=$?
3857 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 +  (exit $ac_status); }; } &&
3859 +         { ac_try='test -s conftest$ac_exeext'
3860 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 +  (eval $ac_try) 2>&5
3862 +  ac_status=$?
3863 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 +  (exit $ac_status); }; }; then
3865 +  ac_success=yes; break 2
3866 + else
3867 +  echo "$as_me: failed program was:" >&5
3868 + sed 's/^/| /' conftest.$ac_ext >&5
3869 +
3870 + fi
3871 + rm -f conftest.err conftest.$ac_objext \
3872 +      conftest$ac_exeext conftest.$ac_ext
3873 +    done
3874 +  done
3875 +
3876 +  if test "$ac_success" = "yes"; then
3877 +     case $ac_foobar in
3878 +        foobar)
3879 +           ac_case=lower
3880 +           ac_foo_bar=foo_bar
3881 +           ;;
3882 +        FOOBAR)
3883 +           ac_case=upper
3884 +           ac_foo_bar=FOO_BAR
3885 +           ;;
3886 +     esac
3887 +
3888 +     ac_success_extra=no
3889 +     for ac_extra in "" "_"; do
3890 +        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3891 +
3892 +        cat >conftest.$ac_ext <<_ACEOF
3893 + /* confdefs.h.  */
3894 + _ACEOF
3895 + cat confdefs.h >>conftest.$ac_ext
3896 + cat >>conftest.$ac_ext <<_ACEOF
3897 + /* end confdefs.h.  */
3898 +
3899 + /* Override any gcc2 internal prototype to avoid an error.  */
3900 + #ifdef __cplusplus
3901 + extern "C"
3902 + #endif
3903 + /* We use char because int might match the return type of a gcc2
3904 +   builtin and then its argument prototype would still apply.  */
3905 + char $ac_func ();
3906 + int
3907 + main ()
3908 + {
3909 + $ac_func ();
3910 +  ;
3911 +  return 0;
3912 + }
3913 + _ACEOF
3914 + rm -f conftest.$ac_objext conftest$ac_exeext
3915 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 +  (eval $ac_link) 2>conftest.er1
3917 +  ac_status=$?
3918 +  grep -v '^ *+' conftest.er1 >conftest.err
3919 +  rm -f conftest.er1
3920 +  cat conftest.err >&5
3921 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 +  (exit $ac_status); } &&
3923 +         { ac_try='test -z "$ac_c_werror_flag"
3924 +                         || test ! -s conftest.err'
3925 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 +  (eval $ac_try) 2>&5
3927 +  ac_status=$?
3928 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 +  (exit $ac_status); }; } &&
3930 +         { ac_try='test -s conftest$ac_exeext'
3931 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 +  (eval $ac_try) 2>&5
3933 +  ac_status=$?
3934 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 +  (exit $ac_status); }; }; then
3936 +  ac_success_extra=yes; break
3937 + else
3938 +  echo "$as_me: failed program was:" >&5
3939 + sed 's/^/| /' conftest.$ac_ext >&5
3940 +
3941 + fi
3942 + rm -f conftest.err conftest.$ac_objext \
3943 +      conftest$ac_exeext conftest.$ac_ext
3944 +     done
3945 +
3946 +     if test "$ac_success_extra" = "yes"; then
3947 +        ac_cv_f90_mangling="$ac_case case"
3948 +        if test -z "$ac_underscore"; then
3949 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3950 +        else
3951 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3952 +
3953 +        fi
3954 +        if test -z "$ac_extra"; then
3955 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3956 +        else
3957 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3958 +        fi
3959 +      else
3960 +        ac_cv_f90_mangling="unknown"
3961 +      fi
3962 +  else
3963 +     ac_cv_f90_mangling="unknown"
3964 +
3965 +  fi
3966 +
3967 +  LIBS=$ac_save_LIBS
3968 +  ac_ext=f90
3969 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3970 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3972 +  rm -f cf90_test* conftest*
3973 + else
3974 +  echo "$as_me: failed program was:" >&5
3975 + sed 's/^/| /' conftest.$ac_ext >&5
3976 +
3977 + fi
3978 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 + ac_ext=f90
3980 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3981 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3983 +
3984 + fi
3985 + echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3986 + echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3987 +
3988 +
3989 +
3990 + case $ac_cv_f90_mangling in
3991 +  "lower case, no underscore, no extra underscore")
3992 +          cat >>confdefs.h <<\_ACEOF
3993 + #define F90_FUNC(name,NAME) name
3994 + _ACEOF
3995 +
3996 +          cat >>confdefs.h <<\_ACEOF
3997 + #define F90_FUNC_(name,NAME) name
3998 + _ACEOF
3999 + ;;
4000 +  "lower case, no underscore, extra underscore")
4001 +          cat >>confdefs.h <<\_ACEOF
4002 + #define F90_FUNC(name,NAME) name
4003 + _ACEOF
4004 +
4005 +          cat >>confdefs.h <<\_ACEOF
4006 + #define F90_FUNC_(name,NAME) name ## _
4007 + _ACEOF
4008 + ;;
4009 +  "lower case, underscore, no extra underscore")
4010 +          cat >>confdefs.h <<\_ACEOF
4011 + #define F90_FUNC(name,NAME) name ## _
4012 + _ACEOF
4013 +
4014 +          cat >>confdefs.h <<\_ACEOF
4015 + #define F90_FUNC_(name,NAME) name ## _
4016 + _ACEOF
4017 + ;;
4018 +  "lower case, underscore, extra underscore")
4019 +          cat >>confdefs.h <<\_ACEOF
4020 + #define F90_FUNC(name,NAME) name ## _
4021 + _ACEOF
4022 +
4023 +          cat >>confdefs.h <<\_ACEOF
4024 + #define F90_FUNC_(name,NAME) name ## __
4025 + _ACEOF
4026 + ;;
4027 +  "upper case, no underscore, no extra underscore")
4028 +          cat >>confdefs.h <<\_ACEOF
4029 + #define F90_FUNC(name,NAME) NAME
4030 + _ACEOF
4031 +
4032 +          cat >>confdefs.h <<\_ACEOF
4033 + #define F90_FUNC_(name,NAME) NAME
4034 + _ACEOF
4035 + ;;
4036 +  "upper case, no underscore, extra underscore")
4037 +          cat >>confdefs.h <<\_ACEOF
4038 + #define F90_FUNC(name,NAME) NAME
4039 + _ACEOF
4040 +
4041 +          cat >>confdefs.h <<\_ACEOF
4042 + #define F90_FUNC_(name,NAME) NAME ## _
4043 + _ACEOF
4044 + ;;
4045 +  "upper case, underscore, no extra underscore")
4046 +          cat >>confdefs.h <<\_ACEOF
4047 + #define F90_FUNC(name,NAME) NAME ## _
4048 + _ACEOF
4049 +
4050 +          cat >>confdefs.h <<\_ACEOF
4051 + #define F90_FUNC_(name,NAME) NAME ## _
4052 + _ACEOF
4053 + ;;
4054 +  "upper case, underscore, extra underscore")
4055 +          cat >>confdefs.h <<\_ACEOF
4056 + #define F90_FUNC(name,NAME) NAME ## _
4057 + _ACEOF
4058 +
4059 +          cat >>confdefs.h <<\_ACEOF
4060 + #define F90_FUNC_(name,NAME) NAME ## __
4061 + _ACEOF
4062 + ;;
4063 +  *)
4064 +          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4065 + echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4066 +          ;;
4067 + esac
4068 +
4069 +
4070 +
4071 +
4072 +
4073 + echo "$as_me:$LINENO: checking for module suffix" >&5
4074 + echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4075 + rm -f conftest*
4076 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4077 + rm -f work*
4078 + cat >conftest.f90 <<EOF
4079 +        module conftest
4080 +        integer n
4081 +        parameter (n=1)
4082 +        end module conftest
4083 + EOF
4084 + # SGI and absoft compilers generates module name in upper case!
4085 + testname="conftest"
4086 + modcase="lower"
4087 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4088 +    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4089 +    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4090 +    if test -z "$MOD" ; then
4091 +        MOD=`ls CONFTEST* 2>/dev/null \
4092 +                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4093 +        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4094 +        if test -n "$MOD" ; then
4095 +            testname="CONFTEST"
4096 +            modcase="upper"
4097 +        fi
4098 +    fi
4099 +    if test -z "$MOD" ; then
4100 +        echo "$as_me:$LINENO: result: unknown" >&5
4101 + echo "${ECHO_T}unknown" >&6
4102 +        # Use mod if we can't figure it out
4103 +        MOD="mod"
4104 +    else
4105 +        echo "$as_me:$LINENO: result: $MOD" >&5
4106 + echo "${ECHO_T}$MOD" >&6
4107 +    fi
4108 +    if test -s work.pcl ; then
4109 +        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4110 + echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4111 +    fi
4112 + else
4113 +    echo "$as_me:$LINENO: result: unknown" >&5
4114 + echo "${ECHO_T}unknown" >&6
4115 + fi
4116 +
4117 +
4118 +
4119 +
4120 +
4121 + # Check for module include path (some use -I, some (Solaris) use -M, some
4122 + # (absoft) use -p).
4123 + # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4124 + # specified, work.pcl and work.pc are created.  However, if you specify
4125 + # a file, it must contain a the name of a file ending in .pc .  Ugh!
4126 + # Use the module made above
4127 + echo "$as_me:$LINENO: checking for module directory path flag" >&5
4128 + echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4129 + rm -f conftest*
4130 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4131 + rm -f work*
4132 + cat >conftest.f90 <<EOF
4133 +        module conftest
4134 +        integer n
4135 +        parameter (n=1)
4136 +        end module conftest
4137 + EOF
4138 + # SGI and absoft compilers generates module name in upper case!
4139 + testname="conftest"
4140 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4141 +   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4142 +   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4143 +   if test -n "$mod" ; then
4144 +      testname="CONFTEST"
4145 +   fi
4146 +   madedir=0
4147 +   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4148 +   cp $testname.$MOD conf
4149 +   rm -f conftest* CONFTEST*
4150 +   cat >conftest1.f90 <<EOF
4151 +        program main
4152 +        use conftest
4153 +        print *, n
4154 +        end
4155 + EOF
4156 +   F90_WORK_FILES_ARG=""
4157 +   F90MODINCSPEC=""
4158 +   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4159 +       MODDIRFLAG="-I"
4160 +       F90MODINCSPEC="-I<dir>"
4161 +       echo "$as_me:$LINENO: result: -I" >&5
4162 + echo "${ECHO_T}-I" >&6
4163 +   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4164 +       MODDIRFLAG="-M"
4165 +       F90MODINCSPEC="-M<dir>"
4166 +       echo "$as_me:$LINENO: result: -M" >&5
4167 + echo "${ECHO_T}-M" >&6
4168 +   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4169 +       MODDIRFLAG="-p"
4170 +       F90MODINCSPEC="-p<dir>"
4171 +       echo "$as_me:$LINENO: result: -p" >&5
4172 + echo "${ECHO_T}-p" >&6
4173 +   elif test -s work.pc ; then
4174 +        cp work.pc conf/mpimod.pc
4175 +        echo "mpimod.pc" > conf/mpimod.pcl
4176 +        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4177 +        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4178 +            MODDIRFLAG='-cl,mpimod.pcl'
4179 +            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4180 + echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4181 +            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4182 +            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4183 +
4184 +        else
4185 +            # The version of the Intel compiler that I have refuses to let
4186 +            # you put the "work catalog" list anywhere but the current
4187 +            # directory. For example, you cannot in
4188 +         :
4189 +        fi
4190 +   fi
4191 +   if test -z "MODDIRFLAG" ; then
4192 +       echo "$as_me:$LINENO: result: unknown" >&5
4193 + echo "${ECHO_T}unknown" >&6
4194 +   fi
4195 +
4196 +
4197 +   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4198 +   if test $madedir = 1 ; then rmdir conf ; fi
4199 + fi
4200 +
4201 +
4202 +
4203 +
4204 + case $debug in
4205 +  1)
4206 +     ;;
4207 +  *)
4208 +
4209 +
4210 +
4211 +
4212 +
4213 +
4214 + echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4215 + echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4216 + if test "${ac_cv_prog_really_gcc+set}" = set; then
4217 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4218 + else
4219 +
4220 + cat > conftest.c <<EOF
4221 + #ifdef __GNUC__
4222 +  #ifndef __INTEL_COMPILER
4223 +     yes;
4224 +  #endif
4225 + #endif
4226 + EOF
4227 + if { ac_try='${CC-cc} -E conftest.c'
4228 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 +  (eval $ac_try) 2>&5
4230 +  ac_status=$?
4231 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4233 +  ac_cv_prog_really_gcc=yes
4234 + else
4235 +  ac_cv_prog_really_gcc=no
4236 + fi
4237 +
4238 + fi
4239 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4240 + echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4241 + if test "$ac_cv_prog_really_gcc" = yes; then
4242          :
4243  
4244 + else
4245 +        :
4246 +
4247   fi
4248  
4249 +
4250 + # Try to determine "good" native compiler flags if none specified on command
4251 + # line
4252 + if test "$ac_test_CFLAGS" != "set"; then
4253 +  CFLAGS=""
4254 +  case "${host_cpu}-${host_os}" in
4255 +
4256 +  *linux*) if test "$CC" = icc; then
4257 +                    CFLAGS="-O"
4258 +                fi;;
4259 +  sparc-solaris2*) if test "$CC" = cc; then
4260 +                    CFLAGS="-native -fast -xO5 -dalign"
4261 +                 fi;;
4262 +
4263 +  alpha*-osf*)  if test "$CC" = cc; then
4264 +                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4265 +                fi;;
4266 +
4267 +  hppa*-hpux*)  if test "$CC" = cc; then
4268 +                    CFLAGS="-Ae +O3 +Oall"
4269 +                fi;;
4270 +
4271 +   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4272 +                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4273 +                fi;;
4274 +   powerpc*-aix*)
4275 +        if test "$CC" = cc -o "$CC" = xlc; then
4276 +                CFLAGS="-O3 -qtune=auto -qansialias -w"
4277 +                echo "*******************************************************"
4278 +                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4279 +                echo "*  recommended that you use                           *"
4280 +                echo "*                                                     *"
4281 +                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4282 +                echo "*                                 ^^^                 *"
4283 +                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4284 +                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4285 +                echo "*******************************************************"
4286 +        fi;;
4287 +   *darwin*)
4288 +        if test "$CC" = xlc -o "$CC" = cc; then
4289 +                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4290 +        fi;;
4291 +  esac
4292 +
4293 +  # use default flags for gcc on all systems
4294 +  if test $ac_cv_prog_really_gcc = yes; then
4295 +     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4296    fi
4297  
4298 +  # test for gcc-specific flags:
4299 +  if test $ac_cv_prog_really_gcc = yes; then
4300 +    # -malign-double for x86 systems
4301 +
4302 +
4303 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4304 + echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4305 + if test "${ac_align_double+set}" = set; then
4306 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4307 + else
4308 +  echo 'void f(){}' > conftest.c
4309 + if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4310 +        ac_align_double=yes
4311 + else
4312 +        ac_align_double=no
4313 + fi
4314 + rm -f conftest*
4315 +
4316 + fi
4317 + echo "$as_me:$LINENO: result: $ac_align_double" >&5
4318 + echo "${ECHO_T}$ac_align_double" >&6
4319 + if test "$ac_align_double" = yes; then
4320 +        :
4321 +        CFLAGS="$CFLAGS -malign-double"
4322 + else
4323 +        :
4324 +
4325 + fi
4326 +
4327 +    # -fstrict-aliasing for gcc-2.95+
4328 +
4329 +
4330 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4331 + echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4332 + if test "${ac_fstrict_aliasing+set}" = set; then
4333 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4334 + else
4335 +  echo 'void f(){}' > conftest.c
4336 + if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4337 +        ac_fstrict_aliasing=yes
4338 + else
4339 +        ac_fstrict_aliasing=no
4340 + fi
4341 + rm -f conftest*
4342 +
4343 + fi
4344 + echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4345 + echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4346 + if test "$ac_fstrict_aliasing" = yes; then
4347 +        :
4348 +        CFLAGS="$CFLAGS -fstrict-aliasing"
4349 + else
4350 +        :
4351 +
4352 + fi
4353 +
4354 +  fi
4355 +
4356    CPU_FLAGS=""
4357 <  if test "$GCC" = "yes"; then
4357 >  if test $ac_cv_prog_really_gcc = yes; then
4358                    case "${host_cpu}" in
4359            i586*)
4360  
# Line 3447 | Line 4381 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4381          :
4382  
4383  
4384 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4385 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4384 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4385 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4386   if test "${ac_pentium+set}" = set; then
4387    echo $ECHO_N "(cached) $ECHO_C" >&6
4388   else
4389 <  echo 'void f(){}' > conftest.cpp
4390 < if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4389 >  echo 'void f(){}' > conftest.c
4390 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4391          ac_pentium=yes
4392   else
4393          ac_pentium=no
# Line 3476 | Line 4410 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4410                    ;;
4411            i686*)
4412  
4413 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4414 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4413 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4414 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4415   if test "${ac_cpu_pentiumpro+set}" = set; then
4416    echo $ECHO_N "(cached) $ECHO_C" >&6
4417   else
4418 <  echo 'void f(){}' > conftest.cpp
4419 < if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4418 >  echo 'void f(){}' > conftest.c
4419 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4420          ac_cpu_pentiumpro=yes
4421   else
4422          ac_cpu_pentiumpro=no
# Line 3499 | Line 4433 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4433          :
4434  
4435  
4436 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4437 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4436 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4437 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4438   if test "${ac_pentiumpro+set}" = set; then
4439    echo $ECHO_N "(cached) $ECHO_C" >&6
4440   else
4441 <  echo 'void f(){}' > conftest.cpp
4442 < if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4441 >  echo 'void f(){}' > conftest.c
4442 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4443          ac_pentiumpro=yes
4444   else
4445          ac_pentiumpro=no
# Line 3532 | Line 4466 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4466                  if test -n "$is60x"; then
4467  
4468  
4469 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4470 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4469 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4470 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4471   if test "${ac_m_cpu_60x+set}" = set; then
4472    echo $ECHO_N "(cached) $ECHO_C" >&6
4473   else
4474 <  echo 'void f(){}' > conftest.cpp
4475 < if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4474 >  echo 'void f(){}' > conftest.c
4475 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4476          ac_m_cpu_60x=yes
4477   else
4478          ac_m_cpu_60x=no
# Line 3566 | Line 4500 | cat > conftest.c <<EOF
4500   else
4501  
4502   cat > conftest.c <<EOF
4503 < #ifdef __GNUC__
4503 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4504   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4505       yes;
4506   #  endif
# Line 3590 | Line 4524 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4524          :
4525  
4526  
4527 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4528 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4527 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4528 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4529   if test "${ac_m_cpu_750+set}" = set; then
4530    echo $ECHO_N "(cached) $ECHO_C" >&6
4531   else
4532 <  echo 'void f(){}' > conftest.cpp
4533 < if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4532 >  echo 'void f(){}' > conftest.c
4533 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4534          ac_m_cpu_750=yes
4535   else
4536          ac_m_cpu_750=no
# Line 3623 | Line 4557 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4557                  if test -z "$CPU_FLAGS"; then
4558  
4559  
4560 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4561 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4560 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4561 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4562   if test "${ac_m_cpu_powerpc+set}" = set; then
4563    echo $ECHO_N "(cached) $ECHO_C" >&6
4564   else
4565 <  echo 'void f(){}' > conftest.cpp
4566 < if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4565 >  echo 'void f(){}' > conftest.c
4566 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4567          ac_m_cpu_powerpc=yes
4568   else
4569          ac_m_cpu_powerpc=no
# Line 3651 | Line 4585 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4585                  if test -z "$CPU_FLAGS"; then
4586  
4587  
4588 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4589 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4588 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4589 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4590   if test "${ac_m_powerpc+set}" = set; then
4591    echo $ECHO_N "(cached) $ECHO_C" >&6
4592   else
4593 <  echo 'void f(){}' > conftest.cpp
4594 < if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4593 >  echo 'void f(){}' > conftest.c
4594 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4595          ac_m_powerpc=yes
4596   else
4597          ac_m_powerpc=no
# Line 3680 | Line 4614 | fi
4614    fi
4615  
4616    if test -n "$CPU_FLAGS"; then
4617 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4617 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4618    fi
4619  
4620 <  if test -z "$CXXFLAGS"; then
4620 >  if test -z "$CFLAGS"; then
4621          echo ""
4622 <        echo "**********************************************************"
4623 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
4624 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4625 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4626 <        echo "**********************************************************"
4622 >        echo "********************************************************"
4623 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4624 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4625 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4626 >        echo "********************************************************"
4627          echo ""
4628 <        CXXFLAGS="-O3"
4628 >        CFLAGS="-O3"
4629    fi
4630  
4631  
4632  
4633 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4634 < echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4635 < if test "${ac_guessed_cxxflags+set}" = set; then
4633 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4634 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4635 > if test "${ac_guessed_cflags+set}" = set; then
4636    echo $ECHO_N "(cached) $ECHO_C" >&6
4637   else
4638 <  echo 'void f(){}' > conftest.cpp
4639 < if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4640 <        ac_guessed_cxxflags=yes
4638 >  echo 'void f(){}' > conftest.c
4639 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4640 >        ac_guessed_cflags=yes
4641   else
4642 <        ac_guessed_cxxflags=no
4642 >        ac_guessed_cflags=no
4643   fi
4644   rm -f conftest*
4645  
4646   fi
4647 < echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4648 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4649 < if test "$ac_guessed_cxxflags" = yes; then
4647 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4648 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4649 > if test "$ac_guessed_cflags" = yes; then
4650          :
4651  
4652   else
4653          :
4654  
4655          echo ""
4656 <        echo "**********************************************************"
4657 <        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4658 <        echo "* your compiler.                                         *"
4659 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4660 <        echo "**********************************************************"
4656 >        echo "********************************************************"
4657 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4658 >        echo "* your compiler.                                       *"
4659 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4660 >        echo "********************************************************"
4661          echo ""
4662 <        CXXFLAGS=""
4662 >        CFLAGS=""
4663  
4664   fi
4665  
4666  
4667   fi
3734
3735 ac_ext=f90
3736 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3737 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3741  do
3742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_F90+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749  if test -n "$F90"; then
3750  ac_cv_prog_F90="$F90" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763 done
3764 done
4668  
3766 fi
3767 fi
3768 F90=$ac_cv_prog_F90
3769 if test -n "$F90"; then
3770  echo "$as_me:$LINENO: result: $F90" >&5
3771 echo "${ECHO_T}$F90" >&6
3772 else
3773  echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
4669  
3777    test -n "$F90" && break
3778  done
3779 fi
3780 if test -z "$F90"; then
3781  ac_ct_F90=$F90
3782  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3783 do
3784  # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791  if test -n "$ac_ct_F90"; then
3792  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799  for ac_exec_ext in '' $ac_executable_extensions; do
3800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801    ac_cv_prog_ac_ct_F90="$ac_prog"
3802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803    break 2
3804  fi
3805 done
3806 done
4670  
3808 fi
3809 fi
3810 ac_ct_F90=$ac_cv_prog_ac_ct_F90
3811 if test -n "$ac_ct_F90"; then
3812  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3813 echo "${ECHO_T}$ac_ct_F90" >&6
3814 else
3815  echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
4671  
3819  test -n "$ac_ct_F90" && break
3820 done
4672  
3822  F90=$ac_ct_F90
3823 fi
4673  
4674  
4675 < # If we don't use `.F90' as extension, the preprocessor is not run on the
4676 < # input file.
4677 < ac_save_ext=$ac_ext
3829 < ac_ext=F90
3830 < echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3831 < echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3832 < if test "${ac_cv_f90_compiler_gnu+set}" = set; then
4675 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4676 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4677 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4678    echo $ECHO_N "(cached) $ECHO_C" >&6
4679   else
3835  cat >conftest.$ac_ext <<_ACEOF
4680  
4681 < program main
4682 <
4683 < #ifndef __GNUC__
4684 <       choke me
4681 > cat > conftest.cpp <<EOF
4682 > #ifdef __GNUC__
4683 >  #ifndef __INTEL_COMPILER
4684 >     yes;
4685 >  #endif
4686   #endif
4687 <
4688 < end program main
3844 <
3845 < _ACEOF
3846 < rm -f conftest.$ac_objext
3847 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 <  (eval $ac_compile) 2>&5
3849 <  ac_status=$?
3850 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 <  (exit $ac_status); } &&
3852 <         { ac_try='test -s conftest.$ac_objext'
4687 > EOF
4688 > if { ac_try='${CXX-c++} -E conftest.cpp'
4689    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690    (eval $ac_try) 2>&5
4691    ac_status=$?
4692    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 <  (exit $ac_status); }; }; then
4694 <  ac_compiler_gnu=yes
4693 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4694 >  ac_cv_prog_really_gxx=yes
4695   else
4696 <  echo "$as_me: failed program was:" >&5
4697 < sed 's/^/| /' conftest.$ac_ext >&5
4696 >  ac_cv_prog_really_gxx=no
4697 > fi
4698  
3863 ac_compiler_gnu=no
4699   fi
4700 < rm -f conftest.$ac_objext conftest.$ac_ext
4701 < ac_cv_f90_compiler_gnu=$ac_compiler_gnu
4700 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4701 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4702 > if test "$ac_cv_prog_really_gxx" = yes; then
4703 >        :
4704 >
4705 > else
4706 >        :
4707  
4708   fi
3869 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3870 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3871 ac_ext=$ac_save_ext
3872 G95=`test $ac_compiler_gnu = yes && echo yes`
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709  
4710  
3880
3881
3882
4711   # Try to determine "good" native compiler flags if none specified on command
4712   # line
4713 <
4714 < if test x"$F90FLAGS" == x ; then
3887 <  F90FLAGS=""
4713 > if test "$ac_test_CXXFLAGS" != "set"; then
4714 >  CXXFLAGS=""
4715    case "${host_cpu}-${host_os}" in
4716  
4717 <  *linux*) if test "$F90" = ifc; then
4718 <                    F90FLAGS="-O"
4717 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4718 >                    CXXFLAGS="-O"
4719                  fi;;
4720 <   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4721 <                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4720 >  sparc-solaris2*) if test "$CXX" = CC; then
4721 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4722 >                 fi;;
4723 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4724 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4725                  fi;;
4726     powerpc*-aix*)
4727 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4728 <                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4727 >        if test "$CXX" = xlC; then
4728 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4729                  echo "*******************************************************"
4730                  echo "*  You have AIX on an unknown powerpc system.  It is  *"
4731                  echo "*  recommended that you use                           *"
4732                  echo "*                                                     *"
4733 <                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4733 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4734                  echo "*                                 ^^^                 *"
4735                  echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4736 <                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4736 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4737                  echo "*******************************************************"
4738          fi;;
4739     *darwin*)
4740 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4741 <                F90FLAGS="-O3 -qtune=auto -w"
3912 <                echo "*********************************************************"
3913 <                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3914 <                echo "*  recommended that you use                             *"
3915 <                echo "*                                                       *"
3916 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3917 <                echo "*                                 ^^^                   *"
3918 <                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3919 <                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3920 <                echo "*********************************************************"
4740 >        if test "$CXX" = xlc++; then
4741 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4742          fi;;
4743    esac
4744  
4745 <  if test -n "$CPU_FLAGS"; then
4746 <        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4745 >  # use default flags for gcc on all systems
4746 >  if test $ac_cv_prog_really_gxx = yes; then
4747 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4748    fi
4749  
4750 <  if test -z "$F90FLAGS"; then
4751 <        echo ""
4752 <        echo "**********************************************************"
4753 <        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4754 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4755 <        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4756 <        echo "**********************************************************"
4757 <        echo ""
4758 <        F90FLAGS="-O3"
4750 >  # test for gcc-specific flags:
4751 >  if test $ac_cv_prog_really_gxx = yes; then
4752 >    # -malign-double for x86 systems
4753 >
4754 >
4755 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4756 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4757 > if test "${ac_align_double+set}" = set; then
4758 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4759 > else
4760 >  echo 'void f(){}' > conftest.cpp
4761 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4762 >        ac_align_double=yes
4763 > else
4764 >        ac_align_double=no
4765 > fi
4766 > rm -f conftest*
4767 >
4768 > fi
4769 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4770 > echo "${ECHO_T}$ac_align_double" >&6
4771 > if test "$ac_align_double" = yes; then
4772 >        :
4773 >        CXXFLAGS="$CXXFLAGS -malign-double"
4774 > else
4775 >        :
4776 >
4777 > fi
4778 >
4779 >    # -fstrict-aliasing for gcc-2.95+
4780 >
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4783 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4784 > if test "${ac_fstrict_aliasing+set}" = set; then
4785 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4786 > else
4787 >  echo 'void f(){}' > conftest.cpp
4788 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4789 >        ac_fstrict_aliasing=yes
4790 > else
4791 >        ac_fstrict_aliasing=no
4792 > fi
4793 > rm -f conftest*
4794 >
4795 > fi
4796 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4797 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4798 > if test "$ac_fstrict_aliasing" = yes; then
4799 >        :
4800 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4801 > else
4802 >        :
4803 >
4804 > fi
4805 >
4806    fi
4807  
4808 +  CPU_FLAGS=""
4809 +  if test $ac_cv_prog_really_gxx = yes; then
4810 +                  case "${host_cpu}" in
4811 +          i586*)
4812  
4813 < echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4814 < echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4815 < if test "${ac_guessed_f90flags+set}" = set; then
4813 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4814 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4815 > if test "${ac_cpu_pentium+set}" = set; then
4816    echo $ECHO_N "(cached) $ECHO_C" >&6
4817   else
4818 +  echo 'void f(){}' > conftest.cpp
4819 + if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4820 +        ac_cpu_pentium=yes
4821 + else
4822 +        ac_cpu_pentium=no
4823 + fi
4824 + rm -f conftest*
4825  
4826 + fi
4827 + echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4828 + echo "${ECHO_T}$ac_cpu_pentium" >&6
4829 + if test "$ac_cpu_pentium" = yes; then
4830 +        :
4831 +        CPU_FLAGS=-mcpu=pentium
4832 + else
4833 +        :
4834  
4835  
4836 < ac_ext=f90
4837 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4838 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4836 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4837 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4838 > if test "${ac_pentium+set}" = set; then
4839 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4840 > else
4841 >  echo 'void f(){}' > conftest.cpp
4842 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4843 >        ac_pentium=yes
4844 > else
4845 >        ac_pentium=no
4846 > fi
4847 > rm -f conftest*
4848  
4849 < echo 'program main' > conftest.$ac_ext
4850 < echo 'end program main' >> conftest.$ac_ext
4851 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4852 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 <  (eval $ac_compile) 2>&5
4854 <  ac_status=$?
3959 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 <  (exit $ac_status); }; then
3961 <        ac_guessed_f90flags=yes
4849 > fi
4850 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4851 > echo "${ECHO_T}$ac_pentium" >&6
4852 > if test "$ac_pentium" = yes; then
4853 >        :
4854 >        CPU_FLAGS=-mpentium
4855   else
4856 <        ac_guessed_f90flags=no
4856 >        :
4857 >
4858   fi
4859 +
4860 + fi
4861 +
4862 +                  ;;
4863 +          i686*)
4864 +
4865 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4866 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4867 + if test "${ac_cpu_pentiumpro+set}" = set; then
4868 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4869 + else
4870 +  echo 'void f(){}' > conftest.cpp
4871 + if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4872 +        ac_cpu_pentiumpro=yes
4873 + else
4874 +        ac_cpu_pentiumpro=no
4875 + fi
4876   rm -f conftest*
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877  
4878 + fi
4879 + echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4880 + echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4881 + if test "$ac_cpu_pentiumpro" = yes; then
4882 +        :
4883 +        CPU_FLAGS=-mcpu=pentiumpro
4884 + else
4885 +        :
4886  
4887 +
4888 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4889 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4890 + if test "${ac_pentiumpro+set}" = set; then
4891 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4892 + else
4893 +  echo 'void f(){}' > conftest.cpp
4894 + if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4895 +        ac_pentiumpro=yes
4896 + else
4897 +        ac_pentiumpro=no
4898   fi
4899 < echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
4900 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
4901 < if test "$ac_guessed_f90flags" = yes; then
4899 > rm -f conftest*
4900 >
4901 > fi
4902 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4903 > echo "${ECHO_T}$ac_pentiumpro" >&6
4904 > if test "$ac_pentiumpro" = yes; then
4905 >        :
4906 >        CPU_FLAGS=-mpentiumpro
4907 > else
4908 >        :
4909 >
4910 > fi
4911 >
4912 > fi
4913 >
4914 >                  ;;
4915 >          powerpc*)
4916 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4917 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4918 >                if test -n "$is60x"; then
4919 >
4920 >
4921 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4922 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4923 > if test "${ac_m_cpu_60x+set}" = set; then
4924 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4925 > else
4926 >  echo 'void f(){}' > conftest.cpp
4927 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4928 >        ac_m_cpu_60x=yes
4929 > else
4930 >        ac_m_cpu_60x=no
4931 > fi
4932 > rm -f conftest*
4933 >
4934 > fi
4935 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4936 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4937 > if test "$ac_m_cpu_60x" = yes; then
4938          :
4939 +        CPU_FLAGS=-mcpu=$cputype
4940 + else
4941 +        :
4942  
4943 + fi
4944 +
4945 +                elif test "$cputype" = 750; then
4946 +
4947 +
4948 + echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4949 + echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4950 + if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4951 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4952   else
4953 +
4954 + cat > conftest.cpp <<EOF
4955 + #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4956 + #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4957 +     yes;
4958 + #  endif
4959 + #endif
4960 + EOF
4961 + if { ac_try='${CXX-c++} -E conftest.cpp'
4962 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 +  (eval $ac_try) 2>&5
4964 +  ac_status=$?
4965 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4967 +  ac_cv_prog_gxx_2_95=yes
4968 + else
4969 +  ac_cv_prog_gxx_2_95=no
4970 + fi
4971 +
4972 + fi
4973 + echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4974 + echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4975 + if test "$ac_cv_prog_gxx_2_95" = yes; then
4976          :
4977  
4978 +
4979 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4980 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4981 + if test "${ac_m_cpu_750+set}" = set; then
4982 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4983 + else
4984 +  echo 'void f(){}' > conftest.cpp
4985 + if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4986 +        ac_m_cpu_750=yes
4987 + else
4988 +        ac_m_cpu_750=no
4989 + fi
4990 + rm -f conftest*
4991 +
4992 + fi
4993 + echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4994 + echo "${ECHO_T}$ac_m_cpu_750" >&6
4995 + if test "$ac_m_cpu_750" = yes; then
4996 +        :
4997 +        CPU_FLAGS=-mcpu=750
4998 + else
4999 +        :
5000 +
5001 + fi
5002 +
5003 + else
5004 +        :
5005 +
5006 + fi
5007 +
5008 +                fi
5009 +                if test -z "$CPU_FLAGS"; then
5010 +
5011 +
5012 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5013 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5014 + if test "${ac_m_cpu_powerpc+set}" = set; then
5015 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5016 + else
5017 +  echo 'void f(){}' > conftest.cpp
5018 + if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
5019 +        ac_m_cpu_powerpc=yes
5020 + else
5021 +        ac_m_cpu_powerpc=no
5022 + fi
5023 + rm -f conftest*
5024 +
5025 + fi
5026 + echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5027 + echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5028 + if test "$ac_m_cpu_powerpc" = yes; then
5029 +        :
5030 +        CPU_FLAGS=-mcpu=powerpc
5031 + else
5032 +        :
5033 +
5034 + fi
5035 +
5036 +                fi
5037 +                if test -z "$CPU_FLAGS"; then
5038 +
5039 +
5040 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5041 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5042 + if test "${ac_m_powerpc+set}" = set; then
5043 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5044 + else
5045 +  echo 'void f(){}' > conftest.cpp
5046 + if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
5047 +        ac_m_powerpc=yes
5048 + else
5049 +        ac_m_powerpc=no
5050 + fi
5051 + rm -f conftest*
5052 +
5053 + fi
5054 + echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5055 + echo "${ECHO_T}$ac_m_powerpc" >&6
5056 + if test "$ac_m_powerpc" = yes; then
5057 +        :
5058 +        CPU_FLAGS=-mpowerpc
5059 + else
5060 +        :
5061 +
5062 + fi
5063 +
5064 +                fi
5065 +          esac
5066 +  fi
5067 +
5068 +  if test -n "$CPU_FLAGS"; then
5069 +        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
5070 +  fi
5071 +
5072 +  if test -z "$CXXFLAGS"; then
5073          echo ""
5074 +        echo "**********************************************************"
5075 +        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
5076 +        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5077 +        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
5078 +        echo "**********************************************************"
5079 +        echo ""
5080 +        CXXFLAGS="-O3"
5081 +  fi
5082 +
5083 +
5084 +
5085 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5086 + echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5087 + if test "${ac_guessed_cxxflags+set}" = set; then
5088 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5089 + else
5090 +  echo 'void f(){}' > conftest.cpp
5091 + if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
5092 +        ac_guessed_cxxflags=yes
5093 + else
5094 +        ac_guessed_cxxflags=no
5095 + fi
5096 + rm -f conftest*
5097 +
5098 + fi
5099 + echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5100 + echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5101 + if test "$ac_guessed_cxxflags" = yes; then
5102 +        :
5103 +
5104 + else
5105 +        :
5106 +
5107 +        echo ""
5108          echo "**********************************************************"
5109 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5109 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
5110          echo "* your compiler.                                         *"
5111 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5111 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5112          echo "**********************************************************"
5113          echo ""
5114 <        F90FLAGS=""
5114 >        CXXFLAGS=""
5115  
5116   fi
5117  
# Line 3997 | Line 5122 | fi
5122  
5123  
5124  
5125 < # Try to determine native compiler flags that allow us to use F90 suffix
5126 < # for preprocessed f90 source.
5125 > # Try to determine "good" native compiler flags if none specified on command
5126 > # line
5127  
5128 < if test "$ac_test_PREPFLAG" != "set"; then
5129 <  PREPFLAG=""
5128 > if test x"$F90FLAGS" = x ; then
5129 >  F90FLAGS=""
5130    case "${host_cpu}-${host_os}" in
5131  
5132 <  *linux*) if test "$F90" = ifc; then
5133 <                    PREPFLAG="-fpp1 "
5132 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5133 >                    F90FLAGS="-O"
5134                  fi;;
5135 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5136 <                    PREPFLAG="-qsuffix=cpp=F90 "
5135 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5136 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
5137                  fi;;
5138 <  *darwin*)
5139 <        if test "$F90" = f90 -o "$F90" = xlf90; then
5140 <                PREPFLAG="-qsuffix=cpp=F90 "
5138 >   powerpc*-aix*)
5139 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5140 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
5141 >                echo "*******************************************************"
5142 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
5143 >                echo "*  recommended that you use                           *"
5144 >                echo "*                                                     *"
5145 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
5146 >                echo "*                                 ^^^                 *"
5147 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
5148 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
5149 >                echo "*******************************************************"
5150 >        fi;;
5151 >   *darwin*)
5152 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
5153 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
5154          fi;;
5155    esac
5156  
5157 <  if test -z "$PREPFLAG"; then
5157 >  if test -n "$CPU_FLAGS"; then
5158 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
5159 >  fi
5160 >
5161 >  if test -z "$F90FLAGS"; then
5162          echo ""
5163          echo "**********************************************************"
5164 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
5165 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
5166 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
5164 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
5165 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5166 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
5167          echo "**********************************************************"
5168          echo ""
5169 <        PREPFLAG=""
5169 >        F90FLAGS="-O3"
5170    fi
5171  
4030  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
4031 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
5172  
5173 + echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5174 + echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5175 + if test "${ac_guessed_f90flags+set}" = set; then
5176 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5177 + else
5178  
5179 <  ac_ext=f90
5179 >
5180 >
5181 > ac_ext=f90
5182   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5183   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5185  
5186 <  ac_save_ext=$ac_ext
5187 <  ac_ext=F90
5188 <  ac_save_F90FLAGS=$F90FLAGS
4042 <
4043 <  if test "$PREPFLAG"; then
4044 <  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
4045 < fi
4046 <
4047 <    cat >conftest.$ac_ext <<_ACEOF
4048 <
4049 <
4050 < program main
4051 <
4052 <  integer :: i
4053 <  i = 1
4054 <
4055 <
4056 < end program main
4057 <
4058 < _ACEOF
4059 < rm -f conftest.$ac_objext
5186 > echo 'program main' > conftest.$ac_ext
5187 > echo 'end program main' >> conftest.$ac_ext
5188 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5189   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190    (eval $ac_compile) 2>&5
5191    ac_status=$?
5192    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 <  (exit $ac_status); } &&
5194 <         { ac_try='test -s conftest.$ac_objext'
4066 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 <  (eval $ac_try) 2>&5
4068 <  ac_status=$?
4069 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 <  (exit $ac_status); }; }; then
4071 <  prepflagworks=1
5193 >  (exit $ac_status); }; then
5194 >        ac_guessed_f90flags=yes
5195   else
5196 <  echo "$as_me: failed program was:" >&5
4074 < sed 's/^/| /' conftest.$ac_ext >&5
4075 <
4076 < prepflagworks=0
5196 >        ac_guessed_f90flags=no
5197   fi
5198 < rm -f conftest.$ac_objext conftest.$ac_ext
5199 <
4080 <  F90FLAGS=$ac_save_F90FLAGS
4081 <  ac_ext=$ac_save_ext
4082 <  ac_ext=c
4083 < ac_cpp='$CPP $CPPFLAGS'
4084 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 <
4088 <
4089 <
4090 <  if test "$prepflagworks" = 1; then
4091 <    echo "$as_me:$LINENO: result: yes" >&5
4092 < echo "${ECHO_T}yes" >&6
4093 <
4094 <  else
4095 <    echo "$as_me:$LINENO: result: no" >&5
4096 < echo "${ECHO_T}no" >&6
4097 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
4098 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
4099 <   { (exit 1); exit 1; }; }
4100 <  fi
4101 < fi
4102 <
4103 <
4104 <
4105 <
4106 <
4107 < # Try to determine native compiler flags that allow us to use F90 suffix
4108 < # for preprocessed f90 source with -D type defines
4109 <
4110 < if test "$ac_test_PREPDEFFLAG" != "set"; then
4111 <  PREPDEFFLAG=""
4112 <  case "${host_cpu}-${host_os}" in
4113 <
4114 <  *linux*) if test "$F90" = ifc; then
4115 <                    PREPDEFFLAG=" "
4116 <                fi;;
4117 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4118 <                    PREPDEFFLAG="-WF,"
4119 <                fi;;
4120 <  *darwin*)
4121 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4122 <                PREPDEFFLAG="-WF,"
4123 <        fi;;
4124 <  esac
4125 <
4126 <  if test -z "$PREPDEFFLAG"; then
4127 <        echo ""
4128 <        echo "*************************************************************"
4129 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
4130 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
4131 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
4132 <        echo "*************************************************************"
4133 <        echo ""
4134 <        PREPDEFFLAG=" "
4135 <  fi
4136 <
4137 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
4138 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
4139 <
4140 <
4141 <  ac_ext=f90
5198 > rm -f conftest*
5199 > ac_ext=f90
5200   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5201   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5203  
4146  ac_save_ext=$ac_ext
4147  ac_ext=F90
4148  ac_save_F90FLAGS=$F90FLAGS
5204  
4150  if test "$PREPDEFFLAG"; then
4151  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
5205   fi
5206 + echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5207 + echo "${ECHO_T}$ac_guessed_f90flags" >&6
5208 + if test "$ac_guessed_f90flags" = yes; then
5209 +        :
5210  
4154    cat >conftest.$ac_ext <<_ACEOF
4155
4156
4157 program main
4158
4159  integer :: i
4160 #ifdef TEST
4161  i = 1
4162 #else
4163  choke me
4164 #endif
4165
4166
4167 end program main
4168
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172  (eval $ac_compile) 2>&5
4173  ac_status=$?
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } &&
4176         { ac_try='test -s conftest.$ac_objext'
4177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178  (eval $ac_try) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; }; then
4182  prepdefflagworks=1
5211   else
5212 <  echo "$as_me: failed program was:" >&5
4185 < sed 's/^/| /' conftest.$ac_ext >&5
5212 >        :
5213  
5214 < prepdefflagworks=0
5214 >        echo ""
5215 >        echo "**********************************************************"
5216 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5217 >        echo "* your compiler.                                         *"
5218 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5219 >        echo "**********************************************************"
5220 >        echo ""
5221 >        F90FLAGS=""
5222 >
5223   fi
4189 rm -f conftest.$ac_objext conftest.$ac_ext
5224  
4191  F90FLAGS=$ac_save_F90FLAGS
4192  ac_ext=$ac_save_ext
4193  ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5225  
5226 <
5226 > fi
5227  
5228 <  if test "$prepdefflagworks" = 1; then
5229 <    echo "$as_me:$LINENO: result: yes" >&5
4203 < echo "${ECHO_T}yes" >&6
5228 >     ;;
5229 > esac
5230  
4205  else
4206    echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4209 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4210   { (exit 1); exit 1; }; }
4211  fi
4212 fi
4213
5231   # Find a good install program.  We prefer a C program (faster),
5232   # so one script is as good as another.  But avoid the broken or
5233   # incompatible versions:
# Line 4222 | Line 5239 | fi
5239   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5240   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5241   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5242 + # OS/2's system install, which has a completely different semantic
5243   # ./install, which can be erroneously created by make from ./install.sh.
5244   echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5245   echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
# Line 4238 | Line 5256 | case $as_dir/ in
5256   case $as_dir/ in
5257    ./ | .// | /cC/* | \
5258    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5259 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5260    /usr/ucb/* ) ;;
5261    *)
5262      # OSF1 and SCO ODT 3.0 have their own names for install.
# Line 4245 | Line 5264 | case $as_dir/ in
5264      # by default.
5265      for ac_prog in ginstall scoinst install; do
5266        for ac_exec_ext in '' $ac_executable_extensions; do
5267 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5268 <          if test $ac_prog = install &&
5269 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270 <            # AIX install.  It has an incompatible calling convention.
5271 <            :
5272 <          elif test $ac_prog = install &&
5273 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5274 <            # program-specific install script used by HP pwplus--don't use.
5275 <            :
5276 <          else
5277 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5278 <            break 3
5279 <          fi
5280 <        fi
5267 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5268 >          if test $ac_prog = install &&
5269 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270 >            # AIX install.  It has an incompatible calling convention.
5271 >            :
5272 >          elif test $ac_prog = install &&
5273 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5274 >            # program-specific install script used by HP pwplus--don't use.
5275 >            :
5276 >          else
5277 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5278 >            break 3
5279 >          fi
5280 >        fi
5281        done
5282      done
5283      ;;
# Line 4301 | Line 5320 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./
5320  
5321   echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5322   echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5323 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5323 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5324   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5325    echo $ECHO_N "(cached) $ECHO_C" >&6
5326   else
# Line 4449 | Line 5468 | test -n "$YACC" || YACC="yacc"
5468   done
5469   test -n "$YACC" || YACC="yacc"
5470  
4452
5471   for ac_prog in flex lex
5472   do
5473    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 4501 | Line 5519 | cat >conftest.$ac_ext <<_ACEOF
5519    ac_check_lib_save_LIBS=$LIBS
5520   LIBS="-lfl  $LIBS"
5521   cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
5522  
5523 < /* Override any gcc2 internal prototype to avoid an error.  */
5524 < #ifdef __cplusplus
5525 < extern "C"
5526 < #endif
5527 < /* We use char because int might match the return type of a gcc2
4516 <   builtin and then its argument prototype would still apply.  */
4517 < char yywrap ();
4518 < int
4519 < main ()
4520 < {
4521 < yywrap ();
4522 <  ;
4523 <  return 0;
4524 < }
5523 > program main
5524 >
5525 > call yywrap
5526 > end program main
5527 >
5528   _ACEOF
5529   rm -f conftest.$ac_objext conftest$ac_exeext
5530   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 <  (eval $ac_link) 2>&5
5531 >  (eval $ac_link) 2>conftest.er1
5532    ac_status=$?
5533 +  grep -v '^ *+' conftest.er1 >conftest.err
5534 +  rm -f conftest.er1
5535 +  cat conftest.err >&5
5536    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537    (exit $ac_status); } &&
5538 <         { ac_try='test -s conftest$ac_exeext'
5538 >         { ac_try='test -z "$ac_f90_werror_flag"
5539 >                         || test ! -s conftest.err'
5540    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541    (eval $ac_try) 2>&5
5542    ac_status=$?
5543    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 +  (exit $ac_status); }; } &&
5545 +         { ac_try='test -s conftest$ac_exeext'
5546 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 +  (eval $ac_try) 2>&5
5548 +  ac_status=$?
5549 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550    (exit $ac_status); }; }; then
5551    ac_cv_lib_fl_yywrap=yes
5552   else
# Line 4542 | Line 5555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5555  
5556   ac_cv_lib_fl_yywrap=no
5557   fi
5558 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558 > rm -f conftest.err conftest.$ac_objext \
5559 >      conftest$ac_exeext conftest.$ac_ext
5560   LIBS=$ac_check_lib_save_LIBS
5561   fi
5562   echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
# Line 4558 | Line 5572 | cat >conftest.$ac_ext <<_ACEOF
5572    ac_check_lib_save_LIBS=$LIBS
5573   LIBS="-ll  $LIBS"
5574   cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
5575  
5576 < /* Override any gcc2 internal prototype to avoid an error.  */
5577 < #ifdef __cplusplus
5578 < extern "C"
5579 < #endif
5580 < /* We use char because int might match the return type of a gcc2
4573 <   builtin and then its argument prototype would still apply.  */
4574 < char yywrap ();
4575 < int
4576 < main ()
4577 < {
4578 < yywrap ();
4579 <  ;
4580 <  return 0;
4581 < }
5576 > program main
5577 >
5578 > call yywrap
5579 > end program main
5580 >
5581   _ACEOF
5582   rm -f conftest.$ac_objext conftest$ac_exeext
5583   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 <  (eval $ac_link) 2>&5
5584 >  (eval $ac_link) 2>conftest.er1
5585    ac_status=$?
5586 +  grep -v '^ *+' conftest.er1 >conftest.err
5587 +  rm -f conftest.er1
5588 +  cat conftest.err >&5
5589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590    (exit $ac_status); } &&
5591 <         { ac_try='test -s conftest$ac_exeext'
5591 >         { ac_try='test -z "$ac_f90_werror_flag"
5592 >                         || test ! -s conftest.err'
5593 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 >  (eval $ac_try) 2>&5
5595 >  ac_status=$?
5596 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 >  (exit $ac_status); }; } &&
5598 >         { ac_try='test -s conftest$ac_exeext'
5599    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600    (eval $ac_try) 2>&5
5601    ac_status=$?
# Line 4599 | Line 5608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5608  
5609   ac_cv_lib_l_yywrap=no
5610   fi
5611 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5611 > rm -f conftest.err conftest.$ac_objext \
5612 >      conftest$ac_exeext conftest.$ac_ext
5613   LIBS=$ac_check_lib_save_LIBS
5614   fi
5615   echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
# Line 4661 | Line 5671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671   _ACEOF
5672   rm -f conftest.$ac_objext conftest$ac_exeext
5673   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 <  (eval $ac_link) 2>&5
5674 >  (eval $ac_link) 2>conftest.er1
5675    ac_status=$?
5676 +  grep -v '^ *+' conftest.er1 >conftest.err
5677 +  rm -f conftest.er1
5678 +  cat conftest.err >&5
5679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680    (exit $ac_status); } &&
5681 <         { ac_try='test -s conftest$ac_exeext'
5681 >         { ac_try='test -z "$ac_f90_werror_flag"
5682 >                         || test ! -s conftest.err'
5683    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684    (eval $ac_try) 2>&5
5685    ac_status=$?
5686    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 +  (exit $ac_status); }; } &&
5688 +         { ac_try='test -s conftest$ac_exeext'
5689 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 +  (eval $ac_try) 2>&5
5691 +  ac_status=$?
5692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693    (exit $ac_status); }; }; then
5694    ac_cv_prog_lex_yytext_pointer=yes
5695   else
# Line 4677 | Line 5697 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5697   sed 's/^/| /' conftest.$ac_ext >&5
5698  
5699   fi
5700 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 > rm -f conftest.err conftest.$ac_objext \
5701 >      conftest$ac_exeext conftest.$ac_ext
5702   LIBS=$ac_save_LIBS
5703   rm -f "${LEX_OUTPUT_ROOT}.c"
5704  
# Line 4761 | Line 5782 | _ACEOF
5782        # `set' does not quote correctly, so add quotes (double-quote
5783        # substitution turns \\\\ into \\, and sed turns \\ into \).
5784        sed -n \
5785 <        "s/'/'\\\\''/g;
5786 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5785 >        "s/'/'\\\\''/g;
5786 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5787        ;;
5788      *)
5789        # `set' quotes correctly as required by POSIX, so do not add quotes.
5790        sed -n \
5791 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5791 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5792        ;;
5793      esac;
5794   } |
# Line 4790 | Line 5811 | ac_ext=f90
5811    exit 1
5812   fi
5813  
4793 ac_ext=f90
4794 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4795 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5814  
5815  
5816 <
5817 < ac_ext=f90
5818 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5819 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4804 < echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4805 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4806 < if test "${ac_cv_prog_f90_v+set}" = set; then
4807 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5816 > # Check whether --with-mpi or --without-mpi was given.
5817 > if test "${with_mpi+set}" = set; then
5818 >  withval="$with_mpi"
5819 >  with_mpi=$withval
5820   else
5821 <
5822 < cat >conftest.$ac_ext <<_ACEOF
4811 <
4812 < program main
4813 <
4814 <
4815 < end program main
4816 <
4817 < _ACEOF
4818 < rm -f conftest.$ac_objext
4819 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 <  (eval $ac_compile) 2>&5
4821 <  ac_status=$?
4822 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 <  (exit $ac_status); } &&
4824 <         { ac_try='test -s conftest.$ac_objext'
4825 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 <  (eval $ac_try) 2>&5
4827 <  ac_status=$?
4828 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 <  (exit $ac_status); }; }; then
4830 <  ac_cv_prog_f90_v=
4831 < # Try some options frequently used verbose output
4832 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4833 <  ac_ext=f90
4834 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4835 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5821 >  with_mpi="no"
5822 > fi;
5823  
5824 < cat >conftest.$ac_ext <<_ACEOF
5825 <
5826 < program main
5827 <
4842 <
4843 < end program main
4844 <
4845 < _ACEOF
4846 <
4847 < # Compile and link our simple test program by passing a flag (argument
4848 < # 1 to this macro) to the Fortran 90 compiler in order to get
4849 < # "verbose" output that we can then parse for the Fortran 90 linker
4850 < # flags.
4851 < ac_save_F90FLAGS=$F90FLAGS
4852 < F90FLAGS="$F90FLAGS $ac_verb"
4853 <
4854 < (eval echo $as_me:4854: \"$ac_link\") >&5
4855 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4856 < echo "$ac_f90_v_output" >&5
4857 < F90FLAGS=$ac_save_F90FLAGS
4858 <
4859 < rm -f conftest.*
4860 < ac_ext=f90
4861 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4862 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4864 <
4865 < # If we are using xlf then replace all the commas with spaces.
4866 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4867 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4868 < fi
4869 <
4870 < # If we are using Cray Fortran then delete quotes.
4871 < # Use "\"" instead of '"' for font-lock-mode.
4872 < # FIXME: a more general fix for quoted arguments with spaces?
4873 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4874 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4875 < fi
4876 <  # look for -l* and *.a constructs in the output
4877 <  for ac_arg in $ac_f90_v_output; do
4878 <     case $ac_arg in
4879 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4880 <          ac_cv_prog_f90_v=$ac_verb
4881 <          break 2 ;;
4882 <     esac
4883 <  done
4884 < done
4885 < if test -z "$ac_cv_prog_f90_v"; then
4886 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4887 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4888 < fi
4889 < else
4890 <  echo "$as_me: failed program was:" >&5
4891 < sed 's/^/| /' conftest.$ac_ext >&5
4892 <
4893 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4894 < echo "$as_me: WARNING: compilation failed" >&2;}
4895 < fi
4896 < rm -f conftest.$ac_objext conftest.$ac_ext
4897 <
4898 < fi
4899 < echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4900 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4901 < echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4902 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4903 < if test "${ac_cv_flibs+set}" = set; then
4904 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4905 < else
4906 <  if test "x$F90LIBS" != "x"; then
4907 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4908 < else
4909 <
4910 < ac_ext=f90
4911 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4912 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4914 <
4915 < cat >conftest.$ac_ext <<_ACEOF
4916 <
4917 < program main
4918 <
4919 <
4920 < end program main
4921 <
4922 < _ACEOF
4923 <
4924 < # Compile and link our simple test program by passing a flag (argument
4925 < # 1 to this macro) to the Fortran 90 compiler in order to get
4926 < # "verbose" output that we can then parse for the Fortran 90 linker
4927 < # flags.
4928 < ac_save_F90FLAGS=$F90FLAGS
4929 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4930 <
4931 < (eval echo $as_me:4931: \"$ac_link\") >&5
4932 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4933 < echo "$ac_f90_v_output" >&5
4934 < F90FLAGS=$ac_save_F90FLAGS
4935 <
4936 < rm -f conftest.*
4937 < ac_ext=f90
4938 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4939 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4941 <
4942 < # If we are using xlf then replace all the commas with spaces.
4943 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4944 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4945 < fi
4946 <
4947 < # If we are using Cray Fortran then delete quotes.
4948 < # Use "\"" instead of '"' for font-lock-mode.
4949 < # FIXME: a more general fix for quoted arguments with spaces?
4950 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4951 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4952 < fi
4953 <
4954 < ac_cv_f90libs=
4955 <
4956 < # Save positional arguments (if any)
4957 < ac_save_positional="$@"
4958 <
4959 < set X $ac_f90_v_output
4960 < while test $# != 1; do
4961 <  shift
4962 <  ac_arg=$1
4963 <  case $ac_arg in
4964 <        [\\/]*.a | ?:[\\/]*.a)
4965 <            ac_exists=false
4966 <  for ac_i in $ac_cv_f90libs; do
4967 <    if test x"$ac_arg" = x"$ac_i"; then
4968 <      ac_exists=true
4969 <      break
4970 <    fi
4971 <  done
4972 <
4973 <  if test x"$ac_exists" = xtrue; then
4974 <  :
4975 < else
4976 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4977 < fi
4978 <
4979 <          ;;
4980 <        -bI:*)
4981 <            ac_exists=false
4982 <  for ac_i in $ac_cv_f90libs; do
4983 <    if test x"$ac_arg" = x"$ac_i"; then
4984 <      ac_exists=true
4985 <      break
4986 <    fi
4987 <  done
4988 <
4989 <  if test x"$ac_exists" = xtrue; then
4990 <  :
4991 < else
4992 <  if test "$ac_compiler_gnu" = yes; then
4993 <  for ac_link_opt in $ac_arg; do
4994 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4995 <  done
4996 < else
4997 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4998 < fi
4999 < fi
5000 <
5001 <          ;;
5002 <          # Ignore these flags.
5003 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
5004 <          ;;
5005 <        -lkernel32)
5006 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5007 <          ;;
5008 <        -[LRuY])
5009 <          # These flags, when seen by themselves, take an argument.
5010 <          # We remove the space between option and argument and re-iterate
5011 <          # unless we find an empty arg or a new option (starting with -)
5012 <          case $2 in
5013 <             "" | -*);;
5014 <             *)
5015 <                ac_arg="$ac_arg$2"
5016 <
5017 <                shift; shift
5018 <                set X $ac_arg "$@"
5019 <                ;;
5020 <          esac
5021 <          ;;
5022 <        -YP,*)
5023 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5024 <              ac_exists=false
5025 <  for ac_i in $ac_cv_f90libs; do
5026 <    if test x"$ac_j" = x"$ac_i"; then
5027 <      ac_exists=true
5028 <      break
5029 <    fi
5030 <  done
5031 <
5032 <  if test x"$ac_exists" = xtrue; then
5033 <  :
5034 < else
5035 <  ac_arg="$ac_arg $ac_j"
5036 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5037 < fi
5038 <
5039 <          done
5040 <          ;;
5041 <        -[lLR]*)
5042 <            ac_exists=false
5043 <  for ac_i in $ac_cv_f90libs; do
5044 <    if test x"$ac_arg" = x"$ac_i"; then
5045 <      ac_exists=true
5046 <      break
5047 <    fi
5048 <  done
5049 <
5050 <  if test x"$ac_exists" = xtrue; then
5051 <  :
5052 < else
5053 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5054 < fi
5055 <
5056 <          ;;
5057 <          # Ignore everything else.
5058 <  esac
5059 < done
5060 < # restore positional arguments
5061 < set X $ac_save_positional; shift
5062 <
5063 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5064 < # then we insist that the "run path" must be an absolute path (i.e. it
5065 < # must begin with a "/").
5066 < case `(uname -sr) 2>/dev/null` in
5067 <   "SunOS 5"*)
5068 <      ac_ld_run_path=`echo $ac_f90_v_output |
5069 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5070 <      test "x$ac_ld_run_path" != x &&
5071 <
5072 <        if test "$ac_compiler_gnu" = yes; then
5073 <  for ac_link_opt in $ac_ld_run_path; do
5074 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5075 <  done
5076 < else
5077 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
5078 < fi
5079 <      ;;
5080 < esac
5081 < fi # test "x$F90LIBS" = "x"
5082 <
5083 < fi
5084 < echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5085 < echo "${ECHO_T}$ac_cv_flibs" >&6
5086 < F90LIBS="$ac_cv_f90libs"
5087 <
5088 < ac_ext=f90
5089 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5090 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5092 <
5093 < echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5094 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5095 < if test "${ac_cv_f90_mangling+set}" = set; then
5096 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5097 < else
5098 <  ac_ext=f90
5099 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5100 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5102 < cat >conftest.$ac_ext <<_ACEOF
5103 < subroutine foobar()
5104 < return
5105 < end
5106 < subroutine foo_bar()
5107 < return
5108 < end
5109 < _ACEOF
5110 < rm -f conftest.$ac_objext
5111 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 <  (eval $ac_compile) 2>&5
5113 <  ac_status=$?
5114 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 <  (exit $ac_status); } &&
5116 <         { ac_try='test -s conftest.$ac_objext'
5117 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 <  (eval $ac_try) 2>&5
5119 <  ac_status=$?
5120 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 <  (exit $ac_status); }; }; then
5122 <  mv conftest.$ac_objext cf90_test.$ac_objext
5123 <
5124 <  ac_ext=c
5125 < ac_cpp='$CPP $CPPFLAGS'
5126 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129 <
5130 <  ac_save_LIBS=$LIBS
5131 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5132 <
5133 <  ac_success=no
5134 <  for ac_foobar in foobar FOOBAR; do
5135 <    for ac_underscore in "" "_"; do
5136 <      ac_func="$ac_foobar$ac_underscore"
5137 <      cat >conftest.$ac_ext <<_ACEOF
5138 < #line $LINENO "configure"
5139 < /* confdefs.h.  */
5140 < _ACEOF
5141 < cat confdefs.h >>conftest.$ac_ext
5142 < cat >>conftest.$ac_ext <<_ACEOF
5143 < /* end confdefs.h.  */
5144 <
5145 < /* Override any gcc2 internal prototype to avoid an error.  */
5146 < #ifdef __cplusplus
5147 < extern "C"
5148 < #endif
5149 < /* We use char because int might match the return type of a gcc2
5150 <   builtin and then its argument prototype would still apply.  */
5151 < char $ac_func ();
5152 < int
5153 < main ()
5154 < {
5155 < $ac_func ();
5156 <  ;
5157 <  return 0;
5158 < }
5159 < _ACEOF
5160 < rm -f conftest.$ac_objext conftest$ac_exeext
5161 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162 <  (eval $ac_link) 2>&5
5163 <  ac_status=$?
5164 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 <  (exit $ac_status); } &&
5166 <         { ac_try='test -s conftest$ac_exeext'
5167 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 <  (eval $ac_try) 2>&5
5169 <  ac_status=$?
5170 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 <  (exit $ac_status); }; }; then
5172 <  ac_success=yes; break 2
5173 < else
5174 <  echo "$as_me: failed program was:" >&5
5175 < sed 's/^/| /' conftest.$ac_ext >&5
5176 <
5177 < fi
5178 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5179 <    done
5180 <  done
5181 <
5182 <  if test "$ac_success" = "yes"; then
5183 <     case $ac_foobar in
5184 <        foobar)
5185 <           ac_case=lower
5186 <           ac_foo_bar=foo_bar
5187 <           ;;
5188 <        FOOBAR)
5189 <           ac_case=upper
5190 <           ac_foo_bar=FOO_BAR
5191 <           ;;
5192 <     esac
5193 <
5194 <     ac_success_extra=no
5195 <     for ac_extra in "" "_"; do
5196 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5197 <
5198 <        cat >conftest.$ac_ext <<_ACEOF
5199 < #line $LINENO "configure"
5200 < /* confdefs.h.  */
5201 < _ACEOF
5202 < cat confdefs.h >>conftest.$ac_ext
5203 < cat >>conftest.$ac_ext <<_ACEOF
5204 < /* end confdefs.h.  */
5205 <
5206 < /* Override any gcc2 internal prototype to avoid an error.  */
5207 < #ifdef __cplusplus
5208 < extern "C"
5209 < #endif
5210 < /* We use char because int might match the return type of a gcc2
5211 <   builtin and then its argument prototype would still apply.  */
5212 < char $ac_func ();
5213 < int
5214 < main ()
5215 < {
5216 < $ac_func ();
5217 <  ;
5218 <  return 0;
5219 < }
5220 < _ACEOF
5221 < rm -f conftest.$ac_objext conftest$ac_exeext
5222 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223 <  (eval $ac_link) 2>&5
5224 <  ac_status=$?
5225 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 <  (exit $ac_status); } &&
5227 <         { ac_try='test -s conftest$ac_exeext'
5228 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 <  (eval $ac_try) 2>&5
5230 <  ac_status=$?
5231 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 <  (exit $ac_status); }; }; then
5233 <  ac_success_extra=yes; break
5234 < else
5235 <  echo "$as_me: failed program was:" >&5
5236 < sed 's/^/| /' conftest.$ac_ext >&5
5237 <
5238 < fi
5239 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5240 <     done
5241 <
5242 <     if test "$ac_success_extra" = "yes"; then
5243 <        ac_cv_f90_mangling="$ac_case case"
5244 <        if test -z "$ac_underscore"; then
5245 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
5246 <        else
5247 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
5248 <
5249 <        fi
5250 <        if test -z "$ac_extra"; then
5251 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
5252 <        else
5253 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
5254 <        fi
5255 <      else
5256 <        ac_cv_f90_mangling="unknown"
5257 <      fi
5258 <  else
5259 <     ac_cv_f90_mangling="unknown"
5260 <
5261 <  fi
5262 <
5263 <  LIBS=$ac_save_LIBS
5264 <  ac_ext=f90
5265 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5266 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5268 <  rm -f cf90_test* conftest*
5269 < else
5270 <  echo "$as_me: failed program was:" >&5
5271 < sed 's/^/| /' conftest.$ac_ext >&5
5272 <
5273 < fi
5274 < rm -f conftest.$ac_objext conftest.$ac_ext
5275 < ac_ext=f90
5276 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5277 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5279 <
5280 < fi
5281 < echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5282 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5283 <
5284 <
5285 <
5286 < case $ac_cv_f90_mangling in
5287 <  "lower case, no underscore, no extra underscore")
5288 <          cat >>confdefs.h <<\_ACEOF
5289 < #define F90_FUNC(name,NAME) name
5290 < _ACEOF
5291 <
5292 <          cat >>confdefs.h <<\_ACEOF
5293 < #define F90_FUNC_(name,NAME) name
5294 < _ACEOF
5295 < ;;
5296 <  "lower case, no underscore, extra underscore")
5297 <          cat >>confdefs.h <<\_ACEOF
5298 < #define F90_FUNC(name,NAME) name
5299 < _ACEOF
5300 <
5301 <          cat >>confdefs.h <<\_ACEOF
5302 < #define F90_FUNC_(name,NAME) name ## _
5303 < _ACEOF
5304 < ;;
5305 <  "lower case, underscore, no extra underscore")
5306 <          cat >>confdefs.h <<\_ACEOF
5307 < #define F90_FUNC(name,NAME) name ## _
5308 < _ACEOF
5309 <
5310 <          cat >>confdefs.h <<\_ACEOF
5311 < #define F90_FUNC_(name,NAME) name ## _
5312 < _ACEOF
5313 < ;;
5314 <  "lower case, underscore, extra underscore")
5315 <          cat >>confdefs.h <<\_ACEOF
5316 < #define F90_FUNC(name,NAME) name ## _
5317 < _ACEOF
5318 <
5319 <          cat >>confdefs.h <<\_ACEOF
5320 < #define F90_FUNC_(name,NAME) name ## __
5321 < _ACEOF
5322 < ;;
5323 <  "upper case, no underscore, no extra underscore")
5324 <          cat >>confdefs.h <<\_ACEOF
5325 < #define F90_FUNC(name,NAME) NAME
5326 < _ACEOF
5327 <
5328 <          cat >>confdefs.h <<\_ACEOF
5329 < #define F90_FUNC_(name,NAME) NAME
5330 < _ACEOF
5331 < ;;
5332 <  "upper case, no underscore, extra underscore")
5333 <          cat >>confdefs.h <<\_ACEOF
5334 < #define F90_FUNC(name,NAME) NAME
5335 < _ACEOF
5336 <
5337 <          cat >>confdefs.h <<\_ACEOF
5338 < #define F90_FUNC_(name,NAME) NAME ## _
5339 < _ACEOF
5340 < ;;
5341 <  "upper case, underscore, no extra underscore")
5342 <          cat >>confdefs.h <<\_ACEOF
5343 < #define F90_FUNC(name,NAME) NAME ## _
5344 < _ACEOF
5345 <
5346 <          cat >>confdefs.h <<\_ACEOF
5347 < #define F90_FUNC_(name,NAME) NAME ## _
5348 < _ACEOF
5349 < ;;
5350 <  "upper case, underscore, extra underscore")
5351 <          cat >>confdefs.h <<\_ACEOF
5352 < #define F90_FUNC(name,NAME) NAME ## _
5353 < _ACEOF
5354 <
5355 <          cat >>confdefs.h <<\_ACEOF
5356 < #define F90_FUNC_(name,NAME) NAME ## __
5357 < _ACEOF
5358 < ;;
5359 <  *)
5360 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5361 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5362 <          ;;
5363 < esac
5364 <
5365 <
5366 <
5367 <
5368 < echo "$as_me:$LINENO: checking for mpi-directory" >&5
5369 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5370 <
5371 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5372 < if test "${with_mpi_dir+set}" = set; then
5373 <  withval="$with_mpi_dir"
5374 <  MPI_DIR="$withval"
5375 < else
5376 <  MPI_DIR="/usr/local"
5377 < fi;
5378 < echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5379 < echo "${ECHO_T}$MPI_DIR" >&6
5380 <
5381 <
5382 < echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5383 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5384 <
5385 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5386 < if test "${with_mpi_libdir+set}" = set; then
5387 <  withval="$with_mpi_libdir"
5388 <  MPI_LIBDIR="$withval"
5389 < else
5390 <  MPI_LIBDIR="$MPI_DIR/lib"
5391 < fi;
5392 < echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5393 < echo "${ECHO_T}$MPI_LIBDIR" >&6
5394 <
5395 <
5396 < echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5397 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5398 <
5399 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
5400 < if test "${with_mpi_inc+set}" = set; then
5401 <  withval="$with_mpi_inc"
5402 <  MPI_INC="$withval"
5403 < else
5404 <  MPI_INC="$MPI_DIR/include"
5405 < fi;
5406 < echo "$as_me:$LINENO: result: $MPI_INC" >&5
5407 < echo "${ECHO_T}$MPI_INC" >&6
5408 <
5409 <
5410 <
5411 < echo "$as_me:$LINENO: checking for MPI library" >&5
5412 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5413 < MPI_LIB=""
5414 < case "$host" in
5415 <  *-ibm-aix*)
5416 <    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5417 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5418 <    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5419 < echo "${ECHO_T}$PACX_SIGNAL" >&6
5420 <    if test "x$PACX_SIGNAL" = "xyes" ; then
5421 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
5422 <        MPI_LIB="-lmpi"
5423 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5424 <        MPI_LIB="-lmpi"
5425 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5426 <        MPI_LIB="-lmpich"
5427 <      else
5428 <        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5429 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5430 <   { (exit 1); exit 1; }; }
5431 <      fi
5432 <    else
5433 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5434 <         MPI_LIB="-lmpi_r"
5435 <      else
5436 <         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5437 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5438 <   { (exit 1); exit 1; }; }
5439 <      fi
5440 <    fi
5441 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5442 < echo "${ECHO_T}found $MPI_LIB" >&6
5443 <  ;;
5444 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5445 <      MPI_LIB="-lmpi"
5446 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5447 <      MPI_LIB="-lmpi"
5448 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5449 <      MPI_LIB="-lmpich"
5450 <    else
5451 <      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5452 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5453 <   { (exit 1); exit 1; }; }
5454 <    fi
5455 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5456 < echo "${ECHO_T}found $MPI_LIB" >&6
5457 <  ;;
5824 > case "x$with_mpi" in
5825 >        xyes | "x")  USE_MPI=yes;;
5826 >        xno) USE_MPI=no ;;
5827 >        *) MPI="$with_mpi"; USE_MPI=yes ;;
5828   esac
5829 + if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
5830 +        MPI="/usr/local"
5831 + fi
5832 + if test "$USE_MPI" = "yes"; then
5833 +        echo "MPI = $MPI"
5834  
5835  
5836 + # Set variables...
5837 + MPI_LIB_DIR="$MPI/lib"
5838 + MPI_INC_DIR="$MPI/include"
5839  
5840  
5841  
5842 <
5843 <
5844 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5845 < do
5846 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 < set dummy $ac_prog; ac_word=$2
5848 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5473 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5842 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5843 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5844 > have_mpi_h=0
5845 > echo '#include <mpi.h>' > conftest.cc
5846 > if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
5847 >        echo "$as_me:$LINENO: result: yes" >&5
5848 > echo "${ECHO_T}yes" >&6
5849 >        have_mpi_h=1
5850   else
5851 <  if test -n "$MPIF90"; then
5852 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5853 < else
5854 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 < for as_dir in $PATH
5856 < do
5481 <  IFS=$as_save_IFS
5482 <  test -z "$as_dir" && as_dir=.
5483 <  for ac_exec_ext in '' $ac_executable_extensions; do
5484 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 <    ac_cv_prog_MPIF90="$ac_prog"
5486 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 <    break 2
5488 <  fi
5489 < done
5490 < done
5851 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5852 > echo "${ECHO_T}no! Check MPI include paths" >&6
5853 >        USE_MPI="no"
5854 > fi
5855 > rm -f conftest*
5856 > if test "$have_mpi_h" = 1; then
5857  
5858 + cat >>confdefs.h <<\_ACEOF
5859 + #define HAVE_MPI_H 1
5860 + _ACEOF
5861 +
5862   fi
5863 < fi
5864 < MPIF90=$ac_cv_prog_MPIF90
5865 < if test -n "$MPIF90"; then
5866 <  echo "$as_me:$LINENO: result: $MPIF90" >&5
5867 < echo "${ECHO_T}$MPIF90" >&6
5863 >
5864 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5865 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5866 > have_mpif_h=0
5867 > rm -f conftest*
5868 > cat >conftest.f90 <<EOF
5869 > program main
5870 >   include 'mpif.h'
5871 > end
5872 > EOF
5873 > if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
5874 >        echo "$as_me:$LINENO: result: yes" >&5
5875 > echo "${ECHO_T}yes" >&6
5876 >        MPI_F90_INC="$MPI_INC_DIR"
5877 >        have_mpif_h=1
5878   else
5879 <  echo "$as_me:$LINENO: result: no" >&5
5880 < echo "${ECHO_T}no" >&6
5879 >        if test -s conftest.out ; then
5880 >                cat conftest.out >> config.log
5881 >        fi
5882 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5883 > echo "${ECHO_T}no! Check MPI include paths" >&6
5884 >        USE_MPI="no"
5885   fi
5886 + rm -f conftest*
5887  
5888 <  test -n "$MPIF90" && break
5504 < done
5505 < test -n "$MPIF90" || MPIF90="$F90"
5888 > if test "$have_mpif_h" = 1; then
5889  
5890 <        acx_mpi_save_F90="$F90"
5891 <        F90="$MPIF90"
5890 > cat >>confdefs.h <<\_ACEOF
5891 > #define HAVE_MPIF_H 1
5892 > _ACEOF
5893  
5894 + fi
5895  
5896 + ac_ext=c
5897 + ac_cpp='$CPP $CPPFLAGS'
5898 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901  
5902 < if test x = x"$MPILIBS"; then
5903 <        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5514 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5515 <                        cat >conftest.$ac_ext <<_ACEOF
5902 > ac_save_LDFLAGS=$LDFLAGS
5903 > LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
5904  
5905 < program main
5905 > if test x = x"$MPI_LIB"; then
5906 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5907 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5908 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5909 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5910 > else
5911 >  ac_check_lib_save_LIBS=$LIBS
5912 > LIBS="-lmpi  $LIBS"
5913 > cat >conftest.$ac_ext <<_ACEOF
5914 > /* confdefs.h.  */
5915 > _ACEOF
5916 > cat confdefs.h >>conftest.$ac_ext
5917 > cat >>conftest.$ac_ext <<_ACEOF
5918 > /* end confdefs.h.  */
5919  
5920 <      call MPI_Init
5921 < end program main
5920 > /* Override any gcc2 internal prototype to avoid an error.  */
5921 > #ifdef __cplusplus
5922 > extern "C"
5923 > #endif
5924 > /* We use char because int might match the return type of a gcc2
5925 >   builtin and then its argument prototype would still apply.  */
5926 > char MPI_Init ();
5927 > int
5928 > main ()
5929 > {
5930 > MPI_Init ();
5931 >  ;
5932 >  return 0;
5933 > }
5934 > _ACEOF
5935 > rm -f conftest.$ac_objext conftest$ac_exeext
5936 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 >  (eval $ac_link) 2>conftest.er1
5938 >  ac_status=$?
5939 >  grep -v '^ *+' conftest.er1 >conftest.err
5940 >  rm -f conftest.er1
5941 >  cat conftest.err >&5
5942 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 >  (exit $ac_status); } &&
5944 >         { ac_try='test -z "$ac_c_werror_flag"
5945 >                         || test ! -s conftest.err'
5946 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 >  (eval $ac_try) 2>&5
5948 >  ac_status=$?
5949 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 >  (exit $ac_status); }; } &&
5951 >         { ac_try='test -s conftest$ac_exeext'
5952 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 >  (eval $ac_try) 2>&5
5954 >  ac_status=$?
5955 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 >  (exit $ac_status); }; }; then
5957 >  ac_cv_lib_mpi_MPI_Init=yes
5958 > else
5959 >  echo "$as_me: failed program was:" >&5
5960 > sed 's/^/| /' conftest.$ac_ext >&5
5961  
5962 + ac_cv_lib_mpi_MPI_Init=no
5963 + fi
5964 + rm -f conftest.err conftest.$ac_objext \
5965 +      conftest$ac_exeext conftest.$ac_ext
5966 + LIBS=$ac_check_lib_save_LIBS
5967 + fi
5968 + echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5969 + echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5970 + if test $ac_cv_lib_mpi_MPI_Init = yes; then
5971 +  MPI_LIB="-lmpi"
5972 + fi
5973 +
5974 + fi
5975 + if test x = x"$MPI_LIB"; then
5976 +        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5977 + echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5978 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5979 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5980 + else
5981 +  ac_check_lib_save_LIBS=$LIBS
5982 + LIBS="-lmpich  $LIBS"
5983 + cat >conftest.$ac_ext <<_ACEOF
5984 + /* confdefs.h.  */
5985   _ACEOF
5986 + cat confdefs.h >>conftest.$ac_ext
5987 + cat >>conftest.$ac_ext <<_ACEOF
5988 + /* end confdefs.h.  */
5989 +
5990 + /* Override any gcc2 internal prototype to avoid an error.  */
5991 + #ifdef __cplusplus
5992 + extern "C"
5993 + #endif
5994 + /* We use char because int might match the return type of a gcc2
5995 +   builtin and then its argument prototype would still apply.  */
5996 + char MPI_Init ();
5997 + int
5998 + main ()
5999 + {
6000 + MPI_Init ();
6001 +  ;
6002 +  return 0;
6003 + }
6004 + _ACEOF
6005   rm -f conftest.$ac_objext conftest$ac_exeext
6006   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 <  (eval $ac_link) 2>&5
6007 >  (eval $ac_link) 2>conftest.er1
6008    ac_status=$?
6009 +  grep -v '^ *+' conftest.er1 >conftest.err
6010 +  rm -f conftest.er1
6011 +  cat conftest.err >&5
6012    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013    (exit $ac_status); } &&
6014 <         { ac_try='test -s conftest$ac_exeext'
6014 >         { ac_try='test -z "$ac_c_werror_flag"
6015 >                         || test ! -s conftest.err'
6016    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017    (eval $ac_try) 2>&5
6018    ac_status=$?
6019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 +  (exit $ac_status); }; } &&
6021 +         { ac_try='test -s conftest$ac_exeext'
6022 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 +  (eval $ac_try) 2>&5
6024 +  ac_status=$?
6025 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026    (exit $ac_status); }; }; then
6027 <  MPILIBS=" "
5536 <                                echo "$as_me:$LINENO: result: yes" >&5
5537 < echo "${ECHO_T}yes" >&6
6027 >  ac_cv_lib_mpich_MPI_Init=yes
6028   else
6029    echo "$as_me: failed program was:" >&5
6030   sed 's/^/| /' conftest.$ac_ext >&5
6031  
6032 < echo "$as_me:$LINENO: result: no" >&5
5543 < echo "${ECHO_T}no" >&6
6032 > ac_cv_lib_mpich_MPI_Init=no
6033   fi
6034 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 > rm -f conftest.err conftest.$ac_objext \
6035 >      conftest$ac_exeext conftest.$ac_ext
6036 > LIBS=$ac_check_lib_save_LIBS
6037   fi
6038 < if test x = x"$MPILIBS"; then
6038 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6039 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6040 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6041 >  MPI_LIB="-lmpich"
6042 > fi
6043 >
6044 > fi
6045 > $as_unset ac_cv_lib_mpi_MPI_Init
6046 > if test x = x"$MPI_LIB"; then
6047          echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6048   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6049   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6050    echo $ECHO_N "(cached) $ECHO_C" >&6
6051   else
6052    ac_check_lib_save_LIBS=$LIBS
6053 < LIBS="-lmpi  $LIBS"
6053 > LIBS="-lmpi "-llam" $LIBS"
6054   cat >conftest.$ac_ext <<_ACEOF
6055 <
6056 < program main
6057 <
6058 < call MPI_Init
6059 < end program main
6055 > /* confdefs.h.  */
6056 > _ACEOF
6057 > cat confdefs.h >>conftest.$ac_ext
6058 > cat >>conftest.$ac_ext <<_ACEOF
6059 > /* end confdefs.h.  */
6060  
6061 + /* Override any gcc2 internal prototype to avoid an error.  */
6062 + #ifdef __cplusplus
6063 + extern "C"
6064 + #endif
6065 + /* We use char because int might match the return type of a gcc2
6066 +   builtin and then its argument prototype would still apply.  */
6067 + char MPI_Init ();
6068 + int
6069 + main ()
6070 + {
6071 + MPI_Init ();
6072 +  ;
6073 +  return 0;
6074 + }
6075   _ACEOF
6076   rm -f conftest.$ac_objext conftest$ac_exeext
6077   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 <  (eval $ac_link) 2>&5
6078 >  (eval $ac_link) 2>conftest.er1
6079    ac_status=$?
6080 +  grep -v '^ *+' conftest.er1 >conftest.err
6081 +  rm -f conftest.er1
6082 +  cat conftest.err >&5
6083    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084    (exit $ac_status); } &&
6085 <         { ac_try='test -s conftest$ac_exeext'
6085 >         { ac_try='test -z "$ac_c_werror_flag"
6086 >                         || test ! -s conftest.err'
6087    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088    (eval $ac_try) 2>&5
6089    ac_status=$?
6090    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 +  (exit $ac_status); }; } &&
6092 +         { ac_try='test -s conftest$ac_exeext'
6093 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 +  (eval $ac_try) 2>&5
6095 +  ac_status=$?
6096 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097    (exit $ac_status); }; }; then
6098    ac_cv_lib_mpi_MPI_Init=yes
6099   else
# Line 5579 | Line 6102 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6102  
6103   ac_cv_lib_mpi_MPI_Init=no
6104   fi
6105 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 > rm -f conftest.err conftest.$ac_objext \
6106 >      conftest$ac_exeext conftest.$ac_ext
6107   LIBS=$ac_check_lib_save_LIBS
6108   fi
6109   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6110   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6111   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6112 <  MPILIBS="-lmpi"
6112 >  MPI_LIB="-lmpi -llam"
6113   fi
6114  
6115   fi
6116 < if test x = x"$MPILIBS"; then
6117 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
6118 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6119 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6116 >
6117 > $as_unset ac_cv_lib_mpi_MPI_Init
6118 > if test x = x"$MPI_LIB"; then
6119 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6120 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6121 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6122    echo $ECHO_N "(cached) $ECHO_C" >&6
6123   else
6124    ac_check_lib_save_LIBS=$LIBS
6125 < LIBS="-lmpich  $LIBS"
6125 > LIBS="-lmpi -llam -lpthread $LIBS"
6126   cat >conftest.$ac_ext <<_ACEOF
6127 + /* confdefs.h.  */
6128 + _ACEOF
6129 + cat confdefs.h >>conftest.$ac_ext
6130 + cat >>conftest.$ac_ext <<_ACEOF
6131 + /* end confdefs.h.  */
6132  
6133 < program main
6134 <
6135 < call MPI_Init
6136 < end program main
6137 <
6133 > /* Override any gcc2 internal prototype to avoid an error.  */
6134 > #ifdef __cplusplus
6135 > extern "C"
6136 > #endif
6137 > /* We use char because int might match the return type of a gcc2
6138 >   builtin and then its argument prototype would still apply.  */
6139 > char MPI_Init ();
6140 > int
6141 > main ()
6142 > {
6143 > MPI_Init ();
6144 >  ;
6145 >  return 0;
6146 > }
6147   _ACEOF
6148   rm -f conftest.$ac_objext conftest$ac_exeext
6149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 <  (eval $ac_link) 2>&5
6150 >  (eval $ac_link) 2>conftest.er1
6151    ac_status=$?
6152 +  grep -v '^ *+' conftest.er1 >conftest.err
6153 +  rm -f conftest.er1
6154 +  cat conftest.err >&5
6155    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156    (exit $ac_status); } &&
6157 <         { ac_try='test -s conftest$ac_exeext'
6157 >         { ac_try='test -z "$ac_c_werror_flag"
6158 >                         || test ! -s conftest.err'
6159    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160    (eval $ac_try) 2>&5
6161    ac_status=$?
6162    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 +  (exit $ac_status); }; } &&
6164 +         { ac_try='test -s conftest$ac_exeext'
6165 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 +  (eval $ac_try) 2>&5
6167 +  ac_status=$?
6168 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169    (exit $ac_status); }; }; then
6170 <  ac_cv_lib_mpich_MPI_Init=yes
6170 >  ac_cv_lib_mpi_MPI_Init=yes
6171   else
6172    echo "$as_me: failed program was:" >&5
6173   sed 's/^/| /' conftest.$ac_ext >&5
6174  
6175 < ac_cv_lib_mpich_MPI_Init=no
6175 > ac_cv_lib_mpi_MPI_Init=no
6176   fi
6177 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6177 > rm -f conftest.err conftest.$ac_objext \
6178 >      conftest$ac_exeext conftest.$ac_ext
6179   LIBS=$ac_check_lib_save_LIBS
6180   fi
6181 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6182 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6183 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
6184 <  MPILIBS="-lmpich"
6181 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6182 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6183 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6184 >  MPI_LIB="-lmpi -llam -lpthread"
6185 > else
6186 >
6187 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6188 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6189 >   { (exit 1); exit 1; }; }
6190 >             USE_MPI="no"
6191 >
6192   fi
6193  
6194   fi
6195  
6196  
6197  
6198 < F90="$acx_mpi_save_F90"
6199 <
6200 <
6201 <
6202 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6203 < if test x = x"$MPILIBS"; then
6204 <
5647 <        :
6198 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6199 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6200 > MPI_F90_LIB=""
6201 > if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
6202 >        MPI_F90_LIB="-lfmpich"
6203 > elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
6204 >        MPI_F90_LIB="-llamf77mpi"
6205   else
6206 +                        MPI_F90_LIB="  "
6207 + fi
6208 + echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
6209 + echo "${ECHO_T}found $MPI_F90_LIB" >&6
6210  
5650 cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_MPI 1
5652 _ACEOF
6211  
5654        :
6212   fi
6213  
6214  
6215 +
6216   ac_ext=c
6217   ac_cpp='$CPP $CPPFLAGS'
6218   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5683 | Line 6241 | do
6241    # On the NeXT, cc -E runs the code through the compiler's parser,
6242    # not just through cpp. "Syntax error" is here to catch this case.
6243    cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
6244   /* confdefs.h.  */
6245   _ACEOF
6246   cat confdefs.h >>conftest.$ac_ext
# Line 5694 | Line 6251 | cat >>conftest.$ac_ext <<_ACEOF
6251   #else
6252   # include <assert.h>
6253   #endif
6254 <                     Syntax error
6254 >                     Syntax error
6255   _ACEOF
6256   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5706 | Line 6263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6263    (exit $ac_status); } >/dev/null; then
6264    if test -s conftest.err; then
6265      ac_cpp_err=$ac_c_preproc_warn_flag
6266 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267    else
6268      ac_cpp_err=
6269    fi
# Line 5726 | Line 6284 | rm -f conftest.err conftest.$ac_ext
6284    # OK, works on sane cases.  Now check whether non-existent headers
6285    # can be detected and how.
6286    cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
6287   /* confdefs.h.  */
6288   _ACEOF
6289   cat confdefs.h >>conftest.$ac_ext
# Line 5744 | Line 6301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6301    (exit $ac_status); } >/dev/null; then
6302    if test -s conftest.err; then
6303      ac_cpp_err=$ac_c_preproc_warn_flag
6304 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305    else
6306      ac_cpp_err=
6307    fi
# Line 5790 | Line 6348 | do
6348    # On the NeXT, cc -E runs the code through the compiler's parser,
6349    # not just through cpp. "Syntax error" is here to catch this case.
6350    cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
6351   /* confdefs.h.  */
6352   _ACEOF
6353   cat confdefs.h >>conftest.$ac_ext
# Line 5801 | Line 6358 | cat >>conftest.$ac_ext <<_ACEOF
6358   #else
6359   # include <assert.h>
6360   #endif
6361 <                     Syntax error
6361 >                     Syntax error
6362   _ACEOF
6363   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5813 | Line 6370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6370    (exit $ac_status); } >/dev/null; then
6371    if test -s conftest.err; then
6372      ac_cpp_err=$ac_c_preproc_warn_flag
6373 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374    else
6375      ac_cpp_err=
6376    fi
# Line 5833 | Line 6391 | rm -f conftest.err conftest.$ac_ext
6391    # OK, works on sane cases.  Now check whether non-existent headers
6392    # can be detected and how.
6393    cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
6394   /* confdefs.h.  */
6395   _ACEOF
6396   cat confdefs.h >>conftest.$ac_ext
# Line 5851 | Line 6408 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6408    (exit $ac_status); } >/dev/null; then
6409    if test -s conftest.err; then
6410      ac_cpp_err=$ac_c_preproc_warn_flag
6411 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412    else
6413      ac_cpp_err=
6414    fi
# Line 5911 | Line 6469 | else
6469    echo $ECHO_N "(cached) $ECHO_C" >&6
6470   else
6471    cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
6472   /* confdefs.h.  */
6473   _ACEOF
6474   cat confdefs.h >>conftest.$ac_ext
# Line 5932 | Line 6489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489   _ACEOF
6490   rm -f conftest.$ac_objext
6491   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 <  (eval $ac_compile) 2>&5
6492 >  (eval $ac_compile) 2>conftest.er1
6493    ac_status=$?
6494 +  grep -v '^ *+' conftest.er1 >conftest.err
6495 +  rm -f conftest.er1
6496 +  cat conftest.err >&5
6497    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498    (exit $ac_status); } &&
6499 <         { ac_try='test -s conftest.$ac_objext'
6499 >         { ac_try='test -z "$ac_c_werror_flag"
6500 >                         || test ! -s conftest.err'
6501 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 >  (eval $ac_try) 2>&5
6503 >  ac_status=$?
6504 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 >  (exit $ac_status); }; } &&
6506 >         { ac_try='test -s conftest.$ac_objext'
6507    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508    (eval $ac_try) 2>&5
6509    ac_status=$?
# Line 5949 | Line 6516 | rm -f conftest.$ac_objext conftest.$ac_ext
6516  
6517   ac_cv_header_stdc=no
6518   fi
6519 < rm -f conftest.$ac_objext conftest.$ac_ext
6519 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520  
6521   if test $ac_cv_header_stdc = yes; then
6522    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6523    cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
6524   /* confdefs.h.  */
6525   _ACEOF
6526   cat confdefs.h >>conftest.$ac_ext
# Line 5976 | Line 6542 | if test $ac_cv_header_stdc = yes; then
6542   if test $ac_cv_header_stdc = yes; then
6543    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6544    cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
6545   /* confdefs.h.  */
6546   _ACEOF
6547   cat confdefs.h >>conftest.$ac_ext
# Line 6001 | Line 6566 | else
6566    :
6567   else
6568    cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6569   /* confdefs.h.  */
6570   _ACEOF
6571   cat confdefs.h >>conftest.$ac_ext
# Line 6013 | Line 6577 | cat >>conftest.$ac_ext <<_ACEOF
6577   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6578   #else
6579   # define ISLOWER(c) \
6580 <                   (('a' <= (c) && (c) <= 'i') \
6581 <                     || ('j' <= (c) && (c) <= 'r') \
6582 <                     || ('s' <= (c) && (c) <= 'z'))
6580 >                   (('a' <= (c) && (c) <= 'i') \
6581 >                     || ('j' <= (c) && (c) <= 'r') \
6582 >                     || ('s' <= (c) && (c) <= 'z'))
6583   # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6584   #endif
6585  
# Line 6026 | Line 6590 | main ()
6590    int i;
6591    for (i = 0; i < 256; i++)
6592      if (XOR (islower (i), ISLOWER (i))
6593 <        || toupper (i) != TOUPPER (i))
6593 >        || toupper (i) != TOUPPER (i))
6594        exit(2);
6595    exit (0);
6596   }
# Line 6051 | Line 6615 | rm -f core core.* *.core gmon.out bb.out conftest$ac_e
6615   ( exit $ac_status )
6616   ac_cv_header_stdc=no
6617   fi
6618 < rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6618 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6619   fi
6620   fi
6621   fi
# Line 6076 | Line 6640 | for ac_header in sys/types.h sys/stat.h stdlib.h strin
6640  
6641  
6642   for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6643 <                  inttypes.h stdint.h unistd.h
6643 >                  inttypes.h stdint.h unistd.h
6644   do
6645   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646   echo "$as_me:$LINENO: checking for $ac_header" >&5
# Line 6085 | Line 6649 | else
6649    echo $ECHO_N "(cached) $ECHO_C" >&6
6650   else
6651    cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6652   /* confdefs.h.  */
6653   _ACEOF
6654   cat confdefs.h >>conftest.$ac_ext
# Line 6097 | Line 6660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660   _ACEOF
6661   rm -f conftest.$ac_objext
6662   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 <  (eval $ac_compile) 2>&5
6663 >  (eval $ac_compile) 2>conftest.er1
6664    ac_status=$?
6665 +  grep -v '^ *+' conftest.er1 >conftest.err
6666 +  rm -f conftest.er1
6667 +  cat conftest.err >&5
6668    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669    (exit $ac_status); } &&
6670 <         { ac_try='test -s conftest.$ac_objext'
6670 >         { ac_try='test -z "$ac_c_werror_flag"
6671 >                         || test ! -s conftest.err'
6672 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 >  (eval $ac_try) 2>&5
6674 >  ac_status=$?
6675 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 >  (exit $ac_status); }; } &&
6677 >         { ac_try='test -s conftest.$ac_objext'
6678    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679    (eval $ac_try) 2>&5
6680    ac_status=$?
# Line 6114 | Line 6687 | rm -f conftest.$ac_objext conftest.$ac_ext
6687  
6688   eval "$as_ac_Header=no"
6689   fi
6690 < rm -f conftest.$ac_objext conftest.$ac_ext
6690 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691   fi
6692   echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6693   echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
# Line 6218 | Line 6791 | cat >conftest.$ac_ext <<_ACEOF
6791   echo "$as_me:$LINENO: checking sprng.h usability" >&5
6792   echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6793   cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6794   /* confdefs.h.  */
6795   _ACEOF
6796   cat confdefs.h >>conftest.$ac_ext
# Line 6229 | Line 6801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   _ACEOF
6802   rm -f conftest.$ac_objext
6803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 <  (eval $ac_compile) 2>&5
6804 >  (eval $ac_compile) 2>conftest.er1
6805    ac_status=$?
6806 +  grep -v '^ *+' conftest.er1 >conftest.err
6807 +  rm -f conftest.er1
6808 +  cat conftest.err >&5
6809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810    (exit $ac_status); } &&
6811 <         { ac_try='test -s conftest.$ac_objext'
6811 >         { ac_try='test -z "$ac_c_werror_flag"
6812 >                         || test ! -s conftest.err'
6813    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814    (eval $ac_try) 2>&5
6815    ac_status=$?
6816    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 +  (exit $ac_status); }; } &&
6818 +         { ac_try='test -s conftest.$ac_objext'
6819 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 +  (eval $ac_try) 2>&5
6821 +  ac_status=$?
6822 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823    (exit $ac_status); }; }; then
6824    ac_header_compiler=yes
6825   else
# Line 6246 | Line 6828 | rm -f conftest.$ac_objext conftest.$ac_ext
6828  
6829   ac_header_compiler=no
6830   fi
6831 < rm -f conftest.$ac_objext conftest.$ac_ext
6831 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6833   echo "${ECHO_T}$ac_header_compiler" >&6
6834  
# Line 6254 | Line 6836 | cat >conftest.$ac_ext <<_ACEOF
6836   echo "$as_me:$LINENO: checking sprng.h presence" >&5
6837   echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6838   cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6839   /* confdefs.h.  */
6840   _ACEOF
6841   cat confdefs.h >>conftest.$ac_ext
# Line 6272 | Line 6853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6853    (exit $ac_status); } >/dev/null; then
6854    if test -s conftest.err; then
6855      ac_cpp_err=$ac_c_preproc_warn_flag
6856 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6857    else
6858      ac_cpp_err=
6859    fi
# Line 6291 | Line 6873 | case $ac_header_compiler:$ac_header_preproc in
6873   echo "${ECHO_T}$ac_header_preproc" >&6
6874  
6875   # So?  What about this header?
6876 < case $ac_header_compiler:$ac_header_preproc in
6877 <  yes:no )
6876 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6877 >  yes:no: )
6878      { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6879   echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6880 <    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6881 < echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6882 <    (
6301 <      cat <<\_ASBOX
6302 < ## ------------------------------------ ##
6303 < ## Report this to bug-autoconf@gnu.org. ##
6304 < ## ------------------------------------ ##
6305 < _ASBOX
6306 <    ) |
6307 <      sed "s/^/$as_me: WARNING:     /" >&2
6880 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6881 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6882 >    ac_header_preproc=yes
6883      ;;
6884 <  no:yes )
6884 >  no:yes:* )
6885      { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6886   echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6887 <    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6888 < echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6887 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6888 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6889 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6890 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6891 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6892 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6893      { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6894   echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6895 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6896 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6897      (
6898        cat <<\_ASBOX
6899 < ## ------------------------------------ ##
6900 < ## Report this to bug-autoconf@gnu.org. ##
6901 < ## ------------------------------------ ##
6899 > ## ------------------------------ ##
6900 > ## Report this to gezelter@nd.edu ##
6901 > ## ------------------------------ ##
6902   _ASBOX
6903      ) |
6904        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6344 | Line 6925 | cat >conftest.$ac_ext <<_ACEOF
6925    ac_check_lib_save_LIBS=$LIBS
6926   LIBS="-lsprng  $LIBS"
6927   cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6928   /* confdefs.h.  */
6929   _ACEOF
6930   cat confdefs.h >>conftest.$ac_ext
# Line 6368 | Line 6948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948   _ACEOF
6949   rm -f conftest.$ac_objext conftest$ac_exeext
6950   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 <  (eval $ac_link) 2>&5
6951 >  (eval $ac_link) 2>conftest.er1
6952    ac_status=$?
6953 +  grep -v '^ *+' conftest.er1 >conftest.err
6954 +  rm -f conftest.er1
6955 +  cat conftest.err >&5
6956    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957    (exit $ac_status); } &&
6958 <         { ac_try='test -s conftest$ac_exeext'
6958 >         { ac_try='test -z "$ac_c_werror_flag"
6959 >                         || test ! -s conftest.err'
6960    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961    (eval $ac_try) 2>&5
6962    ac_status=$?
6963    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 +  (exit $ac_status); }; } &&
6965 +         { ac_try='test -s conftest$ac_exeext'
6966 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 +  (eval $ac_try) 2>&5
6968 +  ac_status=$?
6969 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970    (exit $ac_status); }; }; then
6971    ac_cv_lib_sprng_init_rng=yes
6972   else
# Line 6385 | Line 6975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6975  
6976   ac_cv_lib_sprng_init_rng=no
6977   fi
6978 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 > rm -f conftest.err conftest.$ac_objext \
6979 >      conftest$ac_exeext conftest.$ac_ext
6980   LIBS=$ac_check_lib_save_LIBS
6981   fi
6982   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
# Line 6401 | Line 6992 | fi
6992  
6993    CPPFLAGS=$ac_save_CPPFLAGS
6994    LDFLAGS=$ac_save_LDFLAGS
6995 <  ac_ext=f90
6996 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6997 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6995 >  ac_ext=c
6996 > ac_cpp='$CPP $CPPFLAGS'
6997 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000  
7001  
7002    if test x_$HAVE_SPRNG != x_yes; then
# Line 6425 | Line 7017 | echo "${ECHO_T}yes" >&6
7017    withval="$with_mkl"
7018       echo "$as_me:$LINENO: result: yes" >&5
7019   echo "${ECHO_T}yes" >&6
7020 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7020 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7021          mkldir="$dir"
7022          if test -f "$dir/include/mkl.h"; then
7023              found_mkl="yes";
# Line 6465 | Line 7057 | cat >conftest.$ac_ext <<_ACEOF
7057   echo "$as_me:$LINENO: checking mkl.h usability" >&5
7058   echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7059   cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
7060   /* confdefs.h.  */
7061   _ACEOF
7062   cat confdefs.h >>conftest.$ac_ext
# Line 6476 | Line 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   _ACEOF
7068   rm -f conftest.$ac_objext
7069   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 <  (eval $ac_compile) 2>&5
7070 >  (eval $ac_compile) 2>conftest.er1
7071    ac_status=$?
7072 +  grep -v '^ *+' conftest.er1 >conftest.err
7073 +  rm -f conftest.er1
7074 +  cat conftest.err >&5
7075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076    (exit $ac_status); } &&
7077 <         { ac_try='test -s conftest.$ac_objext'
7077 >         { ac_try='test -z "$ac_c_werror_flag"
7078 >                         || test ! -s conftest.err'
7079    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080    (eval $ac_try) 2>&5
7081    ac_status=$?
7082    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 +  (exit $ac_status); }; } &&
7084 +         { ac_try='test -s conftest.$ac_objext'
7085 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 +  (eval $ac_try) 2>&5
7087 +  ac_status=$?
7088 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089    (exit $ac_status); }; }; then
7090    ac_header_compiler=yes
7091   else
# Line 6493 | Line 7094 | rm -f conftest.$ac_objext conftest.$ac_ext
7094  
7095   ac_header_compiler=no
7096   fi
7097 < rm -f conftest.$ac_objext conftest.$ac_ext
7097 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7099   echo "${ECHO_T}$ac_header_compiler" >&6
7100  
# Line 6501 | Line 7102 | cat >conftest.$ac_ext <<_ACEOF
7102   echo "$as_me:$LINENO: checking mkl.h presence" >&5
7103   echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7104   cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
7105   /* confdefs.h.  */
7106   _ACEOF
7107   cat confdefs.h >>conftest.$ac_ext
# Line 6519 | Line 7119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
7119    (exit $ac_status); } >/dev/null; then
7120    if test -s conftest.err; then
7121      ac_cpp_err=$ac_c_preproc_warn_flag
7122 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7123    else
7124      ac_cpp_err=
7125    fi
# Line 6538 | Line 7139 | case $ac_header_compiler:$ac_header_preproc in
7139   echo "${ECHO_T}$ac_header_preproc" >&6
7140  
7141   # So?  What about this header?
7142 < case $ac_header_compiler:$ac_header_preproc in
7143 <  yes:no )
7142 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7143 >  yes:no: )
7144      { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7145   echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7146 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7147 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7148 <    (
6548 <      cat <<\_ASBOX
6549 < ## ------------------------------------ ##
6550 < ## Report this to bug-autoconf@gnu.org. ##
6551 < ## ------------------------------------ ##
6552 < _ASBOX
6553 <    ) |
6554 <      sed "s/^/$as_me: WARNING:     /" >&2
7146 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7147 > echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7148 >    ac_header_preproc=yes
7149      ;;
7150 <  no:yes )
7150 >  no:yes:* )
7151      { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7152   echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7153 <    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
7154 < echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
7153 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7154 > echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7155 >    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7156 > echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7157 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7158 > echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7159      { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7160   echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7161 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7162 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7163      (
7164        cat <<\_ASBOX
7165 < ## ------------------------------------ ##
7166 < ## Report this to bug-autoconf@gnu.org. ##
7167 < ## ------------------------------------ ##
7165 > ## ------------------------------ ##
7166 > ## Report this to gezelter@nd.edu ##
7167 > ## ------------------------------ ##
7168   _ASBOX
7169      ) |
7170        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6591 | Line 7191 | cat >conftest.$ac_ext <<_ACEOF
7191    ac_check_lib_save_LIBS=$LIBS
7192   LIBS="-lmkl  $LIBS"
7193   cat >conftest.$ac_ext <<_ACEOF
6594 #line $LINENO "configure"
7194   /* confdefs.h.  */
7195   _ACEOF
7196   cat confdefs.h >>conftest.$ac_ext
# Line 6615 | Line 7214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214   _ACEOF
7215   rm -f conftest.$ac_objext conftest$ac_exeext
7216   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 <  (eval $ac_link) 2>&5
7217 >  (eval $ac_link) 2>conftest.er1
7218    ac_status=$?
7219 +  grep -v '^ *+' conftest.er1 >conftest.err
7220 +  rm -f conftest.er1
7221 +  cat conftest.err >&5
7222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223    (exit $ac_status); } &&
7224 <         { ac_try='test -s conftest$ac_exeext'
7224 >         { ac_try='test -z "$ac_c_werror_flag"
7225 >                         || test ! -s conftest.err'
7226    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227    (eval $ac_try) 2>&5
7228    ac_status=$?
7229    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 +  (exit $ac_status); }; } &&
7231 +         { ac_try='test -s conftest$ac_exeext'
7232 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 +  (eval $ac_try) 2>&5
7234 +  ac_status=$?
7235 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236    (exit $ac_status); }; }; then
7237    ac_cv_lib_mkl_vslNewStream=yes
7238   else
# Line 6632 | Line 7241 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
7241  
7242   ac_cv_lib_mkl_vslNewStream=no
7243   fi
7244 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7244 > rm -f conftest.err conftest.$ac_objext \
7245 >      conftest$ac_exeext conftest.$ac_ext
7246   LIBS=$ac_check_lib_save_LIBS
7247   fi
7248   echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
# Line 6651 | Line 7261 | fi
7261  
7262    CPPFLAGS=$ac_save_CPPFLAGS
7263    LDFLAGS=$ac_save_LDFLAGS
7264 <  ac_ext=f90
7265 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7266 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7264 >  ac_ext=c
7265 > ac_cpp='$CPP $CPPFLAGS'
7266 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269  
7270  
7271    if test x_$HAVE_MKL != x_yes; then
# Line 6677 | Line 7288 | fi;
7288  
7289  
7290  
6680 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6681 if test "${with_mpi_f90_mods+set}" = set; then
6682  withval="$with_mpi_f90_mods"
6683  mpi_f90_mods="$withval"
6684 else
6685  mpi_f90_mods="/usr/local/include/f90choice"
6686 fi;
7291  
6688  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6689 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
6690
6691
6692  ac_ext=f90
6693 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6694 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6696
6697  ac_save_F90FLAGS=$F90FLAGS
6698  if test "$mpi_f90_mods"; then
6699  F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}"
6700 fi
6701
6702    cat >conftest.$ac_ext <<_ACEOF
6703
6704
6705 program main
6706
6707 use mpi
6708 integer :: ierr
6709 call MPI_Init(ierr)
6710
6711
6712 end program main
6713
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717  (eval $ac_compile) 2>&5
6718  ac_status=$?
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); } &&
6721         { ac_try='test -s conftest.$ac_objext'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; }; then
6727  HAVE_MPI_MOD=1
6728 else
6729  echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 HAVE_MPI_MOD=0
6733 fi
6734 rm -f conftest.$ac_objext conftest.$ac_ext
6735
6736  F90FLAGS=$ac_save_F90FLAGS
6737  ac_ext=f90
6738 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6739 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6741
6742
6743  if test "$HAVE_MPI_MOD" = 1; then
6744    echo "$as_me:$LINENO: result: yes" >&5
6745 echo "${ECHO_T}yes" >&6
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define MPI_MOD 1
6749 _ACEOF
6750
6751    MPI_F90_MODS="-I${mpi_f90_mods}"
6752
6753    # The library name:
6754    if test -z "$MPI_LIB" ; then
6755       MPI_LIBNAME=-lmpich
6756    else
6757       MPI_LIBNAME="$MPI_LIB"
6758    fi
6759    if test -z "$MPIMODLIBNAME" ; then
6760       MPIMODLIBNAME="${MPI_LIBNAME}f90"
6761    fi
6762
6763  else
6764    echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6
6766    { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6767 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6768   { (exit 1); exit 1; }; }
6769  fi
6770
6771
6772
6773
6774
7292   OBJEXT=".$OBJEXT"
7293  
7294   OOPSE=oopse
# Line 6795 | Line 7312 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7312  
7313   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7314  
7315 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7315 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party "
7316  
7317   CFLAGS=${CFLAGS-""}
7318   CXXFLAGS=${CXXFLAGS-""}
# Line 6803 | Line 7320 | OPTIMIZE=${OPTIMIZE-"-O"}
7320   FFLAGS=${FFLAGS-""}
7321   F90FLAGS=${F90FLAGS-""}
7322   LDFLAGS=${LDFLAGS-""}
6806 OPTIMIZE=${OPTIMIZE-"-O"}
7323   DEBUG=${DEBUG-"-g"}
7324  
7325   case $debug in
7326 <  true)
6811 <     CFLAGS="$DEBUG $CFLAGS"
6812 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7326 >  1)
7327       FFLAGS="$DEBUG $FFLAGS"
7328       F90FLAGS="$DEBUG $F90FLAGS"
7329       ;;
7330    *)
6817     CFLAGS="$OPTIMIZE $CFLAGS"
6818     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
6819     FFLAGS="$OPTIMIZE $FFLAGS"
6820     F90FLAGS="$OPTIMIZE $F90FLAGS"
7331       ;;
7332   esac
7333  
# Line 6837 | Line 7347 | esac
7347  
7348  
7349  
7350 <          ac_config_headers="$ac_config_headers libmdtools/config.h"
7350 >                    ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h"
7351  
7352 <                                                                                                                                                      ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7352 >                                                                                                                                                                ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7353  
7354  
7355   cat >confcache <<\_ACEOF
# Line 6870 | Line 7380 | _ACEOF
7380        # `set' does not quote correctly, so add quotes (double-quote
7381        # substitution turns \\\\ into \\, and sed turns \\ into \).
7382        sed -n \
7383 <        "s/'/'\\\\''/g;
7384 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7383 >        "s/'/'\\\\''/g;
7384 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7385        ;;
7386      *)
7387        # `set' quotes correctly as required by POSIX, so do not add quotes.
7388        sed -n \
7389 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7389 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7390        ;;
7391      esac;
7392   } |
# Line 6906 | Line 7416 | if test "x$srcdir" = x.; then
7416   # trailing colons and then remove the whole line if VPATH becomes empty
7417   # (actually we leave an empty line to preserve line numbers).
7418   if test "x$srcdir" = x.; then
7419 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7419 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7420   s/:*\$(srcdir):*/:/;
7421   s/:*\${srcdir}:*/:/;
7422   s/:*@srcdir@:*/:/;
7423 < s/^\([^=]*=[    ]*\):*/\1/;
7423 > s/^\([^=]*=[     ]*\):*/\1/;
7424   s/:*$//;
7425 < s/^[^=]*=[      ]*$//;
7425 > s/^[^=]*=[       ]*$//;
7426   }'
7427   fi
7428  
# Line 6923 | Line 7433 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && conti
7433   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7434    # 1. Remove the extension, and $U if already installed.
7435    ac_i=`echo "$ac_i" |
7436 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7436 >         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7437    # 2. Add them.
7438    ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7439    ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
# Line 6967 | Line 7477 | fi
7477   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7478    set -o posix
7479   fi
7480 + DUALCASE=1; export DUALCASE # for MKS sh
7481  
7482   # Support unset when possible.
7483 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7483 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7484    as_unset=unset
7485   else
7486    as_unset=false
# Line 6988 | Line 7499 | do
7499    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7500    LC_TELEPHONE LC_TIME
7501   do
7502 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7502 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7503      eval $as_var=C; export $as_var
7504    else
7505      $as_unset $as_var
# Line 7167 | Line 7678 | else
7678   if mkdir -p . 2>/dev/null; then
7679    as_mkdir_p=:
7680   else
7681 +  test -d ./-p && rmdir ./-p
7682    as_mkdir_p=false
7683   fi
7684  
7685   as_executable_p="test -f"
7686  
7687   # Sed expression to map a string onto a valid CPP name.
7688 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7688 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7689  
7690   # Sed expression to map a string onto a valid variable name.
7691 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7691 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7692  
7693  
7694   # IFS
# Line 7203 | Line 7715 | generated by GNU Autoconf 2.57.  Invocation command li
7715   cat >&5 <<_CSEOF
7716  
7717   This file was extended by OOPSE $as_me 1.0, which was
7718 < generated by GNU Autoconf 2.57.  Invocation command line was
7718 > generated by GNU Autoconf 2.59.  Invocation command line was
7719  
7720    CONFIG_FILES    = $CONFIG_FILES
7721    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 7247 | Line 7759 | Usage: $0 [OPTIONS] [FILE]...
7759    -d, --debug      don't remove temporary files
7760        --recheck    update $as_me by reconfiguring in the same conditions
7761    --file=FILE[:TEMPLATE]
7762 <                   instantiate the configuration file FILE
7762 >                   instantiate the configuration file FILE
7763    --header=FILE[:TEMPLATE]
7764 <                   instantiate the configuration header FILE
7764 >                   instantiate the configuration header FILE
7765  
7766   Configuration files:
7767   $config_files
# Line 7263 | Line 7775 | configured by $0, generated by GNU Autoconf 2.57,
7775   cat >>$CONFIG_STATUS <<_ACEOF
7776   ac_cs_version="\\
7777   OOPSE config.status 1.0
7778 < configured by $0, generated by GNU Autoconf 2.57,
7778 > configured by $0, generated by GNU Autoconf 2.59,
7779    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7780  
7781 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7270 < Free Software Foundation, Inc.
7781 > Copyright (C) 2003 Free Software Foundation, Inc.
7782   This config.status script is free software; the Free Software Foundation
7783   gives unlimited permission to copy, distribute and modify it."
7784   srcdir=$srcdir
# Line 7375 | Line 7886 | do
7886    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7887    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7888    "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7889 +  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7890    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7891    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7892    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7893    "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7894    "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7895    "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7896 +  "libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;;
7897    "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7898    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7899   echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 7467 | Line 7980 | s,@DEBUG@,$DEBUG,;t t
7980   s,@ECHO_T@,$ECHO_T,;t t
7981   s,@LIBS@,$LIBS,;t t
7982   s,@PROGNAME@,$PROGNAME,;t t
7983 < s,@DEBUG@,$DEBUG,;t t
7983 > s,@debug@,$debug,;t t
7984   s,@build@,$build,;t t
7985   s,@build_cpu@,$build_cpu,;t t
7986   s,@build_vendor@,$build_vendor,;t t
# Line 7486 | Line 7999 | s,@F90@,$F90,;t t
7999   s,@CXX@,$CXX,;t t
8000   s,@CXXFLAGS@,$CXXFLAGS,;t t
8001   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8002 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8003 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8004   s,@F90@,$F90,;t t
8005   s,@F90FLAGS@,$F90FLAGS,;t t
8006   s,@ac_ct_F90@,$ac_ct_F90,;t t
8007   s,@PREPFLAG@,$PREPFLAG,;t t
8008   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8009 + s,@F90LIBS@,$F90LIBS,;t t
8010 + s,@F90_FUNC@,$F90_FUNC,;t t
8011 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8012 + s,@MOD@,$MOD,;t t
8013 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8014 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8015 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8016   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8017   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8018   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 7503 | Line 8025 | s,@F90LIBS@,$F90LIBS,;t t
8025   s,@LEXLIB@,$LEXLIB,;t t
8026   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8027   s,@AR@,$AR,;t t
8028 < s,@F90LIBS@,$F90LIBS,;t t
8029 < s,@F90_FUNC@,$F90_FUNC,;t t
8030 < s,@F90_FUNC_@,$F90_FUNC_,;t t
7509 < s,@mpi_dir@,$mpi_dir,;t t
7510 < s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7511 < s,@MPI_INC@,$MPI_INC,;t t
8028 > s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
8029 > s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
8030 > s,@MPI_F90_INC@,$MPI_F90_INC,;t t
8031   s,@MPI_LIB@,$MPI_LIB,;t t
8032 < s,@MPIF77@,$MPIF77,;t t
8033 < s,@MPIF90@,$MPIF90,;t t
7515 < s,@MPILIBS@,$MPILIBS,;t t
8032 > s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
8033 > s,@USE_MPI@,$USE_MPI,;t t
8034   s,@CPP@,$CPP,;t t
8035   s,@EGREP@,$EGREP,;t t
8036   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
# Line 7523 | Line 8041 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
8041   s,@MKL_LIB@,$MKL_LIB,;t t
8042   s,@MKL_INC@,$MKL_INC,;t t
8043   s,@HAVE_MKL@,$HAVE_MKL,;t t
7526 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7527 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
8044   s,@BATEXT@,$BATEXT,;t t
8045   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8046   s,@OOPSE@,$OOPSE,;t t
# Line 7562 | Line 8078 | _ACEOF
8078        (echo ':t
8079    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8080        if test -z "$ac_sed_cmds"; then
8081 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8081 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8082        else
8083 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8083 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8084        fi
8085        ac_sed_frag=`expr $ac_sed_frag + 1`
8086        ac_beg=$ac_end
# Line 7582 | Line 8098 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
8098    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8099    case $ac_file in
8100    - | *:- | *:-:* ) # input from stdin
8101 <        cat >$tmp/stdin
8102 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101 >        cat >$tmp/stdin
8102 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8104    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8105 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8105 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8106    * )   ac_file_in=$ac_file.in ;;
8107    esac
8108  
8109    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8110    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8111   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8112 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8113 <         X"$ac_file" : 'X\(//\)$' \| \
8114 <         X"$ac_file" : 'X\(/\)' \| \
8115 <         .     : '\(.\)' 2>/dev/null ||
8112 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8113 >         X"$ac_file" : 'X\(//\)$' \| \
8114 >         X"$ac_file" : 'X\(/\)' \| \
8115 >         .     : '\(.\)' 2>/dev/null ||
8116   echo X"$ac_file" |
8117      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8118            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7612 | Line 8128 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8128        as_dirs="$as_dir $as_dirs"
8129        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8130   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8131 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8132 <         X"$as_dir" : 'X\(//\)$' \| \
8133 <         X"$as_dir" : 'X\(/\)' \| \
8134 <         .     : '\(.\)' 2>/dev/null ||
8131 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8132 >         X"$as_dir" : 'X\(//\)$' \| \
8133 >         X"$as_dir" : 'X\(/\)' \| \
8134 >         .     : '\(.\)' 2>/dev/null ||
8135   echo X"$as_dir" |
8136      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8137            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7653 | Line 8169 | esac
8169      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8170      ac_top_srcdir=$ac_top_builddir$srcdir ;;
8171   esac
7656 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7657 # absolute.
7658 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7659 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7660 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7661 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8172  
8173 + # Do not use `cd foo && pwd` to compute absolute paths, because
8174 + # the directories may not exist.
8175 + case `pwd` in
8176 + .) ac_abs_builddir="$ac_dir";;
8177 + *)
8178 +  case "$ac_dir" in
8179 +  .) ac_abs_builddir=`pwd`;;
8180 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8181 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8182 +  esac;;
8183 + esac
8184 + case $ac_abs_builddir in
8185 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
8186 + *)
8187 +  case ${ac_top_builddir}. in
8188 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
8189 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8190 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8191 +  esac;;
8192 + esac
8193 + case $ac_abs_builddir in
8194 + .) ac_abs_srcdir=$ac_srcdir;;
8195 + *)
8196 +  case $ac_srcdir in
8197 +  .) ac_abs_srcdir=$ac_abs_builddir;;
8198 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8199 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8200 +  esac;;
8201 + esac
8202 + case $ac_abs_builddir in
8203 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
8204 + *)
8205 +  case $ac_top_srcdir in
8206 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8207 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8208 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8209 +  esac;;
8210 + esac
8211  
8212 +
8213    case $INSTALL in
8214    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8215    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
# Line 7680 | Line 8229 | echo "$as_me: creating $ac_file" >&6;}
8229      configure_input="$ac_file.  "
8230    fi
8231    configure_input=$configure_input"Generated from `echo $ac_file_in |
8232 <                                     sed 's,.*/,,'` by configure."
8232 >                                     sed 's,.*/,,'` by configure."
8233  
8234    # First look for the input files in the build tree, otherwise in the
8235    # src tree.
# Line 7689 | Line 8238 | echo "$as_me: creating $ac_file" >&6;}
8238        case $f in
8239        -) echo $tmp/stdin ;;
8240        [\\/$]*)
8241 <         # Absolute (can't be DOS-style, as IFS=:)
8242 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8241 >         # Absolute (can't be DOS-style, as IFS=:)
8242 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8243   echo "$as_me: error: cannot find input file: $f" >&2;}
8244     { (exit 1); exit 1; }; }
8245 <         echo $f;;
8245 >         echo "$f";;
8246        *) # Relative
8247 <         if test -f "$f"; then
8248 <           # Build tree
8249 <           echo $f
8250 <         elif test -f "$srcdir/$f"; then
8251 <           # Source tree
8252 <           echo $srcdir/$f
8253 <         else
8254 <           # /dev/null tree
8255 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8247 >         if test -f "$f"; then
8248 >           # Build tree
8249 >           echo "$f"
8250 >         elif test -f "$srcdir/$f"; then
8251 >           # Source tree
8252 >           echo "$srcdir/$f"
8253 >         else
8254 >           # /dev/null tree
8255 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8256   echo "$as_me: error: cannot find input file: $f" >&2;}
8257     { (exit 1); exit 1; }; }
8258 <         fi;;
8258 >         fi;;
8259        esac
8260      done` || { (exit 1); exit 1; }
8261   _ACEOF
# Line 7748 | Line 8297 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8297   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8298   #
8299   # ac_d sets the value in "#define NAME VALUE" lines.
8300 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8301 < ac_dB='[        ].*$,\1#\2'
8300 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8301 > ac_dB='[         ].*$,\1#\2'
8302   ac_dC=' '
8303   ac_dD=',;t'
8304   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8305 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8305 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8306   ac_uB='$,\1#\2define\3'
8307   ac_uC=' '
8308   ac_uD=',;t'
# Line 7762 | Line 8311 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8311    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8312    case $ac_file in
8313    - | *:- | *:-:* ) # input from stdin
8314 <        cat >$tmp/stdin
8315 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 >        cat >$tmp/stdin
8315 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8317    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8318 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8318 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8319    * )   ac_file_in=$ac_file.in ;;
8320    esac
8321  
# Line 7780 | Line 8329 | echo "$as_me: creating $ac_file" >&6;}
8329        case $f in
8330        -) echo $tmp/stdin ;;
8331        [\\/$]*)
8332 <         # Absolute (can't be DOS-style, as IFS=:)
8333 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8332 >         # Absolute (can't be DOS-style, as IFS=:)
8333 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8334   echo "$as_me: error: cannot find input file: $f" >&2;}
8335     { (exit 1); exit 1; }; }
8336 <         echo $f;;
8336 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8337 >         echo "$f";;
8338        *) # Relative
8339 <         if test -f "$f"; then
8340 <           # Build tree
8341 <           echo $f
8342 <         elif test -f "$srcdir/$f"; then
8343 <           # Source tree
8344 <           echo $srcdir/$f
8345 <         else
8346 <           # /dev/null tree
8347 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8339 >         if test -f "$f"; then
8340 >           # Build tree
8341 >           echo "$f"
8342 >         elif test -f "$srcdir/$f"; then
8343 >           # Source tree
8344 >           echo "$srcdir/$f"
8345 >         else
8346 >           # /dev/null tree
8347 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8348   echo "$as_me: error: cannot find input file: $f" >&2;}
8349     { (exit 1); exit 1; }; }
8350 <         fi;;
8350 >         fi;;
8351        esac
8352      done` || { (exit 1); exit 1; }
8353    # Remove the trailing spaces.
8354 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8354 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8355  
8356   _ACEOF
8357  
# Line 7824 | Line 8374 | s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*
8374   s,[\\$`],\\&,g
8375   t clear
8376   : clear
8377 < s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8377 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8378   t end
8379 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8379 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8380   : end
8381   _ACEOF
8382   # If some macros were called several times there might be several times
# Line 7840 | Line 8390 | s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/*
8390   # example, in the case of _POSIX_SOURCE, which is predefined and required
8391   # on some systems where configure will not decide to define it.
8392   cat >>conftest.undefs <<\_ACEOF
8393 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8393 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8394   _ACEOF
8395  
8396   # Break up conftest.defines because some shells have a limit on the size
8397   # of here documents, and old seds have small limits too (100 cmds).
8398   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8399 < echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8399 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8400   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8401   echo '  :' >>$CONFIG_STATUS
8402   rm -f conftest.tail
# Line 7855 | Line 8405 | do
8405    # Write a limited-size here document to $tmp/defines.sed.
8406    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8407    # Speed up: don't consider the non `#define' lines.
8408 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8408 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8409    # Work around the forget-to-reset-the-flag bug.
8410    echo 't clr' >>$CONFIG_STATUS
8411    echo ': clr' >>$CONFIG_STATUS
# Line 7882 | Line 8432 | do
8432    # Write a limited-size here document to $tmp/undefs.sed.
8433    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8434    # Speed up: don't consider the non `#undef'
8435 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8435 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8436    # Work around the forget-to-reset-the-flag bug.
8437    echo 't clr' >>$CONFIG_STATUS
8438    echo ': clr' >>$CONFIG_STATUS
# Line 7916 | Line 8466 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8466      else
8467        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8468   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8469 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8470 <         X"$ac_file" : 'X\(//\)$' \| \
8471 <         X"$ac_file" : 'X\(/\)' \| \
8472 <         .     : '\(.\)' 2>/dev/null ||
8469 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8470 >         X"$ac_file" : 'X\(//\)$' \| \
8471 >         X"$ac_file" : 'X\(/\)' \| \
8472 >         .     : '\(.\)' 2>/dev/null ||
8473   echo X"$ac_file" |
8474      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8475            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7935 | Line 8485 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8485        as_dirs="$as_dir $as_dirs"
8486        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8487   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8488 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8489 <         X"$as_dir" : 'X\(//\)$' \| \
8490 <         X"$as_dir" : 'X\(/\)' \| \
8491 <         .     : '\(.\)' 2>/dev/null ||
8488 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8489 >         X"$as_dir" : 'X\(//\)$' \| \
8490 >         X"$as_dir" : 'X\(/\)' \| \
8491 >         .     : '\(.\)' 2>/dev/null ||
8492   echo X"$as_dir" |
8493      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8494            /^X\(\/\/\)[^/].*/{ s//\1/; q; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines