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

Comparing trunk/configure (file contents):
Revision 1379 by gezelter, Thu Oct 22 14:09:13 2009 UTC vs.
Revision 1396 by gezelter, Sat Dec 5 02:57:05 2009 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.65 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
10 < # Foundation, Inc.
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 > # Inc.
11 > #
12   #
13   # This configure script is free software; the Free Software Foundation
14   # gives unlimited permission to copy, distribute and modify it.
# Line 527 | Line 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530  
531  
532 < exec 7<&0 </dev/null 6>&1
532 > test -n "$DJDIR" || exec 7<&0 </dev/null
533 > exec 6>&1
534  
535   # Name of the host.
536   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# Line 547 | Line 550 | MAKEFLAGS=
550   MAKEFLAGS=
551  
552   # Identity of this package.
553 < PACKAGE_NAME='OOPSE'
554 < PACKAGE_TARNAME='oopse'
555 < PACKAGE_VERSION='4.0'
556 < PACKAGE_STRING='OOPSE 4.0'
553 > PACKAGE_NAME='OpenMD'
554 > PACKAGE_TARNAME='openmd'
555 > PACKAGE_VERSION='1.0'
556 > PACKAGE_STRING='OpenMD 1.0'
557   PACKAGE_BUGREPORT='gezelter@nd.edu'
558   PACKAGE_URL=''
559  
560 < ac_unique_file="src/applications/oopse/oopse.cpp"
560 > ac_unique_file="src/applications/openmd/openmd.cpp"
561   ac_default_prefix="/usr/local"
562   # Factoring default headers for most tests.
563   ac_includes_default="\
# Line 594 | Line 597 | SUBDIRS
597  
598   ac_subst_vars='LTLIBOBJS
599   SUBDIRS
600 < OOPSE_HOME
601 < OOPSE
600 > OPENMD_HOME
601 > OPENMD
602   MKINSTALLDIRS
603   BATEXT
604   enable_latex_docs
# Line 647 | Line 650 | MPIFC
650   CPP
651   USE_MPI
652   MPIFC
653 + MPICC
654 + MPILIBS
655 + MPICXX
656   ac_ct_FC
657   FCFLAGS
658   FC
653 MPICC
659   ac_ct_CC
660   CFLAGS
661   CC
657 MPILIBS
658 MPICXX
662   OBJEXT
663   EXEEXT
664   ac_ct_CXX
# Line 663 | Line 666 | CXX
666   LDFLAGS
667   CXXFLAGS
668   CXX
666 ac_fc_path
667 ac_fc_set
668 ac_cxx_path
669 ac_cxx_set
670 ac_cc_path
671 ac_cc_set
669   USE_SINGLE_PRECISION
670   debug
671   PROGNAME
# Line 721 | Line 718 | enable_option_checking
718   ac_subst_files=''
719   ac_user_opts='
720   enable_option_checking
721 < enable_oopse_home
721 > enable_openmd_home
722   enable_debug
723   enable_single
724   enable_float
# Line 744 | Line 741 | CCC
741   LIBS
742   CPPFLAGS
743   CCC
747 MPICXX
744   CC
745   CFLAGS
750 MPICC
746   FC
747   FCFLAGS
748 + MPICXX
749 + MPICC
750   MPIFC
751   CPP
752   CXXCPP'
# Line 1294 | Line 1291 | if test "$ac_init_help" = "long"; then
1291    # Omit some internal or obsolete options to make the list less imposing.
1292    # This message is too long to be a string in the A/UX 3.1 sh.
1293    cat <<_ACEOF
1294 < \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
1294 > \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1295  
1296   Usage: $0 [OPTION]... [VAR=VALUE]...
1297  
# Line 1342 | Line 1339 | Fine tuning of the installation directories:
1339    --infodir=DIR           info documentation [DATAROOTDIR/info]
1340    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1341    --mandir=DIR            man documentation [DATAROOTDIR/man]
1342 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1342 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1343    --htmldir=DIR           html documentation [DOCDIR]
1344    --dvidir=DIR            dvi documentation [DOCDIR]
1345    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1359 | Line 1356 | if test -n "$ac_init_help"; then
1356  
1357   if test -n "$ac_init_help"; then
1358    case $ac_init_help in
1359 <     short | recursive ) echo "Configuration of OOPSE 4.0:";;
1359 >     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1360     esac
1361    cat <<\_ACEOF
1362  
# Line 1367 | Line 1364 | Optional Features:
1364    --disable-option-checking  ignore unrecognized --enable/--with options
1365    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1366    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1367 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1368 <  --enable-debug          Compile OOPSE in debug mode
1369 <  --enable-single         compile OOPSE in single precision
1367 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1368 >  --enable-debug          Compile OpenMD in debug mode
1369 >  --enable-single         compile OpenMD in single precision
1370    --enable-float          synonym for --enable-single
1371    --enable-doxygen        enable documentation generation with doxygen (auto)
1372    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1394 | Some influential environment variables:
1394    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1395                nonstandard directory <lib dir>
1396    LIBS        libraries to pass to the linker, e.g. -l<library>
1397 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1398                you have headers in a nonstandard directory <include dir>
1402  MPICXX      MPI C++ compiler command
1399    CC          C compiler command
1400    CFLAGS      C compiler flags
1405  MPICC       MPI C compiler command
1401    FC          Fortran compiler command
1402    FCFLAGS     Fortran compiler flags
1403 +  MPICXX      MPI C++ compiler command
1404 +  MPICC       MPI C compiler command
1405    MPIFC       MPI Fortran compiler command
1406    CPP         C preprocessor
1407    CXXCPP      C++ preprocessor
# Line 1475 | Line 1472 | if $ac_init_version; then
1472   test -n "$ac_init_help" && exit $ac_status
1473   if $ac_init_version; then
1474    cat <<\_ACEOF
1475 < OOPSE configure 4.0
1476 < generated by GNU Autoconf 2.64
1475 > OpenMD configure 1.0
1476 > generated by GNU Autoconf 2.65
1477  
1478   Copyright (C) 2009 Free Software Foundation, Inc.
1479   This configure script is free software; the Free Software Foundation
# Line 1523 | Line 1520 | fi
1520          ac_retval=1
1521   fi
1522    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1523 <  return $ac_retval
1523 >  as_fn_set_status $ac_retval
1524  
1525   } # ac_fn_cxx_try_compile
1526 +
1527 + # ac_fn_c_try_compile LINENO
1528 + # --------------------------
1529 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 + ac_fn_c_try_compile ()
1531 + {
1532 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 +  rm -f conftest.$ac_objext
1534 +  if { { ac_try="$ac_compile"
1535 + case "(($ac_try" in
1536 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 +  *) ac_try_echo=$ac_try;;
1538 + esac
1539 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 + $as_echo "$ac_try_echo"; } >&5
1541 +  (eval "$ac_compile") 2>conftest.err
1542 +  ac_status=$?
1543 +  if test -s conftest.err; then
1544 +    grep -v '^ *+' conftest.err >conftest.er1
1545 +    cat conftest.er1 >&5
1546 +    mv -f conftest.er1 conftest.err
1547 +  fi
1548 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 +  test $ac_status = 0; } && {
1550 +         test -z "$ac_c_werror_flag" ||
1551 +         test ! -s conftest.err
1552 +       } && test -s conftest.$ac_objext; then :
1553 +  ac_retval=0
1554 + else
1555 +  $as_echo "$as_me: failed program was:" >&5
1556 + sed 's/^/| /' conftest.$ac_ext >&5
1557 +
1558 +        ac_retval=1
1559 + fi
1560 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 +  as_fn_set_status $ac_retval
1562 +
1563 + } # ac_fn_c_try_compile
1564 +
1565 + # ac_fn_fc_try_compile LINENO
1566 + # ---------------------------
1567 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 + ac_fn_fc_try_compile ()
1569 + {
1570 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 +  rm -f conftest.$ac_objext
1572 +  if { { ac_try="$ac_compile"
1573 + case "(($ac_try" in
1574 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 +  *) ac_try_echo=$ac_try;;
1576 + esac
1577 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 + $as_echo "$ac_try_echo"; } >&5
1579 +  (eval "$ac_compile") 2>conftest.err
1580 +  ac_status=$?
1581 +  if test -s conftest.err; then
1582 +    grep -v '^ *+' conftest.err >conftest.er1
1583 +    cat conftest.er1 >&5
1584 +    mv -f conftest.er1 conftest.err
1585 +  fi
1586 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 +  test $ac_status = 0; } && {
1588 +         test -z "$ac_fc_werror_flag" ||
1589 +         test ! -s conftest.err
1590 +       } && test -s conftest.$ac_objext; then :
1591 +  ac_retval=0
1592 + else
1593 +  $as_echo "$as_me: failed program was:" >&5
1594 + sed 's/^/| /' conftest.$ac_ext >&5
1595  
1596 +        ac_retval=1
1597 + fi
1598 +  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 +  as_fn_set_status $ac_retval
1600 +
1601 + } # ac_fn_fc_try_compile
1602 +
1603   # ac_fn_cxx_try_link LINENO
1604   # -------------------------
1605   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1569 | Line 1642 | fi
1642    # left behind by Apple's compiler.  We do this before executing the actions.
1643    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 <  return $ac_retval
1645 >  as_fn_set_status $ac_retval
1646  
1647   } # ac_fn_cxx_try_link
1648  
# Line 1639 | Line 1712 | $as_echo "$ac_res" >&6; }
1712    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713  
1714   } # ac_fn_cxx_check_func
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  rm -f conftest.$ac_objext
1650  if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_compile") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } && {
1666         test -z "$ac_c_werror_flag" ||
1667         test ! -s conftest.err
1668       } && test -s conftest.$ac_objext; then :
1669  ac_retval=0
1670 else
1671  $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1715  
1674        ac_retval=1
1675 fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1716   # ac_fn_c_try_link LINENO
1717   # -----------------------
1718   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1720 | Line 1755 | fi
1755    # left behind by Apple's compiler.  We do this before executing the actions.
1756    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 <  return $ac_retval
1758 >  as_fn_set_status $ac_retval
1759  
1760   } # ac_fn_c_try_link
1761  
# Line 1791 | Line 1826 | $as_echo "$ac_res" >&6; }
1826  
1827   } # ac_fn_c_check_func
1828  
1794 # ac_fn_fc_try_compile LINENO
1795 # ---------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_fc_try_compile ()
1798 {
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  rm -f conftest.$ac_objext
1801  if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_compile") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && {
1817         test -z "$ac_fc_werror_flag" ||
1818         test ! -s conftest.err
1819       } && test -s conftest.$ac_objext; then :
1820  ac_retval=0
1821 else
1822  $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825        ac_retval=1
1826 fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  return $ac_retval
1829
1830 } # ac_fn_fc_try_compile
1831
1829   # ac_fn_fc_try_link LINENO
1830   # ------------------------
1831   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1871 | Line 1868 | fi
1868    # left behind by Apple's compiler.  We do this before executing the actions.
1869    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 <  return $ac_retval
1871 >  as_fn_set_status $ac_retval
1872  
1873   } # ac_fn_fc_try_link
1874  
# Line 1908 | Line 1905 | fi
1905      ac_retval=1
1906   fi
1907    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 <  return $ac_retval
1908 >  as_fn_set_status $ac_retval
1909  
1910   } # ac_fn_c_try_cpp
1911  
# Line 2043 | Line 2040 | fi
2040   fi
2041    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 <  return $ac_retval
2043 >  as_fn_set_status $ac_retval
2044  
2045   } # ac_fn_c_try_run
2046  
# Line 2111 | Line 2108 | fi
2108      ac_retval=1
2109   fi
2110    eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 <  return $ac_retval
2111 >  as_fn_set_status $ac_retval
2112  
2113   } # ac_fn_cxx_try_cpp
2114  
# Line 2281 | Line 2278 | running configure, to aid debugging if configure makes
2278   This file contains any messages produced by compilers while
2279   running configure, to aid debugging if configure makes a mistake.
2280  
2281 < It was created by OOPSE $as_me 4.0, which was
2282 < generated by GNU Autoconf 2.64.  Invocation command line was
2281 > It was created by OpenMD $as_me 1.0, which was
2282 > generated by GNU Autoconf 2.65.  Invocation command line was
2283  
2284    $ $0 $@
2285  
# Line 2535 | Line 2532 | do
2532   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533   do
2534    test "x$ac_site_file" = xNONE && continue
2535 <  if test -r "$ac_site_file"; then
2535 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2536      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538      sed 's/^/| /' "$ac_site_file" >&5
# Line 2544 | Line 2541 | if test -r "$cache_file"; then
2541   done
2542  
2543   if test -r "$cache_file"; then
2544 <  # Some versions of bash will fail to source /dev/null (special
2545 <  # files actually), so we avoid doing that.
2546 <  if test -f "$cache_file"; then
2544 >  # Some versions of bash will fail to source /dev/null (special files
2545 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2546 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548   $as_echo "$as_me: loading cache $cache_file" >&6;}
2549      case $cache_file in
# Line 2969 | Line 2966 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2966  
2967  
2968   # set program name
2969 < PROGNAME="oopse"
2969 > PROGNAME="openmd"
2970  
2971  
2972  
2973  
2974   OBJEXT=".$OBJEXT"
2975  
2976 < OOPSE=oopse
2976 > OPENMD=openmd
2977  
2978   if test "x${prefix}" = "xNONE"
2979   then
2980 <  OOPSE_HOME=${ac_default_prefix}/oopse
2980 >  OPENMD_HOME=${ac_default_prefix}/openmd
2981   else
2982 <  OOPSE_HOME=${prefix}/oopse
2982 >  OPENMD_HOME=${prefix}/openmd
2983   fi
2984 < # Check whether --enable-oopse-home was given.
2985 < if test "${enable_oopse_home+set}" = set; then :
2986 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2984 > # Check whether --enable-openmd-home was given.
2985 > if test "${enable_openmd_home+set}" = set; then :
2986 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2987   fi
2988  
2989  
# Line 2997 | Line 2994 | if test "${enable_debug+set}" = set; then :
2994   # Check whether --enable-debug was given.
2995   if test "${enable_debug+set}" = set; then :
2996    enableval=$enable_debug; debug=1
3000 fi
3001
3002 if test "${DEBUG}"; then
3003
3004 $as_echo "#define debug 1" >>confdefs.h
3005
3006  msg="$msg, debug mode"
3007 fi
3008
3009
3010 # Check whether --enable-single was given.
3011 if test "${enable_single+set}" = set; then :
3012  enableval=$enable_single; ok=$enableval
3013 else
3014  ok=no
3015 fi
3016
3017 # Check whether --enable-float was given.
3018 if test "${enable_float+set}" = set; then :
3019  enableval=$enable_float; ok=$enableval
3020 fi
3021
3022 if test "$ok" = "yes"; then
3023
3024 $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
3025
3026        USE_SINGLE_PRECISION=yes
3027
3028 fi
3029
3030 if test x"$CC" != x; then
3031   for ac_prog in $CC
3032 do
3033  # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3038  $as_echo_n "(cached) " >&6
3039 else
3040  if test -n "$ac_cc_set"; then
3041  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_ac_cc_set="$ac_prog"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054 done
3055  done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_cc_set=$ac_cv_prog_ac_cc_set
3061 if test -n "$ac_cc_set"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3063 $as_echo "$ac_cc_set" >&6; }
3064 else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070  test -n "$ac_cc_set" && break
3071 done
3072 test -n "$ac_cc_set" || ac_cc_set="no"
3073
3074   if test $ac_cc_set != no; then :
3075
3076     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3077 set dummy $ac_cc_set; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082 else
3083  case $ac_cc_path in
3084  [\\/]* | ?:[\\/]*)
3085  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3086  ;;
3087  *)
3088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099 done
3100  done
3101 IFS=$as_save_IFS
3102
3103  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3104  ;;
3105 esac
3106 fi
3107 ac_cc_path=$ac_cv_path_ac_cc_path
3108 if test -n "$ac_cc_path"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3110 $as_echo "$ac_cc_path" >&6; }
3111 else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 else
3118
3119     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3120 fi
3121
3122   if test $ac_cc_path != no; then :
3123
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3125 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3126     MPICC=$CC
3127
3128 else
3129
3130     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3131 fi
3132 fi
3133
3134 if test x"$CXX" != x; then
3135   for ac_prog in $CXX
3136 do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3142  $as_echo_n "(cached) " >&6
3143 else
3144  if test -n "$ac_cxx_set"; then
3145  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_ac_cxx_set="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158 done
3159  done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3165 if test -n "$ac_cxx_set"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3167 $as_echo "$ac_cxx_set" >&6; }
3168 else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174  test -n "$ac_cxx_set" && break
3175 done
3176 test -n "$ac_cxx_set" || ac_cxx_set="no"
3177
3178   if test $ac_cxx_set != no; then :
3179
3180     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3181 set dummy $ac_cxx_set; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3185  $as_echo_n "(cached) " >&6
3186 else
3187  case $ac_cxx_path in
3188  [\\/]* | ?:[\\/]*)
3189  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3190  ;;
3191  *)
3192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203 done
3204  done
3205 IFS=$as_save_IFS
3206
3207  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3208  ;;
3209 esac
3210 fi
3211 ac_cxx_path=$ac_cv_path_ac_cxx_path
3212 if test -n "$ac_cxx_path"; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3214 $as_echo "$ac_cxx_path" >&6; }
3215 else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 else
3222
3223     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3224 fi
3225
3226   if test $ac_cxx_path != no; then :
3227
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3229 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3230     MPICXX=$CXX
3231
3232 else
3233
3234     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3235 fi
3236 fi
3237
3238 if test x"$FC" != x; then
3239   for ac_prog in $FC
3240 do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3246  $as_echo_n "(cached) " >&6
3247 else
3248  if test -n "$ac_fc_set"; then
3249  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258    ac_cv_prog_ac_fc_set="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262 done
3263  done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_fc_set=$ac_cv_prog_ac_fc_set
3269 if test -n "$ac_fc_set"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3271 $as_echo "$ac_fc_set" >&6; }
3272 else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276
3277
3278  test -n "$ac_fc_set" && break
3279 done
3280 test -n "$ac_fc_set" || ac_fc_set="no"
3281
3282   if test $ac_fc_set != no; then :
3283
3284     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3285 set dummy $ac_fc_set; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290 else
3291  case $ac_fc_path in
3292  [\\/]* | ?:[\\/]*)
3293  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3294  ;;
3295  *)
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307 done
3308  done
3309 IFS=$as_save_IFS
3310
3311  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3312  ;;
3313 esac
3314 fi
3315 ac_fc_path=$ac_cv_path_ac_fc_path
3316 if test -n "$ac_fc_path"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3318 $as_echo "$ac_fc_path" >&6; }
3319 else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
3323
3324
3325 else
3326
3327     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3328 fi
3329
3330   if test $ac_fc_path != no; then :
3331
3332     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3333 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3334     MPIFC=$FC
3335
3336 else
3337
3338     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3339 fi
3340 fi
3341
3342
3343 ac_ext=cpp
3344 ac_cpp='$CXXCPP $CPPFLAGS'
3345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3348
3349 ac_ext=cpp
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3354 if test -z "$CXX"; then
3355  if test -n "$CCC"; then
3356    CXX=$CCC
3357  else
3358    if test -n "$ac_tool_prefix"; then
3359  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3360  do
3361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if test "${ac_cv_prog_CXX+set}" = set; then :
3366  $as_echo_n "(cached) " >&6
3367 else
3368  if test -n "$CXX"; then
3369  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3373 do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376    for ac_exec_ext in '' $ac_executable_extensions; do
3377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382 done
3383  done
3384 IFS=$as_save_IFS
3385
3386 fi
3387 fi
3388 CXX=$ac_cv_prog_CXX
3389 if test -n "$CXX"; then
3390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3391 $as_echo "$CXX" >&6; }
3392 else
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 fi
3396
3397
3398    test -n "$CXX" && break
3399  done
3400 fi
3401 if test -z "$CXX"; then
3402  ac_ct_CXX=$CXX
3403  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3404 do
3405  # Extract the first word of "$ac_prog", so it can be a program name with args.
3406 set dummy $ac_prog; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3410  $as_echo_n "(cached) " >&6
3411 else
3412  if test -n "$ac_ct_CXX"; then
3413  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418  IFS=$as_save_IFS
3419  test -z "$as_dir" && as_dir=.
3420    for ac_exec_ext in '' $ac_executable_extensions; do
3421  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422    ac_cv_prog_ac_ct_CXX="$ac_prog"
3423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424    break 2
3425  fi
3426 done
3427  done
3428 IFS=$as_save_IFS
3429
3430 fi
3431 fi
3432 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3433 if test -n "$ac_ct_CXX"; then
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3435 $as_echo "$ac_ct_CXX" >&6; }
3436 else
3437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 fi
3440
3441
3442  test -n "$ac_ct_CXX" && break
3443 done
3444
3445  if test "x$ac_ct_CXX" = x; then
3446    CXX="g++"
3447  else
3448    case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3453 esac
3454    CXX=$ac_ct_CXX
3455  fi
3456 fi
3457
3458  fi
3459 fi
3460 # Provide some information about the compiler.
3461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3462 set X $ac_compile
3463 ac_compiler=$2
3464 for ac_option in --version -v -V -qversion; do
3465  { { ac_try="$ac_compiler $ac_option >&5"
3466 case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3473  ac_status=$?
3474  if test -s conftest.err; then
3475    sed '10a\
3476 ... rest of stderr output deleted ...
3477         10q' conftest.err >conftest.er1
3478    cat conftest.er1 >&5
3479    rm -f conftest.er1 conftest.err
3480  fi
3481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482  test $ac_status = 0; }
3483 done
3484
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487 #include <stdio.h>
3488 int
3489 main ()
3490 {
3491 FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3493
3494  ;
3495  return 0;
3496 }
3497 _ACEOF
3498 ac_clean_files_save=$ac_clean_files
3499 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3500 # Try to create an executable without -o first, disregard a.out.
3501 # It will help us diagnose broken compilers, and finding out an intuition
3502 # of exeext.
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3504 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3505 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3506
3507 # The possible output files:
3508 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509
3510 ac_rmfiles=
3511 for ac_file in $ac_files
3512 do
3513  case $ac_file in
3514    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3515    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3516  esac
3517 done
3518 rm -f $ac_rmfiles
3519
3520 if { { ac_try="$ac_link_default"
3521 case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527  (eval "$ac_link_default") 2>&5
3528  ac_status=$?
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }; then :
3531  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3532 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3533 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3534 # so that the user can short-circuit this test for compilers unknown to
3535 # Autoconf.
3536 for ac_file in $ac_files ''
3537 do
3538  test -f "$ac_file" || continue
3539  case $ac_file in
3540    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541        ;;
3542    [ab].out )
3543        # We found the default executable, but exeext='' is most
3544        # certainly right.
3545        break;;
3546    *.* )
3547        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3548        then :; else
3549           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550        fi
3551        # We set ac_cv_exeext here because the later test for it is not
3552        # safe: cross compilers may not add the suffix if given an `-o'
3553        # argument, so we may need to know it at that point already.
3554        # Even if this section looks crufty: it has the advantage of
3555        # actually working.
3556        break;;
3557    * )
3558        break;;
3559  esac
3560 done
3561 test "$ac_cv_exeext" = no && ac_cv_exeext=
3562
3563 else
3564  ac_file=''
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 if test -z "$ac_file"; then :
3569  $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 { as_fn_set_status 77
3575 as_fn_error "C++ compiler cannot create executables
3576 See \`config.log' for more details." "$LINENO" 5; }; }
3577 fi
3578 ac_exeext=$ac_cv_exeext
3579
3580 # Check that the compiler produces executables we can run.  If not, either
3581 # the compiler is broken, or we cross compile.
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3583 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3584 # If not cross compiling, check that we can run a simple program.
3585 if test "$cross_compiling" != yes; then
3586  if { ac_try='./$ac_file'
3587  { { case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593  (eval "$ac_try") 2>&5
3594  ac_status=$?
3595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596  test $ac_status = 0; }; }; then
3597    cross_compiling=no
3598  else
3599    if test "$cross_compiling" = maybe; then
3600        cross_compiling=yes
3601    else
3602        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error "cannot run C++ compiled programs.
3605 If you meant to cross compile, use \`--host'.
3606 See \`config.log' for more details." "$LINENO" 5; }
3607    fi
3608  fi
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 $as_echo "yes" >&6; }
3612
3613 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3614 ac_clean_files=$ac_clean_files_save
3615 # Check that the compiler produces executables we can run.  If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620 $as_echo "$cross_compiling" >&6; }
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3623 $as_echo_n "checking for suffix of executables... " >&6; }
3624 if { { ac_try="$ac_link"
3625 case "(($ac_try" in
3626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627  *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631  (eval "$ac_link") 2>&5
3632  ac_status=$?
3633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634  test $ac_status = 0; }; then :
3635  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3636 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3637 # work properly (i.e., refer to `conftest.exe'), while it won't with
3638 # `rm'.
3639 for ac_file in conftest.exe conftest conftest.*; do
3640  test -f "$ac_file" || continue
3641  case $ac_file in
3642    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644          break;;
3645    * ) break;;
3646  esac
3647 done
3648 else
3649  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error "cannot compute suffix of executables: cannot compile and link
3652 See \`config.log' for more details." "$LINENO" 5; }
3653 fi
3654 rm -f conftest$ac_cv_exeext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3656 $as_echo "$ac_cv_exeext" >&6; }
3657
3658 rm -f conftest.$ac_ext
3659 EXEEXT=$ac_cv_exeext
3660 ac_exeext=$EXEEXT
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662 $as_echo_n "checking for suffix of object files... " >&6; }
3663 if test "${ac_cv_objext+set}" = set; then :
3664  $as_echo_n "(cached) " >&6
3665 else
3666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673  ;
3674  return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.o conftest.obj
3678 if { { ac_try="$ac_compile"
3679 case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685  (eval "$ac_compile") 2>&5
3686  ac_status=$?
3687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688  test $ac_status = 0; }; then :
3689  for ac_file in conftest.o conftest.obj conftest.*; do
3690  test -f "$ac_file" || continue;
3691  case $ac_file in
3692    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694       break;;
3695  esac
3696 done
3697 else
3698  $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error "cannot compute suffix of object files: cannot compile
3704 See \`config.log' for more details." "$LINENO" 5; }
3705 fi
3706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709 $as_echo "$ac_cv_objext" >&6; }
3710 OBJEXT=$ac_cv_objext
3711 ac_objext=$OBJEXT
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3713 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3714 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3715  $as_echo_n "(cached) " >&6
3716 else
3717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719
3720 int
3721 main ()
3722 {
3723 #ifndef __GNUC__
3724       choke me
3725 #endif
3726
3727  ;
3728  return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_cxx_try_compile "$LINENO"; then :
3732  ac_compiler_gnu=yes
3733 else
3734  ac_compiler_gnu=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3738
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3741 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3742 if test $ac_compiler_gnu = yes; then
3743  GXX=yes
3744 else
3745  GXX=
3746 fi
3747 ac_test_CXXFLAGS=${CXXFLAGS+set}
3748 ac_save_CXXFLAGS=$CXXFLAGS
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3750 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3751 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3752  $as_echo_n "(cached) " >&6
3753 else
3754  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3755   ac_cxx_werror_flag=yes
3756   ac_cv_prog_cxx_g=no
3757   CXXFLAGS="-g"
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 int
3762 main ()
3763 {
3764
3765  ;
3766  return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_cxx_try_compile "$LINENO"; then :
3770  ac_cv_prog_cxx_g=yes
3771 else
3772  CXXFLAGS=""
3773      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779
3780  ;
3781  return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_cxx_try_compile "$LINENO"; then :
3785
3786 else
3787  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3788         CXXFLAGS="-g"
3789         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3791
3792 int
3793 main ()
3794 {
3795
3796  ;
3797  return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_cxx_try_compile "$LINENO"; then :
3801  ac_cv_prog_cxx_g=yes
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3811 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3812 if test "$ac_test_CXXFLAGS" = set; then
3813  CXXFLAGS=$ac_save_CXXFLAGS
3814 elif test $ac_cv_prog_cxx_g = yes; then
3815  if test "$GXX" = yes; then
3816    CXXFLAGS="-g -O2"
3817  else
3818    CXXFLAGS="-g"
3819  fi
3820 else
3821  if test "$GXX" = yes; then
3822    CXXFLAGS="-O2"
3823  else
3824    CXXFLAGS=
3825  fi
3826 fi
3827 ac_ext=cpp
3828 ac_cpp='$CXXCPP $CPPFLAGS'
3829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3832
3833
3834
3835
3836
3837
3838
3839        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3840 do
3841  # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_MPICXX+set}" = set; then :
3846  $as_echo_n "(cached) " >&6
3847 else
3848  if test -n "$MPICXX"; then
3849  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_exec_ext in '' $ac_executable_extensions; do
3857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858    ac_cv_prog_MPICXX="$ac_prog"
3859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860    break 2
3861  fi
3862 done
3863  done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 MPICXX=$ac_cv_prog_MPICXX
3869 if test -n "$MPICXX"; then
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3871 $as_echo "$MPICXX" >&6; }
3872 else
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878  test -n "$MPICXX" && break
3879 done
3880 test -n "$MPICXX" || MPICXX="$CXX"
3881
3882        ax_mpi_save_CXX="$CXX"
3883        CXX="$MPICXX"
3884
3885
3886
3887 if test x = x"$MPILIBS"; then
3888        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3889 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3890  MPILIBS=" "
3891 fi
3892
3893 fi
3894
3895 if test x = x"$MPILIBS"; then
3896        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3897 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3898 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3899  $as_echo_n "(cached) " >&6
3900 else
3901  ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lmpi  $LIBS"
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 /* Override any GCC internal prototype to avoid an error.
3907   Use char because int might match the return type of a GCC
3908   builtin and then its argument prototype would still apply.  */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 char MPI_Init ();
3913 int
3914 main ()
3915 {
3916 return MPI_Init ();
3917  ;
3918  return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_cxx_try_link "$LINENO"; then :
3922  ac_cv_lib_mpi_MPI_Init=yes
3923 else
3924  ac_cv_lib_mpi_MPI_Init=no
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext \
3927    conftest$ac_exeext conftest.$ac_ext
3928 LIBS=$ac_check_lib_save_LIBS
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3931 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3932 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3933  MPILIBS="-lmpi"
3934 fi
3935
3936 fi
3937 if test x = x"$MPILIBS"; then
3938        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3939 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3940 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3941  $as_echo_n "(cached) " >&6
3942 else
3943  ac_check_lib_save_LIBS=$LIBS
3944 LIBS="-lmpich  $LIBS"
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 /* Override any GCC internal prototype to avoid an error.
3949   Use char because int might match the return type of a GCC
3950   builtin and then its argument prototype would still apply.  */
3951 #ifdef __cplusplus
3952 extern "C"
3953 #endif
3954 char MPI_Init ();
3955 int
3956 main ()
3957 {
3958 return MPI_Init ();
3959  ;
3960  return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_cxx_try_link "$LINENO"; then :
3964  ac_cv_lib_mpich_MPI_Init=yes
3965 else
3966  ac_cv_lib_mpich_MPI_Init=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext \
3969    conftest$ac_exeext conftest.$ac_ext
3970 LIBS=$ac_check_lib_save_LIBS
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3973 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3974 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3975  MPILIBS="-lmpich"
3976 fi
3977
3978 fi
3979
3980 if test x != x"$MPILIBS"; then
3981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
3982 $as_echo_n "checking for mpi.h... " >&6; }
3983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #include <mpi.h>
3986 int
3987 main ()
3988 {
3989
3990  ;
3991  return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_cxx_try_compile "$LINENO"; then :
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998  MPILIBS=""
3999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005 CXX="$ax_mpi_save_CXX"
4006
4007
4008
4009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4010 if test x = x"$MPILIBS"; then
4011        USE_MPI="no"
4012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4013 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4014        :
4015 else
4016        USE_MPI="yes"
4017        :
4018 fi
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031  $as_echo_n "(cached) " >&6
4032 else
4033  if test -n "$CC"; then
4034  ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039  IFS=$as_save_IFS
4040  test -z "$as_dir" && as_dir=.
4041    for ac_exec_ext in '' $ac_executable_extensions; do
4042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045    break 2
4046  fi
4047 done
4048  done
4049 IFS=$as_save_IFS
4050
4051 fi
4052 fi
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060 fi
4061
4062
4063 fi
4064 if test -z "$ac_cv_prog_CC"; then
4065  ac_ct_CC=$CC
4066  # Extract the first word of "gcc", so it can be a program name with args.
4067 set dummy gcc; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071  $as_echo_n "(cached) " >&6
4072 else
4073  if test -n "$ac_ct_CC"; then
4074  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079  IFS=$as_save_IFS
4080  test -z "$as_dir" && as_dir=.
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083    ac_cv_prog_ac_ct_CC="gcc"
4084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087 done
4088  done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 if test -n "$ac_ct_CC"; then
4095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 $as_echo "$ac_ct_CC" >&6; }
4097 else
4098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102  if test "x$ac_ct_CC" = x; then
4103    CC=""
4104  else
4105    case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111    CC=$ac_ct_CC
4112  fi
4113 else
4114  CC="$ac_cv_prog_CC"
4115 fi
4116
4117 if test -z "$CC"; then
4118          if test -n "$ac_tool_prefix"; then
4119    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if test "${ac_cv_prog_CC+set}" = set; then :
4124  $as_echo_n "(cached) " >&6
4125 else
4126  if test -n "$CC"; then
4127  ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132  IFS=$as_save_IFS
4133  test -z "$as_dir" && as_dir=.
4134    for ac_exec_ext in '' $ac_executable_extensions; do
4135  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136    ac_cv_prog_CC="${ac_tool_prefix}cc"
4137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138    break 2
4139  fi
4140 done
4141  done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155
4156  fi
4157 fi
4158 if test -z "$CC"; then
4159  # Extract the first word of "cc", so it can be a program name with args.
4160 set dummy cc; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_CC+set}" = set; then :
4164  $as_echo_n "(cached) " >&6
4165 else
4166  if test -n "$CC"; then
4167  ac_cv_prog_CC="$CC" # Let the user override the test.
4168 else
4169  ac_prog_rejected=no
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_exec_ext in '' $ac_executable_extensions; do
4176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178       ac_prog_rejected=yes
4179       continue
4180     fi
4181    ac_cv_prog_CC="cc"
4182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183    break 2
4184  fi
4185 done
4186  done
4187 IFS=$as_save_IFS
4188
4189 if test $ac_prog_rejected = yes; then
4190  # We found a bogon in the path, so make sure we never use it.
4191  set dummy $ac_cv_prog_CC
4192  shift
4193  if test $# != 0; then
4194    # We chose a different compiler from the bogus one.
4195    # However, it has the same basename, so the bogon will be chosen
4196    # first if we set CC to just the basename; use the full file name.
4197    shift
4198    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199  fi
4200 fi
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 $as_echo "$CC" >&6; }
4207 else
4208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213 fi
4214 if test -z "$CC"; then
4215  if test -n "$ac_tool_prefix"; then
4216  for ac_prog in cl.exe
4217  do
4218    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_CC+set}" = set; then :
4223  $as_echo_n "(cached) " >&6
4224 else
4225  if test -n "$CC"; then
4226  ac_cv_prog_CC="$CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233    for ac_exec_ext in '' $ac_executable_extensions; do
4234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239 done
4240  done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 CC=$ac_cv_prog_CC
4246 if test -n "$CC"; then
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248 $as_echo "$CC" >&6; }
4249 else
4250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255    test -n "$CC" && break
4256  done
4257 fi
4258 if test -z "$CC"; then
4259  ac_ct_CC=$CC
4260  for ac_prog in cl.exe
4261 do
4262  # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267  $as_echo_n "(cached) " >&6
4268 else
4269  if test -n "$ac_ct_CC"; then
4270  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_exec_ext in '' $ac_executable_extensions; do
4278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279    ac_cv_prog_ac_ct_CC="$ac_prog"
4280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283 done
4284  done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290 if test -n "$ac_ct_CC"; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292 $as_echo "$ac_ct_CC" >&6; }
4293 else
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299  test -n "$ac_ct_CC" && break
4300 done
4301
4302  if test "x$ac_ct_CC" = x; then
4303    CC=""
4304  else
4305    case $cross_compiling:$ac_tool_warned in
4306 yes:)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311    CC=$ac_ct_CC
4312  fi
4313 fi
4314
4315 fi
4316
4317
4318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details." "$LINENO" 5; }
4322
4323 # Provide some information about the compiler.
4324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325 set X $ac_compile
4326 ac_compiler=$2
4327 for ac_option in --version -v -V -qversion; do
4328  { { ac_try="$ac_compiler $ac_option >&5"
4329 case "(($ac_try" in
4330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331  *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4336  ac_status=$?
4337  if test -s conftest.err; then
4338    sed '10a\
4339 ... rest of stderr output deleted ...
4340         10q' conftest.err >conftest.er1
4341    cat conftest.er1 >&5
4342    rm -f conftest.er1 conftest.err
4343  fi
4344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345  test $ac_status = 0; }
4346 done
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4349 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4350 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4351  $as_echo_n "(cached) " >&6
4352 else
4353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355
4356 int
4357 main ()
4358 {
4359 #ifndef __GNUC__
4360       choke me
4361 #endif
4362
4363  ;
4364  return 0;
4365 }
4366 _ACEOF
4367 if ac_fn_c_try_compile "$LINENO"; then :
4368  ac_compiler_gnu=yes
4369 else
4370  ac_compiler_gnu=no
4371 fi
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4374
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4377 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4378 if test $ac_compiler_gnu = yes; then
4379  GCC=yes
4380 else
4381  GCC=
4382 fi
4383 ac_test_CFLAGS=${CFLAGS+set}
4384 ac_save_CFLAGS=$CFLAGS
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4386 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4387 if test "${ac_cv_prog_cc_g+set}" = set; then :
4388  $as_echo_n "(cached) " >&6
4389 else
4390  ac_save_c_werror_flag=$ac_c_werror_flag
4391   ac_c_werror_flag=yes
4392   ac_cv_prog_cc_g=no
4393   CFLAGS="-g"
4394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h.  */
4396
4397 int
4398 main ()
4399 {
4400
4401  ;
4402  return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406  ac_cv_prog_cc_g=yes
4407 else
4408  CFLAGS=""
4409      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h.  */
4411
4412 int
4413 main ()
4414 {
4415
4416  ;
4417  return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421
4422 else
4423  ac_c_werror_flag=$ac_save_c_werror_flag
4424         CFLAGS="-g"
4425         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427
4428 int
4429 main ()
4430 {
4431
4432  ;
4433  return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_c_try_compile "$LINENO"; then :
4437  ac_cv_prog_cc_g=yes
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 fi
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444   ac_c_werror_flag=$ac_save_c_werror_flag
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4447 $as_echo "$ac_cv_prog_cc_g" >&6; }
4448 if test "$ac_test_CFLAGS" = set; then
4449  CFLAGS=$ac_save_CFLAGS
4450 elif test $ac_cv_prog_cc_g = yes; then
4451  if test "$GCC" = yes; then
4452    CFLAGS="-g -O2"
4453  else
4454    CFLAGS="-g"
4455  fi
4456 else
4457  if test "$GCC" = yes; then
4458    CFLAGS="-O2"
4459  else
4460    CFLAGS=
4461  fi
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4464 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4465 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4466  $as_echo_n "(cached) " >&6
4467 else
4468  ac_cv_prog_cc_c89=no
4469 ac_save_CC=$CC
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h.  */
4472 #include <stdarg.h>
4473 #include <stdio.h>
4474 #include <sys/types.h>
4475 #include <sys/stat.h>
4476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4477 struct buf { int x; };
4478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4479 static char *e (p, i)
4480     char **p;
4481     int i;
4482 {
4483  return p[i];
4484 }
4485 static char *f (char * (*g) (char **, int), char **p, ...)
4486 {
4487  char *s;
4488  va_list v;
4489  va_start (v,p);
4490  s = g (p, va_arg (v,int));
4491  va_end (v);
4492  return s;
4493 }
4494
4495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4496   function prototypes and stuff, but not '\xHH' hex character constants.
4497   These don't provoke an error unfortunately, instead are silently treated
4498   as 'x'.  The following induces an error, until -std is added to get
4499   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4500   array size at least.  It's necessary to write '\x00'==0 to get something
4501   that's true only with -std.  */
4502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4503
4504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4505   inside strings and character constants.  */
4506 #define FOO(x) 'x'
4507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4508
4509 int test (int i, double x);
4510 struct s1 {int (*f) (int a);};
4511 struct s2 {int (*f) (double a);};
4512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4513 int argc;
4514 char **argv;
4515 int
4516 main ()
4517 {
4518 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4519  ;
4520  return 0;
4521 }
4522 _ACEOF
4523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4524        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4525 do
4526  CC="$ac_save_CC $ac_arg"
4527  if ac_fn_c_try_compile "$LINENO"; then :
4528  ac_cv_prog_cc_c89=$ac_arg
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext
4531  test "x$ac_cv_prog_cc_c89" != "xno" && break
4532 done
4533 rm -f conftest.$ac_ext
4534 CC=$ac_save_CC
4535
4536 fi
4537 # AC_CACHE_VAL
4538 case "x$ac_cv_prog_cc_c89" in
4539  x)
4540    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4541 $as_echo "none needed" >&6; } ;;
4542  xno)
4543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4544 $as_echo "unsupported" >&6; } ;;
4545  *)
4546    CC="$CC $ac_cv_prog_cc_c89"
4547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4548 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4549 esac
4550 if test "x$ac_cv_prog_cc_c89" != xno; then :
4551
4552 fi
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560
4561 if test $USE_MPI != no; then :
4562
4563 ac_ext=c
4564 ac_cpp='$CPP $CPPFLAGS'
4565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
4569
4570
4571
4572
4573
4574        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4575 do
4576  # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_MPICC+set}" = set; then :
4581  $as_echo_n "(cached) " >&6
4582 else
4583  if test -n "$MPICC"; then
4584  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_exec_ext in '' $ac_executable_extensions; do
4592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593    ac_cv_prog_MPICC="$ac_prog"
4594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595    break 2
4596  fi
4597 done
4598  done
4599 IFS=$as_save_IFS
4600
4601 fi
4602 fi
4603 MPICC=$ac_cv_prog_MPICC
4604 if test -n "$MPICC"; then
4605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4606 $as_echo "$MPICC" >&6; }
4607 else
4608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4611
4612
4613  test -n "$MPICC" && break
4614 done
4615 test -n "$MPICC" || MPICC="$CC"
4616
4617        ax_mpi_save_CC="$CC"
4618        CC="$MPICC"
4619
4620
4621
4622 if test x = x"$MPILIBS"; then
4623        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4624 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4625  MPILIBS=" "
4626 fi
4627
4628 fi
4629
4630 if test x = x"$MPILIBS"; then
4631        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4632 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4633 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4634  $as_echo_n "(cached) " >&6
4635 else
4636  ac_check_lib_save_LIBS=$LIBS
4637 LIBS="-lmpi  $LIBS"
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640
4641 /* Override any GCC internal prototype to avoid an error.
4642   Use char because int might match the return type of a GCC
4643   builtin and then its argument prototype would still apply.  */
4644 #ifdef __cplusplus
4645 extern "C"
4646 #endif
4647 char MPI_Init ();
4648 int
4649 main ()
4650 {
4651 return MPI_Init ();
4652  ;
4653  return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_link "$LINENO"; then :
4657  ac_cv_lib_mpi_MPI_Init=yes
4658 else
4659  ac_cv_lib_mpi_MPI_Init=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext \
4662    conftest$ac_exeext conftest.$ac_ext
4663 LIBS=$ac_check_lib_save_LIBS
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4666 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4667 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4668  MPILIBS="-lmpi"
4669 fi
4670
4671 fi
4672 if test x = x"$MPILIBS"; then
4673        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4674 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4675 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4676  $as_echo_n "(cached) " >&6
4677 else
4678  ac_check_lib_save_LIBS=$LIBS
4679 LIBS="-lmpich  $LIBS"
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h.  */
4682
4683 /* Override any GCC internal prototype to avoid an error.
4684   Use char because int might match the return type of a GCC
4685   builtin and then its argument prototype would still apply.  */
4686 #ifdef __cplusplus
4687 extern "C"
4688 #endif
4689 char MPI_Init ();
4690 int
4691 main ()
4692 {
4693 return MPI_Init ();
4694  ;
4695  return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_link "$LINENO"; then :
4699  ac_cv_lib_mpich_MPI_Init=yes
4700 else
4701  ac_cv_lib_mpich_MPI_Init=no
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext \
4704    conftest$ac_exeext conftest.$ac_ext
4705 LIBS=$ac_check_lib_save_LIBS
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4708 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4709 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4710  MPILIBS="-lmpich"
4711 fi
4712
4713 fi
4714
4715 if test x != x"$MPILIBS"; then
4716        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4717 $as_echo_n "checking for mpi.h... " >&6; }
4718        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <mpi.h>
4721 int
4722 main ()
4723 {
4724
4725  ;
4726  return 0;
4727 }
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733  MPILIBS=""
4734                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 fi
4739
4740 CC="$ax_mpi_save_CC"
4741
4742
4743
4744 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4745 if test x = x"$MPILIBS"; then
4746        USE_MPI="no"
4747       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4748 $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4749        :
4750 else
4751        USE_MPI="yes"
4752        :
4753 fi
4754
4755
4756 fi
4757 ac_ext=${ac_fc_srcext-f}
4758 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4759 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4761 if test -n "$ac_tool_prefix"; then
4762  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
4763  do
4764    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_FC+set}" = set; then :
4769  $as_echo_n "(cached) " >&6
4770 else
4771  if test -n "$FC"; then
4772  ac_cv_prog_FC="$FC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777  IFS=$as_save_IFS
4778  test -z "$as_dir" && as_dir=.
4779    for ac_exec_ext in '' $ac_executable_extensions; do
4780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783    break 2
4784  fi
4785 done
4786  done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 FC=$ac_cv_prog_FC
4792 if test -n "$FC"; then
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4794 $as_echo "$FC" >&6; }
4795 else
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801    test -n "$FC" && break
4802  done
4803 fi
4804 if test -z "$FC"; then
4805  ac_ct_FC=$FC
4806  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
4807 do
4808  # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4813  $as_echo_n "(cached) " >&6
4814 else
4815  if test -n "$ac_ct_FC"; then
4816  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821  IFS=$as_save_IFS
4822  test -z "$as_dir" && as_dir=.
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825    ac_cv_prog_ac_ct_FC="$ac_prog"
4826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827    break 2
4828  fi
4829 done
4830  done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4836 if test -n "$ac_ct_FC"; then
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4838 $as_echo "$ac_ct_FC" >&6; }
4839 else
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845  test -n "$ac_ct_FC" && break
4846 done
4847
4848  if test "x$ac_ct_FC" = x; then
4849    FC=""
4850  else
4851    case $cross_compiling:$ac_tool_warned in
4852 yes:)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855 ac_tool_warned=yes ;;
4856 esac
4857    FC=$ac_ct_FC
4858  fi
4859 fi
4860
4861
4862 # Provide some information about the compiler.
4863 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4864 set X $ac_compile
4865 ac_compiler=$2
4866 for ac_option in --version -v -V -qversion; do
4867  { { ac_try="$ac_compiler $ac_option >&5"
4868 case "(($ac_try" in
4869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870  *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 $as_echo "$ac_try_echo"; } >&5
4874  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4875  ac_status=$?
4876  if test -s conftest.err; then
4877    sed '10a\
4878 ... rest of stderr output deleted ...
4879         10q' conftest.err >conftest.er1
4880    cat conftest.er1 >&5
4881    rm -f conftest.er1 conftest.err
4882  fi
4883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4884  test $ac_status = 0; }
4885 done
4886 rm -f a.out
4887
4888 # If we don't use `.F' as extension, the preprocessor is not run on the
4889 # input file.  (Note that this only needs to work for GNU compilers.)
4890 ac_save_ext=$ac_ext
4891 ac_ext=F
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4893 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4894 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4895  $as_echo_n "(cached) " >&6
4896 else
4897  cat > conftest.$ac_ext <<_ACEOF
4898      program main
4899 #ifndef __GNUC__
4900       choke me
4901 #endif
4902
4903      end
4904 _ACEOF
4905 if ac_fn_fc_try_compile "$LINENO"; then :
4906  ac_compiler_gnu=yes
4907 else
4908  ac_compiler_gnu=no
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4912
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4915 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4916 ac_ext=$ac_save_ext
4917 ac_test_FCFLAGS=${FCFLAGS+set}
4918 ac_save_FCFLAGS=$FCFLAGS
4919 FCFLAGS=
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4921 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4922 if test "${ac_cv_prog_fc_g+set}" = set; then :
4923  $as_echo_n "(cached) " >&6
4924 else
4925  FCFLAGS=-g
4926 cat > conftest.$ac_ext <<_ACEOF
4927      program main
4928
4929      end
4930 _ACEOF
4931 if ac_fn_fc_try_compile "$LINENO"; then :
4932  ac_cv_prog_fc_g=yes
4933 else
4934  ac_cv_prog_fc_g=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4940 $as_echo "$ac_cv_prog_fc_g" >&6; }
4941 if test "$ac_test_FCFLAGS" = set; then
4942  FCFLAGS=$ac_save_FCFLAGS
4943 elif test $ac_cv_prog_fc_g = yes; then
4944  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4945    FCFLAGS="-g -O2"
4946  else
4947    FCFLAGS="-g"
4948  fi
4949 else
4950  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4951    FCFLAGS="-O2"
4952  else
4953    FCFLAGS=
4954  fi
4955 fi
4956
4957 ac_ext=${ac_fc_srcext-f}
4958 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4959 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4961
4962
4963 if test $USE_MPI != no; then :
4964
4965 ac_ext=${ac_fc_srcext-f}
4966 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4967 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4969
4970
4971
4972
4973
4974
4975        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4976 do
4977  # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if test "${ac_cv_prog_MPIFC+set}" = set; then :
4982  $as_echo_n "(cached) " >&6
4983 else
4984  if test -n "$MPIFC"; then
4985  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990  IFS=$as_save_IFS
4991  test -z "$as_dir" && as_dir=.
4992    for ac_exec_ext in '' $ac_executable_extensions; do
4993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994    ac_cv_prog_MPIFC="$ac_prog"
4995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996    break 2
4997  fi
4998 done
4999  done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 MPIFC=$ac_cv_prog_MPIFC
5005 if test -n "$MPIFC"; then
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
5007 $as_echo "$MPIFC" >&6; }
5008 else
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014  test -n "$MPIFC" && break
5015 done
5016 test -n "$MPIFC" || MPIFC="$FC"
5017
5018        ax_mpi_save_FC="$FC"
5019        FC="$MPIFC"
5020
5021
5022
5023 if test x = x"$MPILIBS"; then
5024        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
5025 $as_echo_n "checking for MPI_Init... " >&6; }
5026                        cat > conftest.$ac_ext <<_ACEOF
5027      program main
5028      call MPI_Init
5029      end
5030 _ACEOF
5031 if ac_fn_fc_try_link "$LINENO"; then :
5032  MPILIBS=" "
5033                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041 fi
5042
5043        if test x = x"$MPILIBS"; then
5044                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5045 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5046 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048 else
5049  ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lfmpi  $LIBS"
5051 cat > conftest.$ac_ext <<_ACEOF
5052      program main
5053      call MPI_Init
5054      end
5055 _ACEOF
5056 if ac_fn_fc_try_link "$LINENO"; then :
5057  ac_cv_lib_fmpi_MPI_Init=yes
5058 else
5059  ac_cv_lib_fmpi_MPI_Init=no
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5066 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5067 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5068  MPILIBS="-lfmpi"
5069 fi
5070
5071        fi
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5074 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5075 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lmpichf90  $LIBS"
5080 cat > conftest.$ac_ext <<_ACEOF
5081      program main
5082      call MPI_Init
5083      end
5084 _ACEOF
5085 if ac_fn_fc_try_link "$LINENO"; then :
5086  ac_cv_lib_mpichf90_MPI_Init=yes
5087 else
5088  ac_cv_lib_mpichf90_MPI_Init=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091    conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5097  MPILIBS="-lmpichf90"
5098 fi
5099
5100        fi
5101
5102 if test x = x"$MPILIBS"; then
5103        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
5104 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
5105 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
5106  $as_echo_n "(cached) " >&6
5107 else
5108  ac_check_lib_save_LIBS=$LIBS
5109 LIBS="-lmpi  $LIBS"
5110 cat > conftest.$ac_ext <<_ACEOF
5111      program main
5112      call MPI_Init
5113      end
5114 _ACEOF
5115 if ac_fn_fc_try_link "$LINENO"; then :
5116  ac_cv_lib_mpi_MPI_Init=yes
5117 else
5118  ac_cv_lib_mpi_MPI_Init=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext \
5121    conftest$ac_exeext conftest.$ac_ext
5122 LIBS=$ac_check_lib_save_LIBS
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
5125 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
5126 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
5127  MPILIBS="-lmpi"
5128 fi
5129
5130 fi
5131 if test x = x"$MPILIBS"; then
5132        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
5133 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
5134 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
5135  $as_echo_n "(cached) " >&6
5136 else
5137  ac_check_lib_save_LIBS=$LIBS
5138 LIBS="-lmpich  $LIBS"
5139 cat > conftest.$ac_ext <<_ACEOF
5140      program main
5141      call MPI_Init
5142      end
5143 _ACEOF
5144 if ac_fn_fc_try_link "$LINENO"; then :
5145  ac_cv_lib_mpich_MPI_Init=yes
5146 else
5147  ac_cv_lib_mpich_MPI_Init=no
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext \
5150    conftest$ac_exeext conftest.$ac_ext
5151 LIBS=$ac_check_lib_save_LIBS
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
5154 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
5155 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
5156  MPILIBS="-lmpich"
5157 fi
5158
2997   fi
2998  
2999 < if test x != x"$MPILIBS"; then
5162 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
5163 < $as_echo_n "checking for mpif.h... " >&6; }
5164 <        cat > conftest.$ac_ext <<_ACEOF
5165 <      program main
5166 <      include 'mpif.h'
5167 <      end
5168 < _ACEOF
5169 < if ac_fn_fc_try_compile "$LINENO"; then :
5170 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171 < $as_echo "yes" >&6; }
5172 < else
5173 <  MPILIBS=""
5174 <                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 < $as_echo "no" >&6; }
5176 < fi
5177 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 < fi
2999 > if test "${DEBUG}"; then
3000  
3001 < FC="$ax_mpi_save_FC"
3001 > $as_echo "#define debug 1" >>confdefs.h
3002  
3003 +  msg="$msg, debug mode"
3004 + fi
3005  
3006  
3007 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
3008 < if test x = x"$MPILIBS"; then
3009 <        USE_MPI="no"
5187 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
5188 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
5189 <        :
3007 > # Check whether --enable-single was given.
3008 > if test "${enable_single+set}" = set; then :
3009 >  enableval=$enable_single; ok=$enableval
3010   else
3011 <        USE_MPI="yes"
5192 <        :
3011 >  ok=no
3012   fi
3013  
3014 <
3014 > # Check whether --enable-float was given.
3015 > if test "${enable_float+set}" = set; then :
3016 >  enableval=$enable_float; ok=$enableval
3017   fi
5197 if test $USE_MPI != no; then :
3018  
3019 <        CXX=$MPICXX
5200 <        CC=$MPICC
5201 <        FC=$MPIFC
3019 > if test "$ok" = "yes"; then
3020  
3021 < fi
3021 > $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
3022  
3023 +        USE_SINGLE_PRECISION=yes
3024  
3025 < # Checks for programs.
3025 > fi
3026 >
3027   ac_ext=cpp
3028   ac_cpp='$CXXCPP $CPPFLAGS'
3029   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5334 | Line 3154 | $as_echo "$ac_try_echo"; } >&5
3154   ... rest of stderr output deleted ...
3155           10q' conftest.err >conftest.er1
3156      cat conftest.er1 >&5
5337    rm -f conftest.er1 conftest.err
3157    fi
3158 +  rm -f conftest.er1 conftest.err
3159    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160    test $ac_status = 0; }
3161   done
3162  
3163 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 + /* end confdefs.h.  */
3165 +
3166 + int
3167 + main ()
3168 + {
3169 +
3170 +  ;
3171 +  return 0;
3172 + }
3173 + _ACEOF
3174 + ac_clean_files_save=$ac_clean_files
3175 + ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3176 + # Try to create an executable without -o first, disregard a.out.
3177 + # It will help us diagnose broken compilers, and finding out an intuition
3178 + # of exeext.
3179 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3180 + $as_echo_n "checking whether the C++ compiler works... " >&6; }
3181 + ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3182 +
3183 + # The possible output files:
3184 + ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185 +
3186 + ac_rmfiles=
3187 + for ac_file in $ac_files
3188 + do
3189 +  case $ac_file in
3190 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3191 +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 +  esac
3193 + done
3194 + rm -f $ac_rmfiles
3195 +
3196 + if { { ac_try="$ac_link_default"
3197 + case "(($ac_try" in
3198 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 +  *) ac_try_echo=$ac_try;;
3200 + esac
3201 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 + $as_echo "$ac_try_echo"; } >&5
3203 +  (eval "$ac_link_default") 2>&5
3204 +  ac_status=$?
3205 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 +  test $ac_status = 0; }; then :
3207 +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208 + # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209 + # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3210 + # so that the user can short-circuit this test for compilers unknown to
3211 + # Autoconf.
3212 + for ac_file in $ac_files ''
3213 + do
3214 +  test -f "$ac_file" || continue
3215 +  case $ac_file in
3216 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217 +        ;;
3218 +    [ab].out )
3219 +        # We found the default executable, but exeext='' is most
3220 +        # certainly right.
3221 +        break;;
3222 +    *.* )
3223 +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 +        then :; else
3225 +           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 +        fi
3227 +        # We set ac_cv_exeext here because the later test for it is not
3228 +        # safe: cross compilers may not add the suffix if given an `-o'
3229 +        # argument, so we may need to know it at that point already.
3230 +        # Even if this section looks crufty: it has the advantage of
3231 +        # actually working.
3232 +        break;;
3233 +    * )
3234 +        break;;
3235 +  esac
3236 + done
3237 + test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 +
3239 + else
3240 +  ac_file=''
3241 + fi
3242 + if test -z "$ac_file"; then :
3243 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 + $as_echo "no" >&6; }
3245 + $as_echo "$as_me: failed program was:" >&5
3246 + sed 's/^/| /' conftest.$ac_ext >&5
3247 +
3248 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 + { as_fn_set_status 77
3251 + as_fn_error "C++ compiler cannot create executables
3252 + See \`config.log' for more details." "$LINENO" 5; }; }
3253 + else
3254 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 + $as_echo "yes" >&6; }
3256 + fi
3257 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3258 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3259 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260 + $as_echo "$ac_file" >&6; }
3261 + ac_exeext=$ac_cv_exeext
3262 +
3263 + rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264 + ac_clean_files=$ac_clean_files_save
3265 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266 + $as_echo_n "checking for suffix of executables... " >&6; }
3267 + if { { ac_try="$ac_link"
3268 + case "(($ac_try" in
3269 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 +  *) ac_try_echo=$ac_try;;
3271 + esac
3272 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 + $as_echo "$ac_try_echo"; } >&5
3274 +  (eval "$ac_link") 2>&5
3275 +  ac_status=$?
3276 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 +  test $ac_status = 0; }; then :
3278 +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279 + # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3280 + # work properly (i.e., refer to `conftest.exe'), while it won't with
3281 + # `rm'.
3282 + for ac_file in conftest.exe conftest conftest.*; do
3283 +  test -f "$ac_file" || continue
3284 +  case $ac_file in
3285 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 +          break;;
3288 +    * ) break;;
3289 +  esac
3290 + done
3291 + else
3292 +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 + as_fn_error "cannot compute suffix of executables: cannot compile and link
3295 + See \`config.log' for more details." "$LINENO" 5; }
3296 + fi
3297 + rm -f conftest conftest$ac_cv_exeext
3298 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299 + $as_echo "$ac_cv_exeext" >&6; }
3300 +
3301 + rm -f conftest.$ac_ext
3302 + EXEEXT=$ac_cv_exeext
3303 + ac_exeext=$EXEEXT
3304 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 + /* end confdefs.h.  */
3306 + #include <stdio.h>
3307 + int
3308 + main ()
3309 + {
3310 + FILE *f = fopen ("conftest.out", "w");
3311 + return ferror (f) || fclose (f) != 0;
3312 +
3313 +  ;
3314 +  return 0;
3315 + }
3316 + _ACEOF
3317 + ac_clean_files="$ac_clean_files conftest.out"
3318 + # Check that the compiler produces executables we can run.  If not, either
3319 + # the compiler is broken, or we cross compile.
3320 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3322 + if test "$cross_compiling" != yes; then
3323 +  { { ac_try="$ac_link"
3324 + case "(($ac_try" in
3325 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 +  *) ac_try_echo=$ac_try;;
3327 + esac
3328 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 + $as_echo "$ac_try_echo"; } >&5
3330 +  (eval "$ac_link") 2>&5
3331 +  ac_status=$?
3332 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 +  test $ac_status = 0; }
3334 +  if { ac_try='./conftest$ac_cv_exeext'
3335 +  { { case "(($ac_try" in
3336 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 +  *) ac_try_echo=$ac_try;;
3338 + esac
3339 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 + $as_echo "$ac_try_echo"; } >&5
3341 +  (eval "$ac_try") 2>&5
3342 +  ac_status=$?
3343 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 +  test $ac_status = 0; }; }; then
3345 +    cross_compiling=no
3346 +  else
3347 +    if test "$cross_compiling" = maybe; then
3348 +        cross_compiling=yes
3349 +    else
3350 +        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 + as_fn_error "cannot run C++ compiled programs.
3353 + If you meant to cross compile, use \`--host'.
3354 + See \`config.log' for more details." "$LINENO" 5; }
3355 +    fi
3356 +  fi
3357 + fi
3358 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359 + $as_echo "$cross_compiling" >&6; }
3360 +
3361 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362 + ac_clean_files=$ac_clean_files_save
3363 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364 + $as_echo_n "checking for suffix of object files... " >&6; }
3365 + if test "${ac_cv_objext+set}" = set; then :
3366 +  $as_echo_n "(cached) " >&6
3367 + else
3368 +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 + /* end confdefs.h.  */
3370 +
3371 + int
3372 + main ()
3373 + {
3374 +
3375 +  ;
3376 +  return 0;
3377 + }
3378 + _ACEOF
3379 + rm -f conftest.o conftest.obj
3380 + if { { ac_try="$ac_compile"
3381 + case "(($ac_try" in
3382 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 +  *) ac_try_echo=$ac_try;;
3384 + esac
3385 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 + $as_echo "$ac_try_echo"; } >&5
3387 +  (eval "$ac_compile") 2>&5
3388 +  ac_status=$?
3389 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 +  test $ac_status = 0; }; then :
3391 +  for ac_file in conftest.o conftest.obj conftest.*; do
3392 +  test -f "$ac_file" || continue;
3393 +  case $ac_file in
3394 +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396 +       break;;
3397 +  esac
3398 + done
3399 + else
3400 +  $as_echo "$as_me: failed program was:" >&5
3401 + sed 's/^/| /' conftest.$ac_ext >&5
3402 +
3403 + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 + as_fn_error "cannot compute suffix of object files: cannot compile
3406 + See \`config.log' for more details." "$LINENO" 5; }
3407 + fi
3408 + rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 + fi
3410 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411 + $as_echo "$ac_cv_objext" >&6; }
3412 + OBJEXT=$ac_cv_objext
3413 + ac_objext=$OBJEXT
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3415   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3416   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
# Line 5455 | Line 3526 | fi
3526      CXXFLAGS=
3527    fi
3528   fi
3529 < ac_ext=${ac_fc_srcext-f}
3530 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3531 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3532 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3529 > ac_ext=c
3530 > ac_cpp='$CPP $CPPFLAGS'
3531 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534  
3535   ac_ext=c
3536   ac_cpp='$CPP $CPPFLAGS'
# Line 5590 | Line 3662 | $as_echo "$ac_try_echo"; } >&5
3662   ... rest of stderr output deleted ...
3663           10q' conftest.err >conftest.er1
3664      cat conftest.er1 >&5
5593    rm -f conftest.er1 conftest.err
3665    fi
3666 +  rm -f conftest.er1 conftest.err
3667    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668    test $ac_status = 0; }
3669   done
# Line 5802 | Line 3874 | fi
3874  
3875   fi
3876  
3877 < ac_ext=${ac_fc_srcext-f}
3878 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3879 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3880 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3877 > ac_ext=c
3878 > ac_cpp='$CPP $CPPFLAGS'
3879 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882  
3883   ac_ext=${ac_fc_srcext-f}
3884   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
# Line 5931 | Line 4004 | $as_echo "$ac_try_echo"; } >&5
4004   ... rest of stderr output deleted ...
4005           10q' conftest.err >conftest.er1
4006      cat conftest.er1 >&5
5934    rm -f conftest.er1 conftest.err
4007    fi
4008 +  rm -f conftest.er1 conftest.err
4009    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010    test $ac_status = 0; }
4011   done
# Line 6007 | Line 4080 | fi
4080    fi
4081   fi
4082  
4083 + ac_ext=c
4084 + ac_cpp='$CPP $CPPFLAGS'
4085 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 +
4089 +
4090 + save_CXX=$CXX
4091 + save_CC=$CC
4092 + save_FC=$FC
4093 + save_LIBS=$LIBS
4094 +
4095 + ac_ext=cpp
4096 + ac_cpp='$CXXCPP $CPPFLAGS'
4097 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4100 +
4101 +
4102 +
4103 +
4104 +
4105 +
4106 +
4107 +        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
4108 + do
4109 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 + set dummy $ac_prog; ac_word=$2
4111 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 + $as_echo_n "checking for $ac_word... " >&6; }
4113 + if test "${ac_cv_prog_MPICXX+set}" = set; then :
4114 +  $as_echo_n "(cached) " >&6
4115 + else
4116 +  if test -n "$MPICXX"; then
4117 +  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
4118 + else
4119 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 + for as_dir in $PATH
4121 + do
4122 +  IFS=$as_save_IFS
4123 +  test -z "$as_dir" && as_dir=.
4124 +    for ac_exec_ext in '' $ac_executable_extensions; do
4125 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 +    ac_cv_prog_MPICXX="$ac_prog"
4127 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 +    break 2
4129 +  fi
4130 + done
4131 +  done
4132 + IFS=$as_save_IFS
4133 +
4134 + fi
4135 + fi
4136 + MPICXX=$ac_cv_prog_MPICXX
4137 + if test -n "$MPICXX"; then
4138 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
4139 + $as_echo "$MPICXX" >&6; }
4140 + else
4141 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 + $as_echo "no" >&6; }
4143 + fi
4144 +
4145 +
4146 +  test -n "$MPICXX" && break
4147 + done
4148 + test -n "$MPICXX" || MPICXX="$CXX"
4149 +
4150 +        ax_mpi_save_CXX="$CXX"
4151 +        CXX="$MPICXX"
4152 +
4153 +
4154 +
4155 + if test x = x"$MPILIBS"; then
4156 +        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4157 + if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4158 +  MPILIBS=" "
4159 + fi
4160 +
4161 + fi
4162 +
4163 + if test x = x"$MPILIBS"; then
4164 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4165 + $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4166 + if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4167 +  $as_echo_n "(cached) " >&6
4168 + else
4169 +  ac_check_lib_save_LIBS=$LIBS
4170 + LIBS="-lmpi  $LIBS"
4171 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 + /* end confdefs.h.  */
4173 +
4174 + /* Override any GCC internal prototype to avoid an error.
4175 +   Use char because int might match the return type of a GCC
4176 +   builtin and then its argument prototype would still apply.  */
4177 + #ifdef __cplusplus
4178 + extern "C"
4179 + #endif
4180 + char MPI_Init ();
4181 + int
4182 + main ()
4183 + {
4184 + return MPI_Init ();
4185 +  ;
4186 +  return 0;
4187 + }
4188 + _ACEOF
4189 + if ac_fn_cxx_try_link "$LINENO"; then :
4190 +  ac_cv_lib_mpi_MPI_Init=yes
4191 + else
4192 +  ac_cv_lib_mpi_MPI_Init=no
4193 + fi
4194 + rm -f core conftest.err conftest.$ac_objext \
4195 +    conftest$ac_exeext conftest.$ac_ext
4196 + LIBS=$ac_check_lib_save_LIBS
4197 + fi
4198 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4199 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4200 + if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4201 +  MPILIBS="-lmpi"
4202 + fi
4203 +
4204 + fi
4205 + if test x = x"$MPILIBS"; then
4206 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4207 + $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4208 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4209 +  $as_echo_n "(cached) " >&6
4210 + else
4211 +  ac_check_lib_save_LIBS=$LIBS
4212 + LIBS="-lmpich  $LIBS"
4213 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 + /* end confdefs.h.  */
4215 +
4216 + /* Override any GCC internal prototype to avoid an error.
4217 +   Use char because int might match the return type of a GCC
4218 +   builtin and then its argument prototype would still apply.  */
4219 + #ifdef __cplusplus
4220 + extern "C"
4221 + #endif
4222 + char MPI_Init ();
4223 + int
4224 + main ()
4225 + {
4226 + return MPI_Init ();
4227 +  ;
4228 +  return 0;
4229 + }
4230 + _ACEOF
4231 + if ac_fn_cxx_try_link "$LINENO"; then :
4232 +  ac_cv_lib_mpich_MPI_Init=yes
4233 + else
4234 +  ac_cv_lib_mpich_MPI_Init=no
4235 + fi
4236 + rm -f core conftest.err conftest.$ac_objext \
4237 +    conftest$ac_exeext conftest.$ac_ext
4238 + LIBS=$ac_check_lib_save_LIBS
4239 + fi
4240 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4241 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4242 + if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4243 +  MPILIBS="-lmpich"
4244 + fi
4245 +
4246 + fi
4247 +
4248 + if test x != x"$MPILIBS"; then
4249 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4250 + $as_echo_n "checking for mpi.h... " >&6; }
4251 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 + /* end confdefs.h.  */
4253 + #include <mpi.h>
4254 + int
4255 + main ()
4256 + {
4257 +
4258 +  ;
4259 +  return 0;
4260 + }
4261 + _ACEOF
4262 + if ac_fn_cxx_try_compile "$LINENO"; then :
4263 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4264 + $as_echo "yes" >&6; }
4265 + else
4266 +  MPILIBS=""
4267 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 + $as_echo "no" >&6; }
4269 + fi
4270 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 + fi
4272 +
4273 + CXX="$ax_mpi_save_CXX"
4274 +
4275 +
4276 +
4277 + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4278 + if test x = x"$MPILIBS"; then
4279 +        USE_MPI="no"
4280 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4281 + $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4282 +        :
4283 + else
4284 +        USE_MPI="yes"
4285 +        :
4286 + fi
4287 +
4288 +
4289 + if test $USE_MPI != no; then :
4290 +
4291 + ac_ext=c
4292 + ac_cpp='$CPP $CPPFLAGS'
4293 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 +
4297 +
4298 +
4299 +
4300 +
4301 +
4302 +        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4303 + do
4304 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4305 + set dummy $ac_prog; ac_word=$2
4306 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 + $as_echo_n "checking for $ac_word... " >&6; }
4308 + if test "${ac_cv_prog_MPICC+set}" = set; then :
4309 +  $as_echo_n "(cached) " >&6
4310 + else
4311 +  if test -n "$MPICC"; then
4312 +  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4313 + else
4314 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 + for as_dir in $PATH
4316 + do
4317 +  IFS=$as_save_IFS
4318 +  test -z "$as_dir" && as_dir=.
4319 +    for ac_exec_ext in '' $ac_executable_extensions; do
4320 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 +    ac_cv_prog_MPICC="$ac_prog"
4322 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 +    break 2
4324 +  fi
4325 + done
4326 +  done
4327 + IFS=$as_save_IFS
4328 +
4329 + fi
4330 + fi
4331 + MPICC=$ac_cv_prog_MPICC
4332 + if test -n "$MPICC"; then
4333 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4334 + $as_echo "$MPICC" >&6; }
4335 + else
4336 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 + $as_echo "no" >&6; }
4338 + fi
4339 +
4340 +
4341 +  test -n "$MPICC" && break
4342 + done
4343 + test -n "$MPICC" || MPICC="$CC"
4344 +
4345 +        ax_mpi_save_CC="$CC"
4346 +        CC="$MPICC"
4347 +
4348 +
4349 +
4350 + if test x = x"$MPILIBS"; then
4351 +        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4352 + if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4353 +  MPILIBS=" "
4354 + fi
4355 +
4356 + fi
4357 +
4358 + if test x = x"$MPILIBS"; then
4359 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4360 + $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4361 + if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4362 +  $as_echo_n "(cached) " >&6
4363 + else
4364 +  ac_check_lib_save_LIBS=$LIBS
4365 + LIBS="-lmpi  $LIBS"
4366 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 + /* end confdefs.h.  */
4368 +
4369 + /* Override any GCC internal prototype to avoid an error.
4370 +   Use char because int might match the return type of a GCC
4371 +   builtin and then its argument prototype would still apply.  */
4372 + #ifdef __cplusplus
4373 + extern "C"
4374 + #endif
4375 + char MPI_Init ();
4376 + int
4377 + main ()
4378 + {
4379 + return MPI_Init ();
4380 +  ;
4381 +  return 0;
4382 + }
4383 + _ACEOF
4384 + if ac_fn_c_try_link "$LINENO"; then :
4385 +  ac_cv_lib_mpi_MPI_Init=yes
4386 + else
4387 +  ac_cv_lib_mpi_MPI_Init=no
4388 + fi
4389 + rm -f core conftest.err conftest.$ac_objext \
4390 +    conftest$ac_exeext conftest.$ac_ext
4391 + LIBS=$ac_check_lib_save_LIBS
4392 + fi
4393 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4394 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4395 + if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4396 +  MPILIBS="-lmpi"
4397 + fi
4398 +
4399 + fi
4400 + if test x = x"$MPILIBS"; then
4401 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4402 + $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4403 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4404 +  $as_echo_n "(cached) " >&6
4405 + else
4406 +  ac_check_lib_save_LIBS=$LIBS
4407 + LIBS="-lmpich  $LIBS"
4408 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 + /* end confdefs.h.  */
4410 +
4411 + /* Override any GCC internal prototype to avoid an error.
4412 +   Use char because int might match the return type of a GCC
4413 +   builtin and then its argument prototype would still apply.  */
4414 + #ifdef __cplusplus
4415 + extern "C"
4416 + #endif
4417 + char MPI_Init ();
4418 + int
4419 + main ()
4420 + {
4421 + return MPI_Init ();
4422 +  ;
4423 +  return 0;
4424 + }
4425 + _ACEOF
4426 + if ac_fn_c_try_link "$LINENO"; then :
4427 +  ac_cv_lib_mpich_MPI_Init=yes
4428 + else
4429 +  ac_cv_lib_mpich_MPI_Init=no
4430 + fi
4431 + rm -f core conftest.err conftest.$ac_objext \
4432 +    conftest$ac_exeext conftest.$ac_ext
4433 + LIBS=$ac_check_lib_save_LIBS
4434 + fi
4435 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4436 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4437 + if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4438 +  MPILIBS="-lmpich"
4439 + fi
4440 +
4441 + fi
4442 +
4443 + if test x != x"$MPILIBS"; then
4444 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4445 + $as_echo_n "checking for mpi.h... " >&6; }
4446 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 + /* end confdefs.h.  */
4448 + #include <mpi.h>
4449 + int
4450 + main ()
4451 + {
4452 +
4453 +  ;
4454 +  return 0;
4455 + }
4456 + _ACEOF
4457 + if ac_fn_c_try_compile "$LINENO"; then :
4458 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4459 + $as_echo "yes" >&6; }
4460 + else
4461 +  MPILIBS=""
4462 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 + $as_echo "no" >&6; }
4464 + fi
4465 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 + fi
4467 +
4468 + CC="$ax_mpi_save_CC"
4469 +
4470 +
4471 +
4472 + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4473 + if test x = x"$MPILIBS"; then
4474 +        USE_MPI="no"
4475 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4476 + $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4477 +        :
4478 + else
4479 +        USE_MPI="yes"
4480 +        :
4481 + fi
4482 +
4483 +
4484 + fi
4485 +
4486 + if test $USE_MPI != no; then :
4487 +
4488   ac_ext=${ac_fc_srcext-f}
4489   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4490   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4491   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4492  
4493 +
4494 +
4495 +
4496 +
4497 +
4498 +        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4499 + do
4500 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 + set dummy $ac_prog; ac_word=$2
4502 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 + $as_echo_n "checking for $ac_word... " >&6; }
4504 + if test "${ac_cv_prog_MPIFC+set}" = set; then :
4505 +  $as_echo_n "(cached) " >&6
4506 + else
4507 +  if test -n "$MPIFC"; then
4508 +  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4509 + else
4510 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 + for as_dir in $PATH
4512 + do
4513 +  IFS=$as_save_IFS
4514 +  test -z "$as_dir" && as_dir=.
4515 +    for ac_exec_ext in '' $ac_executable_extensions; do
4516 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 +    ac_cv_prog_MPIFC="$ac_prog"
4518 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 +    break 2
4520 +  fi
4521 + done
4522 +  done
4523 + IFS=$as_save_IFS
4524 +
4525 + fi
4526 + fi
4527 + MPIFC=$ac_cv_prog_MPIFC
4528 + if test -n "$MPIFC"; then
4529 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4530 + $as_echo "$MPIFC" >&6; }
4531 + else
4532 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 + $as_echo "no" >&6; }
4534 + fi
4535 +
4536 +
4537 +  test -n "$MPIFC" && break
4538 + done
4539 + test -n "$MPIFC" || MPIFC="$FC"
4540 +
4541 +        ax_mpi_save_FC="$FC"
4542 +        FC="$MPIFC"
4543 +
4544 +
4545 +
4546 + if test x = x"$MPILIBS"; then
4547 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4548 + $as_echo_n "checking for MPI_Init... " >&6; }
4549 +                        cat > conftest.$ac_ext <<_ACEOF
4550 +      program main
4551 +      call MPI_Init
4552 +      end
4553 + _ACEOF
4554 + if ac_fn_fc_try_link "$LINENO"; then :
4555 +  MPILIBS=" "
4556 +                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 + $as_echo "yes" >&6; }
4558 + else
4559 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 + $as_echo "no" >&6; }
4561 + fi
4562 + rm -f core conftest.err conftest.$ac_objext \
4563 +    conftest$ac_exeext conftest.$ac_ext
4564 + fi
4565 +
4566 +        if test x = x"$MPILIBS"; then
4567 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4568 + $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4569 + if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
4570 +  $as_echo_n "(cached) " >&6
4571 + else
4572 +  ac_check_lib_save_LIBS=$LIBS
4573 + LIBS="-lfmpi  $LIBS"
4574 + cat > conftest.$ac_ext <<_ACEOF
4575 +      program main
4576 +      call MPI_Init
4577 +      end
4578 + _ACEOF
4579 + if ac_fn_fc_try_link "$LINENO"; then :
4580 +  ac_cv_lib_fmpi_MPI_Init=yes
4581 + else
4582 +  ac_cv_lib_fmpi_MPI_Init=no
4583 + fi
4584 + rm -f core conftest.err conftest.$ac_objext \
4585 +    conftest$ac_exeext conftest.$ac_ext
4586 + LIBS=$ac_check_lib_save_LIBS
4587 + fi
4588 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4589 + $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4590 + if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
4591 +  MPILIBS="-lfmpi"
4592 + fi
4593 +
4594 +        fi
4595 +        if test x = x"$MPILIBS"; then
4596 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4597 + $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4598 + if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
4599 +  $as_echo_n "(cached) " >&6
4600 + else
4601 +  ac_check_lib_save_LIBS=$LIBS
4602 + LIBS="-lmpichf90  $LIBS"
4603 + cat > conftest.$ac_ext <<_ACEOF
4604 +      program main
4605 +      call MPI_Init
4606 +      end
4607 + _ACEOF
4608 + if ac_fn_fc_try_link "$LINENO"; then :
4609 +  ac_cv_lib_mpichf90_MPI_Init=yes
4610 + else
4611 +  ac_cv_lib_mpichf90_MPI_Init=no
4612 + fi
4613 + rm -f core conftest.err conftest.$ac_objext \
4614 +    conftest$ac_exeext conftest.$ac_ext
4615 + LIBS=$ac_check_lib_save_LIBS
4616 + fi
4617 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4618 + $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4619 + if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
4620 +  MPILIBS="-lmpichf90"
4621 + fi
4622 +
4623 +        fi
4624 +
4625 + if test x = x"$MPILIBS"; then
4626 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4627 + $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4628 + if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4629 +  $as_echo_n "(cached) " >&6
4630 + else
4631 +  ac_check_lib_save_LIBS=$LIBS
4632 + LIBS="-lmpi  $LIBS"
4633 + cat > conftest.$ac_ext <<_ACEOF
4634 +      program main
4635 +      call MPI_Init
4636 +      end
4637 + _ACEOF
4638 + if ac_fn_fc_try_link "$LINENO"; then :
4639 +  ac_cv_lib_mpi_MPI_Init=yes
4640 + else
4641 +  ac_cv_lib_mpi_MPI_Init=no
4642 + fi
4643 + rm -f core conftest.err conftest.$ac_objext \
4644 +    conftest$ac_exeext conftest.$ac_ext
4645 + LIBS=$ac_check_lib_save_LIBS
4646 + fi
4647 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4648 + $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4649 + if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4650 +  MPILIBS="-lmpi"
4651 + fi
4652 +
4653 + fi
4654 + if test x = x"$MPILIBS"; then
4655 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4656 + $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4657 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4658 +  $as_echo_n "(cached) " >&6
4659 + else
4660 +  ac_check_lib_save_LIBS=$LIBS
4661 + LIBS="-lmpich  $LIBS"
4662 + cat > conftest.$ac_ext <<_ACEOF
4663 +      program main
4664 +      call MPI_Init
4665 +      end
4666 + _ACEOF
4667 + if ac_fn_fc_try_link "$LINENO"; then :
4668 +  ac_cv_lib_mpich_MPI_Init=yes
4669 + else
4670 +  ac_cv_lib_mpich_MPI_Init=no
4671 + fi
4672 + rm -f core conftest.err conftest.$ac_objext \
4673 +    conftest$ac_exeext conftest.$ac_ext
4674 + LIBS=$ac_check_lib_save_LIBS
4675 + fi
4676 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4677 + $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4678 + if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4679 +  MPILIBS="-lmpich"
4680 + fi
4681 +
4682 + fi
4683 +
4684 + if test x != x"$MPILIBS"; then
4685 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4686 + $as_echo_n "checking for mpif.h... " >&6; }
4687 +        cat > conftest.$ac_ext <<_ACEOF
4688 +      program main
4689 +      include 'mpif.h'
4690 +      end
4691 + _ACEOF
4692 + if ac_fn_fc_try_compile "$LINENO"; then :
4693 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694 + $as_echo "yes" >&6; }
4695 + else
4696 +  MPILIBS=""
4697 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 + $as_echo "no" >&6; }
4699 + fi
4700 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 + fi
4702 +
4703 + FC="$ax_mpi_save_FC"
4704 +
4705 +
4706 +
4707 + # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4708 + if test x = x"$MPILIBS"; then
4709 +        USE_MPI="no"
4710 +       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4711 + $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4712 +        :
4713 + else
4714 +        USE_MPI="yes"
4715 +        :
4716 + fi
4717 +
4718 +
4719 + fi
4720 + if test $USE_MPI != no; then :
4721 +
4722 +        CXX=$MPICXX
4723 +        CC=$MPICC
4724 +        FC=$MPIFC
4725 +        LIBS="$MPILIBS $LIBS"
4726 +
4727 + else
4728 +
4729 +        CXX=$save_CXX
4730 +        CC=$save_CC
4731 +        FC=$save_FC
4732 +        LIBS=$save_LIBS
4733 +
4734 +
4735 + fi
4736 +
4737 +
4738 + # Checks for programs.
4739   ac_ext=c
4740   ac_cpp='$CPP $CPPFLAGS'
4741   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 6629 | Line 5353 | esac
5353     x/*) ;;
5354     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5355   esac
5356 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5356 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
5357   # Extract the first word of "ar", so it can be a program name with args.
5358   set dummy ar; ac_word=$2
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
# Line 8667 | Line 7391 | $as_echo "failed" >&6; }
7391                  echo ""
7392                  echo "*********************************************************"
7393                  echo "* WARNING: Could not find a working zlib installation   *"
7394 <                echo "* If you need OOPSE to be able to deal with compressed  *"
7394 >                echo "* If you need OpenMD to be able to deal with compressed *"
7395                  echo "* trajectory dump files be sure to specify a valid zlib *"
7396                  echo "* installation with --with-zlib=DIR                     *"
7397                  echo "*                                                       *"
7398 <                echo "* OOPSE will still work without zlib installed.         *"
7398 >                echo "* OpenMD will still work without zlib installed.        *"
7399                  echo "*********************************************************"
7400                  echo ""
7401          fi
# Line 8943 | Line 7667 | $as_echo "failed" >&6; }
7667              echo "* compute undulation spectra, be sure to specify a      *"
7668              echo "* valid fftw installation with --with-fftw=DIR          *"
7669              echo "*                                                       *"
7670 <            echo "* OOPSE will still work without fftw installed.         *"
7670 >            echo "* OpenMD will still work without fftw installed.        *"
7671              echo "*********************************************************"
7672              echo ""
7673            fi
# Line 9090 | Line 7814 | $as_echo "$as_me: WARNING: Could not find a working qh
7814   $as_echo "$as_me: WARNING: " >&2;}
7815             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
7816   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
7817 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
7818 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
7817 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
7818 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
7819             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
7820   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
7821             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
7822   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
7823             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
7824   $as_echo "$as_me: WARNING: " >&2;}
7825 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
7826 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
7825 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
7826 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
7827             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
7828   $as_echo "$as_me: WARNING: " >&2;}
7829          fi
# Line 9373 | Line 8097 | $as_echo "failed" >&6; }
8097                  echo ""
8098                  echo "*********************************************************"
8099                  echo "* WARNING: Could not find a working openbabel-2.x       *"
8100 <                echo "* installation If you need OOPSE to be able to convert  *"
8100 >                echo "* installation If you need OpenMD to be able to convert *"
8101                  echo "* xyz or pdb files you need to specify a valid          *"
8102                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8103                  echo "*                                                       *"
8104 <                echo "* OOPSE will still work without openbabel installed.    *"
8104 >                echo "* OpenMD will still work without openbabel installed.   *"
8105                  echo "*********************************************************"
8106                  echo ""
8107          fi
# Line 11297 | Line 10021 | ac_log="
10021   # report actual input values of CONFIG_FILES etc. instead of their
10022   # values after options handling.
10023   ac_log="
10024 < This file was extended by OOPSE $as_me 4.0, which was
10025 < generated by GNU Autoconf 2.64.  Invocation command line was
10024 > This file was extended by OpenMD $as_me 1.0, which was
10025 > generated by GNU Autoconf 2.65.  Invocation command line was
10026  
10027    CONFIG_FILES    = $CONFIG_FILES
10028    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11337 | Line 10061 | Usage: $0 [OPTION]... [TAG]...
10061  
10062    -h, --help       print this help, then exit
10063    -V, --version    print version number and configuration settings, then exit
10064 +      --config     print configuration, then exit
10065    -q, --quiet, --silent
10066                     do not print progress messages
10067    -d, --debug      don't remove temporary files
# Line 11356 | Line 10081 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10081  
10082   _ACEOF
10083   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10084 + ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10085   ac_cs_version="\\
10086 < OOPSE config.status 4.0
10087 < configured by $0, generated by GNU Autoconf 2.64,
10088 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10086 > OpenMD config.status 1.0
10087 > configured by $0, generated by GNU Autoconf 2.65,
10088 >  with options \\"\$ac_cs_config\\"
10089  
10090   Copyright (C) 2009 Free Software Foundation, Inc.
10091   This config.status script is free software; the Free Software Foundation
# Line 11395 | Line 10121 | do
10121      ac_cs_recheck=: ;;
10122    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10123      $as_echo "$ac_cs_version"; exit ;;
10124 +  --config | --confi | --conf | --con | --co | --c )
10125 +    $as_echo "$ac_cs_config"; exit ;;
10126    --debug | --debu | --deb | --de | --d | -d )
10127      debug=: ;;
10128    --file | --fil | --fi | --f )
# Line 11580 | Line 10308 | h
10308   t delim
10309   :nl
10310   h
10311 < s/\(.\{148\}\).*/\1/
10311 > s/\(.\{148\}\)..*/\1/
10312   t more1
10313   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10314   p
# Line 11594 | Line 10322 | h
10322   t nl
10323   :delim
10324   h
10325 < s/\(.\{148\}\).*/\1/
10325 > s/\(.\{148\}\)..*/\1/
10326   t more2
10327   s/["\\]/\\&/g; s/^/"/; s/$/"/
10328   p

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines