| 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. |
| 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, |
| 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="\ |
| 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 |
| 607 |
|
DOC |
| 608 |
|
DOT |
| 609 |
|
DOXYGEN |
| 607 |
– |
USE_CGAL |
| 608 |
– |
CGAL_LIBS |
| 609 |
– |
CGAL_LDFLAGS |
| 610 |
– |
CGAL_CPPFLAGS |
| 611 |
– |
CGAL_CXXFLAGS |
| 612 |
– |
CGAL_MAKEFILE |
| 610 |
|
POW_LIB |
| 611 |
|
LIBOBJS |
| 612 |
|
USE_OPENBABEL |
| 613 |
|
OPENBABEL_LIB |
| 614 |
|
OPENBABEL_LIB_DIR |
| 615 |
|
OPENBABEL_INC_DIR |
| 619 |
– |
CXXCPP |
| 616 |
|
USE_QHULL |
| 617 |
|
QHULL |
| 618 |
|
QHULL_LIB_DIR |
| 619 |
|
QHULL_INC_DIR |
| 620 |
+ |
CXXCPP |
| 621 |
|
FFTW_LIBS |
| 622 |
|
FFTW_LIB_DIR |
| 623 |
|
FFTW_INC_DIR |
| 650 |
|
CPP |
| 651 |
|
USE_MPI |
| 652 |
|
MPIFC |
| 653 |
+ |
MPICC |
| 654 |
+ |
MPILIBS |
| 655 |
+ |
MPICXX |
| 656 |
+ |
LIBDL |
| 657 |
|
ac_ct_FC |
| 658 |
|
FCFLAGS |
| 659 |
|
FC |
| 659 |
– |
MPICC |
| 660 |
|
ac_ct_CC |
| 661 |
|
CFLAGS |
| 662 |
|
CC |
| 663 |
– |
MPILIBS |
| 664 |
– |
MPICXX |
| 663 |
|
OBJEXT |
| 664 |
|
EXEEXT |
| 665 |
|
ac_ct_CXX |
| 667 |
|
LDFLAGS |
| 668 |
|
CXXFLAGS |
| 669 |
|
CXX |
| 672 |
– |
ac_fc_path |
| 673 |
– |
ac_fc_set |
| 674 |
– |
ac_cxx_path |
| 675 |
– |
ac_cxx_set |
| 676 |
– |
ac_cc_path |
| 677 |
– |
ac_cc_set |
| 670 |
|
USE_SINGLE_PRECISION |
| 671 |
|
debug |
| 672 |
|
PROGNAME |
| 719 |
|
ac_subst_files='' |
| 720 |
|
ac_user_opts=' |
| 721 |
|
enable_option_checking |
| 722 |
< |
enable_oopse_home |
| 722 |
> |
enable_openmd_home |
| 723 |
|
enable_debug |
| 724 |
|
enable_single |
| 725 |
|
enable_float |
| 728 |
|
with_fftw |
| 729 |
|
with_qhull |
| 730 |
|
with_openbabel |
| 739 |
– |
with_cgalmakefile |
| 731 |
|
enable_doxygen |
| 732 |
|
enable_dot |
| 733 |
|
enable_html_docs |
| 742 |
|
LIBS |
| 743 |
|
CPPFLAGS |
| 744 |
|
CCC |
| 754 |
– |
MPICXX |
| 745 |
|
CC |
| 746 |
|
CFLAGS |
| 757 |
– |
MPICC |
| 747 |
|
FC |
| 748 |
|
FCFLAGS |
| 749 |
+ |
MPICXX |
| 750 |
+ |
MPICC |
| 751 |
|
MPIFC |
| 752 |
|
CPP |
| 753 |
|
CXXCPP' |
| 1292 |
|
# Omit some internal or obsolete options to make the list less imposing. |
| 1293 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1294 |
|
cat <<_ACEOF |
| 1295 |
< |
\`configure' configures OOPSE 4.0 to adapt to many kinds of systems. |
| 1295 |
> |
\`configure' configures OpenMD 1.0 to adapt to many kinds of systems. |
| 1296 |
|
|
| 1297 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1298 |
|
|
| 1340 |
|
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1341 |
|
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1342 |
|
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1343 |
< |
--docdir=DIR documentation root [DATAROOTDIR/doc/oopse] |
| 1343 |
> |
--docdir=DIR documentation root [DATAROOTDIR/doc/openmd] |
| 1344 |
|
--htmldir=DIR html documentation [DOCDIR] |
| 1345 |
|
--dvidir=DIR dvi documentation [DOCDIR] |
| 1346 |
|
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1357 |
|
|
| 1358 |
|
if test -n "$ac_init_help"; then |
| 1359 |
|
case $ac_init_help in |
| 1360 |
< |
short | recursive ) echo "Configuration of OOPSE 4.0:";; |
| 1360 |
> |
short | recursive ) echo "Configuration of OpenMD 1.0:";; |
| 1361 |
|
esac |
| 1362 |
|
cat <<\_ACEOF |
| 1363 |
|
|
| 1365 |
|
--disable-option-checking ignore unrecognized --enable/--with options |
| 1366 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1367 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1368 |
< |
--enable-oopse-home=DIR define oopse home dir PREFIX/oopse |
| 1369 |
< |
--enable-debug Compile OOPSE in debug mode |
| 1370 |
< |
--enable-single compile OOPSE in single precision |
| 1368 |
> |
--enable-openmd-home=DIR define OpenMD home dir PREFIX/openmd |
| 1369 |
> |
--enable-debug Compile OpenMD in debug mode |
| 1370 |
> |
--enable-single compile OpenMD in single precision |
| 1371 |
|
--enable-float synonym for --enable-single |
| 1372 |
|
--enable-doxygen enable documentation generation with doxygen (auto) |
| 1373 |
|
--enable-dot use 'dot' to generate graphs in doxygen (auto) |
| 1388 |
|
--with-openbabel=DIR root directory path of openbabel-2.x installation |
| 1389 |
|
(defaults to /usr/local or /usr if not found in |
| 1390 |
|
/usr/local) |
| 1400 |
– |
--with-cgalmakefile=makefile |
| 1401 |
– |
Use the following CGAL makefile |
| 1391 |
|
|
| 1392 |
|
Some influential environment variables: |
| 1393 |
|
CXX C++ compiler command |
| 1395 |
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1396 |
|
nonstandard directory <lib dir> |
| 1397 |
|
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1398 |
< |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1398 |
> |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1399 |
|
you have headers in a nonstandard directory <include dir> |
| 1411 |
– |
MPICXX MPI C++ compiler command |
| 1400 |
|
CC C compiler command |
| 1401 |
|
CFLAGS C compiler flags |
| 1414 |
– |
MPICC MPI C compiler command |
| 1402 |
|
FC Fortran compiler command |
| 1403 |
|
FCFLAGS Fortran compiler flags |
| 1404 |
+ |
MPICXX MPI C++ compiler command |
| 1405 |
+ |
MPICC MPI C compiler command |
| 1406 |
|
MPIFC MPI Fortran compiler command |
| 1407 |
|
CPP C preprocessor |
| 1408 |
|
CXXCPP C++ preprocessor |
| 1473 |
|
test -n "$ac_init_help" && exit $ac_status |
| 1474 |
|
if $ac_init_version; then |
| 1475 |
|
cat <<\_ACEOF |
| 1476 |
< |
OOPSE configure 4.0 |
| 1477 |
< |
generated by GNU Autoconf 2.64 |
| 1476 |
> |
OpenMD configure 1.0 |
| 1477 |
> |
generated by GNU Autoconf 2.65 |
| 1478 |
|
|
| 1479 |
|
Copyright (C) 2009 Free Software Foundation, Inc. |
| 1480 |
|
This configure script is free software; the Free Software Foundation |
| 1521 |
|
ac_retval=1 |
| 1522 |
|
fi |
| 1523 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1524 |
< |
return $ac_retval |
| 1524 |
> |
as_fn_set_status $ac_retval |
| 1525 |
|
|
| 1526 |
|
} # ac_fn_cxx_try_compile |
| 1527 |
|
|
| 1528 |
+ |
# ac_fn_c_try_compile LINENO |
| 1529 |
+ |
# -------------------------- |
| 1530 |
+ |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1531 |
+ |
ac_fn_c_try_compile () |
| 1532 |
+ |
{ |
| 1533 |
+ |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1534 |
+ |
rm -f conftest.$ac_objext |
| 1535 |
+ |
if { { ac_try="$ac_compile" |
| 1536 |
+ |
case "(($ac_try" in |
| 1537 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1538 |
+ |
*) ac_try_echo=$ac_try;; |
| 1539 |
+ |
esac |
| 1540 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1541 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 1542 |
+ |
(eval "$ac_compile") 2>conftest.err |
| 1543 |
+ |
ac_status=$? |
| 1544 |
+ |
if test -s conftest.err; then |
| 1545 |
+ |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1546 |
+ |
cat conftest.er1 >&5 |
| 1547 |
+ |
mv -f conftest.er1 conftest.err |
| 1548 |
+ |
fi |
| 1549 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1550 |
+ |
test $ac_status = 0; } && { |
| 1551 |
+ |
test -z "$ac_c_werror_flag" || |
| 1552 |
+ |
test ! -s conftest.err |
| 1553 |
+ |
} && test -s conftest.$ac_objext; then : |
| 1554 |
+ |
ac_retval=0 |
| 1555 |
+ |
else |
| 1556 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
| 1557 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1558 |
+ |
|
| 1559 |
+ |
ac_retval=1 |
| 1560 |
+ |
fi |
| 1561 |
+ |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1562 |
+ |
as_fn_set_status $ac_retval |
| 1563 |
+ |
|
| 1564 |
+ |
} # ac_fn_c_try_compile |
| 1565 |
+ |
|
| 1566 |
+ |
# ac_fn_fc_try_compile LINENO |
| 1567 |
+ |
# --------------------------- |
| 1568 |
+ |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1569 |
+ |
ac_fn_fc_try_compile () |
| 1570 |
+ |
{ |
| 1571 |
+ |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1572 |
+ |
rm -f conftest.$ac_objext |
| 1573 |
+ |
if { { ac_try="$ac_compile" |
| 1574 |
+ |
case "(($ac_try" in |
| 1575 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1576 |
+ |
*) ac_try_echo=$ac_try;; |
| 1577 |
+ |
esac |
| 1578 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1579 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 1580 |
+ |
(eval "$ac_compile") 2>conftest.err |
| 1581 |
+ |
ac_status=$? |
| 1582 |
+ |
if test -s conftest.err; then |
| 1583 |
+ |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1584 |
+ |
cat conftest.er1 >&5 |
| 1585 |
+ |
mv -f conftest.er1 conftest.err |
| 1586 |
+ |
fi |
| 1587 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1588 |
+ |
test $ac_status = 0; } && { |
| 1589 |
+ |
test -z "$ac_fc_werror_flag" || |
| 1590 |
+ |
test ! -s conftest.err |
| 1591 |
+ |
} && test -s conftest.$ac_objext; then : |
| 1592 |
+ |
ac_retval=0 |
| 1593 |
+ |
else |
| 1594 |
+ |
$as_echo "$as_me: failed program was:" >&5 |
| 1595 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1596 |
+ |
|
| 1597 |
+ |
ac_retval=1 |
| 1598 |
+ |
fi |
| 1599 |
+ |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1600 |
+ |
as_fn_set_status $ac_retval |
| 1601 |
+ |
|
| 1602 |
+ |
} # ac_fn_fc_try_compile |
| 1603 |
+ |
|
| 1604 |
|
# ac_fn_cxx_try_link LINENO |
| 1605 |
|
# ------------------------- |
| 1606 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1643 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1644 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1645 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1646 |
< |
return $ac_retval |
| 1646 |
> |
as_fn_set_status $ac_retval |
| 1647 |
|
|
| 1648 |
|
} # ac_fn_cxx_try_link |
| 1649 |
|
|
| 1714 |
|
|
| 1715 |
|
} # ac_fn_cxx_check_func |
| 1716 |
|
|
| 1652 |
– |
# ac_fn_c_try_compile LINENO |
| 1653 |
– |
# -------------------------- |
| 1654 |
– |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1655 |
– |
ac_fn_c_try_compile () |
| 1656 |
– |
{ |
| 1657 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1658 |
– |
rm -f conftest.$ac_objext |
| 1659 |
– |
if { { ac_try="$ac_compile" |
| 1660 |
– |
case "(($ac_try" in |
| 1661 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1662 |
– |
*) ac_try_echo=$ac_try;; |
| 1663 |
– |
esac |
| 1664 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1665 |
– |
$as_echo "$ac_try_echo"; } >&5 |
| 1666 |
– |
(eval "$ac_compile") 2>conftest.err |
| 1667 |
– |
ac_status=$? |
| 1668 |
– |
if test -s conftest.err; then |
| 1669 |
– |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1670 |
– |
cat conftest.er1 >&5 |
| 1671 |
– |
mv -f conftest.er1 conftest.err |
| 1672 |
– |
fi |
| 1673 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1674 |
– |
test $ac_status = 0; } && { |
| 1675 |
– |
test -z "$ac_c_werror_flag" || |
| 1676 |
– |
test ! -s conftest.err |
| 1677 |
– |
} && test -s conftest.$ac_objext; then : |
| 1678 |
– |
ac_retval=0 |
| 1679 |
– |
else |
| 1680 |
– |
$as_echo "$as_me: failed program was:" >&5 |
| 1681 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1682 |
– |
|
| 1683 |
– |
ac_retval=1 |
| 1684 |
– |
fi |
| 1685 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1686 |
– |
return $ac_retval |
| 1687 |
– |
|
| 1688 |
– |
} # ac_fn_c_try_compile |
| 1689 |
– |
|
| 1717 |
|
# ac_fn_c_try_link LINENO |
| 1718 |
|
# ----------------------- |
| 1719 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1756 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1757 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1758 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1759 |
< |
return $ac_retval |
| 1759 |
> |
as_fn_set_status $ac_retval |
| 1760 |
|
|
| 1761 |
|
} # ac_fn_c_try_link |
| 1762 |
|
|
| 1826 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1827 |
|
|
| 1828 |
|
} # ac_fn_c_check_func |
| 1802 |
– |
|
| 1803 |
– |
# ac_fn_fc_try_compile LINENO |
| 1804 |
– |
# --------------------------- |
| 1805 |
– |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1806 |
– |
ac_fn_fc_try_compile () |
| 1807 |
– |
{ |
| 1808 |
– |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1809 |
– |
rm -f conftest.$ac_objext |
| 1810 |
– |
if { { ac_try="$ac_compile" |
| 1811 |
– |
case "(($ac_try" in |
| 1812 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1813 |
– |
*) ac_try_echo=$ac_try;; |
| 1814 |
– |
esac |
| 1815 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1816 |
– |
$as_echo "$ac_try_echo"; } >&5 |
| 1817 |
– |
(eval "$ac_compile") 2>conftest.err |
| 1818 |
– |
ac_status=$? |
| 1819 |
– |
if test -s conftest.err; then |
| 1820 |
– |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1821 |
– |
cat conftest.er1 >&5 |
| 1822 |
– |
mv -f conftest.er1 conftest.err |
| 1823 |
– |
fi |
| 1824 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1825 |
– |
test $ac_status = 0; } && { |
| 1826 |
– |
test -z "$ac_fc_werror_flag" || |
| 1827 |
– |
test ! -s conftest.err |
| 1828 |
– |
} && test -s conftest.$ac_objext; then : |
| 1829 |
– |
ac_retval=0 |
| 1830 |
– |
else |
| 1831 |
– |
$as_echo "$as_me: failed program was:" >&5 |
| 1832 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1829 |
|
|
| 1834 |
– |
ac_retval=1 |
| 1835 |
– |
fi |
| 1836 |
– |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1837 |
– |
return $ac_retval |
| 1838 |
– |
|
| 1839 |
– |
} # ac_fn_fc_try_compile |
| 1840 |
– |
|
| 1830 |
|
# ac_fn_fc_try_link LINENO |
| 1831 |
|
# ------------------------ |
| 1832 |
|
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1869 |
|
# left behind by Apple's compiler. We do this before executing the actions. |
| 1870 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1871 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1872 |
< |
return $ac_retval |
| 1872 |
> |
as_fn_set_status $ac_retval |
| 1873 |
|
|
| 1874 |
|
} # ac_fn_fc_try_link |
| 1875 |
|
|
| 1906 |
|
ac_retval=1 |
| 1907 |
|
fi |
| 1908 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1909 |
< |
return $ac_retval |
| 1909 |
> |
as_fn_set_status $ac_retval |
| 1910 |
|
|
| 1911 |
|
} # ac_fn_c_try_cpp |
| 1912 |
|
|
| 2041 |
|
fi |
| 2042 |
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2043 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2044 |
< |
return $ac_retval |
| 2044 |
> |
as_fn_set_status $ac_retval |
| 2045 |
|
|
| 2046 |
|
} # ac_fn_c_try_run |
| 2047 |
|
|
| 2109 |
|
ac_retval=1 |
| 2110 |
|
fi |
| 2111 |
|
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2112 |
< |
return $ac_retval |
| 2112 |
> |
as_fn_set_status $ac_retval |
| 2113 |
|
|
| 2114 |
|
} # ac_fn_cxx_try_cpp |
| 2115 |
|
|
| 2279 |
|
This file contains any messages produced by compilers while |
| 2280 |
|
running configure, to aid debugging if configure makes a mistake. |
| 2281 |
|
|
| 2282 |
< |
It was created by OOPSE $as_me 4.0, which was |
| 2283 |
< |
generated by GNU Autoconf 2.64. Invocation command line was |
| 2282 |
> |
It was created by OpenMD $as_me 1.0, which was |
| 2283 |
> |
generated by GNU Autoconf 2.65. Invocation command line was |
| 2284 |
|
|
| 2285 |
|
$ $0 $@ |
| 2286 |
|
|
| 2533 |
|
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2534 |
|
do |
| 2535 |
|
test "x$ac_site_file" = xNONE && continue |
| 2536 |
< |
if test -r "$ac_site_file"; then |
| 2536 |
> |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2537 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2538 |
|
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2539 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
| 2542 |
|
done |
| 2543 |
|
|
| 2544 |
|
if test -r "$cache_file"; then |
| 2545 |
< |
# Some versions of bash will fail to source /dev/null (special |
| 2546 |
< |
# files actually), so we avoid doing that. |
| 2547 |
< |
if test -f "$cache_file"; then |
| 2545 |
> |
# Some versions of bash will fail to source /dev/null (special files |
| 2546 |
> |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2547 |
> |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2548 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2549 |
|
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2550 |
|
case $cache_file in |
| 2891 |
|
|
| 2892 |
|
|
| 2893 |
|
|
| 2905 |
– |
|
| 2906 |
– |
|
| 2907 |
– |
|
| 2908 |
– |
|
| 2909 |
– |
|
| 2910 |
– |
|
| 2911 |
– |
|
| 2912 |
– |
|
| 2913 |
– |
|
| 2914 |
– |
|
| 2915 |
– |
|
| 2916 |
– |
|
| 2917 |
– |
|
| 2918 |
– |
|
| 2919 |
– |
|
| 2920 |
– |
|
| 2921 |
– |
|
| 2922 |
– |
|
| 2923 |
– |
|
| 2924 |
– |
|
| 2925 |
– |
|
| 2926 |
– |
# This is taken from http://autoqt.sourceforge.net/ |
| 2927 |
– |
# Copyright (c) 2002, Geoffrey Wossum |
| 2928 |
– |
# All rights reserved. |
| 2929 |
– |
|
| 2930 |
– |
# Redistribution and use in source and binary forms, with or without |
| 2931 |
– |
# modification, are permitted provided that the following conditions are |
| 2932 |
– |
# met: |
| 2933 |
– |
|
| 2934 |
– |
# - Redistributions of source code must retain the above copyright notice, |
| 2935 |
– |
# this list of conditions and the following disclaimer. |
| 2936 |
– |
|
| 2937 |
– |
# - Redistributions in binary form must reproduce the above copyright |
| 2938 |
– |
# notice, this list of conditions and the following disclaimer in the |
| 2939 |
– |
# documentation and/or other materials provided with the distribution. |
| 2940 |
– |
|
| 2941 |
– |
# - Neither the name of Geoffrey Wossum nor the names of its |
| 2942 |
– |
# contributors may be used to endorse or promote products derived from |
| 2943 |
– |
# this software without specific prior written permission. |
| 2944 |
– |
|
| 2945 |
– |
|
| 2946 |
– |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 2947 |
– |
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
| 2948 |
– |
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 2949 |
– |
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
| 2950 |
– |
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 2951 |
– |
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 2952 |
– |
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
| 2953 |
– |
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 2954 |
– |
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 2955 |
– |
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
| 2956 |
– |
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 2957 |
– |
|
| 2958 |
– |
|
| 2959 |
– |
# Check for Qt compiler flags, linker flags, and binary packages |
| 2960 |
– |
|
| 2961 |
– |
|
| 2962 |
– |
|
| 2894 |
|
# who am i |
| 2895 |
|
# Make sure we can run config.sub. |
| 2896 |
|
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2967 |
|
|
| 2968 |
|
|
| 2969 |
|
# set program name |
| 2970 |
< |
PROGNAME="oopse" |
| 2970 |
> |
PROGNAME="openmd" |
| 2971 |
|
|
| 2972 |
|
|
| 2973 |
|
|
| 2974 |
|
|
| 2975 |
|
OBJEXT=".$OBJEXT" |
| 2976 |
|
|
| 2977 |
< |
OOPSE=oopse |
| 2977 |
> |
OPENMD=openmd |
| 2978 |
|
|
| 2979 |
|
if test "x${prefix}" = "xNONE" |
| 2980 |
|
then |
| 2981 |
< |
OOPSE_HOME=${ac_default_prefix}/oopse |
| 2981 |
> |
OPENMD_HOME=${ac_default_prefix}/openmd |
| 2982 |
|
else |
| 2983 |
< |
OOPSE_HOME=${prefix}/oopse |
| 2983 |
> |
OPENMD_HOME=${prefix}/openmd |
| 2984 |
|
fi |
| 2985 |
< |
# Check whether --enable-oopse-home was given. |
| 2986 |
< |
if test "${enable_oopse_home+set}" = set; then : |
| 2987 |
< |
enableval=$enable_oopse_home; OOPSE_HOME="${enableval}" |
| 2985 |
> |
# Check whether --enable-openmd-home was given. |
| 2986 |
> |
if test "${enable_openmd_home+set}" = set; then : |
| 2987 |
> |
enableval=$enable_openmd_home; OPENMD_HOME="${enableval}" |
| 2988 |
|
fi |
| 2989 |
|
|
| 2990 |
|
|
| 3025 |
|
|
| 3026 |
|
fi |
| 3027 |
|
|
| 3097 |
– |
if test x"$CC" != x; then |
| 3098 |
– |
for ac_prog in $CC |
| 3099 |
– |
do |
| 3100 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3101 |
– |
set dummy $ac_prog; ac_word=$2 |
| 3102 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3103 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3104 |
– |
if test "${ac_cv_prog_ac_cc_set+set}" = set; then : |
| 3105 |
– |
$as_echo_n "(cached) " >&6 |
| 3106 |
– |
else |
| 3107 |
– |
if test -n "$ac_cc_set"; then |
| 3108 |
– |
ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test. |
| 3109 |
– |
else |
| 3110 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3111 |
– |
for as_dir in $PATH |
| 3112 |
– |
do |
| 3113 |
– |
IFS=$as_save_IFS |
| 3114 |
– |
test -z "$as_dir" && as_dir=. |
| 3115 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3116 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3117 |
– |
ac_cv_prog_ac_cc_set="$ac_prog" |
| 3118 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3119 |
– |
break 2 |
| 3120 |
– |
fi |
| 3121 |
– |
done |
| 3122 |
– |
done |
| 3123 |
– |
IFS=$as_save_IFS |
| 3124 |
– |
|
| 3125 |
– |
fi |
| 3126 |
– |
fi |
| 3127 |
– |
ac_cc_set=$ac_cv_prog_ac_cc_set |
| 3128 |
– |
if test -n "$ac_cc_set"; then |
| 3129 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5 |
| 3130 |
– |
$as_echo "$ac_cc_set" >&6; } |
| 3131 |
– |
else |
| 3132 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3133 |
– |
$as_echo "no" >&6; } |
| 3134 |
– |
fi |
| 3135 |
– |
|
| 3136 |
– |
|
| 3137 |
– |
test -n "$ac_cc_set" && break |
| 3138 |
– |
done |
| 3139 |
– |
test -n "$ac_cc_set" || ac_cc_set="no" |
| 3140 |
– |
|
| 3141 |
– |
if test $ac_cc_set != no; then : |
| 3142 |
– |
|
| 3143 |
– |
# Extract the first word of "$ac_cc_set", so it can be a program name with args. |
| 3144 |
– |
set dummy $ac_cc_set; ac_word=$2 |
| 3145 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3146 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3147 |
– |
if test "${ac_cv_path_ac_cc_path+set}" = set; then : |
| 3148 |
– |
$as_echo_n "(cached) " >&6 |
| 3149 |
– |
else |
| 3150 |
– |
case $ac_cc_path in |
| 3151 |
– |
[\\/]* | ?:[\\/]*) |
| 3152 |
– |
ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path. |
| 3153 |
– |
;; |
| 3154 |
– |
*) |
| 3155 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3156 |
– |
for as_dir in $PATH |
| 3157 |
– |
do |
| 3158 |
– |
IFS=$as_save_IFS |
| 3159 |
– |
test -z "$as_dir" && as_dir=. |
| 3160 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3161 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3162 |
– |
ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext" |
| 3163 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3164 |
– |
break 2 |
| 3165 |
– |
fi |
| 3166 |
– |
done |
| 3167 |
– |
done |
| 3168 |
– |
IFS=$as_save_IFS |
| 3169 |
– |
|
| 3170 |
– |
test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no" |
| 3171 |
– |
;; |
| 3172 |
– |
esac |
| 3173 |
– |
fi |
| 3174 |
– |
ac_cc_path=$ac_cv_path_ac_cc_path |
| 3175 |
– |
if test -n "$ac_cc_path"; then |
| 3176 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5 |
| 3177 |
– |
$as_echo "$ac_cc_path" >&6; } |
| 3178 |
– |
else |
| 3179 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3180 |
– |
$as_echo "no" >&6; } |
| 3181 |
– |
fi |
| 3182 |
– |
|
| 3183 |
– |
|
| 3184 |
– |
else |
| 3185 |
– |
|
| 3186 |
– |
as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5 |
| 3187 |
– |
fi |
| 3188 |
– |
|
| 3189 |
– |
if test $ac_cc_path != no; then : |
| 3190 |
– |
|
| 3191 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5 |
| 3192 |
– |
$as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;} |
| 3193 |
– |
MPICC=$CC |
| 3194 |
– |
|
| 3195 |
– |
else |
| 3196 |
– |
|
| 3197 |
– |
as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5 |
| 3198 |
– |
fi |
| 3199 |
– |
fi |
| 3200 |
– |
|
| 3201 |
– |
if test x"$CXX" != x; then |
| 3202 |
– |
for ac_prog in $CXX |
| 3203 |
– |
do |
| 3204 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3205 |
– |
set dummy $ac_prog; ac_word=$2 |
| 3206 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3207 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3208 |
– |
if test "${ac_cv_prog_ac_cxx_set+set}" = set; then : |
| 3209 |
– |
$as_echo_n "(cached) " >&6 |
| 3210 |
– |
else |
| 3211 |
– |
if test -n "$ac_cxx_set"; then |
| 3212 |
– |
ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test. |
| 3213 |
– |
else |
| 3214 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3215 |
– |
for as_dir in $PATH |
| 3216 |
– |
do |
| 3217 |
– |
IFS=$as_save_IFS |
| 3218 |
– |
test -z "$as_dir" && as_dir=. |
| 3219 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3220 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3221 |
– |
ac_cv_prog_ac_cxx_set="$ac_prog" |
| 3222 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3223 |
– |
break 2 |
| 3224 |
– |
fi |
| 3225 |
– |
done |
| 3226 |
– |
done |
| 3227 |
– |
IFS=$as_save_IFS |
| 3228 |
– |
|
| 3229 |
– |
fi |
| 3230 |
– |
fi |
| 3231 |
– |
ac_cxx_set=$ac_cv_prog_ac_cxx_set |
| 3232 |
– |
if test -n "$ac_cxx_set"; then |
| 3233 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5 |
| 3234 |
– |
$as_echo "$ac_cxx_set" >&6; } |
| 3235 |
– |
else |
| 3236 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3237 |
– |
$as_echo "no" >&6; } |
| 3238 |
– |
fi |
| 3239 |
– |
|
| 3240 |
– |
|
| 3241 |
– |
test -n "$ac_cxx_set" && break |
| 3242 |
– |
done |
| 3243 |
– |
test -n "$ac_cxx_set" || ac_cxx_set="no" |
| 3244 |
– |
|
| 3245 |
– |
if test $ac_cxx_set != no; then : |
| 3246 |
– |
|
| 3247 |
– |
# Extract the first word of "$ac_cxx_set", so it can be a program name with args. |
| 3248 |
– |
set dummy $ac_cxx_set; ac_word=$2 |
| 3249 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3250 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3251 |
– |
if test "${ac_cv_path_ac_cxx_path+set}" = set; then : |
| 3252 |
– |
$as_echo_n "(cached) " >&6 |
| 3253 |
– |
else |
| 3254 |
– |
case $ac_cxx_path in |
| 3255 |
– |
[\\/]* | ?:[\\/]*) |
| 3256 |
– |
ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path. |
| 3257 |
– |
;; |
| 3258 |
– |
*) |
| 3259 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3260 |
– |
for as_dir in $PATH |
| 3261 |
– |
do |
| 3262 |
– |
IFS=$as_save_IFS |
| 3263 |
– |
test -z "$as_dir" && as_dir=. |
| 3264 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3265 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3266 |
– |
ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext" |
| 3267 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3268 |
– |
break 2 |
| 3269 |
– |
fi |
| 3270 |
– |
done |
| 3271 |
– |
done |
| 3272 |
– |
IFS=$as_save_IFS |
| 3273 |
– |
|
| 3274 |
– |
test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no" |
| 3275 |
– |
;; |
| 3276 |
– |
esac |
| 3277 |
– |
fi |
| 3278 |
– |
ac_cxx_path=$ac_cv_path_ac_cxx_path |
| 3279 |
– |
if test -n "$ac_cxx_path"; then |
| 3280 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5 |
| 3281 |
– |
$as_echo "$ac_cxx_path" >&6; } |
| 3282 |
– |
else |
| 3283 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3284 |
– |
$as_echo "no" >&6; } |
| 3285 |
– |
fi |
| 3286 |
– |
|
| 3287 |
– |
|
| 3288 |
– |
else |
| 3289 |
– |
|
| 3290 |
– |
as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5 |
| 3291 |
– |
fi |
| 3292 |
– |
|
| 3293 |
– |
if test $ac_cxx_path != no; then : |
| 3294 |
– |
|
| 3295 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5 |
| 3296 |
– |
$as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;} |
| 3297 |
– |
MPICXX=$CXX |
| 3298 |
– |
|
| 3299 |
– |
else |
| 3300 |
– |
|
| 3301 |
– |
as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5 |
| 3302 |
– |
fi |
| 3303 |
– |
fi |
| 3304 |
– |
|
| 3305 |
– |
if test x"$FC" != x; then |
| 3306 |
– |
for ac_prog in $FC |
| 3307 |
– |
do |
| 3308 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3309 |
– |
set dummy $ac_prog; ac_word=$2 |
| 3310 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3311 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3312 |
– |
if test "${ac_cv_prog_ac_fc_set+set}" = set; then : |
| 3313 |
– |
$as_echo_n "(cached) " >&6 |
| 3314 |
– |
else |
| 3315 |
– |
if test -n "$ac_fc_set"; then |
| 3316 |
– |
ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test. |
| 3317 |
– |
else |
| 3318 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3319 |
– |
for as_dir in $PATH |
| 3320 |
– |
do |
| 3321 |
– |
IFS=$as_save_IFS |
| 3322 |
– |
test -z "$as_dir" && as_dir=. |
| 3323 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3324 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3325 |
– |
ac_cv_prog_ac_fc_set="$ac_prog" |
| 3326 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3327 |
– |
break 2 |
| 3328 |
– |
fi |
| 3329 |
– |
done |
| 3330 |
– |
done |
| 3331 |
– |
IFS=$as_save_IFS |
| 3332 |
– |
|
| 3333 |
– |
fi |
| 3334 |
– |
fi |
| 3335 |
– |
ac_fc_set=$ac_cv_prog_ac_fc_set |
| 3336 |
– |
if test -n "$ac_fc_set"; then |
| 3337 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5 |
| 3338 |
– |
$as_echo "$ac_fc_set" >&6; } |
| 3339 |
– |
else |
| 3340 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3341 |
– |
$as_echo "no" >&6; } |
| 3342 |
– |
fi |
| 3343 |
– |
|
| 3344 |
– |
|
| 3345 |
– |
test -n "$ac_fc_set" && break |
| 3346 |
– |
done |
| 3347 |
– |
test -n "$ac_fc_set" || ac_fc_set="no" |
| 3348 |
– |
|
| 3349 |
– |
if test $ac_fc_set != no; then : |
| 3350 |
– |
|
| 3351 |
– |
# Extract the first word of "$ac_fc_set", so it can be a program name with args. |
| 3352 |
– |
set dummy $ac_fc_set; ac_word=$2 |
| 3353 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3354 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3355 |
– |
if test "${ac_cv_path_ac_fc_path+set}" = set; then : |
| 3356 |
– |
$as_echo_n "(cached) " >&6 |
| 3357 |
– |
else |
| 3358 |
– |
case $ac_fc_path in |
| 3359 |
– |
[\\/]* | ?:[\\/]*) |
| 3360 |
– |
ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path. |
| 3361 |
– |
;; |
| 3362 |
– |
*) |
| 3363 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3364 |
– |
for as_dir in $PATH |
| 3365 |
– |
do |
| 3366 |
– |
IFS=$as_save_IFS |
| 3367 |
– |
test -z "$as_dir" && as_dir=. |
| 3368 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3369 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3370 |
– |
ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext" |
| 3371 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3372 |
– |
break 2 |
| 3373 |
– |
fi |
| 3374 |
– |
done |
| 3375 |
– |
done |
| 3376 |
– |
IFS=$as_save_IFS |
| 3377 |
– |
|
| 3378 |
– |
test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no" |
| 3379 |
– |
;; |
| 3380 |
– |
esac |
| 3381 |
– |
fi |
| 3382 |
– |
ac_fc_path=$ac_cv_path_ac_fc_path |
| 3383 |
– |
if test -n "$ac_fc_path"; then |
| 3384 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5 |
| 3385 |
– |
$as_echo "$ac_fc_path" >&6; } |
| 3386 |
– |
else |
| 3387 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3388 |
– |
$as_echo "no" >&6; } |
| 3389 |
– |
fi |
| 3390 |
– |
|
| 3391 |
– |
|
| 3392 |
– |
else |
| 3393 |
– |
|
| 3394 |
– |
as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5 |
| 3395 |
– |
fi |
| 3396 |
– |
|
| 3397 |
– |
if test $ac_fc_path != no; then : |
| 3398 |
– |
|
| 3399 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5 |
| 3400 |
– |
$as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;} |
| 3401 |
– |
MPIFC=$FC |
| 3402 |
– |
|
| 3403 |
– |
else |
| 3404 |
– |
|
| 3405 |
– |
as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5 |
| 3406 |
– |
fi |
| 3407 |
– |
fi |
| 3408 |
– |
|
| 3409 |
– |
|
| 3028 |
|
ac_ext=cpp |
| 3029 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3030 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3031 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3032 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3415 |
– |
|
| 3416 |
– |
ac_ext=cpp |
| 3417 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3418 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3419 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3420 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3033 |
|
if test -z "$CXX"; then |
| 3034 |
|
if test -n "$CCC"; then |
| 3035 |
|
CXX=$CCC |
| 3036 |
|
else |
| 3037 |
|
if test -n "$ac_tool_prefix"; then |
| 3038 |
< |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3038 |
> |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
| 3039 |
|
do |
| 3040 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3041 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3079 |
|
fi |
| 3080 |
|
if test -z "$CXX"; then |
| 3081 |
|
ac_ct_CXX=$CXX |
| 3082 |
< |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 3082 |
> |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
| 3083 |
|
do |
| 3084 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3085 |
|
set dummy $ac_prog; ac_word=$2 |
| 3155 |
|
... rest of stderr output deleted ... |
| 3156 |
|
10q' conftest.err >conftest.er1 |
| 3157 |
|
cat conftest.er1 >&5 |
| 3546 |
– |
rm -f conftest.er1 conftest.err |
| 3158 |
|
fi |
| 3159 |
+ |
rm -f conftest.er1 conftest.err |
| 3160 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3161 |
|
test $ac_status = 0; } |
| 3162 |
|
done |
| 3163 |
|
|
| 3164 |
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3165 |
|
/* end confdefs.h. */ |
| 3166 |
< |
#include <stdio.h> |
| 3166 |
> |
|
| 3167 |
|
int |
| 3168 |
|
main () |
| 3169 |
|
{ |
| 3558 |
– |
FILE *f = fopen ("conftest.out", "w"); |
| 3559 |
– |
return ferror (f) || fclose (f) != 0; |
| 3170 |
|
|
| 3171 |
|
; |
| 3172 |
|
return 0; |
| 3173 |
|
} |
| 3174 |
|
_ACEOF |
| 3175 |
|
ac_clean_files_save=$ac_clean_files |
| 3176 |
< |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
| 3176 |
> |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3177 |
|
# Try to create an executable without -o first, disregard a.out. |
| 3178 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
| 3179 |
|
# of exeext. |
| 3180 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
| 3181 |
< |
$as_echo_n "checking for C++ compiler default output file name... " >&6; } |
| 3180 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
| 3181 |
> |
$as_echo_n "checking whether the C++ compiler works... " >&6; } |
| 3182 |
|
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3183 |
|
|
| 3184 |
|
# The possible output files: |
| 3240 |
|
else |
| 3241 |
|
ac_file='' |
| 3242 |
|
fi |
| 3633 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3634 |
– |
$as_echo "$ac_file" >&6; } |
| 3243 |
|
if test -z "$ac_file"; then : |
| 3244 |
< |
$as_echo "$as_me: failed program was:" >&5 |
| 3244 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3245 |
> |
$as_echo "no" >&6; } |
| 3246 |
> |
$as_echo "$as_me: failed program was:" >&5 |
| 3247 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3248 |
|
|
| 3249 |
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3251 |
|
{ as_fn_set_status 77 |
| 3252 |
|
as_fn_error "C++ compiler cannot create executables |
| 3253 |
|
See \`config.log' for more details." "$LINENO" 5; }; } |
| 3254 |
+ |
else |
| 3255 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3256 |
+ |
$as_echo "yes" >&6; } |
| 3257 |
|
fi |
| 3258 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 |
| 3259 |
+ |
$as_echo_n "checking for C++ compiler default output file name... " >&6; } |
| 3260 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3261 |
+ |
$as_echo "$ac_file" >&6; } |
| 3262 |
|
ac_exeext=$ac_cv_exeext |
| 3263 |
|
|
| 3264 |
< |
# Check that the compiler produces executables we can run. If not, either |
| 3648 |
< |
# the compiler is broken, or we cross compile. |
| 3649 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 |
| 3650 |
< |
$as_echo_n "checking whether the C++ compiler works... " >&6; } |
| 3651 |
< |
# If not cross compiling, check that we can run a simple program. |
| 3652 |
< |
if test "$cross_compiling" != yes; then |
| 3653 |
< |
if { ac_try='./$ac_file' |
| 3654 |
< |
{ { case "(($ac_try" in |
| 3655 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3656 |
< |
*) ac_try_echo=$ac_try;; |
| 3657 |
< |
esac |
| 3658 |
< |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3659 |
< |
$as_echo "$ac_try_echo"; } >&5 |
| 3660 |
< |
(eval "$ac_try") 2>&5 |
| 3661 |
< |
ac_status=$? |
| 3662 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3663 |
< |
test $ac_status = 0; }; }; then |
| 3664 |
< |
cross_compiling=no |
| 3665 |
< |
else |
| 3666 |
< |
if test "$cross_compiling" = maybe; then |
| 3667 |
< |
cross_compiling=yes |
| 3668 |
< |
else |
| 3669 |
< |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3670 |
< |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3671 |
< |
as_fn_error "cannot run C++ compiled programs. |
| 3672 |
< |
If you meant to cross compile, use \`--host'. |
| 3673 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 3674 |
< |
fi |
| 3675 |
< |
fi |
| 3676 |
< |
fi |
| 3677 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3678 |
< |
$as_echo "yes" >&6; } |
| 3679 |
< |
|
| 3680 |
< |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
| 3264 |
> |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3265 |
|
ac_clean_files=$ac_clean_files_save |
| 3682 |
– |
# Check that the compiler produces executables we can run. If not, either |
| 3683 |
– |
# the compiler is broken, or we cross compile. |
| 3684 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3685 |
– |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3686 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3687 |
– |
$as_echo "$cross_compiling" >&6; } |
| 3688 |
– |
|
| 3266 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3267 |
|
$as_echo_n "checking for suffix of executables... " >&6; } |
| 3268 |
|
if { { ac_try="$ac_link" |
| 3295 |
|
as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3296 |
|
See \`config.log' for more details." "$LINENO" 5; } |
| 3297 |
|
fi |
| 3298 |
< |
rm -f conftest$ac_cv_exeext |
| 3298 |
> |
rm -f conftest conftest$ac_cv_exeext |
| 3299 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3300 |
|
$as_echo "$ac_cv_exeext" >&6; } |
| 3301 |
|
|
| 3302 |
|
rm -f conftest.$ac_ext |
| 3303 |
|
EXEEXT=$ac_cv_exeext |
| 3304 |
|
ac_exeext=$EXEEXT |
| 3305 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3306 |
+ |
/* end confdefs.h. */ |
| 3307 |
+ |
#include <stdio.h> |
| 3308 |
+ |
int |
| 3309 |
+ |
main () |
| 3310 |
+ |
{ |
| 3311 |
+ |
FILE *f = fopen ("conftest.out", "w"); |
| 3312 |
+ |
return ferror (f) || fclose (f) != 0; |
| 3313 |
+ |
|
| 3314 |
+ |
; |
| 3315 |
+ |
return 0; |
| 3316 |
+ |
} |
| 3317 |
+ |
_ACEOF |
| 3318 |
+ |
ac_clean_files="$ac_clean_files conftest.out" |
| 3319 |
+ |
# Check that the compiler produces executables we can run. If not, either |
| 3320 |
+ |
# the compiler is broken, or we cross compile. |
| 3321 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3322 |
+ |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3323 |
+ |
if test "$cross_compiling" != yes; then |
| 3324 |
+ |
{ { ac_try="$ac_link" |
| 3325 |
+ |
case "(($ac_try" in |
| 3326 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3327 |
+ |
*) ac_try_echo=$ac_try;; |
| 3328 |
+ |
esac |
| 3329 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3330 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 3331 |
+ |
(eval "$ac_link") 2>&5 |
| 3332 |
+ |
ac_status=$? |
| 3333 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3334 |
+ |
test $ac_status = 0; } |
| 3335 |
+ |
if { ac_try='./conftest$ac_cv_exeext' |
| 3336 |
+ |
{ { case "(($ac_try" in |
| 3337 |
+ |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3338 |
+ |
*) ac_try_echo=$ac_try;; |
| 3339 |
+ |
esac |
| 3340 |
+ |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3341 |
+ |
$as_echo "$ac_try_echo"; } >&5 |
| 3342 |
+ |
(eval "$ac_try") 2>&5 |
| 3343 |
+ |
ac_status=$? |
| 3344 |
+ |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3345 |
+ |
test $ac_status = 0; }; }; then |
| 3346 |
+ |
cross_compiling=no |
| 3347 |
+ |
else |
| 3348 |
+ |
if test "$cross_compiling" = maybe; then |
| 3349 |
+ |
cross_compiling=yes |
| 3350 |
+ |
else |
| 3351 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3352 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3353 |
+ |
as_fn_error "cannot run C++ compiled programs. |
| 3354 |
+ |
If you meant to cross compile, use \`--host'. |
| 3355 |
+ |
See \`config.log' for more details." "$LINENO" 5; } |
| 3356 |
+ |
fi |
| 3357 |
+ |
fi |
| 3358 |
+ |
fi |
| 3359 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3360 |
+ |
$as_echo "$cross_compiling" >&6; } |
| 3361 |
+ |
|
| 3362 |
+ |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3363 |
+ |
ac_clean_files=$ac_clean_files_save |
| 3364 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3365 |
|
$as_echo_n "checking for suffix of object files... " >&6; } |
| 3366 |
|
if test "${ac_cv_objext+set}" = set; then : |
| 3527 |
|
CXXFLAGS= |
| 3528 |
|
fi |
| 3529 |
|
fi |
| 3530 |
< |
ac_ext=cpp |
| 3531 |
< |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3532 |
< |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3533 |
< |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3534 |
< |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3899 |
< |
|
| 3900 |
< |
|
| 3901 |
< |
|
| 3902 |
< |
|
| 3903 |
< |
|
| 3904 |
< |
|
| 3905 |
< |
|
| 3906 |
< |
for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ |
| 3907 |
< |
do |
| 3908 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3909 |
< |
set dummy $ac_prog; ac_word=$2 |
| 3910 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3911 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3912 |
< |
if test "${ac_cv_prog_MPICXX+set}" = set; then : |
| 3913 |
< |
$as_echo_n "(cached) " >&6 |
| 3914 |
< |
else |
| 3915 |
< |
if test -n "$MPICXX"; then |
| 3916 |
< |
ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test. |
| 3917 |
< |
else |
| 3918 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3919 |
< |
for as_dir in $PATH |
| 3920 |
< |
do |
| 3921 |
< |
IFS=$as_save_IFS |
| 3922 |
< |
test -z "$as_dir" && as_dir=. |
| 3923 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3924 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3925 |
< |
ac_cv_prog_MPICXX="$ac_prog" |
| 3926 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3927 |
< |
break 2 |
| 3928 |
< |
fi |
| 3929 |
< |
done |
| 3930 |
< |
done |
| 3931 |
< |
IFS=$as_save_IFS |
| 3932 |
< |
|
| 3933 |
< |
fi |
| 3934 |
< |
fi |
| 3935 |
< |
MPICXX=$ac_cv_prog_MPICXX |
| 3936 |
< |
if test -n "$MPICXX"; then |
| 3937 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5 |
| 3938 |
< |
$as_echo "$MPICXX" >&6; } |
| 3939 |
< |
else |
| 3940 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3941 |
< |
$as_echo "no" >&6; } |
| 3942 |
< |
fi |
| 3943 |
< |
|
| 3944 |
< |
|
| 3945 |
< |
test -n "$MPICXX" && break |
| 3946 |
< |
done |
| 3947 |
< |
test -n "$MPICXX" || MPICXX="$CXX" |
| 3948 |
< |
|
| 3949 |
< |
ax_mpi_save_CXX="$CXX" |
| 3950 |
< |
CXX="$MPICXX" |
| 3951 |
< |
|
| 3952 |
< |
|
| 3953 |
< |
|
| 3954 |
< |
if test x = x"$MPILIBS"; then |
| 3955 |
< |
ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
| 3956 |
< |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
| 3957 |
< |
MPILIBS=" " |
| 3958 |
< |
fi |
| 3959 |
< |
|
| 3960 |
< |
fi |
| 3961 |
< |
|
| 3962 |
< |
if test x = x"$MPILIBS"; then |
| 3963 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 3964 |
< |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 3965 |
< |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
| 3966 |
< |
$as_echo_n "(cached) " >&6 |
| 3967 |
< |
else |
| 3968 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 3969 |
< |
LIBS="-lmpi $LIBS" |
| 3970 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3971 |
< |
/* end confdefs.h. */ |
| 3972 |
< |
|
| 3973 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 3974 |
< |
Use char because int might match the return type of a GCC |
| 3975 |
< |
builtin and then its argument prototype would still apply. */ |
| 3976 |
< |
#ifdef __cplusplus |
| 3977 |
< |
extern "C" |
| 3978 |
< |
#endif |
| 3979 |
< |
char MPI_Init (); |
| 3980 |
< |
int |
| 3981 |
< |
main () |
| 3982 |
< |
{ |
| 3983 |
< |
return MPI_Init (); |
| 3984 |
< |
; |
| 3985 |
< |
return 0; |
| 3986 |
< |
} |
| 3987 |
< |
_ACEOF |
| 3988 |
< |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 3989 |
< |
ac_cv_lib_mpi_MPI_Init=yes |
| 3990 |
< |
else |
| 3991 |
< |
ac_cv_lib_mpi_MPI_Init=no |
| 3992 |
< |
fi |
| 3993 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 3994 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 3995 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 3996 |
< |
fi |
| 3997 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 3998 |
< |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 3999 |
< |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
| 4000 |
< |
MPILIBS="-lmpi" |
| 4001 |
< |
fi |
| 4002 |
< |
|
| 4003 |
< |
fi |
| 4004 |
< |
if test x = x"$MPILIBS"; then |
| 4005 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4006 |
< |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4007 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
| 4008 |
< |
$as_echo_n "(cached) " >&6 |
| 4009 |
< |
else |
| 4010 |
< |
ac_check_lib_save_LIBS=$LIBS |
| 4011 |
< |
LIBS="-lmpich $LIBS" |
| 4012 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4013 |
< |
/* end confdefs.h. */ |
| 4014 |
< |
|
| 4015 |
< |
/* Override any GCC internal prototype to avoid an error. |
| 4016 |
< |
Use char because int might match the return type of a GCC |
| 4017 |
< |
builtin and then its argument prototype would still apply. */ |
| 4018 |
< |
#ifdef __cplusplus |
| 4019 |
< |
extern "C" |
| 4020 |
< |
#endif |
| 4021 |
< |
char MPI_Init (); |
| 4022 |
< |
int |
| 4023 |
< |
main () |
| 4024 |
< |
{ |
| 4025 |
< |
return MPI_Init (); |
| 4026 |
< |
; |
| 4027 |
< |
return 0; |
| 4028 |
< |
} |
| 4029 |
< |
_ACEOF |
| 4030 |
< |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4031 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
| 4032 |
< |
else |
| 4033 |
< |
ac_cv_lib_mpich_MPI_Init=no |
| 4034 |
< |
fi |
| 4035 |
< |
rm -f core conftest.err conftest.$ac_objext \ |
| 4036 |
< |
conftest$ac_exeext conftest.$ac_ext |
| 4037 |
< |
LIBS=$ac_check_lib_save_LIBS |
| 4038 |
< |
fi |
| 4039 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4040 |
< |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4041 |
< |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
| 4042 |
< |
MPILIBS="-lmpich" |
| 4043 |
< |
fi |
| 3530 |
> |
ac_ext=c |
| 3531 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 3532 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3533 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3534 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3535 |
|
|
| 4045 |
– |
fi |
| 4046 |
– |
|
| 4047 |
– |
if test x != x"$MPILIBS"; then |
| 4048 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4049 |
– |
$as_echo_n "checking for mpi.h... " >&6; } |
| 4050 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4051 |
– |
/* end confdefs.h. */ |
| 4052 |
– |
#include <mpi.h> |
| 4053 |
– |
int |
| 4054 |
– |
main () |
| 4055 |
– |
{ |
| 4056 |
– |
|
| 4057 |
– |
; |
| 4058 |
– |
return 0; |
| 4059 |
– |
} |
| 4060 |
– |
_ACEOF |
| 4061 |
– |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4062 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4063 |
– |
$as_echo "yes" >&6; } |
| 4064 |
– |
else |
| 4065 |
– |
MPILIBS="" |
| 4066 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4067 |
– |
$as_echo "no" >&6; } |
| 4068 |
– |
fi |
| 4069 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4070 |
– |
fi |
| 4071 |
– |
|
| 4072 |
– |
CXX="$ax_mpi_save_CXX" |
| 4073 |
– |
|
| 4074 |
– |
|
| 4075 |
– |
|
| 4076 |
– |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4077 |
– |
if test x = x"$MPILIBS"; then |
| 4078 |
– |
USE_MPI="no" |
| 4079 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5 |
| 4080 |
– |
$as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;} |
| 4081 |
– |
: |
| 4082 |
– |
else |
| 4083 |
– |
USE_MPI="yes" |
| 4084 |
– |
: |
| 4085 |
– |
fi |
| 4086 |
– |
|
| 3536 |
|
ac_ext=c |
| 3537 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 3538 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3539 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3540 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3541 |
|
if test -n "$ac_tool_prefix"; then |
| 3542 |
< |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3543 |
< |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3542 |
> |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 3543 |
> |
do |
| 3544 |
> |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3545 |
> |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3546 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3547 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3548 |
|
if test "${ac_cv_prog_CC+set}" = set; then : |
| 3558 |
|
test -z "$as_dir" && as_dir=. |
| 3559 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3561 |
< |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3561 |
> |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3562 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3563 |
|
break 2 |
| 3564 |
|
fi |
| 3578 |
|
fi |
| 3579 |
|
|
| 3580 |
|
|
| 3581 |
+ |
test -n "$CC" && break |
| 3582 |
+ |
done |
| 3583 |
|
fi |
| 3584 |
< |
if test -z "$ac_cv_prog_CC"; then |
| 3584 |
> |
if test -z "$CC"; then |
| 3585 |
|
ac_ct_CC=$CC |
| 3586 |
< |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3587 |
< |
set dummy gcc; ac_word=$2 |
| 3586 |
> |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 3587 |
> |
do |
| 3588 |
> |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3589 |
> |
set dummy $ac_prog; ac_word=$2 |
| 3590 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3591 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 3592 |
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3602 |
|
test -z "$as_dir" && as_dir=. |
| 3603 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3604 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3605 |
< |
ac_cv_prog_ac_ct_CC="gcc" |
| 3605 |
> |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3606 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3607 |
|
break 2 |
| 3608 |
|
fi |
| 3621 |
|
$as_echo "no" >&6; } |
| 3622 |
|
fi |
| 3623 |
|
|
| 3624 |
+ |
|
| 3625 |
+ |
test -n "$ac_ct_CC" && break |
| 3626 |
+ |
done |
| 3627 |
+ |
|
| 3628 |
|
if test "x$ac_ct_CC" = x; then |
| 3629 |
|
CC="" |
| 3630 |
|
else |
| 3636 |
|
esac |
| 3637 |
|
CC=$ac_ct_CC |
| 3638 |
|
fi |
| 4180 |
– |
else |
| 4181 |
– |
CC="$ac_cv_prog_CC" |
| 3639 |
|
fi |
| 3640 |
|
|
| 4184 |
– |
if test -z "$CC"; then |
| 4185 |
– |
if test -n "$ac_tool_prefix"; then |
| 4186 |
– |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4187 |
– |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4188 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4189 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4190 |
– |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 4191 |
– |
$as_echo_n "(cached) " >&6 |
| 4192 |
– |
else |
| 4193 |
– |
if test -n "$CC"; then |
| 4194 |
– |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4195 |
– |
else |
| 4196 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4197 |
– |
for as_dir in $PATH |
| 4198 |
– |
do |
| 4199 |
– |
IFS=$as_save_IFS |
| 4200 |
– |
test -z "$as_dir" && as_dir=. |
| 4201 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4202 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4203 |
– |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4204 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4205 |
– |
break 2 |
| 4206 |
– |
fi |
| 4207 |
– |
done |
| 4208 |
– |
done |
| 4209 |
– |
IFS=$as_save_IFS |
| 3641 |
|
|
| 4211 |
– |
fi |
| 4212 |
– |
fi |
| 4213 |
– |
CC=$ac_cv_prog_CC |
| 4214 |
– |
if test -n "$CC"; then |
| 4215 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4216 |
– |
$as_echo "$CC" >&6; } |
| 4217 |
– |
else |
| 4218 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4219 |
– |
$as_echo "no" >&6; } |
| 4220 |
– |
fi |
| 4221 |
– |
|
| 4222 |
– |
|
| 4223 |
– |
fi |
| 4224 |
– |
fi |
| 4225 |
– |
if test -z "$CC"; then |
| 4226 |
– |
# Extract the first word of "cc", so it can be a program name with args. |
| 4227 |
– |
set dummy cc; ac_word=$2 |
| 4228 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4229 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4230 |
– |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 4231 |
– |
$as_echo_n "(cached) " >&6 |
| 4232 |
– |
else |
| 4233 |
– |
if test -n "$CC"; then |
| 4234 |
– |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4235 |
– |
else |
| 4236 |
– |
ac_prog_rejected=no |
| 4237 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4238 |
– |
for as_dir in $PATH |
| 4239 |
– |
do |
| 4240 |
– |
IFS=$as_save_IFS |
| 4241 |
– |
test -z "$as_dir" && as_dir=. |
| 4242 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4243 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4244 |
– |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4245 |
– |
ac_prog_rejected=yes |
| 4246 |
– |
continue |
| 4247 |
– |
fi |
| 4248 |
– |
ac_cv_prog_CC="cc" |
| 4249 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4250 |
– |
break 2 |
| 4251 |
– |
fi |
| 4252 |
– |
done |
| 4253 |
– |
done |
| 4254 |
– |
IFS=$as_save_IFS |
| 4255 |
– |
|
| 4256 |
– |
if test $ac_prog_rejected = yes; then |
| 4257 |
– |
# We found a bogon in the path, so make sure we never use it. |
| 4258 |
– |
set dummy $ac_cv_prog_CC |
| 4259 |
– |
shift |
| 4260 |
– |
if test $# != 0; then |
| 4261 |
– |
# We chose a different compiler from the bogus one. |
| 4262 |
– |
# However, it has the same basename, so the bogon will be chosen |
| 4263 |
– |
# first if we set CC to just the basename; use the full file name. |
| 4264 |
– |
shift |
| 4265 |
– |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4266 |
– |
fi |
| 4267 |
– |
fi |
| 4268 |
– |
fi |
| 4269 |
– |
fi |
| 4270 |
– |
CC=$ac_cv_prog_CC |
| 4271 |
– |
if test -n "$CC"; then |
| 4272 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4273 |
– |
$as_echo "$CC" >&6; } |
| 4274 |
– |
else |
| 4275 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4276 |
– |
$as_echo "no" >&6; } |
| 4277 |
– |
fi |
| 4278 |
– |
|
| 4279 |
– |
|
| 4280 |
– |
fi |
| 4281 |
– |
if test -z "$CC"; then |
| 4282 |
– |
if test -n "$ac_tool_prefix"; then |
| 4283 |
– |
for ac_prog in cl.exe |
| 4284 |
– |
do |
| 4285 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4286 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4287 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4288 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4289 |
– |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 4290 |
– |
$as_echo_n "(cached) " >&6 |
| 4291 |
– |
else |
| 4292 |
– |
if test -n "$CC"; then |
| 4293 |
– |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4294 |
– |
else |
| 4295 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4296 |
– |
for as_dir in $PATH |
| 4297 |
– |
do |
| 4298 |
– |
IFS=$as_save_IFS |
| 4299 |
– |
test -z "$as_dir" && as_dir=. |
| 4300 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4301 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4302 |
– |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4303 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4304 |
– |
break 2 |
| 4305 |
– |
fi |
| 4306 |
– |
done |
| 4307 |
– |
done |
| 4308 |
– |
IFS=$as_save_IFS |
| 4309 |
– |
|
| 4310 |
– |
fi |
| 4311 |
– |
fi |
| 4312 |
– |
CC=$ac_cv_prog_CC |
| 4313 |
– |
if test -n "$CC"; then |
| 4314 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4315 |
– |
$as_echo "$CC" >&6; } |
| 4316 |
– |
else |
| 4317 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4318 |
– |
$as_echo "no" >&6; } |
| 4319 |
– |
fi |
| 4320 |
– |
|
| 4321 |
– |
|
| 4322 |
– |
test -n "$CC" && break |
| 4323 |
– |
done |
| 4324 |
– |
fi |
| 4325 |
– |
if test -z "$CC"; then |
| 4326 |
– |
ac_ct_CC=$CC |
| 4327 |
– |
for ac_prog in cl.exe |
| 4328 |
– |
do |
| 4329 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4330 |
– |
set dummy $ac_prog; ac_word=$2 |
| 4331 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4332 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4333 |
– |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4334 |
– |
$as_echo_n "(cached) " >&6 |
| 4335 |
– |
else |
| 4336 |
– |
if test -n "$ac_ct_CC"; then |
| 4337 |
– |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4338 |
– |
else |
| 4339 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4340 |
– |
for as_dir in $PATH |
| 4341 |
– |
do |
| 4342 |
– |
IFS=$as_save_IFS |
| 4343 |
– |
test -z "$as_dir" && as_dir=. |
| 4344 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4345 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4346 |
– |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4347 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4348 |
– |
break 2 |
| 4349 |
– |
fi |
| 4350 |
– |
done |
| 4351 |
– |
done |
| 4352 |
– |
IFS=$as_save_IFS |
| 4353 |
– |
|
| 4354 |
– |
fi |
| 4355 |
– |
fi |
| 4356 |
– |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4357 |
– |
if test -n "$ac_ct_CC"; then |
| 4358 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4359 |
– |
$as_echo "$ac_ct_CC" >&6; } |
| 4360 |
– |
else |
| 4361 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4362 |
– |
$as_echo "no" >&6; } |
| 4363 |
– |
fi |
| 4364 |
– |
|
| 4365 |
– |
|
| 4366 |
– |
test -n "$ac_ct_CC" && break |
| 4367 |
– |
done |
| 4368 |
– |
|
| 4369 |
– |
if test "x$ac_ct_CC" = x; then |
| 4370 |
– |
CC="" |
| 4371 |
– |
else |
| 4372 |
– |
case $cross_compiling:$ac_tool_warned in |
| 4373 |
– |
yes:) |
| 4374 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4375 |
– |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4376 |
– |
ac_tool_warned=yes ;; |
| 4377 |
– |
esac |
| 4378 |
– |
CC=$ac_ct_CC |
| 4379 |
– |
fi |
| 4380 |
– |
fi |
| 4381 |
– |
|
| 4382 |
– |
fi |
| 4383 |
– |
|
| 4384 |
– |
|
| 3642 |
|
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3643 |
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3644 |
|
as_fn_error "no acceptable C compiler found in \$PATH |
| 3663 |
|
... rest of stderr output deleted ... |
| 3664 |
|
10q' conftest.err >conftest.er1 |
| 3665 |
|
cat conftest.er1 >&5 |
| 4409 |
– |
rm -f conftest.er1 conftest.err |
| 3666 |
|
fi |
| 3667 |
+ |
rm -f conftest.er1 conftest.err |
| 3668 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3669 |
|
test $ac_status = 0; } |
| 3670 |
|
done |
| 3880 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3881 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3882 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4626 |
– |
|
| 4627 |
– |
|
| 4628 |
– |
if test $USE_MPI != no; then : |
| 4629 |
– |
|
| 4630 |
– |
ac_ext=c |
| 4631 |
– |
ac_cpp='$CPP $CPPFLAGS' |
| 4632 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4633 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4634 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4635 |
– |
|
| 4636 |
– |
|
| 4637 |
– |
|
| 4638 |
– |
|
| 4639 |
– |
|
| 4640 |
– |
|
| 4641 |
– |
for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc |
| 4642 |
– |
do |
| 4643 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4644 |
– |
set dummy $ac_prog; ac_word=$2 |
| 4645 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4646 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4647 |
– |
if test "${ac_cv_prog_MPICC+set}" = set; then : |
| 4648 |
– |
$as_echo_n "(cached) " >&6 |
| 4649 |
– |
else |
| 4650 |
– |
if test -n "$MPICC"; then |
| 4651 |
– |
ac_cv_prog_MPICC="$MPICC" # Let the user override the test. |
| 4652 |
– |
else |
| 4653 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4654 |
– |
for as_dir in $PATH |
| 4655 |
– |
do |
| 4656 |
– |
IFS=$as_save_IFS |
| 4657 |
– |
test -z "$as_dir" && as_dir=. |
| 4658 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4659 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4660 |
– |
ac_cv_prog_MPICC="$ac_prog" |
| 4661 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4662 |
– |
break 2 |
| 4663 |
– |
fi |
| 4664 |
– |
done |
| 4665 |
– |
done |
| 4666 |
– |
IFS=$as_save_IFS |
| 4667 |
– |
|
| 4668 |
– |
fi |
| 4669 |
– |
fi |
| 4670 |
– |
MPICC=$ac_cv_prog_MPICC |
| 4671 |
– |
if test -n "$MPICC"; then |
| 4672 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 |
| 4673 |
– |
$as_echo "$MPICC" >&6; } |
| 4674 |
– |
else |
| 4675 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4676 |
– |
$as_echo "no" >&6; } |
| 4677 |
– |
fi |
| 4678 |
– |
|
| 4679 |
– |
|
| 4680 |
– |
test -n "$MPICC" && break |
| 4681 |
– |
done |
| 4682 |
– |
test -n "$MPICC" || MPICC="$CC" |
| 4683 |
– |
|
| 4684 |
– |
ax_mpi_save_CC="$CC" |
| 4685 |
– |
CC="$MPICC" |
| 4686 |
– |
|
| 4687 |
– |
|
| 4688 |
– |
|
| 4689 |
– |
if test x = x"$MPILIBS"; then |
| 4690 |
– |
ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
| 4691 |
– |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
| 4692 |
– |
MPILIBS=" " |
| 4693 |
– |
fi |
| 4694 |
– |
|
| 4695 |
– |
fi |
| 4696 |
– |
|
| 4697 |
– |
if test x = x"$MPILIBS"; then |
| 4698 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4699 |
– |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4700 |
– |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
| 4701 |
– |
$as_echo_n "(cached) " >&6 |
| 4702 |
– |
else |
| 4703 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 4704 |
– |
LIBS="-lmpi $LIBS" |
| 4705 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4706 |
– |
/* end confdefs.h. */ |
| 4707 |
– |
|
| 4708 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 4709 |
– |
Use char because int might match the return type of a GCC |
| 4710 |
– |
builtin and then its argument prototype would still apply. */ |
| 4711 |
– |
#ifdef __cplusplus |
| 4712 |
– |
extern "C" |
| 4713 |
– |
#endif |
| 4714 |
– |
char MPI_Init (); |
| 4715 |
– |
int |
| 4716 |
– |
main () |
| 4717 |
– |
{ |
| 4718 |
– |
return MPI_Init (); |
| 4719 |
– |
; |
| 4720 |
– |
return 0; |
| 4721 |
– |
} |
| 4722 |
– |
_ACEOF |
| 4723 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 4724 |
– |
ac_cv_lib_mpi_MPI_Init=yes |
| 4725 |
– |
else |
| 4726 |
– |
ac_cv_lib_mpi_MPI_Init=no |
| 4727 |
– |
fi |
| 4728 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 4729 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 4730 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 4731 |
– |
fi |
| 4732 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 4733 |
– |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 4734 |
– |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
| 4735 |
– |
MPILIBS="-lmpi" |
| 4736 |
– |
fi |
| 4737 |
– |
|
| 4738 |
– |
fi |
| 4739 |
– |
if test x = x"$MPILIBS"; then |
| 4740 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4741 |
– |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4742 |
– |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
| 4743 |
– |
$as_echo_n "(cached) " >&6 |
| 4744 |
– |
else |
| 4745 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 4746 |
– |
LIBS="-lmpich $LIBS" |
| 4747 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4748 |
– |
/* end confdefs.h. */ |
| 4749 |
– |
|
| 4750 |
– |
/* Override any GCC internal prototype to avoid an error. |
| 4751 |
– |
Use char because int might match the return type of a GCC |
| 4752 |
– |
builtin and then its argument prototype would still apply. */ |
| 4753 |
– |
#ifdef __cplusplus |
| 4754 |
– |
extern "C" |
| 4755 |
– |
#endif |
| 4756 |
– |
char MPI_Init (); |
| 4757 |
– |
int |
| 4758 |
– |
main () |
| 4759 |
– |
{ |
| 4760 |
– |
return MPI_Init (); |
| 4761 |
– |
; |
| 4762 |
– |
return 0; |
| 4763 |
– |
} |
| 4764 |
– |
_ACEOF |
| 4765 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 4766 |
– |
ac_cv_lib_mpich_MPI_Init=yes |
| 4767 |
– |
else |
| 4768 |
– |
ac_cv_lib_mpich_MPI_Init=no |
| 4769 |
– |
fi |
| 4770 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 4771 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 4772 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 4773 |
– |
fi |
| 4774 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4775 |
– |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4776 |
– |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
| 4777 |
– |
MPILIBS="-lmpich" |
| 4778 |
– |
fi |
| 4779 |
– |
|
| 4780 |
– |
fi |
| 4781 |
– |
|
| 4782 |
– |
if test x != x"$MPILIBS"; then |
| 4783 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4784 |
– |
$as_echo_n "checking for mpi.h... " >&6; } |
| 4785 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4786 |
– |
/* end confdefs.h. */ |
| 4787 |
– |
#include <mpi.h> |
| 4788 |
– |
int |
| 4789 |
– |
main () |
| 4790 |
– |
{ |
| 3883 |
|
|
| 4792 |
– |
; |
| 4793 |
– |
return 0; |
| 4794 |
– |
} |
| 4795 |
– |
_ACEOF |
| 4796 |
– |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4797 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4798 |
– |
$as_echo "yes" >&6; } |
| 4799 |
– |
else |
| 4800 |
– |
MPILIBS="" |
| 4801 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4802 |
– |
$as_echo "no" >&6; } |
| 4803 |
– |
fi |
| 4804 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4805 |
– |
fi |
| 4806 |
– |
|
| 4807 |
– |
CC="$ax_mpi_save_CC" |
| 4808 |
– |
|
| 4809 |
– |
|
| 4810 |
– |
|
| 4811 |
– |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4812 |
– |
if test x = x"$MPILIBS"; then |
| 4813 |
– |
USE_MPI="no" |
| 4814 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5 |
| 4815 |
– |
$as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;} |
| 4816 |
– |
: |
| 4817 |
– |
else |
| 4818 |
– |
USE_MPI="yes" |
| 4819 |
– |
: |
| 4820 |
– |
fi |
| 4821 |
– |
|
| 4822 |
– |
|
| 4823 |
– |
fi |
| 3884 |
|
ac_ext=${ac_fc_srcext-f} |
| 3885 |
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 3886 |
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 3887 |
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 3888 |
|
if test -n "$ac_tool_prefix"; then |
| 3889 |
< |
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 |
| 3889 |
> |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
| 3890 |
|
do |
| 3891 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3892 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3930 |
|
fi |
| 3931 |
|
if test -z "$FC"; then |
| 3932 |
|
ac_ct_FC=$FC |
| 3933 |
< |
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 |
| 3933 |
> |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
| 3934 |
|
do |
| 3935 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3936 |
|
set dummy $ac_prog; ac_word=$2 |
| 4005 |
|
... rest of stderr output deleted ... |
| 4006 |
|
10q' conftest.err >conftest.er1 |
| 4007 |
|
cat conftest.er1 >&5 |
| 4948 |
– |
rm -f conftest.er1 conftest.err |
| 4008 |
|
fi |
| 4009 |
+ |
rm -f conftest.er1 conftest.err |
| 4010 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4011 |
|
test $ac_status = 0; } |
| 4012 |
|
done |
| 4081 |
|
fi |
| 4082 |
|
fi |
| 4083 |
|
|
| 4084 |
< |
ac_ext=${ac_fc_srcext-f} |
| 4085 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4086 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4087 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4084 |
> |
ac_ext=c |
| 4085 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 4086 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4087 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4088 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4089 |
|
|
| 4090 |
|
|
| 4091 |
< |
if test $USE_MPI != no; then : |
| 4091 |
> |
save_CXX=$CXX |
| 4092 |
> |
save_CC=$CC |
| 4093 |
> |
save_FC=$FC |
| 4094 |
> |
save_LIBS=$LIBS |
| 4095 |
|
|
| 4096 |
< |
ac_ext=${ac_fc_srcext-f} |
| 4097 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4098 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4099 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4096 |
> |
ac_ext=cpp |
| 4097 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4098 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4099 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4100 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4101 |
|
|
| 4102 |
|
|
| 4103 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 |
| 4104 |
+ |
$as_echo_n "checking for dlopen in -lc... " >&6; } |
| 4105 |
+ |
if test "${ac_cv_lib_c_dlopen+set}" = set; then : |
| 4106 |
+ |
$as_echo_n "(cached) " >&6 |
| 4107 |
+ |
else |
| 4108 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 4109 |
+ |
LIBS="-lc $LIBS" |
| 4110 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4111 |
+ |
/* end confdefs.h. */ |
| 4112 |
|
|
| 4113 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4114 |
+ |
Use char because int might match the return type of a GCC |
| 4115 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4116 |
+ |
#ifdef __cplusplus |
| 4117 |
+ |
extern "C" |
| 4118 |
+ |
#endif |
| 4119 |
+ |
char dlopen (); |
| 4120 |
+ |
int |
| 4121 |
+ |
main () |
| 4122 |
+ |
{ |
| 4123 |
+ |
return dlopen (); |
| 4124 |
+ |
; |
| 4125 |
+ |
return 0; |
| 4126 |
+ |
} |
| 4127 |
+ |
_ACEOF |
| 4128 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4129 |
+ |
ac_cv_lib_c_dlopen=yes |
| 4130 |
+ |
else |
| 4131 |
+ |
ac_cv_lib_c_dlopen=no |
| 4132 |
+ |
fi |
| 4133 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4134 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4135 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4136 |
+ |
fi |
| 4137 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 |
| 4138 |
+ |
$as_echo "$ac_cv_lib_c_dlopen" >&6; } |
| 4139 |
+ |
if test "x$ac_cv_lib_c_dlopen" = x""yes; then : |
| 4140 |
+ |
LIBDL="" |
| 4141 |
+ |
else |
| 4142 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 4143 |
+ |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 4144 |
+ |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 4145 |
+ |
$as_echo_n "(cached) " >&6 |
| 4146 |
+ |
else |
| 4147 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 4148 |
+ |
LIBS="-ldl $LIBS" |
| 4149 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4150 |
+ |
/* end confdefs.h. */ |
| 4151 |
|
|
| 4152 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4153 |
+ |
Use char because int might match the return type of a GCC |
| 4154 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4155 |
+ |
#ifdef __cplusplus |
| 4156 |
+ |
extern "C" |
| 4157 |
+ |
#endif |
| 4158 |
+ |
char dlopen (); |
| 4159 |
+ |
int |
| 4160 |
+ |
main () |
| 4161 |
+ |
{ |
| 4162 |
+ |
return dlopen (); |
| 4163 |
+ |
; |
| 4164 |
+ |
return 0; |
| 4165 |
+ |
} |
| 4166 |
+ |
_ACEOF |
| 4167 |
+ |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4168 |
+ |
ac_cv_lib_dl_dlopen=yes |
| 4169 |
+ |
else |
| 4170 |
+ |
ac_cv_lib_dl_dlopen=no |
| 4171 |
+ |
fi |
| 4172 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4173 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4174 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4175 |
+ |
fi |
| 4176 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 4177 |
+ |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 4178 |
+ |
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 4179 |
+ |
LIBDL="-ldl" |
| 4180 |
+ |
fi |
| 4181 |
|
|
| 4182 |
+ |
fi |
| 4183 |
|
|
| 4184 |
< |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
| 4184 |
> |
|
| 4185 |
> |
|
| 4186 |
> |
|
| 4187 |
> |
|
| 4188 |
> |
|
| 4189 |
> |
|
| 4190 |
> |
for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++ |
| 4191 |
|
do |
| 4192 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4193 |
|
set dummy $ac_prog; ac_word=$2 |
| 4194 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4195 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 4196 |
< |
if test "${ac_cv_prog_MPIFC+set}" = set; then : |
| 4196 |
> |
if test "${ac_cv_prog_MPICXX+set}" = set; then : |
| 4197 |
|
$as_echo_n "(cached) " >&6 |
| 4198 |
|
else |
| 4199 |
< |
if test -n "$MPIFC"; then |
| 4200 |
< |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
| 4199 |
> |
if test -n "$MPICXX"; then |
| 4200 |
> |
ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test. |
| 4201 |
|
else |
| 4202 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4203 |
|
for as_dir in $PATH |
| 4206 |
|
test -z "$as_dir" && as_dir=. |
| 4207 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4208 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4209 |
< |
ac_cv_prog_MPIFC="$ac_prog" |
| 4209 |
> |
ac_cv_prog_MPICXX="$ac_prog" |
| 4210 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4211 |
|
break 2 |
| 4212 |
|
fi |
| 4216 |
|
|
| 4217 |
|
fi |
| 4218 |
|
fi |
| 4219 |
< |
MPIFC=$ac_cv_prog_MPIFC |
| 4220 |
< |
if test -n "$MPIFC"; then |
| 4221 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
| 4222 |
< |
$as_echo "$MPIFC" >&6; } |
| 4219 |
> |
MPICXX=$ac_cv_prog_MPICXX |
| 4220 |
> |
if test -n "$MPICXX"; then |
| 4221 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5 |
| 4222 |
> |
$as_echo "$MPICXX" >&6; } |
| 4223 |
|
else |
| 4224 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4225 |
|
$as_echo "no" >&6; } |
| 4226 |
|
fi |
| 4227 |
|
|
| 4228 |
|
|
| 4229 |
< |
test -n "$MPIFC" && break |
| 4229 |
> |
test -n "$MPICXX" && break |
| 4230 |
|
done |
| 4231 |
< |
test -n "$MPIFC" || MPIFC="$FC" |
| 4231 |
> |
test -n "$MPICXX" || MPICXX="$CXX" |
| 4232 |
|
|
| 4233 |
< |
ax_mpi_save_FC="$FC" |
| 4234 |
< |
FC="$MPIFC" |
| 4233 |
> |
ax_mpi_save_CXX="$CXX" |
| 4234 |
> |
CXX="$MPICXX" |
| 4235 |
|
|
| 4236 |
|
|
| 4237 |
|
|
| 4238 |
|
if test x = x"$MPILIBS"; then |
| 4239 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
| 4240 |
< |
$as_echo_n "checking for MPI_Init... " >&6; } |
| 5093 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 5094 |
< |
program main |
| 5095 |
< |
call MPI_Init |
| 5096 |
< |
end |
| 5097 |
< |
_ACEOF |
| 5098 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4239 |
> |
ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
| 4240 |
> |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
| 4241 |
|
MPILIBS=" " |
| 5100 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5101 |
– |
$as_echo "yes" >&6; } |
| 5102 |
– |
else |
| 5103 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5104 |
– |
$as_echo "no" >&6; } |
| 4242 |
|
fi |
| 5106 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 5107 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 5108 |
– |
fi |
| 4243 |
|
|
| 5110 |
– |
if test x = x"$MPILIBS"; then |
| 5111 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
| 5112 |
– |
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
| 5113 |
– |
if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then : |
| 5114 |
– |
$as_echo_n "(cached) " >&6 |
| 5115 |
– |
else |
| 5116 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 5117 |
– |
LIBS="-lfmpi $LIBS" |
| 5118 |
– |
cat > conftest.$ac_ext <<_ACEOF |
| 5119 |
– |
program main |
| 5120 |
– |
call MPI_Init |
| 5121 |
– |
end |
| 5122 |
– |
_ACEOF |
| 5123 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
| 5124 |
– |
ac_cv_lib_fmpi_MPI_Init=yes |
| 5125 |
– |
else |
| 5126 |
– |
ac_cv_lib_fmpi_MPI_Init=no |
| 4244 |
|
fi |
| 5128 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 5129 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 5130 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 5131 |
– |
fi |
| 5132 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
| 5133 |
– |
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
| 5134 |
– |
if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then : |
| 5135 |
– |
MPILIBS="-lfmpi" |
| 5136 |
– |
fi |
| 4245 |
|
|
| 5138 |
– |
fi |
| 5139 |
– |
if test x = x"$MPILIBS"; then |
| 5140 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
| 5141 |
– |
$as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
| 5142 |
– |
if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then : |
| 5143 |
– |
$as_echo_n "(cached) " >&6 |
| 5144 |
– |
else |
| 5145 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 5146 |
– |
LIBS="-lmpichf90 $LIBS" |
| 5147 |
– |
cat > conftest.$ac_ext <<_ACEOF |
| 5148 |
– |
program main |
| 5149 |
– |
call MPI_Init |
| 5150 |
– |
end |
| 5151 |
– |
_ACEOF |
| 5152 |
– |
if ac_fn_fc_try_link "$LINENO"; then : |
| 5153 |
– |
ac_cv_lib_mpichf90_MPI_Init=yes |
| 5154 |
– |
else |
| 5155 |
– |
ac_cv_lib_mpichf90_MPI_Init=no |
| 5156 |
– |
fi |
| 5157 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 5158 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 5159 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 5160 |
– |
fi |
| 5161 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
| 5162 |
– |
$as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
| 5163 |
– |
if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then : |
| 5164 |
– |
MPILIBS="-lmpichf90" |
| 5165 |
– |
fi |
| 5166 |
– |
|
| 5167 |
– |
fi |
| 5168 |
– |
|
| 4246 |
|
if test x = x"$MPILIBS"; then |
| 4247 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4248 |
|
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4251 |
|
else |
| 4252 |
|
ac_check_lib_save_LIBS=$LIBS |
| 4253 |
|
LIBS="-lmpi $LIBS" |
| 4254 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4255 |
< |
program main |
| 4256 |
< |
call MPI_Init |
| 4257 |
< |
end |
| 4254 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4255 |
> |
/* end confdefs.h. */ |
| 4256 |
> |
|
| 4257 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 4258 |
> |
Use char because int might match the return type of a GCC |
| 4259 |
> |
builtin and then its argument prototype would still apply. */ |
| 4260 |
> |
#ifdef __cplusplus |
| 4261 |
> |
extern "C" |
| 4262 |
> |
#endif |
| 4263 |
> |
char MPI_Init (); |
| 4264 |
> |
int |
| 4265 |
> |
main () |
| 4266 |
> |
{ |
| 4267 |
> |
return MPI_Init (); |
| 4268 |
> |
; |
| 4269 |
> |
return 0; |
| 4270 |
> |
} |
| 4271 |
|
_ACEOF |
| 4272 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4272 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4273 |
|
ac_cv_lib_mpi_MPI_Init=yes |
| 4274 |
|
else |
| 4275 |
|
ac_cv_lib_mpi_MPI_Init=no |
| 4293 |
|
else |
| 4294 |
|
ac_check_lib_save_LIBS=$LIBS |
| 4295 |
|
LIBS="-lmpich $LIBS" |
| 4296 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4297 |
< |
program main |
| 4298 |
< |
call MPI_Init |
| 4299 |
< |
end |
| 4296 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4297 |
> |
/* end confdefs.h. */ |
| 4298 |
> |
|
| 4299 |
> |
/* Override any GCC internal prototype to avoid an error. |
| 4300 |
> |
Use char because int might match the return type of a GCC |
| 4301 |
> |
builtin and then its argument prototype would still apply. */ |
| 4302 |
> |
#ifdef __cplusplus |
| 4303 |
> |
extern "C" |
| 4304 |
> |
#endif |
| 4305 |
> |
char MPI_Init (); |
| 4306 |
> |
int |
| 4307 |
> |
main () |
| 4308 |
> |
{ |
| 4309 |
> |
return MPI_Init (); |
| 4310 |
> |
; |
| 4311 |
> |
return 0; |
| 4312 |
> |
} |
| 4313 |
|
_ACEOF |
| 4314 |
< |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4314 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 4315 |
|
ac_cv_lib_mpich_MPI_Init=yes |
| 4316 |
|
else |
| 4317 |
|
ac_cv_lib_mpich_MPI_Init=no |
| 4329 |
|
fi |
| 4330 |
|
|
| 4331 |
|
if test x != x"$MPILIBS"; then |
| 4332 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
| 4333 |
< |
$as_echo_n "checking for mpif.h... " >&6; } |
| 4334 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4335 |
< |
program main |
| 4336 |
< |
include 'mpif.h' |
| 4337 |
< |
end |
| 4332 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4333 |
> |
$as_echo_n "checking for mpi.h... " >&6; } |
| 4334 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4335 |
> |
/* end confdefs.h. */ |
| 4336 |
> |
#include <mpi.h> |
| 4337 |
> |
int |
| 4338 |
> |
main () |
| 4339 |
> |
{ |
| 4340 |
> |
|
| 4341 |
> |
; |
| 4342 |
> |
return 0; |
| 4343 |
> |
} |
| 4344 |
|
_ACEOF |
| 4345 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
| 4345 |
> |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4346 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4347 |
|
$as_echo "yes" >&6; } |
| 4348 |
|
else |
| 4353 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4354 |
|
fi |
| 4355 |
|
|
| 4356 |
< |
FC="$ax_mpi_save_FC" |
| 4356 |
> |
CXX="$ax_mpi_save_CXX" |
| 4357 |
|
|
| 4358 |
|
|
| 4359 |
|
|
| 4360 |
|
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4361 |
|
if test x = x"$MPILIBS"; then |
| 4362 |
|
USE_MPI="no" |
| 4363 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5 |
| 4364 |
< |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;} |
| 4363 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5 |
| 4364 |
> |
$as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4365 |
|
: |
| 4366 |
|
else |
| 4367 |
|
USE_MPI="yes" |
| 4369 |
|
fi |
| 4370 |
|
|
| 4371 |
|
|
| 5263 |
– |
fi |
| 4372 |
|
if test $USE_MPI != no; then : |
| 4373 |
|
|
| 4374 |
< |
CXX=$MPICXX |
| 4375 |
< |
CC=$MPICC |
| 4376 |
< |
FC=$MPIFC |
| 4374 |
> |
ac_ext=c |
| 4375 |
> |
ac_cpp='$CPP $CPPFLAGS' |
| 4376 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4377 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4378 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4379 |
|
|
| 5270 |
– |
fi |
| 4380 |
|
|
| 4381 |
|
|
| 5273 |
– |
# Checks for programs. |
| 5274 |
– |
ac_ext=cpp |
| 5275 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 5276 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5277 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5278 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5279 |
– |
if test -z "$CXX"; then |
| 5280 |
– |
if test -n "$CCC"; then |
| 5281 |
– |
CXX=$CCC |
| 5282 |
– |
else |
| 5283 |
– |
if test -n "$ac_tool_prefix"; then |
| 5284 |
– |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
| 5285 |
– |
do |
| 5286 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5287 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5288 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5289 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5290 |
– |
if test "${ac_cv_prog_CXX+set}" = set; then : |
| 5291 |
– |
$as_echo_n "(cached) " >&6 |
| 5292 |
– |
else |
| 5293 |
– |
if test -n "$CXX"; then |
| 5294 |
– |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5295 |
– |
else |
| 5296 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5297 |
– |
for as_dir in $PATH |
| 5298 |
– |
do |
| 5299 |
– |
IFS=$as_save_IFS |
| 5300 |
– |
test -z "$as_dir" && as_dir=. |
| 5301 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5302 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5303 |
– |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5304 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5305 |
– |
break 2 |
| 5306 |
– |
fi |
| 5307 |
– |
done |
| 5308 |
– |
done |
| 5309 |
– |
IFS=$as_save_IFS |
| 4382 |
|
|
| 5311 |
– |
fi |
| 5312 |
– |
fi |
| 5313 |
– |
CXX=$ac_cv_prog_CXX |
| 5314 |
– |
if test -n "$CXX"; then |
| 5315 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5316 |
– |
$as_echo "$CXX" >&6; } |
| 5317 |
– |
else |
| 5318 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5319 |
– |
$as_echo "no" >&6; } |
| 5320 |
– |
fi |
| 4383 |
|
|
| 4384 |
|
|
| 4385 |
< |
test -n "$CXX" && break |
| 5324 |
< |
done |
| 5325 |
< |
fi |
| 5326 |
< |
if test -z "$CXX"; then |
| 5327 |
< |
ac_ct_CXX=$CXX |
| 5328 |
< |
for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC |
| 4385 |
> |
for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc |
| 4386 |
|
do |
| 4387 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4388 |
|
set dummy $ac_prog; ac_word=$2 |
| 4389 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4390 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 4391 |
< |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4391 |
> |
if test "${ac_cv_prog_MPICC+set}" = set; then : |
| 4392 |
|
$as_echo_n "(cached) " >&6 |
| 4393 |
|
else |
| 4394 |
< |
if test -n "$ac_ct_CXX"; then |
| 4395 |
< |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4394 |
> |
if test -n "$MPICC"; then |
| 4395 |
> |
ac_cv_prog_MPICC="$MPICC" # Let the user override the test. |
| 4396 |
|
else |
| 4397 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4398 |
|
for as_dir in $PATH |
| 4401 |
|
test -z "$as_dir" && as_dir=. |
| 4402 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4403 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4404 |
< |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4404 |
> |
ac_cv_prog_MPICC="$ac_prog" |
| 4405 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4406 |
|
break 2 |
| 4407 |
|
fi |
| 4411 |
|
|
| 4412 |
|
fi |
| 4413 |
|
fi |
| 4414 |
< |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4415 |
< |
if test -n "$ac_ct_CXX"; then |
| 4416 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4417 |
< |
$as_echo "$ac_ct_CXX" >&6; } |
| 4414 |
> |
MPICC=$ac_cv_prog_MPICC |
| 4415 |
> |
if test -n "$MPICC"; then |
| 4416 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 |
| 4417 |
> |
$as_echo "$MPICC" >&6; } |
| 4418 |
|
else |
| 4419 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4420 |
|
$as_echo "no" >&6; } |
| 4421 |
|
fi |
| 4422 |
|
|
| 4423 |
|
|
| 4424 |
< |
test -n "$ac_ct_CXX" && break |
| 4424 |
> |
test -n "$MPICC" && break |
| 4425 |
|
done |
| 4426 |
+ |
test -n "$MPICC" || MPICC="$CC" |
| 4427 |
|
|
| 4428 |
< |
if test "x$ac_ct_CXX" = x; then |
| 4429 |
< |
CXX="g++" |
| 4430 |
< |
else |
| 4431 |
< |
case $cross_compiling:$ac_tool_warned in |
| 4432 |
< |
yes:) |
| 4433 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4434 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4435 |
< |
ac_tool_warned=yes ;; |
| 4436 |
< |
esac |
| 5379 |
< |
CXX=$ac_ct_CXX |
| 5380 |
< |
fi |
| 4428 |
> |
ax_mpi_save_CC="$CC" |
| 4429 |
> |
CC="$MPICC" |
| 4430 |
> |
|
| 4431 |
> |
|
| 4432 |
> |
|
| 4433 |
> |
if test x = x"$MPILIBS"; then |
| 4434 |
> |
ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" |
| 4435 |
> |
if test "x$ac_cv_func_MPI_Init" = x""yes; then : |
| 4436 |
> |
MPILIBS=" " |
| 4437 |
|
fi |
| 4438 |
|
|
| 5383 |
– |
fi |
| 4439 |
|
fi |
| 5385 |
– |
# Provide some information about the compiler. |
| 5386 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5387 |
– |
set X $ac_compile |
| 5388 |
– |
ac_compiler=$2 |
| 5389 |
– |
for ac_option in --version -v -V -qversion; do |
| 5390 |
– |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5391 |
– |
case "(($ac_try" in |
| 5392 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5393 |
– |
*) ac_try_echo=$ac_try;; |
| 5394 |
– |
esac |
| 5395 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5396 |
– |
$as_echo "$ac_try_echo"; } >&5 |
| 5397 |
– |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5398 |
– |
ac_status=$? |
| 5399 |
– |
if test -s conftest.err; then |
| 5400 |
– |
sed '10a\ |
| 5401 |
– |
... rest of stderr output deleted ... |
| 5402 |
– |
10q' conftest.err >conftest.er1 |
| 5403 |
– |
cat conftest.er1 >&5 |
| 5404 |
– |
rm -f conftest.er1 conftest.err |
| 5405 |
– |
fi |
| 5406 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5407 |
– |
test $ac_status = 0; } |
| 5408 |
– |
done |
| 4440 |
|
|
| 4441 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4442 |
< |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4443 |
< |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4441 |
> |
if test x = x"$MPILIBS"; then |
| 4442 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4443 |
> |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4444 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
| 4445 |
|
$as_echo_n "(cached) " >&6 |
| 4446 |
|
else |
| 4447 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4447 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4448 |
> |
LIBS="-lmpi $LIBS" |
| 4449 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4450 |
|
/* end confdefs.h. */ |
| 4451 |
|
|
| 4452 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4453 |
+ |
Use char because int might match the return type of a GCC |
| 4454 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4455 |
+ |
#ifdef __cplusplus |
| 4456 |
+ |
extern "C" |
| 4457 |
+ |
#endif |
| 4458 |
+ |
char MPI_Init (); |
| 4459 |
|
int |
| 4460 |
|
main () |
| 4461 |
|
{ |
| 4462 |
< |
#ifndef __GNUC__ |
| 5422 |
< |
choke me |
| 5423 |
< |
#endif |
| 5424 |
< |
|
| 4462 |
> |
return MPI_Init (); |
| 4463 |
|
; |
| 4464 |
|
return 0; |
| 4465 |
|
} |
| 4466 |
|
_ACEOF |
| 4467 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4468 |
< |
ac_compiler_gnu=yes |
| 4467 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 4468 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
| 4469 |
|
else |
| 4470 |
< |
ac_compiler_gnu=no |
| 4470 |
> |
ac_cv_lib_mpi_MPI_Init=no |
| 4471 |
|
fi |
| 4472 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4473 |
< |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4474 |
< |
|
| 4472 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4473 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4474 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4475 |
|
fi |
| 4476 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4477 |
< |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4478 |
< |
if test $ac_compiler_gnu = yes; then |
| 4479 |
< |
GXX=yes |
| 5442 |
< |
else |
| 5443 |
< |
GXX= |
| 4476 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 4477 |
> |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 4478 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
| 4479 |
> |
MPILIBS="-lmpi" |
| 4480 |
|
fi |
| 4481 |
< |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4482 |
< |
ac_save_CXXFLAGS=$CXXFLAGS |
| 4483 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4484 |
< |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4485 |
< |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4481 |
> |
|
| 4482 |
> |
fi |
| 4483 |
> |
if test x = x"$MPILIBS"; then |
| 4484 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4485 |
> |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4486 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
| 4487 |
|
$as_echo_n "(cached) " >&6 |
| 4488 |
|
else |
| 4489 |
< |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4490 |
< |
ac_cxx_werror_flag=yes |
| 4491 |
< |
ac_cv_prog_cxx_g=no |
| 5455 |
< |
CXXFLAGS="-g" |
| 5456 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4489 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4490 |
> |
LIBS="-lmpich $LIBS" |
| 4491 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4492 |
|
/* end confdefs.h. */ |
| 4493 |
|
|
| 4494 |
+ |
/* Override any GCC internal prototype to avoid an error. |
| 4495 |
+ |
Use char because int might match the return type of a GCC |
| 4496 |
+ |
builtin and then its argument prototype would still apply. */ |
| 4497 |
+ |
#ifdef __cplusplus |
| 4498 |
+ |
extern "C" |
| 4499 |
+ |
#endif |
| 4500 |
+ |
char MPI_Init (); |
| 4501 |
|
int |
| 4502 |
|
main () |
| 4503 |
|
{ |
| 4504 |
< |
|
| 4504 |
> |
return MPI_Init (); |
| 4505 |
|
; |
| 4506 |
|
return 0; |
| 4507 |
|
} |
| 4508 |
|
_ACEOF |
| 4509 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 4510 |
< |
ac_cv_prog_cxx_g=yes |
| 4509 |
> |
if ac_fn_c_try_link "$LINENO"; then : |
| 4510 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
| 4511 |
|
else |
| 4512 |
< |
CXXFLAGS="" |
| 5471 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5472 |
< |
/* end confdefs.h. */ |
| 5473 |
< |
|
| 5474 |
< |
int |
| 5475 |
< |
main () |
| 5476 |
< |
{ |
| 5477 |
< |
|
| 5478 |
< |
; |
| 5479 |
< |
return 0; |
| 5480 |
< |
} |
| 5481 |
< |
_ACEOF |
| 5482 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5483 |
< |
|
| 5484 |
< |
else |
| 5485 |
< |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5486 |
< |
CXXFLAGS="-g" |
| 5487 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5488 |
< |
/* end confdefs.h. */ |
| 5489 |
< |
|
| 5490 |
< |
int |
| 5491 |
< |
main () |
| 5492 |
< |
{ |
| 5493 |
< |
|
| 5494 |
< |
; |
| 5495 |
< |
return 0; |
| 5496 |
< |
} |
| 5497 |
< |
_ACEOF |
| 5498 |
< |
if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5499 |
< |
ac_cv_prog_cxx_g=yes |
| 4512 |
> |
ac_cv_lib_mpich_MPI_Init=no |
| 4513 |
|
fi |
| 4514 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4514 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4515 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4516 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4517 |
|
fi |
| 4518 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4518 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4519 |
> |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4520 |
> |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
| 4521 |
> |
MPILIBS="-lmpich" |
| 4522 |
|
fi |
| 5505 |
– |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5506 |
– |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5507 |
– |
fi |
| 5508 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5509 |
– |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 5510 |
– |
if test "$ac_test_CXXFLAGS" = set; then |
| 5511 |
– |
CXXFLAGS=$ac_save_CXXFLAGS |
| 5512 |
– |
elif test $ac_cv_prog_cxx_g = yes; then |
| 5513 |
– |
if test "$GXX" = yes; then |
| 5514 |
– |
CXXFLAGS="-g -O2" |
| 5515 |
– |
else |
| 5516 |
– |
CXXFLAGS="-g" |
| 5517 |
– |
fi |
| 5518 |
– |
else |
| 5519 |
– |
if test "$GXX" = yes; then |
| 5520 |
– |
CXXFLAGS="-O2" |
| 5521 |
– |
else |
| 5522 |
– |
CXXFLAGS= |
| 5523 |
– |
fi |
| 5524 |
– |
fi |
| 5525 |
– |
ac_ext=${ac_fc_srcext-f} |
| 5526 |
– |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 5527 |
– |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 5528 |
– |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4523 |
|
|
| 5530 |
– |
ac_ext=c |
| 5531 |
– |
ac_cpp='$CPP $CPPFLAGS' |
| 5532 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5533 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5534 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5535 |
– |
if test -n "$ac_tool_prefix"; then |
| 5536 |
– |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 5537 |
– |
do |
| 5538 |
– |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5539 |
– |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5540 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5541 |
– |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5542 |
– |
if test "${ac_cv_prog_CC+set}" = set; then : |
| 5543 |
– |
$as_echo_n "(cached) " >&6 |
| 5544 |
– |
else |
| 5545 |
– |
if test -n "$CC"; then |
| 5546 |
– |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5547 |
– |
else |
| 5548 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5549 |
– |
for as_dir in $PATH |
| 5550 |
– |
do |
| 5551 |
– |
IFS=$as_save_IFS |
| 5552 |
– |
test -z "$as_dir" && as_dir=. |
| 5553 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5554 |
– |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5555 |
– |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5556 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5557 |
– |
break 2 |
| 5558 |
– |
fi |
| 5559 |
– |
done |
| 5560 |
– |
done |
| 5561 |
– |
IFS=$as_save_IFS |
| 5562 |
– |
|
| 4524 |
|
fi |
| 5564 |
– |
fi |
| 5565 |
– |
CC=$ac_cv_prog_CC |
| 5566 |
– |
if test -n "$CC"; then |
| 5567 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5568 |
– |
$as_echo "$CC" >&6; } |
| 5569 |
– |
else |
| 5570 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5571 |
– |
$as_echo "no" >&6; } |
| 5572 |
– |
fi |
| 4525 |
|
|
| 4526 |
< |
|
| 4527 |
< |
test -n "$CC" && break |
| 4528 |
< |
done |
| 4529 |
< |
fi |
| 5578 |
< |
if test -z "$CC"; then |
| 5579 |
< |
ac_ct_CC=$CC |
| 5580 |
< |
for ac_prog in $CC icc pathcc pgcc cc xlc gcc |
| 5581 |
< |
do |
| 5582 |
< |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5583 |
< |
set dummy $ac_prog; ac_word=$2 |
| 5584 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5585 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5586 |
< |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 5587 |
< |
$as_echo_n "(cached) " >&6 |
| 5588 |
< |
else |
| 5589 |
< |
if test -n "$ac_ct_CC"; then |
| 5590 |
< |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5591 |
< |
else |
| 5592 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5593 |
< |
for as_dir in $PATH |
| 5594 |
< |
do |
| 5595 |
< |
IFS=$as_save_IFS |
| 5596 |
< |
test -z "$as_dir" && as_dir=. |
| 5597 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5598 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5599 |
< |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5600 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5601 |
< |
break 2 |
| 5602 |
< |
fi |
| 5603 |
< |
done |
| 5604 |
< |
done |
| 5605 |
< |
IFS=$as_save_IFS |
| 5606 |
< |
|
| 5607 |
< |
fi |
| 5608 |
< |
fi |
| 5609 |
< |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5610 |
< |
if test -n "$ac_ct_CC"; then |
| 5611 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5612 |
< |
$as_echo "$ac_ct_CC" >&6; } |
| 5613 |
< |
else |
| 5614 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5615 |
< |
$as_echo "no" >&6; } |
| 5616 |
< |
fi |
| 5617 |
< |
|
| 5618 |
< |
|
| 5619 |
< |
test -n "$ac_ct_CC" && break |
| 5620 |
< |
done |
| 5621 |
< |
|
| 5622 |
< |
if test "x$ac_ct_CC" = x; then |
| 5623 |
< |
CC="" |
| 5624 |
< |
else |
| 5625 |
< |
case $cross_compiling:$ac_tool_warned in |
| 5626 |
< |
yes:) |
| 5627 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5628 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5629 |
< |
ac_tool_warned=yes ;; |
| 5630 |
< |
esac |
| 5631 |
< |
CC=$ac_ct_CC |
| 5632 |
< |
fi |
| 5633 |
< |
fi |
| 5634 |
< |
|
| 5635 |
< |
|
| 5636 |
< |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5637 |
< |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5638 |
< |
as_fn_error "no acceptable C compiler found in \$PATH |
| 5639 |
< |
See \`config.log' for more details." "$LINENO" 5; } |
| 5640 |
< |
|
| 5641 |
< |
# Provide some information about the compiler. |
| 5642 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5643 |
< |
set X $ac_compile |
| 5644 |
< |
ac_compiler=$2 |
| 5645 |
< |
for ac_option in --version -v -V -qversion; do |
| 5646 |
< |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5647 |
< |
case "(($ac_try" in |
| 5648 |
< |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5649 |
< |
*) ac_try_echo=$ac_try;; |
| 5650 |
< |
esac |
| 5651 |
< |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5652 |
< |
$as_echo "$ac_try_echo"; } >&5 |
| 5653 |
< |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5654 |
< |
ac_status=$? |
| 5655 |
< |
if test -s conftest.err; then |
| 5656 |
< |
sed '10a\ |
| 5657 |
< |
... rest of stderr output deleted ... |
| 5658 |
< |
10q' conftest.err >conftest.er1 |
| 5659 |
< |
cat conftest.er1 >&5 |
| 5660 |
< |
rm -f conftest.er1 conftest.err |
| 5661 |
< |
fi |
| 5662 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5663 |
< |
test $ac_status = 0; } |
| 5664 |
< |
done |
| 5665 |
< |
|
| 5666 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5667 |
< |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5668 |
< |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 5669 |
< |
$as_echo_n "(cached) " >&6 |
| 5670 |
< |
else |
| 5671 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4526 |
> |
if test x != x"$MPILIBS"; then |
| 4527 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 |
| 4528 |
> |
$as_echo_n "checking for mpi.h... " >&6; } |
| 4529 |
> |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4530 |
|
/* end confdefs.h. */ |
| 4531 |
< |
|
| 4531 |
> |
#include <mpi.h> |
| 4532 |
|
int |
| 4533 |
|
main () |
| 4534 |
|
{ |
| 5677 |
– |
#ifndef __GNUC__ |
| 5678 |
– |
choke me |
| 5679 |
– |
#endif |
| 4535 |
|
|
| 4536 |
|
; |
| 4537 |
|
return 0; |
| 4538 |
|
} |
| 4539 |
|
_ACEOF |
| 4540 |
|
if ac_fn_c_try_compile "$LINENO"; then : |
| 4541 |
< |
ac_compiler_gnu=yes |
| 4541 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4542 |
> |
$as_echo "yes" >&6; } |
| 4543 |
|
else |
| 4544 |
< |
ac_compiler_gnu=no |
| 4544 |
> |
MPILIBS="" |
| 4545 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4546 |
> |
$as_echo "no" >&6; } |
| 4547 |
|
fi |
| 4548 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5691 |
– |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5692 |
– |
|
| 4549 |
|
fi |
| 5694 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5695 |
– |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5696 |
– |
if test $ac_compiler_gnu = yes; then |
| 5697 |
– |
GCC=yes |
| 5698 |
– |
else |
| 5699 |
– |
GCC= |
| 5700 |
– |
fi |
| 5701 |
– |
ac_test_CFLAGS=${CFLAGS+set} |
| 5702 |
– |
ac_save_CFLAGS=$CFLAGS |
| 5703 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5704 |
– |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5705 |
– |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 5706 |
– |
$as_echo_n "(cached) " >&6 |
| 5707 |
– |
else |
| 5708 |
– |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 5709 |
– |
ac_c_werror_flag=yes |
| 5710 |
– |
ac_cv_prog_cc_g=no |
| 5711 |
– |
CFLAGS="-g" |
| 5712 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5713 |
– |
/* end confdefs.h. */ |
| 4550 |
|
|
| 4551 |
< |
int |
| 5716 |
< |
main () |
| 5717 |
< |
{ |
| 5718 |
< |
|
| 5719 |
< |
; |
| 5720 |
< |
return 0; |
| 5721 |
< |
} |
| 5722 |
< |
_ACEOF |
| 5723 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5724 |
< |
ac_cv_prog_cc_g=yes |
| 5725 |
< |
else |
| 5726 |
< |
CFLAGS="" |
| 5727 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5728 |
< |
/* end confdefs.h. */ |
| 5729 |
< |
|
| 5730 |
< |
int |
| 5731 |
< |
main () |
| 5732 |
< |
{ |
| 5733 |
< |
|
| 5734 |
< |
; |
| 5735 |
< |
return 0; |
| 5736 |
< |
} |
| 5737 |
< |
_ACEOF |
| 5738 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5739 |
< |
|
| 5740 |
< |
else |
| 5741 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 5742 |
< |
CFLAGS="-g" |
| 5743 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5744 |
< |
/* end confdefs.h. */ |
| 5745 |
< |
|
| 5746 |
< |
int |
| 5747 |
< |
main () |
| 5748 |
< |
{ |
| 5749 |
< |
|
| 5750 |
< |
; |
| 5751 |
< |
return 0; |
| 5752 |
< |
} |
| 5753 |
< |
_ACEOF |
| 5754 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5755 |
< |
ac_cv_prog_cc_g=yes |
| 5756 |
< |
fi |
| 5757 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5758 |
< |
fi |
| 5759 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5760 |
< |
fi |
| 5761 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5762 |
< |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 5763 |
< |
fi |
| 5764 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5765 |
< |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5766 |
< |
if test "$ac_test_CFLAGS" = set; then |
| 5767 |
< |
CFLAGS=$ac_save_CFLAGS |
| 5768 |
< |
elif test $ac_cv_prog_cc_g = yes; then |
| 5769 |
< |
if test "$GCC" = yes; then |
| 5770 |
< |
CFLAGS="-g -O2" |
| 5771 |
< |
else |
| 5772 |
< |
CFLAGS="-g" |
| 5773 |
< |
fi |
| 5774 |
< |
else |
| 5775 |
< |
if test "$GCC" = yes; then |
| 5776 |
< |
CFLAGS="-O2" |
| 5777 |
< |
else |
| 5778 |
< |
CFLAGS= |
| 5779 |
< |
fi |
| 5780 |
< |
fi |
| 5781 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5782 |
< |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5783 |
< |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 5784 |
< |
$as_echo_n "(cached) " >&6 |
| 5785 |
< |
else |
| 5786 |
< |
ac_cv_prog_cc_c89=no |
| 5787 |
< |
ac_save_CC=$CC |
| 5788 |
< |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5789 |
< |
/* end confdefs.h. */ |
| 5790 |
< |
#include <stdarg.h> |
| 5791 |
< |
#include <stdio.h> |
| 5792 |
< |
#include <sys/types.h> |
| 5793 |
< |
#include <sys/stat.h> |
| 5794 |
< |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5795 |
< |
struct buf { int x; }; |
| 5796 |
< |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5797 |
< |
static char *e (p, i) |
| 5798 |
< |
char **p; |
| 5799 |
< |
int i; |
| 5800 |
< |
{ |
| 5801 |
< |
return p[i]; |
| 5802 |
< |
} |
| 5803 |
< |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 5804 |
< |
{ |
| 5805 |
< |
char *s; |
| 5806 |
< |
va_list v; |
| 5807 |
< |
va_start (v,p); |
| 5808 |
< |
s = g (p, va_arg (v,int)); |
| 5809 |
< |
va_end (v); |
| 5810 |
< |
return s; |
| 5811 |
< |
} |
| 5812 |
< |
|
| 5813 |
< |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5814 |
< |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 5815 |
< |
These don't provoke an error unfortunately, instead are silently treated |
| 5816 |
< |
as 'x'. The following induces an error, until -std is added to get |
| 5817 |
< |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5818 |
< |
array size at least. It's necessary to write '\x00'==0 to get something |
| 5819 |
< |
that's true only with -std. */ |
| 5820 |
< |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5821 |
< |
|
| 5822 |
< |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5823 |
< |
inside strings and character constants. */ |
| 5824 |
< |
#define FOO(x) 'x' |
| 5825 |
< |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5826 |
< |
|
| 5827 |
< |
int test (int i, double x); |
| 5828 |
< |
struct s1 {int (*f) (int a);}; |
| 5829 |
< |
struct s2 {int (*f) (double a);}; |
| 5830 |
< |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5831 |
< |
int argc; |
| 5832 |
< |
char **argv; |
| 5833 |
< |
int |
| 5834 |
< |
main () |
| 5835 |
< |
{ |
| 5836 |
< |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5837 |
< |
; |
| 5838 |
< |
return 0; |
| 5839 |
< |
} |
| 5840 |
< |
_ACEOF |
| 5841 |
< |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5842 |
< |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5843 |
< |
do |
| 5844 |
< |
CC="$ac_save_CC $ac_arg" |
| 5845 |
< |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5846 |
< |
ac_cv_prog_cc_c89=$ac_arg |
| 5847 |
< |
fi |
| 5848 |
< |
rm -f core conftest.err conftest.$ac_objext |
| 5849 |
< |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5850 |
< |
done |
| 5851 |
< |
rm -f conftest.$ac_ext |
| 5852 |
< |
CC=$ac_save_CC |
| 5853 |
< |
|
| 5854 |
< |
fi |
| 5855 |
< |
# AC_CACHE_VAL |
| 5856 |
< |
case "x$ac_cv_prog_cc_c89" in |
| 5857 |
< |
x) |
| 5858 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5859 |
< |
$as_echo "none needed" >&6; } ;; |
| 5860 |
< |
xno) |
| 5861 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5862 |
< |
$as_echo "unsupported" >&6; } ;; |
| 5863 |
< |
*) |
| 5864 |
< |
CC="$CC $ac_cv_prog_cc_c89" |
| 5865 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5866 |
< |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5867 |
< |
esac |
| 5868 |
< |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5869 |
< |
|
| 5870 |
< |
fi |
| 5871 |
< |
|
| 5872 |
< |
ac_ext=${ac_fc_srcext-f} |
| 5873 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 5874 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 5875 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 5876 |
< |
|
| 5877 |
< |
ac_ext=${ac_fc_srcext-f} |
| 5878 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 5879 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 5880 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 5881 |
< |
if test -n "$ac_tool_prefix"; then |
| 5882 |
< |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
| 5883 |
< |
do |
| 5884 |
< |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5885 |
< |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5886 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5887 |
< |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5888 |
< |
if test "${ac_cv_prog_FC+set}" = set; then : |
| 5889 |
< |
$as_echo_n "(cached) " >&6 |
| 5890 |
< |
else |
| 5891 |
< |
if test -n "$FC"; then |
| 5892 |
< |
ac_cv_prog_FC="$FC" # Let the user override the test. |
| 5893 |
< |
else |
| 5894 |
< |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5895 |
< |
for as_dir in $PATH |
| 5896 |
< |
do |
| 5897 |
< |
IFS=$as_save_IFS |
| 5898 |
< |
test -z "$as_dir" && as_dir=. |
| 5899 |
< |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5900 |
< |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5901 |
< |
ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
| 5902 |
< |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5903 |
< |
break 2 |
| 5904 |
< |
fi |
| 5905 |
< |
done |
| 5906 |
< |
done |
| 5907 |
< |
IFS=$as_save_IFS |
| 4551 |
> |
CC="$ax_mpi_save_CC" |
| 4552 |
|
|
| 4553 |
< |
fi |
| 4554 |
< |
fi |
| 4555 |
< |
FC=$ac_cv_prog_FC |
| 4556 |
< |
if test -n "$FC"; then |
| 4557 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
| 4558 |
< |
$as_echo "$FC" >&6; } |
| 4553 |
> |
|
| 4554 |
> |
|
| 4555 |
> |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4556 |
> |
if test x = x"$MPILIBS"; then |
| 4557 |
> |
USE_MPI="no" |
| 4558 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5 |
| 4559 |
> |
$as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4560 |
> |
: |
| 4561 |
|
else |
| 4562 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4563 |
< |
$as_echo "no" >&6; } |
| 4562 |
> |
USE_MPI="yes" |
| 4563 |
> |
: |
| 4564 |
|
fi |
| 4565 |
|
|
| 4566 |
|
|
| 5921 |
– |
test -n "$FC" && break |
| 5922 |
– |
done |
| 4567 |
|
fi |
| 4568 |
< |
if test -z "$FC"; then |
| 4569 |
< |
ac_ct_FC=$FC |
| 4570 |
< |
for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort |
| 4568 |
> |
|
| 4569 |
> |
if test $USE_MPI != no; then : |
| 4570 |
> |
|
| 4571 |
> |
ac_ext=${ac_fc_srcext-f} |
| 4572 |
> |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4573 |
> |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4574 |
> |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4575 |
> |
|
| 4576 |
> |
|
| 4577 |
> |
|
| 4578 |
> |
|
| 4579 |
> |
|
| 4580 |
> |
|
| 4581 |
> |
for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c |
| 4582 |
|
do |
| 4583 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4584 |
|
set dummy $ac_prog; ac_word=$2 |
| 4585 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4586 |
|
$as_echo_n "checking for $ac_word... " >&6; } |
| 4587 |
< |
if test "${ac_cv_prog_ac_ct_FC+set}" = set; then : |
| 4587 |
> |
if test "${ac_cv_prog_MPIFC+set}" = set; then : |
| 4588 |
|
$as_echo_n "(cached) " >&6 |
| 4589 |
|
else |
| 4590 |
< |
if test -n "$ac_ct_FC"; then |
| 4591 |
< |
ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
| 4590 |
> |
if test -n "$MPIFC"; then |
| 4591 |
> |
ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. |
| 4592 |
|
else |
| 4593 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4594 |
|
for as_dir in $PATH |
| 4597 |
|
test -z "$as_dir" && as_dir=. |
| 4598 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4599 |
|
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4600 |
< |
ac_cv_prog_ac_ct_FC="$ac_prog" |
| 4600 |
> |
ac_cv_prog_MPIFC="$ac_prog" |
| 4601 |
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4602 |
|
break 2 |
| 4603 |
|
fi |
| 4607 |
|
|
| 4608 |
|
fi |
| 4609 |
|
fi |
| 4610 |
< |
ac_ct_FC=$ac_cv_prog_ac_ct_FC |
| 4611 |
< |
if test -n "$ac_ct_FC"; then |
| 4612 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
| 4613 |
< |
$as_echo "$ac_ct_FC" >&6; } |
| 4610 |
> |
MPIFC=$ac_cv_prog_MPIFC |
| 4611 |
> |
if test -n "$MPIFC"; then |
| 4612 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 |
| 4613 |
> |
$as_echo "$MPIFC" >&6; } |
| 4614 |
|
else |
| 4615 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4616 |
|
$as_echo "no" >&6; } |
| 4617 |
|
fi |
| 4618 |
|
|
| 4619 |
|
|
| 4620 |
< |
test -n "$ac_ct_FC" && break |
| 4620 |
> |
test -n "$MPIFC" && break |
| 4621 |
|
done |
| 4622 |
+ |
test -n "$MPIFC" || MPIFC="$FC" |
| 4623 |
|
|
| 4624 |
< |
if test "x$ac_ct_FC" = x; then |
| 4625 |
< |
FC="" |
| 5970 |
< |
else |
| 5971 |
< |
case $cross_compiling:$ac_tool_warned in |
| 5972 |
< |
yes:) |
| 5973 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5974 |
< |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5975 |
< |
ac_tool_warned=yes ;; |
| 5976 |
< |
esac |
| 5977 |
< |
FC=$ac_ct_FC |
| 5978 |
< |
fi |
| 5979 |
< |
fi |
| 4624 |
> |
ax_mpi_save_FC="$FC" |
| 4625 |
> |
FC="$MPIFC" |
| 4626 |
|
|
| 4627 |
|
|
| 5982 |
– |
# Provide some information about the compiler. |
| 5983 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
| 5984 |
– |
set X $ac_compile |
| 5985 |
– |
ac_compiler=$2 |
| 5986 |
– |
for ac_option in --version -v -V -qversion; do |
| 5987 |
– |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5988 |
– |
case "(($ac_try" in |
| 5989 |
– |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5990 |
– |
*) ac_try_echo=$ac_try;; |
| 5991 |
– |
esac |
| 5992 |
– |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5993 |
– |
$as_echo "$ac_try_echo"; } >&5 |
| 5994 |
– |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5995 |
– |
ac_status=$? |
| 5996 |
– |
if test -s conftest.err; then |
| 5997 |
– |
sed '10a\ |
| 5998 |
– |
... rest of stderr output deleted ... |
| 5999 |
– |
10q' conftest.err >conftest.er1 |
| 6000 |
– |
cat conftest.er1 >&5 |
| 6001 |
– |
rm -f conftest.er1 conftest.err |
| 6002 |
– |
fi |
| 6003 |
– |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6004 |
– |
test $ac_status = 0; } |
| 6005 |
– |
done |
| 6006 |
– |
rm -f a.out |
| 4628 |
|
|
| 4629 |
< |
# If we don't use `.F' as extension, the preprocessor is not run on the |
| 4630 |
< |
# input file. (Note that this only needs to work for GNU compilers.) |
| 4631 |
< |
ac_save_ext=$ac_ext |
| 4632 |
< |
ac_ext=F |
| 4633 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 |
| 4634 |
< |
$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } |
| 4635 |
< |
if test "${ac_cv_fc_compiler_gnu+set}" = set; then : |
| 4629 |
> |
if test x = x"$MPILIBS"; then |
| 4630 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5 |
| 4631 |
> |
$as_echo_n "checking for MPI_Init... " >&6; } |
| 4632 |
> |
cat > conftest.$ac_ext <<_ACEOF |
| 4633 |
> |
program main |
| 4634 |
> |
call MPI_Init |
| 4635 |
> |
end |
| 4636 |
> |
_ACEOF |
| 4637 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4638 |
> |
MPILIBS=" " |
| 4639 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4640 |
> |
$as_echo "yes" >&6; } |
| 4641 |
> |
else |
| 4642 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4643 |
> |
$as_echo "no" >&6; } |
| 4644 |
> |
fi |
| 4645 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4646 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4647 |
> |
fi |
| 4648 |
> |
|
| 4649 |
> |
if test x = x"$MPILIBS"; then |
| 4650 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5 |
| 4651 |
> |
$as_echo_n "checking for MPI_Init in -lfmpi... " >&6; } |
| 4652 |
> |
if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then : |
| 4653 |
|
$as_echo_n "(cached) " >&6 |
| 4654 |
|
else |
| 4655 |
< |
cat > conftest.$ac_ext <<_ACEOF |
| 4655 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4656 |
> |
LIBS="-lfmpi $LIBS" |
| 4657 |
> |
cat > conftest.$ac_ext <<_ACEOF |
| 4658 |
|
program main |
| 4659 |
< |
#ifndef __GNUC__ |
| 4660 |
< |
choke me |
| 4661 |
< |
#endif |
| 4659 |
> |
call MPI_Init |
| 4660 |
> |
end |
| 4661 |
> |
_ACEOF |
| 4662 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4663 |
> |
ac_cv_lib_fmpi_MPI_Init=yes |
| 4664 |
> |
else |
| 4665 |
> |
ac_cv_lib_fmpi_MPI_Init=no |
| 4666 |
> |
fi |
| 4667 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4668 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4669 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4670 |
> |
fi |
| 4671 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5 |
| 4672 |
> |
$as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; } |
| 4673 |
> |
if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then : |
| 4674 |
> |
MPILIBS="-lfmpi" |
| 4675 |
> |
fi |
| 4676 |
|
|
| 4677 |
+ |
fi |
| 4678 |
+ |
if test x = x"$MPILIBS"; then |
| 4679 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5 |
| 4680 |
+ |
$as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; } |
| 4681 |
+ |
if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then : |
| 4682 |
+ |
$as_echo_n "(cached) " >&6 |
| 4683 |
+ |
else |
| 4684 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 4685 |
+ |
LIBS="-lmpichf90 $LIBS" |
| 4686 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
| 4687 |
+ |
program main |
| 4688 |
+ |
call MPI_Init |
| 4689 |
|
end |
| 4690 |
|
_ACEOF |
| 4691 |
< |
if ac_fn_fc_try_compile "$LINENO"; then : |
| 4692 |
< |
ac_compiler_gnu=yes |
| 4691 |
> |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4692 |
> |
ac_cv_lib_mpichf90_MPI_Init=yes |
| 4693 |
|
else |
| 4694 |
< |
ac_compiler_gnu=no |
| 4694 |
> |
ac_cv_lib_mpichf90_MPI_Init=no |
| 4695 |
|
fi |
| 4696 |
< |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4697 |
< |
ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
| 4696 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4697 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4698 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4699 |
> |
fi |
| 4700 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5 |
| 4701 |
> |
$as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; } |
| 4702 |
> |
if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then : |
| 4703 |
> |
MPILIBS="-lmpichf90" |
| 4704 |
> |
fi |
| 4705 |
|
|
| 4706 |
+ |
fi |
| 4707 |
+ |
|
| 4708 |
+ |
if test x = x"$MPILIBS"; then |
| 4709 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 |
| 4710 |
+ |
$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } |
| 4711 |
+ |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then : |
| 4712 |
+ |
$as_echo_n "(cached) " >&6 |
| 4713 |
+ |
else |
| 4714 |
+ |
ac_check_lib_save_LIBS=$LIBS |
| 4715 |
+ |
LIBS="-lmpi $LIBS" |
| 4716 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
| 4717 |
+ |
program main |
| 4718 |
+ |
call MPI_Init |
| 4719 |
+ |
end |
| 4720 |
+ |
_ACEOF |
| 4721 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4722 |
+ |
ac_cv_lib_mpi_MPI_Init=yes |
| 4723 |
+ |
else |
| 4724 |
+ |
ac_cv_lib_mpi_MPI_Init=no |
| 4725 |
|
fi |
| 4726 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
| 4727 |
< |
$as_echo "$ac_cv_fc_compiler_gnu" >&6; } |
| 4728 |
< |
ac_ext=$ac_save_ext |
| 4729 |
< |
ac_test_FCFLAGS=${FCFLAGS+set} |
| 4730 |
< |
ac_save_FCFLAGS=$FCFLAGS |
| 4731 |
< |
FCFLAGS= |
| 4732 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
| 4733 |
< |
$as_echo_n "checking whether $FC accepts -g... " >&6; } |
| 4734 |
< |
if test "${ac_cv_prog_fc_g+set}" = set; then : |
| 4726 |
> |
rm -f core conftest.err conftest.$ac_objext \ |
| 4727 |
> |
conftest$ac_exeext conftest.$ac_ext |
| 4728 |
> |
LIBS=$ac_check_lib_save_LIBS |
| 4729 |
> |
fi |
| 4730 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
| 4731 |
> |
$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } |
| 4732 |
> |
if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then : |
| 4733 |
> |
MPILIBS="-lmpi" |
| 4734 |
> |
fi |
| 4735 |
> |
|
| 4736 |
> |
fi |
| 4737 |
> |
if test x = x"$MPILIBS"; then |
| 4738 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 |
| 4739 |
> |
$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } |
| 4740 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then : |
| 4741 |
|
$as_echo_n "(cached) " >&6 |
| 4742 |
|
else |
| 4743 |
< |
FCFLAGS=-g |
| 4743 |
> |
ac_check_lib_save_LIBS=$LIBS |
| 4744 |
> |
LIBS="-lmpich $LIBS" |
| 4745 |
|
cat > conftest.$ac_ext <<_ACEOF |
| 4746 |
|
program main |
| 4747 |
+ |
call MPI_Init |
| 4748 |
+ |
end |
| 4749 |
+ |
_ACEOF |
| 4750 |
+ |
if ac_fn_fc_try_link "$LINENO"; then : |
| 4751 |
+ |
ac_cv_lib_mpich_MPI_Init=yes |
| 4752 |
+ |
else |
| 4753 |
+ |
ac_cv_lib_mpich_MPI_Init=no |
| 4754 |
+ |
fi |
| 4755 |
+ |
rm -f core conftest.err conftest.$ac_objext \ |
| 4756 |
+ |
conftest$ac_exeext conftest.$ac_ext |
| 4757 |
+ |
LIBS=$ac_check_lib_save_LIBS |
| 4758 |
+ |
fi |
| 4759 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
| 4760 |
+ |
$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } |
| 4761 |
+ |
if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then : |
| 4762 |
+ |
MPILIBS="-lmpich" |
| 4763 |
+ |
fi |
| 4764 |
|
|
| 4765 |
+ |
fi |
| 4766 |
+ |
|
| 4767 |
+ |
if test x != x"$MPILIBS"; then |
| 4768 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5 |
| 4769 |
+ |
$as_echo_n "checking for mpif.h... " >&6; } |
| 4770 |
+ |
cat > conftest.$ac_ext <<_ACEOF |
| 4771 |
+ |
program main |
| 4772 |
+ |
include 'mpif.h' |
| 4773 |
|
end |
| 4774 |
|
_ACEOF |
| 4775 |
|
if ac_fn_fc_try_compile "$LINENO"; then : |
| 4776 |
< |
ac_cv_prog_fc_g=yes |
| 4776 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4777 |
> |
$as_echo "yes" >&6; } |
| 4778 |
|
else |
| 4779 |
< |
ac_cv_prog_fc_g=no |
| 4779 |
> |
MPILIBS="" |
| 4780 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4781 |
> |
$as_echo "no" >&6; } |
| 4782 |
|
fi |
| 4783 |
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4784 |
+ |
fi |
| 4785 |
|
|
| 4786 |
+ |
FC="$ax_mpi_save_FC" |
| 4787 |
+ |
|
| 4788 |
+ |
|
| 4789 |
+ |
|
| 4790 |
+ |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 4791 |
+ |
if test x = x"$MPILIBS"; then |
| 4792 |
+ |
USE_MPI="no" |
| 4793 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5 |
| 4794 |
+ |
$as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;} |
| 4795 |
+ |
: |
| 4796 |
+ |
else |
| 4797 |
+ |
USE_MPI="yes" |
| 4798 |
+ |
: |
| 4799 |
|
fi |
| 4800 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
| 4801 |
< |
$as_echo "$ac_cv_prog_fc_g" >&6; } |
| 4802 |
< |
if test "$ac_test_FCFLAGS" = set; then |
| 4803 |
< |
FCFLAGS=$ac_save_FCFLAGS |
| 4804 |
< |
elif test $ac_cv_prog_fc_g = yes; then |
| 4805 |
< |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
| 4806 |
< |
FCFLAGS="-g -O2" |
| 4807 |
< |
else |
| 4808 |
< |
FCFLAGS="-g" |
| 4809 |
< |
fi |
| 4800 |
> |
|
| 4801 |
> |
|
| 4802 |
> |
fi |
| 4803 |
> |
if test $USE_MPI != no; then : |
| 4804 |
> |
|
| 4805 |
> |
CXX=$MPICXX |
| 4806 |
> |
CC=$MPICC |
| 4807 |
> |
FC=$MPIFC |
| 4808 |
> |
LIBS="$MPILIBS $LIBS" |
| 4809 |
> |
|
| 4810 |
|
else |
| 6070 |
– |
if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
| 6071 |
– |
FCFLAGS="-O2" |
| 6072 |
– |
else |
| 6073 |
– |
FCFLAGS= |
| 6074 |
– |
fi |
| 6075 |
– |
fi |
| 4811 |
|
|
| 4812 |
< |
ac_ext=${ac_fc_srcext-f} |
| 4813 |
< |
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
| 4814 |
< |
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
| 4815 |
< |
ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
| 4812 |
> |
CXX=$save_CXX |
| 4813 |
> |
CC=$save_CC |
| 4814 |
> |
FC=$save_FC |
| 4815 |
> |
LIBS=$save_LIBS |
| 4816 |
> |
|
| 4817 |
> |
|
| 4818 |
> |
fi |
| 4819 |
> |
|
| 4820 |
|
|
| 4821 |
+ |
# Checks for programs. |
| 4822 |
|
ac_ext=c |
| 4823 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 4824 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5436 |
|
x/*) ;; |
| 5437 |
|
*) INSTALL=`pwd`/ac-tools/"shtool install -c" ; |
| 5438 |
|
esac |
| 5439 |
< |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
| 5439 |
> |
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755" |
| 5440 |
|
# Extract the first word of "ar", so it can be a program name with args. |
| 5441 |
|
set dummy ar; ac_word=$2 |
| 5442 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7474 |
|
echo "" |
| 7475 |
|
echo "*********************************************************" |
| 7476 |
|
echo "* WARNING: Could not find a working zlib installation *" |
| 7477 |
< |
echo "* If you need OOPSE to be able to deal with compressed *" |
| 7477 |
> |
echo "* If you need OpenMD to be able to deal with compressed *" |
| 7478 |
|
echo "* trajectory dump files be sure to specify a valid zlib *" |
| 7479 |
|
echo "* installation with --with-zlib=DIR *" |
| 7480 |
|
echo "* *" |
| 7481 |
< |
echo "* OOPSE will still work without zlib installed. *" |
| 7481 |
> |
echo "* OpenMD will still work without zlib installed. *" |
| 7482 |
|
echo "*********************************************************" |
| 7483 |
|
echo "" |
| 7484 |
|
fi |
| 7750 |
|
echo "* compute undulation spectra, be sure to specify a *" |
| 7751 |
|
echo "* valid fftw installation with --with-fftw=DIR *" |
| 7752 |
|
echo "* *" |
| 7753 |
< |
echo "* OOPSE will still work without fftw installed. *" |
| 7753 |
> |
echo "* OpenMD will still work without fftw installed. *" |
| 7754 |
|
echo "*********************************************************" |
| 7755 |
|
echo "" |
| 7756 |
|
fi |
| 7761 |
|
|
| 7762 |
|
fi |
| 7763 |
|
fi |
| 7764 |
+ |
fi |
| 7765 |
+ |
|
| 7766 |
+ |
ac_ext=cpp |
| 7767 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7768 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7769 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7770 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7771 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7772 |
+ |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7773 |
+ |
if test -z "$CXXCPP"; then |
| 7774 |
+ |
if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7775 |
+ |
$as_echo_n "(cached) " >&6 |
| 7776 |
+ |
else |
| 7777 |
+ |
# Double quotes because CXXCPP needs to be expanded |
| 7778 |
+ |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7779 |
+ |
do |
| 7780 |
+ |
ac_preproc_ok=false |
| 7781 |
+ |
for ac_cxx_preproc_warn_flag in '' yes |
| 7782 |
+ |
do |
| 7783 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
| 7784 |
+ |
# with a fresh cross-compiler works. |
| 7785 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7786 |
+ |
# <limits.h> exists even on freestanding compilers. |
| 7787 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7788 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7789 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7790 |
+ |
/* end confdefs.h. */ |
| 7791 |
+ |
#ifdef __STDC__ |
| 7792 |
+ |
# include <limits.h> |
| 7793 |
+ |
#else |
| 7794 |
+ |
# include <assert.h> |
| 7795 |
+ |
#endif |
| 7796 |
+ |
Syntax error |
| 7797 |
+ |
_ACEOF |
| 7798 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7799 |
+ |
|
| 7800 |
+ |
else |
| 7801 |
+ |
# Broken: fails on valid input. |
| 7802 |
+ |
continue |
| 7803 |
+ |
fi |
| 7804 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 7805 |
+ |
|
| 7806 |
+ |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7807 |
+ |
# can be detected and how. |
| 7808 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7809 |
+ |
/* end confdefs.h. */ |
| 7810 |
+ |
#include <ac_nonexistent.h> |
| 7811 |
+ |
_ACEOF |
| 7812 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7813 |
+ |
# Broken: success on invalid input. |
| 7814 |
+ |
continue |
| 7815 |
+ |
else |
| 7816 |
+ |
# Passes both tests. |
| 7817 |
+ |
ac_preproc_ok=: |
| 7818 |
+ |
break |
| 7819 |
+ |
fi |
| 7820 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 7821 |
+ |
|
| 7822 |
+ |
done |
| 7823 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7824 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 7825 |
+ |
if $ac_preproc_ok; then : |
| 7826 |
+ |
break |
| 7827 |
+ |
fi |
| 7828 |
+ |
|
| 7829 |
+ |
done |
| 7830 |
+ |
ac_cv_prog_CXXCPP=$CXXCPP |
| 7831 |
+ |
|
| 7832 |
|
fi |
| 7833 |
+ |
CXXCPP=$ac_cv_prog_CXXCPP |
| 7834 |
+ |
else |
| 7835 |
+ |
ac_cv_prog_CXXCPP=$CXXCPP |
| 7836 |
+ |
fi |
| 7837 |
+ |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7838 |
+ |
$as_echo "$CXXCPP" >&6; } |
| 7839 |
+ |
ac_preproc_ok=false |
| 7840 |
+ |
for ac_cxx_preproc_warn_flag in '' yes |
| 7841 |
+ |
do |
| 7842 |
+ |
# Use a header file that comes with gcc, so configuring glibc |
| 7843 |
+ |
# with a fresh cross-compiler works. |
| 7844 |
+ |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7845 |
+ |
# <limits.h> exists even on freestanding compilers. |
| 7846 |
+ |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7847 |
+ |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7848 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7849 |
+ |
/* end confdefs.h. */ |
| 7850 |
+ |
#ifdef __STDC__ |
| 7851 |
+ |
# include <limits.h> |
| 7852 |
+ |
#else |
| 7853 |
+ |
# include <assert.h> |
| 7854 |
+ |
#endif |
| 7855 |
+ |
Syntax error |
| 7856 |
+ |
_ACEOF |
| 7857 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7858 |
|
|
| 7859 |
+ |
else |
| 7860 |
+ |
# Broken: fails on valid input. |
| 7861 |
+ |
continue |
| 7862 |
+ |
fi |
| 7863 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 7864 |
+ |
|
| 7865 |
+ |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7866 |
+ |
# can be detected and how. |
| 7867 |
+ |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7868 |
+ |
/* end confdefs.h. */ |
| 7869 |
+ |
#include <ac_nonexistent.h> |
| 7870 |
+ |
_ACEOF |
| 7871 |
+ |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7872 |
+ |
# Broken: success on invalid input. |
| 7873 |
+ |
continue |
| 7874 |
+ |
else |
| 7875 |
+ |
# Passes both tests. |
| 7876 |
+ |
ac_preproc_ok=: |
| 7877 |
+ |
break |
| 7878 |
+ |
fi |
| 7879 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 7880 |
+ |
|
| 7881 |
+ |
done |
| 7882 |
+ |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7883 |
+ |
rm -f conftest.err conftest.$ac_ext |
| 7884 |
+ |
if $ac_preproc_ok; then : |
| 7885 |
+ |
|
| 7886 |
+ |
else |
| 7887 |
+ |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7888 |
+ |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7889 |
+ |
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 7890 |
+ |
See \`config.log' for more details." "$LINENO" 5; } |
| 7891 |
+ |
fi |
| 7892 |
+ |
|
| 7893 |
+ |
ac_ext=cpp |
| 7894 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7895 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7896 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7897 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7898 |
+ |
|
| 7899 |
+ |
|
| 7900 |
|
# |
| 7901 |
|
# Handle user hints |
| 7902 |
|
# |
| 7933 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking for qhull in ${QHULL_HOME}" >&5 |
| 7934 |
|
$as_echo "$as_me: Checking for qhull in ${QHULL_HOME}" >&6;} |
| 7935 |
|
|
| 7936 |
< |
ac_ext=c |
| 7937 |
< |
ac_cpp='$CPP $CPPFLAGS' |
| 7938 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7939 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7940 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7936 |
> |
ac_ext=cpp |
| 7937 |
> |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 7938 |
> |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7939 |
> |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7940 |
> |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7941 |
|
|
| 7942 |
|
QHULL_OLD_LDFLAGS=$LDFLAGS |
| 7943 |
< |
QHULL_OLD_CFLAGS=$CFLAGS |
| 7943 |
> |
QHULL_OLD_CXXFLAGS=$CXXFLAGS |
| 7944 |
|
QHULL_OLD_CPPFLAGS=$CPPFLAGS |
| 7945 |
|
LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib" |
| 7946 |
< |
CFLAGS="$CFLAGS -I${QHULL_HOME}/include" |
| 7946 |
> |
CXXFLAGS="$CXXFLAGS -I${QHULL_HOME}/include" |
| 7947 |
|
CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include" |
| 7948 |
< |
ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default" |
| 7948 |
> |
ac_fn_cxx_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default" |
| 7949 |
|
if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then : |
| 7950 |
|
qhull_cv_qhull_h=yes |
| 7951 |
|
else |
| 7986 |
|
return 0; |
| 7987 |
|
} |
| 7988 |
|
_ACEOF |
| 7989 |
< |
if ac_fn_c_try_link "$LINENO"; then : |
| 7989 |
> |
if ac_fn_cxx_try_link "$LINENO"; then : |
| 7990 |
|
ac_cv_lib_qhull_qh_qhull=yes |
| 7991 |
|
else |
| 7992 |
|
ac_cv_lib_qhull_qh_qhull=no |
| 8004 |
|
fi |
| 8005 |
|
|
| 8006 |
|
LDFLAGS="$QHULL_OLD_LDFLAGS" |
| 8007 |
< |
CFLAGS="$QHULL_OLD_CFLAGS" |
| 8007 |
> |
CXXFLAGS="$QHULL_OLD_CXXFLAGS" |
| 8008 |
|
CPPFLAGS="$QHULL_OLD_CPPFLAGS" |
| 8009 |
|
ac_ext=c |
| 8010 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 8031 |
|
$as_echo "$as_me: WARNING: " >&2;} |
| 8032 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5 |
| 8033 |
|
$as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;} |
| 8034 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex " >&5 |
| 8035 |
< |
$as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex " >&2;} |
| 8034 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex " >&5 |
| 8035 |
> |
$as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex " >&2;} |
| 8036 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5 |
| 8037 |
|
$as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;} |
| 8038 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR " >&5 |
| 8039 |
|
$as_echo "$as_me: WARNING: with --with-qhull=DIR " >&2;} |
| 8040 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
| 8041 |
|
$as_echo "$as_me: WARNING: " >&2;} |
| 8042 |
< |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed. " >&5 |
| 8043 |
< |
$as_echo "$as_me: WARNING: OOPSE will still work without qhull installed. " >&2;} |
| 8042 |
> |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed. " >&5 |
| 8043 |
> |
$as_echo "$as_me: WARNING: OpenMD will still work without qhull installed. " >&2;} |
| 8044 |
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 |
| 8045 |
|
$as_echo "$as_me: WARNING: " >&2;} |
| 8046 |
|
fi |
| 8051 |
|
|
| 8052 |
|
|
| 8053 |
|
|
| 9180 |
– |
ac_ext=cpp |
| 9181 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 9182 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9183 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9184 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9185 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 9186 |
– |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 9187 |
– |
if test -z "$CXXCPP"; then |
| 9188 |
– |
if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 9189 |
– |
$as_echo_n "(cached) " >&6 |
| 9190 |
– |
else |
| 9191 |
– |
# Double quotes because CXXCPP needs to be expanded |
| 9192 |
– |
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 9193 |
– |
do |
| 9194 |
– |
ac_preproc_ok=false |
| 9195 |
– |
for ac_cxx_preproc_warn_flag in '' yes |
| 9196 |
– |
do |
| 9197 |
– |
# Use a header file that comes with gcc, so configuring glibc |
| 9198 |
– |
# with a fresh cross-compiler works. |
| 9199 |
– |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9200 |
– |
# <limits.h> exists even on freestanding compilers. |
| 9201 |
– |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 9202 |
– |
# not just through cpp. "Syntax error" is here to catch this case. |
| 9203 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9204 |
– |
/* end confdefs.h. */ |
| 9205 |
– |
#ifdef __STDC__ |
| 9206 |
– |
# include <limits.h> |
| 9207 |
– |
#else |
| 9208 |
– |
# include <assert.h> |
| 9209 |
– |
#endif |
| 9210 |
– |
Syntax error |
| 9211 |
– |
_ACEOF |
| 9212 |
– |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 9213 |
– |
|
| 9214 |
– |
else |
| 9215 |
– |
# Broken: fails on valid input. |
| 9216 |
– |
continue |
| 9217 |
– |
fi |
| 9218 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9219 |
– |
|
| 9220 |
– |
# OK, works on sane cases. Now check whether nonexistent headers |
| 9221 |
– |
# can be detected and how. |
| 9222 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9223 |
– |
/* end confdefs.h. */ |
| 9224 |
– |
#include <ac_nonexistent.h> |
| 9225 |
– |
_ACEOF |
| 9226 |
– |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 9227 |
– |
# Broken: success on invalid input. |
| 9228 |
– |
continue |
| 9229 |
– |
else |
| 9230 |
– |
# Passes both tests. |
| 9231 |
– |
ac_preproc_ok=: |
| 9232 |
– |
break |
| 9233 |
– |
fi |
| 9234 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9235 |
– |
|
| 9236 |
– |
done |
| 9237 |
– |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 9238 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9239 |
– |
if $ac_preproc_ok; then : |
| 9240 |
– |
break |
| 9241 |
– |
fi |
| 9242 |
– |
|
| 9243 |
– |
done |
| 9244 |
– |
ac_cv_prog_CXXCPP=$CXXCPP |
| 9245 |
– |
|
| 9246 |
– |
fi |
| 9247 |
– |
CXXCPP=$ac_cv_prog_CXXCPP |
| 9248 |
– |
else |
| 9249 |
– |
ac_cv_prog_CXXCPP=$CXXCPP |
| 9250 |
– |
fi |
| 9251 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 9252 |
– |
$as_echo "$CXXCPP" >&6; } |
| 9253 |
– |
ac_preproc_ok=false |
| 9254 |
– |
for ac_cxx_preproc_warn_flag in '' yes |
| 9255 |
– |
do |
| 9256 |
– |
# Use a header file that comes with gcc, so configuring glibc |
| 9257 |
– |
# with a fresh cross-compiler works. |
| 9258 |
– |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9259 |
– |
# <limits.h> exists even on freestanding compilers. |
| 9260 |
– |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 9261 |
– |
# not just through cpp. "Syntax error" is here to catch this case. |
| 9262 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9263 |
– |
/* end confdefs.h. */ |
| 9264 |
– |
#ifdef __STDC__ |
| 9265 |
– |
# include <limits.h> |
| 9266 |
– |
#else |
| 9267 |
– |
# include <assert.h> |
| 9268 |
– |
#endif |
| 9269 |
– |
Syntax error |
| 9270 |
– |
_ACEOF |
| 9271 |
– |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 9272 |
– |
|
| 9273 |
– |
else |
| 9274 |
– |
# Broken: fails on valid input. |
| 9275 |
– |
continue |
| 9276 |
– |
fi |
| 9277 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9278 |
– |
|
| 9279 |
– |
# OK, works on sane cases. Now check whether nonexistent headers |
| 9280 |
– |
# can be detected and how. |
| 9281 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9282 |
– |
/* end confdefs.h. */ |
| 9283 |
– |
#include <ac_nonexistent.h> |
| 9284 |
– |
_ACEOF |
| 9285 |
– |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 9286 |
– |
# Broken: success on invalid input. |
| 9287 |
– |
continue |
| 9288 |
– |
else |
| 9289 |
– |
# Passes both tests. |
| 9290 |
– |
ac_preproc_ok=: |
| 9291 |
– |
break |
| 9292 |
– |
fi |
| 9293 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9294 |
– |
|
| 9295 |
– |
done |
| 9296 |
– |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 9297 |
– |
rm -f conftest.err conftest.$ac_ext |
| 9298 |
– |
if $ac_preproc_ok; then : |
| 9299 |
– |
|
| 9300 |
– |
else |
| 9301 |
– |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 9302 |
– |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 9303 |
– |
as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 9304 |
– |
See \`config.log' for more details." "$LINENO" 5; } |
| 9305 |
– |
fi |
| 9306 |
– |
|
| 9307 |
– |
ac_ext=cpp |
| 9308 |
– |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 9309 |
– |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9310 |
– |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9311 |
– |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9312 |
– |
|
| 9313 |
– |
|
| 8054 |
|
# |
| 8055 |
|
# Handle user hints |
| 8056 |
|
# |
| 8180 |
|
echo "" |
| 8181 |
|
echo "*********************************************************" |
| 8182 |
|
echo "* WARNING: Could not find a working openbabel-2.x *" |
| 8183 |
< |
echo "* installation If you need OOPSE to be able to convert *" |
| 8183 |
> |
echo "* installation If you need OpenMD to be able to convert *" |
| 8184 |
|
echo "* xyz or pdb files you need to specify a valid *" |
| 8185 |
|
echo "* openbabel-2.x installation with --with-openbabel=DIR *" |
| 8186 |
|
echo "* *" |
| 8187 |
< |
echo "* OOPSE will still work without openbabel installed. *" |
| 8187 |
> |
echo "* OpenMD will still work without openbabel installed. *" |
| 8188 |
|
echo "*********************************************************" |
| 8189 |
|
echo "" |
| 8190 |
|
fi |
| 9442 |
|
fi |
| 9443 |
|
|
| 9444 |
|
;; |
| 10705 |
– |
esac |
| 10706 |
– |
|
| 10707 |
– |
|
| 10708 |
– |
acx_cgal_found=no |
| 10709 |
– |
|
| 10710 |
– |
# Check whether --with-cgalmakefile was given. |
| 10711 |
– |
if test "${with_cgalmakefile+set}" = set; then : |
| 10712 |
– |
withval=$with_cgalmakefile; |
| 10713 |
– |
fi |
| 10714 |
– |
|
| 10715 |
– |
case $with_cgalmakefile in |
| 10716 |
– |
yes | "") ;; |
| 10717 |
– |
no) acx_cgal_found=disable ;; |
| 10718 |
– |
-* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
| 10719 |
– |
*) CGAL_MAKEFILE="$with_cgalmakefile" ;; |
| 9445 |
|
esac |
| 10721 |
– |
|
| 10722 |
– |
if test "$acx_cgal_found" == no; then |
| 10723 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL_MAKEFILE" >&5 |
| 10724 |
– |
$as_echo_n "checking CGAL_MAKEFILE... " >&6; } |
| 10725 |
– |
|
| 10726 |
– |
if test \! -z "$CGAL_MAKEFILE"; then |
| 10727 |
– |
|
| 10728 |
– |
if test -e "$CGAL_MAKEFILE"; then |
| 10729 |
– |
tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX` |
| 10730 |
– |
|
| 10731 |
– |
cat > $tname << _ACEOF |
| 10732 |
– |
include $CGAL_MAKEFILE |
| 10733 |
– |
|
| 10734 |
– |
cppflags: |
| 10735 |
– |
@echo \$(CGAL_CXXFLAGS) |
| 10736 |
– |
|
| 10737 |
– |
cxxflags: |
| 10738 |
– |
@echo |
| 10739 |
– |
ldflags: |
| 10740 |
– |
@echo \$(CGAL_LDFLAGS) |
| 10741 |
– |
_ACEOF |
| 10742 |
– |
CGAL_CPPFLAGS="`make -s -f $tname cppflags`" |
| 10743 |
– |
CGAL_CXXFLAGS="`make -s -f $tname cxxflags`" |
| 10744 |
– |
CGAL_LDFLAGST="`make -s -f $tname ldflags`" |
| 10745 |
– |
for i in $CGAL_LDFLAGST; do |
| 10746 |
– |
if test `echo $i| grep -c ^-l`; then |
| 10747 |
– |
CGAL_LIBS="$CGAL_LIBS $i" |
| 10748 |
– |
else |
| 10749 |
– |
CGAL_LDFLAGS="$CGAL_LDFLAGS $i" |
| 10750 |
– |
fi |
| 10751 |
– |
done |
| 10752 |
– |
rm -f $tname |
| 10753 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10754 |
– |
$as_echo "yes" >&6; } |
| 10755 |
– |
acx_cgal_found=yes |
| 10756 |
– |
else |
| 10757 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid" >&5 |
| 10758 |
– |
$as_echo "invalid" >&6; } |
| 10759 |
– |
as_fn_error "CGAL_MAKEFILE defined, but the makefile does not exist." "$LINENO" 5 |
| 10760 |
– |
fi |
| 10761 |
– |
else |
| 10762 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5 |
| 10763 |
– |
$as_echo "not defined" >&6; } |
| 10764 |
– |
fi |
| 10765 |
– |
fi |
| 10766 |
– |
|
| 10767 |
– |
if test "$acx_cgal_found" == no; then |
| 10768 |
– |
ac_fn_c_check_header_mongrel "$LINENO" "CGAL/Exact_predicates_inexact_constructions_kernel.h" "ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" "$ac_includes_default" |
| 10769 |
– |
if test "x$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" = x""yes; then : |
| 10770 |
– |
cgal_have_header=yes |
| 10771 |
– |
else |
| 10772 |
– |
cgal_have_header=no |
| 10773 |
– |
fi |
| 10774 |
– |
|
| 10775 |
– |
|
| 10776 |
– |
if test "$cgal_have_header" == yes; then |
| 10777 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5 |
| 10778 |
– |
$as_echo_n "checking for main in -lCGAL... " >&6; } |
| 10779 |
– |
if test "${ac_cv_lib_CGAL_main+set}" = set; then : |
| 10780 |
– |
$as_echo_n "(cached) " >&6 |
| 10781 |
– |
else |
| 10782 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 10783 |
– |
LIBS="-lCGAL $LIBS" |
| 10784 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10785 |
– |
/* end confdefs.h. */ |
| 10786 |
– |
|
| 10787 |
– |
|
| 10788 |
– |
#ifdef FC_DUMMY_MAIN |
| 10789 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 10790 |
– |
# ifdef __cplusplus |
| 10791 |
– |
extern "C" |
| 10792 |
– |
# endif |
| 10793 |
– |
int FC_DUMMY_MAIN() { return 1; } |
| 10794 |
– |
#endif |
| 10795 |
– |
#endif |
| 10796 |
– |
int |
| 10797 |
– |
main () |
| 10798 |
– |
{ |
| 10799 |
– |
return main (); |
| 10800 |
– |
; |
| 10801 |
– |
return 0; |
| 10802 |
– |
} |
| 10803 |
– |
_ACEOF |
| 10804 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 10805 |
– |
ac_cv_lib_CGAL_main=yes |
| 10806 |
– |
else |
| 10807 |
– |
ac_cv_lib_CGAL_main=no |
| 10808 |
– |
fi |
| 10809 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 10810 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 10811 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 10812 |
– |
fi |
| 10813 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5 |
| 10814 |
– |
$as_echo "$ac_cv_lib_CGAL_main" >&6; } |
| 10815 |
– |
if test "x$ac_cv_lib_CGAL_main" = x""yes; then : |
| 10816 |
– |
cgal_have_lib=yes |
| 10817 |
– |
else |
| 10818 |
– |
cgal_have_lib=no |
| 10819 |
– |
fi |
| 10820 |
– |
|
| 10821 |
– |
if test "$cgal_have_lib" == no; then |
| 10822 |
– |
save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm" |
| 10823 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCGAL" >&5 |
| 10824 |
– |
$as_echo_n "checking for main in -lCGAL... " >&6; } |
| 10825 |
– |
if test "${ac_cv_lib_CGAL_main+set}" = set; then : |
| 10826 |
– |
$as_echo_n "(cached) " >&6 |
| 10827 |
– |
else |
| 10828 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 10829 |
– |
LIBS="-lCGAL $LIBS" |
| 10830 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10831 |
– |
/* end confdefs.h. */ |
| 10832 |
– |
|
| 10833 |
– |
|
| 10834 |
– |
#ifdef FC_DUMMY_MAIN |
| 10835 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 10836 |
– |
# ifdef __cplusplus |
| 10837 |
– |
extern "C" |
| 10838 |
– |
# endif |
| 10839 |
– |
int FC_DUMMY_MAIN() { return 1; } |
| 10840 |
– |
#endif |
| 10841 |
– |
#endif |
| 10842 |
– |
int |
| 10843 |
– |
main () |
| 10844 |
– |
{ |
| 10845 |
– |
return main (); |
| 10846 |
– |
; |
| 10847 |
– |
return 0; |
| 10848 |
– |
} |
| 10849 |
– |
_ACEOF |
| 10850 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 10851 |
– |
ac_cv_lib_CGAL_main=yes |
| 10852 |
– |
else |
| 10853 |
– |
ac_cv_lib_CGAL_main=no |
| 10854 |
– |
fi |
| 10855 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 10856 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 10857 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 10858 |
– |
fi |
| 10859 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_CGAL_main" >&5 |
| 10860 |
– |
$as_echo "$ac_cv_lib_CGAL_main" >&6; } |
| 10861 |
– |
if test "x$ac_cv_lib_CGAL_main" = x""yes; then : |
| 10862 |
– |
CGAL_LIBS="-lCGAL -lgmp -lmpfr" |
| 10863 |
– |
cgal_have_lib=yes |
| 10864 |
– |
else |
| 10865 |
– |
cgal_have_lib=no |
| 10866 |
– |
fi |
| 9446 |
|
|
| 10868 |
– |
LIBS="$save_LIBS" |
| 10869 |
– |
else |
| 10870 |
– |
CGAL_LIBS="-lCGAL" |
| 10871 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpfr" >&5 |
| 10872 |
– |
$as_echo_n "checking for main in -lmpfr... " >&6; } |
| 10873 |
– |
if test "${ac_cv_lib_mpfr_main+set}" = set; then : |
| 10874 |
– |
$as_echo_n "(cached) " >&6 |
| 10875 |
– |
else |
| 10876 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 10877 |
– |
LIBS="-lmpfr $LIBS" |
| 10878 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10879 |
– |
/* end confdefs.h. */ |
| 9447 |
|
|
| 10881 |
– |
|
| 10882 |
– |
#ifdef FC_DUMMY_MAIN |
| 10883 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 10884 |
– |
# ifdef __cplusplus |
| 10885 |
– |
extern "C" |
| 10886 |
– |
# endif |
| 10887 |
– |
int FC_DUMMY_MAIN() { return 1; } |
| 10888 |
– |
#endif |
| 10889 |
– |
#endif |
| 10890 |
– |
int |
| 10891 |
– |
main () |
| 10892 |
– |
{ |
| 10893 |
– |
return main (); |
| 10894 |
– |
; |
| 10895 |
– |
return 0; |
| 10896 |
– |
} |
| 10897 |
– |
_ACEOF |
| 10898 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 10899 |
– |
ac_cv_lib_mpfr_main=yes |
| 10900 |
– |
else |
| 10901 |
– |
ac_cv_lib_mpfr_main=no |
| 10902 |
– |
fi |
| 10903 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 10904 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 10905 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 10906 |
– |
fi |
| 10907 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_main" >&5 |
| 10908 |
– |
$as_echo "$ac_cv_lib_mpfr_main" >&6; } |
| 10909 |
– |
if test "x$ac_cv_lib_mpfr_main" = x""yes; then : |
| 10910 |
– |
CGAL_LIBS="$CGAL_LIBS -lmpfr" |
| 10911 |
– |
fi |
| 10912 |
– |
|
| 10913 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 |
| 10914 |
– |
$as_echo_n "checking for main in -lgmp... " >&6; } |
| 10915 |
– |
if test "${ac_cv_lib_gmp_main+set}" = set; then : |
| 10916 |
– |
$as_echo_n "(cached) " >&6 |
| 10917 |
– |
else |
| 10918 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 10919 |
– |
LIBS="-lgmp $LIBS" |
| 10920 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10921 |
– |
/* end confdefs.h. */ |
| 10922 |
– |
|
| 10923 |
– |
|
| 10924 |
– |
#ifdef FC_DUMMY_MAIN |
| 10925 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 10926 |
– |
# ifdef __cplusplus |
| 10927 |
– |
extern "C" |
| 10928 |
– |
# endif |
| 10929 |
– |
int FC_DUMMY_MAIN() { return 1; } |
| 10930 |
– |
#endif |
| 10931 |
– |
#endif |
| 10932 |
– |
int |
| 10933 |
– |
main () |
| 10934 |
– |
{ |
| 10935 |
– |
return main (); |
| 10936 |
– |
; |
| 10937 |
– |
return 0; |
| 10938 |
– |
} |
| 10939 |
– |
_ACEOF |
| 10940 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 10941 |
– |
ac_cv_lib_gmp_main=yes |
| 10942 |
– |
else |
| 10943 |
– |
ac_cv_lib_gmp_main=no |
| 10944 |
– |
fi |
| 10945 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 10946 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 10947 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 10948 |
– |
fi |
| 10949 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 |
| 10950 |
– |
$as_echo "$ac_cv_lib_gmp_main" >&6; } |
| 10951 |
– |
if test "x$ac_cv_lib_gmp_main" = x""yes; then : |
| 10952 |
– |
CGAL_LIBS="$CGAL_LIBS -lgmp" |
| 10953 |
– |
fi |
| 10954 |
– |
|
| 10955 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5 |
| 10956 |
– |
$as_echo_n "checking for main in -lgmpxx... " >&6; } |
| 10957 |
– |
if test "${ac_cv_lib_gmpxx_main+set}" = set; then : |
| 10958 |
– |
$as_echo_n "(cached) " >&6 |
| 10959 |
– |
else |
| 10960 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 10961 |
– |
LIBS="-lgmpxx $LIBS" |
| 10962 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10963 |
– |
/* end confdefs.h. */ |
| 10964 |
– |
|
| 10965 |
– |
|
| 10966 |
– |
#ifdef FC_DUMMY_MAIN |
| 10967 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 10968 |
– |
# ifdef __cplusplus |
| 10969 |
– |
extern "C" |
| 10970 |
– |
# endif |
| 10971 |
– |
int FC_DUMMY_MAIN() { return 1; } |
| 10972 |
– |
#endif |
| 10973 |
– |
#endif |
| 10974 |
– |
int |
| 10975 |
– |
main () |
| 10976 |
– |
{ |
| 10977 |
– |
return main (); |
| 10978 |
– |
; |
| 10979 |
– |
return 0; |
| 10980 |
– |
} |
| 10981 |
– |
_ACEOF |
| 10982 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 10983 |
– |
ac_cv_lib_gmpxx_main=yes |
| 10984 |
– |
else |
| 10985 |
– |
ac_cv_lib_gmpxx_main=no |
| 10986 |
– |
fi |
| 10987 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 10988 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 10989 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 10990 |
– |
fi |
| 10991 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5 |
| 10992 |
– |
$as_echo "$ac_cv_lib_gmpxx_main" >&6; } |
| 10993 |
– |
if test "x$ac_cv_lib_gmpxx_main" = x""yes; then : |
| 10994 |
– |
CGAL_LIBS="$CGAL_LIBS -lgmpxx" |
| 10995 |
– |
fi |
| 10996 |
– |
|
| 10997 |
– |
fi |
| 10998 |
– |
|
| 10999 |
– |
if test "$cgal_have_lib" == yes; then |
| 11000 |
– |
acx_cgal_found=yes |
| 11001 |
– |
fi |
| 11002 |
– |
fi |
| 11003 |
– |
if test "$acx_cgal_found" == yes; then |
| 11004 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCore" >&5 |
| 11005 |
– |
$as_echo_n "checking for main in -lCore... " >&6; } |
| 11006 |
– |
if test "${ac_cv_lib_Core_main+set}" = set; then : |
| 11007 |
– |
$as_echo_n "(cached) " >&6 |
| 11008 |
– |
else |
| 11009 |
– |
ac_check_lib_save_LIBS=$LIBS |
| 11010 |
– |
LIBS="-lCore $LIBS" |
| 11011 |
– |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11012 |
– |
/* end confdefs.h. */ |
| 11013 |
– |
|
| 11014 |
– |
|
| 11015 |
– |
#ifdef FC_DUMMY_MAIN |
| 11016 |
– |
#ifndef FC_DUMMY_MAIN_EQ_F77 |
| 11017 |
– |
# ifdef __cplusplus |
| 11018 |
– |
extern "C" |
| 11019 |
– |
# endif |
| 11020 |
– |
int FC_DUMMY_MAIN() { return 1; } |
| 11021 |
– |
#endif |
| 11022 |
– |
#endif |
| 11023 |
– |
int |
| 11024 |
– |
main () |
| 11025 |
– |
{ |
| 11026 |
– |
return main (); |
| 11027 |
– |
; |
| 11028 |
– |
return 0; |
| 11029 |
– |
} |
| 11030 |
– |
_ACEOF |
| 11031 |
– |
if ac_fn_c_try_link "$LINENO"; then : |
| 11032 |
– |
ac_cv_lib_Core_main=yes |
| 11033 |
– |
else |
| 11034 |
– |
ac_cv_lib_Core_main=no |
| 11035 |
– |
fi |
| 11036 |
– |
rm -f core conftest.err conftest.$ac_objext \ |
| 11037 |
– |
conftest$ac_exeext conftest.$ac_ext |
| 11038 |
– |
LIBS=$ac_check_lib_save_LIBS |
| 11039 |
– |
fi |
| 11040 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Core_main" >&5 |
| 11041 |
– |
$as_echo "$ac_cv_lib_Core_main" >&6; } |
| 11042 |
– |
if test "x$ac_cv_lib_Core_main" = x""yes; then : |
| 11043 |
– |
CGAL_LIBS="$CGAL_LIBS -lCore" |
| 11044 |
– |
fi |
| 11045 |
– |
|
| 11046 |
– |
fi |
| 11047 |
– |
fi |
| 11048 |
– |
|
| 11049 |
– |
|
| 11050 |
– |
|
| 11051 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CGAL" >&5 |
| 11052 |
– |
$as_echo_n "checking CGAL... " >&6; } |
| 11053 |
– |
|
| 11054 |
– |
|
| 11055 |
– |
|
| 11056 |
– |
|
| 11057 |
– |
|
| 11058 |
– |
if test "$acx_cgal_found" == yes; then |
| 11059 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11060 |
– |
$as_echo "yes" >&6; } |
| 11061 |
– |
|
| 11062 |
– |
else |
| 11063 |
– |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11064 |
– |
$as_echo "no" >&6; } |
| 11065 |
– |
|
| 11066 |
– |
fi |
| 11067 |
– |
USE_CGAL=no |
| 11068 |
– |
if test "$acx_cgal_found" == yes; then |
| 11069 |
– |
USE_CGAL=yes |
| 11070 |
– |
|
| 11071 |
– |
$as_echo "#define HAVE_CGAL 1" >>confdefs.h |
| 11072 |
– |
|
| 11073 |
– |
|
| 11074 |
– |
|
| 11075 |
– |
|
| 11076 |
– |
|
| 11077 |
– |
fi |
| 11078 |
– |
|
| 11079 |
– |
|
| 11080 |
– |
|
| 11081 |
– |
|
| 9448 |
|
# Check whether --enable-doxygen was given. |
| 9449 |
|
if test "${enable_doxygen+set}" = set; then : |
| 9450 |
|
enableval=$enable_doxygen; |
| 10104 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
| 10105 |
|
# values after options handling. |
| 10106 |
|
ac_log=" |
| 10107 |
< |
This file was extended by OOPSE $as_me 4.0, which was |
| 10108 |
< |
generated by GNU Autoconf 2.64. Invocation command line was |
| 10107 |
> |
This file was extended by OpenMD $as_me 1.0, which was |
| 10108 |
> |
generated by GNU Autoconf 2.65. Invocation command line was |
| 10109 |
|
|
| 10110 |
|
CONFIG_FILES = $CONFIG_FILES |
| 10111 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
| 10144 |
|
|
| 10145 |
|
-h, --help print this help, then exit |
| 10146 |
|
-V, --version print version number and configuration settings, then exit |
| 10147 |
+ |
--config print configuration, then exit |
| 10148 |
|
-q, --quiet, --silent |
| 10149 |
|
do not print progress messages |
| 10150 |
|
-d, --debug don't remove temporary files |
| 10164 |
|
|
| 10165 |
|
_ACEOF |
| 10166 |
|
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 10167 |
+ |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 10168 |
|
ac_cs_version="\\ |
| 10169 |
< |
OOPSE config.status 4.0 |
| 10170 |
< |
configured by $0, generated by GNU Autoconf 2.64, |
| 10171 |
< |
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 10169 |
> |
OpenMD config.status 1.0 |
| 10170 |
> |
configured by $0, generated by GNU Autoconf 2.65, |
| 10171 |
> |
with options \\"\$ac_cs_config\\" |
| 10172 |
|
|
| 10173 |
|
Copyright (C) 2009 Free Software Foundation, Inc. |
| 10174 |
|
This config.status script is free software; the Free Software Foundation |
| 10204 |
|
ac_cs_recheck=: ;; |
| 10205 |
|
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 10206 |
|
$as_echo "$ac_cs_version"; exit ;; |
| 10207 |
+ |
--config | --confi | --conf | --con | --co | --c ) |
| 10208 |
+ |
$as_echo "$ac_cs_config"; exit ;; |
| 10209 |
|
--debug | --debu | --deb | --de | --d | -d ) |
| 10210 |
|
debug=: ;; |
| 10211 |
|
--file | --fil | --fi | --f ) |
| 10391 |
|
t delim |
| 10392 |
|
:nl |
| 10393 |
|
h |
| 10394 |
< |
s/\(.\{148\}\).*/\1/ |
| 10394 |
> |
s/\(.\{148\}\)..*/\1/ |
| 10395 |
|
t more1 |
| 10396 |
|
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 10397 |
|
p |
| 10405 |
|
t nl |
| 10406 |
|
:delim |
| 10407 |
|
h |
| 10408 |
< |
s/\(.\{148\}\).*/\1/ |
| 10408 |
> |
s/\(.\{148\}\)..*/\1/ |
| 10409 |
|
t more2 |
| 10410 |
|
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 10411 |
|
p |