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 878 by gezelter, Fri Dec 12 15:42:13 2003 UTC vs.
Revision 942 by gezelter, Wed Jan 14 15:49:26 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_includes_default="\
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 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_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS MPI_F90_MODS MPIMODLIBNAME EGREP CPP 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'
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 MPI_LIBDIR MPI_INC MPI_LIB 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_cv_env_F90FLAGS_value=$F90FLAGS
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
874 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
875    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
876    --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
880  --with-mpi_f90_mods=<dir>
881                          Location where MPI f90 modules are installed
877    --with-sprng_prefix=PREFIX
878                            Prefix where SPRNG is installed
879    --with-sprng-libdir=PREFIX  SPRNG library directory
# Line 897 | Line 892 | Some influential environment variables:
892    CXXFLAGS    C++ compiler flags
893    F90         Fortran 90 compiler command
894    F90FLAGS    Fortran 90 compiler flags
900  MPIF77      MPI Fortran compiler command
895    CPP         C preprocessor
896  
897   Use these variables to override the choices made by `configure' or to help
# Line 937 | Line 931 | esac
931      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932      ac_top_srcdir=$ac_top_builddir$srcdir ;;
933   esac
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 # absolute.
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934  
935 + # Do not use `cd foo && pwd` to compute absolute paths, because
936 + # the directories may not exist.
937 + case `pwd` in
938 + .) ac_abs_builddir="$ac_dir";;
939 + *)
940 +  case "$ac_dir" in
941 +  .) ac_abs_builddir=`pwd`;;
942 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 +  esac;;
945 + esac
946 + case $ac_abs_builddir in
947 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 + *)
949 +  case ${ac_top_builddir}. in
950 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
951 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 +  esac;;
954 + esac
955 + case $ac_abs_builddir in
956 + .) ac_abs_srcdir=$ac_srcdir;;
957 + *)
958 +  case $ac_srcdir in
959 +  .) ac_abs_srcdir=$ac_abs_builddir;;
960 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 +  esac;;
963 + esac
964 + case $ac_abs_builddir in
965 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 + *)
967 +  case $ac_top_srcdir in
968 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 +  esac;;
972 + esac
973 +
974      cd $ac_dir
975      # Check for guested configure; otherwise get Cygnus style configure.
976      if test -f $ac_srcdir/configure.gnu; then
# Line 953 | Line 980 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir &
980        echo
981        $SHELL $ac_srcdir/configure  --help=recursive
982      elif test -f $ac_srcdir/configure.ac ||
983 <           test -f $ac_srcdir/configure.in; then
983 >           test -f $ac_srcdir/configure.in; then
984        echo
985        $ac_configure --help
986      else
# Line 967 | Line 994 | OOPSE configure 1.0
994   if $ac_init_version; then
995    cat <<\_ACEOF
996   OOPSE configure 1.0
997 < generated by GNU Autoconf 2.57
997 > generated by GNU Autoconf 2.59
998  
999 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 < Free Software Foundation, Inc.
999 > Copyright (C) 2003 Free Software Foundation, Inc.
1000   This configure script is free software; the Free Software Foundation
1001   gives unlimited permission to copy, distribute and modify it.
1002   _ACEOF
# Line 982 | Line 1008 | It was created by OOPSE $as_me 1.0, which was
1008   running configure, to aid debugging if configure makes a mistake.
1009  
1010   It was created by OOPSE $as_me 1.0, which was
1011 < generated by GNU Autoconf 2.57.  Invocation command line was
1011 > generated by GNU Autoconf 2.59.  Invocation command line was
1012  
1013    $ $0 $@
1014  
# Line 1059 | Line 1085 | do
1085      2)
1086        ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087        if test $ac_must_keep_next = true; then
1088 <        ac_must_keep_next=false # Got value, back to normal.
1088 >        ac_must_keep_next=false # Got value, back to normal.
1089        else
1090 <        case $ac_arg in
1091 <          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 <          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 <          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 <          | -with-* | --with-* | -without-* | --without-* | --x)
1095 <            case "$ac_configure_args0 " in
1096 <              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 <            esac
1098 <            ;;
1099 <          -* ) ac_must_keep_next=true ;;
1100 <        esac
1090 >        case $ac_arg in
1091 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 >          | -with-* | --with-* | -without-* | --without-* | --x)
1095 >            case "$ac_configure_args0 " in
1096 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 >            esac
1098 >            ;;
1099 >          -* ) ac_must_keep_next=true ;;
1100 >        esac
1101        fi
1102        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103        # Get rid of the leading space.
# Line 1105 | Line 1131 | _ASBOX
1131      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132      *ac_space=\ *)
1133        sed -n \
1134 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136        ;;
1137      *)
1138        sed -n \
1139 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140        ;;
1141      esac;
1142   }
# Line 1139 | Line 1165 | _ASBOX
1165        for ac_var in $ac_subst_files
1166        do
1167          eval ac_val=$`echo $ac_var`
1168 <        echo "$ac_var='"'"'$ac_val'"'"'"
1168 >        echo "$ac_var='"'"'$ac_val'"'"'"
1169        done | sort
1170        echo
1171      fi
# Line 1158 | Line 1184 | _ASBOX
1184        echo "$as_me: caught signal $ac_signal"
1185      echo "$as_me: exit $exit_status"
1186    } >&5
1187 <  rm -f core core.* *.core &&
1187 >  rm -f core *.core &&
1188    rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189      exit $exit_status
1190       ' 0
# Line 1238 | Line 1264 | for ac_var in `(set) 2>&1 |
1264   # value.
1265   ac_cache_corrupted=false
1266   for ac_var in `(set) 2>&1 |
1267 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269    eval ac_new_set=\$ac_env_${ac_var}_set
1270    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
# Line 1255 | Line 1281 | echo "$as_me: error: \`$ac_var' was not set in the pre
1281      ,);;
1282      *)
1283        if test "x$ac_old_val" != "x$ac_new_val"; then
1284 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285   echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287   echo "$as_me:   former value:  $ac_old_val" >&2;}
1288 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289   echo "$as_me:   current value: $ac_new_val" >&2;}
1290 <        ac_cache_corrupted=:
1290 >        ac_cache_corrupted=:
1291        fi;;
1292    esac
1293    # Pass precious variables to config.status.
# Line 1792 | Line 1818 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1818   # $SHELLVAR to the Fortran 95 mangled name.  If the SHELLVAR
1819   # argument is not supplied, it defaults to NAME.
1820   # AC_F95_FUNC
1821 +
1822 +
1823  
1824  
1825  
# Line 1836 | Line 1864 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1864  
1865  
1866  
1867 +
1868 +
1869 +
1870 +
1871 +
1872   # set program name
1873   PROGNAME="oopse"
1874  
# Line 2034 | Line 2067 | cat >conftest.$ac_ext <<_ACEOF
2067    (exit $ac_status); }
2068  
2069   cat >conftest.$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2070   /* confdefs.h.  */
2071   _ACEOF
2072   cat confdefs.h >>conftest.$ac_ext
# Line 2054 | Line 2086 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
2086   # Try to create an executable without -o first, disregard a.out.
2087   # It will help us diagnose broken compilers, and finding out an intuition
2088   # of exeext.
2089 < echo "$as_me:$LINENO: checking for C compiler default output" >&5
2090 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092   if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093    (eval $ac_link_default) 2>&5
# Line 2075 | Line 2107 | do
2107    test -f "$ac_file" || continue
2108    case $ac_file in
2109      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110 <        ;;
2110 >        ;;
2111      conftest.$ac_ext )
2112 <        # This is the source file.
2113 <        ;;
2112 >        # This is the source file.
2113 >        ;;
2114      [ab].out )
2115 <        # We found the default executable, but exeext='' is most
2116 <        # certainly right.
2117 <        break;;
2115 >        # We found the default executable, but exeext='' is most
2116 >        # certainly right.
2117 >        break;;
2118      *.* )
2119 <        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 <        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 <        # but it would be cool to find out if it's true.  Does anybody
2122 <        # maintain Libtool? --akim.
2123 <        export ac_cv_exeext
2124 <        break;;
2119 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 >        # but it would be cool to find out if it's true.  Does anybody
2122 >        # maintain Libtool? --akim.
2123 >        export ac_cv_exeext
2124 >        break;;
2125      * )
2126 <        break;;
2126 >        break;;
2127    esac
2128   done
2129   else
# Line 2165 | Line 2197 | for ac_file in conftest.exe conftest conftest.*; do
2197    case $ac_file in
2198      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 <          export ac_cv_exeext
2201 <          break;;
2200 >          export ac_cv_exeext
2201 >          break;;
2202      * ) break;;
2203    esac
2204   done
# Line 2191 | Line 2223 | else
2223    echo $ECHO_N "(cached) $ECHO_C" >&6
2224   else
2225    cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2226   /* confdefs.h.  */
2227   _ACEOF
2228   cat confdefs.h >>conftest.$ac_ext
# Line 2242 | Line 2273 | else
2273    echo $ECHO_N "(cached) $ECHO_C" >&6
2274   else
2275    cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2276   /* confdefs.h.  */
2277   _ACEOF
2278   cat confdefs.h >>conftest.$ac_ext
# Line 2262 | Line 2292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292   _ACEOF
2293   rm -f conftest.$ac_objext
2294   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 <  (eval $ac_compile) 2>&5
2295 >  (eval $ac_compile) 2>conftest.er1
2296    ac_status=$?
2297 +  grep -v '^ *+' conftest.er1 >conftest.err
2298 +  rm -f conftest.er1
2299 +  cat conftest.err >&5
2300    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301    (exit $ac_status); } &&
2302 <         { ac_try='test -s conftest.$ac_objext'
2302 >         { ac_try='test -z "$ac_c_werror_flag"
2303 >                         || test ! -s conftest.err'
2304    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305    (eval $ac_try) 2>&5
2306    ac_status=$?
2307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 +  (exit $ac_status); }; } &&
2309 +         { ac_try='test -s conftest.$ac_objext'
2310 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 +  (eval $ac_try) 2>&5
2312 +  ac_status=$?
2313 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314    (exit $ac_status); }; }; then
2315    ac_compiler_gnu=yes
2316   else
# Line 2279 | Line 2319 | fi
2319  
2320   ac_compiler_gnu=no
2321   fi
2322 < rm -f conftest.$ac_objext conftest.$ac_ext
2322 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324  
2325   fi
# Line 2295 | Line 2335 | else
2335    echo $ECHO_N "(cached) $ECHO_C" >&6
2336   else
2337    cat >conftest.$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2338   /* confdefs.h.  */
2339   _ACEOF
2340   cat confdefs.h >>conftest.$ac_ext
# Line 2312 | Line 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   _ACEOF
2352   rm -f conftest.$ac_objext
2353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 <  (eval $ac_compile) 2>&5
2354 >  (eval $ac_compile) 2>conftest.er1
2355    ac_status=$?
2356 +  grep -v '^ *+' conftest.er1 >conftest.err
2357 +  rm -f conftest.er1
2358 +  cat conftest.err >&5
2359    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360    (exit $ac_status); } &&
2361 <         { ac_try='test -s conftest.$ac_objext'
2361 >         { ac_try='test -z "$ac_c_werror_flag"
2362 >                         || test ! -s conftest.err'
2363    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364    (eval $ac_try) 2>&5
2365    ac_status=$?
2366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 +  (exit $ac_status); }; } &&
2368 +         { ac_try='test -s conftest.$ac_objext'
2369 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 +  (eval $ac_try) 2>&5
2371 +  ac_status=$?
2372 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373    (exit $ac_status); }; }; then
2374    ac_cv_prog_cc_g=yes
2375   else
# Line 2329 | Line 2378 | fi
2378  
2379   ac_cv_prog_cc_g=no
2380   fi
2381 < rm -f conftest.$ac_objext conftest.$ac_ext
2381 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382   fi
2383   echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
# Line 2356 | Line 2405 | cat >conftest.$ac_ext <<_ACEOF
2405    ac_cv_prog_cc_stdc=no
2406   ac_save_CC=$CC
2407   cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2408   /* confdefs.h.  */
2409   _ACEOF
2410   cat confdefs.h >>conftest.$ac_ext
# Line 2384 | Line 2432 | static char *f (char * (*g) (char **, int), char **p,
2432    va_end (v);
2433    return s;
2434   }
2435 +
2436 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2437 +   function prototypes and stuff, but not '\xHH' hex character constants.
2438 +   These don't provoke an error unfortunately, instead are silently treated
2439 +   as 'x'.  The following induces an error, until -std1 is added to get
2440 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2441 +   array size at least.  It's necessary to write '\x00'==0 to get something
2442 +   that's true only with -std1.  */
2443 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2444 +
2445   int test (int i, double x);
2446   struct s1 {int (*f) (int a);};
2447   struct s2 {int (*f) (double a);};
# Line 2410 | Line 2468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468    CC="$ac_save_CC $ac_arg"
2469    rm -f conftest.$ac_objext
2470   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 <  (eval $ac_compile) 2>&5
2471 >  (eval $ac_compile) 2>conftest.er1
2472    ac_status=$?
2473 +  grep -v '^ *+' conftest.er1 >conftest.err
2474 +  rm -f conftest.er1
2475 +  cat conftest.err >&5
2476    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477    (exit $ac_status); } &&
2478 <         { ac_try='test -s conftest.$ac_objext'
2478 >         { ac_try='test -z "$ac_c_werror_flag"
2479 >                         || test ! -s conftest.err'
2480    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481    (eval $ac_try) 2>&5
2482    ac_status=$?
2483    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 +  (exit $ac_status); }; } &&
2485 +         { ac_try='test -s conftest.$ac_objext'
2486 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 +  (eval $ac_try) 2>&5
2488 +  ac_status=$?
2489 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490    (exit $ac_status); }; }; then
2491    ac_cv_prog_cc_stdc=$ac_arg
2492   break
# Line 2427 | Line 2495 | fi
2495   sed 's/^/| /' conftest.$ac_ext >&5
2496  
2497   fi
2498 < rm -f conftest.$ac_objext
2498 > rm -f conftest.err conftest.$ac_objext
2499   done
2500   rm -f conftest.$ac_ext conftest.$ac_objext
2501   CC=$ac_save_CC
# Line 2455 | Line 2523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   _ACEOF
2524   rm -f conftest.$ac_objext
2525   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 <  (eval $ac_compile) 2>&5
2526 >  (eval $ac_compile) 2>conftest.er1
2527    ac_status=$?
2528 +  grep -v '^ *+' conftest.er1 >conftest.err
2529 +  rm -f conftest.er1
2530 +  cat conftest.err >&5
2531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532    (exit $ac_status); } &&
2533 <         { ac_try='test -s conftest.$ac_objext'
2533 >         { ac_try='test -z "$ac_c_werror_flag"
2534 >                         || test ! -s conftest.err'
2535    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536    (eval $ac_try) 2>&5
2537    ac_status=$?
2538    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 +  (exit $ac_status); }; } &&
2540 +         { ac_try='test -s conftest.$ac_objext'
2541 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 +  (eval $ac_try) 2>&5
2543 +  ac_status=$?
2544 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545    (exit $ac_status); }; }; then
2546    for ac_declaration in \
2547 <   ''\
2470 <   '#include <stdlib.h>' \
2547 >   '' \
2548     'extern "C" void std::exit (int) throw (); using std::exit;' \
2549     'extern "C" void std::exit (int); using std::exit;' \
2550     'extern "C" void exit (int) throw ();' \
# Line 2475 | Line 2552 | do
2552     'void exit (int);'
2553   do
2554    cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2555   /* confdefs.h.  */
2556   _ACEOF
2557   cat confdefs.h >>conftest.$ac_ext
2558   cat >>conftest.$ac_ext <<_ACEOF
2559   /* end confdefs.h.  */
2484 #include <stdlib.h>
2560   $ac_declaration
2561 + #include <stdlib.h>
2562   int
2563   main ()
2564   {
# Line 2493 | Line 2569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   _ACEOF
2570   rm -f conftest.$ac_objext
2571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 <  (eval $ac_compile) 2>&5
2572 >  (eval $ac_compile) 2>conftest.er1
2573    ac_status=$?
2574 +  grep -v '^ *+' conftest.er1 >conftest.err
2575 +  rm -f conftest.er1
2576 +  cat conftest.err >&5
2577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578    (exit $ac_status); } &&
2579 <         { ac_try='test -s conftest.$ac_objext'
2579 >         { ac_try='test -z "$ac_c_werror_flag"
2580 >                         || test ! -s conftest.err'
2581    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582    (eval $ac_try) 2>&5
2583    ac_status=$?
2584    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 +  (exit $ac_status); }; } &&
2586 +         { ac_try='test -s conftest.$ac_objext'
2587 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 +  (eval $ac_try) 2>&5
2589 +  ac_status=$?
2590 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591    (exit $ac_status); }; }; then
2592    :
2593   else
# Line 2510 | Line 2596 | fi
2596  
2597   continue
2598   fi
2599 < rm -f conftest.$ac_objext conftest.$ac_ext
2599 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600    cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2601   /* confdefs.h.  */
2602   _ACEOF
2603   cat confdefs.h >>conftest.$ac_ext
# Line 2529 | Line 2614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   _ACEOF
2615   rm -f conftest.$ac_objext
2616   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 <  (eval $ac_compile) 2>&5
2617 >  (eval $ac_compile) 2>conftest.er1
2618    ac_status=$?
2619 +  grep -v '^ *+' conftest.er1 >conftest.err
2620 +  rm -f conftest.er1
2621 +  cat conftest.err >&5
2622    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623    (exit $ac_status); } &&
2624 <         { ac_try='test -s conftest.$ac_objext'
2624 >         { ac_try='test -z "$ac_c_werror_flag"
2625 >                         || test ! -s conftest.err'
2626    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627    (eval $ac_try) 2>&5
2628    ac_status=$?
2629    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 +  (exit $ac_status); }; } &&
2631 +         { ac_try='test -s conftest.$ac_objext'
2632 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 +  (eval $ac_try) 2>&5
2634 +  ac_status=$?
2635 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636    (exit $ac_status); }; }; then
2637    break
2638   else
# Line 2545 | Line 2640 | fi
2640   sed 's/^/| /' conftest.$ac_ext >&5
2641  
2642   fi
2643 < rm -f conftest.$ac_objext conftest.$ac_ext
2643 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644   done
2645   rm -f conftest*
2646   if test -n "$ac_declaration"; then
# Line 2559 | Line 2654 | fi
2654   sed 's/^/| /' conftest.$ac_ext >&5
2655  
2656   fi
2657 < rm -f conftest.$ac_objext conftest.$ac_ext
2657 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658   ac_ext=c
2659   ac_cpp='$CPP $CPPFLAGS'
2660   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 2686 | Line 2781 | else
2781    echo $ECHO_N "(cached) $ECHO_C" >&6
2782   else
2783    cat >conftest.$ac_ext <<_ACEOF
2689 #line $LINENO "configure"
2784   /* confdefs.h.  */
2785   _ACEOF
2786   cat confdefs.h >>conftest.$ac_ext
# Line 2706 | Line 2800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800   _ACEOF
2801   rm -f conftest.$ac_objext
2802   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 <  (eval $ac_compile) 2>&5
2803 >  (eval $ac_compile) 2>conftest.er1
2804    ac_status=$?
2805 +  grep -v '^ *+' conftest.er1 >conftest.err
2806 +  rm -f conftest.er1
2807 +  cat conftest.err >&5
2808    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809    (exit $ac_status); } &&
2810 <         { ac_try='test -s conftest.$ac_objext'
2810 >         { ac_try='test -z "$ac_cxx_werror_flag"
2811 >                         || test ! -s conftest.err'
2812 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 >  (eval $ac_try) 2>&5
2814 >  ac_status=$?
2815 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 >  (exit $ac_status); }; } &&
2817 >         { ac_try='test -s conftest.$ac_objext'
2818    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819    (eval $ac_try) 2>&5
2820    ac_status=$?
# Line 2723 | Line 2827 | fi
2827  
2828   ac_compiler_gnu=no
2829   fi
2830 < rm -f conftest.$ac_objext conftest.$ac_ext
2830 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2832  
2833   fi
# Line 2739 | Line 2843 | else
2843    echo $ECHO_N "(cached) $ECHO_C" >&6
2844   else
2845    cat >conftest.$ac_ext <<_ACEOF
2742 #line $LINENO "configure"
2846   /* confdefs.h.  */
2847   _ACEOF
2848   cat confdefs.h >>conftest.$ac_ext
# Line 2756 | Line 2859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859   _ACEOF
2860   rm -f conftest.$ac_objext
2861   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 <  (eval $ac_compile) 2>&5
2862 >  (eval $ac_compile) 2>conftest.er1
2863    ac_status=$?
2864 +  grep -v '^ *+' conftest.er1 >conftest.err
2865 +  rm -f conftest.er1
2866 +  cat conftest.err >&5
2867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868    (exit $ac_status); } &&
2869 <         { ac_try='test -s conftest.$ac_objext'
2869 >         { ac_try='test -z "$ac_cxx_werror_flag"
2870 >                         || test ! -s conftest.err'
2871    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872    (eval $ac_try) 2>&5
2873    ac_status=$?
2874    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 +  (exit $ac_status); }; } &&
2876 +         { ac_try='test -s conftest.$ac_objext'
2877 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 +  (eval $ac_try) 2>&5
2879 +  ac_status=$?
2880 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881    (exit $ac_status); }; }; then
2882    ac_cv_prog_cxx_g=yes
2883   else
# Line 2773 | Line 2886 | fi
2886  
2887   ac_cv_prog_cxx_g=no
2888   fi
2889 < rm -f conftest.$ac_objext conftest.$ac_ext
2889 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890   fi
2891   echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2892   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
# Line 2793 | Line 2906 | for ac_declaration in \
2906    fi
2907   fi
2908   for ac_declaration in \
2909 <   ''\
2797 <   '#include <stdlib.h>' \
2909 >   '' \
2910     'extern "C" void std::exit (int) throw (); using std::exit;' \
2911     'extern "C" void std::exit (int); using std::exit;' \
2912     'extern "C" void exit (int) throw ();' \
# Line 2802 | Line 2914 | do
2914     'void exit (int);'
2915   do
2916    cat >conftest.$ac_ext <<_ACEOF
2805 #line $LINENO "configure"
2917   /* confdefs.h.  */
2918   _ACEOF
2919   cat confdefs.h >>conftest.$ac_ext
2920   cat >>conftest.$ac_ext <<_ACEOF
2921   /* end confdefs.h.  */
2811 #include <stdlib.h>
2922   $ac_declaration
2923 + #include <stdlib.h>
2924   int
2925   main ()
2926   {
# Line 2820 | Line 2931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931   _ACEOF
2932   rm -f conftest.$ac_objext
2933   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 <  (eval $ac_compile) 2>&5
2934 >  (eval $ac_compile) 2>conftest.er1
2935    ac_status=$?
2936 +  grep -v '^ *+' conftest.er1 >conftest.err
2937 +  rm -f conftest.er1
2938 +  cat conftest.err >&5
2939    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940    (exit $ac_status); } &&
2941 <         { ac_try='test -s conftest.$ac_objext'
2941 >         { ac_try='test -z "$ac_cxx_werror_flag"
2942 >                         || test ! -s conftest.err'
2943    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944    (eval $ac_try) 2>&5
2945    ac_status=$?
2946    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 +  (exit $ac_status); }; } &&
2948 +         { ac_try='test -s conftest.$ac_objext'
2949 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 +  (eval $ac_try) 2>&5
2951 +  ac_status=$?
2952 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953    (exit $ac_status); }; }; then
2954    :
2955   else
# Line 2837 | Line 2958 | fi
2958  
2959   continue
2960   fi
2961 < rm -f conftest.$ac_objext conftest.$ac_ext
2961 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962    cat >conftest.$ac_ext <<_ACEOF
2842 #line $LINENO "configure"
2963   /* confdefs.h.  */
2964   _ACEOF
2965   cat confdefs.h >>conftest.$ac_ext
# Line 2856 | Line 2976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976   _ACEOF
2977   rm -f conftest.$ac_objext
2978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 <  (eval $ac_compile) 2>&5
2979 >  (eval $ac_compile) 2>conftest.er1
2980    ac_status=$?
2981 +  grep -v '^ *+' conftest.er1 >conftest.err
2982 +  rm -f conftest.er1
2983 +  cat conftest.err >&5
2984    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985    (exit $ac_status); } &&
2986 <         { ac_try='test -s conftest.$ac_objext'
2986 >         { ac_try='test -z "$ac_cxx_werror_flag"
2987 >                         || test ! -s conftest.err'
2988    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989    (eval $ac_try) 2>&5
2990    ac_status=$?
2991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 +  (exit $ac_status); }; } &&
2993 +         { ac_try='test -s conftest.$ac_objext'
2994 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 +  (eval $ac_try) 2>&5
2996 +  ac_status=$?
2997 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998    (exit $ac_status); }; }; then
2999    break
3000   else
# Line 2872 | Line 3002 | fi
3002   sed 's/^/| /' conftest.$ac_ext >&5
3003  
3004   fi
3005 < rm -f conftest.$ac_objext conftest.$ac_ext
3005 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006   done
3007   rm -f conftest*
3008   if test -n "$ac_declaration"; then
# Line 2887 | Line 3017 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019  
3020 +
3021   OOPSE_TEMPLATE_FLAGS=""
3022   if test $ac_cv_cxx_compiler_gnu = no; then
3023    echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
# Line 2931 | Line 3062 | echo "${ECHO_T}yes" >&6
3062    if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3063      echo "$as_me:$LINENO: result: yes" >&5
3064   echo "${ECHO_T}yes" >&6
3065 +
3066 +
3067      EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3068    else
3069      echo "$as_me:$LINENO: result: no" >&5
# Line 2946 | Line 3079 | if test -n "$ac_tool_prefix"; then
3079   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3081   if test -n "$ac_tool_prefix"; then
3082 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3082 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3083    do
3084      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2988 | Line 3121 | if test -z "$F90"; then
3121   fi
3122   if test -z "$F90"; then
3123    ac_ct_F90=$F90
3124 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3124 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3125   do
3126    # Extract the first word of "$ac_prog", so it can be a program name with args.
3127   set dummy $ac_prog; ac_word=$2
# Line 3054 | Line 3187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187   _ACEOF
3188   rm -f conftest.$ac_objext
3189   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 <  (eval $ac_compile) 2>&5
3190 >  (eval $ac_compile) 2>conftest.er1
3191    ac_status=$?
3192 +  grep -v '^ *+' conftest.er1 >conftest.err
3193 +  rm -f conftest.er1
3194 +  cat conftest.err >&5
3195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196    (exit $ac_status); } &&
3197 <         { ac_try='test -s conftest.$ac_objext'
3197 >         { ac_try='test -z "$ac_f90_werror_flag"
3198 >                         || test ! -s conftest.err'
3199    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200    (eval $ac_try) 2>&5
3201    ac_status=$?
3202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 +  (exit $ac_status); }; } &&
3204 +         { ac_try='test -s conftest.$ac_objext'
3205 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 +  (eval $ac_try) 2>&5
3207 +  ac_status=$?
3208 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209    (exit $ac_status); }; }; then
3210    ac_compiler_gnu=yes
3211   else
# Line 3071 | Line 3214 | fi
3214  
3215   ac_compiler_gnu=no
3216   fi
3217 < rm -f conftest.$ac_objext conftest.$ac_ext
3217 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3219  
3220   fi
# Line 3096 | Line 3239 | if test "$ac_test_PREPFLAG" != "set"; then
3239    PREPFLAG=""
3240    case "${host_cpu}-${host_os}" in
3241  
3242 <  *linux*) if test "$F90" = ifc; then
3242 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3243                      PREPFLAG="-fpp1 "
3244                  fi;;
3245    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3145 | Line 3288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288   _ACEOF
3289   rm -f conftest.$ac_objext
3290   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 <  (eval $ac_compile) 2>&5
3291 >  (eval $ac_compile) 2>conftest.er1
3292    ac_status=$?
3293 +  grep -v '^ *+' conftest.er1 >conftest.err
3294 +  rm -f conftest.er1
3295 +  cat conftest.err >&5
3296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297    (exit $ac_status); } &&
3298 <         { ac_try='test -s conftest.$ac_objext'
3298 >         { ac_try='test -z "$ac_f90_werror_flag"
3299 >                         || test ! -s conftest.err'
3300    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301    (eval $ac_try) 2>&5
3302    ac_status=$?
3303    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 +  (exit $ac_status); }; } &&
3305 +         { ac_try='test -s conftest.$ac_objext'
3306 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 +  (eval $ac_try) 2>&5
3308 +  ac_status=$?
3309 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310    (exit $ac_status); }; }; then
3311    prepflagworks=1
3312   else
# Line 3162 | Line 3315 | fi
3315  
3316   prepflagworks=0
3317   fi
3318 < rm -f conftest.$ac_objext conftest.$ac_ext
3318 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319  
3320    F90FLAGS=$ac_save_F90FLAGS
3321    ac_ext=$ac_save_ext
# Line 3173 | Line 3326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327  
3328  
3176
3329    if test "$prepflagworks" = 1; then
3330      echo "$as_me:$LINENO: result: yes" >&5
3331   echo "${ECHO_T}yes" >&6
# Line 3198 | Line 3350 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3350    PREPDEFFLAG=""
3351    case "${host_cpu}-${host_os}" in
3352  
3353 <  *linux*) if test "$F90" = ifc; then
3353 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3354                      PREPDEFFLAG=" "
3355                  fi;;
3356    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3251 | Line 3403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403   _ACEOF
3404   rm -f conftest.$ac_objext
3405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 <  (eval $ac_compile) 2>&5
3406 >  (eval $ac_compile) 2>conftest.er1
3407    ac_status=$?
3408 +  grep -v '^ *+' conftest.er1 >conftest.err
3409 +  rm -f conftest.er1
3410 +  cat conftest.err >&5
3411    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412    (exit $ac_status); } &&
3413 <         { ac_try='test -s conftest.$ac_objext'
3413 >         { ac_try='test -z "$ac_f90_werror_flag"
3414 >                         || test ! -s conftest.err'
3415    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416    (eval $ac_try) 2>&5
3417    ac_status=$?
3418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 +  (exit $ac_status); }; } &&
3420 +         { ac_try='test -s conftest.$ac_objext'
3421 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 +  (eval $ac_try) 2>&5
3423 +  ac_status=$?
3424 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425    (exit $ac_status); }; }; then
3426    prepdefflagworks=1
3427   else
# Line 3268 | Line 3430 | fi
3430  
3431   prepdefflagworks=0
3432   fi
3433 < rm -f conftest.$ac_objext conftest.$ac_ext
3433 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434  
3435    F90FLAGS=$ac_save_F90FLAGS
3436    ac_ext=$ac_save_ext
# Line 3320 | Line 3482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482   _ACEOF
3483   rm -f conftest.$ac_objext
3484   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 <  (eval $ac_compile) 2>&5
3485 >  (eval $ac_compile) 2>conftest.er1
3486    ac_status=$?
3487 +  grep -v '^ *+' conftest.er1 >conftest.err
3488 +  rm -f conftest.er1
3489 +  cat conftest.err >&5
3490    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491    (exit $ac_status); } &&
3492 <         { ac_try='test -s conftest.$ac_objext'
3492 >         { ac_try='test -z "$ac_f90_werror_flag"
3493 >                         || test ! -s conftest.err'
3494    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495    (eval $ac_try) 2>&5
3496    ac_status=$?
3497    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 +  (exit $ac_status); }; } &&
3499 +         { ac_try='test -s conftest.$ac_objext'
3500 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 +  (eval $ac_try) 2>&5
3502 +  ac_status=$?
3503 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504    (exit $ac_status); }; }; then
3505    ac_cv_prog_f90_v=
3506   # Try some options frequently used verbose output
# Line 3354 | Line 3526 | F90FLAGS="$F90FLAGS $ac_verb"
3526   ac_save_F90FLAGS=$F90FLAGS
3527   F90FLAGS="$F90FLAGS $ac_verb"
3528  
3529 < (eval echo $as_me:3357: \"$ac_link\") >&5
3529 > (eval echo $as_me:3529: \"$ac_link\") >&5
3530   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3531   echo "$ac_f90_v_output" >&5
3532   F90FLAGS=$ac_save_F90FLAGS
# Line 3396 | Line 3568 | fi
3568   { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3569   echo "$as_me: WARNING: compilation failed" >&2;}
3570   fi
3571 < rm -f conftest.$ac_objext conftest.$ac_ext
3571 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572  
3573   fi
3574   echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
# Line 3431 | Line 3603 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3603   ac_save_F90FLAGS=$F90FLAGS
3604   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3605  
3606 < (eval echo $as_me:3434: \"$ac_link\") >&5
3606 > (eval echo $as_me:3606: \"$ac_link\") >&5
3607   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3608   echo "$ac_f90_v_output" >&5
3609   F90FLAGS=$ac_save_F90FLAGS
# Line 3613 | Line 3785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785   _ACEOF
3786   rm -f conftest.$ac_objext
3787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 <  (eval $ac_compile) 2>&5
3788 >  (eval $ac_compile) 2>conftest.er1
3789    ac_status=$?
3790 +  grep -v '^ *+' conftest.er1 >conftest.err
3791 +  rm -f conftest.er1
3792 +  cat conftest.err >&5
3793    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794    (exit $ac_status); } &&
3795 <         { ac_try='test -s conftest.$ac_objext'
3795 >         { ac_try='test -z "$ac_f90_werror_flag"
3796 >                         || test ! -s conftest.err'
3797    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798    (eval $ac_try) 2>&5
3799    ac_status=$?
3800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 +  (exit $ac_status); }; } &&
3802 +         { ac_try='test -s conftest.$ac_objext'
3803 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 +  (eval $ac_try) 2>&5
3805 +  ac_status=$?
3806 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807    (exit $ac_status); }; }; then
3808    mv conftest.$ac_objext cf90_test.$ac_objext
3809  
# Line 3639 | Line 3821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821      for ac_underscore in "" "_"; do
3822        ac_func="$ac_foobar$ac_underscore"
3823        cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3824   /* confdefs.h.  */
3825   _ACEOF
3826   cat confdefs.h >>conftest.$ac_ext
# Line 3663 | Line 3844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844   _ACEOF
3845   rm -f conftest.$ac_objext conftest$ac_exeext
3846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 <  (eval $ac_link) 2>&5
3847 >  (eval $ac_link) 2>conftest.er1
3848    ac_status=$?
3849 +  grep -v '^ *+' conftest.er1 >conftest.err
3850 +  rm -f conftest.er1
3851 +  cat conftest.err >&5
3852    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853    (exit $ac_status); } &&
3854 <         { ac_try='test -s conftest$ac_exeext'
3854 >         { ac_try='test -z "$ac_c_werror_flag"
3855 >                         || test ! -s conftest.err'
3856    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857    (eval $ac_try) 2>&5
3858    ac_status=$?
3859    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 +  (exit $ac_status); }; } &&
3861 +         { ac_try='test -s conftest$ac_exeext'
3862 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 +  (eval $ac_try) 2>&5
3864 +  ac_status=$?
3865 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866    (exit $ac_status); }; }; then
3867    ac_success=yes; break 2
3868   else
# Line 3679 | Line 3870 | fi
3870   sed 's/^/| /' conftest.$ac_ext >&5
3871  
3872   fi
3873 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3873 > rm -f conftest.err conftest.$ac_objext \
3874 >      conftest$ac_exeext conftest.$ac_ext
3875      done
3876    done
3877  
# Line 3700 | Line 3892 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
3892          ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3893  
3894          cat >conftest.$ac_ext <<_ACEOF
3703 #line $LINENO "configure"
3895   /* confdefs.h.  */
3896   _ACEOF
3897   cat confdefs.h >>conftest.$ac_ext
# Line 3724 | Line 3915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915   _ACEOF
3916   rm -f conftest.$ac_objext conftest$ac_exeext
3917   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918 <  (eval $ac_link) 2>&5
3918 >  (eval $ac_link) 2>conftest.er1
3919    ac_status=$?
3920 +  grep -v '^ *+' conftest.er1 >conftest.err
3921 +  rm -f conftest.er1
3922 +  cat conftest.err >&5
3923    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924    (exit $ac_status); } &&
3925 <         { ac_try='test -s conftest$ac_exeext'
3925 >         { ac_try='test -z "$ac_c_werror_flag"
3926 >                         || test ! -s conftest.err'
3927    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928    (eval $ac_try) 2>&5
3929    ac_status=$?
3930    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 +  (exit $ac_status); }; } &&
3932 +         { ac_try='test -s conftest$ac_exeext'
3933 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 +  (eval $ac_try) 2>&5
3935 +  ac_status=$?
3936 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937    (exit $ac_status); }; }; then
3938    ac_success_extra=yes; break
3939   else
# Line 3740 | Line 3941 | fi
3941   sed 's/^/| /' conftest.$ac_ext >&5
3942  
3943   fi
3944 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944 > rm -f conftest.err conftest.$ac_objext \
3945 >      conftest$ac_exeext conftest.$ac_ext
3946       done
3947  
3948       if test "$ac_success_extra" = "yes"; then
# Line 3775 | Line 3977 | fi
3977   sed 's/^/| /' conftest.$ac_ext >&5
3978  
3979   fi
3980 < rm -f conftest.$ac_objext conftest.$ac_ext
3980 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981   ac_ext=f90
3982   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3983   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 4008 | Line 4210 | case $debug in
4210  
4211  
4212  
4213 +
4214 +
4215 +
4216 + echo "$as_me:$LINENO: checking whether we are *really* using gcc" >&5
4217 + echo $ECHO_N "checking whether we are *really* using gcc... $ECHO_C" >&6
4218 + if test "${ac_cv_prog_really_gcc+set}" = set; then
4219 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4220 + else
4221  
4222 + cat > conftest.c <<EOF
4223 + #ifdef __GNUC__
4224 +  #ifndef __INTEL_COMPILER
4225 +     yes;
4226 +  #endif
4227 + #endif
4228 + EOF
4229 + if { ac_try='${CC-cc} -E conftest.c'
4230 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 +  (eval $ac_try) 2>&5
4232 +  ac_status=$?
4233 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4235 +  ac_cv_prog_really_gcc=yes
4236 + else
4237 +  ac_cv_prog_really_gcc=no
4238 + fi
4239 +
4240 + fi
4241 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4242 + echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4243 + if test "$ac_cv_prog_really_gcc" = yes; then
4244 +        :
4245 +
4246 + else
4247 +        :
4248 +
4249 + fi
4250 +
4251 +
4252   # Try to determine "good" native compiler flags if none specified on command
4253   # line
4254   if test "$ac_test_CFLAGS" != "set"; then
# Line 4062 | Line 4302 | if test "$ac_test_CFLAGS" != "set"; then
4302    esac
4303  
4304    # use default flags for gcc on all systems
4305 <  if test $ac_cv_c_compiler_gnu = yes; then
4305 >  if test $ac_cv_prog_really_gcc = yes; then
4306       CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4307    fi
4308  
4309    # test for gcc-specific flags:
4310 <  if test $ac_cv_c_compiler_gnu = yes; then
4310 >  if test $ac_cv_prog_really_gcc = yes; then
4311      # -malign-double for x86 systems
4312  
4313  
# Line 4125 | Line 4365 | fi
4365    fi
4366  
4367    CPU_FLAGS=""
4368 <  if test "$GCC" = "yes"; then
4368 >  if test $ac_cv_prog_really_gcc = yes; then
4369                    case "${host_cpu}" in
4370            i586*)
4371  
# Line 4271 | Line 4511 | cat > conftest.c <<EOF
4511   else
4512  
4513   cat > conftest.c <<EOF
4514 < #ifdef __GNUC__
4514 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4515   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4516       yes;
4517   #  endif
# Line 4431 | Line 4671 | else
4671          echo "********************************************************"
4672          echo ""
4673          CFLAGS=""
4674 +
4675 + fi
4676 +
4677  
4678   fi
4679 +
4680 +
4681 +
4682 +
4683  
4684 +
4685 +
4686 + echo "$as_me:$LINENO: checking whether we are *really* using g++" >&5
4687 + echo $ECHO_N "checking whether we are *really* using g++... $ECHO_C" >&6
4688 + if test "${ac_cv_prog_really_gxx+set}" = set; then
4689 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4690 + else
4691  
4692 + cat > conftest.cpp <<EOF
4693 + #ifdef __GNUC__
4694 +  #ifndef __INTEL_COMPILER
4695 +     yes;
4696 +  #endif
4697 + #endif
4698 + EOF
4699 + if { ac_try='${CXX-c++} -E conftest.cpp'
4700 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 +  (eval $ac_try) 2>&5
4702 +  ac_status=$?
4703 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4705 +  ac_cv_prog_really_gxx=yes
4706 + else
4707 +  ac_cv_prog_really_gxx=no
4708   fi
4709  
4710 + fi
4711 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4712 + echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4713 + if test "$ac_cv_prog_really_gxx" = yes; then
4714 +        :
4715  
4716 + else
4717 +        :
4718  
4719 + fi
4720  
4721  
4722   # Try to determine "good" native compiler flags if none specified on command
# Line 4485 | Line 4763 | if test "$ac_test_CXXFLAGS" != "set"; then
4763    esac
4764  
4765    # use default flags for gcc on all systems
4766 <  if test $ac_cv_c_compiler_gnu = yes; then
4766 >  if test $ac_cv_prog_really_gxx = yes; then
4767       CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4768    fi
4769  
4770    # test for gcc-specific flags:
4771 <  if test $ac_cv_c_compiler_gnu = yes; then
4771 >  if test $ac_cv_prog_really_gxx = yes; then
4772      # -malign-double for x86 systems
4773  
4774  
# Line 4548 | Line 4826 | fi
4826    fi
4827  
4828    CPU_FLAGS=""
4829 <  if test "$GCC" = "yes"; then
4829 >  if test $ac_cv_prog_really_gxx = yes; then
4830                    case "${host_cpu}" in
4831            i586*)
4832  
4833 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4834 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4833 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4834 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4835   if test "${ac_cpu_pentium+set}" = set; then
4836    echo $ECHO_N "(cached) $ECHO_C" >&6
4837   else
4838 <  echo 'void f(){}' > conftest.c
4839 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4838 >  echo 'void f(){}' > conftest.cpp
4839 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4840          ac_cpu_pentium=yes
4841   else
4842          ac_cpu_pentium=no
# Line 4687 | Line 4965 | fi
4965                  elif test "$cputype" = 750; then
4966  
4967  
4968 < echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4969 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4970 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4968 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4969 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4970 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4971    echo $ECHO_N "(cached) $ECHO_C" >&6
4972   else
4973  
4974 < cat > conftest.c <<EOF
4975 < #ifdef __GNUC__
4974 > cat > conftest.cpp <<EOF
4975 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4976   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4977       yes;
4978   #  endif
4979   #endif
4980   EOF
4981 < if { ac_try='${CC-cc} -E conftest.c'
4981 > if { ac_try='${CXX-c++} -E conftest.cpp'
4982    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983    (eval $ac_try) 2>&5
4984    ac_status=$?
4985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4987 <  ac_cv_prog_gcc_2_95=yes
4987 >  ac_cv_prog_gxx_2_95=yes
4988   else
4989 <  ac_cv_prog_gcc_2_95=no
4989 >  ac_cv_prog_gxx_2_95=no
4990   fi
4991  
4992   fi
4993 < echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4994 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4995 < if test "$ac_cv_prog_gcc_2_95" = yes; then
4993 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4994 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4995 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4996          :
4997  
4998  
# Line 4871 | Line 5149 | if test x"$F90FLAGS" = x ; then
5149    F90FLAGS=""
5150    case "${host_cpu}-${host_os}" in
5151  
5152 <  *linux*) if test "$F90" = ifc; then
5152 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5153                      F90FLAGS="-O"
5154                  fi;;
5155     rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 4990 | Line 5268 | esac
5268   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5269   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5270   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5271 + # OS/2's system install, which has a completely different semantic
5272   # ./install, which can be erroneously created by make from ./install.sh.
5273   echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5274   echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
# Line 5006 | Line 5285 | case $as_dir/ in
5285   case $as_dir/ in
5286    ./ | .// | /cC/* | \
5287    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5288 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5289    /usr/ucb/* ) ;;
5290    *)
5291      # OSF1 and SCO ODT 3.0 have their own names for install.
# Line 5013 | Line 5293 | case $as_dir/ in
5293      # by default.
5294      for ac_prog in ginstall scoinst install; do
5295        for ac_exec_ext in '' $ac_executable_extensions; do
5296 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5297 <          if test $ac_prog = install &&
5298 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5299 <            # AIX install.  It has an incompatible calling convention.
5300 <            :
5301 <          elif test $ac_prog = install &&
5302 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5303 <            # program-specific install script used by HP pwplus--don't use.
5304 <            :
5305 <          else
5306 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5307 <            break 3
5308 <          fi
5309 <        fi
5296 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5297 >          if test $ac_prog = install &&
5298 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5299 >            # AIX install.  It has an incompatible calling convention.
5300 >            :
5301 >          elif test $ac_prog = install &&
5302 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5303 >            # program-specific install script used by HP pwplus--don't use.
5304 >            :
5305 >          else
5306 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5307 >            break 3
5308 >          fi
5309 >        fi
5310        done
5311      done
5312      ;;
# Line 5069 | Line 5349 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MA
5349  
5350   echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5351   echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5352 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5352 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5353   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5354    echo $ECHO_N "(cached) $ECHO_C" >&6
5355   else
# Line 5277 | Line 5557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557   _ACEOF
5558   rm -f conftest.$ac_objext conftest$ac_exeext
5559   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 <  (eval $ac_link) 2>&5
5560 >  (eval $ac_link) 2>conftest.er1
5561    ac_status=$?
5562 +  grep -v '^ *+' conftest.er1 >conftest.err
5563 +  rm -f conftest.er1
5564 +  cat conftest.err >&5
5565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566    (exit $ac_status); } &&
5567 <         { ac_try='test -s conftest$ac_exeext'
5567 >         { ac_try='test -z "$ac_f90_werror_flag"
5568 >                         || test ! -s conftest.err'
5569    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570    (eval $ac_try) 2>&5
5571    ac_status=$?
5572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 +  (exit $ac_status); }; } &&
5574 +         { ac_try='test -s conftest$ac_exeext'
5575 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 +  (eval $ac_try) 2>&5
5577 +  ac_status=$?
5578 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579    (exit $ac_status); }; }; then
5580    ac_cv_lib_fl_yywrap=yes
5581   else
# Line 5294 | Line 5584 | fi
5584  
5585   ac_cv_lib_fl_yywrap=no
5586   fi
5587 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5587 > rm -f conftest.err conftest.$ac_objext \
5588 >      conftest$ac_exeext conftest.$ac_ext
5589   LIBS=$ac_check_lib_save_LIBS
5590   fi
5591   echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
# Line 5319 | Line 5610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610   _ACEOF
5611   rm -f conftest.$ac_objext conftest$ac_exeext
5612   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 <  (eval $ac_link) 2>&5
5613 >  (eval $ac_link) 2>conftest.er1
5614    ac_status=$?
5615 +  grep -v '^ *+' conftest.er1 >conftest.err
5616 +  rm -f conftest.er1
5617 +  cat conftest.err >&5
5618    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619    (exit $ac_status); } &&
5620 <         { ac_try='test -s conftest$ac_exeext'
5620 >         { ac_try='test -z "$ac_f90_werror_flag"
5621 >                         || test ! -s conftest.err'
5622    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623    (eval $ac_try) 2>&5
5624    ac_status=$?
5625    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 +  (exit $ac_status); }; } &&
5627 +         { ac_try='test -s conftest$ac_exeext'
5628 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 +  (eval $ac_try) 2>&5
5630 +  ac_status=$?
5631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632    (exit $ac_status); }; }; then
5633    ac_cv_lib_l_yywrap=yes
5634   else
# Line 5336 | Line 5637 | fi
5637  
5638   ac_cv_lib_l_yywrap=no
5639   fi
5640 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640 > rm -f conftest.err conftest.$ac_objext \
5641 >      conftest$ac_exeext conftest.$ac_ext
5642   LIBS=$ac_check_lib_save_LIBS
5643   fi
5644   echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
# Line 5398 | Line 5700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700   _ACEOF
5701   rm -f conftest.$ac_objext conftest$ac_exeext
5702   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 <  (eval $ac_link) 2>&5
5703 >  (eval $ac_link) 2>conftest.er1
5704    ac_status=$?
5705 +  grep -v '^ *+' conftest.er1 >conftest.err
5706 +  rm -f conftest.er1
5707 +  cat conftest.err >&5
5708    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709    (exit $ac_status); } &&
5710 <         { ac_try='test -s conftest$ac_exeext'
5710 >         { ac_try='test -z "$ac_f90_werror_flag"
5711 >                         || test ! -s conftest.err'
5712    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713    (eval $ac_try) 2>&5
5714    ac_status=$?
5715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 +  (exit $ac_status); }; } &&
5717 +         { ac_try='test -s conftest$ac_exeext'
5718 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 +  (eval $ac_try) 2>&5
5720 +  ac_status=$?
5721 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722    (exit $ac_status); }; }; then
5723    ac_cv_prog_lex_yytext_pointer=yes
5724   else
# Line 5414 | Line 5726 | fi
5726   sed 's/^/| /' conftest.$ac_ext >&5
5727  
5728   fi
5729 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729 > rm -f conftest.err conftest.$ac_objext \
5730 >      conftest$ac_exeext conftest.$ac_ext
5731   LIBS=$ac_save_LIBS
5732   rm -f "${LEX_OUTPUT_ROOT}.c"
5733  
# Line 5498 | Line 5811 | _ACEOF
5811        # `set' does not quote correctly, so add quotes (double-quote
5812        # substitution turns \\\\ into \\, and sed turns \\ into \).
5813        sed -n \
5814 <        "s/'/'\\\\''/g;
5815 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5814 >        "s/'/'\\\\''/g;
5815 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5816        ;;
5817      *)
5818        # `set' quotes correctly as required by POSIX, so do not add quotes.
5819        sed -n \
5820 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5820 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5821        ;;
5822      esac;
5823   } |
# Line 5530 | Line 5843 | echo $ECHO_N "checking for mpi-directory... $ECHO_C" >
5843   echo "$as_me:$LINENO: checking for mpi-directory" >&5
5844   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5845  
5846 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5847 < if test "${with_mpi_dir+set}" = set; then
5848 <  withval="$with_mpi_dir"
5846 > # Check whether --with-mpi or --without-mpi was given.
5847 > if test "${with_mpi+set}" = set; then
5848 >  withval="$with_mpi"
5849    MPI_DIR="$withval"
5850   else
5851    MPI_DIR="/usr/local"
# Line 5603 | Line 5916 | echo "${ECHO_T}found $MPI_LIB" >&6
5916      echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5917   echo "${ECHO_T}found $MPI_LIB" >&6
5918    ;;
5919 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5920 <      MPI_LIB="-lmpi"
5919 >  *)                             if test -f "$MPI_LIBDIR/libmpich.a" ; then
5920 >      MPI_LIB="-lmpich"
5921      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5922        MPI_LIB="-lmpi"
5923 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5924 <      MPI_LIB="-lmpich"
5923 >    elif test -f "$MPI_LIBDIR/libmpi.a" ; then
5924 >      MPI_LIB="-lmpi"
5925      else
5926        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5927   echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
# Line 5621 | Line 5934 | esac
5934  
5935  
5936  
5937 <
5938 <
5939 <
5940 <
5941 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5942 < do
5943 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5944 < set dummy $ac_prog; ac_word=$2
5945 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5947 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5937 > ac_ext=c
5938 > ac_cpp='$CPP $CPPFLAGS'
5939 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5943 > echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5944 > # On Suns, sometimes $CPP names a directory.
5945 > if test -n "$CPP" && test -d "$CPP"; then
5946 >  CPP=
5947 > fi
5948 > if test -z "$CPP"; then
5949 >  if test "${ac_cv_prog_CPP+set}" = set; then
5950    echo $ECHO_N "(cached) $ECHO_C" >&6
5951   else
5952 <  if test -n "$MPIF90"; then
5953 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5954 < else
5955 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 < for as_dir in $PATH
5952 >      # Double quotes because CPP needs to be expanded
5953 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5954 >    do
5955 >      ac_preproc_ok=false
5956 > for ac_c_preproc_warn_flag in '' yes
5957   do
5958 <  IFS=$as_save_IFS
5959 <  test -z "$as_dir" && as_dir=.
5960 <  for ac_exec_ext in '' $ac_executable_extensions; do
5961 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962 <    ac_cv_prog_MPIF90="$ac_prog"
5963 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 <    break 2
5965 <  fi
5651 < done
5652 < done
5653 <
5654 < fi
5655 < fi
5656 < MPIF90=$ac_cv_prog_MPIF90
5657 < if test -n "$MPIF90"; then
5658 <  echo "$as_me:$LINENO: result: $MPIF90" >&5
5659 < echo "${ECHO_T}$MPIF90" >&6
5660 < else
5661 <  echo "$as_me:$LINENO: result: no" >&5
5662 < echo "${ECHO_T}no" >&6
5663 < fi
5664 <
5665 <  test -n "$MPIF90" && break
5666 < done
5667 < test -n "$MPIF90" || MPIF90="$F90"
5668 <
5669 <        acx_mpi_save_F90="$F90"
5670 <        F90="$MPIF90"
5671 <
5672 <
5673 <
5674 < if test x = x"$MPILIBS"; then
5675 <        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5676 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5677 <                        cat >conftest.$ac_ext <<_ACEOF
5678 <
5679 < program main
5680 <
5681 <      call MPI_Init
5682 < end program main
5683 <
5958 >  # Use a header file that comes with gcc, so configuring glibc
5959 >  # with a fresh cross-compiler works.
5960 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 >  # <limits.h> exists even on freestanding compilers.
5962 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5963 >  # not just through cpp. "Syntax error" is here to catch this case.
5964 >  cat >conftest.$ac_ext <<_ACEOF
5965 > /* confdefs.h.  */
5966   _ACEOF
5967 < rm -f conftest.$ac_objext conftest$ac_exeext
5968 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5969 <  (eval $ac_link) 2>&5
5967 > cat confdefs.h >>conftest.$ac_ext
5968 > cat >>conftest.$ac_ext <<_ACEOF
5969 > /* end confdefs.h.  */
5970 > #ifdef __STDC__
5971 > # include <limits.h>
5972 > #else
5973 > # include <assert.h>
5974 > #endif
5975 >                     Syntax error
5976 > _ACEOF
5977 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979    ac_status=$?
5980 +  grep -v '^ *+' conftest.er1 >conftest.err
5981 +  rm -f conftest.er1
5982 +  cat conftest.err >&5
5983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 <  (exit $ac_status); } &&
5985 <         { ac_try='test -s conftest$ac_exeext'
5986 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 <  (eval $ac_try) 2>&5
5988 <  ac_status=$?
5989 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 <  (exit $ac_status); }; }; then
5697 <  MPILIBS=" "
5698 <                                echo "$as_me:$LINENO: result: yes" >&5
5699 < echo "${ECHO_T}yes" >&6
5984 >  (exit $ac_status); } >/dev/null; then
5985 >  if test -s conftest.err; then
5986 >    ac_cpp_err=$ac_c_preproc_warn_flag
5987 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988 >  else
5989 >    ac_cpp_err=
5990 >  fi
5991   else
5992 +  ac_cpp_err=yes
5993 + fi
5994 + if test -z "$ac_cpp_err"; then
5995 +  :
5996 + else
5997    echo "$as_me: failed program was:" >&5
5998   sed 's/^/| /' conftest.$ac_ext >&5
5999  
6000 < echo "$as_me:$LINENO: result: no" >&5
6001 < echo "${ECHO_T}no" >&6
6000 >  # Broken: fails on valid input.
6001 > continue
6002   fi
6003 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708 < fi
5709 < if test x = x"$MPILIBS"; then
5710 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5711 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5712 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5713 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5714 < else
5715 <  ac_check_lib_save_LIBS=$LIBS
5716 < LIBS="-lmpi  $LIBS"
5717 < cat >conftest.$ac_ext <<_ACEOF
6003 > rm -f conftest.err conftest.$ac_ext
6004  
6005 < program main
6006 <
6007 < call MPI_Init
6008 < end program main
5723 <
6005 >  # OK, works on sane cases.  Now check whether non-existent headers
6006 >  # can be detected and how.
6007 >  cat >conftest.$ac_ext <<_ACEOF
6008 > /* confdefs.h.  */
6009   _ACEOF
6010 < rm -f conftest.$ac_objext conftest$ac_exeext
6011 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 <  (eval $ac_link) 2>&5
6010 > cat confdefs.h >>conftest.$ac_ext
6011 > cat >>conftest.$ac_ext <<_ACEOF
6012 > /* end confdefs.h.  */
6013 > #include <ac_nonexistent.h>
6014 > _ACEOF
6015 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017    ac_status=$?
6018 +  grep -v '^ *+' conftest.er1 >conftest.err
6019 +  rm -f conftest.er1
6020 +  cat conftest.err >&5
6021    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 <  (exit $ac_status); } &&
6023 <         { ac_try='test -s conftest$ac_exeext'
6024 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 <  (eval $ac_try) 2>&5
6026 <  ac_status=$?
6027 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 <  (exit $ac_status); }; }; then
5737 <  ac_cv_lib_mpi_MPI_Init=yes
6022 >  (exit $ac_status); } >/dev/null; then
6023 >  if test -s conftest.err; then
6024 >    ac_cpp_err=$ac_c_preproc_warn_flag
6025 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026 >  else
6027 >    ac_cpp_err=
6028 >  fi
6029   else
6030 +  ac_cpp_err=yes
6031 + fi
6032 + if test -z "$ac_cpp_err"; then
6033 +  # Broken: success on invalid input.
6034 + continue
6035 + else
6036    echo "$as_me: failed program was:" >&5
6037   sed 's/^/| /' conftest.$ac_ext >&5
6038  
6039 < ac_cv_lib_mpi_MPI_Init=no
6039 >  # Passes both tests.
6040 > ac_preproc_ok=:
6041 > break
6042   fi
6043 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5745 < LIBS=$ac_check_lib_save_LIBS
5746 < fi
5747 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5748 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5749 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
5750 <  MPILIBS="-lmpi"
5751 < fi
6043 > rm -f conftest.err conftest.$ac_ext
6044  
6045 + done
6046 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6047 + rm -f conftest.err conftest.$ac_ext
6048 + if $ac_preproc_ok; then
6049 +  break
6050   fi
5754 if test x = x"$MPILIBS"; then
5755        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5756 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5757 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760  ac_check_lib_save_LIBS=$LIBS
5761 LIBS="-lmpich  $LIBS"
5762 cat >conftest.$ac_ext <<_ACEOF
6051  
6052 < program main
6052 >    done
6053 >    ac_cv_prog_CPP=$CPP
6054  
6055 < call MPI_Init
6056 < end program main
6057 <
6055 > fi
6056 >  CPP=$ac_cv_prog_CPP
6057 > else
6058 >  ac_cv_prog_CPP=$CPP
6059 > fi
6060 > echo "$as_me:$LINENO: result: $CPP" >&5
6061 > echo "${ECHO_T}$CPP" >&6
6062 > ac_preproc_ok=false
6063 > for ac_c_preproc_warn_flag in '' yes
6064 > do
6065 >  # Use a header file that comes with gcc, so configuring glibc
6066 >  # with a fresh cross-compiler works.
6067 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068 >  # <limits.h> exists even on freestanding compilers.
6069 >  # On the NeXT, cc -E runs the code through the compiler's parser,
6070 >  # not just through cpp. "Syntax error" is here to catch this case.
6071 >  cat >conftest.$ac_ext <<_ACEOF
6072 > /* confdefs.h.  */
6073   _ACEOF
6074 < rm -f conftest.$ac_objext conftest$ac_exeext
6075 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 <  (eval $ac_link) 2>&5
6074 > cat confdefs.h >>conftest.$ac_ext
6075 > cat >>conftest.$ac_ext <<_ACEOF
6076 > /* end confdefs.h.  */
6077 > #ifdef __STDC__
6078 > # include <limits.h>
6079 > #else
6080 > # include <assert.h>
6081 > #endif
6082 >                     Syntax error
6083 > _ACEOF
6084 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6086    ac_status=$?
6087 +  grep -v '^ *+' conftest.er1 >conftest.err
6088 +  rm -f conftest.er1
6089 +  cat conftest.err >&5
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
5782 <  ac_cv_lib_mpich_MPI_Init=yes
6091 >  (exit $ac_status); } >/dev/null; then
6092 >  if test -s conftest.err; then
6093 >    ac_cpp_err=$ac_c_preproc_warn_flag
6094 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095 >  else
6096 >    ac_cpp_err=
6097 >  fi
6098   else
6099 +  ac_cpp_err=yes
6100 + fi
6101 + if test -z "$ac_cpp_err"; then
6102 +  :
6103 + else
6104    echo "$as_me: failed program was:" >&5
6105   sed 's/^/| /' conftest.$ac_ext >&5
6106  
6107 < ac_cv_lib_mpich_MPI_Init=no
6107 >  # Broken: fails on valid input.
6108 > continue
6109   fi
6110 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5790 < LIBS=$ac_check_lib_save_LIBS
5791 < fi
5792 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5793 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5794 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
5795 <  MPILIBS="-lmpich"
5796 < fi
6110 > rm -f conftest.err conftest.$ac_ext
6111  
6112 < fi
6113 <
6114 <
6115 <
5802 < F90="$acx_mpi_save_F90"
5803 <
5804 <
5805 <
5806 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5807 < if test x = x"$MPILIBS"; then
5808 <
5809 <        :
5810 < else
5811 <
5812 < cat >>confdefs.h <<\_ACEOF
5813 < #define HAVE_MPI 1
6112 >  # OK, works on sane cases.  Now check whether non-existent headers
6113 >  # can be detected and how.
6114 >  cat >conftest.$ac_ext <<_ACEOF
6115 > /* confdefs.h.  */
6116   _ACEOF
6117 <
6118 <        :
6119 < fi
6120 <
5819 <
5820 <
5821 <
5822 <
5823 < # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
5824 < if test "${with_mpi_f90_mods+set}" = set; then
5825 <  withval="$with_mpi_f90_mods"
5826 <  mpi_f90_mods="$withval"
5827 < else
5828 <  mpi_f90_mods="/usr/local/include/f90choice"
5829 < fi;
5830 <
5831 <  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
5832 < echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
5833 <
5834 <
5835 <  ac_ext=f90
5836 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5837 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5839 <
5840 <  ac_save_F90FLAGS=$F90FLAGS
5841 <
5842 <  if test "$mpi_f90_mods"; then
5843 <  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
5844 < fi
5845 <
5846 <    cat >conftest.$ac_ext <<_ACEOF
5847 <
5848 <
5849 < program main
5850 <
5851 < use mpi
5852 < integer :: ierr
5853 < call MPI_Init(ierr)
5854 <
5855 <
5856 < end program main
5857 <
6117 > cat confdefs.h >>conftest.$ac_ext
6118 > cat >>conftest.$ac_ext <<_ACEOF
6119 > /* end confdefs.h.  */
6120 > #include <ac_nonexistent.h>
6121   _ACEOF
6122 < rm -f conftest.$ac_objext
6123 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 <  (eval $ac_compile) 2>&5
6122 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6123 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124    ac_status=$?
6125 +  grep -v '^ *+' conftest.er1 >conftest.err
6126 +  rm -f conftest.er1
6127 +  cat conftest.err >&5
6128    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 <  (exit $ac_status); } &&
6130 <         { ac_try='test -s conftest.$ac_objext'
6131 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 <  (eval $ac_try) 2>&5
6133 <  ac_status=$?
6134 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 <  (exit $ac_status); }; }; then
5871 <  HAVE_MPI_MOD=1
6129 >  (exit $ac_status); } >/dev/null; then
6130 >  if test -s conftest.err; then
6131 >    ac_cpp_err=$ac_c_preproc_warn_flag
6132 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6133 >  else
6134 >    ac_cpp_err=
6135 >  fi
6136   else
6137 +  ac_cpp_err=yes
6138 + fi
6139 + if test -z "$ac_cpp_err"; then
6140 +  # Broken: success on invalid input.
6141 + continue
6142 + else
6143    echo "$as_me: failed program was:" >&5
6144   sed 's/^/| /' conftest.$ac_ext >&5
6145  
6146 < HAVE_MPI_MOD=0
6146 >  # Passes both tests.
6147 > ac_preproc_ok=:
6148 > break
6149   fi
6150 < rm -f conftest.$ac_objext conftest.$ac_ext
6150 > rm -f conftest.err conftest.$ac_ext
6151  
6152 <  F90FLAGS=$ac_save_F90FLAGS
6153 <  ac_ext=f90
6154 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6155 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6157 <
6158 <
6159 <  if test "$HAVE_MPI_MOD" = 1; then
6160 <    echo "$as_me:$LINENO: result: yes" >&5
6161 < echo "${ECHO_T}yes" >&6
6162 <
6163 < cat >>confdefs.h <<\_ACEOF
5892 < #define MPI_MOD 1
5893 < _ACEOF
5894 <
5895 <    MPI_F90_MODS="${mpi_f90_mods}"
5896 <
5897 <    # The library name:
5898 <    if test -z "$MPI_LIB" ; then
5899 <       MPI_LIBNAME=-lmpich
5900 <    else
5901 <       MPI_LIBNAME="$MPI_LIB"
5902 <    fi
5903 <    if test -z "$MPIMODLIBNAME" ; then
5904 <       MPIMODLIBNAME="${MPI_LIBNAME}f90"
5905 <    fi
5906 <
5907 <  else
5908 <    echo "$as_me:$LINENO: result: no" >&5
5909 < echo "${ECHO_T}no" >&6
5910 <    { echo "$as_me:$LINENO: WARNING: Couldn't locate MPI F90 Modules" >&5
5911 < echo "$as_me: WARNING: Couldn't locate MPI F90 Modules" >&2;}
5912 <  fi
6152 > done
6153 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6154 > rm -f conftest.err conftest.$ac_ext
6155 > if $ac_preproc_ok; then
6156 >  :
6157 > else
6158 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6159 > See \`config.log' for more details." >&5
6160 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6161 > See \`config.log' for more details." >&2;}
6162 >   { (exit 1); exit 1; }; }
6163 > fi
6164  
6165 + ac_ext=c
6166 + ac_cpp='$CPP $CPPFLAGS'
6167 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170  
6171  
6172 < if test "$HAVE_MPI_MOD" = 1; then
5917 <
5918 < cat >>confdefs.h <<\_ACEOF
5919 < #define MPI_MOD 1
5920 < _ACEOF
5921 <
5922 < else
5923 <        ac_ext=f90
5924 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5925 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5927 <
5928 <        echo "$as_me:$LINENO: checking for egrep" >&5
6172 > echo "$as_me:$LINENO: checking for egrep" >&5
6173   echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6174   if test "${ac_cv_prog_egrep+set}" = set; then
6175    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5946 | Line 6190 | else
6190    echo $ECHO_N "(cached) $ECHO_C" >&6
6191   else
6192    cat >conftest.$ac_ext <<_ACEOF
6193 <
6194 < program main
6193 > /* confdefs.h.  */
6194 > _ACEOF
6195 > cat confdefs.h >>conftest.$ac_ext
6196 > cat >>conftest.$ac_ext <<_ACEOF
6197 > /* end confdefs.h.  */
6198   #include <stdlib.h>
6199   #include <stdarg.h>
6200   #include <string.h>
6201   #include <float.h>
6202  
6203 + int
6204 + main ()
6205 + {
6206  
6207 < end program main
6208 <
6207 >  ;
6208 >  return 0;
6209 > }
6210   _ACEOF
6211   rm -f conftest.$ac_objext
6212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 <  (eval $ac_compile) 2>&5
6213 >  (eval $ac_compile) 2>conftest.er1
6214    ac_status=$?
6215 +  grep -v '^ *+' conftest.er1 >conftest.err
6216 +  rm -f conftest.er1
6217 +  cat conftest.err >&5
6218    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219    (exit $ac_status); } &&
6220 <         { ac_try='test -s conftest.$ac_objext'
6220 >         { ac_try='test -z "$ac_c_werror_flag"
6221 >                         || test ! -s conftest.err'
6222    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223    (eval $ac_try) 2>&5
6224    ac_status=$?
6225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 +  (exit $ac_status); }; } &&
6227 +         { ac_try='test -s conftest.$ac_objext'
6228 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 +  (eval $ac_try) 2>&5
6230 +  ac_status=$?
6231 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232    (exit $ac_status); }; }; then
6233    ac_cv_header_stdc=yes
6234   else
# Line 5976 | Line 6237 | fi
6237  
6238   ac_cv_header_stdc=no
6239   fi
6240 < rm -f conftest.$ac_objext conftest.$ac_ext
6240 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241  
6242   if test $ac_cv_header_stdc = yes; then
6243    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6244    cat >conftest.$ac_ext <<_ACEOF
6245 + /* confdefs.h.  */
6246 + _ACEOF
6247 + cat confdefs.h >>conftest.$ac_ext
6248 + cat >>conftest.$ac_ext <<_ACEOF
6249 + /* end confdefs.h.  */
6250   #include <string.h>
6251  
6252   _ACEOF
# Line 5997 | Line 6263 | if test $ac_cv_header_stdc = yes; then
6263   if test $ac_cv_header_stdc = yes; then
6264    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6265    cat >conftest.$ac_ext <<_ACEOF
6266 + /* confdefs.h.  */
6267 + _ACEOF
6268 + cat confdefs.h >>conftest.$ac_ext
6269 + cat >>conftest.$ac_ext <<_ACEOF
6270 + /* end confdefs.h.  */
6271   #include <stdlib.h>
6272  
6273   _ACEOF
# Line 6016 | Line 6287 | else
6287    :
6288   else
6289    cat >conftest.$ac_ext <<_ACEOF
6290 + /* confdefs.h.  */
6291 + _ACEOF
6292 + cat confdefs.h >>conftest.$ac_ext
6293 + cat >>conftest.$ac_ext <<_ACEOF
6294 + /* end confdefs.h.  */
6295   #include <ctype.h>
6296   #if ((' ' & 0x0FF) == 0x020)
6297   # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6298   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6299   #else
6300   # define ISLOWER(c) \
6301 <                   (('a' <= (c) && (c) <= 'i') \
6302 <                     || ('j' <= (c) && (c) <= 'r') \
6303 <                     || ('s' <= (c) && (c) <= 'z'))
6301 >                   (('a' <= (c) && (c) <= 'i') \
6302 >                     || ('j' <= (c) && (c) <= 'r') \
6303 >                     || ('s' <= (c) && (c) <= 'z'))
6304   # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6305   #endif
6306  
# Line 6035 | Line 6311 | main ()
6311    int i;
6312    for (i = 0; i < 256; i++)
6313      if (XOR (islower (i), ISLOWER (i))
6314 <        || toupper (i) != TOUPPER (i))
6314 >        || toupper (i) != TOUPPER (i))
6315        exit(2);
6316    exit (0);
6317   }
# Line 6060 | Line 6336 | fi
6336   ( exit $ac_status )
6337   ac_cv_header_stdc=no
6338   fi
6339 < rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6339 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6340   fi
6341   fi
6342   fi
# Line 6085 | Line 6361 | for ac_header in sys/types.h sys/stat.h stdlib.h strin
6361  
6362  
6363   for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6364 <                  inttypes.h stdint.h unistd.h
6364 >                  inttypes.h stdint.h unistd.h
6365   do
6366   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367   echo "$as_me:$LINENO: checking for $ac_header" >&5
# Line 6094 | Line 6370 | else
6370    echo $ECHO_N "(cached) $ECHO_C" >&6
6371   else
6372    cat >conftest.$ac_ext <<_ACEOF
6373 + /* confdefs.h.  */
6374 + _ACEOF
6375 + cat confdefs.h >>conftest.$ac_ext
6376 + cat >>conftest.$ac_ext <<_ACEOF
6377 + /* end confdefs.h.  */
6378   $ac_includes_default
6379  
6380   #include <$ac_header>
6381   _ACEOF
6382   rm -f conftest.$ac_objext
6383   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 <  (eval $ac_compile) 2>&5
6384 >  (eval $ac_compile) 2>conftest.er1
6385    ac_status=$?
6386 +  grep -v '^ *+' conftest.er1 >conftest.err
6387 +  rm -f conftest.er1
6388 +  cat conftest.err >&5
6389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390    (exit $ac_status); } &&
6391 <         { ac_try='test -s conftest.$ac_objext'
6391 >         { ac_try='test -z "$ac_c_werror_flag"
6392 >                         || test ! -s conftest.err'
6393    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394    (eval $ac_try) 2>&5
6395    ac_status=$?
6396    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 <  (exit $ac_status); }; }; then
6398 <  eval "$as_ac_Header=yes"
6114 < else
6115 <  echo "$as_me: failed program was:" >&5
6116 < sed 's/^/| /' conftest.$ac_ext >&5
6117 <
6118 < eval "$as_ac_Header=no"
6119 < fi
6120 < rm -f conftest.$ac_objext conftest.$ac_ext
6121 < fi
6122 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6123 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6124 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
6125 <  cat >>confdefs.h <<_ACEOF
6126 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 < _ACEOF
6128 <
6129 < fi
6130 <
6131 < done
6132 <
6133 <
6134 <
6135 < for ac_header in mpif.h
6136 < do
6137 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6138 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6139 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
6140 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6141 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6142 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6143 < fi
6144 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6145 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6146 < else
6147 <  # Is the header compilable?
6148 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
6149 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6150 < cat >conftest.$ac_ext <<_ACEOF
6151 < $ac_includes_default
6152 < #include <$ac_header>
6153 < _ACEOF
6154 < rm -f conftest.$ac_objext
6155 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 <  (eval $ac_compile) 2>&5
6157 <  ac_status=$?
6158 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 <  (exit $ac_status); } &&
6160 <         { ac_try='test -s conftest.$ac_objext'
6397 >  (exit $ac_status); }; } &&
6398 >         { ac_try='test -s conftest.$ac_objext'
6399    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400    (eval $ac_try) 2>&5
6401    ac_status=$?
6402    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403    (exit $ac_status); }; }; then
6404 <  ac_header_compiler=yes
6404 >  eval "$as_ac_Header=yes"
6405   else
6406    echo "$as_me: failed program was:" >&5
6407   sed 's/^/| /' conftest.$ac_ext >&5
6408  
6409 < ac_header_compiler=no
6409 > eval "$as_ac_Header=no"
6410   fi
6411 < rm -f conftest.$ac_objext conftest.$ac_ext
6174 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6175 < echo "${ECHO_T}$ac_header_compiler" >&6
6176 <
6177 < # Is the header present?
6178 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
6179 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6180 < cat >conftest.$ac_ext <<_ACEOF
6181 < #include <$ac_header>
6182 < _ACEOF
6183 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6184 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6185 <  ac_status=$?
6186 <  grep -v '^ *+' conftest.er1 >conftest.err
6187 <  rm -f conftest.er1
6188 <  cat conftest.err >&5
6189 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 <  (exit $ac_status); } >/dev/null; then
6191 <  if test -s conftest.err; then
6192 <    ac_cpp_err=$ac_f90_preproc_warn_flag
6193 <  else
6194 <    ac_cpp_err=
6195 <  fi
6196 < else
6197 <  ac_cpp_err=yes
6411 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412   fi
6199 if test -z "$ac_cpp_err"; then
6200  ac_header_preproc=yes
6201 else
6202  echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205  ac_header_preproc=no
6206 fi
6207 rm -f conftest.err conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 echo "${ECHO_T}$ac_header_preproc" >&6
6210
6211 # So?  What about this header?
6212 case $ac_header_compiler:$ac_header_preproc in
6213  yes:no )
6214    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6218    (
6219      cat <<\_ASBOX
6220 ## ------------------------------------ ##
6221 ## Report this to bug-autoconf@gnu.org. ##
6222 ## ------------------------------------ ##
6223 _ASBOX
6224    ) |
6225      sed "s/^/$as_me: WARNING:     /" >&2
6226    ;;
6227  no:yes )
6228    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6230    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6232    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6234    (
6235      cat <<\_ASBOX
6236 ## ------------------------------------ ##
6237 ## Report this to bug-autoconf@gnu.org. ##
6238 ## ------------------------------------ ##
6239 _ASBOX
6240    ) |
6241      sed "s/^/$as_me: WARNING:     /" >&2
6242    ;;
6243 esac
6244 echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247  echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249  eval "$as_ac_Header=$ac_header_preproc"
6250 fi
6413   echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414   echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253
6254 fi
6415   if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416    cat >>confdefs.h <<_ACEOF
6417   #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
# Line 6261 | Line 6421 | done
6421  
6422   done
6423  
6264        ac_ext=c
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424  
6425  
6271 cat >>confdefs.h <<\_ACEOF
6272 #define MPI_H 1
6273 _ACEOF
6426  
6275 fi
6427  
6277 ac_ext=c
6278 ac_cpp='$CPP $CPPFLAGS'
6279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6283 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6284 # On Suns, sometimes $CPP names a directory.
6285 if test -n "$CPP" && test -d "$CPP"; then
6286  CPP=
6287 fi
6288 if test -z "$CPP"; then
6289  if test "${ac_cv_prog_CPP+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292      # Double quotes because CPP needs to be expanded
6293    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6294    do
6295      ac_preproc_ok=false
6296 for ac_c_preproc_warn_flag in '' yes
6297 do
6298  # Use a header file that comes with gcc, so configuring glibc
6299  # with a fresh cross-compiler works.
6300  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6301  # <limits.h> exists even on freestanding compilers.
6302  # On the NeXT, cc -E runs the code through the compiler's parser,
6303  # not just through cpp. "Syntax error" is here to catch this case.
6304  cat >conftest.$ac_ext <<_ACEOF
6305 #line $LINENO "configure"
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 #ifdef __STDC__
6312 # include <limits.h>
6313 #else
6314 # include <assert.h>
6315 #endif
6316                     Syntax error
6317 _ACEOF
6318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320  ac_status=$?
6321  grep -v '^ *+' conftest.er1 >conftest.err
6322  rm -f conftest.er1
6323  cat conftest.err >&5
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); } >/dev/null; then
6326  if test -s conftest.err; then
6327    ac_cpp_err=$ac_c_preproc_warn_flag
6328  else
6329    ac_cpp_err=
6330  fi
6331 else
6332  ac_cpp_err=yes
6333 fi
6334 if test -z "$ac_cpp_err"; then
6335  :
6336 else
6337  echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340  # Broken: fails on valid input.
6341 continue
6342 fi
6343 rm -f conftest.err conftest.$ac_ext
6344
6345  # OK, works on sane cases.  Now check whether non-existent headers
6346  # can be detected and how.
6347  cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6349 /* confdefs.h.  */
6350 _ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h.  */
6354 #include <ac_nonexistent.h>
6355 _ACEOF
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358  ac_status=$?
6359  grep -v '^ *+' conftest.er1 >conftest.err
6360  rm -f conftest.er1
6361  cat conftest.err >&5
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); } >/dev/null; then
6364  if test -s conftest.err; then
6365    ac_cpp_err=$ac_c_preproc_warn_flag
6366  else
6367    ac_cpp_err=
6368  fi
6369 else
6370  ac_cpp_err=yes
6371 fi
6372 if test -z "$ac_cpp_err"; then
6373  # Broken: success on invalid input.
6374 continue
6375 else
6376  echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379  # Passes both tests.
6380 ac_preproc_ok=:
6381 break
6382 fi
6383 rm -f conftest.err conftest.$ac_ext
6384
6385 done
6386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6387 rm -f conftest.err conftest.$ac_ext
6388 if $ac_preproc_ok; then
6389  break
6390 fi
6391
6392    done
6393    ac_cv_prog_CPP=$CPP
6394
6395 fi
6396  CPP=$ac_cv_prog_CPP
6397 else
6398  ac_cv_prog_CPP=$CPP
6399 fi
6400 echo "$as_me:$LINENO: result: $CPP" >&5
6401 echo "${ECHO_T}$CPP" >&6
6402 ac_preproc_ok=false
6403 for ac_c_preproc_warn_flag in '' yes
6404 do
6405  # Use a header file that comes with gcc, so configuring glibc
6406  # with a fresh cross-compiler works.
6407  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6408  # <limits.h> exists even on freestanding compilers.
6409  # On the NeXT, cc -E runs the code through the compiler's parser,
6410  # not just through cpp. "Syntax error" is here to catch this case.
6411  cat >conftest.$ac_ext <<_ACEOF
6412 #line $LINENO "configure"
6413 /* confdefs.h.  */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h.  */
6418 #ifdef __STDC__
6419 # include <limits.h>
6420 #else
6421 # include <assert.h>
6422 #endif
6423                     Syntax error
6424 _ACEOF
6425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6427  ac_status=$?
6428  grep -v '^ *+' conftest.er1 >conftest.err
6429  rm -f conftest.er1
6430  cat conftest.err >&5
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); } >/dev/null; then
6433  if test -s conftest.err; then
6434    ac_cpp_err=$ac_c_preproc_warn_flag
6435  else
6436    ac_cpp_err=
6437  fi
6438 else
6439  ac_cpp_err=yes
6440 fi
6441 if test -z "$ac_cpp_err"; then
6442  :
6443 else
6444  echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447  # Broken: fails on valid input.
6448 continue
6449 fi
6450 rm -f conftest.err conftest.$ac_ext
6451
6452  # OK, works on sane cases.  Now check whether non-existent headers
6453  # can be detected and how.
6454  cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 /* confdefs.h.  */
6457 _ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h.  */
6461 #include <ac_nonexistent.h>
6462 _ACEOF
6463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465  ac_status=$?
6466  grep -v '^ *+' conftest.er1 >conftest.err
6467  rm -f conftest.er1
6468  cat conftest.err >&5
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } >/dev/null; then
6471  if test -s conftest.err; then
6472    ac_cpp_err=$ac_c_preproc_warn_flag
6473  else
6474    ac_cpp_err=
6475  fi
6476 else
6477  ac_cpp_err=yes
6478 fi
6479 if test -z "$ac_cpp_err"; then
6480  # Broken: success on invalid input.
6481 continue
6482 else
6483  echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486  # Passes both tests.
6487 ac_preproc_ok=:
6488 break
6489 fi
6490 rm -f conftest.err conftest.$ac_ext
6491
6492 done
6493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6494 rm -f conftest.err conftest.$ac_ext
6495 if $ac_preproc_ok; then
6496  :
6497 else
6498  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6499 See \`config.log' for more details." >&5
6500 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6501 See \`config.log' for more details." >&2;}
6502   { (exit 1); exit 1; }; }
6503 fi
6504
6505 ac_ext=c
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510
6511
6512
6513
6514
6428   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6429   if test "${with_sprng_prefix+set}" = set; then
6430    withval="$with_sprng_prefix"
# Line 6599 | Line 6512 | cat >conftest.$ac_ext <<_ACEOF
6512   echo "$as_me:$LINENO: checking sprng.h usability" >&5
6513   echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6514   cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6515   /* confdefs.h.  */
6516   _ACEOF
6517   cat confdefs.h >>conftest.$ac_ext
# Line 6610 | Line 6522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522   _ACEOF
6523   rm -f conftest.$ac_objext
6524   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 <  (eval $ac_compile) 2>&5
6525 >  (eval $ac_compile) 2>conftest.er1
6526    ac_status=$?
6527 +  grep -v '^ *+' conftest.er1 >conftest.err
6528 +  rm -f conftest.er1
6529 +  cat conftest.err >&5
6530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531    (exit $ac_status); } &&
6532 <         { ac_try='test -s conftest.$ac_objext'
6532 >         { ac_try='test -z "$ac_c_werror_flag"
6533 >                         || test ! -s conftest.err'
6534    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535    (eval $ac_try) 2>&5
6536    ac_status=$?
6537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 +  (exit $ac_status); }; } &&
6539 +         { ac_try='test -s conftest.$ac_objext'
6540 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 +  (eval $ac_try) 2>&5
6542 +  ac_status=$?
6543 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544    (exit $ac_status); }; }; then
6545    ac_header_compiler=yes
6546   else
# Line 6627 | Line 6549 | fi
6549  
6550   ac_header_compiler=no
6551   fi
6552 < rm -f conftest.$ac_objext conftest.$ac_ext
6552 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6554   echo "${ECHO_T}$ac_header_compiler" >&6
6555  
# Line 6635 | Line 6557 | cat >conftest.$ac_ext <<_ACEOF
6557   echo "$as_me:$LINENO: checking sprng.h presence" >&5
6558   echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6559   cat >conftest.$ac_ext <<_ACEOF
6638 #line $LINENO "configure"
6560   /* confdefs.h.  */
6561   _ACEOF
6562   cat confdefs.h >>conftest.$ac_ext
# Line 6653 | Line 6574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6574    (exit $ac_status); } >/dev/null; then
6575    if test -s conftest.err; then
6576      ac_cpp_err=$ac_c_preproc_warn_flag
6577 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6578    else
6579      ac_cpp_err=
6580    fi
# Line 6672 | Line 6594 | echo "${ECHO_T}$ac_header_preproc" >&6
6594   echo "${ECHO_T}$ac_header_preproc" >&6
6595  
6596   # So?  What about this header?
6597 < case $ac_header_compiler:$ac_header_preproc in
6598 <  yes:no )
6597 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6598 >  yes:no: )
6599      { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6600   echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6601 <    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6602 < echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6603 <    (
6682 <      cat <<\_ASBOX
6683 < ## ------------------------------------ ##
6684 < ## Report this to bug-autoconf@gnu.org. ##
6685 < ## ------------------------------------ ##
6686 < _ASBOX
6687 <    ) |
6688 <      sed "s/^/$as_me: WARNING:     /" >&2
6601 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6602 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6603 >    ac_header_preproc=yes
6604      ;;
6605 <  no:yes )
6605 >  no:yes:* )
6606      { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6607   echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6608 <    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6609 < echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6608 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6609 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6610 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6611 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6612 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6613 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6614      { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6615   echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6616 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6617 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6618      (
6619        cat <<\_ASBOX
6620 < ## ------------------------------------ ##
6621 < ## Report this to bug-autoconf@gnu.org. ##
6622 < ## ------------------------------------ ##
6620 > ## ------------------------------ ##
6621 > ## Report this to gezelter@nd.edu ##
6622 > ## ------------------------------ ##
6623   _ASBOX
6624      ) |
6625        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6725 | Line 6646 | cat >conftest.$ac_ext <<_ACEOF
6646    ac_check_lib_save_LIBS=$LIBS
6647   LIBS="-lsprng  $LIBS"
6648   cat >conftest.$ac_ext <<_ACEOF
6728 #line $LINENO "configure"
6649   /* confdefs.h.  */
6650   _ACEOF
6651   cat confdefs.h >>conftest.$ac_ext
# Line 6749 | Line 6669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669   _ACEOF
6670   rm -f conftest.$ac_objext conftest$ac_exeext
6671   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 <  (eval $ac_link) 2>&5
6672 >  (eval $ac_link) 2>conftest.er1
6673    ac_status=$?
6674 +  grep -v '^ *+' conftest.er1 >conftest.err
6675 +  rm -f conftest.er1
6676 +  cat conftest.err >&5
6677    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678    (exit $ac_status); } &&
6679 <         { ac_try='test -s conftest$ac_exeext'
6679 >         { ac_try='test -z "$ac_c_werror_flag"
6680 >                         || test ! -s conftest.err'
6681    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682    (eval $ac_try) 2>&5
6683    ac_status=$?
6684    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 +  (exit $ac_status); }; } &&
6686 +         { ac_try='test -s conftest$ac_exeext'
6687 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 +  (eval $ac_try) 2>&5
6689 +  ac_status=$?
6690 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691    (exit $ac_status); }; }; then
6692    ac_cv_lib_sprng_init_rng=yes
6693   else
# Line 6766 | Line 6696 | fi
6696  
6697   ac_cv_lib_sprng_init_rng=no
6698   fi
6699 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 > rm -f conftest.err conftest.$ac_objext \
6700 >      conftest$ac_exeext conftest.$ac_ext
6701   LIBS=$ac_check_lib_save_LIBS
6702   fi
6703   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
# Line 6782 | Line 6713 | fi
6713  
6714    CPPFLAGS=$ac_save_CPPFLAGS
6715    LDFLAGS=$ac_save_LDFLAGS
6716 <  ac_ext=c
6717 < ac_cpp='$CPP $CPPFLAGS'
6718 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716 >  ac_ext=f90
6717 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6718 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6719 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6720  
6721  
6722    if test x_$HAVE_SPRNG != x_yes; then
# Line 6847 | Line 6777 | cat >conftest.$ac_ext <<_ACEOF
6777   echo "$as_me:$LINENO: checking mkl.h usability" >&5
6778   echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6779   cat >conftest.$ac_ext <<_ACEOF
6850 #line $LINENO "configure"
6780   /* confdefs.h.  */
6781   _ACEOF
6782   cat confdefs.h >>conftest.$ac_ext
# Line 6858 | Line 6787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787   _ACEOF
6788   rm -f conftest.$ac_objext
6789   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 <  (eval $ac_compile) 2>&5
6790 >  (eval $ac_compile) 2>conftest.er1
6791    ac_status=$?
6792 +  grep -v '^ *+' conftest.er1 >conftest.err
6793 +  rm -f conftest.er1
6794 +  cat conftest.err >&5
6795    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796    (exit $ac_status); } &&
6797 <         { ac_try='test -s conftest.$ac_objext'
6797 >         { ac_try='test -z "$ac_c_werror_flag"
6798 >                         || test ! -s conftest.err'
6799 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 >  (eval $ac_try) 2>&5
6801 >  ac_status=$?
6802 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 >  (exit $ac_status); }; } &&
6804 >         { ac_try='test -s conftest.$ac_objext'
6805    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806    (eval $ac_try) 2>&5
6807    ac_status=$?
# Line 6875 | Line 6814 | fi
6814  
6815   ac_header_compiler=no
6816   fi
6817 < rm -f conftest.$ac_objext conftest.$ac_ext
6817 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819   echo "${ECHO_T}$ac_header_compiler" >&6
6820  
# Line 6883 | Line 6822 | cat >conftest.$ac_ext <<_ACEOF
6822   echo "$as_me:$LINENO: checking mkl.h presence" >&5
6823   echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6824   cat >conftest.$ac_ext <<_ACEOF
6886 #line $LINENO "configure"
6825   /* confdefs.h.  */
6826   _ACEOF
6827   cat confdefs.h >>conftest.$ac_ext
# Line 6901 | Line 6839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6839    (exit $ac_status); } >/dev/null; then
6840    if test -s conftest.err; then
6841      ac_cpp_err=$ac_c_preproc_warn_flag
6842 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843    else
6844      ac_cpp_err=
6845    fi
# Line 6920 | Line 6859 | echo "${ECHO_T}$ac_header_preproc" >&6
6859   echo "${ECHO_T}$ac_header_preproc" >&6
6860  
6861   # So?  What about this header?
6862 < case $ac_header_compiler:$ac_header_preproc in
6863 <  yes:no )
6862 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 >  yes:no: )
6864      { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6865   echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6867 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6868 <    (
6930 <      cat <<\_ASBOX
6931 < ## ------------------------------------ ##
6932 < ## Report this to bug-autoconf@gnu.org. ##
6933 < ## ------------------------------------ ##
6934 < _ASBOX
6935 <    ) |
6936 <      sed "s/^/$as_me: WARNING:     /" >&2
6866 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
6867 > echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
6868 >    ac_header_preproc=yes
6869      ;;
6870 <  no:yes )
6870 >  no:yes:* )
6871      { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6872   echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6873 <    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6874 < echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6873 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
6874 > echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
6875 >    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
6876 > echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
6877 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
6878 > echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6879      { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6880   echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6881 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
6882 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
6883      (
6884        cat <<\_ASBOX
6885 < ## ------------------------------------ ##
6886 < ## Report this to bug-autoconf@gnu.org. ##
6887 < ## ------------------------------------ ##
6885 > ## ------------------------------ ##
6886 > ## Report this to gezelter@nd.edu ##
6887 > ## ------------------------------ ##
6888   _ASBOX
6889      ) |
6890        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6973 | Line 6911 | cat >conftest.$ac_ext <<_ACEOF
6911    ac_check_lib_save_LIBS=$LIBS
6912   LIBS="-lmkl  $LIBS"
6913   cat >conftest.$ac_ext <<_ACEOF
6976 #line $LINENO "configure"
6914   /* confdefs.h.  */
6915   _ACEOF
6916   cat confdefs.h >>conftest.$ac_ext
# Line 6997 | Line 6934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934   _ACEOF
6935   rm -f conftest.$ac_objext conftest$ac_exeext
6936   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 <  (eval $ac_link) 2>&5
6937 >  (eval $ac_link) 2>conftest.er1
6938    ac_status=$?
6939 +  grep -v '^ *+' conftest.er1 >conftest.err
6940 +  rm -f conftest.er1
6941 +  cat conftest.err >&5
6942    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943    (exit $ac_status); } &&
6944 <         { ac_try='test -s conftest$ac_exeext'
6944 >         { ac_try='test -z "$ac_c_werror_flag"
6945 >                         || test ! -s conftest.err'
6946    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947    (eval $ac_try) 2>&5
6948    ac_status=$?
6949    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 +  (exit $ac_status); }; } &&
6951 +         { ac_try='test -s conftest$ac_exeext'
6952 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 +  (eval $ac_try) 2>&5
6954 +  ac_status=$?
6955 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956    (exit $ac_status); }; }; then
6957    ac_cv_lib_mkl_vslNewStream=yes
6958   else
# Line 7014 | Line 6961 | fi
6961  
6962   ac_cv_lib_mkl_vslNewStream=no
6963   fi
6964 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6964 > rm -f conftest.err conftest.$ac_objext \
6965 >      conftest$ac_exeext conftest.$ac_ext
6966   LIBS=$ac_check_lib_save_LIBS
6967   fi
6968   echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
# Line 7033 | Line 6981 | fi
6981  
6982    CPPFLAGS=$ac_save_CPPFLAGS
6983    LDFLAGS=$ac_save_LDFLAGS
6984 <  ac_ext=c
6985 < ac_cpp='$CPP $CPPFLAGS'
6986 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984 >  ac_ext=f90
6985 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6986 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6988  
6989  
6990    if test x_$HAVE_MKL != x_yes; then
# Line 7084 | Line 7031 | MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7031  
7032   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7033  
7034 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7034 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party"
7035  
7036   CFLAGS=${CFLAGS-""}
7037   CXXFLAGS=${CXXFLAGS-""}
# Line 7121 | Line 7068 | esac
7068  
7069            ac_config_headers="$ac_config_headers libmdtools/config.h"
7070  
7071 <                                                                                                                                                      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"
7071 >                                                                                                                                                                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"
7072  
7073  
7074   cat >confcache <<\_ACEOF
# Line 7152 | Line 7099 | _ACEOF
7099        # `set' does not quote correctly, so add quotes (double-quote
7100        # substitution turns \\\\ into \\, and sed turns \\ into \).
7101        sed -n \
7102 <        "s/'/'\\\\''/g;
7103 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7102 >        "s/'/'\\\\''/g;
7103 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7104        ;;
7105      *)
7106        # `set' quotes correctly as required by POSIX, so do not add quotes.
7107        sed -n \
7108 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7108 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7109        ;;
7110      esac;
7111   } |
# Line 7188 | Line 7135 | if test "x$srcdir" = x.; then
7135   # trailing colons and then remove the whole line if VPATH becomes empty
7136   # (actually we leave an empty line to preserve line numbers).
7137   if test "x$srcdir" = x.; then
7138 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7138 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7139   s/:*\$(srcdir):*/:/;
7140   s/:*\${srcdir}:*/:/;
7141   s/:*@srcdir@:*/:/;
7142 < s/^\([^=]*=[    ]*\):*/\1/;
7142 > s/^\([^=]*=[     ]*\):*/\1/;
7143   s/:*$//;
7144 < s/^[^=]*=[      ]*$//;
7144 > s/^[^=]*=[       ]*$//;
7145   }'
7146   fi
7147  
# Line 7205 | Line 7152 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && conti
7152   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7153    # 1. Remove the extension, and $U if already installed.
7154    ac_i=`echo "$ac_i" |
7155 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7155 >         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7156    # 2. Add them.
7157    ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7158    ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
# Line 7249 | Line 7196 | fi
7196   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7197    set -o posix
7198   fi
7199 + DUALCASE=1; export DUALCASE # for MKS sh
7200  
7201   # Support unset when possible.
7202 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7202 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7203    as_unset=unset
7204   else
7205    as_unset=false
# Line 7270 | Line 7218 | do
7218    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7219    LC_TELEPHONE LC_TIME
7220   do
7221 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7221 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7222      eval $as_var=C; export $as_var
7223    else
7224      $as_unset $as_var
# Line 7449 | Line 7397 | else
7397   if mkdir -p . 2>/dev/null; then
7398    as_mkdir_p=:
7399   else
7400 +  test -d ./-p && rmdir ./-p
7401    as_mkdir_p=false
7402   fi
7403  
7404   as_executable_p="test -f"
7405  
7406   # Sed expression to map a string onto a valid CPP name.
7407 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7407 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7408  
7409   # Sed expression to map a string onto a valid variable name.
7410 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7410 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7411  
7412  
7413   # IFS
# Line 7485 | Line 7434 | This file was extended by OOPSE $as_me 1.0, which was
7434   cat >&5 <<_CSEOF
7435  
7436   This file was extended by OOPSE $as_me 1.0, which was
7437 < generated by GNU Autoconf 2.57.  Invocation command line was
7437 > generated by GNU Autoconf 2.59.  Invocation command line was
7438  
7439    CONFIG_FILES    = $CONFIG_FILES
7440    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 7529 | Line 7478 | Usage: $0 [OPTIONS] [FILE]...
7478    -d, --debug      don't remove temporary files
7479        --recheck    update $as_me by reconfiguring in the same conditions
7480    --file=FILE[:TEMPLATE]
7481 <                   instantiate the configuration file FILE
7481 >                   instantiate the configuration file FILE
7482    --header=FILE[:TEMPLATE]
7483 <                   instantiate the configuration header FILE
7483 >                   instantiate the configuration header FILE
7484  
7485   Configuration files:
7486   $config_files
# Line 7545 | Line 7494 | OOPSE config.status 1.0
7494   cat >>$CONFIG_STATUS <<_ACEOF
7495   ac_cs_version="\\
7496   OOPSE config.status 1.0
7497 < configured by $0, generated by GNU Autoconf 2.57,
7497 > configured by $0, generated by GNU Autoconf 2.59,
7498    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7499  
7500 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7552 < Free Software Foundation, Inc.
7500 > Copyright (C) 2003 Free Software Foundation, Inc.
7501   This config.status script is free software; the Free Software Foundation
7502   gives unlimited permission to copy, distribute and modify it."
7503   srcdir=$srcdir
# Line 7657 | Line 7605 | do
7605    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7606    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7607    "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7608 +  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7609    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7610    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7611    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
# Line 7794 | Line 7743 | s,@AR@,$AR,;t t
7743   s,@LEXLIB@,$LEXLIB,;t t
7744   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7745   s,@AR@,$AR,;t t
7746 < s,@mpi_dir@,$mpi_dir,;t t
7746 > s,@mpi@,$mpi,;t t
7747   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7748   s,@MPI_INC@,$MPI_INC,;t t
7749   s,@MPI_LIB@,$MPI_LIB,;t t
7750 < s,@MPIF77@,$MPIF77,;t t
7802 < s,@MPIF90@,$MPIF90,;t t
7803 < s,@MPILIBS@,$MPILIBS,;t t
7804 < s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7805 < s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7750 > s,@CPP@,$CPP,;t t
7751   s,@EGREP@,$EGREP,;t t
7807 s,@CPP@,$CPP,;t t
7752   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7753   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7754   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 7850 | Line 7794 | _ACEOF
7794        (echo ':t
7795    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7796        if test -z "$ac_sed_cmds"; then
7797 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7797 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7798        else
7799 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7799 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7800        fi
7801        ac_sed_frag=`expr $ac_sed_frag + 1`
7802        ac_beg=$ac_end
# Line 7870 | Line 7814 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
7814    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7815    case $ac_file in
7816    - | *:- | *:-:* ) # input from stdin
7817 <        cat >$tmp/stdin
7818 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7819 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7817 >        cat >$tmp/stdin
7818 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7819 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7820    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7821 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7821 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7822    * )   ac_file_in=$ac_file.in ;;
7823    esac
7824  
7825    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7826    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7827   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7828 <         X"$ac_file" : 'X\(//\)[^/]' \| \
7829 <         X"$ac_file" : 'X\(//\)$' \| \
7830 <         X"$ac_file" : 'X\(/\)' \| \
7831 <         .     : '\(.\)' 2>/dev/null ||
7828 >         X"$ac_file" : 'X\(//\)[^/]' \| \
7829 >         X"$ac_file" : 'X\(//\)$' \| \
7830 >         X"$ac_file" : 'X\(/\)' \| \
7831 >         .     : '\(.\)' 2>/dev/null ||
7832   echo X"$ac_file" |
7833      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7834            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7900 | Line 7844 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
7844        as_dirs="$as_dir $as_dirs"
7845        as_dir=`(dirname "$as_dir") 2>/dev/null ||
7846   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7847 <         X"$as_dir" : 'X\(//\)[^/]' \| \
7848 <         X"$as_dir" : 'X\(//\)$' \| \
7849 <         X"$as_dir" : 'X\(/\)' \| \
7850 <         .     : '\(.\)' 2>/dev/null ||
7847 >         X"$as_dir" : 'X\(//\)[^/]' \| \
7848 >         X"$as_dir" : 'X\(//\)$' \| \
7849 >         X"$as_dir" : 'X\(/\)' \| \
7850 >         .     : '\(.\)' 2>/dev/null ||
7851   echo X"$as_dir" |
7852      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7853            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7941 | Line 7885 | esac
7885      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7886      ac_top_srcdir=$ac_top_builddir$srcdir ;;
7887   esac
7944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7945 # absolute.
7946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7888  
7889 + # Do not use `cd foo && pwd` to compute absolute paths, because
7890 + # the directories may not exist.
7891 + case `pwd` in
7892 + .) ac_abs_builddir="$ac_dir";;
7893 + *)
7894 +  case "$ac_dir" in
7895 +  .) ac_abs_builddir=`pwd`;;
7896 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7897 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7898 +  esac;;
7899 + esac
7900 + case $ac_abs_builddir in
7901 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
7902 + *)
7903 +  case ${ac_top_builddir}. in
7904 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
7905 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7906 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7907 +  esac;;
7908 + esac
7909 + case $ac_abs_builddir in
7910 + .) ac_abs_srcdir=$ac_srcdir;;
7911 + *)
7912 +  case $ac_srcdir in
7913 +  .) ac_abs_srcdir=$ac_abs_builddir;;
7914 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7915 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7916 +  esac;;
7917 + esac
7918 + case $ac_abs_builddir in
7919 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
7920 + *)
7921 +  case $ac_top_srcdir in
7922 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7923 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7924 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7925 +  esac;;
7926 + esac
7927  
7928 +
7929    case $INSTALL in
7930    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7931    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
# Line 7968 | Line 7945 | echo "$as_me: creating $ac_file" >&6;}
7945      configure_input="$ac_file.  "
7946    fi
7947    configure_input=$configure_input"Generated from `echo $ac_file_in |
7948 <                                     sed 's,.*/,,'` by configure."
7948 >                                     sed 's,.*/,,'` by configure."
7949  
7950    # First look for the input files in the build tree, otherwise in the
7951    # src tree.
# Line 7977 | Line 7954 | echo "$as_me: creating $ac_file" >&6;}
7954        case $f in
7955        -) echo $tmp/stdin ;;
7956        [\\/$]*)
7957 <         # Absolute (can't be DOS-style, as IFS=:)
7958 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7957 >         # Absolute (can't be DOS-style, as IFS=:)
7958 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7959   echo "$as_me: error: cannot find input file: $f" >&2;}
7960     { (exit 1); exit 1; }; }
7961 <         echo $f;;
7961 >         echo "$f";;
7962        *) # Relative
7963 <         if test -f "$f"; then
7964 <           # Build tree
7965 <           echo $f
7966 <         elif test -f "$srcdir/$f"; then
7967 <           # Source tree
7968 <           echo $srcdir/$f
7969 <         else
7970 <           # /dev/null tree
7971 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7963 >         if test -f "$f"; then
7964 >           # Build tree
7965 >           echo "$f"
7966 >         elif test -f "$srcdir/$f"; then
7967 >           # Source tree
7968 >           echo "$srcdir/$f"
7969 >         else
7970 >           # /dev/null tree
7971 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7972   echo "$as_me: error: cannot find input file: $f" >&2;}
7973     { (exit 1); exit 1; }; }
7974 <         fi;;
7974 >         fi;;
7975        esac
7976      done` || { (exit 1); exit 1; }
7977   _ACEOF
# Line 8036 | Line 8013 | cat >>$CONFIG_STATUS <<\_ACEOF
8013   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8014   #
8015   # ac_d sets the value in "#define NAME VALUE" lines.
8016 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8017 < ac_dB='[        ].*$,\1#\2'
8016 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8017 > ac_dB='[         ].*$,\1#\2'
8018   ac_dC=' '
8019   ac_dD=',;t'
8020   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8021 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8021 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8022   ac_uB='$,\1#\2define\3'
8023   ac_uC=' '
8024   ac_uD=',;t'
# Line 8050 | Line 8027 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8027    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8028    case $ac_file in
8029    - | *:- | *:-:* ) # input from stdin
8030 <        cat >$tmp/stdin
8031 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8030 >        cat >$tmp/stdin
8031 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8033    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8034 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8034 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8035    * )   ac_file_in=$ac_file.in ;;
8036    esac
8037  
# Line 8068 | Line 8045 | echo "$as_me: creating $ac_file" >&6;}
8045        case $f in
8046        -) echo $tmp/stdin ;;
8047        [\\/$]*)
8048 <         # Absolute (can't be DOS-style, as IFS=:)
8049 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8048 >         # Absolute (can't be DOS-style, as IFS=:)
8049 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8050   echo "$as_me: error: cannot find input file: $f" >&2;}
8051     { (exit 1); exit 1; }; }
8052 <         echo $f;;
8052 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8053 >         echo "$f";;
8054        *) # Relative
8055 <         if test -f "$f"; then
8056 <           # Build tree
8057 <           echo $f
8058 <         elif test -f "$srcdir/$f"; then
8059 <           # Source tree
8060 <           echo $srcdir/$f
8061 <         else
8062 <           # /dev/null tree
8063 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8055 >         if test -f "$f"; then
8056 >           # Build tree
8057 >           echo "$f"
8058 >         elif test -f "$srcdir/$f"; then
8059 >           # Source tree
8060 >           echo "$srcdir/$f"
8061 >         else
8062 >           # /dev/null tree
8063 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8064   echo "$as_me: error: cannot find input file: $f" >&2;}
8065     { (exit 1); exit 1; }; }
8066 <         fi;;
8066 >         fi;;
8067        esac
8068      done` || { (exit 1); exit 1; }
8069    # Remove the trailing spaces.
8070 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8070 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8071  
8072   _ACEOF
8073  
# Line 8112 | Line 8090 | t clear
8090   s,[\\$`],\\&,g
8091   t clear
8092   : clear
8093 < s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8093 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8094   t end
8095 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8095 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8096   : end
8097   _ACEOF
8098   # If some macros were called several times there might be several times
# Line 8128 | Line 8106 | cat >>conftest.undefs <<\_ACEOF
8106   # example, in the case of _POSIX_SOURCE, which is predefined and required
8107   # on some systems where configure will not decide to define it.
8108   cat >>conftest.undefs <<\_ACEOF
8109 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8109 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8110   _ACEOF
8111  
8112   # Break up conftest.defines because some shells have a limit on the size
8113   # of here documents, and old seds have small limits too (100 cmds).
8114   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8115 < echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8115 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8116   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8117   echo '  :' >>$CONFIG_STATUS
8118   rm -f conftest.tail
# Line 8143 | Line 8121 | do
8121    # Write a limited-size here document to $tmp/defines.sed.
8122    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8123    # Speed up: don't consider the non `#define' lines.
8124 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8124 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8125    # Work around the forget-to-reset-the-flag bug.
8126    echo 't clr' >>$CONFIG_STATUS
8127    echo ': clr' >>$CONFIG_STATUS
# Line 8170 | Line 8148 | do
8148    # Write a limited-size here document to $tmp/undefs.sed.
8149    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8150    # Speed up: don't consider the non `#undef'
8151 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8151 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8152    # Work around the forget-to-reset-the-flag bug.
8153    echo 't clr' >>$CONFIG_STATUS
8154    echo ': clr' >>$CONFIG_STATUS
# Line 8204 | Line 8182 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8182      else
8183        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8184   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8185 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8186 <         X"$ac_file" : 'X\(//\)$' \| \
8187 <         X"$ac_file" : 'X\(/\)' \| \
8188 <         .     : '\(.\)' 2>/dev/null ||
8185 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8186 >         X"$ac_file" : 'X\(//\)$' \| \
8187 >         X"$ac_file" : 'X\(/\)' \| \
8188 >         .     : '\(.\)' 2>/dev/null ||
8189   echo X"$ac_file" |
8190      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8191            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 8223 | Line 8201 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8201        as_dirs="$as_dir $as_dirs"
8202        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8203   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8204 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8205 <         X"$as_dir" : 'X\(//\)$' \| \
8206 <         X"$as_dir" : 'X\(/\)' \| \
8207 <         .     : '\(.\)' 2>/dev/null ||
8204 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8205 >         X"$as_dir" : 'X\(//\)$' \| \
8206 >         X"$as_dir" : 'X\(/\)' \| \
8207 >         .     : '\(.\)' 2>/dev/null ||
8208   echo X"$as_dir" |
8209      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8210            /^X\(\/\/\)[^/].*/{ s//\1/; q; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines