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

Comparing trunk/configure (file contents):
Revision 1373 by gezelter, Tue Oct 20 13:13:45 2009 UTC vs.
Revision 1511 by gezelter, Fri Oct 15 17:34:49 2010 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 604 | Line 615 | DOXYGEN
615   DOC
616   DOT
617   DOXYGEN
607 USE_CGAL
608 CGAL_LIBS
609 CGAL_LDFLAGS
610 CGAL_CPPFLAGS
611 CGAL_CXXFLAGS
612 CGAL_MAKEFILE
618   POW_LIB
619   LIBOBJS
620   USE_OPENBABEL
621   OPENBABEL_LIB
622   OPENBABEL_LIB_DIR
623   OPENBABEL_INC_DIR
619 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 653 | 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
659 MPICC
668   ac_ct_CC
669   CFLAGS
670   CC
663 MPILIBS
664 MPICXX
671   OBJEXT
672   EXEEXT
673   ac_ct_CXX
# Line 669 | Line 675 | CXX
675   LDFLAGS
676   CXXFLAGS
677   CXX
672 ac_fc_path
673 ac_fc_set
674 ac_cxx_path
675 ac_cxx_set
676 ac_cc_path
677 ac_cc_set
678   USE_SINGLE_PRECISION
679   debug
680   PROGNAME
# Line 727 | 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 736 | Line 736 | with_openbabel
736   with_fftw
737   with_qhull
738   with_openbabel
739 with_cgalmakefile
739   enable_doxygen
740   enable_dot
741   enable_html_docs
# Line 751 | Line 750 | CCC
750   LIBS
751   CPPFLAGS
752   CCC
754 MPICXX
753   CC
754   CFLAGS
755 < MPICC
755 > LDFLAGS
756 > LIBS
757 > CPPFLAGS
758   FC
759   FCFLAGS
760 + LDFLAGS
761 + LIBS
762 + MPICXX
763 + MPICC
764   MPIFC
765   CPP
766 + CPPFLAGS
767   CXXCPP'
768  
769  
# Line 822 | Line 827 | do
827    fi
828  
829    case $ac_option in
830 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 <  *)    ac_optarg=yes ;;
830 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 >  *=)   ac_optarg= ;;
832 >  *)    ac_optarg=yes ;;
833    esac
834  
835    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 868 | Line 874 | do
874      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875      # Reject names that are not valid shell variable names.
876      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 <      as_fn_error "invalid feature name: $ac_useropt"
877 >      as_fn_error $? "invalid feature name: $ac_useropt"
878      ac_useropt_orig=$ac_useropt
879      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880      case $ac_user_opts in
# Line 894 | Line 900 | do
900      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901      # Reject names that are not valid shell variable names.
902      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 <      as_fn_error "invalid feature name: $ac_useropt"
903 >      as_fn_error $? "invalid feature name: $ac_useropt"
904      ac_useropt_orig=$ac_useropt
905      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906      case $ac_user_opts in
# Line 1098 | Line 1104 | do
1104      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105      # Reject names that are not valid shell variable names.
1106      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 <      as_fn_error "invalid package name: $ac_useropt"
1107 >      as_fn_error $? "invalid package name: $ac_useropt"
1108      ac_useropt_orig=$ac_useropt
1109      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110      case $ac_user_opts in
# Line 1114 | Line 1120 | do
1120      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121      # Reject names that are not valid shell variable names.
1122      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 <      as_fn_error "invalid package name: $ac_useropt"
1123 >      as_fn_error $? "invalid package name: $ac_useropt"
1124      ac_useropt_orig=$ac_useropt
1125      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126      case $ac_user_opts in
# Line 1144 | Line 1150 | do
1150    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151      x_libraries=$ac_optarg ;;
1152  
1153 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1154 < Try \`$0 --help' for more information."
1153 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 > Try \`$0 --help' for more information"
1155      ;;
1156  
1157    *=*)
# Line 1153 | Line 1159 | Try \`$0 --help' for more information."
1159      # Reject names that are not valid shell variable names.
1160      case $ac_envvar in #(
1161        '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1162 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163      esac
1164      eval $ac_envvar=\$ac_optarg
1165      export $ac_envvar ;;
# Line 1163 | Line 1169 | Try \`$0 --help' for more information."
1169      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173      ;;
1174  
1175    esac
# Line 1171 | Line 1177 | if test -n "$ac_prev"; then
1177  
1178   if test -n "$ac_prev"; then
1179    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 <  as_fn_error "missing argument to $ac_option"
1180 >  as_fn_error $? "missing argument to $ac_option"
1181   fi
1182  
1183   if test -n "$ac_unrecognized_opts"; then
1184    case $enable_option_checking in
1185      no) ;;
1186 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1186 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188    esac
1189   fi
# Line 1200 | Line 1206 | do
1206      [\\/$]* | ?:[\\/]* )  continue;;
1207      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208    esac
1209 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1209 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210   done
1211  
1212   # There might be people who depend on the old broken behavior: `$host'
# Line 1214 | Line 1220 | if test "x$host_alias" != x; then
1220   if test "x$host_alias" != x; then
1221    if test "x$build_alias" = x; then
1222      cross_compiling=maybe
1223 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 <    If a cross compiler is detected then cross compile mode will be used." >&2
1223 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1224 >    If a cross compiler is detected then cross compile mode will be used" >&2
1225    elif test "x$build_alias" != "x$host_alias"; then
1226      cross_compiling=yes
1227    fi
# Line 1230 | Line 1236 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237   ac_ls_di=`ls -di .` &&
1238   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 <  as_fn_error "working directory cannot be determined"
1239 >  as_fn_error $? "working directory cannot be determined"
1240   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 <  as_fn_error "pwd does not report name of working directory"
1241 >  as_fn_error $? "pwd does not report name of working directory"
1242  
1243  
1244   # Find the source files, if location was not specified.
# Line 1271 | Line 1277 | if test ! -r "$srcdir/$ac_unique_file"; then
1277   fi
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1280 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281   fi
1282   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283   ac_abs_confdir=`(
1284 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1284 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285          pwd)`
1286   # When building in place, set srcdir=.
1287   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1301 | Line 1307 | if test "$ac_init_help" = "long"; then
1307    # Omit some internal or obsolete options to make the list less imposing.
1308    # This message is too long to be a string in the A/UX 3.1 sh.
1309    cat <<_ACEOF
1310 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1310 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1311  
1312   Usage: $0 [OPTION]... [VAR=VALUE]...
1313  
# Line 1315 | Line 1321 | Configuration:
1321        --help=short        display options specific to this package
1322        --help=recursive    display the short help of all the included packages
1323    -V, --version           display version information and exit
1324 <  -q, --quiet, --silent   do not print \`checking...' messages
1324 >  -q, --quiet, --silent   do not print \`checking ...' messages
1325        --cache-file=FILE   cache test results in FILE [disabled]
1326    -C, --config-cache      alias for \`--cache-file=config.cache'
1327    -n, --no-create         do not create output files
# Line 1349 | Line 1355 | Fine tuning of the installation directories:
1355    --infodir=DIR           info documentation [DATAROOTDIR/info]
1356    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357    --mandir=DIR            man documentation [DATAROOTDIR/man]
1358 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1358 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1359    --htmldir=DIR           html documentation [DOCDIR]
1360    --dvidir=DIR            dvi documentation [DOCDIR]
1361    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1366 | Line 1372 | if test -n "$ac_init_help"; then
1372  
1373   if test -n "$ac_init_help"; then
1374    case $ac_init_help in
1375 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1375 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1376     esac
1377    cat <<\_ACEOF
1378  
# Line 1374 | Line 1380 | Optional Features:
1380    --disable-option-checking  ignore unrecognized --enable/--with options
1381    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1382    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1383 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1384 <  --enable-debug          Compile OOPSE in debug mode
1385 <  --enable-single         compile OOPSE in single precision
1383 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1384 >  --enable-debug          Compile OpenMD in debug mode
1385 >  --enable-single         compile OpenMD in single precision
1386    --enable-float          synonym for --enable-single
1387    --enable-doxygen        enable documentation generation with doxygen (auto)
1388    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1403 | Optional Packages:
1403    --with-openbabel=DIR    root directory path of openbabel-2.x installation
1404                            (defaults to /usr/local or /usr if not found in
1405                            /usr/local)
1400  --with-cgalmakefile=makefile
1401                          Use the following CGAL makefile
1406  
1407   Some influential environment variables:
1408    CXX         C++ compiler command
# Line 1406 | Line 1410 | Some influential environment variables:
1410    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411                nonstandard directory <lib dir>
1412    LIBS        libraries to pass to the linker, e.g. -l<library>
1413 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1413 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414                you have headers in a nonstandard directory <include dir>
1411  MPICXX      MPI C++ compiler command
1415    CC          C compiler command
1416    CFLAGS      C compiler flags
1414  MPICC       MPI C compiler command
1417    FC          Fortran compiler command
1418    FCFLAGS     Fortran compiler flags
1419 +  MPICXX      MPI C++ compiler command
1420 +  MPICC       MPI C compiler command
1421    MPIFC       MPI Fortran compiler command
1422    CPP         C preprocessor
1423    CXXCPP      C++ preprocessor
# Line 1484 | Line 1488 | if $ac_init_version; then
1488   test -n "$ac_init_help" && exit $ac_status
1489   if $ac_init_version; then
1490    cat <<\_ACEOF
1491 < OOPSE configure 4.0
1492 < generated by GNU Autoconf 2.64
1491 > OpenMD configure 1.0
1492 > generated by GNU Autoconf 2.68
1493  
1494 < Copyright (C) 2009 Free Software Foundation, Inc.
1494 > Copyright (C) 2010 Free Software Foundation, Inc.
1495   This configure script is free software; the Free Software Foundation
1496   gives unlimited permission to copy, distribute and modify it.
1497   _ACEOF
# Line 1531 | Line 1535 | fi
1535  
1536          ac_retval=1
1537   fi
1538 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 <  return $ac_retval
1538 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 >  as_fn_set_status $ac_retval
1540  
1541   } # ac_fn_cxx_try_compile
1542  
1543 + # ac_fn_c_try_compile LINENO
1544 + # --------------------------
1545 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 + ac_fn_c_try_compile ()
1547 + {
1548 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 +  rm -f conftest.$ac_objext
1550 +  if { { ac_try="$ac_compile"
1551 + case "(($ac_try" in
1552 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 +  *) ac_try_echo=$ac_try;;
1554 + esac
1555 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 + $as_echo "$ac_try_echo"; } >&5
1557 +  (eval "$ac_compile") 2>conftest.err
1558 +  ac_status=$?
1559 +  if test -s conftest.err; then
1560 +    grep -v '^ *+' conftest.err >conftest.er1
1561 +    cat conftest.er1 >&5
1562 +    mv -f conftest.er1 conftest.err
1563 +  fi
1564 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 +  test $ac_status = 0; } && {
1566 +         test -z "$ac_c_werror_flag" ||
1567 +         test ! -s conftest.err
1568 +       } && test -s conftest.$ac_objext; then :
1569 +  ac_retval=0
1570 + else
1571 +  $as_echo "$as_me: failed program was:" >&5
1572 + sed 's/^/| /' conftest.$ac_ext >&5
1573 +
1574 +        ac_retval=1
1575 + fi
1576 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 +  as_fn_set_status $ac_retval
1578 +
1579 + } # ac_fn_c_try_compile
1580 +
1581 + # ac_fn_fc_try_compile LINENO
1582 + # ---------------------------
1583 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 + ac_fn_fc_try_compile ()
1585 + {
1586 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 +  rm -f conftest.$ac_objext
1588 +  if { { ac_try="$ac_compile"
1589 + case "(($ac_try" in
1590 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 +  *) ac_try_echo=$ac_try;;
1592 + esac
1593 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 + $as_echo "$ac_try_echo"; } >&5
1595 +  (eval "$ac_compile") 2>conftest.err
1596 +  ac_status=$?
1597 +  if test -s conftest.err; then
1598 +    grep -v '^ *+' conftest.err >conftest.er1
1599 +    cat conftest.er1 >&5
1600 +    mv -f conftest.er1 conftest.err
1601 +  fi
1602 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 +  test $ac_status = 0; } && {
1604 +         test -z "$ac_fc_werror_flag" ||
1605 +         test ! -s conftest.err
1606 +       } && test -s conftest.$ac_objext; then :
1607 +  ac_retval=0
1608 + else
1609 +  $as_echo "$as_me: failed program was:" >&5
1610 + sed 's/^/| /' conftest.$ac_ext >&5
1611 +
1612 +        ac_retval=1
1613 + fi
1614 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 +  as_fn_set_status $ac_retval
1616 +
1617 + } # ac_fn_fc_try_compile
1618 +
1619   # ac_fn_cxx_try_link LINENO
1620   # -------------------------
1621   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1577 | Line 1657 | fi
1657    # interfere with the next link command; also delete a directory that is
1658    # left behind by Apple's compiler.  We do this before executing the actions.
1659    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 <  return $ac_retval
1660 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 >  as_fn_set_status $ac_retval
1662  
1663   } # ac_fn_cxx_try_link
1664  
# Line 1590 | Line 1670 | $as_echo_n "checking for $2... " >&6; }
1670    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672   $as_echo_n "checking for $2... " >&6; }
1673 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673 > if eval \${$3+:} false; then :
1674    $as_echo_n "(cached) " >&6
1675   else
1676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1645 | Line 1725 | $as_echo "$ac_res" >&6; }
1725   eval ac_res=\$$3
1726                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727   $as_echo "$ac_res" >&6; }
1728 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729  
1730   } # ac_fn_cxx_check_func
1731  
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1656 {
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675         test -z "$ac_c_werror_flag" ||
1676         test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679 else
1680  $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683        ac_retval=1
1684 fi
1685  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686  return $ac_retval
1687
1688 } # ac_fn_c_try_compile
1689
1732   # ac_fn_c_try_link LINENO
1733   # -----------------------
1734   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1728 | Line 1770 | fi
1770    # interfere with the next link command; also delete a directory that is
1771    # left behind by Apple's compiler.  We do this before executing the actions.
1772    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 <  return $ac_retval
1773 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 >  as_fn_set_status $ac_retval
1775  
1776   } # ac_fn_c_try_link
1777  
# Line 1741 | Line 1783 | $as_echo_n "checking for $2... " >&6; }
1783    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785   $as_echo_n "checking for $2... " >&6; }
1786 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 > if eval \${$3+:} false; then :
1787    $as_echo_n "(cached) " >&6
1788   else
1789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1796 | Line 1838 | $as_echo "$ac_res" >&6; }
1838   eval ac_res=\$$3
1839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840   $as_echo "$ac_res" >&6; }
1841 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  
1843   } # ac_fn_c_check_func
1844  
1803 # ac_fn_fc_try_compile LINENO
1804 # ---------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_fc_try_compile ()
1807 {
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  rm -f conftest.$ac_objext
1810  if { { ac_try="$ac_compile"
1811 case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_compile") 2>conftest.err
1818  ac_status=$?
1819  if test -s conftest.err; then
1820    grep -v '^ *+' conftest.err >conftest.er1
1821    cat conftest.er1 >&5
1822    mv -f conftest.er1 conftest.err
1823  fi
1824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825  test $ac_status = 0; } && {
1826         test -z "$ac_fc_werror_flag" ||
1827         test ! -s conftest.err
1828       } && test -s conftest.$ac_objext; then :
1829  ac_retval=0
1830 else
1831  $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834        ac_retval=1
1835 fi
1836  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837  return $ac_retval
1838
1839 } # ac_fn_fc_try_compile
1840
1845   # ac_fn_fc_try_link LINENO
1846   # ------------------------
1847   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1879 | Line 1883 | fi
1883    # interfere with the next link command; also delete a directory that is
1884    # left behind by Apple's compiler.  We do this before executing the actions.
1885    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 <  return $ac_retval
1886 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 >  as_fn_set_status $ac_retval
1888  
1889   } # ac_fn_fc_try_link
1890  
# Line 1905 | Line 1909 | $as_echo "$ac_try_echo"; } >&5
1909      mv -f conftest.er1 conftest.err
1910    fi
1911    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 <  test $ac_status = 0; } >/dev/null && {
1912 >  test $ac_status = 0; } > conftest.i && {
1913           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914           test ! -s conftest.err
1915         }; then :
# Line 1916 | Line 1920 | fi
1920  
1921      ac_retval=1
1922   fi
1923 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 <  return $ac_retval
1923 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 >  as_fn_set_status $ac_retval
1925  
1926   } # ac_fn_c_try_cpp
1927  
# Line 1929 | Line 1933 | ac_fn_c_check_header_mongrel ()
1933   ac_fn_c_check_header_mongrel ()
1934   {
1935    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 >  if eval \${$3+:} false; then :
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938   $as_echo_n "checking for $2... " >&6; }
1939 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 > if eval \${$3+:} false; then :
1940    $as_echo_n "(cached) " >&6
1941   fi
1942   eval ac_res=\$$3
# Line 1968 | Line 1972 | fi
1972   else
1973    ac_header_preproc=no
1974   fi
1975 < rm -f conftest.err conftest.$ac_ext
1975 > rm -f conftest.err conftest.i conftest.$ac_ext
1976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977   $as_echo "$ac_header_preproc" >&6; }
1978  
# Line 1991 | Line 1995 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1995   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1996      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 < ( cat <<\_ASBOX
1995 < ## ------------------------------ ##
1998 > ( $as_echo "## ------------------------------ ##
1999   ## Report this to gezelter@nd.edu ##
2000 < ## ------------------------------ ##
1998 < _ASBOX
2000 > ## ------------------------------ ##"
2001       ) | sed "s/^/$as_me: WARNING:     /" >&2
2002      ;;
2003   esac
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005   $as_echo_n "checking for $2... " >&6; }
2006 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 > if eval \${$3+:} false; then :
2007    $as_echo_n "(cached) " >&6
2008   else
2009    eval "$3=\$ac_header_compiler"
# Line 2010 | Line 2012 | fi
2012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013   $as_echo "$ac_res" >&6; }
2014   fi
2015 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016  
2017   } # ac_fn_c_check_header_mongrel
2018  
# Line 2051 | Line 2053 | fi
2053         ac_retval=$ac_status
2054   fi
2055    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 <  return $ac_retval
2056 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 >  as_fn_set_status $ac_retval
2058  
2059   } # ac_fn_c_try_run
2060  
# Line 2065 | Line 2067 | $as_echo_n "checking for $2... " >&6; }
2067    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069   $as_echo_n "checking for $2... " >&6; }
2070 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 > if eval \${$3+:} false; then :
2071    $as_echo_n "(cached) " >&6
2072   else
2073    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2083 | Line 2085 | $as_echo "$ac_res" >&6; }
2085   eval ac_res=\$$3
2086                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087   $as_echo "$ac_res" >&6; }
2088 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089  
2090   } # ac_fn_c_check_header_compile
2091  
# Line 2108 | Line 2110 | $as_echo "$ac_try_echo"; } >&5
2110      mv -f conftest.er1 conftest.err
2111    fi
2112    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 <  test $ac_status = 0; } >/dev/null && {
2113 >  test $ac_status = 0; } > conftest.i && {
2114           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2115           test ! -s conftest.err
2116         }; then :
# Line 2119 | Line 2121 | fi
2121  
2122      ac_retval=1
2123   fi
2124 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 <  return $ac_retval
2124 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 >  as_fn_set_status $ac_retval
2126  
2127   } # ac_fn_cxx_try_cpp
2128  
# Line 2132 | Line 2134 | ac_fn_cxx_check_header_mongrel ()
2134   ac_fn_cxx_check_header_mongrel ()
2135   {
2136    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 >  if eval \${$3+:} false; then :
2138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139   $as_echo_n "checking for $2... " >&6; }
2140 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 > if eval \${$3+:} false; then :
2141    $as_echo_n "(cached) " >&6
2142   fi
2143   eval ac_res=\$$3
# Line 2171 | Line 2173 | fi
2173   else
2174    ac_header_preproc=no
2175   fi
2176 < rm -f conftest.err conftest.$ac_ext
2176 > rm -f conftest.err conftest.i conftest.$ac_ext
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2178   $as_echo "$ac_header_preproc" >&6; }
2179  
# Line 2194 | Line 2196 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2196   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2197      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2198   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 < ( cat <<\_ASBOX
2198 < ## ------------------------------ ##
2199 > ( $as_echo "## ------------------------------ ##
2200   ## Report this to gezelter@nd.edu ##
2201 < ## ------------------------------ ##
2201 < _ASBOX
2201 > ## ------------------------------ ##"
2202       ) | sed "s/^/$as_me: WARNING:     /" >&2
2203      ;;
2204   esac
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206   $as_echo_n "checking for $2... " >&6; }
2207 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207 > if eval \${$3+:} false; then :
2208    $as_echo_n "(cached) " >&6
2209   else
2210    eval "$3=\$ac_header_compiler"
# Line 2213 | Line 2213 | fi
2213                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214   $as_echo "$ac_res" >&6; }
2215   fi
2216 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  
2218   } # ac_fn_cxx_check_header_mongrel
2219  
# Line 2226 | Line 2226 | $as_echo_n "checking for $2... " >&6; }
2226    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228   $as_echo_n "checking for $2... " >&6; }
2229 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 > if eval \${$3+:} false; then :
2230    $as_echo_n "(cached) " >&6
2231   else
2232    eval "$3=no"
# Line 2283 | Line 2283 | $as_echo "$ac_res" >&6; }
2283   eval ac_res=\$$3
2284                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285   $as_echo "$ac_res" >&6; }
2286 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287  
2288   } # ac_fn_c_check_type
2289   cat >config.log <<_ACEOF
2290   This file contains any messages produced by compilers while
2291   running configure, to aid debugging if configure makes a mistake.
2292  
2293 < It was created by OOPSE $as_me 4.0, which was
2294 < generated by GNU Autoconf 2.64.  Invocation command line was
2293 > It was created by OpenMD $as_me 1.0, which was
2294 > generated by GNU Autoconf 2.68.  Invocation command line was
2295  
2296    $ $0 $@
2297  
# Line 2401 | Line 2401 | trap 'exit_status=$?
2401    {
2402      echo
2403  
2404 <    cat <<\_ASBOX
2405 < ## ---------------- ##
2404 >    $as_echo "## ---------------- ##
2405   ## Cache variables. ##
2406 < ## ---------------- ##
2408 < _ASBOX
2406 > ## ---------------- ##"
2407      echo
2408      # The following way of writing the cache mishandles newlines in values,
2409   (
# Line 2439 | Line 2437 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2437   )
2438      echo
2439  
2440 <    cat <<\_ASBOX
2443 < ## ----------------- ##
2440 >    $as_echo "## ----------------- ##
2441   ## Output variables. ##
2442 < ## ----------------- ##
2446 < _ASBOX
2442 > ## ----------------- ##"
2443      echo
2444      for ac_var in $ac_subst_vars
2445      do
# Line 2456 | Line 2452 | _ASBOX
2452      echo
2453  
2454      if test -n "$ac_subst_files"; then
2455 <      cat <<\_ASBOX
2460 < ## ------------------- ##
2455 >      $as_echo "## ------------------- ##
2456   ## File substitutions. ##
2457 < ## ------------------- ##
2463 < _ASBOX
2457 > ## ------------------- ##"
2458        echo
2459        for ac_var in $ac_subst_files
2460        do
# Line 2474 | Line 2468 | _ASBOX
2468      fi
2469  
2470      if test -s confdefs.h; then
2471 <      cat <<\_ASBOX
2478 < ## ----------- ##
2471 >      $as_echo "## ----------- ##
2472   ## confdefs.h. ##
2473 < ## ----------- ##
2481 < _ASBOX
2473 > ## ----------- ##"
2474        echo
2475        cat confdefs.h
2476        echo
# Line 2533 | Line 2525 | if test -n "$CONFIG_SITE"; then
2525   ac_site_file1=NONE
2526   ac_site_file2=NONE
2527   if test -n "$CONFIG_SITE"; then
2528 <  ac_site_file1=$CONFIG_SITE
2528 >  # We do not want a PATH search for config.site.
2529 >  case $CONFIG_SITE in #((
2530 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2531 >    */*) ac_site_file1=$CONFIG_SITE;;
2532 >    *)   ac_site_file1=./$CONFIG_SITE;;
2533 >  esac
2534   elif test "x$prefix" != xNONE; then
2535    ac_site_file1=$prefix/share/config.site
2536    ac_site_file2=$prefix/etc/config.site
# Line 2544 | Line 2541 | do
2541   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2542   do
2543    test "x$ac_site_file" = xNONE && continue
2544 <  if test -r "$ac_site_file"; then
2544 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2545      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2546   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547      sed 's/^/| /' "$ac_site_file" >&5
2548 <    . "$ac_site_file"
2548 >    . "$ac_site_file" \
2549 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 > as_fn_error $? "failed to load site script $ac_site_file
2552 > See \`config.log' for more details" "$LINENO" 5; }
2553    fi
2554   done
2555  
2556   if test -r "$cache_file"; then
2557 <  # Some versions of bash will fail to source /dev/null (special
2558 <  # files actually), so we avoid doing that.
2559 <  if test -f "$cache_file"; then
2557 >  # Some versions of bash will fail to source /dev/null (special files
2558 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2559 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2560      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2561   $as_echo "$as_me: loading cache $cache_file" >&6;}
2562      case $cache_file in
# Line 2624 | Line 2625 | $as_echo "$as_me: error: changes in the environment ca
2625   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2626    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2627   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2628 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2628 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2629   fi
2630   ## -------------------- ##
2631   ## Main body of script. ##
# Line 2639 | Line 2640 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2640  
2641   ac_aux_dir=
2642   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2643 <  for ac_t in install-sh install.sh shtool; do
2644 <    if test -f "$ac_dir/$ac_t"; then
2645 <      ac_aux_dir=$ac_dir
2646 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2647 <      break 2
2648 <    fi
2649 <  done
2643 >  if test -f "$ac_dir/install-sh"; then
2644 >    ac_aux_dir=$ac_dir
2645 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2646 >    break
2647 >  elif test -f "$ac_dir/install.sh"; then
2648 >    ac_aux_dir=$ac_dir
2649 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2650 >    break
2651 >  elif test -f "$ac_dir/shtool"; then
2652 >    ac_aux_dir=$ac_dir
2653 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2654 >    break
2655 >  fi
2656   done
2657   if test -z "$ac_aux_dir"; then
2658 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2658 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2659   fi
2660  
2661   # These three variables are undocumented and unsupported,
# Line 2899 | Line 2906 | ac_config_headers="$ac_config_headers src/config.h"
2906   # then outputs the replacement expansion.  We do not care
2907   # about autoupdate's warning because that contains
2908   # information on what to do *after* running autoupdate.
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2909  
2910  
2911  
2920
2921
2922
2923
2924
2925
2926 # This is taken from http://autoqt.sourceforge.net/
2927 # Copyright (c) 2002, Geoffrey Wossum
2928 # All rights reserved.
2929
2930 # Redistribution and use in source and binary forms, with or without
2931 # modification, are permitted provided that the following conditions are
2932 # met:
2933
2934 #  - Redistributions of source code must retain the above copyright notice,
2935 #    this list of conditions and the following disclaimer.
2936
2937 #  - Redistributions in binary form must reproduce the above copyright
2938 #    notice, this list of conditions and the following disclaimer in the
2939 #    documentation and/or other materials provided with the distribution.
2940
2941 #  - Neither the name of Geoffrey Wossum nor the names of its
2942 #    contributors may be used to endorse or promote products derived from
2943 #    this software without specific prior written permission.
2944
2945
2946 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2947 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2948 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2949 # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
2950 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
2951 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2952 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2953 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2954 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
2955 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
2956 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2957
2958
2959 # Check for Qt compiler flags, linker flags, and binary packages
2960
2961
2962
2912   # who am i
2913   # Make sure we can run config.sub.
2914   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2915 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2915 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2916  
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2918   $as_echo_n "checking build system type... " >&6; }
2919 < if test "${ac_cv_build+set}" = set; then :
2919 > if ${ac_cv_build+:} false; then :
2920    $as_echo_n "(cached) " >&6
2921   else
2922    ac_build_alias=$build_alias
2923   test "x$ac_build_alias" = x &&
2924    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2925   test "x$ac_build_alias" = x &&
2926 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2926 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2927   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2928 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2928 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2929  
2930   fi
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2932   $as_echo "$ac_cv_build" >&6; }
2933   case $ac_cv_build in
2934   *-*-*) ;;
2935 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2935 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2936   esac
2937   build=$ac_cv_build
2938   ac_save_IFS=$IFS; IFS='-'
# Line 3001 | Line 2950 | $as_echo_n "checking host system type... " >&6; }
2950  
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2952   $as_echo_n "checking host system type... " >&6; }
2953 < if test "${ac_cv_host+set}" = set; then :
2953 > if ${ac_cv_host+:} false; then :
2954    $as_echo_n "(cached) " >&6
2955   else
2956    if test "x$host_alias" = x; then
2957    ac_cv_host=$ac_cv_build
2958   else
2959    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2960 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2960 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2961   fi
2962  
2963   fi
# Line 3016 | Line 2965 | case $ac_cv_host in
2965   $as_echo "$ac_cv_host" >&6; }
2966   case $ac_cv_host in
2967   *-*-*) ;;
2968 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2968 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2969   esac
2970   host=$ac_cv_host
2971   ac_save_IFS=$IFS; IFS='-'
# Line 3036 | Line 2985 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2985  
2986  
2987   # set program name
2988 < PROGNAME="oopse"
2988 > PROGNAME="openmd"
2989  
2990  
2991  
2992  
2993   OBJEXT=".$OBJEXT"
2994  
2995 < OOPSE=oopse
2995 > OPENMD=openmd
2996  
2997   if test "x${prefix}" = "xNONE"
2998   then
2999 <  OOPSE_HOME=${ac_default_prefix}/oopse
2999 >  OPENMD_HOME=${ac_default_prefix}/openmd
3000   else
3001 <  OOPSE_HOME=${prefix}/oopse
3001 >  OPENMD_HOME=${prefix}/openmd
3002   fi
3003 < # Check whether --enable-oopse-home was given.
3004 < if test "${enable_oopse_home+set}" = set; then :
3005 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
3003 > # Check whether --enable-openmd-home was given.
3004 > if test "${enable_openmd_home+set}" = set; then :
3005 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
3006   fi
3007  
3008  
# Line 3094 | Line 3043 | fi
3043  
3044   fi
3045  
3097 if test x"$CC" != x; then
3098   for ac_prog in $CC
3099 do
3100  # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3105  $as_echo_n "(cached) " >&6
3106 else
3107  if test -n "$ac_cc_set"; then
3108  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113  IFS=$as_save_IFS
3114  test -z "$as_dir" && as_dir=.
3115    for ac_exec_ext in '' $ac_executable_extensions; do
3116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117    ac_cv_prog_ac_cc_set="$ac_prog"
3118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119    break 2
3120  fi
3121 done
3122  done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 ac_cc_set=$ac_cv_prog_ac_cc_set
3128 if test -n "$ac_cc_set"; then
3129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3130 $as_echo "$ac_cc_set" >&6; }
3131 else
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137  test -n "$ac_cc_set" && break
3138 done
3139 test -n "$ac_cc_set" || ac_cc_set="no"
3140
3141   if test $ac_cc_set != no; then :
3142
3143     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3144 set dummy $ac_cc_set; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3148  $as_echo_n "(cached) " >&6
3149 else
3150  case $ac_cc_path in
3151  [\\/]* | ?:[\\/]*)
3152  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3153  ;;
3154  *)
3155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    for ac_exec_ext in '' $ac_executable_extensions; do
3161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166 done
3167  done
3168 IFS=$as_save_IFS
3169
3170  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3171  ;;
3172 esac
3173 fi
3174 ac_cc_path=$ac_cv_path_ac_cc_path
3175 if test -n "$ac_cc_path"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3177 $as_echo "$ac_cc_path" >&6; }
3178 else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184 else
3185
3186     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3187 fi
3188
3189   if test $ac_cc_path != no; then :
3190
3191     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3192 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3193     MPICC=$CC
3194
3195 else
3196
3197     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3198 fi
3199 fi
3200
3201 if test x"$CXX" != x; then
3202   for ac_prog in $CXX
3203 do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3209  $as_echo_n "(cached) " >&6
3210 else
3211  if test -n "$ac_cxx_set"; then
3212  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221    ac_cv_prog_ac_cxx_set="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225 done
3226  done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3232 if test -n "$ac_cxx_set"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3234 $as_echo "$ac_cxx_set" >&6; }
3235 else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240
3241  test -n "$ac_cxx_set" && break
3242 done
3243 test -n "$ac_cxx_set" || ac_cxx_set="no"
3244
3245   if test $ac_cxx_set != no; then :
3246
3247     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3248 set dummy $ac_cxx_set; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3252  $as_echo_n "(cached) " >&6
3253 else
3254  case $ac_cxx_path in
3255  [\\/]* | ?:[\\/]*)
3256  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3257  ;;
3258  *)
3259  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270 done
3271  done
3272 IFS=$as_save_IFS
3273
3274  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3275  ;;
3276 esac
3277 fi
3278 ac_cxx_path=$ac_cv_path_ac_cxx_path
3279 if test -n "$ac_cxx_path"; then
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3281 $as_echo "$ac_cxx_path" >&6; }
3282 else
3283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 else
3289
3290     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3291 fi
3292
3293   if test $ac_cxx_path != no; then :
3294
3295     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3296 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3297     MPICXX=$CXX
3298
3299 else
3300
3301     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3302 fi
3303 fi
3304
3305 if test x"$FC" != x; then
3306   for ac_prog in $FC
3307 do
3308  # Extract the first word of "$ac_prog", so it can be a program name with args.
3309 set dummy $ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3313  $as_echo_n "(cached) " >&6
3314 else
3315  if test -n "$ac_fc_set"; then
3316  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323    for ac_exec_ext in '' $ac_executable_extensions; do
3324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325    ac_cv_prog_ac_fc_set="$ac_prog"
3326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329 done
3330  done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 ac_fc_set=$ac_cv_prog_ac_fc_set
3336 if test -n "$ac_fc_set"; then
3337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3338 $as_echo "$ac_fc_set" >&6; }
3339 else
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345  test -n "$ac_fc_set" && break
3346 done
3347 test -n "$ac_fc_set" || ac_fc_set="no"
3348
3349   if test $ac_fc_set != no; then :
3350
3351     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3352 set dummy $ac_fc_set; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3356  $as_echo_n "(cached) " >&6
3357 else
3358  case $ac_fc_path in
3359  [\\/]* | ?:[\\/]*)
3360  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3361  ;;
3362  *)
3363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368    for ac_exec_ext in '' $ac_executable_extensions; do
3369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374 done
3375  done
3376 IFS=$as_save_IFS
3377
3378  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3379  ;;
3380 esac
3381 fi
3382 ac_fc_path=$ac_cv_path_ac_fc_path
3383 if test -n "$ac_fc_path"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3385 $as_echo "$ac_fc_path" >&6; }
3386 else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 else
3393
3394     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3395 fi
3396
3397   if test $ac_fc_path != no; then :
3398
3399     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3400 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3401     MPIFC=$FC
3402
3403 else
3404
3405     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3406 fi
3407 fi
3408
3409
3046   ac_ext=cpp
3047   ac_cpp='$CXXCPP $CPPFLAGS'
3048   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3415
3416 ac_ext=cpp
3417 ac_cpp='$CXXCPP $CPPFLAGS'
3418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3051   if test -z "$CXX"; then
3052    if test -n "$CCC"; then
3053      CXX=$CCC
3054    else
3055      if test -n "$ac_tool_prefix"; then
3056 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3056 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3057    do
3058      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3059   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061   $as_echo_n "checking for $ac_word... " >&6; }
3062 < if test "${ac_cv_prog_CXX+set}" = set; then :
3062 > if ${ac_cv_prog_CXX+:} false; then :
3063    $as_echo_n "(cached) " >&6
3064   else
3065    if test -n "$CXX"; then
# Line 3467 | Line 3097 | if test -z "$CXX"; then
3097   fi
3098   if test -z "$CXX"; then
3099    ac_ct_CXX=$CXX
3100 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3100 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
3101   do
3102    # Extract the first word of "$ac_prog", so it can be a program name with args.
3103   set dummy $ac_prog; ac_word=$2
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105   $as_echo_n "checking for $ac_word... " >&6; }
3106 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3106 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3107    $as_echo_n "(cached) " >&6
3108   else
3109    if test -n "$ac_ct_CXX"; then
# Line 3543 | Line 3173 | $as_echo "$ac_try_echo"; } >&5
3173   ... rest of stderr output deleted ...
3174           10q' conftest.err >conftest.er1
3175      cat conftest.er1 >&5
3546    rm -f conftest.er1 conftest.err
3176    fi
3177 +  rm -f conftest.er1 conftest.err
3178    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179    test $ac_status = 0; }
3180   done
3181  
3182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183   /* end confdefs.h.  */
3184 < #include <stdio.h>
3184 >
3185   int
3186   main ()
3187   {
3558 FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3188  
3189    ;
3190    return 0;
3191   }
3192   _ACEOF
3193   ac_clean_files_save=$ac_clean_files
3194 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3194 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3195   # Try to create an executable without -o first, disregard a.out.
3196   # It will help us diagnose broken compilers, and finding out an intuition
3197   # of exeext.
3198 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3199 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3198 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3199 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3200   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3201  
3202   # The possible output files:
# Line 3630 | Line 3258 | fi
3258   else
3259    ac_file=''
3260   fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3261   if test -z "$ac_file"; then :
3262 <  $as_echo "$as_me: failed program was:" >&5
3262 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 > $as_echo "no" >&6; }
3264 > $as_echo "$as_me: failed program was:" >&5
3265   sed 's/^/| /' conftest.$ac_ext >&5
3266  
3267   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 < { as_fn_set_status 77
3270 < as_fn_error "C++ compiler cannot create executables
3271 < See \`config.log' for more details." "$LINENO" 5; }; }
3269 > as_fn_error 77 "C++ compiler cannot create executables
3270 > See \`config.log' for more details" "$LINENO" 5; }
3271 > else
3272 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 > $as_echo "yes" >&6; }
3274   fi
3275 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3276 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3277 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3278 + $as_echo "$ac_file" >&6; }
3279   ac_exeext=$ac_cv_exeext
3280  
3281 < # Check that the compiler produces executables we can run.  If not, either
3648 < # the compiler is broken, or we cross compile.
3649 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3650 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3651 < # If not cross compiling, check that we can run a simple program.
3652 < if test "$cross_compiling" != yes; then
3653 <  if { ac_try='./$ac_file'
3654 <  { { case "(($ac_try" in
3655 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 <  *) ac_try_echo=$ac_try;;
3657 < esac
3658 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 < $as_echo "$ac_try_echo"; } >&5
3660 <  (eval "$ac_try") 2>&5
3661 <  ac_status=$?
3662 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 <  test $ac_status = 0; }; }; then
3664 <    cross_compiling=no
3665 <  else
3666 <    if test "$cross_compiling" = maybe; then
3667 <        cross_compiling=yes
3668 <    else
3669 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 < as_fn_error "cannot run C++ compiled programs.
3672 < If you meant to cross compile, use \`--host'.
3673 < See \`config.log' for more details." "$LINENO" 5; }
3674 <    fi
3675 <  fi
3676 < fi
3677 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3678 < $as_echo "yes" >&6; }
3679 <
3680 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3281 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3282   ac_clean_files=$ac_clean_files_save
3682 # Check that the compiler produces executables we can run.  If not, either
3683 # the compiler is broken, or we cross compile.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3685 $as_echo_n "checking whether we are cross compiling... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687 $as_echo "$cross_compiling" >&6; }
3688
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3284   $as_echo_n "checking for suffix of executables... " >&6; }
3285   if { { ac_try="$ac_link"
# Line 3715 | Line 3309 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309   else
3310    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3313 < See \`config.log' for more details." "$LINENO" 5; }
3312 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3313 > See \`config.log' for more details" "$LINENO" 5; }
3314   fi
3315 < rm -f conftest$ac_cv_exeext
3315 > rm -f conftest conftest$ac_cv_exeext
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3317   $as_echo "$ac_cv_exeext" >&6; }
3318  
3319   rm -f conftest.$ac_ext
3320   EXEEXT=$ac_cv_exeext
3321   ac_exeext=$EXEEXT
3322 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 + /* end confdefs.h.  */
3324 + #include <stdio.h>
3325 + int
3326 + main ()
3327 + {
3328 + FILE *f = fopen ("conftest.out", "w");
3329 + return ferror (f) || fclose (f) != 0;
3330 +
3331 +  ;
3332 +  return 0;
3333 + }
3334 + _ACEOF
3335 + ac_clean_files="$ac_clean_files conftest.out"
3336 + # Check that the compiler produces executables we can run.  If not, either
3337 + # the compiler is broken, or we cross compile.
3338 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3339 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 + if test "$cross_compiling" != yes; then
3341 +  { { ac_try="$ac_link"
3342 + case "(($ac_try" in
3343 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 +  *) ac_try_echo=$ac_try;;
3345 + esac
3346 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 + $as_echo "$ac_try_echo"; } >&5
3348 +  (eval "$ac_link") 2>&5
3349 +  ac_status=$?
3350 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 +  test $ac_status = 0; }
3352 +  if { ac_try='./conftest$ac_cv_exeext'
3353 +  { { case "(($ac_try" in
3354 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 +  *) ac_try_echo=$ac_try;;
3356 + esac
3357 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 + $as_echo "$ac_try_echo"; } >&5
3359 +  (eval "$ac_try") 2>&5
3360 +  ac_status=$?
3361 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 +  test $ac_status = 0; }; }; then
3363 +    cross_compiling=no
3364 +  else
3365 +    if test "$cross_compiling" = maybe; then
3366 +        cross_compiling=yes
3367 +    else
3368 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 + as_fn_error $? "cannot run C++ compiled programs.
3371 + If you meant to cross compile, use \`--host'.
3372 + See \`config.log' for more details" "$LINENO" 5; }
3373 +    fi
3374 +  fi
3375 + fi
3376 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3377 + $as_echo "$cross_compiling" >&6; }
3378 +
3379 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3380 + ac_clean_files=$ac_clean_files_save
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3382   $as_echo_n "checking for suffix of object files... " >&6; }
3383 < if test "${ac_cv_objext+set}" = set; then :
3383 > if ${ac_cv_objext+:} false; then :
3384    $as_echo_n "(cached) " >&6
3385   else
3386    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3767 | Line 3420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420  
3421   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 < as_fn_error "cannot compute suffix of object files: cannot compile
3424 < See \`config.log' for more details." "$LINENO" 5; }
3423 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3424 > See \`config.log' for more details" "$LINENO" 5; }
3425   fi
3426   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427   fi
# Line 3778 | Line 3431 | $as_echo_n "checking whether we are using the GNU C++
3431   ac_objext=$OBJEXT
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3433   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3434 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3434 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3435    $as_echo_n "(cached) " >&6
3436   else
3437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3815 | Line 3468 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3468   ac_save_CXXFLAGS=$CXXFLAGS
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3470   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3471 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3471 > if ${ac_cv_prog_cxx_g+:} false; then :
3472    $as_echo_n "(cached) " >&6
3473   else
3474    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3891 | Line 3544 | fi
3544      CXXFLAGS=
3545    fi
3546   fi
3547 < ac_ext=cpp
3548 < ac_cpp='$CXXCPP $CPPFLAGS'
3549 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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  
3900
3901
3902
3903
3904
3905
3906        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3907 do
3908  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_MPICXX+set}" = set; then :
3913  $as_echo_n "(cached) " >&6
3914 else
3915  if test -n "$MPICXX"; then
3916  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923    for ac_exec_ext in '' $ac_executable_extensions; do
3924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925    ac_cv_prog_MPICXX="$ac_prog"
3926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927    break 2
3928  fi
3929 done
3930  done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 MPICXX=$ac_cv_prog_MPICXX
3936 if test -n "$MPICXX"; then
3937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3938 $as_echo "$MPICXX" >&6; }
3939 else
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944
3945  test -n "$MPICXX" && break
3946 done
3947 test -n "$MPICXX" || MPICXX="$CXX"
3948
3949        ax_mpi_save_CXX="$CXX"
3950        CXX="$MPICXX"
3951
3952
3953
3954 if test x = x"$MPILIBS"; then
3955        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3956 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3957  MPILIBS=" "
3958 fi
3959
3960 fi
3961
3962 if test x = x"$MPILIBS"; then
3963        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3964 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3965 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3966  $as_echo_n "(cached) " >&6
3967 else
3968  ac_check_lib_save_LIBS=$LIBS
3969 LIBS="-lmpi  $LIBS"
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
3973 /* Override any GCC internal prototype to avoid an error.
3974   Use char because int might match the return type of a GCC
3975   builtin and then its argument prototype would still apply.  */
3976 #ifdef __cplusplus
3977 extern "C"
3978 #endif
3979 char MPI_Init ();
3980 int
3981 main ()
3982 {
3983 return MPI_Init ();
3984  ;
3985  return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_cxx_try_link "$LINENO"; then :
3989  ac_cv_lib_mpi_MPI_Init=yes
3990 else
3991  ac_cv_lib_mpi_MPI_Init=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext \
3994    conftest$ac_exeext conftest.$ac_ext
3995 LIBS=$ac_check_lib_save_LIBS
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3998 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3999 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4000  MPILIBS="-lmpi"
4001 fi
4002
4003 fi
4004 if test x = x"$MPILIBS"; then
4005        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4006 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4007 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4008  $as_echo_n "(cached) " >&6
4009 else
4010  ac_check_lib_save_LIBS=$LIBS
4011 LIBS="-lmpich  $LIBS"
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h.  */
4014
4015 /* Override any GCC internal prototype to avoid an error.
4016   Use char because int might match the return type of a GCC
4017   builtin and then its argument prototype would still apply.  */
4018 #ifdef __cplusplus
4019 extern "C"
4020 #endif
4021 char MPI_Init ();
4022 int
4023 main ()
4024 {
4025 return MPI_Init ();
4026  ;
4027  return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_cxx_try_link "$LINENO"; then :
4031  ac_cv_lib_mpich_MPI_Init=yes
4032 else
4033  ac_cv_lib_mpich_MPI_Init=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext \
4036    conftest$ac_exeext conftest.$ac_ext
4037 LIBS=$ac_check_lib_save_LIBS
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4040 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4041 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4042  MPILIBS="-lmpich"
4043 fi
4044
4045 fi
4046
4047 if test x != x"$MPILIBS"; then
4048        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4049 $as_echo_n "checking for mpi.h... " >&6; }
4050        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h.  */
4052 #include <mpi.h>
4053 int
4054 main ()
4055 {
4056
4057  ;
4058  return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_cxx_try_compile "$LINENO"; then :
4062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4064 else
4065  MPILIBS=""
4066                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 fi
4071
4072 CXX="$ax_mpi_save_CXX"
4073
4074
4075
4076 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4077 if test x = x"$MPILIBS"; then
4078        USE_MPI="no"
4079       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4080 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4081        :
4082 else
4083        USE_MPI="yes"
4084        :
4085 fi
4086
3553   ac_ext=c
3554   ac_cpp='$CPP $CPPFLAGS'
3555   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558   if test -n "$ac_tool_prefix"; then
3559 <  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4094 < set dummy ${ac_tool_prefix}gcc; ac_word=$2
4095 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 < $as_echo_n "checking for $ac_word... " >&6; }
4097 < if test "${ac_cv_prog_CC+set}" = set; then :
4098 <  $as_echo_n "(cached) " >&6
4099 < else
4100 <  if test -n "$CC"; then
4101 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4102 < else
4103 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 < for as_dir in $PATH
4105 < do
4106 <  IFS=$as_save_IFS
4107 <  test -z "$as_dir" && as_dir=.
4108 <    for ac_exec_ext in '' $ac_executable_extensions; do
4109 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 <    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4111 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 <    break 2
4113 <  fi
4114 < done
4115 <  done
4116 < IFS=$as_save_IFS
4117 <
4118 < fi
4119 < fi
4120 < CC=$ac_cv_prog_CC
4121 < if test -n "$CC"; then
4122 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 < $as_echo "$CC" >&6; }
4124 < else
4125 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 < $as_echo "no" >&6; }
4127 < fi
4128 <
4129 <
4130 < fi
4131 < if test -z "$ac_cv_prog_CC"; then
4132 <  ac_ct_CC=$CC
4133 <  # Extract the first word of "gcc", so it can be a program name with args.
4134 < set dummy gcc; ac_word=$2
4135 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 < $as_echo_n "checking for $ac_word... " >&6; }
4137 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4138 <  $as_echo_n "(cached) " >&6
4139 < else
4140 <  if test -n "$ac_ct_CC"; then
4141 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4142 < else
4143 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 < for as_dir in $PATH
4145 < do
4146 <  IFS=$as_save_IFS
4147 <  test -z "$as_dir" && as_dir=.
4148 <    for ac_exec_ext in '' $ac_executable_extensions; do
4149 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150 <    ac_cv_prog_ac_ct_CC="gcc"
4151 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 <    break 2
4153 <  fi
4154 < done
4155 <  done
4156 < IFS=$as_save_IFS
4157 <
4158 < fi
4159 < fi
4160 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4161 < if test -n "$ac_ct_CC"; then
4162 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4163 < $as_echo "$ac_ct_CC" >&6; }
4164 < else
4165 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 < $as_echo "no" >&6; }
4167 < fi
4168 <
4169 <  if test "x$ac_ct_CC" = x; then
4170 <    CC=""
4171 <  else
4172 <    case $cross_compiling:$ac_tool_warned in
4173 < yes:)
4174 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176 < ac_tool_warned=yes ;;
4177 < esac
4178 <    CC=$ac_ct_CC
4179 <  fi
4180 < else
4181 <  CC="$ac_cv_prog_CC"
4182 < fi
4183 <
4184 < if test -z "$CC"; then
4185 <          if test -n "$ac_tool_prefix"; then
4186 <    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4187 < set dummy ${ac_tool_prefix}cc; ac_word=$2
4188 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 < $as_echo_n "checking for $ac_word... " >&6; }
4190 < if test "${ac_cv_prog_CC+set}" = set; then :
4191 <  $as_echo_n "(cached) " >&6
4192 < else
4193 <  if test -n "$CC"; then
4194 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4195 < else
4196 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 < for as_dir in $PATH
4198 < do
4199 <  IFS=$as_save_IFS
4200 <  test -z "$as_dir" && as_dir=.
4201 <    for ac_exec_ext in '' $ac_executable_extensions; do
4202 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 <    ac_cv_prog_CC="${ac_tool_prefix}cc"
4204 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 <    break 2
4206 <  fi
4207 < done
4208 <  done
4209 < IFS=$as_save_IFS
4210 <
4211 < fi
4212 < fi
4213 < CC=$ac_cv_prog_CC
4214 < if test -n "$CC"; then
4215 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 < $as_echo "$CC" >&6; }
4217 < else
4218 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 < $as_echo "no" >&6; }
4220 < fi
4221 <
4222 <
4223 <  fi
4224 < fi
4225 < if test -z "$CC"; then
4226 <  # Extract the first word of "cc", so it can be a program name with args.
4227 < set dummy cc; ac_word=$2
4228 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 < $as_echo_n "checking for $ac_word... " >&6; }
4230 < if test "${ac_cv_prog_CC+set}" = set; then :
4231 <  $as_echo_n "(cached) " >&6
4232 < else
4233 <  if test -n "$CC"; then
4234 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4235 < else
4236 <  ac_prog_rejected=no
4237 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 < for as_dir in $PATH
4239 < do
4240 <  IFS=$as_save_IFS
4241 <  test -z "$as_dir" && as_dir=.
4242 <    for ac_exec_ext in '' $ac_executable_extensions; do
4243 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 <    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4245 <       ac_prog_rejected=yes
4246 <       continue
4247 <     fi
4248 <    ac_cv_prog_CC="cc"
4249 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 <    break 2
4251 <  fi
4252 < done
4253 <  done
4254 < IFS=$as_save_IFS
4255 <
4256 < if test $ac_prog_rejected = yes; then
4257 <  # We found a bogon in the path, so make sure we never use it.
4258 <  set dummy $ac_cv_prog_CC
4259 <  shift
4260 <  if test $# != 0; then
4261 <    # We chose a different compiler from the bogus one.
4262 <    # However, it has the same basename, so the bogon will be chosen
4263 <    # first if we set CC to just the basename; use the full file name.
4264 <    shift
4265 <    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4266 <  fi
4267 < fi
4268 < fi
4269 < fi
4270 < CC=$ac_cv_prog_CC
4271 < if test -n "$CC"; then
4272 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273 < $as_echo "$CC" >&6; }
4274 < else
4275 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 < $as_echo "no" >&6; }
4277 < fi
4278 <
4279 <
4280 < fi
4281 < if test -z "$CC"; then
4282 <  if test -n "$ac_tool_prefix"; then
4283 <  for ac_prog in cl.exe
3559 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3560    do
3561      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3562   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564   $as_echo_n "checking for $ac_word... " >&6; }
3565 < if test "${ac_cv_prog_CC+set}" = set; then :
3565 > if ${ac_cv_prog_CC+:} false; then :
3566    $as_echo_n "(cached) " >&6
3567   else
3568    if test -n "$CC"; then
# Line 4324 | Line 3600 | if test -z "$CC"; then
3600   fi
3601   if test -z "$CC"; then
3602    ac_ct_CC=$CC
3603 <  for ac_prog in cl.exe
3603 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3604   do
3605    # Extract the first word of "$ac_prog", so it can be a program name with args.
3606   set dummy $ac_prog; ac_word=$2
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608   $as_echo_n "checking for $ac_word... " >&6; }
3609 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3609 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3610    $as_echo_n "(cached) " >&6
3611   else
3612    if test -n "$ac_ct_CC"; then
# Line 4379 | Line 3655 | fi
3655    fi
3656   fi
3657  
4382 fi
3658  
4384
3659   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661 < as_fn_error "no acceptable C compiler found in \$PATH
3662 < See \`config.log' for more details." "$LINENO" 5; }
3661 > as_fn_error $? "no acceptable C compiler found in \$PATH
3662 > See \`config.log' for more details" "$LINENO" 5; }
3663  
3664   # Provide some information about the compiler.
3665   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 4406 | Line 3680 | $as_echo "$ac_try_echo"; } >&5
3680   ... rest of stderr output deleted ...
3681           10q' conftest.err >conftest.er1
3682      cat conftest.er1 >&5
4409    rm -f conftest.er1 conftest.err
3683    fi
3684 +  rm -f conftest.er1 conftest.err
3685    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686    test $ac_status = 0; }
3687   done
3688  
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3690   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3691 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3691 > if ${ac_cv_c_compiler_gnu+:} false; then :
3692    $as_echo_n "(cached) " >&6
3693   else
3694    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 4451 | Line 3725 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3725   ac_save_CFLAGS=$CFLAGS
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3727   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3728 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3728 > if ${ac_cv_prog_cc_g+:} false; then :
3729    $as_echo_n "(cached) " >&6
3730   else
3731    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 4529 | Line 3803 | $as_echo_n "checking for $CC option to accept ISO C89.
3803   fi
3804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3805   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3806 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3806 > if ${ac_cv_prog_cc_c89+:} false; then :
3807    $as_echo_n "(cached) " >&6
3808   else
3809    ac_cv_prog_cc_c89=no
# Line 4623 | Line 3897 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626
4627
4628 if test $USE_MPI != no; then :
4629
4630 ac_ext=c
4631 ac_cpp='$CPP $CPPFLAGS'
4632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4635
4636
4637
4638
4639
4640
4641        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4642 do
4643  # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_MPICC+set}" = set; then :
4648  $as_echo_n "(cached) " >&6
4649 else
4650  if test -n "$MPICC"; then
4651  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660    ac_cv_prog_MPICC="$ac_prog"
4661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662    break 2
4663  fi
4664 done
4665  done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 MPICC=$ac_cv_prog_MPICC
4671 if test -n "$MPICC"; then
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4673 $as_echo "$MPICC" >&6; }
4674 else
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680  test -n "$MPICC" && break
4681 done
4682 test -n "$MPICC" || MPICC="$CC"
4683
4684        ax_mpi_save_CC="$CC"
4685        CC="$MPICC"
4686
4687
4688
4689 if test x = x"$MPILIBS"; then
4690        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4691 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4692  MPILIBS=" "
4693 fi
4694
4695 fi
4696
4697 if test x = x"$MPILIBS"; then
4698        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4699 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4700 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4701  $as_echo_n "(cached) " >&6
4702 else
4703  ac_check_lib_save_LIBS=$LIBS
4704 LIBS="-lmpi  $LIBS"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707
4708 /* Override any GCC internal prototype to avoid an error.
4709   Use char because int might match the return type of a GCC
4710   builtin and then its argument prototype would still apply.  */
4711 #ifdef __cplusplus
4712 extern "C"
4713 #endif
4714 char MPI_Init ();
4715 int
4716 main ()
4717 {
4718 return MPI_Init ();
4719  ;
4720  return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_link "$LINENO"; then :
4724  ac_cv_lib_mpi_MPI_Init=yes
4725 else
4726  ac_cv_lib_mpi_MPI_Init=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext \
4729    conftest$ac_exeext conftest.$ac_ext
4730 LIBS=$ac_check_lib_save_LIBS
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4733 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4734 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4735  MPILIBS="-lmpi"
4736 fi
3900  
4738 fi
4739 if test x = x"$MPILIBS"; then
4740        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4741 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4742 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4743  $as_echo_n "(cached) " >&6
4744 else
4745  ac_check_lib_save_LIBS=$LIBS
4746 LIBS="-lmpich  $LIBS"
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h.  */
4749
4750 /* Override any GCC internal prototype to avoid an error.
4751   Use char because int might match the return type of a GCC
4752   builtin and then its argument prototype would still apply.  */
4753 #ifdef __cplusplus
4754 extern "C"
4755 #endif
4756 char MPI_Init ();
4757 int
4758 main ()
4759 {
4760 return MPI_Init ();
4761  ;
4762  return 0;
4763 }
4764 _ACEOF
4765 if ac_fn_c_try_link "$LINENO"; then :
4766  ac_cv_lib_mpich_MPI_Init=yes
4767 else
4768  ac_cv_lib_mpich_MPI_Init=no
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext \
4771    conftest$ac_exeext conftest.$ac_ext
4772 LIBS=$ac_check_lib_save_LIBS
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4775 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4776 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4777  MPILIBS="-lmpich"
4778 fi
4779
4780 fi
4781
4782 if test x != x"$MPILIBS"; then
4783        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4784 $as_echo_n "checking for mpi.h... " >&6; }
4785        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h.  */
4787 #include <mpi.h>
4788 int
4789 main ()
4790 {
4791
4792  ;
4793  return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798 $as_echo "yes" >&6; }
4799 else
4800  MPILIBS=""
4801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806
4807 CC="$ax_mpi_save_CC"
4808
4809
4810
4811 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4812 if test x = x"$MPILIBS"; then
4813        USE_MPI="no"
4814       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4815 $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4816        :
4817 else
4818        USE_MPI="yes"
4819        :
4820 fi
4821
4822
4823 fi
3901   ac_ext=${ac_fc_srcext-f}
3902   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3903   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3904   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3905   if test -n "$ac_tool_prefix"; then
3906 <  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
3906 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3907    do
3908      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911   $as_echo_n "checking for $ac_word... " >&6; }
3912 < if test "${ac_cv_prog_FC+set}" = set; then :
3912 > if ${ac_cv_prog_FC+:} false; then :
3913    $as_echo_n "(cached) " >&6
3914   else
3915    if test -n "$FC"; then
# Line 4870 | Line 3947 | if test -z "$FC"; then
3947   fi
3948   if test -z "$FC"; then
3949    ac_ct_FC=$FC
3950 <  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
3950 >  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3951   do
3952    # Extract the first word of "$ac_prog", so it can be a program name with args.
3953   set dummy $ac_prog; ac_word=$2
3954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955   $as_echo_n "checking for $ac_word... " >&6; }
3956 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
3956 > if ${ac_cv_prog_ac_ct_FC+:} false; then :
3957    $as_echo_n "(cached) " >&6
3958   else
3959    if test -n "$ac_ct_FC"; then
# Line 4945 | Line 4022 | $as_echo "$ac_try_echo"; } >&5
4022   ... rest of stderr output deleted ...
4023           10q' conftest.err >conftest.er1
4024      cat conftest.er1 >&5
4948    rm -f conftest.er1 conftest.err
4025    fi
4026 +  rm -f conftest.er1 conftest.err
4027    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028    test $ac_status = 0; }
4029   done
# Line 4958 | Line 4035 | $as_echo_n "checking whether we are using the GNU Fort
4035   ac_ext=F
4036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4037   $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4038 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4038 > if ${ac_cv_fc_compiler_gnu+:} false; then :
4039    $as_echo_n "(cached) " >&6
4040   else
4041    cat > conftest.$ac_ext <<_ACEOF
# Line 4986 | Line 4063 | $as_echo_n "checking whether $FC accepts -g... " >&6;
4063   FCFLAGS=
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4065   $as_echo_n "checking whether $FC accepts -g... " >&6; }
4066 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4066 > if ${ac_cv_prog_fc_g+:} false; then :
4067    $as_echo_n "(cached) " >&6
4068   else
4069    FCFLAGS=-g
# Line 5021 | Line 4098 | fi
4098    fi
4099   fi
4100  
4101 < ac_ext=${ac_fc_srcext-f}
4102 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4103 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4104 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4101 > ac_ext=c
4102 > ac_cpp='$CPP $CPPFLAGS'
4103 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106  
4107  
4108 < if test $USE_MPI != no; then :
4108 > save_CXX=$CXX
4109 > save_CC=$CC
4110 > save_FC=$FC
4111 > save_LIBS=$LIBS
4112  
4113 < ac_ext=${ac_fc_srcext-f}
4114 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4115 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4116 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4113 > ac_ext=cpp
4114 > ac_cpp='$CXXCPP $CPPFLAGS'
4115 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4118  
4119  
4120 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
4121 + $as_echo_n "checking for dlopen in -lc... " >&6; }
4122 + if ${ac_cv_lib_c_dlopen+:} false; then :
4123 +  $as_echo_n "(cached) " >&6
4124 + else
4125 +  ac_check_lib_save_LIBS=$LIBS
4126 + LIBS="-lc  $LIBS"
4127 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 + /* end confdefs.h.  */
4129  
4130 + /* Override any GCC internal prototype to avoid an error.
4131 +   Use char because int might match the return type of a GCC
4132 +   builtin and then its argument prototype would still apply.  */
4133 + #ifdef __cplusplus
4134 + extern "C"
4135 + #endif
4136 + char dlopen ();
4137 + int
4138 + main ()
4139 + {
4140 + return dlopen ();
4141 +  ;
4142 +  return 0;
4143 + }
4144 + _ACEOF
4145 + if ac_fn_cxx_try_link "$LINENO"; then :
4146 +  ac_cv_lib_c_dlopen=yes
4147 + else
4148 +  ac_cv_lib_c_dlopen=no
4149 + fi
4150 + rm -f core conftest.err conftest.$ac_objext \
4151 +    conftest$ac_exeext conftest.$ac_ext
4152 + LIBS=$ac_check_lib_save_LIBS
4153 + fi
4154 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
4155 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
4156 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
4157 +  LIBDL=""
4158 + else
4159 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4160 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
4161 + if ${ac_cv_lib_dl_dlopen+:} false; then :
4162 +  $as_echo_n "(cached) " >&6
4163 + else
4164 +  ac_check_lib_save_LIBS=$LIBS
4165 + LIBS="-ldl  $LIBS"
4166 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 + /* end confdefs.h.  */
4168  
4169 + /* Override any GCC internal prototype to avoid an error.
4170 +   Use char because int might match the return type of a GCC
4171 +   builtin and then its argument prototype would still apply.  */
4172 + #ifdef __cplusplus
4173 + extern "C"
4174 + #endif
4175 + char dlopen ();
4176 + int
4177 + main ()
4178 + {
4179 + return dlopen ();
4180 +  ;
4181 +  return 0;
4182 + }
4183 + _ACEOF
4184 + if ac_fn_cxx_try_link "$LINENO"; then :
4185 +  ac_cv_lib_dl_dlopen=yes
4186 + else
4187 +  ac_cv_lib_dl_dlopen=no
4188 + fi
4189 + rm -f core conftest.err conftest.$ac_objext \
4190 +    conftest$ac_exeext conftest.$ac_ext
4191 + LIBS=$ac_check_lib_save_LIBS
4192 + fi
4193 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4194 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4195 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4196 +  LIBDL="-ldl"
4197 + fi
4198  
4199 + fi
4200  
4201 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4201 >
4202 >
4203 >
4204 >
4205 >
4206 >
4207 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
4208   do
4209    # Extract the first word of "$ac_prog", so it can be a program name with args.
4210   set dummy $ac_prog; ac_word=$2
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212   $as_echo_n "checking for $ac_word... " >&6; }
4213 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4213 > if ${ac_cv_prog_MPICXX+:} false; then :
4214    $as_echo_n "(cached) " >&6
4215   else
4216 <  if test -n "$MPIFC"; then
4217 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4216 >  if test -n "$MPICXX"; then
4217 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
4218   else
4219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220   for as_dir in $PATH
# Line 5058 | Line 4223 | do
4223    test -z "$as_dir" && as_dir=.
4224      for ac_exec_ext in '' $ac_executable_extensions; do
4225    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 <    ac_cv_prog_MPIFC="$ac_prog"
4226 >    ac_cv_prog_MPICXX="$ac_prog"
4227      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228      break 2
4229    fi
# Line 5068 | Line 4233 | fi
4233  
4234   fi
4235   fi
4236 < MPIFC=$ac_cv_prog_MPIFC
4237 < if test -n "$MPIFC"; then
4238 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4239 < $as_echo "$MPIFC" >&6; }
4236 > MPICXX=$ac_cv_prog_MPICXX
4237 > if test -n "$MPICXX"; then
4238 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
4239 > $as_echo "$MPICXX" >&6; }
4240   else
4241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242   $as_echo "no" >&6; }
4243   fi
4244  
4245  
4246 <  test -n "$MPIFC" && break
4246 >  test -n "$MPICXX" && break
4247   done
4248 < test -n "$MPIFC" || MPIFC="$FC"
4248 > test -n "$MPICXX" || MPICXX="$CXX"
4249  
4250 <        ax_mpi_save_FC="$FC"
4251 <        FC="$MPIFC"
4250 >        ax_mpi_save_CXX="$CXX"
4251 >        CXX="$MPICXX"
4252  
4253  
4254  
4255   if test x = x"$MPILIBS"; then
4256 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4257 < $as_echo_n "checking for MPI_Init... " >&6; }
5093 <                        cat > conftest.$ac_ext <<_ACEOF
5094 <      program main
5095 <      call MPI_Init
5096 <      end
5097 < _ACEOF
5098 < if ac_fn_fc_try_link "$LINENO"; then :
4256 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4257 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4258    MPILIBS=" "
5100                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101 $as_echo "yes" >&6; }
5102 else
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
4259   fi
5106 rm -f core conftest.err conftest.$ac_objext \
5107    conftest$ac_exeext conftest.$ac_ext
5108 fi
4260  
5110        if test x = x"$MPILIBS"; then
5111                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5112 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5113 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5114  $as_echo_n "(cached) " >&6
5115 else
5116  ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-lfmpi  $LIBS"
5118 cat > conftest.$ac_ext <<_ACEOF
5119      program main
5120      call MPI_Init
5121      end
5122 _ACEOF
5123 if ac_fn_fc_try_link "$LINENO"; then :
5124  ac_cv_lib_fmpi_MPI_Init=yes
5125 else
5126  ac_cv_lib_fmpi_MPI_Init=no
4261   fi
5128 rm -f core conftest.err conftest.$ac_objext \
5129    conftest$ac_exeext conftest.$ac_ext
5130 LIBS=$ac_check_lib_save_LIBS
5131 fi
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5133 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5134 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5135  MPILIBS="-lfmpi"
5136 fi
4262  
5138        fi
5139        if test x = x"$MPILIBS"; then
5140                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5141 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5142 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5143  $as_echo_n "(cached) " >&6
5144 else
5145  ac_check_lib_save_LIBS=$LIBS
5146 LIBS="-lmpichf90  $LIBS"
5147 cat > conftest.$ac_ext <<_ACEOF
5148      program main
5149      call MPI_Init
5150      end
5151 _ACEOF
5152 if ac_fn_fc_try_link "$LINENO"; then :
5153  ac_cv_lib_mpichf90_MPI_Init=yes
5154 else
5155  ac_cv_lib_mpichf90_MPI_Init=no
5156 fi
5157 rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5162 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5163 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5164  MPILIBS="-lmpichf90"
5165 fi
5166
5167        fi
5168
4263   if test x = x"$MPILIBS"; then
4264          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4265   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4266 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4266 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4267    $as_echo_n "(cached) " >&6
4268   else
4269    ac_check_lib_save_LIBS=$LIBS
4270   LIBS="-lmpi  $LIBS"
4271 < cat > conftest.$ac_ext <<_ACEOF
4272 <      program main
4273 <      call MPI_Init
4274 <      end
4271 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 > /* end confdefs.h.  */
4273 >
4274 > /* Override any GCC internal prototype to avoid an error.
4275 >   Use char because int might match the return type of a GCC
4276 >   builtin and then its argument prototype would still apply.  */
4277 > #ifdef __cplusplus
4278 > extern "C"
4279 > #endif
4280 > char MPI_Init ();
4281 > int
4282 > main ()
4283 > {
4284 > return MPI_Init ();
4285 >  ;
4286 >  return 0;
4287 > }
4288   _ACEOF
4289 < if ac_fn_fc_try_link "$LINENO"; then :
4289 > if ac_fn_cxx_try_link "$LINENO"; then :
4290    ac_cv_lib_mpi_MPI_Init=yes
4291   else
4292    ac_cv_lib_mpi_MPI_Init=no
# Line 5190 | Line 4297 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4297   fi
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4299   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4300 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4300 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4301    MPILIBS="-lmpi"
4302   fi
4303  
# Line 5198 | Line 4305 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4305   if test x = x"$MPILIBS"; then
4306          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4307   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4308 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4308 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4309    $as_echo_n "(cached) " >&6
4310   else
4311    ac_check_lib_save_LIBS=$LIBS
4312   LIBS="-lmpich  $LIBS"
4313 < cat > conftest.$ac_ext <<_ACEOF
4314 <      program main
4315 <      call MPI_Init
4316 <      end
4313 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 > /* end confdefs.h.  */
4315 >
4316 > /* Override any GCC internal prototype to avoid an error.
4317 >   Use char because int might match the return type of a GCC
4318 >   builtin and then its argument prototype would still apply.  */
4319 > #ifdef __cplusplus
4320 > extern "C"
4321 > #endif
4322 > char MPI_Init ();
4323 > int
4324 > main ()
4325 > {
4326 > return MPI_Init ();
4327 >  ;
4328 >  return 0;
4329 > }
4330   _ACEOF
4331 < if ac_fn_fc_try_link "$LINENO"; then :
4331 > if ac_fn_cxx_try_link "$LINENO"; then :
4332    ac_cv_lib_mpich_MPI_Init=yes
4333   else
4334    ac_cv_lib_mpich_MPI_Init=no
# Line 5219 | Line 4339 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4339   fi
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4341   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4342 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4342 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4343    MPILIBS="-lmpich"
4344   fi
4345  
4346   fi
4347  
4348   if test x != x"$MPILIBS"; then
4349 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4350 < $as_echo_n "checking for mpif.h... " >&6; }
4351 <        cat > conftest.$ac_ext <<_ACEOF
4352 <      program main
4353 <      include 'mpif.h'
4354 <      end
4349 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4350 > $as_echo_n "checking for mpi.h... " >&6; }
4351 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 > /* end confdefs.h.  */
4353 > #include <mpi.h>
4354 > int
4355 > main ()
4356 > {
4357 >
4358 >  ;
4359 >  return 0;
4360 > }
4361   _ACEOF
4362 < if ac_fn_fc_try_compile "$LINENO"; then :
4362 > if ac_fn_cxx_try_compile "$LINENO"; then :
4363    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364   $as_echo "yes" >&6; }
4365   else
# Line 5244 | Line 4370 | fi
4370   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371   fi
4372  
4373 < FC="$ax_mpi_save_FC"
4373 > CXX="$ax_mpi_save_CXX"
4374  
4375  
4376  
4377   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4378   if test x = x"$MPILIBS"; then
4379          USE_MPI="no"
4380 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4381 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
4380 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4381 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4382          :
4383   else
4384          USE_MPI="yes"
# Line 5260 | Line 4386 | fi
4386   fi
4387  
4388  
5263 fi
4389   if test $USE_MPI != no; then :
4390  
4391 <        CXX=$MPICXX
4392 <        CC=$MPICC
4393 <        FC=$MPIFC
4391 > ac_ext=c
4392 > ac_cpp='$CPP $CPPFLAGS'
4393 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396  
5270 fi
4397  
4398  
5273 # Checks for programs.
5274 ac_ext=cpp
5275 ac_cpp='$CXXCPP $CPPFLAGS'
5276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279 if test -z "$CXX"; then
5280  if test -n "$CCC"; then
5281    CXX=$CCC
5282  else
5283    if test -n "$ac_tool_prefix"; then
5284  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
5285  do
5286    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if test "${ac_cv_prog_CXX+set}" = set; then :
5291  $as_echo_n "(cached) " >&6
5292 else
5293  if test -n "$CXX"; then
5294  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299  IFS=$as_save_IFS
5300  test -z "$as_dir" && as_dir=.
5301    for ac_exec_ext in '' $ac_executable_extensions; do
5302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305    break 2
5306  fi
5307 done
5308  done
5309 IFS=$as_save_IFS
4399  
5311 fi
5312 fi
5313 CXX=$ac_cv_prog_CXX
5314 if test -n "$CXX"; then
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5316 $as_echo "$CXX" >&6; }
5317 else
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5320 fi
4400  
4401  
4402 <    test -n "$CXX" && break
5324 <  done
5325 < fi
5326 < if test -z "$CXX"; then
5327 <  ac_ct_CXX=$CXX
5328 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4402 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4403   do
4404    # Extract the first word of "$ac_prog", so it can be a program name with args.
4405   set dummy $ac_prog; ac_word=$2
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407   $as_echo_n "checking for $ac_word... " >&6; }
4408 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4408 > if ${ac_cv_prog_MPICC+:} false; then :
4409    $as_echo_n "(cached) " >&6
4410   else
4411 <  if test -n "$ac_ct_CXX"; then
4412 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4411 >  if test -n "$MPICC"; then
4412 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4413   else
4414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415   for as_dir in $PATH
# Line 5344 | Line 4418 | do
4418    test -z "$as_dir" && as_dir=.
4419      for ac_exec_ext in '' $ac_executable_extensions; do
4420    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4421 >    ac_cv_prog_MPICC="$ac_prog"
4422      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423      break 2
4424    fi
# Line 5354 | Line 4428 | fi
4428  
4429   fi
4430   fi
4431 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4432 < if test -n "$ac_ct_CXX"; then
4433 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4434 < $as_echo "$ac_ct_CXX" >&6; }
4431 > MPICC=$ac_cv_prog_MPICC
4432 > if test -n "$MPICC"; then
4433 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4434 > $as_echo "$MPICC" >&6; }
4435   else
4436    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437   $as_echo "no" >&6; }
4438   fi
4439  
4440  
4441 <  test -n "$ac_ct_CXX" && break
4441 >  test -n "$MPICC" && break
4442   done
4443 + test -n "$MPICC" || MPICC="$CC"
4444  
4445 <  if test "x$ac_ct_CXX" = x; then
4446 <    CXX="g++"
4447 <  else
4448 <    case $cross_compiling:$ac_tool_warned in
4449 < yes:)
4450 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 < ac_tool_warned=yes ;;
4453 < esac
5379 <    CXX=$ac_ct_CXX
5380 <  fi
4445 >        ax_mpi_save_CC="$CC"
4446 >        CC="$MPICC"
4447 >
4448 >
4449 >
4450 > if test x = x"$MPILIBS"; then
4451 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4452 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4453 >  MPILIBS=" "
4454   fi
4455  
5383  fi
4456   fi
5385 # Provide some information about the compiler.
5386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5387 set X $ac_compile
5388 ac_compiler=$2
5389 for ac_option in --version -v -V -qversion; do
5390  { { ac_try="$ac_compiler $ac_option >&5"
5391 case "(($ac_try" in
5392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393  *) ac_try_echo=$ac_try;;
5394 esac
5395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5396 $as_echo "$ac_try_echo"; } >&5
5397  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5398  ac_status=$?
5399  if test -s conftest.err; then
5400    sed '10a\
5401 ... rest of stderr output deleted ...
5402         10q' conftest.err >conftest.er1
5403    cat conftest.er1 >&5
5404    rm -f conftest.er1 conftest.err
5405  fi
5406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407  test $ac_status = 0; }
5408 done
4457  
4458 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4459 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4460 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4458 > if test x = x"$MPILIBS"; then
4459 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4460 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4461 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4462    $as_echo_n "(cached) " >&6
4463   else
4464 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 >  ac_check_lib_save_LIBS=$LIBS
4465 > LIBS="-lmpi  $LIBS"
4466 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467   /* end confdefs.h.  */
4468  
4469 + /* Override any GCC internal prototype to avoid an error.
4470 +   Use char because int might match the return type of a GCC
4471 +   builtin and then its argument prototype would still apply.  */
4472 + #ifdef __cplusplus
4473 + extern "C"
4474 + #endif
4475 + char MPI_Init ();
4476   int
4477   main ()
4478   {
4479 < #ifndef __GNUC__
5422 <       choke me
5423 < #endif
5424 <
4479 > return MPI_Init ();
4480    ;
4481    return 0;
4482   }
4483   _ACEOF
4484 < if ac_fn_cxx_try_compile "$LINENO"; then :
4485 <  ac_compiler_gnu=yes
4484 > if ac_fn_c_try_link "$LINENO"; then :
4485 >  ac_cv_lib_mpi_MPI_Init=yes
4486   else
4487 <  ac_compiler_gnu=no
4487 >  ac_cv_lib_mpi_MPI_Init=no
4488   fi
4489 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4491 <
4489 > rm -f core conftest.err conftest.$ac_objext \
4490 >    conftest$ac_exeext conftest.$ac_ext
4491 > LIBS=$ac_check_lib_save_LIBS
4492   fi
4493 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4494 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4495 < if test $ac_compiler_gnu = yes; then
4496 <  GXX=yes
5442 < else
5443 <  GXX=
4493 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4494 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4495 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4496 >  MPILIBS="-lmpi"
4497   fi
4498 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4499 < ac_save_CXXFLAGS=$CXXFLAGS
4500 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4501 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4502 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4498 >
4499 > fi
4500 > if test x = x"$MPILIBS"; then
4501 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4502 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4503 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4504    $as_echo_n "(cached) " >&6
4505   else
4506 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4507 <   ac_cxx_werror_flag=yes
4508 <   ac_cv_prog_cxx_g=no
5455 <   CXXFLAGS="-g"
5456 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 >  ac_check_lib_save_LIBS=$LIBS
4507 > LIBS="-lmpich  $LIBS"
4508 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509   /* end confdefs.h.  */
4510  
4511 + /* Override any GCC internal prototype to avoid an error.
4512 +   Use char because int might match the return type of a GCC
4513 +   builtin and then its argument prototype would still apply.  */
4514 + #ifdef __cplusplus
4515 + extern "C"
4516 + #endif
4517 + char MPI_Init ();
4518   int
4519   main ()
4520   {
4521 <
4521 > return MPI_Init ();
4522    ;
4523    return 0;
4524   }
4525   _ACEOF
4526 < if ac_fn_cxx_try_compile "$LINENO"; then :
4527 <  ac_cv_prog_cxx_g=yes
4526 > if ac_fn_c_try_link "$LINENO"; then :
4527 >  ac_cv_lib_mpich_MPI_Init=yes
4528   else
4529 <  CXXFLAGS=""
4530 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 < /* end confdefs.h.  */
4529 >  ac_cv_lib_mpich_MPI_Init=no
4530 > fi
4531 > rm -f core conftest.err conftest.$ac_objext \
4532 >    conftest$ac_exeext conftest.$ac_ext
4533 > LIBS=$ac_check_lib_save_LIBS
4534 > fi
4535 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4536 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4537 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4538 >  MPILIBS="-lmpich"
4539 > fi
4540  
4541 < int
5475 < main ()
5476 < {
4541 > fi
4542  
4543 <  ;
4544 <  return 0;
4545 < }
4546 < _ACEOF
5482 < if ac_fn_cxx_try_compile "$LINENO"; then :
5483 <
5484 < else
5485 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5486 <         CXXFLAGS="-g"
5487 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 > if test x != x"$MPILIBS"; then
4544 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4545 > $as_echo_n "checking for mpi.h... " >&6; }
4546 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547   /* end confdefs.h.  */
4548 <
4548 > #include <mpi.h>
4549   int
4550   main ()
4551   {
# Line 5495 | Line 4554 | _ACEOF
4554    return 0;
4555   }
4556   _ACEOF
4557 < if ac_fn_cxx_try_compile "$LINENO"; then :
4558 <  ac_cv_prog_cxx_g=yes
4557 > if ac_fn_c_try_compile "$LINENO"; then :
4558 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559 > $as_echo "yes" >&6; }
4560 > else
4561 >  MPILIBS=""
4562 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 > $as_echo "no" >&6; }
4564   fi
4565   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566   fi
4567 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 < fi
4569 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4571 < fi
4572 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 < if test "$ac_test_CXXFLAGS" = set; then
4575 <  CXXFLAGS=$ac_save_CXXFLAGS
4576 < elif test $ac_cv_prog_cxx_g = yes; then
4577 <  if test "$GXX" = yes; then
5514 <    CXXFLAGS="-g -O2"
5515 <  else
5516 <    CXXFLAGS="-g"
5517 <  fi
4567 >
4568 > CC="$ax_mpi_save_CC"
4569 >
4570 >
4571 >
4572 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4573 > if test x = x"$MPILIBS"; then
4574 >        USE_MPI="no"
4575 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4576 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4577 >        :
4578   else
4579 <  if test "$GXX" = yes; then
4580 <    CXXFLAGS="-O2"
5521 <  else
5522 <    CXXFLAGS=
5523 <  fi
4579 >        USE_MPI="yes"
4580 >        :
4581   fi
4582 +
4583 +
4584 + fi
4585 +
4586 + if test $USE_MPI != no; then :
4587 +
4588   ac_ext=${ac_fc_srcext-f}
4589   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4590   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4591   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4592  
5530 ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 if test -n "$ac_tool_prefix"; then
5536  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
5537  do
5538    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_CC+set}" = set; then :
5543  $as_echo_n "(cached) " >&6
5544 else
5545  if test -n "$CC"; then
5546  ac_cv_prog_CC="$CC" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553    for ac_exec_ext in '' $ac_executable_extensions; do
5554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557    break 2
5558  fi
5559 done
5560  done
5561 IFS=$as_save_IFS
4593  
5563 fi
5564 fi
5565 CC=$ac_cv_prog_CC
5566 if test -n "$CC"; then
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5568 $as_echo "$CC" >&6; }
5569 else
5570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
4594  
4595  
4596 <    test -n "$CC" && break
4597 <  done
4598 < fi
5578 < if test -z "$CC"; then
5579 <  ac_ct_CC=$CC
5580 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4596 >
4597 >
4598 >        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4599   do
4600    # Extract the first word of "$ac_prog", so it can be a program name with args.
4601   set dummy $ac_prog; ac_word=$2
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603   $as_echo_n "checking for $ac_word... " >&6; }
4604 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4604 > if ${ac_cv_prog_MPIFC+:} false; then :
4605    $as_echo_n "(cached) " >&6
4606   else
4607 <  if test -n "$ac_ct_CC"; then
4608 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4607 >  if test -n "$MPIFC"; then
4608 >  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4609   else
4610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611   for as_dir in $PATH
# Line 5596 | Line 4614 | do
4614    test -z "$as_dir" && as_dir=.
4615      for ac_exec_ext in '' $ac_executable_extensions; do
4616    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4617 >    ac_cv_prog_MPIFC="$ac_prog"
4618      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619      break 2
4620    fi
# Line 5606 | Line 4624 | fi
4624  
4625   fi
4626   fi
4627 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4628 < if test -n "$ac_ct_CC"; then
4629 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4630 < $as_echo "$ac_ct_CC" >&6; }
4627 > MPIFC=$ac_cv_prog_MPIFC
4628 > if test -n "$MPIFC"; then
4629 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4630 > $as_echo "$MPIFC" >&6; }
4631   else
4632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633   $as_echo "no" >&6; }
4634   fi
4635  
4636  
4637 <  test -n "$ac_ct_CC" && break
4637 >  test -n "$MPIFC" && break
4638   done
4639 + test -n "$MPIFC" || MPIFC="$FC"
4640  
4641 <  if test "x$ac_ct_CC" = x; then
4642 <    CC=""
5624 <  else
5625 <    case $cross_compiling:$ac_tool_warned in
5626 < yes:)
5627 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 < ac_tool_warned=yes ;;
5630 < esac
5631 <    CC=$ac_ct_CC
5632 <  fi
5633 < fi
4641 >        ax_mpi_save_FC="$FC"
4642 >        FC="$MPIFC"
4643  
4644  
5636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5638 as_fn_error "no acceptable C compiler found in \$PATH
5639 See \`config.log' for more details." "$LINENO" 5; }
4645  
4646 < # Provide some information about the compiler.
4647 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4648 < set X $ac_compile
4649 < ac_compiler=$2
4650 < for ac_option in --version -v -V -qversion; do
4651 <  { { ac_try="$ac_compiler $ac_option >&5"
4652 < case "(($ac_try" in
5648 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 <  *) ac_try_echo=$ac_try;;
5650 < esac
5651 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 < $as_echo "$ac_try_echo"; } >&5
5653 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5654 <  ac_status=$?
5655 <  if test -s conftest.err; then
5656 <    sed '10a\
5657 < ... rest of stderr output deleted ...
5658 <         10q' conftest.err >conftest.er1
5659 <    cat conftest.er1 >&5
5660 <    rm -f conftest.er1 conftest.err
5661 <  fi
5662 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 <  test $ac_status = 0; }
5664 < done
5665 <
5666 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5667 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5668 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5669 <  $as_echo_n "(cached) " >&6
5670 < else
5671 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 < /* end confdefs.h.  */
5673 <
5674 < int
5675 < main ()
5676 < {
5677 < #ifndef __GNUC__
5678 <       choke me
5679 < #endif
5680 <
5681 <  ;
5682 <  return 0;
5683 < }
4646 > if test x = x"$MPILIBS"; then
4647 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4648 > $as_echo_n "checking for MPI_Init... " >&6; }
4649 >                        cat > conftest.$ac_ext <<_ACEOF
4650 >      program main
4651 >      call MPI_Init
4652 >      end
4653   _ACEOF
4654 < if ac_fn_c_try_compile "$LINENO"; then :
4655 <  ac_compiler_gnu=yes
4654 > if ac_fn_fc_try_link "$LINENO"; then :
4655 >  MPILIBS=" "
4656 >                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 > $as_echo "yes" >&6; }
4658   else
4659 <  ac_compiler_gnu=no
4659 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 > $as_echo "no" >&6; }
4661   fi
4662 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
5692 <
4662 > rm -f core conftest.err conftest.$ac_objext \
4663 >    conftest$ac_exeext conftest.$ac_ext
4664   fi
4665 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4666 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4667 < if test $ac_compiler_gnu = yes; then
4668 <  GCC=yes
4669 < else
5699 <  GCC=
5700 < fi
5701 < ac_test_CFLAGS=${CFLAGS+set}
5702 < ac_save_CFLAGS=$CFLAGS
5703 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5704 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
5705 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4665 >
4666 >        if test x = x"$MPILIBS"; then
4667 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4668 > $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4669 > if ${ac_cv_lib_fmpi_MPI_Init+:} false; then :
4670    $as_echo_n "(cached) " >&6
4671   else
4672 <  ac_save_c_werror_flag=$ac_c_werror_flag
4673 <   ac_c_werror_flag=yes
4674 <   ac_cv_prog_cc_g=no
4675 <   CFLAGS="-g"
4676 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 < /* end confdefs.h.  */
5714 <
5715 < int
5716 < main ()
5717 < {
5718 <
5719 <  ;
5720 <  return 0;
5721 < }
4672 >  ac_check_lib_save_LIBS=$LIBS
4673 > LIBS="-lfmpi  $LIBS"
4674 > cat > conftest.$ac_ext <<_ACEOF
4675 >      program main
4676 >      call MPI_Init
4677 >      end
4678   _ACEOF
4679 < if ac_fn_c_try_compile "$LINENO"; then :
4680 <  ac_cv_prog_cc_g=yes
4679 > if ac_fn_fc_try_link "$LINENO"; then :
4680 >  ac_cv_lib_fmpi_MPI_Init=yes
4681   else
4682 <  CFLAGS=""
5727 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 < /* end confdefs.h.  */
5729 <
5730 < int
5731 < main ()
5732 < {
5733 <
5734 <  ;
5735 <  return 0;
5736 < }
5737 < _ACEOF
5738 < if ac_fn_c_try_compile "$LINENO"; then :
5739 <
5740 < else
5741 <  ac_c_werror_flag=$ac_save_c_werror_flag
5742 <         CFLAGS="-g"
5743 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 < /* end confdefs.h.  */
5745 <
5746 < int
5747 < main ()
5748 < {
5749 <
5750 <  ;
5751 <  return 0;
5752 < }
5753 < _ACEOF
5754 < if ac_fn_c_try_compile "$LINENO"; then :
5755 <  ac_cv_prog_cc_g=yes
4682 >  ac_cv_lib_fmpi_MPI_Init=no
4683   fi
4684 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 > rm -f core conftest.err conftest.$ac_objext \
4685 >    conftest$ac_exeext conftest.$ac_ext
4686 > LIBS=$ac_check_lib_save_LIBS
4687   fi
4688 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 < fi
4690 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 <   ac_c_werror_flag=$ac_save_c_werror_flag
4692 < fi
5764 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5765 < $as_echo "$ac_cv_prog_cc_g" >&6; }
5766 < if test "$ac_test_CFLAGS" = set; then
5767 <  CFLAGS=$ac_save_CFLAGS
5768 < elif test $ac_cv_prog_cc_g = yes; then
5769 <  if test "$GCC" = yes; then
5770 <    CFLAGS="-g -O2"
5771 <  else
5772 <    CFLAGS="-g"
5773 <  fi
5774 < else
5775 <  if test "$GCC" = yes; then
5776 <    CFLAGS="-O2"
5777 <  else
5778 <    CFLAGS=
5779 <  fi
5780 < fi
5781 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5782 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5783 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
5784 <  $as_echo_n "(cached) " >&6
5785 < else
5786 <  ac_cv_prog_cc_c89=no
5787 < ac_save_CC=$CC
5788 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 < /* end confdefs.h.  */
5790 < #include <stdarg.h>
5791 < #include <stdio.h>
5792 < #include <sys/types.h>
5793 < #include <sys/stat.h>
5794 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5795 < struct buf { int x; };
5796 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
5797 < static char *e (p, i)
5798 <     char **p;
5799 <     int i;
5800 < {
5801 <  return p[i];
5802 < }
5803 < static char *f (char * (*g) (char **, int), char **p, ...)
5804 < {
5805 <  char *s;
5806 <  va_list v;
5807 <  va_start (v,p);
5808 <  s = g (p, va_arg (v,int));
5809 <  va_end (v);
5810 <  return s;
5811 < }
4688 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4689 > $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4690 > if test "x$ac_cv_lib_fmpi_MPI_Init" = xyes; then :
4691 >  MPILIBS="-lfmpi"
4692 > fi
4693  
4694 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4695 <   function prototypes and stuff, but not '\xHH' hex character constants.
4696 <   These don't provoke an error unfortunately, instead are silently treated
4697 <   as 'x'.  The following induces an error, until -std is added to get
4698 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4699 <   array size at least.  It's necessary to write '\x00'==0 to get something
4700 <   that's true only with -std.  */
4701 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4702 <
4703 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4704 <   inside strings and character constants.  */
4705 < #define FOO(x) 'x'
4706 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5826 <
5827 < int test (int i, double x);
5828 < struct s1 {int (*f) (int a);};
5829 < struct s2 {int (*f) (double a);};
5830 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5831 < int argc;
5832 < char **argv;
5833 < int
5834 < main ()
5835 < {
5836 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5837 <  ;
5838 <  return 0;
5839 < }
4694 >        fi
4695 >        if test x = x"$MPILIBS"; then
4696 >                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4697 > $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4698 > if ${ac_cv_lib_mpichf90_MPI_Init+:} false; then :
4699 >  $as_echo_n "(cached) " >&6
4700 > else
4701 >  ac_check_lib_save_LIBS=$LIBS
4702 > LIBS="-lmpichf90  $LIBS"
4703 > cat > conftest.$ac_ext <<_ACEOF
4704 >      program main
4705 >      call MPI_Init
4706 >      end
4707   _ACEOF
4708 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4709 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4710 < do
4711 <  CC="$ac_save_CC $ac_arg"
5845 <  if ac_fn_c_try_compile "$LINENO"; then :
5846 <  ac_cv_prog_cc_c89=$ac_arg
4708 > if ac_fn_fc_try_link "$LINENO"; then :
4709 >  ac_cv_lib_mpichf90_MPI_Init=yes
4710 > else
4711 >  ac_cv_lib_mpichf90_MPI_Init=no
4712   fi
4713 < rm -f core conftest.err conftest.$ac_objext
4714 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
4715 < done
5851 < rm -f conftest.$ac_ext
5852 < CC=$ac_save_CC
5853 <
4713 > rm -f core conftest.err conftest.$ac_objext \
4714 >    conftest$ac_exeext conftest.$ac_ext
4715 > LIBS=$ac_check_lib_save_LIBS
4716   fi
4717 < # AC_CACHE_VAL
4718 < case "x$ac_cv_prog_cc_c89" in
4719 <  x)
4720 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5859 < $as_echo "none needed" >&6; } ;;
5860 <  xno)
5861 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5862 < $as_echo "unsupported" >&6; } ;;
5863 <  *)
5864 <    CC="$CC $ac_cv_prog_cc_c89"
5865 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5866 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5867 < esac
5868 < if test "x$ac_cv_prog_cc_c89" != xno; then :
5869 <
4717 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4718 > $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4719 > if test "x$ac_cv_lib_mpichf90_MPI_Init" = xyes; then :
4720 >  MPILIBS="-lmpichf90"
4721   fi
4722  
4723 < ac_ext=${ac_fc_srcext-f}
5873 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5874 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5875 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4723 >        fi
4724  
4725 < ac_ext=${ac_fc_srcext-f}
4726 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4727 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4728 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5881 < if test -n "$ac_tool_prefix"; then
5882 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
5883 <  do
5884 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 < $as_echo_n "checking for $ac_word... " >&6; }
5888 < if test "${ac_cv_prog_FC+set}" = set; then :
4725 > if test x = x"$MPILIBS"; then
4726 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4727 > $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4728 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4729    $as_echo_n "(cached) " >&6
4730   else
4731 <  if test -n "$FC"; then
4732 <  ac_cv_prog_FC="$FC" # Let the user override the test.
4731 >  ac_check_lib_save_LIBS=$LIBS
4732 > LIBS="-lmpi  $LIBS"
4733 > cat > conftest.$ac_ext <<_ACEOF
4734 >      program main
4735 >      call MPI_Init
4736 >      end
4737 > _ACEOF
4738 > if ac_fn_fc_try_link "$LINENO"; then :
4739 >  ac_cv_lib_mpi_MPI_Init=yes
4740   else
4741 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 < for as_dir in $PATH
5896 < do
5897 <  IFS=$as_save_IFS
5898 <  test -z "$as_dir" && as_dir=.
5899 <    for ac_exec_ext in '' $ac_executable_extensions; do
5900 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
5902 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 <    break 2
5904 <  fi
5905 < done
5906 <  done
5907 < IFS=$as_save_IFS
5908 <
4741 >  ac_cv_lib_mpi_MPI_Init=no
4742   fi
4743 + rm -f core conftest.err conftest.$ac_objext \
4744 +    conftest$ac_exeext conftest.$ac_ext
4745 + LIBS=$ac_check_lib_save_LIBS
4746   fi
4747 < FC=$ac_cv_prog_FC
4748 < if test -n "$FC"; then
4749 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4750 < $as_echo "$FC" >&6; }
5915 < else
5916 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 < $as_echo "no" >&6; }
4747 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4748 > $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4749 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4750 >  MPILIBS="-lmpi"
4751   fi
4752  
5920
5921    test -n "$FC" && break
5922  done
4753   fi
4754 < if test -z "$FC"; then
4755 <  ac_ct_FC=$FC
4756 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4757 < do
5928 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 < set dummy $ac_prog; ac_word=$2
5930 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 < $as_echo_n "checking for $ac_word... " >&6; }
5932 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4754 > if test x = x"$MPILIBS"; then
4755 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4756 > $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4757 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4758    $as_echo_n "(cached) " >&6
4759   else
4760 <  if test -n "$ac_ct_FC"; then
4761 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4760 >  ac_check_lib_save_LIBS=$LIBS
4761 > LIBS="-lmpich  $LIBS"
4762 > cat > conftest.$ac_ext <<_ACEOF
4763 >      program main
4764 >      call MPI_Init
4765 >      end
4766 > _ACEOF
4767 > if ac_fn_fc_try_link "$LINENO"; then :
4768 >  ac_cv_lib_mpich_MPI_Init=yes
4769   else
4770 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 < for as_dir in $PATH
5940 < do
5941 <  IFS=$as_save_IFS
5942 <  test -z "$as_dir" && as_dir=.
5943 <    for ac_exec_ext in '' $ac_executable_extensions; do
5944 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5945 <    ac_cv_prog_ac_ct_FC="$ac_prog"
5946 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 <    break 2
5948 <  fi
5949 < done
5950 <  done
5951 < IFS=$as_save_IFS
5952 <
4770 >  ac_cv_lib_mpich_MPI_Init=no
4771   fi
4772 + rm -f core conftest.err conftest.$ac_objext \
4773 +    conftest$ac_exeext conftest.$ac_ext
4774 + LIBS=$ac_check_lib_save_LIBS
4775   fi
4776 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4777 < if test -n "$ac_ct_FC"; then
4778 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4779 < $as_echo "$ac_ct_FC" >&6; }
5959 < else
5960 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 < $as_echo "no" >&6; }
4776 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4777 > $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4778 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4779 >  MPILIBS="-lmpich"
4780   fi
4781  
5964
5965  test -n "$ac_ct_FC" && break
5966 done
5967
5968  if test "x$ac_ct_FC" = x; then
5969    FC=""
5970  else
5971    case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977    FC=$ac_ct_FC
5978  fi
4782   fi
4783  
4784 <
4785 < # Provide some information about the compiler.
4786 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4787 < set X $ac_compile
5985 < ac_compiler=$2
5986 < for ac_option in --version -v -V -qversion; do
5987 <  { { ac_try="$ac_compiler $ac_option >&5"
5988 < case "(($ac_try" in
5989 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 <  *) ac_try_echo=$ac_try;;
5991 < esac
5992 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5993 < $as_echo "$ac_try_echo"; } >&5
5994 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5995 <  ac_status=$?
5996 <  if test -s conftest.err; then
5997 <    sed '10a\
5998 < ... rest of stderr output deleted ...
5999 <         10q' conftest.err >conftest.er1
6000 <    cat conftest.er1 >&5
6001 <    rm -f conftest.er1 conftest.err
6002 <  fi
6003 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004 <  test $ac_status = 0; }
6005 < done
6006 < rm -f a.out
6007 <
6008 < # If we don't use `.F' as extension, the preprocessor is not run on the
6009 < # input file.  (Note that this only needs to work for GNU compilers.)
6010 < ac_save_ext=$ac_ext
6011 < ac_ext=F
6012 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
6013 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
6014 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
6015 <  $as_echo_n "(cached) " >&6
6016 < else
6017 <  cat > conftest.$ac_ext <<_ACEOF
4784 > if test x != x"$MPILIBS"; then
4785 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4786 > $as_echo_n "checking for mpif.h... " >&6; }
4787 >        cat > conftest.$ac_ext <<_ACEOF
4788        program main
4789 < #ifndef __GNUC__
6020 <       choke me
6021 < #endif
6022 <
4789 >      include 'mpif.h'
4790        end
4791   _ACEOF
4792   if ac_fn_fc_try_compile "$LINENO"; then :
4793 <  ac_compiler_gnu=yes
4793 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4794 > $as_echo "yes" >&6; }
4795   else
4796 <  ac_compiler_gnu=no
4796 >  MPILIBS=""
4797 >                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 > $as_echo "no" >&6; }
4799   fi
4800   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6032
4801   fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
6035 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
6036 ac_ext=$ac_save_ext
6037 ac_test_FCFLAGS=${FCFLAGS+set}
6038 ac_save_FCFLAGS=$FCFLAGS
6039 FCFLAGS=
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6041 $as_echo_n "checking whether $FC accepts -g... " >&6; }
6042 if test "${ac_cv_prog_fc_g+set}" = set; then :
6043  $as_echo_n "(cached) " >&6
6044 else
6045  FCFLAGS=-g
6046 cat > conftest.$ac_ext <<_ACEOF
6047      program main
4802  
4803 <      end
4804 < _ACEOF
4805 < if ac_fn_fc_try_compile "$LINENO"; then :
4806 <  ac_cv_prog_fc_g=yes
4803 > FC="$ax_mpi_save_FC"
4804 >
4805 >
4806 >
4807 > # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4808 > if test x = x"$MPILIBS"; then
4809 >        USE_MPI="no"
4810 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4811 > $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4812 >        :
4813   else
4814 <  ac_cv_prog_fc_g=no
4814 >        USE_MPI="yes"
4815 >        :
4816   fi
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817  
4818 +
4819   fi
4820 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4821 < $as_echo "$ac_cv_prog_fc_g" >&6; }
4822 < if test "$ac_test_FCFLAGS" = set; then
4823 <  FCFLAGS=$ac_save_FCFLAGS
4824 < elif test $ac_cv_prog_fc_g = yes; then
4825 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4826 <    FCFLAGS="-g -O2"
6066 <  else
6067 <    FCFLAGS="-g"
6068 <  fi
4820 > if test $USE_MPI != no; then :
4821 >
4822 >        CXX=$MPICXX
4823 >        CC=$MPICC
4824 >        FC=$MPIFC
4825 >        LIBS="$MPILIBS $LIBS"
4826 >
4827   else
4828 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4829 <    FCFLAGS="-O2"
4830 <  else
4831 <    FCFLAGS=
4832 <  fi
4828 >
4829 >        CXX=$save_CXX
4830 >        CC=$save_CC
4831 >        FC=$save_FC
4832 >        LIBS=$save_LIBS
4833 >
4834 >
4835   fi
4836  
6077 ac_ext=${ac_fc_srcext-f}
6078 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6079 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4837  
4838 + # Checks for programs.
4839   ac_ext=c
4840   ac_cpp='$CPP $CPPFLAGS'
4841   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 6091 | Line 4848 | if test -z "$CPP"; then
4848    CPP=
4849   fi
4850   if test -z "$CPP"; then
4851 <  if test "${ac_cv_prog_CPP+set}" = set; then :
4851 >  if ${ac_cv_prog_CPP+:} false; then :
4852    $as_echo_n "(cached) " >&6
4853   else
4854        # Double quotes because CPP needs to be expanded
# Line 6121 | Line 4878 | fi
4878    # Broken: fails on valid input.
4879   continue
4880   fi
4881 < rm -f conftest.err conftest.$ac_ext
4881 > rm -f conftest.err conftest.i conftest.$ac_ext
4882  
4883    # OK, works on sane cases.  Now check whether nonexistent headers
4884    # can be detected and how.
# Line 6137 | Line 4894 | fi
4894   ac_preproc_ok=:
4895   break
4896   fi
4897 < rm -f conftest.err conftest.$ac_ext
4897 > rm -f conftest.err conftest.i conftest.$ac_ext
4898  
4899   done
4900   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 < rm -f conftest.err conftest.$ac_ext
4901 > rm -f conftest.i conftest.err conftest.$ac_ext
4902   if $ac_preproc_ok; then :
4903    break
4904   fi
# Line 6180 | Line 4937 | fi
4937    # Broken: fails on valid input.
4938   continue
4939   fi
4940 < rm -f conftest.err conftest.$ac_ext
4940 > rm -f conftest.err conftest.i conftest.$ac_ext
4941  
4942    # OK, works on sane cases.  Now check whether nonexistent headers
4943    # can be detected and how.
# Line 6196 | Line 4953 | fi
4953   ac_preproc_ok=:
4954   break
4955   fi
4956 < rm -f conftest.err conftest.$ac_ext
4956 > rm -f conftest.err conftest.i conftest.$ac_ext
4957  
4958   done
4959   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 < rm -f conftest.err conftest.$ac_ext
4960 > rm -f conftest.i conftest.err conftest.$ac_ext
4961   if $ac_preproc_ok; then :
4962  
4963   else
4964    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
4967 < See \`config.log' for more details." "$LINENO" 5; }
4966 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4967 > See \`config.log' for more details" "$LINENO" 5; }
4968   fi
4969  
4970   ac_ext=${ac_fc_srcext-f}
# Line 6217 | Line 4974 | $as_echo_n "checking for grep that handles long lines
4974  
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976   $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 < if test "${ac_cv_path_GREP+set}" = set; then :
4977 > if ${ac_cv_path_GREP+:} false; then :
4978    $as_echo_n "(cached) " >&6
4979   else
4980    if test -z "$GREP"; then
# Line 6266 | Line 5023 | IFS=$as_save_IFS
5023    done
5024   IFS=$as_save_IFS
5025    if test -z "$ac_cv_path_GREP"; then
5026 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5026 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5027    fi
5028   else
5029    ac_cv_path_GREP=$GREP
# Line 6280 | Line 5037 | $as_echo_n "checking for egrep... " >&6; }
5037  
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039   $as_echo_n "checking for egrep... " >&6; }
5040 < if test "${ac_cv_path_EGREP+set}" = set; then :
5040 > if ${ac_cv_path_EGREP+:} false; then :
5041    $as_echo_n "(cached) " >&6
5042   else
5043    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
# Line 6332 | Line 5089 | IFS=$as_save_IFS
5089    done
5090   IFS=$as_save_IFS
5091    if test -z "$ac_cv_path_EGREP"; then
5092 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5092 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5093    fi
5094   else
5095    ac_cv_path_EGREP=$EGREP
# Line 6360 | Line 5117 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]
5117   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5118   set x ${MAKE-make}
5119   ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5120 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5120 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5121    $as_echo_n "(cached) " >&6
5122   else
5123    cat >conftest.make <<\_ACEOF
# Line 6368 | Line 5125 | _ACEOF
5125   all:
5126          @echo '@@@%%%=$(MAKE)=@@@%%%'
5127   _ACEOF
5128 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5128 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5129   case `${MAKE-make} -f conftest.make 2>/dev/null` in
5130    *@@@%%%=?*=@@@%%%*)
5131      eval ac_cv_prog_make_${ac_make}_set=yes;;
# Line 6392 | Line 5149 | $as_echo_n "checking for $ac_word... " >&6; }
5149   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151   $as_echo_n "checking for $ac_word... " >&6; }
5152 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
5152 > if ${ac_cv_prog_RANLIB+:} false; then :
5153    $as_echo_n "(cached) " >&6
5154   else
5155    if test -n "$RANLIB"; then
# Line 6432 | Line 5189 | $as_echo_n "checking for $ac_word... " >&6; }
5189   set dummy ranlib; ac_word=$2
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191   $as_echo_n "checking for $ac_word... " >&6; }
5192 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5192 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5193    $as_echo_n "(cached) " >&6
5194   else
5195    if test -n "$ac_ct_RANLIB"; then
# Line 6484 | Line 5241 | $as_echo_n "checking for $ac_word... " >&6; }
5241   set dummy perl; ac_word=$2
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243   $as_echo_n "checking for $ac_word... " >&6; }
5244 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
5244 > if ${ac_cv_path_PERLINTERP+:} false; then :
5245    $as_echo_n "(cached) " >&6
5246   else
5247    case $PERLINTERP in
# Line 6534 | Line 5291 | $as_echo_n "checking whether explicit instead of detec
5291  
5292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
5293   $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
5294 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
5294 > if ${ax_cv_opt_perl_shebang+:} false; then :
5295    $as_echo_n "(cached) " >&6
5296   else
5297     case "$opt_perl_shebang" in
# Line 6560 | Line 5317 | $as_echo_n "checking for kernel sharpbang invocation t
5317     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
5318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
5319   $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
5320 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
5320 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
5321    $as_echo_n "(cached) " >&6
5322   else
5323    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
# Line 6616 | Line 5373 | if test -z "$INSTALL"; then
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5374   $as_echo_n "checking for a BSD-compatible install... " >&6; }
5375   if test -z "$INSTALL"; then
5376 < if test "${ac_cv_path_install+set}" = set; then :
5376 > if ${ac_cv_path_install+:} false; then :
5377    $as_echo_n "(cached) " >&6
5378   else
5379    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 6696 | Line 5453 | esac
5453     x/*) ;;
5454     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5455   esac
5456 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5456 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
5457   # Extract the first word of "ar", so it can be a program name with args.
5458   set dummy ar; ac_word=$2
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460   $as_echo_n "checking for $ac_word... " >&6; }
5461 < if test "${ac_cv_prog_AR+set}" = set; then :
5461 > if ${ac_cv_prog_AR+:} false; then :
5462    $as_echo_n "(cached) " >&6
5463   else
5464    if test -n "$AR"; then
# Line 6800 | Line 5557 | if diff "$cache_file" confcache >/dev/null 2>&1; then
5557       :end' >>confcache
5558   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5559    if test -w "$cache_file"; then
5560 <    test "x$cache_file" != "x/dev/null" &&
5560 >    if test "x$cache_file" != "x/dev/null"; then
5561        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5562   $as_echo "$as_me: updating cache $cache_file" >&6;}
5563 <    cat confcache >$cache_file
5563 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
5564 >        cat confcache >"$cache_file"
5565 >      else
5566 >        case $cache_file in #(
5567 >        */* | ?:*)
5568 >          mv -f confcache "$cache_file"$$ &&
5569 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
5570 >        *)
5571 >          mv -f confcache "$cache_file" ;;
5572 >        esac
5573 >      fi
5574 >    fi
5575    else
5576      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5577   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 6816 | Line 5584 | $as_echo_n "checking for $ac_word... " >&6; }
5584   set dummy ps; ac_word=$2
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586   $as_echo_n "checking for $ac_word... " >&6; }
5587 < if test "${ac_cv_path_PS+set}" = set; then :
5587 > if ${ac_cv_path_PS+:} false; then :
5588    $as_echo_n "(cached) " >&6
5589   else
5590    case $PS in
# Line 6854 | Line 5622 | $as_echo_n "checking for POSIX or BSD ps syntax... " >
5622  
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5624   $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5625 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
5625 > if ${ac_cv_prog_ps_syntax+:} false; then :
5626    $as_echo_n "(cached) " >&6
5627   else
5628  
# Line 6874 | Line 5642 | else
5642                  if test "$ac_cv_prog_ps_ef" = yes; then
5643                          ac_cv_prog_ps_syntax=POSIX
5644                  else
5645 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
5645 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5646                  fi
5647          fi
5648  
# Line 6896 | Line 5664 | $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5664   $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5665  
5666     else
5667 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5667 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5668     fi
5669   fi
5670  
# Line 6911 | Line 5679 | $as_echo_n "checking for Fortran flag to compile .F90
5679   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5681   $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5682 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5682 > if ${ac_cv_fc_srcext_F90+:} false; then :
5683    $as_echo_n "(cached) " >&6
5684   else
5685    ac_ext=F90
# Line 6937 | Line 5705 | if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5706   $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5707   if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5708 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5708 >  as_fn_error $? "Fortran could not compile .F90 files" "$LINENO" 5
5709   else
5710    ac_fc_srcext=F90
5711    if test "x$ac_cv_fc_srcext_F90" = xnone; then
# Line 7031 | Line 5799 | $as_echo "no" >&6; }
5799    else
5800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801   $as_echo "no" >&6; }
5802 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5802 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5803    fi
5804   fi
5805  
# Line 7114 | Line 5882 | $as_echo "no" >&6; }
5882    else
5883      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884   $as_echo "no" >&6; }
5885 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5885 >    as_fn_error $? "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5886    fi
5887   fi
5888  
# Line 7124 | Line 5892 | $as_echo_n "checking how to get verbose linking output
5892   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5894   $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5895 < if test "${ac_cv_prog_fc_v+set}" = set; then :
5895 > if ${ac_cv_prog_fc_v+:} false; then :
5896    $as_echo_n "(cached) " >&6
5897   else
5898    cat > conftest.$ac_ext <<_ACEOF
# Line 7154 | Line 5922 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5922   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5923   # LIBRARY_PATH; skip all such settings.
5924   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5925 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5925 >  sed '/^Driving:/d; /^Configured with:/d;
5926 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
5927   $as_echo "$ac_fc_v_output" >&5
5928   FCFLAGS=$ac_save_FCFLAGS
5929  
# Line 7219 | Line 5988 | $as_echo_n "checking for Fortran libraries of $FC... "
5988   $as_echo "$ac_cv_prog_fc_v" >&6; }
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5990   $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5991 < if test "${ac_cv_fc_libs+set}" = set; then :
5991 > if ${ac_cv_fc_libs+:} false; then :
5992    $as_echo_n "(cached) " >&6
5993   else
5994    if test "x$FCLIBS" != "x"; then
# Line 7244 | Line 6013 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6013   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6014   # LIBRARY_PATH; skip all such settings.
6015   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6016 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6016 >  sed '/^Driving:/d; /^Configured with:/d;
6017 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6018   $as_echo "$ac_fc_v_output" >&5
6019   FCFLAGS=$ac_save_FCFLAGS
6020  
# Line 7334 | Line 6104 | fi
6104            ;;
6105            # Ignore these flags.
6106          -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6107 <          |-LANG:=* | -LIST:* | -LNO:*)
6107 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6108            ;;
6109          -lkernel32)
6110            test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
# Line 7431 | Line 6201 | $as_echo_n "checking for dummy main to link with Fortr
6201  
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6203   $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6204 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
6204 > if ${ac_cv_fc_dummy_main+:} false; then :
6205    $as_echo_n "(cached) " >&6
6206   else
6207    ac_fc_dm_save_LIBS=$LIBS
# Line 7527 | Line 6297 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6297   else
6298    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6299   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6300 < as_fn_error "linking to Fortran libraries from C fails
6301 < See \`config.log' for more details." "$LINENO" 5; }
6300 > as_fn_error $? "linking to Fortran libraries from C fails
6301 > See \`config.log' for more details" "$LINENO" 5; }
6302   fi
6303  
6304   ac_ext=${ac_fc_srcext-f}
# Line 7542 | Line 6312 | $as_echo_n "checking for Fortran name-mangling scheme.
6312   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6314   $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6315 < if test "${ac_cv_fc_mangling+set}" = set; then :
6315 > if ${ac_cv_fc_mangling+:} false; then :
6316    $as_echo_n "(cached) " >&6
6317   else
6318    cat > conftest.$ac_ext <<_ACEOF
# Line 7688 | Line 6458 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6458   else
6459    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6460   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6461 < as_fn_error "cannot compile a simple Fortran program
6462 < See \`config.log' for more details." "$LINENO" 5; }
6461 > as_fn_error $? "cannot compile a simple Fortran program
6462 > See \`config.log' for more details" "$LINENO" 5; }
6463   fi
6464   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465  
# Line 7766 | Line 6536 | $as_echo_n "checking how to get verbose linking output
6536   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6538   $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6539 < if test "${ac_cv_prog_fc_v+set}" = set; then :
6539 > if ${ac_cv_prog_fc_v+:} false; then :
6540    $as_echo_n "(cached) " >&6
6541   else
6542    cat > conftest.$ac_ext <<_ACEOF
# Line 7796 | Line 6566 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6566   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6567   # LIBRARY_PATH; skip all such settings.
6568   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6569 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6569 >  sed '/^Driving:/d; /^Configured with:/d;
6570 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6571   $as_echo "$ac_fc_v_output" >&5
6572   FCFLAGS=$ac_save_FCFLAGS
6573  
# Line 7861 | Line 6632 | $as_echo_n "checking for Fortran libraries of $FC... "
6632   $as_echo "$ac_cv_prog_fc_v" >&6; }
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6634   $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6635 < if test "${ac_cv_fc_libs+set}" = set; then :
6635 > if ${ac_cv_fc_libs+:} false; then :
6636    $as_echo_n "(cached) " >&6
6637   else
6638    if test "x$FCLIBS" != "x"; then
# Line 7886 | Line 6657 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6657   # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6658   # LIBRARY_PATH; skip all such settings.
6659   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6660 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6660 >  sed '/^Driving:/d; /^Configured with:/d;
6661 >      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
6662   $as_echo "$ac_fc_v_output" >&5
6663   FCFLAGS=$ac_save_FCFLAGS
6664  
# Line 7976 | Line 6748 | fi
6748            ;;
6749            # Ignore these flags.
6750          -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6751 <          |-LANG:=* | -LIST:* | -LNO:*)
6751 >          |-LANG:=* | -LIST:* | -LNO:* | -link)
6752            ;;
6753          -lkernel32)
6754            test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
# Line 8199 | Line 6971 | $as_echo_n "checking for Fortran 90 module file names.
6971  
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6973   $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6974 < if test "${ac_cv_f90_module_names+set}" = set; then :
6974 > if ${ac_cv_f90_module_names+:} false; then :
6975    $as_echo_n "(cached) " >&6
6976   else
6977    ac_ext=${ac_fc_srcext-f}
# Line 8411 | Line 7183 | $as_echo_n "checking for asin in -lm... " >&6; }
7183  
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
7185   $as_echo_n "checking for asin in -lm... " >&6; }
7186 < if test "${ac_cv_lib_m_asin+set}" = set; then :
7186 > if ${ac_cv_lib_m_asin+:} false; then :
7187    $as_echo_n "(cached) " >&6
7188   else
7189    ac_check_lib_save_LIBS=$LIBS
# Line 8453 | Line 7225 | $as_echo "$ac_cv_lib_m_asin" >&6; }
7225   fi
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
7227   $as_echo "$ac_cv_lib_m_asin" >&6; }
7228 < if test "x$ac_cv_lib_m_asin" = x""yes; then :
7228 > if test "x$ac_cv_lib_m_asin" = xyes; then :
7229    cat >>confdefs.h <<_ACEOF
7230   #define HAVE_LIBM 1
7231   _ACEOF
# Line 8467 | Line 7239 | $as_echo_n "checking for ANSI C header files... " >&6;
7239  
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7241   $as_echo_n "checking for ANSI C header files... " >&6; }
7242 < if test "${ac_cv_header_stdc+set}" = set; then :
7242 > if ${ac_cv_header_stdc+:} false; then :
7243    $as_echo_n "(cached) " >&6
7244   else
7245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8592 | Line 7364 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
7364    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7366   "
7367 < eval as_val=\$$as_ac_Header
8596 <   if test "x$as_val" = x""yes; then :
7367 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7368    cat >>confdefs.h <<_ACEOF
7369   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7370   _ACEOF
# Line 8648 | Line 7419 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7419  
7420          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
7421   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
7422 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
7422 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
7423    $as_echo_n "(cached) " >&6
7424   else
7425    ac_check_lib_save_LIBS=$LIBS
# Line 8690 | Line 7461 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7461   fi
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
7463   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
7464 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
7464 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
7465    zlib_cv_libz=yes
7466   else
7467    zlib_cv_libz=no
7468   fi
7469  
7470          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7471 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
7471 > if test "x$ac_cv_header_zlib_h" = xyes; then :
7472    zlib_cv_zlib_h=yes
7473   else
7474    zlib_cv_zlib_h=no
# Line 8734 | Line 7505 | $as_echo "failed" >&6; }
7505                  echo ""
7506                  echo "*********************************************************"
7507                  echo "* WARNING: Could not find a working zlib installation   *"
7508 <                echo "* If you need OOPSE to be able to deal with compressed  *"
7508 >                echo "* If you need OpenMD to be able to deal with compressed *"
7509                  echo "* trajectory dump files be sure to specify a valid zlib *"
7510                  echo "* installation with --with-zlib=DIR                     *"
7511                  echo "*                                                       *"
7512 <                echo "* OOPSE will still work without zlib installed.         *"
7512 >                echo "* OpenMD will still work without zlib installed.        *"
7513                  echo "*********************************************************"
7514                  echo ""
7515          fi
# Line 8788 | Line 7559 | $as_echo_n "checking for fftw_execute in -lfftw3... "
7559  
7560        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
7561   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
7562 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
7562 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
7563    $as_echo_n "(cached) " >&6
7564   else
7565    ac_check_lib_save_LIBS=$LIBS
# Line 8830 | Line 7601 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7601   fi
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
7603   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
7604 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
7604 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
7605    fftw_cv_libfftw3=yes
7606   else
7607    fftw_cv_libfftw3=no
7608   fi
7609  
7610        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
7611 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
7611 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
7612    fftw_cv_fftw3_h=yes
7613   else
7614    fftw_cv_fftw3_h=no
# Line 8847 | Line 7618 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
7618        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
7619          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
7620   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
7621 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
7621 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
7622    $as_echo_n "(cached) " >&6
7623   else
7624    ac_check_lib_save_LIBS=$LIBS
# Line 8889 | Line 7660 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7660   fi
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
7662   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
7663 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
7663 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
7664    fftw_cv_libfftw=yes
7665   else
7666    fftw_cv_libfftw=no
7667   fi
7668  
7669          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
7670 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
7670 > if test "x$ac_cv_header_fftw_h" = xyes; then :
7671    fftw_cv_fftw_h=yes
7672   else
7673    fftw_cv_fftw_h=no
# Line 8906 | Line 7677 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
7677          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
7678            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
7679   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
7680 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
7680 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
7681    $as_echo_n "(cached) " >&6
7682   else
7683    ac_check_lib_save_LIBS=$LIBS
# Line 8948 | Line 7719 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7719   fi
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
7721   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
7722 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
7722 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
7723    fftw_cv_libdfftw=yes
7724   else
7725    fftw_cv_libdfftw=no
7726   fi
7727  
7728            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
7729 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
7729 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
7730    fftw_cv_dfftw_h=yes
7731   else
7732    fftw_cv_dfftw_h=no
# Line 9010 | Line 7781 | $as_echo "failed" >&6; }
7781              echo "* compute undulation spectra, be sure to specify a      *"
7782              echo "* valid fftw installation with --with-fftw=DIR          *"
7783              echo "*                                                       *"
7784 <            echo "* OOPSE will still work without fftw installed.         *"
7784 >            echo "* OpenMD will still work without fftw installed.        *"
7785              echo "*********************************************************"
7786              echo ""
7787            fi
# Line 9021 | Line 7792 | $as_echo "failed" >&6; }
7792  
7793      fi
7794    fi
7795 + fi
7796 +
7797 + ac_ext=cpp
7798 + ac_cpp='$CXXCPP $CPPFLAGS'
7799 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7802 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7803 + $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7804 + if test -z "$CXXCPP"; then
7805 +  if ${ac_cv_prog_CXXCPP+:} false; then :
7806 +  $as_echo_n "(cached) " >&6
7807 + else
7808 +      # Double quotes because CXXCPP needs to be expanded
7809 +    for CXXCPP in "$CXX -E" "/lib/cpp"
7810 +    do
7811 +      ac_preproc_ok=false
7812 + for ac_cxx_preproc_warn_flag in '' yes
7813 + do
7814 +  # Use a header file that comes with gcc, so configuring glibc
7815 +  # with a fresh cross-compiler works.
7816 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7817 +  # <limits.h> exists even on freestanding compilers.
7818 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7819 +  # not just through cpp. "Syntax error" is here to catch this case.
7820 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 + /* end confdefs.h.  */
7822 + #ifdef __STDC__
7823 + # include <limits.h>
7824 + #else
7825 + # include <assert.h>
7826 + #endif
7827 +                     Syntax error
7828 + _ACEOF
7829 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7830 +
7831 + else
7832 +  # Broken: fails on valid input.
7833 + continue
7834   fi
7835 + rm -f conftest.err conftest.i conftest.$ac_ext
7836  
7837 +  # OK, works on sane cases.  Now check whether nonexistent headers
7838 +  # can be detected and how.
7839 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 + /* end confdefs.h.  */
7841 + #include <ac_nonexistent.h>
7842 + _ACEOF
7843 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7844 +  # Broken: success on invalid input.
7845 + continue
7846 + else
7847 +  # Passes both tests.
7848 + ac_preproc_ok=:
7849 + break
7850 + fi
7851 + rm -f conftest.err conftest.i conftest.$ac_ext
7852 +
7853 + done
7854 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7855 + rm -f conftest.i conftest.err conftest.$ac_ext
7856 + if $ac_preproc_ok; then :
7857 +  break
7858 + fi
7859 +
7860 +    done
7861 +    ac_cv_prog_CXXCPP=$CXXCPP
7862 +
7863 + fi
7864 +  CXXCPP=$ac_cv_prog_CXXCPP
7865 + else
7866 +  ac_cv_prog_CXXCPP=$CXXCPP
7867 + fi
7868 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7869 + $as_echo "$CXXCPP" >&6; }
7870 + ac_preproc_ok=false
7871 + for ac_cxx_preproc_warn_flag in '' yes
7872 + do
7873 +  # Use a header file that comes with gcc, so configuring glibc
7874 +  # with a fresh cross-compiler works.
7875 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7876 +  # <limits.h> exists even on freestanding compilers.
7877 +  # On the NeXT, cc -E runs the code through the compiler's parser,
7878 +  # not just through cpp. "Syntax error" is here to catch this case.
7879 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 + /* end confdefs.h.  */
7881 + #ifdef __STDC__
7882 + # include <limits.h>
7883 + #else
7884 + # include <assert.h>
7885 + #endif
7886 +                     Syntax error
7887 + _ACEOF
7888 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7889 +
7890 + else
7891 +  # Broken: fails on valid input.
7892 + continue
7893 + fi
7894 + rm -f conftest.err conftest.i conftest.$ac_ext
7895 +
7896 +  # OK, works on sane cases.  Now check whether nonexistent headers
7897 +  # can be detected and how.
7898 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 + /* end confdefs.h.  */
7900 + #include <ac_nonexistent.h>
7901 + _ACEOF
7902 + if ac_fn_cxx_try_cpp "$LINENO"; then :
7903 +  # Broken: success on invalid input.
7904 + continue
7905 + else
7906 +  # Passes both tests.
7907 + ac_preproc_ok=:
7908 + break
7909 + fi
7910 + rm -f conftest.err conftest.i conftest.$ac_ext
7911 +
7912 + done
7913 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7914 + rm -f conftest.i conftest.err conftest.$ac_ext
7915 + if $ac_preproc_ok; then :
7916 +
7917 + else
7918 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7919 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7920 + as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7921 + See \`config.log' for more details" "$LINENO" 5; }
7922 + fi
7923 +
7924 + ac_ext=cpp
7925 + ac_cpp='$CXXCPP $CPPFLAGS'
7926 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7929 +
7930 +
7931   #
7932   # Handle user hints
7933   #
# Line 9059 | Line 7964 | $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}"
7964          { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5
7965   $as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;}
7966  
7967 <        ac_ext=c
7968 < ac_cpp='$CPP $CPPFLAGS'
7969 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967 >        ac_ext=cpp
7968 > ac_cpp='$CXXCPP $CPPFLAGS'
7969 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7972  
7973          QHULL_OLD_LDFLAGS=$LDFLAGS
7974 <        QHULL_OLD_CFLAGS=$CFLAGS
7974 >        QHULL_OLD_CXXFLAGS=$CXXFLAGS
7975          QHULL_OLD_CPPFLAGS=$CPPFLAGS
7976          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7977 <        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
7977 >        CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include"
7978          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
7979 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7980 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
7979 >        ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
7980 > if test "x$ac_cv_header_qhull_qhull_h" = xyes; then :
7981    qhull_cv_qhull_h=yes
7982   else
7983    qhull_cv_qhull_h=no
# Line 9081 | Line 7986 | $as_echo_n "checking for qh_qhull in -lqhull... " >&6;
7986  
7987          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
7988   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
7989 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
7989 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
7990    $as_echo_n "(cached) " >&6
7991   else
7992    ac_check_lib_save_LIBS=$LIBS
# Line 9112 | Line 8017 | _ACEOF
8017    return 0;
8018   }
8019   _ACEOF
8020 < if ac_fn_c_try_link "$LINENO"; then :
8020 > if ac_fn_cxx_try_link "$LINENO"; then :
8021    ac_cv_lib_qhull_qh_qhull=yes
8022   else
8023    ac_cv_lib_qhull_qh_qhull=no
# Line 9123 | Line 8028 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8028   fi
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
8030   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
8031 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
8031 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
8032    qhull_cv_libqhull=yes
8033   else
8034    qhull_cv_libqhull=no
8035   fi
8036  
8037          LDFLAGS="$QHULL_OLD_LDFLAGS"
8038 <        CFLAGS="$QHULL_OLD_CFLAGS"
8038 >        CXXFLAGS="$QHULL_OLD_CXXFLAGS"
8039          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8040          ac_ext=c
8041   ac_cpp='$CPP $CPPFLAGS'
# Line 9157 | Line 8062 | $as_echo "$as_me: WARNING: Could not find a working qh
8062   $as_echo "$as_me: WARNING: " >&2;}
8063             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
8064   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
8065 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
8066 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
8065 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
8066 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
8067             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
8068   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
8069             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
8070   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
8071             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8072   $as_echo "$as_me: WARNING: " >&2;}
8073 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
8074 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
8073 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
8074 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
8075             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
8076   $as_echo "$as_me: WARNING: " >&2;}
8077          fi
# Line 9177 | Line 8082 | fi
8082  
8083  
8084  
9180 ac_ext=cpp
9181 ac_cpp='$CXXCPP $CPPFLAGS'
9182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9186 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9187 if test -z "$CXXCPP"; then
9188  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9189  $as_echo_n "(cached) " >&6
9190 else
9191      # Double quotes because CXXCPP needs to be expanded
9192    for CXXCPP in "$CXX -E" "/lib/cpp"
9193    do
9194      ac_preproc_ok=false
9195 for ac_cxx_preproc_warn_flag in '' yes
9196 do
9197  # Use a header file that comes with gcc, so configuring glibc
9198  # with a fresh cross-compiler works.
9199  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9200  # <limits.h> exists even on freestanding compilers.
9201  # On the NeXT, cc -E runs the code through the compiler's parser,
9202  # not just through cpp. "Syntax error" is here to catch this case.
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h.  */
9205 #ifdef __STDC__
9206 # include <limits.h>
9207 #else
9208 # include <assert.h>
9209 #endif
9210                     Syntax error
9211 _ACEOF
9212 if ac_fn_cxx_try_cpp "$LINENO"; then :
9213
9214 else
9215  # Broken: fails on valid input.
9216 continue
9217 fi
9218 rm -f conftest.err conftest.$ac_ext
9219
9220  # OK, works on sane cases.  Now check whether nonexistent headers
9221  # can be detected and how.
9222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h.  */
9224 #include <ac_nonexistent.h>
9225 _ACEOF
9226 if ac_fn_cxx_try_cpp "$LINENO"; then :
9227  # Broken: success on invalid input.
9228 continue
9229 else
9230  # Passes both tests.
9231 ac_preproc_ok=:
9232 break
9233 fi
9234 rm -f conftest.err conftest.$ac_ext
9235
9236 done
9237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9238 rm -f conftest.err conftest.$ac_ext
9239 if $ac_preproc_ok; then :
9240  break
9241 fi
9242
9243    done
9244    ac_cv_prog_CXXCPP=$CXXCPP
9245
9246 fi
9247  CXXCPP=$ac_cv_prog_CXXCPP
9248 else
9249  ac_cv_prog_CXXCPP=$CXXCPP
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9252 $as_echo "$CXXCPP" >&6; }
9253 ac_preproc_ok=false
9254 for ac_cxx_preproc_warn_flag in '' yes
9255 do
9256  # Use a header file that comes with gcc, so configuring glibc
9257  # with a fresh cross-compiler works.
9258  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9259  # <limits.h> exists even on freestanding compilers.
9260  # On the NeXT, cc -E runs the code through the compiler's parser,
9261  # not just through cpp. "Syntax error" is here to catch this case.
9262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h.  */
9264 #ifdef __STDC__
9265 # include <limits.h>
9266 #else
9267 # include <assert.h>
9268 #endif
9269                     Syntax error
9270 _ACEOF
9271 if ac_fn_cxx_try_cpp "$LINENO"; then :
9272
9273 else
9274  # Broken: fails on valid input.
9275 continue
9276 fi
9277 rm -f conftest.err conftest.$ac_ext
9278
9279  # OK, works on sane cases.  Now check whether nonexistent headers
9280  # can be detected and how.
9281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h.  */
9283 #include <ac_nonexistent.h>
9284 _ACEOF
9285 if ac_fn_cxx_try_cpp "$LINENO"; then :
9286  # Broken: success on invalid input.
9287 continue
9288 else
9289  # Passes both tests.
9290 ac_preproc_ok=:
9291 break
9292 fi
9293 rm -f conftest.err conftest.$ac_ext
9294
9295 done
9296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9297 rm -f conftest.err conftest.$ac_ext
9298 if $ac_preproc_ok; then :
9299
9300 else
9301  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9303 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
9304 See \`config.log' for more details." "$LINENO" 5; }
9305 fi
9306
9307 ac_ext=cpp
9308 ac_cpp='$CXXCPP $CPPFLAGS'
9309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9312
9313
8085   #
8086   # Handle user hints
8087   #
# Line 9355 | Line 8126 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8126          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
8127          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
8128          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
8129 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
8129 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
8130    openbabel_cv_openbabel_h=yes
8131   else
8132    openbabel_cv_openbabel_h=no
# Line 9363 | Line 8134 | fi
8134  
8135  
8136          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
8137 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
8137 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
8138    openbabel_cv_obconversion_h=yes
8139   else
8140    openbabel_cv_obconversion_h=no
# Line 9440 | Line 8211 | $as_echo "failed" >&6; }
8211                  echo ""
8212                  echo "*********************************************************"
8213                  echo "* WARNING: Could not find a working openbabel-2.x       *"
8214 <                echo "* installation If you need OOPSE to be able to convert  *"
8214 >                echo "* installation If you need OpenMD to be able to convert *"
8215                  echo "* xyz or pdb files you need to specify a valid          *"
8216                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8217                  echo "*                                                       *"
8218 <                echo "* OOPSE will still work without openbabel installed.    *"
8218 >                echo "* OpenMD will still work without openbabel installed.   *"
8219                  echo "*********************************************************"
8220                  echo ""
8221          fi
# Line 9459 | Line 8230 | $as_echo_n "checking for ANSI C header files... " >&6;
8230   # Checks for header files.
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8232   $as_echo_n "checking for ANSI C header files... " >&6; }
8233 < if test "${ac_cv_header_stdc+set}" = set; then :
8233 > if ${ac_cv_header_stdc+:} false; then :
8234    $as_echo_n "(cached) " >&6
8235   else
8236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9581 | Line 8352 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
8352   do :
8353    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8354   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8355 < eval as_val=\$$as_ac_Header
9585 <   if test "x$as_val" = x""yes; then :
8355 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8356    cat >>confdefs.h <<_ACEOF
8357   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8358   _ACEOF
# Line 9595 | Line 8365 | $as_echo_n "checking for stdbool.h that conforms to C9
8365   # Checks for typedefs, structures, and compiler characteristics.
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8367   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8368 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
8368 > if ${ac_cv_header_stdbool_h+:} false; then :
8369    $as_echo_n "(cached) " >&6
8370   else
8371    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9627 | Line 8397 | else
8397          char b[false == 0 ? 1 : -1];
8398          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8399          char d[(bool) 0.5 == true ? 1 : -1];
8400 <        bool e = &s;
8400 >        /* See body of main program for 'e'.  */
8401          char f[(_Bool) 0.0 == false ? 1 : -1];
8402          char g[true];
8403          char h[sizeof (_Bool)];
# Line 9638 | Line 8408 | else
8408          _Bool n[m];
8409          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8410          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9641 #       if defined __xlc__ || defined __GNUC__
9642         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9643            reported by James Lemley on 2005-10-05; see
9644            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9645            This test is not quite right, since xlc is allowed to
9646            reject this program, as the initializer for xlcbug is
9647            not one of the forms that C requires support for.
9648            However, doing the test right would require a runtime
9649            test, and that would make cross-compilation harder.
9650            Let us hope that IBM fixes the xlc bug, and also adds
9651            support for this kind of constant expression.  In the
9652            meantime, this test will reject xlc, which is OK, since
9653            our stdbool.h substitute should suffice.  We also test
9654            this with GCC, where it should work, to detect more
9655            quickly whether someone messes up the test in the
9656            future.  */
9657         char digs[] = "0123456789";
9658         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9659 #       endif
8411          /* Catch a bug in an HP-UX C compiler.  See
8412             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8413             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9676 | Line 8427 | main ()
8427   main ()
8428   {
8429  
8430 +        bool e = &s;
8431          *pq |= q;
8432          *pq |= ! q;
8433          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9696 | Line 8448 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8449   $as_echo "$ac_cv_header_stdbool_h" >&6; }
8450   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8451 < if test "x$ac_cv_type__Bool" = x""yes; then :
8451 > if test "x$ac_cv_type__Bool" = xyes; then :
8452  
8453   cat >>confdefs.h <<_ACEOF
8454   #define HAVE__BOOL 1
# Line 9713 | Line 8465 | $as_echo_n "checking for an ANSI C-conforming const...
8465  
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8467   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8468 < if test "${ac_cv_c_const+set}" = set; then :
8468 > if ${ac_cv_c_const+:} false; then :
8469    $as_echo_n "(cached) " >&6
8470   else
8471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9801 | Line 8553 | $as_echo_n "checking for inline... " >&6; }
8553  
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8555   $as_echo_n "checking for inline... " >&6; }
8556 < if test "${ac_cv_c_inline+set}" = set; then :
8556 > if ${ac_cv_c_inline+:} false; then :
8557    $as_echo_n "(cached) " >&6
8558   else
8559    ac_cv_c_inline=no
# Line 9842 | Line 8594 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
8594   esac
8595  
8596   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8597 < if test "x$ac_cv_type_size_t" = x""yes; then :
8597 > if test "x$ac_cv_type_size_t" = xyes; then :
8598  
8599   else
8600  
# Line 9854 | Line 8606 | $as_echo_n "checking whether time.h and sys/time.h may
8606  
8607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8608   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8609 < if test "${ac_cv_header_time+set}" = set; then :
8609 > if ${ac_cv_header_time+:} false; then :
8610    $as_echo_n "(cached) " >&6
8611   else
8612    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9900 | Line 8652 | do :
8652   for ac_header in stdlib.h
8653   do :
8654    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8655 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8655 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8656    cat >>confdefs.h <<_ACEOF
8657   #define HAVE_STDLIB_H 1
8658   _ACEOF
# Line 9911 | Line 8663 | $as_echo_n "checking for GNU libc compatible malloc...
8663  
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8665   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8666 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
8666 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
8667    $as_echo_n "(cached) " >&6
8668   else
8669    if test "$cross_compiling" = yes; then :
# Line 9975 | Line 8727 | do :
8727   for ac_header in stdlib.h
8728   do :
8729    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8730 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8730 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
8731    cat >>confdefs.h <<_ACEOF
8732   #define HAVE_STDLIB_H 1
8733   _ACEOF
# Line 9986 | Line 8738 | $as_echo_n "checking for GNU libc compatible realloc..
8738  
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8740   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8741 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
8741 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
8742    $as_echo_n "(cached) " >&6
8743   else
8744    if test "$cross_compiling" = yes; then :
# Line 10051 | Line 8803 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
8803   do :
8804    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8805   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8806 < eval as_val=\$$as_ac_Header
10055 <   if test "x$as_val" = x""yes; then :
8806 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8807    cat >>confdefs.h <<_ACEOF
8808   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8809   _ACEOF
# Line 10063 | Line 8814 | $as_echo_n "checking types of arguments for select...
8814  
8815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8816   $as_echo_n "checking types of arguments for select... " >&6; }
8817 < if test "${ac_cv_func_select_args+set}" = set; then :
8817 > if ${ac_cv_func_select_args+:} false; then :
8818    $as_echo_n "(cached) " >&6
8819   else
8820    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 10105 | Line 8856 | done
8856   done
8857   done
8858   # Provide a safe default value.
8859 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8859 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
8860  
8861   fi
8862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 10133 | Line 8884 | $as_echo_n "checking for working strtod... " >&6; }
8884  
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8886   $as_echo_n "checking for working strtod... " >&6; }
8887 < if test "${ac_cv_func_strtod+set}" = set; then :
8887 > if ${ac_cv_func_strtod+:} false; then :
8888    $as_echo_n "(cached) " >&6
8889   else
8890    if test "$cross_compiling" = yes; then :
# Line 10192 | Line 8943 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8943   esac
8944  
8945   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
8946 < if test "x$ac_cv_func_pow" = x""yes; then :
8946 > if test "x$ac_cv_func_pow" = xyes; then :
8947  
8948   fi
8949  
8950   if test $ac_cv_func_pow = no; then
8951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
8952   $as_echo_n "checking for pow in -lm... " >&6; }
8953 < if test "${ac_cv_lib_m_pow+set}" = set; then :
8953 > if ${ac_cv_lib_m_pow+:} false; then :
8954    $as_echo_n "(cached) " >&6
8955   else
8956    ac_check_lib_save_LIBS=$LIBS
# Line 10241 | Line 8992 | $as_echo "$ac_cv_lib_m_pow" >&6; }
8992   fi
8993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
8994   $as_echo "$ac_cv_lib_m_pow" >&6; }
8995 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
8995 > if test "x$ac_cv_lib_m_pow" = xyes; then :
8996    POW_LIB=-lm
8997   else
8998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10256 | Line 9007 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9007   do :
9008    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9009   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9010 < eval as_val=\$$as_ac_var
10260 <   if test "x$as_val" = x""yes; then :
9010 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9011    cat >>confdefs.h <<_ACEOF
9012   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9013   _ACEOF
# Line 10314 | Line 9064 | case $debug in
9064   # Try to determine "good" native compiler flags if none specified on command
9065   # line
9066  
9067 < if test "$ac_test_FFLAGS" != "set"; then
9067 > if test "$ac_test_FCFLAGS" != "set"; then
9068    FCFLAGS=""
9069    case "${host_cpu}-${host_os}" in
9070  
# Line 10363 | Line 9113 | $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}.
9113  
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9115   $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9116 < if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
9116 > if ${ac_cv_ac_cv_guessed_f90flags+:} false; then :
9117    $as_echo_n "(cached) " >&6
9118   else
9119  
# Line 10424 | Line 9174 | $as_echo_n "checking whether we are *really* using GNU
9174  
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
9176   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
9177 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
9177 > if ${ac_cv_prog_really_gcc+:} false; then :
9178    $as_echo_n "(cached) " >&6
9179   else
9180  
# Line 10529 | Line 9279 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
9279  
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
9281   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
9282 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
9282 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
9283    $as_echo_n "(cached) " >&6
9284   else
9285    echo 'void f(){}' > conftest.c
# Line 10571 | Line 9321 | $as_echo_n "checking whether we are *really* using GNU
9321  
9322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
9323   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
9324 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
9324 > if ${ac_cv_prog_really_gxx+:} false; then :
9325    $as_echo_n "(cached) " >&6
9326   else
9327  
# Line 10667 | Line 9417 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
9417  
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
9419   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
9420 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
9420 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
9421    $as_echo_n "(cached) " >&6
9422   else
9423    echo 'void f(){}' > conftest.cpp
# Line 10705 | Line 9455 | esac
9455   esac
9456  
9457  
10708 acx_cgal_found=no
10709
10710 # Check whether --with-cgalmakefile was given.
10711 if test "${with_cgalmakefile+set}" = set; then :
10712  withval=$with_cgalmakefile;
10713 fi
10714
10715 case $with_cgalmakefile in
10716        yes | "") ;;
10717        no) acx_cgal_found=disable ;;
10718        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
10719        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
10720 esac
10721
10722 if test "$acx_cgal_found" == no; then
10723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL_MAKEFILE" >&5
10724 $as_echo_n "checking CGAL_MAKEFILE... " >&6; }
10725
10726    if test \! -z "$CGAL_MAKEFILE"; then
10727
10728        if test -e "$CGAL_MAKEFILE"; then
10729            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
10730
10731 cat > $tname << _ACEOF
10732 include $CGAL_MAKEFILE
10733
10734 cppflags:
10735        @echo \$(CGAL_CXXFLAGS)
10736
10737 cxxflags:
10738        @echo
10739 ldflags:
10740        @echo \$(CGAL_LDFLAGS)
10741 _ACEOF
10742            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
10743            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
10744            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
10745            for i in $CGAL_LDFLAGST; do
10746                if test `echo $i| grep -c ^-l`; then
10747                    CGAL_LIBS="$CGAL_LIBS $i"
10748                else
10749                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
10750                fi
10751            done
10752            rm -f $tname
10753            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10754 $as_echo "yes" >&6; }
10755            acx_cgal_found=yes
10756                                   else
10757            { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5
10758 $as_echo "invalid" >&6; }
10759            as_fn_error "CGAL_MAKEFILE defined, but the makefile does not exist." "$LINENO" 5
10760        fi
10761    else
10762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5
10763 $as_echo "not defined" >&6; }
10764    fi
10765 fi
10766
10767 if test "$acx_cgal_found" == no; then
10768        ac_fn_c_check_header_mongrel "$LINENO" "CGAL/Exact_predicates_inexact_constructions_kernel.h" "ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" "$ac_includes_default"
10769 if test "x$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" = x""yes; then :
10770  cgal_have_header=yes
10771 else
10772  cgal_have_header=no
10773 fi
10774
10775
10776        if test "$cgal_have_header" == yes; then
10777                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5
10778 $as_echo_n "checking for main in -lCGAL... " >&6; }
10779 if test "${ac_cv_lib_CGAL_main+set}" = set; then :
10780  $as_echo_n "(cached) " >&6
10781 else
10782  ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lCGAL  $LIBS"
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h.  */
10786
10787
10788 #ifdef FC_DUMMY_MAIN
10789 #ifndef FC_DUMMY_MAIN_EQ_F77
10790 #  ifdef __cplusplus
10791     extern "C"
10792 #  endif
10793   int FC_DUMMY_MAIN() { return 1; }
10794 #endif
10795 #endif
10796 int
10797 main ()
10798 {
10799 return main ();
10800  ;
10801  return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10805  ac_cv_lib_CGAL_main=yes
10806 else
10807  ac_cv_lib_CGAL_main=no
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810    conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5
10814 $as_echo "$ac_cv_lib_CGAL_main" >&6; }
10815 if test "x$ac_cv_lib_CGAL_main" = x""yes; then :
10816  cgal_have_lib=yes
10817 else
10818  cgal_have_lib=no
10819 fi
10820
10821                if test "$cgal_have_lib" == no; then
10822                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
10823                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5
10824 $as_echo_n "checking for main in -lCGAL... " >&6; }
10825 if test "${ac_cv_lib_CGAL_main+set}" = set; then :
10826  $as_echo_n "(cached) " >&6
10827 else
10828  ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lCGAL  $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832
10833
10834 #ifdef FC_DUMMY_MAIN
10835 #ifndef FC_DUMMY_MAIN_EQ_F77
10836 #  ifdef __cplusplus
10837     extern "C"
10838 #  endif
10839   int FC_DUMMY_MAIN() { return 1; }
10840 #endif
10841 #endif
10842 int
10843 main ()
10844 {
10845 return main ();
10846  ;
10847  return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851  ac_cv_lib_CGAL_main=yes
10852 else
10853  ac_cv_lib_CGAL_main=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856    conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5
10860 $as_echo "$ac_cv_lib_CGAL_main" >&6; }
10861 if test "x$ac_cv_lib_CGAL_main" = x""yes; then :
10862  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
10863                                                  cgal_have_lib=yes
10864 else
10865  cgal_have_lib=no
10866 fi
10867
10868                        LIBS="$save_LIBS"
10869                else
10870                        CGAL_LIBS="-lCGAL"
10871                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpfr" >&5
10872 $as_echo_n "checking for main in -lmpfr... " >&6; }
10873 if test "${ac_cv_lib_mpfr_main+set}" = set; then :
10874  $as_echo_n "(cached) " >&6
10875 else
10876  ac_check_lib_save_LIBS=$LIBS
10877 LIBS="-lmpfr  $LIBS"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h.  */
10880
10881
10882 #ifdef FC_DUMMY_MAIN
10883 #ifndef FC_DUMMY_MAIN_EQ_F77
10884 #  ifdef __cplusplus
10885     extern "C"
10886 #  endif
10887   int FC_DUMMY_MAIN() { return 1; }
10888 #endif
10889 #endif
10890 int
10891 main ()
10892 {
10893 return main ();
10894  ;
10895  return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899  ac_cv_lib_mpfr_main=yes
10900 else
10901  ac_cv_lib_mpfr_main=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904    conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_main" >&5
10908 $as_echo "$ac_cv_lib_mpfr_main" >&6; }
10909 if test "x$ac_cv_lib_mpfr_main" = x""yes; then :
10910  CGAL_LIBS="$CGAL_LIBS -lmpfr"
10911 fi
10912
10913                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5
10914 $as_echo_n "checking for main in -lgmp... " >&6; }
10915 if test "${ac_cv_lib_gmp_main+set}" = set; then :
10916  $as_echo_n "(cached) " >&6
10917 else
10918  ac_check_lib_save_LIBS=$LIBS
10919 LIBS="-lgmp  $LIBS"
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h.  */
10922
10923
10924 #ifdef FC_DUMMY_MAIN
10925 #ifndef FC_DUMMY_MAIN_EQ_F77
10926 #  ifdef __cplusplus
10927     extern "C"
10928 #  endif
10929   int FC_DUMMY_MAIN() { return 1; }
10930 #endif
10931 #endif
10932 int
10933 main ()
10934 {
10935 return main ();
10936  ;
10937  return 0;
10938 }
10939 _ACEOF
10940 if ac_fn_c_try_link "$LINENO"; then :
10941  ac_cv_lib_gmp_main=yes
10942 else
10943  ac_cv_lib_gmp_main=no
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext \
10946    conftest$ac_exeext conftest.$ac_ext
10947 LIBS=$ac_check_lib_save_LIBS
10948 fi
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5
10950 $as_echo "$ac_cv_lib_gmp_main" >&6; }
10951 if test "x$ac_cv_lib_gmp_main" = x""yes; then :
10952  CGAL_LIBS="$CGAL_LIBS -lgmp"
10953 fi
10954
10955                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5
10956 $as_echo_n "checking for main in -lgmpxx... " >&6; }
10957 if test "${ac_cv_lib_gmpxx_main+set}" = set; then :
10958  $as_echo_n "(cached) " >&6
10959 else
10960  ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lgmpxx  $LIBS"
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h.  */
10964
10965
10966 #ifdef FC_DUMMY_MAIN
10967 #ifndef FC_DUMMY_MAIN_EQ_F77
10968 #  ifdef __cplusplus
10969     extern "C"
10970 #  endif
10971   int FC_DUMMY_MAIN() { return 1; }
10972 #endif
10973 #endif
10974 int
10975 main ()
10976 {
10977 return main ();
10978  ;
10979  return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983  ac_cv_lib_gmpxx_main=yes
10984 else
10985  ac_cv_lib_gmpxx_main=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988    conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5
10992 $as_echo "$ac_cv_lib_gmpxx_main" >&6; }
10993 if test "x$ac_cv_lib_gmpxx_main" = x""yes; then :
10994  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
10995 fi
10996
10997                fi
10998
10999                if test "$cgal_have_lib" == yes; then
11000                        acx_cgal_found=yes
11001                fi
11002        fi
11003        if test "$acx_cgal_found" == yes; then
11004                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCore" >&5
11005 $as_echo_n "checking for main in -lCore... " >&6; }
11006 if test "${ac_cv_lib_Core_main+set}" = set; then :
11007  $as_echo_n "(cached) " >&6
11008 else
11009  ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-lCore  $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013
11014
11015 #ifdef FC_DUMMY_MAIN
11016 #ifndef FC_DUMMY_MAIN_EQ_F77
11017 #  ifdef __cplusplus
11018     extern "C"
11019 #  endif
11020   int FC_DUMMY_MAIN() { return 1; }
11021 #endif
11022 #endif
11023 int
11024 main ()
11025 {
11026 return main ();
11027  ;
11028  return 0;
11029 }
11030 _ACEOF
11031 if ac_fn_c_try_link "$LINENO"; then :
11032  ac_cv_lib_Core_main=yes
11033 else
11034  ac_cv_lib_Core_main=no
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext \
11037    conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11039 fi
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Core_main" >&5
11041 $as_echo "$ac_cv_lib_Core_main" >&6; }
11042 if test "x$ac_cv_lib_Core_main" = x""yes; then :
11043  CGAL_LIBS="$CGAL_LIBS -lCore"
11044 fi
11045
11046        fi
11047 fi
11048
11049
11050
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL" >&5
11052 $as_echo_n "checking CGAL... " >&6; }
11053
11054
11055
11056
11057
11058 if test "$acx_cgal_found" == yes; then
11059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060 $as_echo "yes" >&6; }
11061
11062 else
11063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065
11066 fi
11067 USE_CGAL=no
11068 if test "$acx_cgal_found" == yes; then
11069        USE_CGAL=yes
11070
11071 $as_echo "#define HAVE_CGAL 1" >>confdefs.h
11072
11073
11074
11075
11076
11077 fi
11078
11079
11080
11081
9458   # Check whether --enable-doxygen was given.
9459   if test "${enable_doxygen+set}" = set; then :
9460    enableval=$enable_doxygen;
# Line 11110 | Line 9486 | $as_echo_n "checking for $ac_word... " >&6; }
9486   set dummy doxygen; ac_word=$2
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488   $as_echo_n "checking for $ac_word... " >&6; }
9489 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
9489 > if ${ac_cv_path_DOXYGEN+:} false; then :
9490    $as_echo_n "(cached) " >&6
9491   else
9492    case $DOXYGEN in
# Line 11148 | Line 9524 | fi
9524  
9525          if test "x$DOXYGEN" = x; then
9526                  if test "x$enable_doxygen" = xyes; then
9527 <                        as_fn_error "could not find doxygen" "$LINENO" 5
9527 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
9528                  fi
9529                  enable_doc=no
9530          else
# Line 11157 | Line 9533 | $as_echo_n "checking for $ac_word... " >&6; }
9533   set dummy dot; ac_word=$2
9534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535   $as_echo_n "checking for $ac_word... " >&6; }
9536 < if test "${ac_cv_path_DOT+set}" = set; then :
9536 > if ${ac_cv_path_DOT+:} false; then :
9537    $as_echo_n "(cached) " >&6
9538   else
9539    case $DOT in
# Line 11205 | Line 9581 | if test x$DOT = x; then
9581  
9582   if test x$DOT = x; then
9583          if test "x$enable_dot" = xyes; then
9584 <                as_fn_error "could not find dot" "$LINENO" 5
9584 >                as_fn_error $? "could not find dot" "$LINENO" 5
9585          fi
9586          enable_dot=no
9587   else
# Line 11297 | Line 9673 | if diff "$cache_file" confcache >/dev/null 2>&1; then
9673       :end' >>confcache
9674   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9675    if test -w "$cache_file"; then
9676 <    test "x$cache_file" != "x/dev/null" &&
9676 >    if test "x$cache_file" != "x/dev/null"; then
9677        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9678   $as_echo "$as_me: updating cache $cache_file" >&6;}
9679 <    cat confcache >$cache_file
9679 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
9680 >        cat confcache >"$cache_file"
9681 >      else
9682 >        case $cache_file in #(
9683 >        */* | ?:*)
9684 >          mv -f confcache "$cache_file"$$ &&
9685 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
9686 >        *)
9687 >          mv -f confcache "$cache_file" ;;
9688 >        esac
9689 >      fi
9690 >    fi
9691    else
9692      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9693   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 11316 | Line 9703 | ac_ltlibobjs=
9703  
9704   ac_libobjs=
9705   ac_ltlibobjs=
9706 + U=
9707   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9708    # 1. Remove the extension, and $U if already installed.
9709    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 11331 | Line 9719 | LTLIBOBJS=$ac_ltlibobjs
9719  
9720  
9721  
9722 < : ${CONFIG_STATUS=./config.status}
9722 > : "${CONFIG_STATUS=./config.status}"
9723   ac_write_fail=0
9724   ac_clean_files_save=$ac_clean_files
9725   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 11432 | Line 9820 | IFS=" ""       $as_nl"
9820   IFS=" ""        $as_nl"
9821  
9822   # Find who we are.  Look in the path if we contain no directory separator.
9823 + as_myself=
9824   case $0 in #((
9825    *[\\/]* ) as_myself=$0 ;;
9826    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11477 | Line 9866 | export LANGUAGE
9866   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9867  
9868  
9869 < # as_fn_error ERROR [LINENO LOG_FD]
9870 < # ---------------------------------
9869 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
9870 > # ----------------------------------------
9871   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9872   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9873 < # script with status $?, using 1 if that was 0.
9873 > # script with STATUS, using 1 if that was 0.
9874   as_fn_error ()
9875   {
9876 <  as_status=$?; test $as_status -eq 0 && as_status=1
9877 <  if test "$3"; then
9878 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9879 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9876 >  as_status=$1; test $as_status -eq 0 && as_status=1
9877 >  if test "$4"; then
9878 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9879 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9880    fi
9881 <  $as_echo "$as_me: error: $1" >&2
9881 >  $as_echo "$as_me: error: $2" >&2
9882    as_fn_exit $as_status
9883   } # as_fn_error
9884  
# Line 11685 | Line 10074 | $as_echo X"$as_dir" |
10074        test -d "$as_dir" && break
10075      done
10076      test -z "$as_dirs" || eval "mkdir $as_dirs"
10077 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10077 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10078  
10079  
10080   } # as_fn_mkdir_p
# Line 11738 | Line 10127 | ac_log="
10127   # report actual input values of CONFIG_FILES etc. instead of their
10128   # values after options handling.
10129   ac_log="
10130 < This file was extended by OOPSE $as_me 4.0, which was
10131 < generated by GNU Autoconf 2.64.  Invocation command line was
10130 > This file was extended by OpenMD $as_me 1.0, which was
10131 > generated by GNU Autoconf 2.68.  Invocation command line was
10132  
10133    CONFIG_FILES    = $CONFIG_FILES
10134    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11778 | Line 10167 | Usage: $0 [OPTION]... [TAG]...
10167  
10168    -h, --help       print this help, then exit
10169    -V, --version    print version number and configuration settings, then exit
10170 +      --config     print configuration, then exit
10171    -q, --quiet, --silent
10172                     do not print progress messages
10173    -d, --debug      don't remove temporary files
# Line 11797 | Line 10187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10187  
10188   _ACEOF
10189   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10190 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10191   ac_cs_version="\\
10192 < OOPSE config.status 4.0
10193 < configured by $0, generated by GNU Autoconf 2.64,
10194 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10192 > OpenMD config.status 1.0
10193 > configured by $0, generated by GNU Autoconf 2.68,
10194 >  with options \\"\$ac_cs_config\\"
10195  
10196 < Copyright (C) 2009 Free Software Foundation, Inc.
10196 > Copyright (C) 2010 Free Software Foundation, Inc.
10197   This config.status script is free software; the Free Software Foundation
10198   gives unlimited permission to copy, distribute and modify it."
10199  
# Line 11818 | Line 10209 | do
10209   while test $# != 0
10210   do
10211    case $1 in
10212 <  --*=*)
10212 >  --*=?*)
10213      ac_option=`expr "X$1" : 'X\([^=]*\)='`
10214      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10215      ac_shift=:
10216      ;;
10217 +  --*=)
10218 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10219 +    ac_optarg=
10220 +    ac_shift=:
10221 +    ;;
10222    *)
10223      ac_option=$1
10224      ac_optarg=$2
# Line 11836 | Line 10232 | do
10232      ac_cs_recheck=: ;;
10233    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10234      $as_echo "$ac_cs_version"; exit ;;
10235 +  --config | --confi | --conf | --con | --co | --c )
10236 +    $as_echo "$ac_cs_config"; exit ;;
10237    --debug | --debu | --deb | --de | --d | -d )
10238      debug=: ;;
10239    --file | --fil | --fi | --f )
10240      $ac_shift
10241      case $ac_optarg in
10242      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10243 +    '') as_fn_error $? "missing file argument" ;;
10244      esac
10245      as_fn_append CONFIG_FILES " '$ac_optarg'"
10246      ac_need_defaults=false;;
# Line 11854 | Line 10253 | do
10253      ac_need_defaults=false;;
10254    --he | --h)
10255      # Conflict between --help and --header
10256 <    as_fn_error "ambiguous option: \`$1'
10256 >    as_fn_error $? "ambiguous option: \`$1'
10257   Try \`$0 --help' for more information.";;
10258    --help | --hel | -h )
10259      $as_echo "$ac_cs_usage"; exit ;;
# Line 11863 | Line 10262 | Try \`$0 --help' for more information.";;
10262      ac_cs_silent=: ;;
10263  
10264    # This is an error.
10265 <  -*) as_fn_error "unrecognized option: \`$1'
10265 >  -*) as_fn_error $? "unrecognized option: \`$1'
10266   Try \`$0 --help' for more information." ;;
10267  
10268    *) as_fn_append ac_config_targets " $1"
# Line 11920 | Line 10319 | do
10319      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
10320      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
10321  
10322 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10322 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10323    esac
10324   done
10325  
# Line 11942 | Line 10341 | $debug ||
10341   # after its creation but before its name has been assigned to `$tmp'.
10342   $debug ||
10343   {
10344 <  tmp=
10344 >  tmp= ac_tmp=
10345    trap 'exit_status=$?
10346 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10346 >  : "${ac_tmp:=$tmp}"
10347 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10348   ' 0
10349    trap 'as_fn_exit 1' 1 2 13 15
10350   }
# Line 11952 | Line 10352 | $debug ||
10352  
10353   {
10354    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10355 <  test -n "$tmp" && test -d "$tmp"
10355 >  test -d "$tmp"
10356   }  ||
10357   {
10358    tmp=./conf$$-$RANDOM
10359    (umask 077 && mkdir "$tmp")
10360 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10360 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10361 > ac_tmp=$tmp
10362  
10363   # Set up the scripts for CONFIG_FILES section.
10364   # No need to generate them if there are no CONFIG_FILES.
# Line 11974 | Line 10375 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10375   fi
10376   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10377   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10378 <  ac_cs_awk_cr='\r'
10378 >  ac_cs_awk_cr='\\r'
10379   else
10380    ac_cs_awk_cr=$ac_cr
10381   fi
10382  
10383 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
10383 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10384   _ACEOF
10385  
10386  
# Line 11988 | Line 10389 | _ACEOF
10389    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10390    echo "_ACEOF"
10391   } >conf$$subs.sh ||
10392 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10393 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10392 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10393 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10394   ac_delim='%!_!# '
10395   for ac_last_try in false false false false false :; do
10396    . ./conf$$subs.sh ||
10397 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10397 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10398  
10399    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10400    if test $ac_delim_n = $ac_delim_num; then
10401      break
10402    elif $ac_last_try; then
10403 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10403 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10404    else
10405      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10406    fi
# Line 12007 | Line 10408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10408   rm -f conf$$subs.sh
10409  
10410   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10411 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10411 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10412   _ACEOF
10413   sed -n '
10414   h
# Line 12021 | Line 10422 | h
10422   t delim
10423   :nl
10424   h
10425 < s/\(.\{148\}\).*/\1/
10425 > s/\(.\{148\}\)..*/\1/
10426   t more1
10427   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10428   p
# Line 12035 | Line 10436 | h
10436   t nl
10437   :delim
10438   h
10439 < s/\(.\{148\}\).*/\1/
10439 > s/\(.\{148\}\)..*/\1/
10440   t more2
10441   s/["\\]/\\&/g; s/^/"/; s/$/"/
10442   p
# Line 12055 | Line 10456 | _ACAWK
10456   rm -f conf$$subs.awk
10457   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10458   _ACAWK
10459 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10459 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10460    for (key in S) S_is_set[key] = 1
10461    FS = ""
10462  
# Line 12087 | Line 10488 | else
10488    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10489   else
10490    cat
10491 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10492 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
10491 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10492 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10493   _ACEOF
10494  
10495 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
10496 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10495 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10496 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10497   # trailing colons and then remove the whole line if VPATH becomes empty
10498   # (actually we leave an empty line to preserve line numbers).
10499   if test "x$srcdir" = x.; then
10500 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10501 < s/:*\$(srcdir):*/:/
10502 < s/:*\${srcdir}:*/:/
10503 < s/:*@srcdir@:*/:/
10504 < s/^\([^=]*=[     ]*\):*/\1/
10500 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
10501 > h
10502 > s///
10503 > s/^/:/
10504 > s/[      ]*$/:/
10505 > s/:\$(srcdir):/:/g
10506 > s/:\${srcdir}:/:/g
10507 > s/:@srcdir@:/:/g
10508 > s/^:*//
10509   s/:*$//
10510 + x
10511 + s/\(=[   ]*\).*/\1/
10512 + G
10513 + s/\n//
10514   s/^[^=]*=[       ]*$//
10515   }'
10516   fi
# Line 12113 | Line 10522 | if test -n "$CONFIG_HEADERS"; then
10522   # No need to generate them if there are no CONFIG_HEADERS.
10523   # This happens for instance with `./config.status Makefile'.
10524   if test -n "$CONFIG_HEADERS"; then
10525 < cat >"$tmp/defines.awk" <<\_ACAWK ||
10525 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10526   BEGIN {
10527   _ACEOF
10528  
# Line 12125 | Line 10534 | for ac_last_try in false false :; do
10534   # handling of long lines.
10535   ac_delim='%!_!# '
10536   for ac_last_try in false false :; do
10537 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10538 <  if test -z "$ac_t"; then
10537 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10538 >  if test -z "$ac_tt"; then
10539      break
10540    elif $ac_last_try; then
10541 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10541 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10542    else
10543      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10544    fi
# Line 12214 | Line 10623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10623   _ACAWK
10624   _ACEOF
10625   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10626 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
10626 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10627   fi # test -n "$CONFIG_HEADERS"
10628  
10629  
# Line 12227 | Line 10636 | do
10636    esac
10637    case $ac_mode$ac_tag in
10638    :[FHL]*:*);;
10639 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10639 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10640    :[FH]-) ac_tag=-:-;;
10641    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10642    esac
# Line 12246 | Line 10655 | do
10655      for ac_f
10656      do
10657        case $ac_f in
10658 <      -) ac_f="$tmp/stdin";;
10658 >      -) ac_f="$ac_tmp/stdin";;
10659        *) # Look for the file first in the build tree, then in the source tree
10660           # (if the path is not absolute).  The absolute path cannot be DOS-style,
10661           # because $ac_f cannot contain `:'.
# Line 12255 | Line 10664 | do
10664             [\\/$]*) false;;
10665             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10666             esac ||
10667 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10667 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10668        esac
10669        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10670        as_fn_append ac_file_inputs " '$ac_f'"
# Line 12281 | Line 10690 | $as_echo "$as_me: creating $ac_file" >&6;}
10690      esac
10691  
10692      case $ac_tag in
10693 <    *:-:* | *:-) cat >"$tmp/stdin" \
10694 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10693 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
10694 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10695      esac
10696      ;;
10697    esac
# Line 12412 | Line 10821 | $ac_datarootdir_hack
10821   s&@INSTALL@&$ac_INSTALL&;t t
10822   $ac_datarootdir_hack
10823   "
10824 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10825 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
10824 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10825 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10826  
10827   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10828 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10829 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10828 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10829 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
10830 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
10831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10832 < which seems to be undefined.  Please make sure it is defined." >&5
10832 > which seems to be undefined.  Please make sure it is defined" >&5
10833   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10834 < which seems to be undefined.  Please make sure it is defined." >&2;}
10834 > which seems to be undefined.  Please make sure it is defined" >&2;}
10835  
10836 <  rm -f "$tmp/stdin"
10836 >  rm -f "$ac_tmp/stdin"
10837    case $ac_file in
10838 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
10839 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10838 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10839 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10840    esac \
10841 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
10841 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10842   ;;
10843    :H)
10844    #
# Line 12437 | Line 10847 | which seems to be undefined.  Please make sure it is d
10847    if test x"$ac_file" != x-; then
10848      {
10849        $as_echo "/* $configure_input  */" \
10850 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10851 <    } >"$tmp/config.h" \
10852 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
10853 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10850 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10851 >    } >"$ac_tmp/config.h" \
10852 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10853 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10854        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10855   $as_echo "$as_me: $ac_file is unchanged" >&6;}
10856      else
10857        rm -f "$ac_file"
10858 <      mv "$tmp/config.h" "$ac_file" \
10859 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
10858 >      mv "$ac_tmp/config.h" "$ac_file" \
10859 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10860      fi
10861    else
10862      $as_echo "/* $configure_input  */" \
10863 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10864 <      || as_fn_error "could not create -" "$LINENO" 5
10863 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10864 >      || as_fn_error $? "could not create -" "$LINENO" 5
10865    fi
10866   ;;
10867  
# Line 12476 | Line 10886 | test $ac_write_fail = 0 ||
10886   ac_clean_files=$ac_clean_files_save
10887  
10888   test $ac_write_fail = 0 ||
10889 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10889 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10890  
10891  
10892   # configure is writing to config.log, and then calls config.status.
# Line 12497 | Line 10907 | if test "$no_create" != yes; then
10907    exec 5>>config.log
10908    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10909    # would make configure fail if this is the last instruction.
10910 <  $ac_cs_success || as_fn_exit $?
10910 >  $ac_cs_success || as_fn_exit 1
10911   fi
10912   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines