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

Comparing trunk/configure (file contents):
Revision 1379 by gezelter, Thu Oct 22 14:09:13 2009 UTC vs.
Revision 1621 by gezelter, Mon Sep 12 18:19:40 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.64 for OOPSE 4.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 + #
8   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 < # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10   # Foundation, Inc.
11   #
12 + #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
15   ## -------------------- ##
# Line 89 | Line 91 | IFS=" ""       $as_nl"
91   IFS=" ""        $as_nl"
92  
93   # Find who we are.  Look in the path if we contain no directory separator.
94 + as_myself=
95   case $0 in #((
96    *[\\/]* ) as_myself=$0 ;;
97    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 214 | Line 217 | IFS=$as_save_IFS
217    # We cannot yet assume a decent shell, so we have to provide a
218          # neutralization value for shells without unset; and this also
219          # works around shells that cannot unset nonexistent variables.
220 +        # Preserve -v and -x to the replacement shell.
221          BASH_ENV=/dev/null
222          ENV=/dev/null
223          (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224          export CONFIG_SHELL
225 <        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 >        case $- in # ((((
226 >          *v*x* | *x*v* ) as_opts=-vx ;;
227 >          *v* ) as_opts=-v ;;
228 >          *x* ) as_opts=-x ;;
229 >          * ) as_opts= ;;
230 >        esac
231 >        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232   fi
233  
234      if test x$as_have_required = xno; then :
# Line 317 | Line 327 | $as_echo X"$as_dir" |
327        test -d "$as_dir" && break
328      done
329      test -z "$as_dirs" || eval "mkdir $as_dirs"
330 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331  
332  
333   } # as_fn_mkdir_p
# Line 357 | Line 367 | fi # as_fn_arith
367   fi # as_fn_arith
368  
369  
370 < # as_fn_error ERROR [LINENO LOG_FD]
371 < # ---------------------------------
370 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 > # ----------------------------------------
372   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 < # script with status $?, using 1 if that was 0.
374 > # script with STATUS, using 1 if that was 0.
375   as_fn_error ()
376   {
377 <  as_status=$?; test $as_status -eq 0 && as_status=1
378 <  if test "$3"; then
379 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 >  as_status=$1; test $as_status -eq 0 && as_status=1
378 >  if test "$4"; then
379 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381    fi
382 <  $as_echo "$as_me: error: $1" >&2
382 >  $as_echo "$as_me: error: $2" >&2
383    as_fn_exit $as_status
384   } # as_fn_error
385  
# Line 527 | Line 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538  
539  
540 < exec 7<&0 </dev/null 6>&1
540 > test -n "$DJDIR" || exec 7<&0 </dev/null
541 > exec 6>&1
542  
543   # Name of the host.
544 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545   # so uname gets run too.
546   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547  
# Line 547 | Line 558 | MAKEFLAGS=
558   MAKEFLAGS=
559  
560   # Identity of this package.
561 < PACKAGE_NAME='OOPSE'
562 < PACKAGE_TARNAME='oopse'
563 < PACKAGE_VERSION='4.0'
564 < PACKAGE_STRING='OOPSE 4.0'
561 > PACKAGE_NAME='OpenMD'
562 > PACKAGE_TARNAME='openmd'
563 > PACKAGE_VERSION='1.0'
564 > PACKAGE_STRING='OpenMD 1.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566   PACKAGE_URL=''
567  
568 < ac_unique_file="src/applications/oopse/oopse.cpp"
568 > ac_unique_file="src/applications/openmd/openmd.cpp"
569   ac_default_prefix="/usr/local"
570   # Factoring default headers for most tests.
571   ac_includes_default="\
# Line 594 | Line 605 | SUBDIRS
605  
606   ac_subst_vars='LTLIBOBJS
607   SUBDIRS
608 < OOPSE_HOME
609 < OOPSE
608 > OPENMD_HOME
609 > OPENMD
610   MKINSTALLDIRS
611   BATEXT
612   enable_latex_docs
# Line 610 | Line 621 | OPENBABEL_INC_DIR
621   OPENBABEL_LIB
622   OPENBABEL_LIB_DIR
623   OPENBABEL_INC_DIR
613 CXXCPP
624   USE_QHULL
625   QHULL
626   QHULL_LIB_DIR
627   QHULL_INC_DIR
628 + CXXCPP
629   FFTW_LIBS
630   FFTW_LIB_DIR
631   FFTW_INC_DIR
# Line 647 | Line 658 | MPIFC
658   CPP
659   USE_MPI
660   MPIFC
661 + MPICC
662 + MPILIBS
663 + MPICXX
664 + LIBDL
665   ac_ct_FC
666   FCFLAGS
667   FC
653 MPICC
668   ac_ct_CC
669   CFLAGS
670   CC
657 MPILIBS
658 MPICXX
671   OBJEXT
672   EXEEXT
673   ac_ct_CXX
# Line 663 | Line 675 | CXX
675   LDFLAGS
676   CXXFLAGS
677   CXX
666 ac_fc_path
667 ac_fc_set
668 ac_cxx_path
669 ac_cxx_set
670 ac_cc_path
671 ac_cc_set
678   USE_SINGLE_PRECISION
679   debug
680   PROGNAME
# Line 721 | Line 727 | enable_option_checking
727   ac_subst_files=''
728   ac_user_opts='
729   enable_option_checking
730 < enable_oopse_home
730 > enable_openmd_home
731   enable_debug
732   enable_single
733   enable_float
# Line 744 | Line 750 | CCC
750   LIBS
751   CPPFLAGS
752   CCC
747 MPICXX
753   CC
754   CFLAGS
750 MPICC
755   FC
756   FCFLAGS
757 + MPICXX
758 + MPICC
759   MPIFC
760   CPP
761   CXXCPP'
# Line 815 | Line 821 | do
821    fi
822  
823    case $ac_option in
824 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 <  *)    ac_optarg=yes ;;
824 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 >  *=)   ac_optarg= ;;
826 >  *)    ac_optarg=yes ;;
827    esac
828  
829    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 861 | Line 868 | do
868      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869      # Reject names that are not valid shell variable names.
870      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 <      as_fn_error "invalid feature name: $ac_useropt"
871 >      as_fn_error $? "invalid feature name: $ac_useropt"
872      ac_useropt_orig=$ac_useropt
873      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874      case $ac_user_opts in
# Line 887 | Line 894 | do
894      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895      # Reject names that are not valid shell variable names.
896      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 <      as_fn_error "invalid feature name: $ac_useropt"
897 >      as_fn_error $? "invalid feature name: $ac_useropt"
898      ac_useropt_orig=$ac_useropt
899      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900      case $ac_user_opts in
# Line 1091 | Line 1098 | do
1098      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099      # Reject names that are not valid shell variable names.
1100      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 <      as_fn_error "invalid package name: $ac_useropt"
1101 >      as_fn_error $? "invalid package name: $ac_useropt"
1102      ac_useropt_orig=$ac_useropt
1103      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104      case $ac_user_opts in
# Line 1107 | Line 1114 | do
1114      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115      # Reject names that are not valid shell variable names.
1116      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 <      as_fn_error "invalid package name: $ac_useropt"
1117 >      as_fn_error $? "invalid package name: $ac_useropt"
1118      ac_useropt_orig=$ac_useropt
1119      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120      case $ac_user_opts in
# Line 1137 | Line 1144 | do
1144    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145      x_libraries=$ac_optarg ;;
1146  
1147 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1148 < Try \`$0 --help' for more information."
1147 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 > Try \`$0 --help' for more information"
1149      ;;
1150  
1151    *=*)
# Line 1146 | Line 1153 | Try \`$0 --help' for more information."
1153      # Reject names that are not valid shell variable names.
1154      case $ac_envvar in #(
1155        '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1156 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157      esac
1158      eval $ac_envvar=\$ac_optarg
1159      export $ac_envvar ;;
# Line 1156 | Line 1163 | Try \`$0 --help' for more information."
1163      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1167      ;;
1168  
1169    esac
# Line 1164 | Line 1171 | if test -n "$ac_prev"; then
1171  
1172   if test -n "$ac_prev"; then
1173    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 <  as_fn_error "missing argument to $ac_option"
1174 >  as_fn_error $? "missing argument to $ac_option"
1175   fi
1176  
1177   if test -n "$ac_unrecognized_opts"; then
1178    case $enable_option_checking in
1179      no) ;;
1180 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1180 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182    esac
1183   fi
# Line 1193 | Line 1200 | do
1200      [\\/$]* | ?:[\\/]* )  continue;;
1201      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202    esac
1203 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1203 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204   done
1205  
1206   # There might be people who depend on the old broken behavior: `$host'
# Line 1207 | Line 1214 | if test "x$host_alias" != x; then
1214   if test "x$host_alias" != x; then
1215    if test "x$build_alias" = x; then
1216      cross_compiling=maybe
1217 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 <    If a cross compiler is detected then cross compile mode will be used." >&2
1217 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 >    If a cross compiler is detected then cross compile mode will be used" >&2
1219    elif test "x$build_alias" != "x$host_alias"; then
1220      cross_compiling=yes
1221    fi
# Line 1223 | Line 1230 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231   ac_ls_di=`ls -di .` &&
1232   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 <  as_fn_error "working directory cannot be determined"
1233 >  as_fn_error $? "working directory cannot be determined"
1234   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 <  as_fn_error "pwd does not report name of working directory"
1235 >  as_fn_error $? "pwd does not report name of working directory"
1236  
1237  
1238   # Find the source files, if location was not specified.
# Line 1264 | Line 1271 | if test ! -r "$srcdir/$ac_unique_file"; then
1271   fi
1272   if test ! -r "$srcdir/$ac_unique_file"; then
1273    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1274 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275   fi
1276   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277   ac_abs_confdir=`(
1278 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1278 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279          pwd)`
1280   # When building in place, set srcdir=.
1281   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1294 | Line 1301 | if test "$ac_init_help" = "long"; then
1301    # Omit some internal or obsolete options to make the list less imposing.
1302    # This message is too long to be a string in the A/UX 3.1 sh.
1303    cat <<_ACEOF
1304 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1304 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1305  
1306   Usage: $0 [OPTION]... [VAR=VALUE]...
1307  
# Line 1308 | Line 1315 | Configuration:
1315        --help=short        display options specific to this package
1316        --help=recursive    display the short help of all the included packages
1317    -V, --version           display version information and exit
1318 <  -q, --quiet, --silent   do not print \`checking...' messages
1318 >  -q, --quiet, --silent   do not print \`checking ...' messages
1319        --cache-file=FILE   cache test results in FILE [disabled]
1320    -C, --config-cache      alias for \`--cache-file=config.cache'
1321    -n, --no-create         do not create output files
# Line 1342 | Line 1349 | Fine tuning of the installation directories:
1349    --infodir=DIR           info documentation [DATAROOTDIR/info]
1350    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1351    --mandir=DIR            man documentation [DATAROOTDIR/man]
1352 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1352 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1353    --htmldir=DIR           html documentation [DOCDIR]
1354    --dvidir=DIR            dvi documentation [DOCDIR]
1355    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1359 | Line 1366 | if test -n "$ac_init_help"; then
1366  
1367   if test -n "$ac_init_help"; then
1368    case $ac_init_help in
1369 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1369 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1370     esac
1371    cat <<\_ACEOF
1372  
# Line 1367 | Line 1374 | Optional Features:
1374    --disable-option-checking  ignore unrecognized --enable/--with options
1375    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1378 <  --enable-debug          Compile OOPSE in debug mode
1379 <  --enable-single         compile OOPSE in single precision
1377 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1378 >  --enable-debug          Compile OpenMD in debug mode
1379 >  --enable-single         compile OpenMD in single precision
1380    --enable-float          synonym for --enable-single
1381    --enable-doxygen        enable documentation generation with doxygen (auto)
1382    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1404 | Some influential environment variables:
1404    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405                nonstandard directory <lib dir>
1406    LIBS        libraries to pass to the linker, e.g. -l<library>
1407 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408                you have headers in a nonstandard directory <include dir>
1402  MPICXX      MPI C++ compiler command
1409    CC          C compiler command
1410    CFLAGS      C compiler flags
1405  MPICC       MPI C compiler command
1411    FC          Fortran compiler command
1412    FCFLAGS     Fortran compiler flags
1413 +  MPICXX      MPI C++ compiler command
1414 +  MPICC       MPI C compiler command
1415    MPIFC       MPI Fortran compiler command
1416    CPP         C preprocessor
1417    CXXCPP      C++ preprocessor
# Line 1475 | Line 1482 | if $ac_init_version; then
1482   test -n "$ac_init_help" && exit $ac_status
1483   if $ac_init_version; then
1484    cat <<\_ACEOF
1485 < OOPSE configure 4.0
1486 < generated by GNU Autoconf 2.64
1485 > OpenMD configure 1.0
1486 > generated by GNU Autoconf 2.68
1487  
1488 < Copyright (C) 2009 Free Software Foundation, Inc.
1488 > Copyright (C) 2010 Free Software Foundation, Inc.
1489   This configure script is free software; the Free Software Foundation
1490   gives unlimited permission to copy, distribute and modify it.
1491   _ACEOF
# Line 1522 | Line 1529 | fi
1529  
1530          ac_retval=1
1531   fi
1532 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1533 <  return $ac_retval
1532 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 >  as_fn_set_status $ac_retval
1534  
1535   } # ac_fn_cxx_try_compile
1536  
1537 + # ac_fn_c_try_compile LINENO
1538 + # --------------------------
1539 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 + ac_fn_c_try_compile ()
1541 + {
1542 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 +  rm -f conftest.$ac_objext
1544 +  if { { ac_try="$ac_compile"
1545 + case "(($ac_try" in
1546 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 +  *) ac_try_echo=$ac_try;;
1548 + esac
1549 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 + $as_echo "$ac_try_echo"; } >&5
1551 +  (eval "$ac_compile") 2>conftest.err
1552 +  ac_status=$?
1553 +  if test -s conftest.err; then
1554 +    grep -v '^ *+' conftest.err >conftest.er1
1555 +    cat conftest.er1 >&5
1556 +    mv -f conftest.er1 conftest.err
1557 +  fi
1558 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 +  test $ac_status = 0; } && {
1560 +         test -z "$ac_c_werror_flag" ||
1561 +         test ! -s conftest.err
1562 +       } && test -s conftest.$ac_objext; then :
1563 +  ac_retval=0
1564 + else
1565 +  $as_echo "$as_me: failed program was:" >&5
1566 + sed 's/^/| /' conftest.$ac_ext >&5
1567 +
1568 +        ac_retval=1
1569 + fi
1570 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 +  as_fn_set_status $ac_retval
1572 +
1573 + } # ac_fn_c_try_compile
1574 +
1575 + # ac_fn_fc_try_compile LINENO
1576 + # ---------------------------
1577 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 + ac_fn_fc_try_compile ()
1579 + {
1580 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 +  rm -f conftest.$ac_objext
1582 +  if { { ac_try="$ac_compile"
1583 + case "(($ac_try" in
1584 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 +  *) ac_try_echo=$ac_try;;
1586 + esac
1587 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 + $as_echo "$ac_try_echo"; } >&5
1589 +  (eval "$ac_compile") 2>conftest.err
1590 +  ac_status=$?
1591 +  if test -s conftest.err; then
1592 +    grep -v '^ *+' conftest.err >conftest.er1
1593 +    cat conftest.er1 >&5
1594 +    mv -f conftest.er1 conftest.err
1595 +  fi
1596 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 +  test $ac_status = 0; } && {
1598 +         test -z "$ac_fc_werror_flag" ||
1599 +         test ! -s conftest.err
1600 +       } && test -s conftest.$ac_objext; then :
1601 +  ac_retval=0
1602 + else
1603 +  $as_echo "$as_me: failed program was:" >&5
1604 + sed 's/^/| /' conftest.$ac_ext >&5
1605 +
1606 +        ac_retval=1
1607 + fi
1608 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 +  as_fn_set_status $ac_retval
1610 +
1611 + } # ac_fn_fc_try_compile
1612 +
1613   # ac_fn_cxx_try_link LINENO
1614   # -------------------------
1615   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1568 | Line 1651 | fi
1651    # interfere with the next link command; also delete a directory that is
1652    # left behind by Apple's compiler.  We do this before executing the actions.
1653    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 <  return $ac_retval
1654 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 >  as_fn_set_status $ac_retval
1656  
1657   } # ac_fn_cxx_try_link
1658  
# Line 1581 | Line 1664 | $as_echo_n "checking for $2... " >&6; }
1664    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666   $as_echo_n "checking for $2... " >&6; }
1667 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1667 > if eval \${$3+:} false; then :
1668    $as_echo_n "(cached) " >&6
1669   else
1670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1636 | Line 1719 | $as_echo "$ac_res" >&6; }
1719   eval ac_res=\$$3
1720                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721   $as_echo "$ac_res" >&6; }
1722 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  
1724   } # ac_fn_cxx_check_func
1725  
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  rm -f conftest.$ac_objext
1650  if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_compile") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } && {
1666         test -z "$ac_c_werror_flag" ||
1667         test ! -s conftest.err
1668       } && test -s conftest.$ac_objext; then :
1669  ac_retval=0
1670 else
1671  $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674        ac_retval=1
1675 fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1726   # ac_fn_c_try_link LINENO
1727   # -----------------------
1728   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1719 | Line 1764 | fi
1764    # interfere with the next link command; also delete a directory that is
1765    # left behind by Apple's compiler.  We do this before executing the actions.
1766    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 <  return $ac_retval
1767 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 >  as_fn_set_status $ac_retval
1769  
1770   } # ac_fn_c_try_link
1771  
# Line 1732 | Line 1777 | $as_echo_n "checking for $2... " >&6; }
1777    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779   $as_echo_n "checking for $2... " >&6; }
1780 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 > if eval \${$3+:} false; then :
1781    $as_echo_n "(cached) " >&6
1782   else
1783    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1787 | Line 1832 | $as_echo "$ac_res" >&6; }
1832   eval ac_res=\$$3
1833                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834   $as_echo "$ac_res" >&6; }
1835 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836  
1837   } # ac_fn_c_check_func
1793
1794 # ac_fn_fc_try_compile LINENO
1795 # ---------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_fc_try_compile ()
1798 {
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  rm -f conftest.$ac_objext
1801  if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_compile") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && {
1817         test -z "$ac_fc_werror_flag" ||
1818         test ! -s conftest.err
1819       } && test -s conftest.$ac_objext; then :
1820  ac_retval=0
1821 else
1822  $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825        ac_retval=1
1826 fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  return $ac_retval
1838  
1830 } # ac_fn_fc_try_compile
1831
1839   # ac_fn_fc_try_link LINENO
1840   # ------------------------
1841   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1870 | Line 1877 | fi
1877    # interfere with the next link command; also delete a directory that is
1878    # left behind by Apple's compiler.  We do this before executing the actions.
1879    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 <  return $ac_retval
1880 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 >  as_fn_set_status $ac_retval
1882  
1883   } # ac_fn_fc_try_link
1884  
# Line 1896 | Line 1903 | $as_echo "$ac_try_echo"; } >&5
1903      mv -f conftest.er1 conftest.err
1904    fi
1905    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 <  test $ac_status = 0; } >/dev/null && {
1906 >  test $ac_status = 0; } > conftest.i && {
1907           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1908           test ! -s conftest.err
1909         }; then :
# Line 1907 | Line 1914 | fi
1914  
1915      ac_retval=1
1916   fi
1917 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 <  return $ac_retval
1917 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 >  as_fn_set_status $ac_retval
1919  
1920   } # ac_fn_c_try_cpp
1921  
# Line 1920 | Line 1927 | ac_fn_c_check_header_mongrel ()
1927   ac_fn_c_check_header_mongrel ()
1928   {
1929    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 >  if eval \${$3+:} false; then :
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932   $as_echo_n "checking for $2... " >&6; }
1933 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 > if eval \${$3+:} false; then :
1934    $as_echo_n "(cached) " >&6
1935   fi
1936   eval ac_res=\$$3
# Line 1959 | Line 1966 | fi
1966   else
1967    ac_header_preproc=no
1968   fi
1969 < rm -f conftest.err conftest.$ac_ext
1969 > rm -f conftest.err conftest.i conftest.$ac_ext
1970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1971   $as_echo "$ac_header_preproc" >&6; }
1972  
# Line 1982 | Line 1989 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1989   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1990      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1991   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 < ( cat <<\_ASBOX
1986 < ## ------------------------------ ##
1992 > ( $as_echo "## ------------------------------ ##
1993   ## Report this to gezelter@nd.edu ##
1994 < ## ------------------------------ ##
1989 < _ASBOX
1994 > ## ------------------------------ ##"
1995       ) | sed "s/^/$as_me: WARNING:     /" >&2
1996      ;;
1997   esac
1998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999   $as_echo_n "checking for $2... " >&6; }
2000 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 > if eval \${$3+:} false; then :
2001    $as_echo_n "(cached) " >&6
2002   else
2003    eval "$3=\$ac_header_compiler"
# Line 2001 | Line 2006 | fi
2006                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007   $as_echo "$ac_res" >&6; }
2008   fi
2009 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010  
2011   } # ac_fn_c_check_header_mongrel
2012  
# Line 2042 | Line 2047 | fi
2047         ac_retval=$ac_status
2048   fi
2049    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 <  return $ac_retval
2050 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 >  as_fn_set_status $ac_retval
2052  
2053   } # ac_fn_c_try_run
2054  
# Line 2056 | Line 2061 | $as_echo_n "checking for $2... " >&6; }
2061    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063   $as_echo_n "checking for $2... " >&6; }
2064 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 > if eval \${$3+:} false; then :
2065    $as_echo_n "(cached) " >&6
2066   else
2067    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2074 | Line 2079 | $as_echo "$ac_res" >&6; }
2079   eval ac_res=\$$3
2080                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081   $as_echo "$ac_res" >&6; }
2082 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083  
2084   } # ac_fn_c_check_header_compile
2085  
# Line 2099 | Line 2104 | $as_echo "$ac_try_echo"; } >&5
2104      mv -f conftest.er1 conftest.err
2105    fi
2106    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 <  test $ac_status = 0; } >/dev/null && {
2107 >  test $ac_status = 0; } > conftest.i && {
2108           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2109           test ! -s conftest.err
2110         }; then :
# Line 2110 | Line 2115 | fi
2115  
2116      ac_retval=1
2117   fi
2118 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 <  return $ac_retval
2118 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 >  as_fn_set_status $ac_retval
2120  
2121   } # ac_fn_cxx_try_cpp
2122  
# Line 2123 | Line 2128 | ac_fn_cxx_check_header_mongrel ()
2128   ac_fn_cxx_check_header_mongrel ()
2129   {
2130    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 >  if eval \${$3+:} false; then :
2132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133   $as_echo_n "checking for $2... " >&6; }
2134 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2134 > if eval \${$3+:} false; then :
2135    $as_echo_n "(cached) " >&6
2136   fi
2137   eval ac_res=\$$3
# Line 2162 | Line 2167 | fi
2167   else
2168    ac_header_preproc=no
2169   fi
2170 < rm -f conftest.err conftest.$ac_ext
2170 > rm -f conftest.err conftest.i conftest.$ac_ext
2171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172   $as_echo "$ac_header_preproc" >&6; }
2173  
# Line 2185 | Line 2190 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2190   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2191      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 < ( cat <<\_ASBOX
2189 < ## ------------------------------ ##
2193 > ( $as_echo "## ------------------------------ ##
2194   ## Report this to gezelter@nd.edu ##
2195 < ## ------------------------------ ##
2192 < _ASBOX
2195 > ## ------------------------------ ##"
2196       ) | sed "s/^/$as_me: WARNING:     /" >&2
2197      ;;
2198   esac
2199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200   $as_echo_n "checking for $2... " >&6; }
2201 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2201 > if eval \${$3+:} false; then :
2202    $as_echo_n "(cached) " >&6
2203   else
2204    eval "$3=\$ac_header_compiler"
# Line 2204 | Line 2207 | fi
2207                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208   $as_echo "$ac_res" >&6; }
2209   fi
2210 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211  
2212   } # ac_fn_cxx_check_header_mongrel
2213  
# Line 2217 | Line 2220 | $as_echo_n "checking for $2... " >&6; }
2220    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222   $as_echo_n "checking for $2... " >&6; }
2223 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 > if eval \${$3+:} false; then :
2224    $as_echo_n "(cached) " >&6
2225   else
2226    eval "$3=no"
# Line 2274 | Line 2277 | $as_echo "$ac_res" >&6; }
2277   eval ac_res=\$$3
2278                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279   $as_echo "$ac_res" >&6; }
2280 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281  
2282   } # ac_fn_c_check_type
2283   cat >config.log <<_ACEOF
2284   This file contains any messages produced by compilers while
2285   running configure, to aid debugging if configure makes a mistake.
2286  
2287 < It was created by OOPSE $as_me 4.0, which was
2288 < generated by GNU Autoconf 2.64.  Invocation command line was
2287 > It was created by OpenMD $as_me 1.0, which was
2288 > generated by GNU Autoconf 2.68.  Invocation command line was
2289  
2290    $ $0 $@
2291  
# Line 2392 | Line 2395 | trap 'exit_status=$?
2395    {
2396      echo
2397  
2398 <    cat <<\_ASBOX
2396 < ## ---------------- ##
2398 >    $as_echo "## ---------------- ##
2399   ## Cache variables. ##
2400 < ## ---------------- ##
2399 < _ASBOX
2400 > ## ---------------- ##"
2401      echo
2402      # The following way of writing the cache mishandles newlines in values,
2403   (
# Line 2430 | Line 2431 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2431   )
2432      echo
2433  
2434 <    cat <<\_ASBOX
2434 < ## ----------------- ##
2434 >    $as_echo "## ----------------- ##
2435   ## Output variables. ##
2436 < ## ----------------- ##
2437 < _ASBOX
2436 > ## ----------------- ##"
2437      echo
2438      for ac_var in $ac_subst_vars
2439      do
# Line 2447 | Line 2446 | _ASBOX
2446      echo
2447  
2448      if test -n "$ac_subst_files"; then
2449 <      cat <<\_ASBOX
2451 < ## ------------------- ##
2449 >      $as_echo "## ------------------- ##
2450   ## File substitutions. ##
2451 < ## ------------------- ##
2454 < _ASBOX
2451 > ## ------------------- ##"
2452        echo
2453        for ac_var in $ac_subst_files
2454        do
# Line 2465 | Line 2462 | _ASBOX
2462      fi
2463  
2464      if test -s confdefs.h; then
2465 <      cat <<\_ASBOX
2469 < ## ----------- ##
2465 >      $as_echo "## ----------- ##
2466   ## confdefs.h. ##
2467 < ## ----------- ##
2472 < _ASBOX
2467 > ## ----------- ##"
2468        echo
2469        cat confdefs.h
2470        echo
# Line 2524 | Line 2519 | if test -n "$CONFIG_SITE"; then
2519   ac_site_file1=NONE
2520   ac_site_file2=NONE
2521   if test -n "$CONFIG_SITE"; then
2522 <  ac_site_file1=$CONFIG_SITE
2522 >  # We do not want a PATH search for config.site.
2523 >  case $CONFIG_SITE in #((
2524 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2525 >    */*) ac_site_file1=$CONFIG_SITE;;
2526 >    *)   ac_site_file1=./$CONFIG_SITE;;
2527 >  esac
2528   elif test "x$prefix" != xNONE; then
2529    ac_site_file1=$prefix/share/config.site
2530    ac_site_file2=$prefix/etc/config.site
# Line 2535 | Line 2535 | do
2535   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536   do
2537    test "x$ac_site_file" = xNONE && continue
2538 <  if test -r "$ac_site_file"; then
2538 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2539      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541      sed 's/^/| /' "$ac_site_file" >&5
2542 <    . "$ac_site_file"
2542 >    . "$ac_site_file" \
2543 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 > as_fn_error $? "failed to load site script $ac_site_file
2546 > See \`config.log' for more details" "$LINENO" 5; }
2547    fi
2548   done
2549  
2550   if test -r "$cache_file"; then
2551 <  # Some versions of bash will fail to source /dev/null (special
2552 <  # files actually), so we avoid doing that.
2553 <  if test -f "$cache_file"; then
2551 >  # Some versions of bash will fail to source /dev/null (special files
2552 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2553 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2554      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555   $as_echo "$as_me: loading cache $cache_file" >&6;}
2556      case $cache_file in
# Line 2615 | Line 2619 | $as_echo "$as_me: error: changes in the environment ca
2619   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2622 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623   fi
2624   ## -------------------- ##
2625   ## Main body of script. ##
# Line 2630 | Line 2634 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2634  
2635   ac_aux_dir=
2636   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2637 <  for ac_t in install-sh install.sh shtool; do
2638 <    if test -f "$ac_dir/$ac_t"; then
2639 <      ac_aux_dir=$ac_dir
2640 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2641 <      break 2
2642 <    fi
2643 <  done
2637 >  if test -f "$ac_dir/install-sh"; then
2638 >    ac_aux_dir=$ac_dir
2639 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2640 >    break
2641 >  elif test -f "$ac_dir/install.sh"; then
2642 >    ac_aux_dir=$ac_dir
2643 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2644 >    break
2645 >  elif test -f "$ac_dir/shtool"; then
2646 >    ac_aux_dir=$ac_dir
2647 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2648 >    break
2649 >  fi
2650   done
2651   if test -z "$ac_aux_dir"; then
2652 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2652 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2653   fi
2654  
2655   # These three variables are undocumented and unsupported,
# Line 2896 | Line 2906 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 |
2906   # who am i
2907   # Make sure we can run config.sub.
2908   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2909 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2909 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2910  
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2912   $as_echo_n "checking build system type... " >&6; }
2913 < if test "${ac_cv_build+set}" = set; then :
2913 > if ${ac_cv_build+:} false; then :
2914    $as_echo_n "(cached) " >&6
2915   else
2916    ac_build_alias=$build_alias
2917   test "x$ac_build_alias" = x &&
2918    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2919   test "x$ac_build_alias" = x &&
2920 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2920 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2921   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2922 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2922 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2923  
2924   fi
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2926   $as_echo "$ac_cv_build" >&6; }
2927   case $ac_cv_build in
2928   *-*-*) ;;
2929 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2929 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2930   esac
2931   build=$ac_cv_build
2932   ac_save_IFS=$IFS; IFS='-'
# Line 2934 | Line 2944 | $as_echo_n "checking host system type... " >&6; }
2944  
2945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2946   $as_echo_n "checking host system type... " >&6; }
2947 < if test "${ac_cv_host+set}" = set; then :
2947 > if ${ac_cv_host+:} false; then :
2948    $as_echo_n "(cached) " >&6
2949   else
2950    if test "x$host_alias" = x; then
2951    ac_cv_host=$ac_cv_build
2952   else
2953    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2954 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2954 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2955   fi
2956  
2957   fi
# Line 2949 | Line 2959 | case $ac_cv_host in
2959   $as_echo "$ac_cv_host" >&6; }
2960   case $ac_cv_host in
2961   *-*-*) ;;
2962 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2962 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2963   esac
2964   host=$ac_cv_host
2965   ac_save_IFS=$IFS; IFS='-'
# Line 2969 | Line 2979 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2979  
2980  
2981   # set program name
2982 < PROGNAME="oopse"
2982 > PROGNAME="openmd"
2983  
2984  
2985  
2986  
2987   OBJEXT=".$OBJEXT"
2988  
2989 < OOPSE=oopse
2989 > OPENMD=openmd
2990  
2991   if test "x${prefix}" = "xNONE"
2992   then
2993 <  OOPSE_HOME=${ac_default_prefix}/oopse
2993 >  OPENMD_HOME=${ac_default_prefix}/openmd
2994   else
2995 <  OOPSE_HOME=${prefix}/oopse
2995 >  OPENMD_HOME=${prefix}/openmd
2996   fi
2997 < # Check whether --enable-oopse-home was given.
2998 < if test "${enable_oopse_home+set}" = set; then :
2999 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2997 > # Check whether --enable-openmd-home was given.
2998 > if test "${enable_openmd_home+set}" = set; then :
2999 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
3000   fi
3001  
3002  
# Line 3027 | Line 3037 | fi
3037  
3038   fi
3039  
3030 if test x"$CC" != x; then
3031   for ac_prog in $CC
3032 do
3033  # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3038  $as_echo_n "(cached) " >&6
3039 else
3040  if test -n "$ac_cc_set"; then
3041  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_ac_cc_set="$ac_prog"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054 done
3055  done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_cc_set=$ac_cv_prog_ac_cc_set
3061 if test -n "$ac_cc_set"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3063 $as_echo "$ac_cc_set" >&6; }
3064 else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070  test -n "$ac_cc_set" && break
3071 done
3072 test -n "$ac_cc_set" || ac_cc_set="no"
3073
3074   if test $ac_cc_set != no; then :
3075
3076     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3077 set dummy $ac_cc_set; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082 else
3083  case $ac_cc_path in
3084  [\\/]* | ?:[\\/]*)
3085  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3086  ;;
3087  *)
3088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099 done
3100  done
3101 IFS=$as_save_IFS
3102
3103  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3104  ;;
3105 esac
3106 fi
3107 ac_cc_path=$ac_cv_path_ac_cc_path
3108 if test -n "$ac_cc_path"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3110 $as_echo "$ac_cc_path" >&6; }
3111 else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 else
3118
3119     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3120 fi
3121
3122   if test $ac_cc_path != no; then :
3123
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3125 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3126     MPICC=$CC
3127
3128 else
3129
3130     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3131 fi
3132 fi
3133
3134 if test x"$CXX" != x; then
3135   for ac_prog in $CXX
3136 do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3142  $as_echo_n "(cached) " >&6
3143 else
3144  if test -n "$ac_cxx_set"; then
3145  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_ac_cxx_set="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158 done
3159  done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3165 if test -n "$ac_cxx_set"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3167 $as_echo "$ac_cxx_set" >&6; }
3168 else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174  test -n "$ac_cxx_set" && break
3175 done
3176 test -n "$ac_cxx_set" || ac_cxx_set="no"
3177
3178   if test $ac_cxx_set != no; then :
3179
3180     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3181 set dummy $ac_cxx_set; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3185  $as_echo_n "(cached) " >&6
3186 else
3187  case $ac_cxx_path in
3188  [\\/]* | ?:[\\/]*)
3189  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3190  ;;
3191  *)
3192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203 done
3204  done
3205 IFS=$as_save_IFS
3206
3207  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3208  ;;
3209 esac
3210 fi
3211 ac_cxx_path=$ac_cv_path_ac_cxx_path
3212 if test -n "$ac_cxx_path"; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3214 $as_echo "$ac_cxx_path" >&6; }
3215 else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 else
3222
3223     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3224 fi
3225
3226   if test $ac_cxx_path != no; then :
3227
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3229 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3230     MPICXX=$CXX
3231
3232 else
3233
3234     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3235 fi
3236 fi
3237
3238 if test x"$FC" != x; then
3239   for ac_prog in $FC
3240 do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3246  $as_echo_n "(cached) " >&6
3247 else
3248  if test -n "$ac_fc_set"; then
3249  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258    ac_cv_prog_ac_fc_set="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262 done
3263  done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_fc_set=$ac_cv_prog_ac_fc_set
3269 if test -n "$ac_fc_set"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3271 $as_echo "$ac_fc_set" >&6; }
3272 else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278  test -n "$ac_fc_set" && break
3279 done
3280 test -n "$ac_fc_set" || ac_fc_set="no"
3281
3282   if test $ac_fc_set != no; then :
3283
3284     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3285 set dummy $ac_fc_set; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290 else
3291  case $ac_fc_path in
3292  [\\/]* | ?:[\\/]*)
3293  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3294  ;;
3295  *)
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307 done
3308  done
3309 IFS=$as_save_IFS
3310
3311  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3312  ;;
3313 esac
3314 fi
3315 ac_fc_path=$ac_cv_path_ac_fc_path
3316 if test -n "$ac_fc_path"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3318 $as_echo "$ac_fc_path" >&6; }
3319 else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 else
3326
3327     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3328 fi
3329
3330   if test $ac_fc_path != no; then :
3331
3332     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3333 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3334     MPIFC=$FC
3335
3336 else
3337
3338     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3339 fi
3340 fi
3341
3342
3040   ac_ext=cpp
3041   ac_cpp='$CXXCPP $CPPFLAGS'
3042   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3348
3349 ac_ext=cpp
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3045   if test -z "$CXX"; then
3046    if test -n "$CCC"; then
3047      CXX=$CCC
3048    else
3049      if test -n "$ac_tool_prefix"; then
3050 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3050 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3051    do
3052      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055   $as_echo_n "checking for $ac_word... " >&6; }
3056 < if test "${ac_cv_prog_CXX+set}" = set; then :
3056 > if ${ac_cv_prog_CXX+:} false; then :
3057    $as_echo_n "(cached) " >&6
3058   else
3059    if test -n "$CXX"; then
# Line 3400 | Line 3091 | if test -z "$CXX"; then
3091   fi
3092   if test -z "$CXX"; then
3093    ac_ct_CXX=$CXX
3094 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3094 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3095   do
3096    # Extract the first word of "$ac_prog", so it can be a program name with args.
3097   set dummy $ac_prog; ac_word=$2
3098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099   $as_echo_n "checking for $ac_word... " >&6; }
3100 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3100 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3101    $as_echo_n "(cached) " >&6
3102   else
3103    if test -n "$ac_ct_CXX"; then
# Line 3476 | Line 3167 | $as_echo "$ac_try_echo"; } >&5
3167   ... rest of stderr output deleted ...
3168           10q' conftest.err >conftest.er1
3169      cat conftest.er1 >&5
3479    rm -f conftest.er1 conftest.err
3170    fi
3171 +  rm -f conftest.er1 conftest.err
3172    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173    test $ac_status = 0; }
3174   done
3175  
3176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177   /* end confdefs.h.  */
3178 < #include <stdio.h>
3178 >
3179   int
3180   main ()
3181   {
3491 FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3182  
3183    ;
3184    return 0;
3185   }
3186   _ACEOF
3187   ac_clean_files_save=$ac_clean_files
3188 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3188 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3189   # Try to create an executable without -o first, disregard a.out.
3190   # It will help us diagnose broken compilers, and finding out an intuition
3191   # of exeext.
3192 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3193 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3192 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3193 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3194   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3195  
3196   # The possible output files:
# Line 3563 | Line 3252 | fi
3252   else
3253    ac_file=''
3254   fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3255   if test -z "$ac_file"; then :
3256 <  $as_echo "$as_me: failed program was:" >&5
3256 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 > $as_echo "no" >&6; }
3258 > $as_echo "$as_me: failed program was:" >&5
3259   sed 's/^/| /' conftest.$ac_ext >&5
3260  
3261   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 < { as_fn_set_status 77
3264 < as_fn_error "C++ compiler cannot create executables
3265 < See \`config.log' for more details." "$LINENO" 5; }; }
3263 > as_fn_error 77 "C++ compiler cannot create executables
3264 > See \`config.log' for more details" "$LINENO" 5; }
3265 > else
3266 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 > $as_echo "yes" >&6; }
3268   fi
3269 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3270 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3271 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3272 + $as_echo "$ac_file" >&6; }
3273   ac_exeext=$ac_cv_exeext
3274  
3275 < # Check that the compiler produces executables we can run.  If not, either
3581 < # the compiler is broken, or we cross compile.
3582 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3583 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3584 < # If not cross compiling, check that we can run a simple program.
3585 < if test "$cross_compiling" != yes; then
3586 <  if { ac_try='./$ac_file'
3587 <  { { case "(($ac_try" in
3588 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 <  *) ac_try_echo=$ac_try;;
3590 < esac
3591 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 < $as_echo "$ac_try_echo"; } >&5
3593 <  (eval "$ac_try") 2>&5
3594 <  ac_status=$?
3595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 <  test $ac_status = 0; }; }; then
3597 <    cross_compiling=no
3598 <  else
3599 <    if test "$cross_compiling" = maybe; then
3600 <        cross_compiling=yes
3601 <    else
3602 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 < as_fn_error "cannot run C++ compiled programs.
3605 < If you meant to cross compile, use \`--host'.
3606 < See \`config.log' for more details." "$LINENO" 5; }
3607 <    fi
3608 <  fi
3609 < fi
3610 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 < $as_echo "yes" >&6; }
3612 <
3613 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3275 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3276   ac_clean_files=$ac_clean_files_save
3615 # Check that the compiler produces executables we can run.  If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620 $as_echo "$cross_compiling" >&6; }
3621
3277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3278   $as_echo_n "checking for suffix of executables... " >&6; }
3279   if { { ac_try="$ac_link"
# Line 3648 | Line 3303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303   else
3304    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3307 < See \`config.log' for more details." "$LINENO" 5; }
3306 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3307 > See \`config.log' for more details" "$LINENO" 5; }
3308   fi
3309 < rm -f conftest$ac_cv_exeext
3309 > rm -f conftest conftest$ac_cv_exeext
3310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3311   $as_echo "$ac_cv_exeext" >&6; }
3312  
3313   rm -f conftest.$ac_ext
3314   EXEEXT=$ac_cv_exeext
3315   ac_exeext=$EXEEXT
3316 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 + /* end confdefs.h.  */
3318 + #include <stdio.h>
3319 + int
3320 + main ()
3321 + {
3322 + FILE *f = fopen ("conftest.out", "w");
3323 + return ferror (f) || fclose (f) != 0;
3324 +
3325 +  ;
3326 +  return 0;
3327 + }
3328 + _ACEOF
3329 + ac_clean_files="$ac_clean_files conftest.out"
3330 + # Check that the compiler produces executables we can run.  If not, either
3331 + # the compiler is broken, or we cross compile.
3332 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 + if test "$cross_compiling" != yes; then
3335 +  { { ac_try="$ac_link"
3336 + case "(($ac_try" in
3337 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 +  *) ac_try_echo=$ac_try;;
3339 + esac
3340 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 + $as_echo "$ac_try_echo"; } >&5
3342 +  (eval "$ac_link") 2>&5
3343 +  ac_status=$?
3344 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 +  test $ac_status = 0; }
3346 +  if { ac_try='./conftest$ac_cv_exeext'
3347 +  { { case "(($ac_try" in
3348 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 +  *) ac_try_echo=$ac_try;;
3350 + esac
3351 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 + $as_echo "$ac_try_echo"; } >&5
3353 +  (eval "$ac_try") 2>&5
3354 +  ac_status=$?
3355 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 +  test $ac_status = 0; }; }; then
3357 +    cross_compiling=no
3358 +  else
3359 +    if test "$cross_compiling" = maybe; then
3360 +        cross_compiling=yes
3361 +    else
3362 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 + as_fn_error $? "cannot run C++ compiled programs.
3365 + If you meant to cross compile, use \`--host'.
3366 + See \`config.log' for more details" "$LINENO" 5; }
3367 +    fi
3368 +  fi
3369 + fi
3370 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3371 + $as_echo "$cross_compiling" >&6; }
3372 +
3373 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3374 + ac_clean_files=$ac_clean_files_save
3375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3376   $as_echo_n "checking for suffix of object files... " >&6; }
3377 < if test "${ac_cv_objext+set}" = set; then :
3377 > if ${ac_cv_objext+:} false; then :
3378    $as_echo_n "(cached) " >&6
3379   else
3380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3700 | Line 3414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414  
3415   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 < as_fn_error "cannot compute suffix of object files: cannot compile
3418 < See \`config.log' for more details." "$LINENO" 5; }
3417 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3418 > See \`config.log' for more details" "$LINENO" 5; }
3419   fi
3420   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3421   fi
# Line 3711 | Line 3425 | $as_echo_n "checking whether we are using the GNU C++
3425   ac_objext=$OBJEXT
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3427   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3428 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3428 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3429    $as_echo_n "(cached) " >&6
3430   else
3431    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3748 | Line 3462 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3462   ac_save_CXXFLAGS=$CXXFLAGS
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3464   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3465 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3465 > if ${ac_cv_prog_cxx_g+:} false; then :
3466    $as_echo_n "(cached) " >&6
3467   else
3468    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3824 | Line 3538 | fi
3538      CXXFLAGS=
3539    fi
3540   fi
3541 < ac_ext=cpp
3542 < ac_cpp='$CXXCPP $CPPFLAGS'
3543 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3541 > ac_ext=c
3542 > ac_cpp='$CPP $CPPFLAGS'
3543 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3546  
3547 <
3548 <
3549 <
3550 <
3551 <
3552 <
3553 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3554 < do
3555 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 < set dummy $ac_prog; ac_word=$2
3547 > ac_ext=c
3548 > ac_cpp='$CPP $CPPFLAGS'
3549 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 > if test -n "$ac_tool_prefix"; then
3553 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3554 >  do
3555 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558   $as_echo_n "checking for $ac_word... " >&6; }
3559 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3559 > if ${ac_cv_prog_CC+:} false; then :
3560    $as_echo_n "(cached) " >&6
3561   else
3562 <  if test -n "$MPICXX"; then
3563 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3562 >  if test -n "$CC"; then
3563 >  ac_cv_prog_CC="$CC" # Let the user override the test.
3564   else
3565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566   for as_dir in $PATH
# Line 3855 | Line 3569 | do
3569    test -z "$as_dir" && as_dir=.
3570      for ac_exec_ext in '' $ac_executable_extensions; do
3571    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 <    ac_cv_prog_MPICXX="$ac_prog"
3572 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574      break 2
3575    fi
# Line 3865 | Line 3579 | fi
3579  
3580   fi
3581   fi
3582 < MPICXX=$ac_cv_prog_MPICXX
3583 < if test -n "$MPICXX"; then
3584 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3585 < $as_echo "$MPICXX" >&6; }
3582 > CC=$ac_cv_prog_CC
3583 > if test -n "$CC"; then
3584 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 > $as_echo "$CC" >&6; }
3586   else
3587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588   $as_echo "no" >&6; }
3589   fi
3590  
3591  
3592 <  test -n "$MPICXX" && break
3593 < done
3880 < test -n "$MPICXX" || MPICXX="$CXX"
3881 <
3882 <        ax_mpi_save_CXX="$CXX"
3883 <        CXX="$MPICXX"
3884 <
3885 <
3886 <
3887 < if test x = x"$MPILIBS"; then
3888 <        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3889 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3890 <  MPILIBS=" "
3592 >    test -n "$CC" && break
3593 >  done
3594   fi
3595 <
3596 < fi
3597 <
3598 < if test x = x"$MPILIBS"; then
3599 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3600 < $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3601 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3595 > if test -z "$CC"; then
3596 >  ac_ct_CC=$CC
3597 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3598 > do
3599 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 > set dummy $ac_prog; ac_word=$2
3601 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 > $as_echo_n "checking for $ac_word... " >&6; }
3603 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3604    $as_echo_n "(cached) " >&6
3605   else
3901  ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lmpi  $LIBS"
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 /* Override any GCC internal prototype to avoid an error.
3907   Use char because int might match the return type of a GCC
3908   builtin and then its argument prototype would still apply.  */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 char MPI_Init ();
3913 int
3914 main ()
3915 {
3916 return MPI_Init ();
3917  ;
3918  return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_cxx_try_link "$LINENO"; then :
3922  ac_cv_lib_mpi_MPI_Init=yes
3923 else
3924  ac_cv_lib_mpi_MPI_Init=no
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext \
3927    conftest$ac_exeext conftest.$ac_ext
3928 LIBS=$ac_check_lib_save_LIBS
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3931 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3932 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3933  MPILIBS="-lmpi"
3934 fi
3935
3936 fi
3937 if test x = x"$MPILIBS"; then
3938        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3939 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3940 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3941  $as_echo_n "(cached) " >&6
3942 else
3943  ac_check_lib_save_LIBS=$LIBS
3944 LIBS="-lmpich  $LIBS"
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 /* Override any GCC internal prototype to avoid an error.
3949   Use char because int might match the return type of a GCC
3950   builtin and then its argument prototype would still apply.  */
3951 #ifdef __cplusplus
3952 extern "C"
3953 #endif
3954 char MPI_Init ();
3955 int
3956 main ()
3957 {
3958 return MPI_Init ();
3959  ;
3960  return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_cxx_try_link "$LINENO"; then :
3964  ac_cv_lib_mpich_MPI_Init=yes
3965 else
3966  ac_cv_lib_mpich_MPI_Init=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext \
3969    conftest$ac_exeext conftest.$ac_ext
3970 LIBS=$ac_check_lib_save_LIBS
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3973 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3974 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3975  MPILIBS="-lmpich"
3976 fi
3977
3978 fi
3979
3980 if test x != x"$MPILIBS"; then
3981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
3982 $as_echo_n "checking for mpi.h... " >&6; }
3983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #include <mpi.h>
3986 int
3987 main ()
3988 {
3989
3990  ;
3991  return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_cxx_try_compile "$LINENO"; then :
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998  MPILIBS=""
3999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005 CXX="$ax_mpi_save_CXX"
4006
4007
4008
4009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4010 if test x = x"$MPILIBS"; then
4011        USE_MPI="no"
4012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4013 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4014        :
4015 else
4016        USE_MPI="yes"
4017        :
4018 fi
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031  $as_echo_n "(cached) " >&6
4032 else
4033  if test -n "$CC"; then
4034  ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045    break 2
4046  fi
4047 done
4048  done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_CC"; then
4065  ac_ct_CC=$CC
4066  # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071  $as_echo_n "(cached) " >&6
4072 else
3606    if test -n "$ac_ct_CC"; then
3607    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608   else
# Line 4080 | Line 3613 | do
3613    test -z "$as_dir" && as_dir=.
3614      for ac_exec_ext in '' $ac_executable_extensions; do
3615    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083    ac_cv_prog_ac_ct_CC="gcc"
4084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087 done
4088  done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102  if test "x$ac_ct_CC" = x; then
4103    CC=""
4104  else
4105    case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111    CC=$ac_ct_CC
4112  fi
4113 else
4114  CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118          if test -n "$ac_tool_prefix"; then
4119    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if test "${ac_cv_prog_CC+set}" = set; then :
4124  $as_echo_n "(cached) " >&6
4125 else
4126  if test -n "$CC"; then
4127  ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134    for ac_exec_ext in '' $ac_executable_extensions; do
4135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136    ac_cv_prog_CC="${ac_tool_prefix}cc"
4137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138    break 2
4139  fi
4140 done
4141  done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156  fi
4157 fi
4158 if test -z "$CC"; then
4159  # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then :
4164  $as_echo_n "(cached) " >&6
4165 else
4166  if test -n "$CC"; then
4167  ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169  ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178       ac_prog_rejected=yes
4179       continue
4180     fi
4181    ac_cv_prog_CC="cc"
4182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183    break 2
4184  fi
4185 done
4186  done
4187 IFS=$as_save_IFS
4188
4189 if test $ac_prog_rejected = yes; then
4190  # We found a bogon in the path, so make sure we never use it.
4191  set dummy $ac_cv_prog_CC
4192  shift
4193  if test $# != 0; then
4194    # We chose a different compiler from the bogus one.
4195    # However, it has the same basename, so the bogon will be chosen
4196    # first if we set CC to just the basename; use the full file name.
4197    shift
4198    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199  fi
4200 fi
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4207 else
4208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$CC"; then
4215  if test -n "$ac_tool_prefix"; then
4216  for ac_prog in cl.exe
4217  do
4218    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_CC+set}" = set; then :
4223  $as_echo_n "(cached) " >&6
4224 else
4225  if test -n "$CC"; then
4226  ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233    for ac_exec_ext in '' $ac_executable_extensions; do
4234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239 done
4240  done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4249 else
4250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255    test -n "$CC" && break
4256  done
4257 fi
4258 if test -z "$CC"; then
4259  ac_ct_CC=$CC
4260  for ac_prog in cl.exe
4261 do
4262  # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267  $as_echo_n "(cached) " >&6
4268 else
4269  if test -n "$ac_ct_CC"; then
4270  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616      ac_cv_prog_ac_ct_CC="$ac_prog"
3617      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618      break 2
# Line 4312 | Line 3649 | fi
3649    fi
3650   fi
3651  
4315 fi
3652  
4317
3653   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655 < as_fn_error "no acceptable C compiler found in \$PATH
3656 < See \`config.log' for more details." "$LINENO" 5; }
3655 > as_fn_error $? "no acceptable C compiler found in \$PATH
3656 > See \`config.log' for more details" "$LINENO" 5; }
3657  
3658   # Provide some information about the compiler.
3659   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 4339 | Line 3674 | $as_echo "$ac_try_echo"; } >&5
3674   ... rest of stderr output deleted ...
3675           10q' conftest.err >conftest.er1
3676      cat conftest.er1 >&5
4342    rm -f conftest.er1 conftest.err
3677    fi
3678 +  rm -f conftest.er1 conftest.err
3679    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680    test $ac_status = 0; }
3681   done
3682  
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3684   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3685 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3685 > if ${ac_cv_c_compiler_gnu+:} false; then :
3686    $as_echo_n "(cached) " >&6
3687   else
3688    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 4384 | Line 3719 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3719   ac_save_CFLAGS=$CFLAGS
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3721   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3722 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3722 > if ${ac_cv_prog_cc_g+:} false; then :
3723    $as_echo_n "(cached) " >&6
3724   else
3725    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 4462 | Line 3797 | $as_echo_n "checking for $CC option to accept ISO C89.
3797   fi
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3799   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3800 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3800 > if ${ac_cv_prog_cc_c89+:} false; then :
3801    $as_echo_n "(cached) " >&6
3802   else
3803    ac_cv_prog_cc_c89=no
# Line 4556 | Line 3891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560
4561 if test $USE_MPI != no; then :
4562
4563 ac_ext=c
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
4569
4570
4571
4572
4573
4574        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4575 do
4576  # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_MPICC+set}" = set; then :
4581  $as_echo_n "(cached) " >&6
4582 else
4583  if test -n "$MPICC"; then
4584  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_exec_ext in '' $ac_executable_extensions; do
4592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593    ac_cv_prog_MPICC="$ac_prog"
4594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597 done
4598  done
4599 IFS=$as_save_IFS
3894  
4601 fi
4602 fi
4603 MPICC=$ac_cv_prog_MPICC
4604 if test -n "$MPICC"; then
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4606 $as_echo "$MPICC" >&6; }
4607 else
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612
4613  test -n "$MPICC" && break
4614 done
4615 test -n "$MPICC" || MPICC="$CC"
4616
4617        ax_mpi_save_CC="$CC"
4618        CC="$MPICC"
4619
4620
4621
4622 if test x = x"$MPILIBS"; then
4623        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4624 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4625  MPILIBS=" "
4626 fi
4627
4628 fi
4629
4630 if test x = x"$MPILIBS"; then
4631        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4632 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4633 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4634  $as_echo_n "(cached) " >&6
4635 else
4636  ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-lmpi  $LIBS"
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640
4641 /* Override any GCC internal prototype to avoid an error.
4642   Use char because int might match the return type of a GCC
4643   builtin and then its argument prototype would still apply.  */
4644 #ifdef __cplusplus
4645 extern "C"
4646 #endif
4647 char MPI_Init ();
4648 int
4649 main ()
4650 {
4651 return MPI_Init ();
4652  ;
4653  return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_link "$LINENO"; then :
4657  ac_cv_lib_mpi_MPI_Init=yes
4658 else
4659  ac_cv_lib_mpi_MPI_Init=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext \
4662    conftest$ac_exeext conftest.$ac_ext
4663 LIBS=$ac_check_lib_save_LIBS
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4666 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4667 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4668  MPILIBS="-lmpi"
4669 fi
4670
4671 fi
4672 if test x = x"$MPILIBS"; then
4673        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4674 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4675 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677 else
4678  ac_check_lib_save_LIBS=$LIBS
4679 LIBS="-lmpich  $LIBS"
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682
4683 /* Override any GCC internal prototype to avoid an error.
4684   Use char because int might match the return type of a GCC
4685   builtin and then its argument prototype would still apply.  */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 char MPI_Init ();
4690 int
4691 main ()
4692 {
4693 return MPI_Init ();
4694  ;
4695  return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_link "$LINENO"; then :
4699  ac_cv_lib_mpich_MPI_Init=yes
4700 else
4701  ac_cv_lib_mpich_MPI_Init=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext \
4704    conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4708 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4709 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4710  MPILIBS="-lmpich"
4711 fi
4712
4713 fi
4714
4715 if test x != x"$MPILIBS"; then
4716        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4717 $as_echo_n "checking for mpi.h... " >&6; }
4718        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <mpi.h>
4721 int
4722 main ()
4723 {
4724
4725  ;
4726  return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733  MPILIBS=""
4734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739
4740 CC="$ax_mpi_save_CC"
4741
4742
4743
4744 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4745 if test x = x"$MPILIBS"; then
4746        USE_MPI="no"
4747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4748 $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4749        :
4750 else
4751        USE_MPI="yes"
4752        :
4753 fi
4754
4755
4756 fi
3895   ac_ext=${ac_fc_srcext-f}
3896   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3897   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3898   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3899   if test -n "$ac_tool_prefix"; then
3900 <  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3900 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3901    do
3902      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905   $as_echo_n "checking for $ac_word... " >&6; }
3906 < if test "${ac_cv_prog_FC+set}" = set; then :
3906 > if ${ac_cv_prog_FC+:} false; then :
3907    $as_echo_n "(cached) " >&6
3908   else
3909    if test -n "$FC"; then
# Line 4803 | Line 3941 | if test -z "$FC"; then
3941   fi
3942   if test -z "$FC"; then
3943    ac_ct_FC=$FC
3944 <  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
3944 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3945   do
3946    # Extract the first word of "$ac_prog", so it can be a program name with args.
3947   set dummy $ac_prog; ac_word=$2
3948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949   $as_echo_n "checking for $ac_word... " >&6; }
3950 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
3950 > if ${ac_cv_prog_ac_ct_FC+:} false; then :
3951    $as_echo_n "(cached) " >&6
3952   else
3953    if test -n "$ac_ct_FC"; then
# Line 4878 | Line 4016 | $as_echo "$ac_try_echo"; } >&5
4016   ... rest of stderr output deleted ...
4017           10q' conftest.err >conftest.er1
4018      cat conftest.er1 >&5
4881    rm -f conftest.er1 conftest.err
4019    fi
4020 +  rm -f conftest.er1 conftest.err
4021    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022    test $ac_status = 0; }
4023   done
# Line 4891 | Line 4029 | $as_echo_n "checking whether we are using the GNU Fort
4029   ac_ext=F
4030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4031   $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4032 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4032 > if ${ac_cv_fc_compiler_gnu+:} false; then :
4033    $as_echo_n "(cached) " >&6
4034   else
4035    cat > conftest.$ac_ext <<_ACEOF
# Line 4919 | Line 4057 | $as_echo_n "checking whether $FC accepts -g... " >&6;
4057   FCFLAGS=
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4059   $as_echo_n "checking whether $FC accepts -g... " >&6; }
4060 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4060 > if ${ac_cv_prog_fc_g+:} false; then :
4061    $as_echo_n "(cached) " >&6
4062   else
4063    FCFLAGS=-g
# Line 4954 | Line 4092 | fi
4092    fi
4093   fi
4094  
4095 < ac_ext=${ac_fc_srcext-f}
4096 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4097 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4098 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4095 > ac_ext=c
4096 > ac_cpp='$CPP $CPPFLAGS'
4097 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100  
4101  
4102 < if test $USE_MPI != no; then :
4102 > save_CXX=$CXX
4103 > save_CC=$CC
4104 > save_FC=$FC
4105 > save_LIBS=$LIBS
4106  
4107 < ac_ext=${ac_fc_srcext-f}
4108 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4109 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4110 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4107 > ac_ext=cpp
4108 > ac_cpp='$CXXCPP $CPPFLAGS'
4109 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4112 >
4113 >
4114 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
4115 > $as_echo_n "checking for dlopen in -lc... " >&6; }
4116 > if ${ac_cv_lib_c_dlopen+:} false; then :
4117 >  $as_echo_n "(cached) " >&6
4118 > else
4119 >  ac_check_lib_save_LIBS=$LIBS
4120 > LIBS="-lc  $LIBS"
4121 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 > /* end confdefs.h.  */
4123 >
4124 > /* Override any GCC internal prototype to avoid an error.
4125 >   Use char because int might match the return type of a GCC
4126 >   builtin and then its argument prototype would still apply.  */
4127 > #ifdef __cplusplus
4128 > extern "C"
4129 > #endif
4130 > char dlopen ();
4131 > int
4132 > main ()
4133 > {
4134 > return dlopen ();
4135 >  ;
4136 >  return 0;
4137 > }
4138 > _ACEOF
4139 > if ac_fn_cxx_try_link "$LINENO"; then :
4140 >  ac_cv_lib_c_dlopen=yes
4141 > else
4142 >  ac_cv_lib_c_dlopen=no
4143 > fi
4144 > rm -f core conftest.err conftest.$ac_objext \
4145 >    conftest$ac_exeext conftest.$ac_ext
4146 > LIBS=$ac_check_lib_save_LIBS
4147 > fi
4148 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
4149 > $as_echo "$ac_cv_lib_c_dlopen" >&6; }
4150 > if test "x$ac_cv_lib_c_dlopen" = xyes; then :
4151 >  LIBDL=""
4152 > else
4153 >  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4154 > $as_echo_n "checking for dlopen in -ldl... " >&6; }
4155 > if ${ac_cv_lib_dl_dlopen+:} false; then :
4156 >  $as_echo_n "(cached) " >&6
4157 > else
4158 >  ac_check_lib_save_LIBS=$LIBS
4159 > LIBS="-ldl  $LIBS"
4160 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 > /* end confdefs.h.  */
4162  
4163 + /* Override any GCC internal prototype to avoid an error.
4164 +   Use char because int might match the return type of a GCC
4165 +   builtin and then its argument prototype would still apply.  */
4166 + #ifdef __cplusplus
4167 + extern "C"
4168 + #endif
4169 + char dlopen ();
4170 + int
4171 + main ()
4172 + {
4173 + return dlopen ();
4174 +  ;
4175 +  return 0;
4176 + }
4177 + _ACEOF
4178 + if ac_fn_cxx_try_link "$LINENO"; then :
4179 +  ac_cv_lib_dl_dlopen=yes
4180 + else
4181 +  ac_cv_lib_dl_dlopen=no
4182 + fi
4183 + rm -f core conftest.err conftest.$ac_objext \
4184 +    conftest$ac_exeext conftest.$ac_ext
4185 + LIBS=$ac_check_lib_save_LIBS
4186 + fi
4187 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4188 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4189 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4190 +  LIBDL="-ldl"
4191 + fi
4192  
4193 + fi
4194  
4195  
4196  
4197  
4198 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4198 >
4199 >
4200 >
4201 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
4202   do
4203    # Extract the first word of "$ac_prog", so it can be a program name with args.
4204   set dummy $ac_prog; ac_word=$2
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206   $as_echo_n "checking for $ac_word... " >&6; }
4207 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4207 > if ${ac_cv_prog_MPICXX+:} false; then :
4208    $as_echo_n "(cached) " >&6
4209   else
4210 <  if test -n "$MPIFC"; then
4211 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4210 >  if test -n "$MPICXX"; then
4211 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
4212   else
4213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214   for as_dir in $PATH
# Line 4991 | Line 4217 | do
4217    test -z "$as_dir" && as_dir=.
4218      for ac_exec_ext in '' $ac_executable_extensions; do
4219    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 <    ac_cv_prog_MPIFC="$ac_prog"
4220 >    ac_cv_prog_MPICXX="$ac_prog"
4221      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222      break 2
4223    fi
# Line 5001 | Line 4227 | fi
4227  
4228   fi
4229   fi
4230 < MPIFC=$ac_cv_prog_MPIFC
4231 < if test -n "$MPIFC"; then
4232 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4233 < $as_echo "$MPIFC" >&6; }
4230 > MPICXX=$ac_cv_prog_MPICXX
4231 > if test -n "$MPICXX"; then
4232 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
4233 > $as_echo "$MPICXX" >&6; }
4234   else
4235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236   $as_echo "no" >&6; }
4237   fi
4238  
4239  
4240 <  test -n "$MPIFC" && break
4240 >  test -n "$MPICXX" && break
4241   done
4242 < test -n "$MPIFC" || MPIFC="$FC"
4242 > test -n "$MPICXX" || MPICXX="$CXX"
4243  
4244 <        ax_mpi_save_FC="$FC"
4245 <        FC="$MPIFC"
4244 >        ax_mpi_save_CXX="$CXX"
4245 >        CXX="$MPICXX"
4246  
4247  
4248  
4249   if test x = x"$MPILIBS"; then
4250 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4251 < $as_echo_n "checking for MPI_Init... " >&6; }
5026 <                        cat > conftest.$ac_ext <<_ACEOF
5027 <      program main
5028 <      call MPI_Init
5029 <      end
5030 < _ACEOF
5031 < if ac_fn_fc_try_link "$LINENO"; then :
4250 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4251 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4252    MPILIBS=" "
5033                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
4253   fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041 fi
4254  
5043        if test x = x"$MPILIBS"; then
5044                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5045 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5046 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048 else
5049  ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lfmpi  $LIBS"
5051 cat > conftest.$ac_ext <<_ACEOF
5052      program main
5053      call MPI_Init
5054      end
5055 _ACEOF
5056 if ac_fn_fc_try_link "$LINENO"; then :
5057  ac_cv_lib_fmpi_MPI_Init=yes
5058 else
5059  ac_cv_lib_fmpi_MPI_Init=no
4255   fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5066 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5067 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5068  MPILIBS="-lfmpi"
5069 fi
4256  
5071        fi
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5074 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5075 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lmpichf90  $LIBS"
5080 cat > conftest.$ac_ext <<_ACEOF
5081      program main
5082      call MPI_Init
5083      end
5084 _ACEOF
5085 if ac_fn_fc_try_link "$LINENO"; then :
5086  ac_cv_lib_mpichf90_MPI_Init=yes
5087 else
5088  ac_cv_lib_mpichf90_MPI_Init=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091    conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5097  MPILIBS="-lmpichf90"
5098 fi
5099
5100        fi
5101
4257   if test x = x"$MPILIBS"; then
4258          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4259   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4260 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4260 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4261    $as_echo_n "(cached) " >&6
4262   else
4263    ac_check_lib_save_LIBS=$LIBS
4264   LIBS="-lmpi  $LIBS"
4265 < cat > conftest.$ac_ext <<_ACEOF
4266 <      program main
4267 <      call MPI_Init
4268 <      end
4265 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 > /* end confdefs.h.  */
4267 >
4268 > /* Override any GCC internal prototype to avoid an error.
4269 >   Use char because int might match the return type of a GCC
4270 >   builtin and then its argument prototype would still apply.  */
4271 > #ifdef __cplusplus
4272 > extern "C"
4273 > #endif
4274 > char MPI_Init ();
4275 > int
4276 > main ()
4277 > {
4278 > return MPI_Init ();
4279 >  ;
4280 >  return 0;
4281 > }
4282   _ACEOF
4283 < if ac_fn_fc_try_link "$LINENO"; then :
4283 > if ac_fn_cxx_try_link "$LINENO"; then :
4284    ac_cv_lib_mpi_MPI_Init=yes
4285   else
4286    ac_cv_lib_mpi_MPI_Init=no
# Line 5123 | Line 4291 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4291   fi
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4293   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4294 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4294 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4295    MPILIBS="-lmpi"
4296   fi
4297  
# Line 5131 | Line 4299 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4299   if test x = x"$MPILIBS"; then
4300          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4301   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4302 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4302 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4303    $as_echo_n "(cached) " >&6
4304   else
4305    ac_check_lib_save_LIBS=$LIBS
4306   LIBS="-lmpich  $LIBS"
4307 < cat > conftest.$ac_ext <<_ACEOF
4308 <      program main
4309 <      call MPI_Init
4310 <      end
4307 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 > /* end confdefs.h.  */
4309 >
4310 > /* Override any GCC internal prototype to avoid an error.
4311 >   Use char because int might match the return type of a GCC
4312 >   builtin and then its argument prototype would still apply.  */
4313 > #ifdef __cplusplus
4314 > extern "C"
4315 > #endif
4316 > char MPI_Init ();
4317 > int
4318 > main ()
4319 > {
4320 > return MPI_Init ();
4321 >  ;
4322 >  return 0;
4323 > }
4324   _ACEOF
4325 < if ac_fn_fc_try_link "$LINENO"; then :
4325 > if ac_fn_cxx_try_link "$LINENO"; then :
4326    ac_cv_lib_mpich_MPI_Init=yes
4327   else
4328    ac_cv_lib_mpich_MPI_Init=no
# Line 5152 | Line 4333 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4333   fi
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4335   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4336 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4336 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4337    MPILIBS="-lmpich"
4338   fi
4339  
4340   fi
4341  
4342   if test x != x"$MPILIBS"; then
4343 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4344 < $as_echo_n "checking for mpif.h... " >&6; }
4345 <        cat > conftest.$ac_ext <<_ACEOF
4346 <      program main
4347 <      include 'mpif.h'
4348 <      end
4343 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4344 > $as_echo_n "checking for mpi.h... " >&6; }
4345 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 > /* end confdefs.h.  */
4347 > #include <mpi.h>
4348 > int
4349 > main ()
4350 > {
4351 >
4352 >  ;
4353 >  return 0;
4354 > }
4355   _ACEOF
4356 < if ac_fn_fc_try_compile "$LINENO"; then :
4356 > if ac_fn_cxx_try_compile "$LINENO"; then :
4357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358   $as_echo "yes" >&6; }
4359   else
# Line 5177 | Line 4364 | fi
4364   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365   fi
4366  
4367 < FC="$ax_mpi_save_FC"
4367 > CXX="$ax_mpi_save_CXX"
4368  
4369  
4370  
4371   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4372   if test x = x"$MPILIBS"; then
4373          USE_MPI="no"
4374 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4375 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4374 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4375 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4376          :
4377   else
4378          USE_MPI="yes"
# Line 5193 | Line 4380 | fi
4380   fi
4381  
4382  
5196 fi
4383   if test $USE_MPI != no; then :
4384  
4385 <        CXX=$MPICXX
4386 <        CC=$MPICC
4387 <        FC=$MPIFC
4385 > ac_ext=c
4386 > ac_cpp='$CPP $CPPFLAGS'
4387 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390  
5203 fi
4391  
4392  
5206 # Checks for programs.
5207 ac_ext=cpp
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5212 if test -z "$CXX"; then
5213  if test -n "$CCC"; then
5214    CXX=$CCC
5215  else
5216    if test -n "$ac_tool_prefix"; then
5217  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5218  do
5219    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_CXX+set}" = set; then :
5224  $as_echo_n "(cached) " >&6
5225 else
5226  if test -n "$CXX"; then
5227  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232  IFS=$as_save_IFS
5233  test -z "$as_dir" && as_dir=.
5234    for ac_exec_ext in '' $ac_executable_extensions; do
5235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240 done
5241  done
5242 IFS=$as_save_IFS
4393  
5244 fi
5245 fi
5246 CXX=$ac_cv_prog_CXX
5247 if test -n "$CXX"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5249 $as_echo "$CXX" >&6; }
5250 else
5251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5253 fi
4394  
4395  
4396 <    test -n "$CXX" && break
5257 <  done
5258 < fi
5259 < if test -z "$CXX"; then
5260 <  ac_ct_CXX=$CXX
5261 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4396 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4397   do
4398    # Extract the first word of "$ac_prog", so it can be a program name with args.
4399   set dummy $ac_prog; ac_word=$2
4400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401   $as_echo_n "checking for $ac_word... " >&6; }
4402 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4402 > if ${ac_cv_prog_MPICC+:} false; then :
4403    $as_echo_n "(cached) " >&6
4404   else
4405 <  if test -n "$ac_ct_CXX"; then
4406 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4405 >  if test -n "$MPICC"; then
4406 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4407   else
4408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409   for as_dir in $PATH
# Line 5277 | Line 4412 | do
4412    test -z "$as_dir" && as_dir=.
4413      for ac_exec_ext in '' $ac_executable_extensions; do
4414    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4415 >    ac_cv_prog_MPICC="$ac_prog"
4416      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417      break 2
4418    fi
# Line 5287 | Line 4422 | fi
4422  
4423   fi
4424   fi
4425 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4426 < if test -n "$ac_ct_CXX"; then
4427 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 < $as_echo "$ac_ct_CXX" >&6; }
4425 > MPICC=$ac_cv_prog_MPICC
4426 > if test -n "$MPICC"; then
4427 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4428 > $as_echo "$MPICC" >&6; }
4429   else
4430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431   $as_echo "no" >&6; }
4432   fi
4433  
4434  
4435 <  test -n "$ac_ct_CXX" && break
4435 >  test -n "$MPICC" && break
4436   done
4437 + test -n "$MPICC" || MPICC="$CC"
4438  
4439 <  if test "x$ac_ct_CXX" = x; then
4440 <    CXX="g++"
4441 <  else
4442 <    case $cross_compiling:$ac_tool_warned in
4443 < yes:)
4444 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446 < ac_tool_warned=yes ;;
4447 < esac
5312 <    CXX=$ac_ct_CXX
5313 <  fi
4439 >        ax_mpi_save_CC="$CC"
4440 >        CC="$MPICC"
4441 >
4442 >
4443 >
4444 > if test x = x"$MPILIBS"; then
4445 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4446 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4447 >  MPILIBS=" "
4448   fi
4449  
5316  fi
4450   fi
5318 # Provide some information about the compiler.
5319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5320 set X $ac_compile
5321 ac_compiler=$2
5322 for ac_option in --version -v -V -qversion; do
5323  { { ac_try="$ac_compiler $ac_option >&5"
5324 case "(($ac_try" in
5325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326  *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5329 $as_echo "$ac_try_echo"; } >&5
5330  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5331  ac_status=$?
5332  if test -s conftest.err; then
5333    sed '10a\
5334 ... rest of stderr output deleted ...
5335         10q' conftest.err >conftest.er1
5336    cat conftest.er1 >&5
5337    rm -f conftest.er1 conftest.err
5338  fi
5339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340  test $ac_status = 0; }
5341 done
4451  
4452 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4453 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4454 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4452 > if test x = x"$MPILIBS"; then
4453 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4454 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4455 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4456    $as_echo_n "(cached) " >&6
4457   else
4458 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 >  ac_check_lib_save_LIBS=$LIBS
4459 > LIBS="-lmpi  $LIBS"
4460 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461   /* end confdefs.h.  */
4462  
4463 + /* Override any GCC internal prototype to avoid an error.
4464 +   Use char because int might match the return type of a GCC
4465 +   builtin and then its argument prototype would still apply.  */
4466 + #ifdef __cplusplus
4467 + extern "C"
4468 + #endif
4469 + char MPI_Init ();
4470   int
4471   main ()
4472   {
4473 < #ifndef __GNUC__
5355 <       choke me
5356 < #endif
5357 <
4473 > return MPI_Init ();
4474    ;
4475    return 0;
4476   }
4477   _ACEOF
4478 < if ac_fn_cxx_try_compile "$LINENO"; then :
4479 <  ac_compiler_gnu=yes
4478 > if ac_fn_c_try_link "$LINENO"; then :
4479 >  ac_cv_lib_mpi_MPI_Init=yes
4480   else
4481 <  ac_compiler_gnu=no
4481 >  ac_cv_lib_mpi_MPI_Init=no
4482   fi
4483 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4485 <
4483 > rm -f core conftest.err conftest.$ac_objext \
4484 >    conftest$ac_exeext conftest.$ac_ext
4485 > LIBS=$ac_check_lib_save_LIBS
4486   fi
4487 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4488 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4489 < if test $ac_compiler_gnu = yes; then
4490 <  GXX=yes
5375 < else
5376 <  GXX=
4487 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4488 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4489 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4490 >  MPILIBS="-lmpi"
4491   fi
4492 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4493 < ac_save_CXXFLAGS=$CXXFLAGS
4494 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4495 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4496 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4492 >
4493 > fi
4494 > if test x = x"$MPILIBS"; then
4495 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4496 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4497 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4498    $as_echo_n "(cached) " >&6
4499   else
4500 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4501 <   ac_cxx_werror_flag=yes
4502 <   ac_cv_prog_cxx_g=no
5388 <   CXXFLAGS="-g"
5389 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 >  ac_check_lib_save_LIBS=$LIBS
4501 > LIBS="-lmpich  $LIBS"
4502 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503   /* end confdefs.h.  */
4504  
4505 + /* Override any GCC internal prototype to avoid an error.
4506 +   Use char because int might match the return type of a GCC
4507 +   builtin and then its argument prototype would still apply.  */
4508 + #ifdef __cplusplus
4509 + extern "C"
4510 + #endif
4511 + char MPI_Init ();
4512   int
4513   main ()
4514   {
4515 <
4515 > return MPI_Init ();
4516    ;
4517    return 0;
4518   }
4519   _ACEOF
4520 < if ac_fn_cxx_try_compile "$LINENO"; then :
4521 <  ac_cv_prog_cxx_g=yes
4520 > if ac_fn_c_try_link "$LINENO"; then :
4521 >  ac_cv_lib_mpich_MPI_Init=yes
4522   else
4523 <  CXXFLAGS=""
4524 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 < /* end confdefs.h.  */
4523 >  ac_cv_lib_mpich_MPI_Init=no
4524 > fi
4525 > rm -f core conftest.err conftest.$ac_objext \
4526 >    conftest$ac_exeext conftest.$ac_ext
4527 > LIBS=$ac_check_lib_save_LIBS
4528 > fi
4529 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4530 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4531 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4532 >  MPILIBS="-lmpich"
4533 > fi
4534  
4535 < int
5408 < main ()
5409 < {
4535 > fi
4536  
4537 <  ;
4538 <  return 0;
4539 < }
4540 < _ACEOF
5415 < if ac_fn_cxx_try_compile "$LINENO"; then :
5416 <
5417 < else
5418 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5419 <         CXXFLAGS="-g"
5420 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 > if test x != x"$MPILIBS"; then
4538 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4539 > $as_echo_n "checking for mpi.h... " >&6; }
4540 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541   /* end confdefs.h.  */
4542 <
4542 > #include <mpi.h>
4543   int
4544   main ()
4545   {
# Line 5428 | Line 4548 | _ACEOF
4548    return 0;
4549   }
4550   _ACEOF
4551 < if ac_fn_cxx_try_compile "$LINENO"; then :
4552 <  ac_cv_prog_cxx_g=yes
4551 > if ac_fn_c_try_compile "$LINENO"; then :
4552 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 > $as_echo "yes" >&6; }
4554 > else
4555 >  MPILIBS=""
4556 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 > $as_echo "no" >&6; }
4558   fi
4559   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560   fi
4561 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 < fi
4563 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4565 < fi
4566 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4567 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4568 < if test "$ac_test_CXXFLAGS" = set; then
4569 <  CXXFLAGS=$ac_save_CXXFLAGS
4570 < elif test $ac_cv_prog_cxx_g = yes; then
4571 <  if test "$GXX" = yes; then
5447 <    CXXFLAGS="-g -O2"
5448 <  else
5449 <    CXXFLAGS="-g"
5450 <  fi
4561 >
4562 > CC="$ax_mpi_save_CC"
4563 >
4564 >
4565 >
4566 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4567 > if test x = x"$MPILIBS"; then
4568 >        USE_MPI="no"
4569 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4570 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4571 >        :
4572   else
4573 <  if test "$GXX" = yes; then
4574 <    CXXFLAGS="-O2"
5454 <  else
5455 <    CXXFLAGS=
5456 <  fi
4573 >        USE_MPI="yes"
4574 >        :
4575   fi
4576 +
4577 +
4578 + fi
4579 +
4580 + if test $USE_MPI != no; then :
4581 +
4582   ac_ext=${ac_fc_srcext-f}
4583   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4584   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4585   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4586  
5463 ac_ext=c
5464 ac_cpp='$CPP $CPPFLAGS'
5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468 if test -n "$ac_tool_prefix"; then
5469  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5470  do
5471    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if test "${ac_cv_prog_CC+set}" = set; then :
5476  $as_echo_n "(cached) " >&6
5477 else
5478  if test -n "$CC"; then
5479  ac_cv_prog_CC="$CC" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484  IFS=$as_save_IFS
5485  test -z "$as_dir" && as_dir=.
5486    for ac_exec_ext in '' $ac_executable_extensions; do
5487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5488    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490    break 2
5491  fi
5492 done
5493  done
5494 IFS=$as_save_IFS
4587  
5496 fi
5497 fi
5498 CC=$ac_cv_prog_CC
5499 if test -n "$CC"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5501 $as_echo "$CC" >&6; }
5502 else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
4588  
4589  
4590 <    test -n "$CC" && break
4591 <  done
4592 < fi
5511 < if test -z "$CC"; then
5512 <  ac_ct_CC=$CC
5513 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4590 >
4591 >
4592 >        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4593   do
4594    # Extract the first word of "$ac_prog", so it can be a program name with args.
4595   set dummy $ac_prog; ac_word=$2
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597   $as_echo_n "checking for $ac_word... " >&6; }
4598 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4598 > if ${ac_cv_prog_MPIFC+:} false; then :
4599    $as_echo_n "(cached) " >&6
4600   else
4601 <  if test -n "$ac_ct_CC"; then
4602 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4601 >  if test -n "$MPIFC"; then
4602 >  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4603   else
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605   for as_dir in $PATH
# Line 5529 | Line 4608 | do
4608    test -z "$as_dir" && as_dir=.
4609      for ac_exec_ext in '' $ac_executable_extensions; do
4610    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4611 >    ac_cv_prog_MPIFC="$ac_prog"
4612      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613      break 2
4614    fi
# Line 5539 | Line 4618 | fi
4618  
4619   fi
4620   fi
4621 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4622 < if test -n "$ac_ct_CC"; then
4623 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4624 < $as_echo "$ac_ct_CC" >&6; }
4621 > MPIFC=$ac_cv_prog_MPIFC
4622 > if test -n "$MPIFC"; then
4623 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4624 > $as_echo "$MPIFC" >&6; }
4625   else
4626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627   $as_echo "no" >&6; }
4628   fi
4629  
4630  
4631 <  test -n "$ac_ct_CC" && break
4631 >  test -n "$MPIFC" && break
4632   done
4633 + test -n "$MPIFC" || MPIFC="$FC"
4634  
4635 <  if test "x$ac_ct_CC" = x; then
4636 <    CC=""
5557 <  else
5558 <    case $cross_compiling:$ac_tool_warned in
5559 < yes:)
5560 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 < ac_tool_warned=yes ;;
5563 < esac
5564 <    CC=$ac_ct_CC
5565 <  fi
5566 < fi
4635 >        ax_mpi_save_FC="$FC"
4636 >        FC="$MPIFC"
4637  
4638  
5569 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5571 as_fn_error "no acceptable C compiler found in \$PATH
5572 See \`config.log' for more details." "$LINENO" 5; }
4639  
4640 < # Provide some information about the compiler.
4641 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4642 < set X $ac_compile
4643 < ac_compiler=$2
4644 < for ac_option in --version -v -V -qversion; do
4645 <  { { ac_try="$ac_compiler $ac_option >&5"
4646 < case "(($ac_try" in
5581 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 <  *) ac_try_echo=$ac_try;;
5583 < esac
5584 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5585 < $as_echo "$ac_try_echo"; } >&5
5586 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5587 <  ac_status=$?
5588 <  if test -s conftest.err; then
5589 <    sed '10a\
5590 < ... rest of stderr output deleted ...
5591 <         10q' conftest.err >conftest.er1
5592 <    cat conftest.er1 >&5
5593 <    rm -f conftest.er1 conftest.err
5594 <  fi
5595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 <  test $ac_status = 0; }
5597 < done
5598 <
5599 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5600 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5601 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5602 <  $as_echo_n "(cached) " >&6
5603 < else
5604 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 < /* end confdefs.h.  */
5606 <
5607 < int
5608 < main ()
5609 < {
5610 < #ifndef __GNUC__
5611 <       choke me
5612 < #endif
5613 <
5614 <  ;
5615 <  return 0;
5616 < }
4640 > if test x = x"$MPILIBS"; then
4641 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4642 > $as_echo_n "checking for MPI_Init... " >&6; }
4643 >                        cat > conftest.$ac_ext <<_ACEOF
4644 >      program main
4645 >      call MPI_Init
4646 >      end
4647   _ACEOF
4648 < if ac_fn_c_try_compile "$LINENO"; then :
4649 <  ac_compiler_gnu=yes
4648 > if ac_fn_fc_try_link "$LINENO"; then :
4649 >  MPILIBS=" "
4650 >                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651 > $as_echo "yes" >&6; }
4652   else
4653 <  ac_compiler_gnu=no
4653 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 > $as_echo "no" >&6; }
4655   fi
4656 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4657 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
5625 <
4656 > rm -f core conftest.err conftest.$ac_objext \
4657 >    conftest$ac_exeext conftest.$ac_ext
4658   fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5628 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5629 if test $ac_compiler_gnu = yes; then
5630  GCC=yes
5631 else
5632  GCC=
5633 fi
5634 ac_test_CFLAGS=${CFLAGS+set}
5635 ac_save_CFLAGS=$CFLAGS
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5637 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5638 if test "${ac_cv_prog_cc_g+set}" = set; then :
5639  $as_echo_n "(cached) " >&6
5640 else
5641  ac_save_c_werror_flag=$ac_c_werror_flag
5642   ac_c_werror_flag=yes
5643   ac_cv_prog_cc_g=no
5644   CFLAGS="-g"
5645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
4659  
4660 < int
4661 < main ()
4662 < {
4663 <
5652 <  ;
5653 <  return 0;
5654 < }
5655 < _ACEOF
5656 < if ac_fn_c_try_compile "$LINENO"; then :
5657 <  ac_cv_prog_cc_g=yes
5658 < else
5659 <  CFLAGS=""
5660 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 < /* end confdefs.h.  */
5662 <
5663 < int
5664 < main ()
5665 < {
5666 <
5667 <  ;
5668 <  return 0;
5669 < }
5670 < _ACEOF
5671 < if ac_fn_c_try_compile "$LINENO"; then :
5672 <
5673 < else
5674 <  ac_c_werror_flag=$ac_save_c_werror_flag
5675 <         CFLAGS="-g"
5676 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 < /* end confdefs.h.  */
5678 <
5679 < int
5680 < main ()
5681 < {
5682 <
5683 <  ;
5684 <  return 0;
5685 < }
5686 < _ACEOF
5687 < if ac_fn_c_try_compile "$LINENO"; then :
5688 <  ac_cv_prog_cc_g=yes
5689 < fi
5690 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 < fi
5692 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 < fi
5694 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 <   ac_c_werror_flag=$ac_save_c_werror_flag
5696 < fi
5697 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5698 < $as_echo "$ac_cv_prog_cc_g" >&6; }
5699 < if test "$ac_test_CFLAGS" = set; then
5700 <  CFLAGS=$ac_save_CFLAGS
5701 < elif test $ac_cv_prog_cc_g = yes; then
5702 <  if test "$GCC" = yes; then
5703 <    CFLAGS="-g -O2"
5704 <  else
5705 <    CFLAGS="-g"
5706 <  fi
5707 < else
5708 <  if test "$GCC" = yes; then
5709 <    CFLAGS="-O2"
5710 <  else
5711 <    CFLAGS=
5712 <  fi
5713 < fi
5714 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5715 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5716 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
4660 >        if test x = x"$MPILIBS"; then
4661 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4662 > $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4663 > if ${ac_cv_lib_fmpi_MPI_Init+:} false; then :
4664    $as_echo_n "(cached) " >&6
4665   else
4666 <  ac_cv_prog_cc_c89=no
4667 < ac_save_CC=$CC
4668 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 < /* end confdefs.h.  */
4670 < #include <stdarg.h>
4671 < #include <stdio.h>
5725 < #include <sys/types.h>
5726 < #include <sys/stat.h>
5727 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5728 < struct buf { int x; };
5729 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
5730 < static char *e (p, i)
5731 <     char **p;
5732 <     int i;
5733 < {
5734 <  return p[i];
5735 < }
5736 < static char *f (char * (*g) (char **, int), char **p, ...)
5737 < {
5738 <  char *s;
5739 <  va_list v;
5740 <  va_start (v,p);
5741 <  s = g (p, va_arg (v,int));
5742 <  va_end (v);
5743 <  return s;
5744 < }
5745 <
5746 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5747 <   function prototypes and stuff, but not '\xHH' hex character constants.
5748 <   These don't provoke an error unfortunately, instead are silently treated
5749 <   as 'x'.  The following induces an error, until -std is added to get
5750 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5751 <   array size at least.  It's necessary to write '\x00'==0 to get something
5752 <   that's true only with -std.  */
5753 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5754 <
5755 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5756 <   inside strings and character constants.  */
5757 < #define FOO(x) 'x'
5758 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5759 <
5760 < int test (int i, double x);
5761 < struct s1 {int (*f) (int a);};
5762 < struct s2 {int (*f) (double a);};
5763 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5764 < int argc;
5765 < char **argv;
5766 < int
5767 < main ()
5768 < {
5769 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5770 <  ;
5771 <  return 0;
5772 < }
4666 >  ac_check_lib_save_LIBS=$LIBS
4667 > LIBS="-lfmpi  $LIBS"
4668 > cat > conftest.$ac_ext <<_ACEOF
4669 >      program main
4670 >      call MPI_Init
4671 >      end
4672   _ACEOF
4673 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4674 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5776 < do
5777 <  CC="$ac_save_CC $ac_arg"
5778 <  if ac_fn_c_try_compile "$LINENO"; then :
5779 <  ac_cv_prog_cc_c89=$ac_arg
5780 < fi
5781 < rm -f core conftest.err conftest.$ac_objext
5782 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
5783 < done
5784 < rm -f conftest.$ac_ext
5785 < CC=$ac_save_CC
5786 <
5787 < fi
5788 < # AC_CACHE_VAL
5789 < case "x$ac_cv_prog_cc_c89" in
5790 <  x)
5791 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5792 < $as_echo "none needed" >&6; } ;;
5793 <  xno)
5794 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5795 < $as_echo "unsupported" >&6; } ;;
5796 <  *)
5797 <    CC="$CC $ac_cv_prog_cc_c89"
5798 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5799 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5800 < esac
5801 < if test "x$ac_cv_prog_cc_c89" != xno; then :
5802 <
5803 < fi
5804 <
5805 < ac_ext=${ac_fc_srcext-f}
5806 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5807 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5808 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5809 <
5810 < ac_ext=${ac_fc_srcext-f}
5811 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5812 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5813 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5814 < if test -n "$ac_tool_prefix"; then
5815 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5816 <  do
5817 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5818 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5819 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 < $as_echo_n "checking for $ac_word... " >&6; }
5821 < if test "${ac_cv_prog_FC+set}" = set; then :
5822 <  $as_echo_n "(cached) " >&6
4673 > if ac_fn_fc_try_link "$LINENO"; then :
4674 >  ac_cv_lib_fmpi_MPI_Init=yes
4675   else
4676 <  if test -n "$FC"; then
5825 <  ac_cv_prog_FC="$FC" # Let the user override the test.
5826 < else
5827 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 < for as_dir in $PATH
5829 < do
5830 <  IFS=$as_save_IFS
5831 <  test -z "$as_dir" && as_dir=.
5832 <    for ac_exec_ext in '' $ac_executable_extensions; do
5833 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5835 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 <    break 2
5837 <  fi
5838 < done
5839 <  done
5840 < IFS=$as_save_IFS
5841 <
4676 >  ac_cv_lib_fmpi_MPI_Init=no
4677   fi
4678 + rm -f core conftest.err conftest.$ac_objext \
4679 +    conftest$ac_exeext conftest.$ac_ext
4680 + LIBS=$ac_check_lib_save_LIBS
4681   fi
4682 < FC=$ac_cv_prog_FC
4683 < if test -n "$FC"; then
4684 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4685 < $as_echo "$FC" >&6; }
5848 < else
5849 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 < $as_echo "no" >&6; }
4682 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4683 > $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4684 > if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then :
4685 >  MPILIBS="-lfmpi"
4686   fi
4687  
4688 <
4689 <    test -n "$FC" && break
4690 <  done
4691 < fi
4692 < if test -z "$FC"; then
5858 <  ac_ct_FC=$FC
5859 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5860 < do
5861 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5862 < set dummy $ac_prog; ac_word=$2
5863 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 < $as_echo_n "checking for $ac_word... " >&6; }
5865 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4688 >        fi
4689 >        if test x = x"$MPILIBS"; then
4690 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4691 > $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4692 > if ${ac_cv_lib_mpichf90_MPI_Init+:} false; then :
4693    $as_echo_n "(cached) " >&6
4694   else
4695 <  if test -n "$ac_ct_FC"; then
4696 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4695 >  ac_check_lib_save_LIBS=$LIBS
4696 > LIBS="-lmpichf90  $LIBS"
4697 > cat > conftest.$ac_ext <<_ACEOF
4698 >      program main
4699 >      call MPI_Init
4700 >      end
4701 > _ACEOF
4702 > if ac_fn_fc_try_link "$LINENO"; then :
4703 >  ac_cv_lib_mpichf90_MPI_Init=yes
4704   else
4705 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 < for as_dir in $PATH
5873 < do
5874 <  IFS=$as_save_IFS
5875 <  test -z "$as_dir" && as_dir=.
5876 <    for ac_exec_ext in '' $ac_executable_extensions; do
5877 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 <    ac_cv_prog_ac_ct_FC="$ac_prog"
5879 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 <    break 2
5881 <  fi
5882 < done
5883 <  done
5884 < IFS=$as_save_IFS
5885 <
4705 >  ac_cv_lib_mpichf90_MPI_Init=no
4706   fi
4707 + rm -f core conftest.err conftest.$ac_objext \
4708 +    conftest$ac_exeext conftest.$ac_ext
4709 + LIBS=$ac_check_lib_save_LIBS
4710   fi
4711 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4712 < if test -n "$ac_ct_FC"; then
4713 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4714 < $as_echo "$ac_ct_FC" >&6; }
5892 < else
5893 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 < $as_echo "no" >&6; }
5895 < fi
5896 <
5897 <
5898 <  test -n "$ac_ct_FC" && break
5899 < done
5900 <
5901 <  if test "x$ac_ct_FC" = x; then
5902 <    FC=""
5903 <  else
5904 <    case $cross_compiling:$ac_tool_warned in
5905 < yes:)
5906 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5907 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5908 < ac_tool_warned=yes ;;
5909 < esac
5910 <    FC=$ac_ct_FC
5911 <  fi
4711 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4712 > $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4713 > if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes; then :
4714 >  MPILIBS="-lmpichf90"
4715   fi
4716  
4717 +        fi
4718  
4719 < # Provide some information about the compiler.
4720 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4721 < set X $ac_compile
4722 < ac_compiler=$2
5919 < for ac_option in --version -v -V -qversion; do
5920 <  { { ac_try="$ac_compiler $ac_option >&5"
5921 < case "(($ac_try" in
5922 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 <  *) ac_try_echo=$ac_try;;
5924 < esac
5925 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5926 < $as_echo "$ac_try_echo"; } >&5
5927 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5928 <  ac_status=$?
5929 <  if test -s conftest.err; then
5930 <    sed '10a\
5931 < ... rest of stderr output deleted ...
5932 <         10q' conftest.err >conftest.er1
5933 <    cat conftest.er1 >&5
5934 <    rm -f conftest.er1 conftest.err
5935 <  fi
5936 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 <  test $ac_status = 0; }
5938 < done
5939 < rm -f a.out
5940 <
5941 < # If we don't use `.F' as extension, the preprocessor is not run on the
5942 < # input file.  (Note that this only needs to work for GNU compilers.)
5943 < ac_save_ext=$ac_ext
5944 < ac_ext=F
5945 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
5946 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
5947 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4719 > if test x = x"$MPILIBS"; then
4720 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4721 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4722 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4723    $as_echo_n "(cached) " >&6
4724   else
4725 <  cat > conftest.$ac_ext <<_ACEOF
4725 >  ac_check_lib_save_LIBS=$LIBS
4726 > LIBS="-lmpi  $LIBS"
4727 > cat > conftest.$ac_ext <<_ACEOF
4728        program main
4729 < #ifndef __GNUC__
5953 <       choke me
5954 < #endif
5955 <
4729 >      call MPI_Init
4730        end
4731   _ACEOF
4732 < if ac_fn_fc_try_compile "$LINENO"; then :
4733 <  ac_compiler_gnu=yes
4732 > if ac_fn_fc_try_link "$LINENO"; then :
4733 >  ac_cv_lib_mpi_MPI_Init=yes
4734   else
4735 <  ac_compiler_gnu=no
4735 >  ac_cv_lib_mpi_MPI_Init=no
4736   fi
4737 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4737 > rm -f core conftest.err conftest.$ac_objext \
4738 >    conftest$ac_exeext conftest.$ac_ext
4739 > LIBS=$ac_check_lib_save_LIBS
4740 > fi
4741 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4742 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4743 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4744 >  MPILIBS="-lmpi"
4745 > fi
4746  
4747   fi
4748 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4749 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4750 < ac_ext=$ac_save_ext
4751 < ac_test_FCFLAGS=${FCFLAGS+set}
5971 < ac_save_FCFLAGS=$FCFLAGS
5972 < FCFLAGS=
5973 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5974 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
5975 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4748 > if test x = x"$MPILIBS"; then
4749 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4750 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4751 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4752    $as_echo_n "(cached) " >&6
4753   else
4754 <  FCFLAGS=-g
4754 >  ac_check_lib_save_LIBS=$LIBS
4755 > LIBS="-lmpich  $LIBS"
4756   cat > conftest.$ac_ext <<_ACEOF
4757        program main
4758 +      call MPI_Init
4759 +      end
4760 + _ACEOF
4761 + if ac_fn_fc_try_link "$LINENO"; then :
4762 +  ac_cv_lib_mpich_MPI_Init=yes
4763 + else
4764 +  ac_cv_lib_mpich_MPI_Init=no
4765 + fi
4766 + rm -f core conftest.err conftest.$ac_objext \
4767 +    conftest$ac_exeext conftest.$ac_ext
4768 + LIBS=$ac_check_lib_save_LIBS
4769 + fi
4770 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4771 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4772 + if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4773 +  MPILIBS="-lmpich"
4774 + fi
4775  
4776 + fi
4777 +
4778 + if test x != x"$MPILIBS"; then
4779 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4780 + $as_echo_n "checking for mpif.h... " >&6; }
4781 +        cat > conftest.$ac_ext <<_ACEOF
4782 +      program main
4783 +      include 'mpif.h'
4784        end
4785   _ACEOF
4786   if ac_fn_fc_try_compile "$LINENO"; then :
4787 <  ac_cv_prog_fc_g=yes
4787 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 > $as_echo "yes" >&6; }
4789   else
4790 <  ac_cv_prog_fc_g=no
4790 >  MPILIBS=""
4791 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 > $as_echo "no" >&6; }
4793   fi
4794   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 + fi
4796  
4797 + FC="$ax_mpi_save_FC"
4798 +
4799 +
4800 +
4801 + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4802 + if test x = x"$MPILIBS"; then
4803 +        USE_MPI="no"
4804 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4805 + $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4806 +        :
4807 + else
4808 +        USE_MPI="yes"
4809 +        :
4810   fi
4811 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4812 < $as_echo "$ac_cv_prog_fc_g" >&6; }
4813 < if test "$ac_test_FCFLAGS" = set; then
4814 <  FCFLAGS=$ac_save_FCFLAGS
4815 < elif test $ac_cv_prog_fc_g = yes; then
4816 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4817 <    FCFLAGS="-g -O2"
4818 <  else
4819 <    FCFLAGS="-g"
4820 <  fi
4811 >
4812 >
4813 > fi
4814 > if test $USE_MPI != no; then :
4815 >
4816 >        CXX=$MPICXX
4817 >        CC=$MPICC
4818 >        FC=$MPIFC
4819 >        LIBS="$MPILIBS $LIBS"
4820 >
4821   else
4822 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4823 <    FCFLAGS="-O2"
4824 <  else
4825 <    FCFLAGS=
4826 <  fi
4822 >
4823 >        CXX=$save_CXX
4824 >        CC=$save_CC
4825 >        FC=$save_FC
4826 >        LIBS=$save_LIBS
4827 >
4828 >
4829   fi
4830  
6010 ac_ext=${ac_fc_srcext-f}
6011 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6012 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4831  
4832 + # Checks for programs.
4833   ac_ext=c
4834   ac_cpp='$CPP $CPPFLAGS'
4835   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 6024 | Line 4842 | if test -z "$CPP"; then
4842    CPP=
4843   fi
4844   if test -z "$CPP"; then
4845 <  if test "${ac_cv_prog_CPP+set}" = set; then :
4845 >  if ${ac_cv_prog_CPP+:} false; then :
4846    $as_echo_n "(cached) " >&6
4847   else
4848        # Double quotes because CPP needs to be expanded
# Line 6054 | Line 4872 | fi
4872    # Broken: fails on valid input.
4873   continue
4874   fi
4875 < rm -f conftest.err conftest.$ac_ext
4875 > rm -f conftest.err conftest.i conftest.$ac_ext
4876  
4877    # OK, works on sane cases.  Now check whether nonexistent headers
4878    # can be detected and how.
# Line 6070 | Line 4888 | fi
4888   ac_preproc_ok=:
4889   break
4890   fi
4891 < rm -f conftest.err conftest.$ac_ext
4891 > rm -f conftest.err conftest.i conftest.$ac_ext
4892  
4893   done
4894   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4895 < rm -f conftest.err conftest.$ac_ext
4895 > rm -f conftest.i conftest.err conftest.$ac_ext
4896   if $ac_preproc_ok; then :
4897    break
4898   fi
# Line 6113 | Line 4931 | fi
4931    # Broken: fails on valid input.
4932   continue
4933   fi
4934 < rm -f conftest.err conftest.$ac_ext
4934 > rm -f conftest.err conftest.i conftest.$ac_ext
4935  
4936    # OK, works on sane cases.  Now check whether nonexistent headers
4937    # can be detected and how.
# Line 6129 | Line 4947 | fi
4947   ac_preproc_ok=:
4948   break
4949   fi
4950 < rm -f conftest.err conftest.$ac_ext
4950 > rm -f conftest.err conftest.i conftest.$ac_ext
4951  
4952   done
4953   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 < rm -f conftest.err conftest.$ac_ext
4954 > rm -f conftest.i conftest.err conftest.$ac_ext
4955   if $ac_preproc_ok; then :
4956  
4957   else
4958    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4959   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4960 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
4961 < See \`config.log' for more details." "$LINENO" 5; }
4960 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4961 > See \`config.log' for more details" "$LINENO" 5; }
4962   fi
4963  
4964   ac_ext=${ac_fc_srcext-f}
# Line 6150 | Line 4968 | $as_echo_n "checking for grep that handles long lines
4968  
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4970   $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 < if test "${ac_cv_path_GREP+set}" = set; then :
4971 > if ${ac_cv_path_GREP+:} false; then :
4972    $as_echo_n "(cached) " >&6
4973   else
4974    if test -z "$GREP"; then
# Line 6199 | Line 5017 | IFS=$as_save_IFS
5017    done
5018   IFS=$as_save_IFS
5019    if test -z "$ac_cv_path_GREP"; then
5020 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5020 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5021    fi
5022   else
5023    ac_cv_path_GREP=$GREP
# Line 6213 | Line 5031 | $as_echo_n "checking for egrep... " >&6; }
5031  
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5033   $as_echo_n "checking for egrep... " >&6; }
5034 < if test "${ac_cv_path_EGREP+set}" = set; then :
5034 > if ${ac_cv_path_EGREP+:} false; then :
5035    $as_echo_n "(cached) " >&6
5036   else
5037    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
# Line 6265 | Line 5083 | IFS=$as_save_IFS
5083    done
5084   IFS=$as_save_IFS
5085    if test -z "$ac_cv_path_EGREP"; then
5086 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5086 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5087    fi
5088   else
5089    ac_cv_path_EGREP=$EGREP
# Line 6293 | Line 5111 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]
5111   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5112   set x ${MAKE-make}
5113   ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5114 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5114 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5115    $as_echo_n "(cached) " >&6
5116   else
5117    cat >conftest.make <<\_ACEOF
# Line 6301 | Line 5119 | _ACEOF
5119   all:
5120          @echo '@@@%%%=$(MAKE)=@@@%%%'
5121   _ACEOF
5122 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5122 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5123   case `${MAKE-make} -f conftest.make 2>/dev/null` in
5124    *@@@%%%=?*=@@@%%%*)
5125      eval ac_cv_prog_make_${ac_make}_set=yes;;
# Line 6325 | Line 5143 | $as_echo_n "checking for $ac_word... " >&6; }
5143   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145   $as_echo_n "checking for $ac_word... " >&6; }
5146 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
5146 > if ${ac_cv_prog_RANLIB+:} false; then :
5147    $as_echo_n "(cached) " >&6
5148   else
5149    if test -n "$RANLIB"; then
# Line 6365 | Line 5183 | $as_echo_n "checking for $ac_word... " >&6; }
5183   set dummy ranlib; ac_word=$2
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185   $as_echo_n "checking for $ac_word... " >&6; }
5186 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5186 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5187    $as_echo_n "(cached) " >&6
5188   else
5189    if test -n "$ac_ct_RANLIB"; then
# Line 6417 | Line 5235 | $as_echo_n "checking for $ac_word... " >&6; }
5235   set dummy perl; ac_word=$2
5236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237   $as_echo_n "checking for $ac_word... " >&6; }
5238 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
5238 > if ${ac_cv_path_PERLINTERP+:} false; then :
5239    $as_echo_n "(cached) " >&6
5240   else
5241    case $PERLINTERP in
# Line 6467 | Line 5285 | $as_echo_n "checking whether explicit instead of detec
5285  
5286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
5287   $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
5288 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
5288 > if ${ax_cv_opt_perl_shebang+:} false; then :
5289    $as_echo_n "(cached) " >&6
5290   else
5291     case "$opt_perl_shebang" in
# Line 6493 | Line 5311 | $as_echo_n "checking for kernel sharpbang invocation t
5311     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
5312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
5313   $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
5314 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
5314 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
5315    $as_echo_n "(cached) " >&6
5316   else
5317    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
# Line 6549 | Line 5367 | if test -z "$INSTALL"; then
5367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5368   $as_echo_n "checking for a BSD-compatible install... " >&6; }
5369   if test -z "$INSTALL"; then
5370 < if test "${ac_cv_path_install+set}" = set; then :
5370 > if ${ac_cv_path_install+:} false; then :
5371    $as_echo_n "(cached) " >&6
5372   else
5373    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 6629 | Line 5447 | esac
5447     x/*) ;;
5448     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5449   esac
5450 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5450 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
5451   # Extract the first word of "ar", so it can be a program name with args.
5452   set dummy ar; ac_word=$2
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454   $as_echo_n "checking for $ac_word... " >&6; }
5455 < if test "${ac_cv_prog_AR+set}" = set; then :
5455 > if ${ac_cv_prog_AR+:} false; then :
5456    $as_echo_n "(cached) " >&6
5457   else
5458    if test -n "$AR"; then
# Line 6733 | Line 5551 | if diff "$cache_file" confcache >/dev/null 2>&1; then
5551       :end' >>confcache
5552   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5553    if test -w "$cache_file"; then
5554 <    test "x$cache_file" != "x/dev/null" &&
5554 >    if test "x$cache_file" != "x/dev/null"; then
5555        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5556   $as_echo "$as_me: updating cache $cache_file" >&6;}
5557 <    cat confcache >$cache_file
5557 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
5558 >        cat confcache >"$cache_file"
5559 >      else
5560 >        case $cache_file in #(
5561 >        */* | ?:*)
5562 >          mv -f confcache "$cache_file"$$ &&
5563 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
5564 >        *)
5565 >          mv -f confcache "$cache_file" ;;
5566 >        esac
5567 >      fi
5568 >    fi
5569    else
5570      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5571   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 6749 | Line 5578 | $as_echo_n "checking for $ac_word... " >&6; }
5578   set dummy ps; ac_word=$2
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580   $as_echo_n "checking for $ac_word... " >&6; }
5581 < if test "${ac_cv_path_PS+set}" = set; then :
5581 > if ${ac_cv_path_PS+:} false; then :
5582    $as_echo_n "(cached) " >&6
5583   else
5584    case $PS in
# Line 6787 | Line 5616 | $as_echo_n "checking for POSIX or BSD ps syntax... " >
5616  
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5618   $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5619 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
5619 > if ${ac_cv_prog_ps_syntax+:} false; then :
5620    $as_echo_n "(cached) " >&6
5621   else
5622  
# Line 6807 | Line 5636 | else
5636                  if test "$ac_cv_prog_ps_ef" = yes; then
5637                          ac_cv_prog_ps_syntax=POSIX
5638                  else
5639 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
5639 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5640                  fi
5641          fi
5642  
# Line 6829 | Line 5658 | $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5658   $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5659  
5660     else
5661 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5661 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5662     fi
5663   fi
5664  
# Line 6844 | Line 5673 | $as_echo_n "checking for Fortran flag to compile .F90
5673   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5675   $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5676 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5676 > if ${ac_cv_fc_srcext_F90+:} false; then :
5677    $as_echo_n "(cached) " >&6
5678   else
5679    ac_ext=F90
# Line 6870 | Line 5699 | if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5700   $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5701   if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5702 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5702 >  as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5
5703   else
5704    ac_fc_srcext=F90
5705    if test "x$ac_cv_fc_srcext_F90" = xnone; then
# Line 6964 | Line 5793 | $as_echo "no" >&6; }
5793    else
5794      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795   $as_echo "no" >&6; }
5796 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5796 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5797    fi
5798   fi
5799  
# Line 7047 | Line 5876 | $as_echo "no" >&6; }
5876    else
5877      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878   $as_echo "no" >&6; }
5879 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5879 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5880    fi
5881   fi
5882  
# Line 7057 | Line 5886 | $as_echo_n "checking how to get verbose linking output
5886   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5888   $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5889 < if test "${ac_cv_prog_fc_v+set}" = set; then :
5889 > if ${ac_cv_prog_fc_v+:} false; then :
5890    $as_echo_n "(cached) " >&6
5891   else
5892    cat > conftest.$ac_ext <<_ACEOF
# Line 7087 | Line 5916 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5916   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5917   # LIBRARY_PATH; skip all such settings.
5918   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5919 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5919 >  sed '/^Driving:/d; /^Configured with:/d;
5920 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5921   $as_echo "$ac_fc_v_output" >&5
5922   FCFLAGS=$ac_save_FCFLAGS
5923  
# Line 7152 | Line 5982 | $as_echo_n "checking for Fortran libraries of $FC... "
5982   $as_echo "$ac_cv_prog_fc_v" >&6; }
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5984   $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5985 < if test "${ac_cv_fc_libs+set}" = set; then :
5985 > if ${ac_cv_fc_libs+:} false; then :
5986    $as_echo_n "(cached) " >&6
5987   else
5988    if test "x$FCLIBS" != "x"; then
# Line 7177 | Line 6007 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6007   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6008   # LIBRARY_PATH; skip all such settings.
6009   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6010 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6010 >  sed '/^Driving:/d; /^Configured with:/d;
6011 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6012   $as_echo "$ac_fc_v_output" >&5
6013   FCFLAGS=$ac_save_FCFLAGS
6014  
# Line 7267 | Line 6098 | fi
6098            ;;
6099            # Ignore these flags.
6100          -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6101 <          |-LANG:=* | -LIST:* | -LNO:*)
6101 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6102            ;;
6103          -lkernel32)
6104            test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
# Line 7364 | Line 6195 | $as_echo_n "checking for dummy main to link with Fortr
6195  
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6197   $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6198 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
6198 > if ${ac_cv_fc_dummy_main+:} false; then :
6199    $as_echo_n "(cached) " >&6
6200   else
6201    ac_fc_dm_save_LIBS=$LIBS
# Line 7460 | Line 6291 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6291   else
6292    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6293   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6294 < as_fn_error "linking to Fortran libraries from C fails
6295 < See \`config.log' for more details." "$LINENO" 5; }
6294 > as_fn_error $? "linking to Fortran libraries from C fails
6295 > See \`config.log' for more details" "$LINENO" 5; }
6296   fi
6297  
6298   ac_ext=${ac_fc_srcext-f}
# Line 7475 | Line 6306 | $as_echo_n "checking for Fortran name-mangling scheme.
6306   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6308   $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6309 < if test "${ac_cv_fc_mangling+set}" = set; then :
6309 > if ${ac_cv_fc_mangling+:} false; then :
6310    $as_echo_n "(cached) " >&6
6311   else
6312    cat > conftest.$ac_ext <<_ACEOF
# Line 7621 | Line 6452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6452   else
6453    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6455 < as_fn_error "cannot compile a simple Fortran program
6456 < See \`config.log' for more details." "$LINENO" 5; }
6455 > as_fn_error $? "cannot compile a simple Fortran program
6456 > See \`config.log' for more details" "$LINENO" 5; }
6457   fi
6458   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459  
# Line 7699 | Line 6530 | $as_echo_n "checking how to get verbose linking output
6530   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6532   $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6533 < if test "${ac_cv_prog_fc_v+set}" = set; then :
6533 > if ${ac_cv_prog_fc_v+:} false; then :
6534    $as_echo_n "(cached) " >&6
6535   else
6536    cat > conftest.$ac_ext <<_ACEOF
# Line 7729 | Line 6560 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6560   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6561   # LIBRARY_PATH; skip all such settings.
6562   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6563 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6563 >  sed '/^Driving:/d; /^Configured with:/d;
6564 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6565   $as_echo "$ac_fc_v_output" >&5
6566   FCFLAGS=$ac_save_FCFLAGS
6567  
# Line 7794 | Line 6626 | $as_echo_n "checking for Fortran libraries of $FC... "
6626   $as_echo "$ac_cv_prog_fc_v" >&6; }
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6628   $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6629 < if test "${ac_cv_fc_libs+set}" = set; then :
6629 > if ${ac_cv_fc_libs+:} false; then :
6630    $as_echo_n "(cached) " >&6
6631   else
6632    if test "x$FCLIBS" != "x"; then
# Line 7819 | Line 6651 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6651   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6652   # LIBRARY_PATH; skip all such settings.
6653   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6654 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6654 >  sed '/^Driving:/d; /^Configured with:/d;
6655 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6656   $as_echo "$ac_fc_v_output" >&5
6657   FCFLAGS=$ac_save_FCFLAGS
6658  
# Line 7909 | Line 6742 | fi
6742            ;;
6743            # Ignore these flags.
6744          -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6745 <          |-LANG:=* | -LIST:* | -LNO:*)
6745 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6746            ;;
6747          -lkernel32)
6748            test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
# Line 8132 | Line 6965 | $as_echo_n "checking for Fortran 90 module file names.
6965  
6966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6967   $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6968 < if test "${ac_cv_f90_module_names+set}" = set; then :
6968 > if ${ac_cv_f90_module_names+:} false; then :
6969    $as_echo_n "(cached) " >&6
6970   else
6971    ac_ext=${ac_fc_srcext-f}
# Line 8344 | Line 7177 | $as_echo_n "checking for asin in -lm... " >&6; }
7177  
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
7179   $as_echo_n "checking for asin in -lm... " >&6; }
7180 < if test "${ac_cv_lib_m_asin+set}" = set; then :
7180 > if ${ac_cv_lib_m_asin+:} false; then :
7181    $as_echo_n "(cached) " >&6
7182   else
7183    ac_check_lib_save_LIBS=$LIBS
# Line 8386 | Line 7219 | $as_echo "$ac_cv_lib_m_asin" >&6; }
7219   fi
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
7221   $as_echo "$ac_cv_lib_m_asin" >&6; }
7222 < if test "x$ac_cv_lib_m_asin" = x""yes; then :
7222 > if test "x$ac_cv_lib_m_asin" = xyes; then :
7223    cat >>confdefs.h <<_ACEOF
7224   #define HAVE_LIBM 1
7225   _ACEOF
# Line 8400 | Line 7233 | $as_echo_n "checking for ANSI C header files... " >&6;
7233  
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7235   $as_echo_n "checking for ANSI C header files... " >&6; }
7236 < if test "${ac_cv_header_stdc+set}" = set; then :
7236 > if ${ac_cv_header_stdc+:} false; then :
7237    $as_echo_n "(cached) " >&6
7238   else
7239    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8525 | Line 7358 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
7358    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7360   "
7361 < eval as_val=\$$as_ac_Header
8529 <   if test "x$as_val" = x""yes; then :
7361 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7362    cat >>confdefs.h <<_ACEOF
7363   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7364   _ACEOF
# Line 8581 | Line 7413 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7413  
7414          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
7415   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7416 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
7416 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
7417    $as_echo_n "(cached) " >&6
7418   else
7419    ac_check_lib_save_LIBS=$LIBS
# Line 8623 | Line 7455 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7455   fi
7456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
7457   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7458 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
7458 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
7459    zlib_cv_libz=yes
7460   else
7461    zlib_cv_libz=no
7462   fi
7463  
7464          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7465 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
7465 > if test "x$ac_cv_header_zlib_h" = xyes; then :
7466    zlib_cv_zlib_h=yes
7467   else
7468    zlib_cv_zlib_h=no
# Line 8667 | Line 7499 | $as_echo "failed" >&6; }
7499                  echo ""
7500                  echo "*********************************************************"
7501                  echo "* WARNING: Could not find a working zlib installation   *"
7502 <                echo "* If you need OOPSE to be able to deal with compressed  *"
7502 >                echo "* If you need OpenMD to be able to deal with compressed *"
7503                  echo "* trajectory dump files be sure to specify a valid zlib *"
7504                  echo "* installation with --with-zlib=DIR                     *"
7505                  echo "*                                                       *"
7506 <                echo "* OOPSE will still work without zlib installed.         *"
7506 >                echo "* OpenMD will still work without zlib installed.        *"
7507                  echo "*********************************************************"
7508                  echo ""
7509          fi
# Line 8721 | Line 7553 | $as_echo_n "checking for fftw_execute in -lfftw3... "
7553  
7554        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
7555   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
7556 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
7556 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
7557    $as_echo_n "(cached) " >&6
7558   else
7559    ac_check_lib_save_LIBS=$LIBS
# Line 8763 | Line 7595 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7595   fi
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
7597   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7598 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
7598 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
7599    fftw_cv_libfftw3=yes
7600   else
7601    fftw_cv_libfftw3=no
7602   fi
7603  
7604        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
7605 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
7605 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
7606    fftw_cv_fftw3_h=yes
7607   else
7608    fftw_cv_fftw3_h=no
# Line 8780 | Line 7612 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
7612        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
7613          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
7614   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
7615 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
7615 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
7616    $as_echo_n "(cached) " >&6
7617   else
7618    ac_check_lib_save_LIBS=$LIBS
# Line 8822 | Line 7654 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7654   fi
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7656   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7657 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
7657 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
7658    fftw_cv_libfftw=yes
7659   else
7660    fftw_cv_libfftw=no
7661   fi
7662  
7663          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
7664 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
7664 > if test "x$ac_cv_header_fftw_h" = xyes; then :
7665    fftw_cv_fftw_h=yes
7666   else
7667    fftw_cv_fftw_h=no
# Line 8839 | Line 7671 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
7671          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
7672            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
7673   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
7674 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
7674 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
7675    $as_echo_n "(cached) " >&6
7676   else
7677    ac_check_lib_save_LIBS=$LIBS
# Line 8881 | Line 7713 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7713   fi
7714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
7715   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7716 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
7716 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
7717    fftw_cv_libdfftw=yes
7718   else
7719    fftw_cv_libdfftw=no
7720   fi
7721  
7722            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
7723 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
7723 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
7724    fftw_cv_dfftw_h=yes
7725   else
7726    fftw_cv_dfftw_h=no
# Line 8943 | Line 7775 | $as_echo "failed" >&6; }
7775              echo "* compute undulation spectra, be sure to specify a      *"
7776              echo "* valid fftw installation with --with-fftw=DIR          *"
7777              echo "*                                                       *"
7778 <            echo "* OOPSE will still work without fftw installed.         *"
7778 >            echo "* OpenMD will still work without fftw installed.        *"
7779              echo "*********************************************************"
7780              echo ""
7781            fi
# Line 8954 | Line 7786 | $as_echo "failed" >&6; }
7786  
7787      fi
7788    fi
7789 + fi
7790 +
7791 + ac_ext=cpp
7792 + ac_cpp='$CXXCPP $CPPFLAGS'
7793 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7796 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7797 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7798 + if test -z "$CXXCPP"; then
7799 +  if ${ac_cv_prog_CXXCPP+:} false; then :
7800 +  $as_echo_n "(cached) " >&6
7801 + else
7802 +      # Double quotes because CXXCPP needs to be expanded
7803 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7804 +    do
7805 +      ac_preproc_ok=false
7806 + for ac_cxx_preproc_warn_flag in '' yes
7807 + do
7808 +  # Use a header file that comes with gcc, so configuring glibc
7809 +  # with a fresh cross-compiler works.
7810 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7811 +  # <limits.h> exists even on freestanding compilers.
7812 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7813 +  # not just through cpp. "Syntax error" is here to catch this case.
7814 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 + /* end confdefs.h.  */
7816 + #ifdef __STDC__
7817 + # include <limits.h>
7818 + #else
7819 + # include <assert.h>
7820 + #endif
7821 +                     Syntax error
7822 + _ACEOF
7823 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7824 +
7825 + else
7826 +  # Broken: fails on valid input.
7827 + continue
7828 + fi
7829 + rm -f conftest.err conftest.i conftest.$ac_ext
7830 +
7831 +  # OK, works on sane cases.  Now check whether nonexistent headers
7832 +  # can be detected and how.
7833 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 + /* end confdefs.h.  */
7835 + #include <ac_nonexistent.h>
7836 + _ACEOF
7837 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7838 +  # Broken: success on invalid input.
7839 + continue
7840 + else
7841 +  # Passes both tests.
7842 + ac_preproc_ok=:
7843 + break
7844   fi
7845 + rm -f conftest.err conftest.i conftest.$ac_ext
7846  
7847 + done
7848 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7849 + rm -f conftest.i conftest.err conftest.$ac_ext
7850 + if $ac_preproc_ok; then :
7851 +  break
7852 + fi
7853 +
7854 +    done
7855 +    ac_cv_prog_CXXCPP=$CXXCPP
7856 +
7857 + fi
7858 +  CXXCPP=$ac_cv_prog_CXXCPP
7859 + else
7860 +  ac_cv_prog_CXXCPP=$CXXCPP
7861 + fi
7862 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7863 + $as_echo "$CXXCPP" >&6; }
7864 + ac_preproc_ok=false
7865 + for ac_cxx_preproc_warn_flag in '' yes
7866 + do
7867 +  # Use a header file that comes with gcc, so configuring glibc
7868 +  # with a fresh cross-compiler works.
7869 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7870 +  # <limits.h> exists even on freestanding compilers.
7871 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7872 +  # not just through cpp. "Syntax error" is here to catch this case.
7873 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 + /* end confdefs.h.  */
7875 + #ifdef __STDC__
7876 + # include <limits.h>
7877 + #else
7878 + # include <assert.h>
7879 + #endif
7880 +                     Syntax error
7881 + _ACEOF
7882 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7883 +
7884 + else
7885 +  # Broken: fails on valid input.
7886 + continue
7887 + fi
7888 + rm -f conftest.err conftest.i conftest.$ac_ext
7889 +
7890 +  # OK, works on sane cases.  Now check whether nonexistent headers
7891 +  # can be detected and how.
7892 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 + /* end confdefs.h.  */
7894 + #include <ac_nonexistent.h>
7895 + _ACEOF
7896 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7897 +  # Broken: success on invalid input.
7898 + continue
7899 + else
7900 +  # Passes both tests.
7901 + ac_preproc_ok=:
7902 + break
7903 + fi
7904 + rm -f conftest.err conftest.i conftest.$ac_ext
7905 +
7906 + done
7907 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7908 + rm -f conftest.i conftest.err conftest.$ac_ext
7909 + if $ac_preproc_ok; then :
7910 +
7911 + else
7912 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7913 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7914 + as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7915 + See \`config.log' for more details" "$LINENO" 5; }
7916 + fi
7917 +
7918 + ac_ext=cpp
7919 + ac_cpp='$CXXCPP $CPPFLAGS'
7920 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7923 +
7924 +
7925   #
7926   # Handle user hints
7927   #
# Line 8980 | Line 7946 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
7946         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
7947   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
7948         QHULL_HOME=/usr/local
7949 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
7949 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
7950            QHULL_HOME=/usr
7951         fi
7952       fi
# Line 8992 | Line 7958 | $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}"
7958          { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7959   $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7960  
7961 <        ac_ext=c
7962 < ac_cpp='$CPP $CPPFLAGS'
7963 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961 >        ac_ext=cpp
7962 > ac_cpp='$CXXCPP $CPPFLAGS'
7963 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7966  
7967          QHULL_OLD_LDFLAGS=$LDFLAGS
7968 <        QHULL_OLD_CFLAGS=$CFLAGS
7968 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7969          QHULL_OLD_CPPFLAGS=$CPPFLAGS
7970          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7971 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7971 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7972          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7973 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7974 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
7975 <  qhull_cv_qhull_h=yes
7973 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
7974 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
7975 >  qhull_cv_libqhull_h=yes
7976   else
7977 <  qhull_cv_qhull_h=no
7977 >  qhull_cv_libqhull_h=no
7978   fi
7979  
7980  
7981          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
7982   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
7983 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
7983 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
7984    $as_echo_n "(cached) " >&6
7985   else
7986    ac_check_lib_save_LIBS=$LIBS
# Line 9045 | Line 8011 | _ACEOF
8011    return 0;
8012   }
8013   _ACEOF
8014 < if ac_fn_c_try_link "$LINENO"; then :
8014 > if ac_fn_cxx_try_link "$LINENO"; then :
8015    ac_cv_lib_qhull_qh_qhull=yes
8016   else
8017    ac_cv_lib_qhull_qh_qhull=no
# Line 9056 | Line 8022 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8022   fi
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
8024   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8025 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
8025 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
8026    qhull_cv_libqhull=yes
8027   else
8028    qhull_cv_libqhull=no
8029   fi
8030  
8031 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
8032 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
8033 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
8034 +  $as_echo_n "(cached) " >&6
8035 + else
8036 +  ac_check_lib_save_LIBS=$LIBS
8037 + LIBS="-lqhull6  $LIBS"
8038 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 + /* end confdefs.h.  */
8040 +
8041 + /* Override any GCC internal prototype to avoid an error.
8042 +   Use char because int might match the return type of a GCC
8043 +   builtin and then its argument prototype would still apply.  */
8044 + #ifdef __cplusplus
8045 + extern "C"
8046 + #endif
8047 + char qh_qhull ();
8048 + #ifdef FC_DUMMY_MAIN
8049 + #ifndef FC_DUMMY_MAIN_EQ_F77
8050 + #  ifdef __cplusplus
8051 +     extern "C"
8052 + #  endif
8053 +   int FC_DUMMY_MAIN() { return 1; }
8054 + #endif
8055 + #endif
8056 + int
8057 + main ()
8058 + {
8059 + return qh_qhull ();
8060 +  ;
8061 +  return 0;
8062 + }
8063 + _ACEOF
8064 + if ac_fn_cxx_try_link "$LINENO"; then :
8065 +  ac_cv_lib_qhull6_qh_qhull=yes
8066 + else
8067 +  ac_cv_lib_qhull6_qh_qhull=no
8068 + fi
8069 + rm -f core conftest.err conftest.$ac_objext \
8070 +    conftest$ac_exeext conftest.$ac_ext
8071 + LIBS=$ac_check_lib_save_LIBS
8072 + fi
8073 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
8074 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
8075 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
8076 +  qhull_cv_libqhull6=yes
8077 + else
8078 +  qhull_cv_libqhull6=no
8079 + fi
8080 +
8081          LDFLAGS="$QHULL_OLD_LDFLAGS"
8082 <        CFLAGS="$QHULL_OLD_CFLAGS"
8082 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8083          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8084          ac_ext=c
8085   ac_cpp='$CPP $CPPFLAGS'
# Line 9072 | Line 8088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088   ac_compiler_gnu=$ac_cv_c_compiler_gnu
8089  
8090  
8091 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
8091 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
8092  
8093 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
8093 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
8094  
8095 +           if test "$qhull_cv_libqhull" = "yes"; then
8096  
8097   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
8098  
8099 +                QHULL="-lqhull"
8100 +           fi
8101 +           if test "$qhull_cv_libqhull6" = "yes"; then
8102 +
8103 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
8104 +
8105 +                QHULL="-lqhull6"
8106 +           fi
8107             USE_QHULL=yes
8108             QHULL_INC_DIR="${QHULL_HOME}/include"
8109             QHULL_LIB_DIR="${QHULL_HOME}/lib"
9085           QHULL="-lqhull"
8110             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
8111   $as_echo "Working qhull found, will proceed." >&6; }
8112          else
# Line 9090 | Line 8114 | $as_echo "$as_me: WARNING: Could not find a working qh
8114   $as_echo "$as_me: WARNING: " >&2;}
8115             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
8116   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
8117 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
8118 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
8117 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
8118 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
8119             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
8120   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
8121             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
8122   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
8123             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8124   $as_echo "$as_me: WARNING: " >&2;}
8125 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
8126 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
8125 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
8126 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
8127             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8128   $as_echo "$as_me: WARNING: " >&2;}
8129          fi
# Line 9110 | Line 8134 | fi
8134  
8135  
8136  
9113 ac_ext=cpp
9114 ac_cpp='$CXXCPP $CPPFLAGS'
9115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9120 if test -z "$CXXCPP"; then
9121  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9122  $as_echo_n "(cached) " >&6
9123 else
9124      # Double quotes because CXXCPP needs to be expanded
9125    for CXXCPP in "$CXX -E" "/lib/cpp"
9126    do
9127      ac_preproc_ok=false
9128 for ac_cxx_preproc_warn_flag in '' yes
9129 do
9130  # Use a header file that comes with gcc, so configuring glibc
9131  # with a fresh cross-compiler works.
9132  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9133  # <limits.h> exists even on freestanding compilers.
9134  # On the NeXT, cc -E runs the code through the compiler's parser,
9135  # not just through cpp. "Syntax error" is here to catch this case.
9136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h.  */
9138 #ifdef __STDC__
9139 # include <limits.h>
9140 #else
9141 # include <assert.h>
9142 #endif
9143                     Syntax error
9144 _ACEOF
9145 if ac_fn_cxx_try_cpp "$LINENO"; then :
9146
9147 else
9148  # Broken: fails on valid input.
9149 continue
9150 fi
9151 rm -f conftest.err conftest.$ac_ext
9152
9153  # OK, works on sane cases.  Now check whether nonexistent headers
9154  # can be detected and how.
9155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h.  */
9157 #include <ac_nonexistent.h>
9158 _ACEOF
9159 if ac_fn_cxx_try_cpp "$LINENO"; then :
9160  # Broken: success on invalid input.
9161 continue
9162 else
9163  # Passes both tests.
9164 ac_preproc_ok=:
9165 break
9166 fi
9167 rm -f conftest.err conftest.$ac_ext
9168
9169 done
9170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9171 rm -f conftest.err conftest.$ac_ext
9172 if $ac_preproc_ok; then :
9173  break
9174 fi
9175
9176    done
9177    ac_cv_prog_CXXCPP=$CXXCPP
9178
9179 fi
9180  CXXCPP=$ac_cv_prog_CXXCPP
9181 else
9182  ac_cv_prog_CXXCPP=$CXXCPP
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9185 $as_echo "$CXXCPP" >&6; }
9186 ac_preproc_ok=false
9187 for ac_cxx_preproc_warn_flag in '' yes
9188 do
9189  # Use a header file that comes with gcc, so configuring glibc
9190  # with a fresh cross-compiler works.
9191  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9192  # <limits.h> exists even on freestanding compilers.
9193  # On the NeXT, cc -E runs the code through the compiler's parser,
9194  # not just through cpp. "Syntax error" is here to catch this case.
9195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h.  */
9197 #ifdef __STDC__
9198 # include <limits.h>
9199 #else
9200 # include <assert.h>
9201 #endif
9202                     Syntax error
9203 _ACEOF
9204 if ac_fn_cxx_try_cpp "$LINENO"; then :
9205
9206 else
9207  # Broken: fails on valid input.
9208 continue
9209 fi
9210 rm -f conftest.err conftest.$ac_ext
9211
9212  # OK, works on sane cases.  Now check whether nonexistent headers
9213  # can be detected and how.
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h.  */
9216 #include <ac_nonexistent.h>
9217 _ACEOF
9218 if ac_fn_cxx_try_cpp "$LINENO"; then :
9219  # Broken: success on invalid input.
9220 continue
9221 else
9222  # Passes both tests.
9223 ac_preproc_ok=:
9224 break
9225 fi
9226 rm -f conftest.err conftest.$ac_ext
9227
9228 done
9229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9230 rm -f conftest.err conftest.$ac_ext
9231 if $ac_preproc_ok; then :
9232
9233 else
9234  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9236 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
9237 See \`config.log' for more details." "$LINENO" 5; }
9238 fi
9239
9240 ac_ext=cpp
9241 ac_cpp='$CXXCPP $CPPFLAGS'
9242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9245
9246
8137   #
8138   # Handle user hints
8139   #
# Line 9288 | Line 8178 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8178          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
8179          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
8180          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
8181 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
8181 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
8182    openbabel_cv_openbabel_h=yes
8183   else
8184    openbabel_cv_openbabel_h=no
# Line 9296 | Line 8186 | fi
8186  
8187  
8188          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
8189 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
8189 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
8190    openbabel_cv_obconversion_h=yes
8191   else
8192    openbabel_cv_obconversion_h=no
# Line 9373 | Line 8263 | $as_echo "failed" >&6; }
8263                  echo ""
8264                  echo "*********************************************************"
8265                  echo "* WARNING: Could not find a working openbabel-2.x       *"
8266 <                echo "* installation If you need OOPSE to be able to convert  *"
8266 >                echo "* installation If you need OpenMD to be able to convert *"
8267                  echo "* xyz or pdb files you need to specify a valid          *"
8268                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8269                  echo "*                                                       *"
8270 <                echo "* OOPSE will still work without openbabel installed.    *"
8270 >                echo "* OpenMD will still work without openbabel installed.   *"
8271                  echo "*********************************************************"
8272                  echo ""
8273          fi
# Line 9392 | Line 8282 | $as_echo_n "checking for ANSI C header files... " >&6;
8282   # Checks for header files.
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8284   $as_echo_n "checking for ANSI C header files... " >&6; }
8285 < if test "${ac_cv_header_stdc+set}" = set; then :
8285 > if ${ac_cv_header_stdc+:} false; then :
8286    $as_echo_n "(cached) " >&6
8287   else
8288    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9514 | Line 8404 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
8404   do :
8405    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8407 < eval as_val=\$$as_ac_Header
9518 <   if test "x$as_val" = x""yes; then :
8407 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8408    cat >>confdefs.h <<_ACEOF
8409   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8410   _ACEOF
# Line 9528 | Line 8417 | $as_echo_n "checking for stdbool.h that conforms to C9
8417   # Checks for typedefs, structures, and compiler characteristics.
8418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8419   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8420 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
8420 > if ${ac_cv_header_stdbool_h+:} false; then :
8421    $as_echo_n "(cached) " >&6
8422   else
8423    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9560 | Line 8449 | else
8449          char b[false == 0 ? 1 : -1];
8450          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8451          char d[(bool) 0.5 == true ? 1 : -1];
8452 <        bool e = &s;
8452 >        /* See body of main program for 'e'.  */
8453          char f[(_Bool) 0.0 == false ? 1 : -1];
8454          char g[true];
8455          char h[sizeof (_Bool)];
# Line 9571 | Line 8460 | else
8460          _Bool n[m];
8461          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8462          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9574 #       if defined __xlc__ || defined __GNUC__
9575         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9576            reported by James Lemley on 2005-10-05; see
9577            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9578            This test is not quite right, since xlc is allowed to
9579            reject this program, as the initializer for xlcbug is
9580            not one of the forms that C requires support for.
9581            However, doing the test right would require a runtime
9582            test, and that would make cross-compilation harder.
9583            Let us hope that IBM fixes the xlc bug, and also adds
9584            support for this kind of constant expression.  In the
9585            meantime, this test will reject xlc, which is OK, since
9586            our stdbool.h substitute should suffice.  We also test
9587            this with GCC, where it should work, to detect more
9588            quickly whether someone messes up the test in the
9589            future.  */
9590         char digs[] = "0123456789";
9591         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9592 #       endif
8463          /* Catch a bug in an HP-UX C compiler.  See
8464             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8465             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9609 | Line 8479 | main ()
8479   main ()
8480   {
8481  
8482 +        bool e = &s;
8483          *pq |= q;
8484          *pq |= ! q;
8485          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9629 | Line 8500 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8501   $as_echo "$ac_cv_header_stdbool_h" >&6; }
8502   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8503 < if test "x$ac_cv_type__Bool" = x""yes; then :
8503 > if test "x$ac_cv_type__Bool" = xyes; then :
8504  
8505   cat >>confdefs.h <<_ACEOF
8506   #define HAVE__BOOL 1
# Line 9646 | Line 8517 | $as_echo_n "checking for an ANSI C-conforming const...
8517  
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8519   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8520 < if test "${ac_cv_c_const+set}" = set; then :
8520 > if ${ac_cv_c_const+:} false; then :
8521    $as_echo_n "(cached) " >&6
8522   else
8523    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9734 | Line 8605 | $as_echo_n "checking for inline... " >&6; }
8605  
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8607   $as_echo_n "checking for inline... " >&6; }
8608 < if test "${ac_cv_c_inline+set}" = set; then :
8608 > if ${ac_cv_c_inline+:} false; then :
8609    $as_echo_n "(cached) " >&6
8610   else
8611    ac_cv_c_inline=no
# Line 9775 | Line 8646 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
8646   esac
8647  
8648   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8649 < if test "x$ac_cv_type_size_t" = x""yes; then :
8649 > if test "x$ac_cv_type_size_t" = xyes; then :
8650  
8651   else
8652  
# Line 9787 | Line 8658 | $as_echo_n "checking whether time.h and sys/time.h may
8658  
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8660   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8661 < if test "${ac_cv_header_time+set}" = set; then :
8661 > if ${ac_cv_header_time+:} false; then :
8662    $as_echo_n "(cached) " >&6
8663   else
8664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9833 | Line 8704 | do :
8704   for ac_header in stdlib.h
8705   do :
8706    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8707 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8707 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8708    cat >>confdefs.h <<_ACEOF
8709   #define HAVE_STDLIB_H 1
8710   _ACEOF
# Line 9844 | Line 8715 | $as_echo_n "checking for GNU libc compatible malloc...
8715  
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8717   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8718 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
8718 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
8719    $as_echo_n "(cached) " >&6
8720   else
8721    if test "$cross_compiling" = yes; then :
# Line 9908 | Line 8779 | do :
8779   for ac_header in stdlib.h
8780   do :
8781    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8782 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8782 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8783    cat >>confdefs.h <<_ACEOF
8784   #define HAVE_STDLIB_H 1
8785   _ACEOF
# Line 9919 | Line 8790 | $as_echo_n "checking for GNU libc compatible realloc..
8790  
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8792   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8793 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
8793 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8794    $as_echo_n "(cached) " >&6
8795   else
8796    if test "$cross_compiling" = yes; then :
# Line 9984 | Line 8855 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
8855   do :
8856    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8857   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8858 < eval as_val=\$$as_ac_Header
9988 <   if test "x$as_val" = x""yes; then :
8858 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8859    cat >>confdefs.h <<_ACEOF
8860   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8861   _ACEOF
# Line 9996 | Line 8866 | $as_echo_n "checking types of arguments for select...
8866  
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8868   $as_echo_n "checking types of arguments for select... " >&6; }
8869 < if test "${ac_cv_func_select_args+set}" = set; then :
8869 > if ${ac_cv_func_select_args+:} false; then :
8870    $as_echo_n "(cached) " >&6
8871   else
8872    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 10038 | Line 8908 | done
8908   done
8909   done
8910   # Provide a safe default value.
8911 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8911 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
8912  
8913   fi
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 10066 | Line 8936 | $as_echo_n "checking for working strtod... " >&6; }
8936  
8937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8938   $as_echo_n "checking for working strtod... " >&6; }
8939 < if test "${ac_cv_func_strtod+set}" = set; then :
8939 > if ${ac_cv_func_strtod+:} false; then :
8940    $as_echo_n "(cached) " >&6
8941   else
8942    if test "$cross_compiling" = yes; then :
# Line 10125 | Line 8995 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8995   esac
8996  
8997   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8998 < if test "x$ac_cv_func_pow" = x""yes; then :
8998 > if test "x$ac_cv_func_pow" = xyes; then :
8999  
9000   fi
9001  
9002   if test $ac_cv_func_pow = no; then
9003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
9004   $as_echo_n "checking for pow in -lm... " >&6; }
9005 < if test "${ac_cv_lib_m_pow+set}" = set; then :
9005 > if ${ac_cv_lib_m_pow+:} false; then :
9006    $as_echo_n "(cached) " >&6
9007   else
9008    ac_check_lib_save_LIBS=$LIBS
# Line 10174 | Line 9044 | $as_echo "$ac_cv_lib_m_pow" >&6; }
9044   fi
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
9046   $as_echo "$ac_cv_lib_m_pow" >&6; }
9047 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
9047 > if test "x$ac_cv_lib_m_pow" = xyes; then :
9048    POW_LIB=-lm
9049   else
9050    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10189 | Line 9059 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9059   do :
9060    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9061   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9062 < eval as_val=\$$as_ac_var
10193 <   if test "x$as_val" = x""yes; then :
9062 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9063    cat >>confdefs.h <<_ACEOF
9064   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9065   _ACEOF
# Line 10247 | Line 9116 | case $debug in
9116   # Try to determine "good" native compiler flags if none specified on command
9117   # line
9118  
9119 < if test "$ac_test_FFLAGS" != "set"; then
9119 > if test "$ac_test_FCFLAGS" != "set"; then
9120    FCFLAGS=""
9121    case "${host_cpu}-${host_os}" in
9122  
# Line 10296 | Line 9165 | $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}.
9165  
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9167   $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9168 < if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
9168 > if ${ac_cv_ac_cv_guessed_f90flags+:} false; then :
9169    $as_echo_n "(cached) " >&6
9170   else
9171  
# Line 10357 | Line 9226 | $as_echo_n "checking whether we are *really* using GNU
9226  
9227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
9228   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
9229 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
9229 > if ${ac_cv_prog_really_gcc+:} false; then :
9230    $as_echo_n "(cached) " >&6
9231   else
9232  
# Line 10462 | Line 9331 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
9331  
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
9333   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
9334 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
9334 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
9335    $as_echo_n "(cached) " >&6
9336   else
9337    echo 'void f(){}' > conftest.c
# Line 10504 | Line 9373 | $as_echo_n "checking whether we are *really* using GNU
9373  
9374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
9375   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
9376 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
9376 > if ${ac_cv_prog_really_gxx+:} false; then :
9377    $as_echo_n "(cached) " >&6
9378   else
9379  
# Line 10600 | Line 9469 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
9469  
9470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
9471   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
9472 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
9472 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
9473    $as_echo_n "(cached) " >&6
9474   else
9475    echo 'void f(){}' > conftest.cpp
# Line 10669 | Line 9538 | $as_echo_n "checking for $ac_word... " >&6; }
9538   set dummy doxygen; ac_word=$2
9539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540   $as_echo_n "checking for $ac_word... " >&6; }
9541 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
9541 > if ${ac_cv_path_DOXYGEN+:} false; then :
9542    $as_echo_n "(cached) " >&6
9543   else
9544    case $DOXYGEN in
# Line 10707 | Line 9576 | fi
9576  
9577          if test "x$DOXYGEN" = x; then
9578                  if test "x$enable_doxygen" = xyes; then
9579 <                        as_fn_error "could not find doxygen" "$LINENO" 5
9579 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
9580                  fi
9581                  enable_doc=no
9582          else
# Line 10716 | Line 9585 | $as_echo_n "checking for $ac_word... " >&6; }
9585   set dummy dot; ac_word=$2
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587   $as_echo_n "checking for $ac_word... " >&6; }
9588 < if test "${ac_cv_path_DOT+set}" = set; then :
9588 > if ${ac_cv_path_DOT+:} false; then :
9589    $as_echo_n "(cached) " >&6
9590   else
9591    case $DOT in
# Line 10764 | Line 9633 | if test x$DOT = x; then
9633  
9634   if test x$DOT = x; then
9635          if test "x$enable_dot" = xyes; then
9636 <                as_fn_error "could not find dot" "$LINENO" 5
9636 >                as_fn_error $? "could not find dot" "$LINENO" 5
9637          fi
9638          enable_dot=no
9639   else
# Line 10856 | Line 9725 | if diff "$cache_file" confcache >/dev/null 2>&1; then
9725       :end' >>confcache
9726   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9727    if test -w "$cache_file"; then
9728 <    test "x$cache_file" != "x/dev/null" &&
9728 >    if test "x$cache_file" != "x/dev/null"; then
9729        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9730   $as_echo "$as_me: updating cache $cache_file" >&6;}
9731 <    cat confcache >$cache_file
9731 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
9732 >        cat confcache >"$cache_file"
9733 >      else
9734 >        case $cache_file in #(
9735 >        */* | ?:*)
9736 >          mv -f confcache "$cache_file"$$ &&
9737 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
9738 >        *)
9739 >          mv -f confcache "$cache_file" ;;
9740 >        esac
9741 >      fi
9742 >    fi
9743    else
9744      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9745   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 10875 | Line 9755 | ac_ltlibobjs=
9755  
9756   ac_libobjs=
9757   ac_ltlibobjs=
9758 + U=
9759   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9760    # 1. Remove the extension, and $U if already installed.
9761    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 10890 | Line 9771 | LTLIBOBJS=$ac_ltlibobjs
9771  
9772  
9773  
9774 < : ${CONFIG_STATUS=./config.status}
9774 > : "${CONFIG_STATUS=./config.status}"
9775   ac_write_fail=0
9776   ac_clean_files_save=$ac_clean_files
9777   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 10991 | Line 9872 | IFS=" ""       $as_nl"
9872   IFS=" ""        $as_nl"
9873  
9874   # Find who we are.  Look in the path if we contain no directory separator.
9875 + as_myself=
9876   case $0 in #((
9877    *[\\/]* ) as_myself=$0 ;;
9878    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11036 | Line 9918 | export LANGUAGE
9918   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9919  
9920  
9921 < # as_fn_error ERROR [LINENO LOG_FD]
9922 < # ---------------------------------
9921 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
9922 > # ----------------------------------------
9923   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9924   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9925 < # script with status $?, using 1 if that was 0.
9925 > # script with STATUS, using 1 if that was 0.
9926   as_fn_error ()
9927   {
9928 <  as_status=$?; test $as_status -eq 0 && as_status=1
9929 <  if test "$3"; then
9930 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9931 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9928 >  as_status=$1; test $as_status -eq 0 && as_status=1
9929 >  if test "$4"; then
9930 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9931 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9932    fi
9933 <  $as_echo "$as_me: error: $1" >&2
9933 >  $as_echo "$as_me: error: $2" >&2
9934    as_fn_exit $as_status
9935   } # as_fn_error
9936  
# Line 11244 | Line 10126 | $as_echo X"$as_dir" |
10126        test -d "$as_dir" && break
10127      done
10128      test -z "$as_dirs" || eval "mkdir $as_dirs"
10129 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10129 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10130  
10131  
10132   } # as_fn_mkdir_p
# Line 11297 | Line 10179 | ac_log="
10179   # report actual input values of CONFIG_FILES etc. instead of their
10180   # values after options handling.
10181   ac_log="
10182 < This file was extended by OOPSE $as_me 4.0, which was
10183 < generated by GNU Autoconf 2.64.  Invocation command line was
10182 > This file was extended by OpenMD $as_me 1.0, which was
10183 > generated by GNU Autoconf 2.68.  Invocation command line was
10184  
10185    CONFIG_FILES    = $CONFIG_FILES
10186    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11337 | Line 10219 | Usage: $0 [OPTION]... [TAG]...
10219  
10220    -h, --help       print this help, then exit
10221    -V, --version    print version number and configuration settings, then exit
10222 +      --config     print configuration, then exit
10223    -q, --quiet, --silent
10224                     do not print progress messages
10225    -d, --debug      don't remove temporary files
# Line 11356 | Line 10239 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10239  
10240   _ACEOF
10241   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10242 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10243   ac_cs_version="\\
10244 < OOPSE config.status 4.0
10245 < configured by $0, generated by GNU Autoconf 2.64,
10246 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10244 > OpenMD config.status 1.0
10245 > configured by $0, generated by GNU Autoconf 2.68,
10246 >  with options \\"\$ac_cs_config\\"
10247  
10248 < Copyright (C) 2009 Free Software Foundation, Inc.
10248 > Copyright (C) 2010 Free Software Foundation, Inc.
10249   This config.status script is free software; the Free Software Foundation
10250   gives unlimited permission to copy, distribute and modify it."
10251  
# Line 11377 | Line 10261 | do
10261   while test $# != 0
10262   do
10263    case $1 in
10264 <  --*=*)
10264 >  --*=?*)
10265      ac_option=`expr "X$1" : 'X\([^=]*\)='`
10266      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10267      ac_shift=:
10268      ;;
10269 +  --*=)
10270 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10271 +    ac_optarg=
10272 +    ac_shift=:
10273 +    ;;
10274    *)
10275      ac_option=$1
10276      ac_optarg=$2
# Line 11395 | Line 10284 | do
10284      ac_cs_recheck=: ;;
10285    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10286      $as_echo "$ac_cs_version"; exit ;;
10287 +  --config | --confi | --conf | --con | --co | --c )
10288 +    $as_echo "$ac_cs_config"; exit ;;
10289    --debug | --debu | --deb | --de | --d | -d )
10290      debug=: ;;
10291    --file | --fil | --fi | --f )
10292      $ac_shift
10293      case $ac_optarg in
10294      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10295 +    '') as_fn_error $? "missing file argument" ;;
10296      esac
10297      as_fn_append CONFIG_FILES " '$ac_optarg'"
10298      ac_need_defaults=false;;
# Line 11413 | Line 10305 | do
10305      ac_need_defaults=false;;
10306    --he | --h)
10307      # Conflict between --help and --header
10308 <    as_fn_error "ambiguous option: \`$1'
10308 >    as_fn_error $? "ambiguous option: \`$1'
10309   Try \`$0 --help' for more information.";;
10310    --help | --hel | -h )
10311      $as_echo "$ac_cs_usage"; exit ;;
# Line 11422 | Line 10314 | Try \`$0 --help' for more information.";;
10314      ac_cs_silent=: ;;
10315  
10316    # This is an error.
10317 <  -*) as_fn_error "unrecognized option: \`$1'
10317 >  -*) as_fn_error $? "unrecognized option: \`$1'
10318   Try \`$0 --help' for more information." ;;
10319  
10320    *) as_fn_append ac_config_targets " $1"
# Line 11479 | Line 10371 | do
10371      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
10372      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
10373  
10374 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10374 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10375    esac
10376   done
10377  
# Line 11501 | Line 10393 | $debug ||
10393   # after its creation but before its name has been assigned to `$tmp'.
10394   $debug ||
10395   {
10396 <  tmp=
10396 >  tmp= ac_tmp=
10397    trap 'exit_status=$?
10398 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10398 >  : "${ac_tmp:=$tmp}"
10399 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10400   ' 0
10401    trap 'as_fn_exit 1' 1 2 13 15
10402   }
# Line 11511 | Line 10404 | $debug ||
10404  
10405   {
10406    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10407 <  test -n "$tmp" && test -d "$tmp"
10407 >  test -d "$tmp"
10408   }  ||
10409   {
10410    tmp=./conf$$-$RANDOM
10411    (umask 077 && mkdir "$tmp")
10412 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10412 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10413 > ac_tmp=$tmp
10414  
10415   # Set up the scripts for CONFIG_FILES section.
10416   # No need to generate them if there are no CONFIG_FILES.
# Line 11533 | Line 10427 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10427   fi
10428   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10429   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10430 <  ac_cs_awk_cr='\r'
10430 >  ac_cs_awk_cr='\\r'
10431   else
10432    ac_cs_awk_cr=$ac_cr
10433   fi
10434  
10435 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
10435 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10436   _ACEOF
10437  
10438  
# Line 11547 | Line 10441 | _ACEOF
10441    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10442    echo "_ACEOF"
10443   } >conf$$subs.sh ||
10444 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10445 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10444 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10445 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10446   ac_delim='%!_!# '
10447   for ac_last_try in false false false false false :; do
10448    . ./conf$$subs.sh ||
10449 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10449 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10450  
10451    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10452    if test $ac_delim_n = $ac_delim_num; then
10453      break
10454    elif $ac_last_try; then
10455 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10455 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10456    else
10457      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10458    fi
# Line 11566 | Line 10460 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10460   rm -f conf$$subs.sh
10461  
10462   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10463 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10463 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10464   _ACEOF
10465   sed -n '
10466   h
# Line 11580 | Line 10474 | h
10474   t delim
10475   :nl
10476   h
10477 < s/\(.\{148\}\).*/\1/
10477 > s/\(.\{148\}\)..*/\1/
10478   t more1
10479   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10480   p
# Line 11594 | Line 10488 | h
10488   t nl
10489   :delim
10490   h
10491 < s/\(.\{148\}\).*/\1/
10491 > s/\(.\{148\}\)..*/\1/
10492   t more2
10493   s/["\\]/\\&/g; s/^/"/; s/$/"/
10494   p
# Line 11614 | Line 10508 | _ACAWK
10508   rm -f conf$$subs.awk
10509   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10510   _ACAWK
10511 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10511 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10512    for (key in S) S_is_set[key] = 1
10513    FS = ""
10514  
# Line 11646 | Line 10540 | else
10540    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10541   else
10542    cat
10543 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10544 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10543 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10544 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10545   _ACEOF
10546  
10547 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
10548 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10547 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10548 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10549   # trailing colons and then remove the whole line if VPATH becomes empty
10550   # (actually we leave an empty line to preserve line numbers).
10551   if test "x$srcdir" = x.; then
10552 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10553 < s/:*\$(srcdir):*/:/
10554 < s/:*\${srcdir}:*/:/
10555 < s/:*@srcdir@:*/:/
10556 < s/^\([^=]*=[     ]*\):*/\1/
10552 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10553 > h
10554 > s///
10555 > s/^/:/
10556 > s/[      ]*$/:/
10557 > s/:\$(srcdir):/:/g
10558 > s/:\${srcdir}:/:/g
10559 > s/:@srcdir@:/:/g
10560 > s/^:*//
10561   s/:*$//
10562 + x
10563 + s/\(=[   ]*\).*/\1/
10564 + G
10565 + s/\n//
10566   s/^[^=]*=[       ]*$//
10567   }'
10568   fi
# Line 11672 | Line 10574 | if test -n "$CONFIG_HEADERS"; then
10574   # No need to generate them if there are no CONFIG_HEADERS.
10575   # This happens for instance with `./config.status Makefile'.
10576   if test -n "$CONFIG_HEADERS"; then
10577 < cat >"$tmp/defines.awk" <<\_ACAWK ||
10577 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10578   BEGIN {
10579   _ACEOF
10580  
# Line 11684 | Line 10586 | for ac_last_try in false false :; do
10586   # handling of long lines.
10587   ac_delim='%!_!# '
10588   for ac_last_try in false false :; do
10589 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10590 <  if test -z "$ac_t"; then
10589 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10590 >  if test -z "$ac_tt"; then
10591      break
10592    elif $ac_last_try; then
10593 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10593 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10594    else
10595      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10596    fi
# Line 11773 | Line 10675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10675   _ACAWK
10676   _ACEOF
10677   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10678 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10678 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10679   fi # test -n "$CONFIG_HEADERS"
10680  
10681  
# Line 11786 | Line 10688 | do
10688    esac
10689    case $ac_mode$ac_tag in
10690    :[FHL]*:*);;
10691 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10691 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10692    :[FH]-) ac_tag=-:-;;
10693    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10694    esac
# Line 11805 | Line 10707 | do
10707      for ac_f
10708      do
10709        case $ac_f in
10710 <      -) ac_f="$tmp/stdin";;
10710 >      -) ac_f="$ac_tmp/stdin";;
10711        *) # Look for the file first in the build tree, then in the source tree
10712           # (if the path is not absolute).  The absolute path cannot be DOS-style,
10713           # because $ac_f cannot contain `:'.
# Line 11814 | Line 10716 | do
10716             [\\/$]*) false;;
10717             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10718             esac ||
10719 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10719 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10720        esac
10721        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10722        as_fn_append ac_file_inputs " '$ac_f'"
# Line 11840 | Line 10742 | $as_echo "$as_me: creating $ac_file" >&6;}
10742      esac
10743  
10744      case $ac_tag in
10745 <    *:-:* | *:-) cat >"$tmp/stdin" \
10746 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10745 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10746 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10747      esac
10748      ;;
10749    esac
# Line 11971 | Line 10873 | $ac_datarootdir_hack
10873   s&@INSTALL@&$ac_INSTALL&;t t
10874   $ac_datarootdir_hack
10875   "
10876 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10877 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
10876 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10877 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10878  
10879   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10880 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10881 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10880 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10881 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10882 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10884 < which seems to be undefined.  Please make sure it is defined." >&5
10884 > which seems to be undefined.  Please make sure it is defined" >&5
10885   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10886 < which seems to be undefined.  Please make sure it is defined." >&2;}
10886 > which seems to be undefined.  Please make sure it is defined" >&2;}
10887  
10888 <  rm -f "$tmp/stdin"
10888 >  rm -f "$ac_tmp/stdin"
10889    case $ac_file in
10890 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
10891 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10890 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10891 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10892    esac \
10893 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
10893 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10894   ;;
10895    :H)
10896    #
# Line 11996 | Line 10899 | which seems to be undefined.  Please make sure it is d
10899    if test x"$ac_file" != x-; then
10900      {
10901        $as_echo "/* $configure_input  */" \
10902 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10903 <    } >"$tmp/config.h" \
10904 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
10905 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10902 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10903 >    } >"$ac_tmp/config.h" \
10904 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10905 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10906        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10907   $as_echo "$as_me: $ac_file is unchanged" >&6;}
10908      else
10909        rm -f "$ac_file"
10910 <      mv "$tmp/config.h" "$ac_file" \
10911 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
10910 >      mv "$ac_tmp/config.h" "$ac_file" \
10911 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10912      fi
10913    else
10914      $as_echo "/* $configure_input  */" \
10915 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10916 <      || as_fn_error "could not create -" "$LINENO" 5
10915 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10916 >      || as_fn_error $? "could not create -" "$LINENO" 5
10917    fi
10918   ;;
10919  
# Line 12035 | Line 10938 | test $ac_write_fail = 0 ||
10938   ac_clean_files=$ac_clean_files_save
10939  
10940   test $ac_write_fail = 0 ||
10941 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10941 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10942  
10943  
10944   # configure is writing to config.log, and then calls config.status.
# Line 12056 | Line 10959 | if test "$no_create" != yes; then
10959    exec 5>>config.log
10960    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10961    # would make configure fail if this is the last instruction.
10962 <  $ac_cs_success || as_fn_exit $?
10962 >  $ac_cs_success || as_fn_exit 1
10963   fi
10964   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10965    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines