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

Comparing trunk/configure (file contents):
Revision 956 by gezelter, Tue May 16 02:06:37 2006 UTC vs.
Revision 1197 by chuckv, Thu Dec 6 20:40:07 2007 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.59 for OOPSE 3.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 4.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 269 | Line 269 | PACKAGE_TARNAME='oopse'
269   # Identity of this package.
270   PACKAGE_NAME='OOPSE'
271   PACKAGE_TARNAME='oopse'
272 < PACKAGE_VERSION='3.0'
273 < PACKAGE_STRING='OOPSE 3.0'
272 > PACKAGE_VERSION='4.0'
273 > PACKAGE_STRING='OOPSE 4.0'
274   PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
276   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 312 | Line 312 | ac_includes_default="\
312   # include <unistd.h>
313   #endif"
314  
315 < ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS'
315 > ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug USE_SINGLE_PRECISION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES ZLIB_INC_DIR ZLIB_LIB_DIR ZLIB FFTW_INC_DIR FFTW_LIB_DIR FFTW_LIBS LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_CXXFLAGS CGAL_LDFLAGS CGAL_CPPFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 801 | Line 801 | if test "$ac_init_help" = "long"; then
801    # Omit some internal or obsolete options to make the list less imposing.
802    # This message is too long to be a string in the A/UX 3.1 sh.
803    cat <<_ACEOF
804 < \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
804 > \`configure' configures OOPSE 4.0 to adapt to many kinds of systems.
805  
806   Usage: $0 [OPTION]... [VAR=VALUE]...
807  
# Line 862 | Line 862 | if test -n "$ac_init_help"; then
862  
863   if test -n "$ac_init_help"; then
864    case $ac_init_help in
865 <     short | recursive ) echo "Configuration of OOPSE 3.0:";;
865 >     short | recursive ) echo "Configuration of OOPSE 4.0:";;
866     esac
867    cat <<\_ACEOF
868  
# Line 871 | Line 871 | Optional Features:
871    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872    --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
873    --enable-debug          Compile OOPSE in debug mode
874 +  --enable-single         compile OOPSE in single precision
875 +  --enable-float          synonym for --enable-single
876    --enable-doxygen        enable documentation generation with doxygen (auto)
877    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
878    --enable-html-docs      enable HTML generation with doxygen (yes)
# Line 881 | Line 883 | Optional Packages:
883    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
884    --with-perl-shebang     override what perl thinks is the way for the kernel
885                            to start it (seldom needed)
886 <  --with-zlib=DIR root directory path of zlib installation defaults to
887 <                    /usr/local or /usr if not found in /usr/local
888 <  --without-zlib to disable zlib usage completely
889 <  --without-fftw          if you turn this off you cannot compute undulation spectra
886 >  --with-zlib=DIR         root directory path of zlib installation (defaults
887 >                          to /usr/local or /usr if not found in /usr/local)
888 >  --with-fftw=DIR         root directory path of fftw installation (defaults
889 >                          to /usr/local or /usr if not found in /usr/local)
890    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
891 <  --with-cgal-makefile=FILE  CGAL makefile that should be used
891 >  --with-cgalmakefile=makefile
892 >                          Use the following CGAL makefile
893  
894   Some influential environment variables:
895    CXX         C++ compiler command
# Line 1001 | Line 1004 | if $ac_init_version; then
1004   test -n "$ac_init_help" && exit 0
1005   if $ac_init_version; then
1006    cat <<\_ACEOF
1007 < OOPSE configure 3.0
1007 > OOPSE configure 4.0
1008   generated by GNU Autoconf 2.59
1009  
1010   Copyright (C) 2003 Free Software Foundation, Inc.
# Line 1015 | Line 1018 | running configure, to aid debugging if configure makes
1018   This file contains any messages produced by compilers while
1019   running configure, to aid debugging if configure makes a mistake.
1020  
1021 < It was created by OOPSE $as_me 3.0, which was
1021 > It was created by OOPSE $as_me 4.0, which was
1022   generated by GNU Autoconf 2.59.  Invocation command line was
1023  
1024    $ $0 $@
# Line 1414 | Line 1417 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1417  
1418  
1419  
1417 # ACX_CHECK_FFTW()
1418 # ----------------
1419 # This macro checks for fftw header files and libraries,
1420 # including the possible prefixing with s or d to determine precision.
1421 # Arg 1 is the fftw header/library name to check for, without
1422 # prefix or anything else (e.g. rfftw_mpi for real MPI transforms)
1423 # Arg 2 is the size of the real variable used.
1420  
1421  
1422  
# Line 1429 | Line 1425 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1425  
1426  
1427  
1428 + #
1429 + #
1430 + #
1431  
1432  
1433  
1434  
1436 #
1437 #
1438 #
1435  
1436  
1437   # AC_F90_MODULE_NAMES
# Line 1444 | Line 1440 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1440   # Figure out how the Fortran 90 compiler constructs module file names
1441   #
1442   # AC_F90_MODULE_NAMES
1443 +
1444 +
1445 +
1446 +
1447 +
1448 +
1449 +
1450 +
1451 +
1452 +
1453 +
1454 +
1455 +
1456 +
1457 +
1458 +
1459 +
1460 +
1461 +
1462 +
1463 +
1464 +
1465 +
1466 +
1467 +
1468 +
1469 +
1470 +
1471 +
1472 +
1473 +
1474 +
1475 +
1476 +
1477 +
1478 +
1479 +
1480 +
1481 +
1482 +
1483 +
1484 +
1485 +
1486 +
1487 +
1488 +
1489 +
1490 +
1491 +
1492 +
1493 +
1494 +
1495 +
1496  
1497  
1498  
# Line 1480 | Line 1529 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1529  
1530  
1531  
1532 +
1533 +
1534 +
1535 +
1536 +
1537 +
1538 +
1539 +
1540 +
1541 +
1542 +
1543 +
1544 +
1545 +
1546 +
1547 +
1548 +
1549 +
1550 +
1551 +
1552 + # This is taken from http://autoqt.sourceforge.net/
1553 + # Copyright (c) 2002, Geoffrey Wossum
1554 + # All rights reserved.
1555 +
1556 + # Redistribution and use in source and binary forms, with or without
1557 + # modification, are permitted provided that the following conditions are
1558 + # met:
1559 +
1560 + #  - Redistributions of source code must retain the above copyright notice,
1561 + #    this list of conditions and the following disclaimer.
1562 +
1563 + #  - Redistributions in binary form must reproduce the above copyright
1564 + #    notice, this list of conditions and the following disclaimer in the
1565 + #    documentation and/or other materials provided with the distribution.
1566 +
1567 + #  - Neither the name of Geoffrey Wossum nor the names of its
1568 + #    contributors may be used to endorse or promote products derived from
1569 + #    this software without specific prior written permission.
1570 +
1571 +
1572 + # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1573 + # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1574 + # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1575 + # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
1576 + # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1577 + # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
1578 + # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
1579 + # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
1580 + # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
1581 + # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
1582 + # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1583 +
1584 +
1585 + # Check for Qt compiler flags, linker flags, and binary packages
1586 +
1587 +
1588 +
1589   # who am i
1590   # Make sure we can run config.sub.
1591   $ac_config_sub sun4 >/dev/null 2>&1 ||
# Line 1577 | Line 1683 | fi
1683  
1684    msg="$msg, debug mode"
1685   fi
1686 +
1687 +
1688 + # Check whether --enable-single or --disable-single was given.
1689 + if test "${enable_single+set}" = set; then
1690 +  enableval="$enable_single"
1691 +  ok=$enableval
1692 + else
1693 +  ok=no
1694 + fi;
1695 + # Check whether --enable-float or --disable-float was given.
1696 + if test "${enable_float+set}" = set; then
1697 +  enableval="$enable_float"
1698 +  ok=$enableval
1699 + fi;
1700 + if test "$ok" = "yes"; then
1701  
1702 + cat >>confdefs.h <<\_ACEOF
1703 + #define SINGLE_PRECISION 1
1704 + _ACEOF
1705  
1706 +        USE_SINGLE_PRECISION=yes
1707 +
1708 + fi
1709 +
1710   # Checks for programs.
1711   ac_ext=cc
1712   ac_cpp='$CXXCPP $CPPFLAGS'
# Line 1586 | Line 1714 | if test -n "$ac_tool_prefix"; then
1714   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1716   if test -n "$ac_tool_prefix"; then
1717 <  for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC
1717 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1718    do
1719      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1720   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 1628 | Line 1756 | if test -z "$CXX"; then
1756   fi
1757   if test -z "$CXX"; then
1758    ac_ct_CXX=$CXX
1759 <  for ac_prog in $CCC icpc icc pgCC pathCC c++ xlc++ xlC g++ CC
1759 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1760   do
1761    # Extract the first word of "$ac_prog", so it can be a program name with args.
1762   set dummy $ac_prog; ac_word=$2
# Line 2142 | Line 2270 | if test -n "$ac_tool_prefix"; then
2270   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2271   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272   if test -n "$ac_tool_prefix"; then
2273 <  for ac_prog in icc pgcc pathcc cc xlc gcc
2273 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2274    do
2275      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2184 | Line 2312 | if test -z "$CC"; then
2312   fi
2313   if test -z "$CC"; then
2314    ac_ct_CC=$CC
2315 <  for ac_prog in icc pgcc pathcc cc xlc gcc
2315 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2316   do
2317    # Extract the first word of "$ac_prog", so it can be a program name with args.
2318   set dummy $ac_prog; ac_word=$2
# Line 2653 | Line 2781 | if test -n "$ac_tool_prefix"; then
2781   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
2782   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2783   if test -n "$ac_tool_prefix"; then
2784 <  for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2784 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2785    do
2786      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2695 | Line 2823 | if test -z "$FC"; then
2823   fi
2824   if test -z "$FC"; then
2825    ac_ct_FC=$FC
2826 <  for ac_prog in ifort ifc pgf95 pathf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2826 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2827   do
2828    # Extract the first word of "$ac_prog", so it can be a program name with args.
2829   set dummy $ac_prog; ac_word=$2
# Line 2740 | Line 2868 | fi
2868  
2869  
2870   # Provide some information about the compiler.
2871 < echo "$as_me:2743:" \
2871 > echo "$as_me:2871:" \
2872       "checking for Fortran compiler version" >&5
2873   ac_compiler=`set X $ac_compile; echo $2`
2874   { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 3492 | Line 3620 | if test "$AR" = "NONE"; then
3620   fi
3621  
3622   if test "$AR" = "NONE"; then
3495  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
3496 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3497   { (exit 1); exit 1; }; }
3623    cat >confcache <<\_ACEOF
3624   # This file is a shell script that caches the results of configure
3625   # tests run on this system so they can be shared between configure
# Line 3991 | Line 4116 | FCFLAGS="$FCFLAGS $ac_verb"
4116   # flags.
4117   ac_save_FFLAGS=$FCFLAGS
4118   FCFLAGS="$FCFLAGS $ac_verb"
4119 < (eval echo $as_me:3994: \"$ac_link\") >&5
4119 > (eval echo $as_me:4119: \"$ac_link\") >&5
4120   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4121   echo "$ac_fc_v_output" >&5
4122   FCFLAGS=$ac_save_FFLAGS
# Line 4069 | Line 4194 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4194   # flags.
4195   ac_save_FFLAGS=$FCFLAGS
4196   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4197 < (eval echo $as_me:4072: \"$ac_link\") >&5
4197 > (eval echo $as_me:4197: \"$ac_link\") >&5
4198   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4199   echo "$ac_fc_v_output" >&5
4200   FCFLAGS=$ac_save_FFLAGS
# Line 4805 | Line 4930 | FCFLAGS="$FCFLAGS $ac_verb"
4930   # flags.
4931   ac_save_FFLAGS=$FCFLAGS
4932   FCFLAGS="$FCFLAGS $ac_verb"
4933 < (eval echo $as_me:4808: \"$ac_link\") >&5
4933 > (eval echo $as_me:4933: \"$ac_link\") >&5
4934   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4935   echo "$ac_fc_v_output" >&5
4936   FCFLAGS=$ac_save_FFLAGS
# Line 4883 | Line 5008 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5008   # flags.
5009   ac_save_FFLAGS=$FCFLAGS
5010   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5011 < (eval echo $as_me:4886: \"$ac_link\") >&5
5011 > (eval echo $as_me:5011: \"$ac_link\") >&5
5012   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
5013   echo "$ac_fc_v_output" >&5
5014   FCFLAGS=$ac_save_FFLAGS
# Line 5760 | Line 5885 | done
5885   #
5886   # Handle user hints
5887   #
5763 echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5764 echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5888  
5889   # Check whether --with-zlib or --without-zlib was given.
5890   if test "${with_zlib+set}" = set; then
5891    withval="$with_zlib"
5892 <  if test "$withval" != no ; then
5893 <  echo "$as_me:$LINENO: result: yes" >&5
5894 < echo "${ECHO_T}yes" >&6
5895 <  if test -d "$withval"
5896 <  then
5897 <    ZLIB_HOME="$withval"
5892 >  zlib_dir="$withval"
5893 > else
5894 >                zlib_dir="not_set"
5895 > fi;
5896 > if test "$zlib_dir" != "no"; then
5897 >
5898 > if test "$zlib_dir" != "not_set" ; then
5899 >  if test -d "$zlib_dir"
5900 >  then
5901 >    ZLIB_HOME="$zlib_dir"
5902    else
5903 <    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5904 < echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5903 >    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
5904 > echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
5905    fi
5779 else
5780  echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6
5906   fi
5783 fi;
5907  
5908   ZLIB_HOME=/usr/local
5909   if test ! -f "${ZLIB_HOME}/include/zlib.h"
# Line 6033 | Line 6156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158  
6036        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
6037        then
6038                #
6039                # If both library and header were found, use them
6040                #
6159  
6160 < echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6043 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
6044 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6045 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6046 < else
6047 <  ac_check_lib_save_LIBS=$LIBS
6048 < LIBS="-lz  $LIBS"
6049 < cat >conftest.$ac_ext <<_ACEOF
6050 < /* confdefs.h.  */
6051 < _ACEOF
6052 < cat confdefs.h >>conftest.$ac_ext
6053 < cat >>conftest.$ac_ext <<_ACEOF
6054 < /* end confdefs.h.  */
6160 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
6161  
6162 < /* Override any gcc2 internal prototype to avoid an error.  */
6163 < #ifdef __cplusplus
6058 < extern "C"
6059 < #endif
6060 < /* We use char because int might match the return type of a gcc2
6061 <   builtin and then its argument prototype would still apply.  */
6062 < char inflateEnd ();
6063 < #ifdef FC_DUMMY_MAIN
6064 < #ifndef FC_DUMMY_MAIN_EQ_F77
6065 < #  ifdef __cplusplus
6066 <     extern "C"
6067 < #  endif
6068 <   int FC_DUMMY_MAIN() { return 1; }
6069 < #endif
6070 < #endif
6071 < int
6072 < main ()
6073 < {
6074 < inflateEnd ();
6075 <  ;
6076 <  return 0;
6077 < }
6162 > cat >>confdefs.h <<\_ACEOF
6163 > #define HAVE_ZLIB_H 1
6164   _ACEOF
6165 < rm -f conftest.$ac_objext conftest$ac_exeext
6080 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6081 <  (eval $ac_link) 2>conftest.er1
6082 <  ac_status=$?
6083 <  grep -v '^ *+' conftest.er1 >conftest.err
6084 <  rm -f conftest.er1
6085 <  cat conftest.err >&5
6086 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 <  (exit $ac_status); } &&
6088 <         { ac_try='test -z "$ac_c_werror_flag"
6089 <                         || test ! -s conftest.err'
6090 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 <  (eval $ac_try) 2>&5
6092 <  ac_status=$?
6093 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 <  (exit $ac_status); }; } &&
6095 <         { ac_try='test -s conftest$ac_exeext'
6096 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 <  (eval $ac_try) 2>&5
6098 <  ac_status=$?
6099 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 <  (exit $ac_status); }; }; then
6101 <  ac_cv_lib_z_inflateEnd=yes
6102 < else
6103 <  echo "$as_me: failed program was:" >&5
6104 < sed 's/^/| /' conftest.$ac_ext >&5
6165 >
6166  
6167 < ac_cv_lib_z_inflateEnd=no
6107 < fi
6108 < rm -f conftest.err conftest.$ac_objext \
6109 <      conftest$ac_exeext conftest.$ac_ext
6110 < LIBS=$ac_check_lib_save_LIBS
6111 < fi
6112 < echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
6113 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
6114 < if test $ac_cv_lib_z_inflateEnd = yes; then
6115 <  cat >>confdefs.h <<_ACEOF
6167 > cat >>confdefs.h <<\_ACEOF
6168   #define HAVE_LIBZ 1
6169   _ACEOF
6170  
6171 <  LIBS="-lz $LIBS"
6172 <
6173 < fi
6122 <
6123 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6124 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6125 <                echo "$as_me:$LINENO: result: ok" >&5
6126 < echo "${ECHO_T}ok" >&6
6171 >                ZLIB_INC_DIR="${ZLIB_HOME}/include"
6172 >                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
6173 >                ZLIB="-lz"
6174          else
6128                #
6129                # If either header or library was not found, revert and bomb
6130                #
6175                  echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6176   echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6177 +                ZLIB_INC_DIR=
6178 +                ZLIB_LIB_DIR=
6179 +                ZLIB=
6180                  LDFLAGS="$ZLIB_OLD_LDFLAGS"
6181                  CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6182                  echo "$as_me:$LINENO: result: failed" >&5
6183   echo "${ECHO_T}failed" >&6
6184 <                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
6185 < echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
6186 <   { (exit 1); exit 1; }; }
6184 >                echo ""
6185 >                echo "*********************************************************"
6186 >                echo "* WARNING: Could not find a working zlib installation   *"
6187 >                echo "* If you need OOPSE to be able to deal with compressed  *"
6188 >                echo "* trajectory dump files be sure to specify a valid zlib *"
6189 >                echo "* installation with --with-zlib=DIR                     *"
6190 >                echo "*                                                       *"
6191 >                echo "* OOPSE will still work without zlib installed.         *"
6192 >                echo "*********************************************************"
6193 >                echo ""
6194          fi
6141 fi
6195  
6196  
6197  
6198 + fi
6199 + fi
6200 +
6201 + #
6202 + # Handle user hints
6203 + #
6204 +
6205   # Check whether --with-fftw or --without-fftw was given.
6206   if test "${with_fftw+set}" = set; then
6207    withval="$with_fftw"
6208 <
6208 >  fftw_dir="$withval"
6209   else
6210 <  with_fftw=yes
6210 >             fftw_dir="not_set"
6211   fi;
6212 < if test "$with_fftw" = "no"; then
6213 <
6214 < cat >>confdefs.h <<\_ACEOF
6215 < #define WITHOUT_FFTW
6216 < _ACEOF
6217 <
6218 < fi
6219 < if test "$with_fftw" = "yes"; then
6220 <  sizeof_real=8
6212 > if test "$fftw_dir" != "no"; then
6213 >  if test "$fftw_dir" != "not_set" ; then
6214 >    if test -d "$fftw_dir"; then
6215 >      FFTW_HOME="$fftw_dir"
6216 >    else
6217 >      { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6218 > echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6219 >      FFTW_HOME=/usr/local
6220 >      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
6221 >        FFTW_HOME=/usr
6222 >      fi
6223 >    fi
6224 >    #
6225 >    # Locate fftw, if wanted
6226 >    #
6227 >    if test -n "${FFTW_HOME}"; then
6228 >      FFTW_OLD_LDFLAGS=$LDFLAGS
6229 >      FFTW_OLD_CPPFLAGS=$LDFLAGS
6230 >      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6231 >      CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6232  
6233  
6234 < if test -z "$ac_fftw_firstname"; then
6234 >      ac_ext=c
6235 > ac_cpp='$CPP $CPPFLAGS'
6236 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239  
6240 < sizeof_real=$sizeof_real
6241 < if test $sizeof_real = 8; then
6242 <  prec="double"
6243 <  fftwcheckprefix=d
6240 >      echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6241 > echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6
6242 > if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6243 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6244   else
6245 <  prec="single"
6246 <  fftwcheckprefix=s
6172 < fi
6173 <
6174 < xfftwname=${fftwcheckprefix}fftw3
6175 <
6176 < ok="no"
6177 < # check header doesn't work, since we must use mpicc to get includes,
6178 < # we cant trust cpp.
6179 < echo "$as_me:$LINENO: checking for $xfftwname.h" >&5
6180 < echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
6245 >  ac_check_lib_save_LIBS=$LIBS
6246 > LIBS="-lfftw3  $LIBS"
6247   cat >conftest.$ac_ext <<_ACEOF
6248   /* confdefs.h.  */
6249   _ACEOF
6250   cat confdefs.h >>conftest.$ac_ext
6251   cat >>conftest.$ac_ext <<_ACEOF
6252   /* end confdefs.h.  */
6187 #include <$xfftwname.h>
6188 #ifdef FC_DUMMY_MAIN
6189 #ifndef FC_DUMMY_MAIN_EQ_F77
6190 #  ifdef __cplusplus
6191     extern "C"
6192 #  endif
6193   int FC_DUMMY_MAIN() { return 1; }
6194 #endif
6195 #endif
6196 int
6197 main ()
6198 {
6253  
6254 <  ;
6255 <  return 0;
6256 < }
6257 < _ACEOF
6258 < rm -f conftest.$ac_objext
6259 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260 <  (eval $ac_compile) 2>conftest.er1
6207 <  ac_status=$?
6208 <  grep -v '^ *+' conftest.er1 >conftest.err
6209 <  rm -f conftest.er1
6210 <  cat conftest.err >&5
6211 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 <  (exit $ac_status); } &&
6213 <         { ac_try='test -z "$ac_c_werror_flag"
6214 <                         || test ! -s conftest.err'
6215 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 <  (eval $ac_try) 2>&5
6217 <  ac_status=$?
6218 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 <  (exit $ac_status); }; } &&
6220 <         { ac_try='test -s conftest.$ac_objext'
6221 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 <  (eval $ac_try) 2>&5
6223 <  ac_status=$?
6224 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 <  (exit $ac_status); }; }; then
6226 <
6227 < fftwname=$xfftwname
6228 < echo "$as_me:$LINENO: result: yes" >&5
6229 < echo "${ECHO_T}yes" >&6
6230 <
6231 < else
6232 <  echo "$as_me: failed program was:" >&5
6233 < sed 's/^/| /' conftest.$ac_ext >&5
6234 <
6235 < echo "$as_me:$LINENO: result: no" >&5
6236 < echo "${ECHO_T}no" >&6
6237 < fi
6238 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6239 <
6240 < # fftwname was set if we found a header
6241 <
6242 < if test -n "$fftwname"; then
6243 < # we cannot run the code since an MPI program might not be allowed
6244 < # on a login node of a supercomputer
6245 < cat >conftest.$ac_ext <<_ACEOF
6246 < /* confdefs.h.  */
6247 < _ACEOF
6248 < cat confdefs.h >>conftest.$ac_ext
6249 < cat >>conftest.$ac_ext <<_ACEOF
6250 < /* end confdefs.h.  */
6251 < #include <$fftwname.h>
6254 > /* Override any gcc2 internal prototype to avoid an error.  */
6255 > #ifdef __cplusplus
6256 > extern "C"
6257 > #endif
6258 > /* We use char because int might match the return type of a gcc2
6259 >   builtin and then its argument prototype would still apply.  */
6260 > char fftw_execute ();
6261   #ifdef FC_DUMMY_MAIN
6262   #ifndef FC_DUMMY_MAIN_EQ_F77
6263   #  ifdef __cplusplus
# Line 6260 | Line 6269 | main ()
6269   int
6270   main ()
6271   {
6272 < int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
6272 > fftw_execute ();
6273    ;
6274    return 0;
6275   }
6276   _ACEOF
6277 < rm -f conftest.$ac_objext
6278 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 <  (eval $ac_compile) 2>conftest.er1
6277 > rm -f conftest.$ac_objext conftest$ac_exeext
6278 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 >  (eval $ac_link) 2>conftest.er1
6280    ac_status=$?
6281    grep -v '^ *+' conftest.er1 >conftest.err
6282    rm -f conftest.er1
# Line 6281 | Line 6290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6290    ac_status=$?
6291    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292    (exit $ac_status); }; } &&
6293 <         { ac_try='test -s conftest.$ac_objext'
6293 >         { ac_try='test -s conftest$ac_exeext'
6294    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295    (eval $ac_try) 2>&5
6296    ac_status=$?
6297    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298    (exit $ac_status); }; }; then
6299 <
6291 < ok=yes
6292 < usedprefix=$fftwcheckprefix
6293 <
6299 >  ac_cv_lib_fftw3_fftw_execute=yes
6300   else
6301    echo "$as_me: failed program was:" >&5
6302   sed 's/^/| /' conftest.$ac_ext >&5
6303  
6304 < ok=no
6304 > ac_cv_lib_fftw3_fftw_execute=no
6305   fi
6306 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306 > rm -f conftest.err conftest.$ac_objext \
6307 >      conftest$ac_exeext conftest.$ac_ext
6308 > LIBS=$ac_check_lib_save_LIBS
6309   fi
6310 + echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
6311 + echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6
6312 + if test $ac_cv_lib_fftw3_fftw_execute = yes; then
6313 +  fftw_cv_libfftw3=yes
6314 + else
6315 +  fftw_cv_libfftw3=no
6316 + fi
6317  
6318 < if test "$ok" != "yes"; then
6318 >      if test "${ac_cv_header_fftw3_h+set}" = set; then
6319    echo "$as_me:$LINENO: checking for fftw3.h" >&5
6320   echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6321 <  cat >conftest.$ac_ext <<_ACEOF
6321 > if test "${ac_cv_header_fftw3_h+set}" = set; then
6322 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6323 > fi
6324 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6325 > echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6326 > else
6327 >  # Is the header compilable?
6328 > echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6329 > echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6
6330 > cat >conftest.$ac_ext <<_ACEOF
6331   /* confdefs.h.  */
6332   _ACEOF
6333   cat confdefs.h >>conftest.$ac_ext
6334   cat >>conftest.$ac_ext <<_ACEOF
6335   /* end confdefs.h.  */
6336 + $ac_includes_default
6337   #include <fftw3.h>
6313 #ifdef FC_DUMMY_MAIN
6314 #ifndef FC_DUMMY_MAIN_EQ_F77
6315 #  ifdef __cplusplus
6316     extern "C"
6317 #  endif
6318   int FC_DUMMY_MAIN() { return 1; }
6319 #endif
6320 #endif
6321 int
6322 main ()
6323 {
6324
6325  ;
6326  return 0;
6327 }
6338   _ACEOF
6339   rm -f conftest.$ac_objext
6340   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 6348 | Line 6358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6358    ac_status=$?
6359    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360    (exit $ac_status); }; }; then
6361 <  echo "$as_me:$LINENO: result: yes" >&5
6352 < echo "${ECHO_T}yes" >&6
6361 >  ac_header_compiler=yes
6362   else
6363    echo "$as_me: failed program was:" >&5
6364   sed 's/^/| /' conftest.$ac_ext >&5
6365  
6366 <
6358 < echo "$as_me:$LINENO: result: no" >&5
6359 < echo "${ECHO_T}no" >&6
6360 < { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3.h
6361 < Do you have $prec precision FFTW installed? If you are using packages,
6362 < note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6363 < software at www.fftw.org.
6364 < If you compiled FFTW yourself:
6365 < Note that the default FFTW setup is double precision.  If you want MPI support,
6366 < use --with-mpi. It is a good idea to install both single & double.
6367 < If you have installed FFTW in a non-standard location, you should
6368 < provide the correct paths in the CPPFLAGS and LDFLAGS environment
6369 < variables before running configure.
6370 < That is also necessary to do if your compiler doesn't search
6371 < /usr/local/include and /usr/local/lib by default." >&5
6372 < echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3.h
6373 < Do you have $prec precision FFTW installed? If you are using packages,
6374 < note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6375 < software at www.fftw.org.
6376 < If you compiled FFTW yourself:
6377 < Note that the default FFTW setup is double precision.  If you want MPI support,
6378 < use --with-mpi. It is a good idea to install both single & double.
6379 < If you have installed FFTW in a non-standard location, you should
6380 < provide the correct paths in the CPPFLAGS and LDFLAGS environment
6381 < variables before running configure.
6382 < That is also necessary to do if your compiler doesn't search
6383 < /usr/local/include and /usr/local/lib by default." >&2;}
6384 <   { (exit 1); exit 1; }; }
6385 <
6366 > ac_header_compiler=no
6367   fi
6368   rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6370 + echo "${ECHO_T}$ac_header_compiler" >&6
6371 +
6372 + # Is the header present?
6373 + echo "$as_me:$LINENO: checking fftw3.h presence" >&5
6374 + echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6
6375   cat >conftest.$ac_ext <<_ACEOF
6376   /* confdefs.h.  */
6377   _ACEOF
# Line 6392 | Line 6379 | cat >>conftest.$ac_ext <<_ACEOF
6379   cat >>conftest.$ac_ext <<_ACEOF
6380   /* end confdefs.h.  */
6381   #include <fftw3.h>
6395 #ifdef FC_DUMMY_MAIN
6396 #ifndef FC_DUMMY_MAIN_EQ_F77
6397 #  ifdef __cplusplus
6398     extern "C"
6399 #  endif
6400   int FC_DUMMY_MAIN() { return 1; }
6401 #endif
6402 #endif
6403 int
6404 main ()
6405 {
6406 int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
6407  ;
6408  return 0;
6409 }
6382   _ACEOF
6383 < rm -f conftest.$ac_objext
6384 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 <  (eval $ac_compile) 2>conftest.er1
6383 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6384 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6385    ac_status=$?
6386    grep -v '^ *+' conftest.er1 >conftest.err
6387    rm -f conftest.er1
6388    cat conftest.err >&5
6389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 <  (exit $ac_status); } &&
6391 <         { ac_try='test -z "$ac_c_werror_flag"
6392 <                         || test ! -s conftest.err'
6393 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 <  (eval $ac_try) 2>&5
6395 <  ac_status=$?
6396 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 <  (exit $ac_status); }; } &&
6427 <         { ac_try='test -s conftest.$ac_objext'
6428 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 <  (eval $ac_try) 2>&5
6430 <  ac_status=$?
6431 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 <  (exit $ac_status); }; }; then
6433 <
6434 < usedprefix=""
6435 < fftwname=fftw3
6436 <
6390 >  (exit $ac_status); } >/dev/null; then
6391 >  if test -s conftest.err; then
6392 >    ac_cpp_err=$ac_c_preproc_warn_flag
6393 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6394 >  else
6395 >    ac_cpp_err=
6396 >  fi
6397   else
6398 +  ac_cpp_err=yes
6399 + fi
6400 + if test -z "$ac_cpp_err"; then
6401 +  ac_header_preproc=yes
6402 + else
6403    echo "$as_me: failed program was:" >&5
6404   sed 's/^/| /' conftest.$ac_ext >&5
6405  
6406 <
6442 < { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3.h
6443 < Do you have $prec precision FFTW installed? If you are using packages,
6444 < note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6445 < software at www.fftw.org.
6446 < If you compiled FFTW yourself:
6447 < Note that the default FFTW setup is double precision.  If you want MPI support,
6448 < use --with-mpi. It is a good idea to install both single & double.
6449 < If you have installed FFTW in a non-standard location, you should
6450 < provide the correct paths in the CPPFLAGS and LDFLAGS environment
6451 < variables before running configure.
6452 < That is also necessary to do if your compiler doesn't search
6453 < /usr/local/include and /usr/local/lib by default." >&5
6454 < echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3.h
6455 < Do you have $prec precision FFTW installed? If you are using packages,
6456 < note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6457 < software at www.fftw.org.
6458 < If you compiled FFTW yourself:
6459 < Note that the default FFTW setup is double precision.  If you want MPI support,
6460 < use --with-mpi. It is a good idea to install both single & double.
6461 < If you have installed FFTW in a non-standard location, you should
6462 < provide the correct paths in the CPPFLAGS and LDFLAGS environment
6463 < variables before running configure.
6464 < That is also necessary to do if your compiler doesn't search
6465 < /usr/local/include and /usr/local/lib by default." >&2;}
6466 <   { (exit 1); exit 1; }; }
6406 >  ac_header_preproc=no
6407   fi
6408 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409 < fi
6408 > rm -f conftest.err conftest.$ac_ext
6409 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 > echo "${ECHO_T}$ac_header_preproc" >&6
6411  
6412 <
6413 < as_ac_Lib=`echo "ac_cv_lib_$fftwname''_main" | $as_tr_sh`
6414 < echo "$as_me:$LINENO: checking for main in -l$fftwname" >&5
6415 < echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
6416 < if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6412 > # So?  What about this header?
6413 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6414 >  yes:no: )
6415 >    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
6416 > echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417 >    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
6418 > echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
6419 >    ac_header_preproc=yes
6420 >    ;;
6421 >  no:yes:* )
6422 >    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
6423 > echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
6424 >    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
6425 > echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
6426 >    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
6427 > echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
6428 >    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
6429 > echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6430 >    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
6431 > echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
6432 >    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
6433 > echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
6434 >    (
6435 >      cat <<\_ASBOX
6436 > ## ------------------------------ ##
6437 > ## Report this to gezelter@nd.edu ##
6438 > ## ------------------------------ ##
6439 > _ASBOX
6440 >    ) |
6441 >      sed "s/^/$as_me: WARNING:     /" >&2
6442 >    ;;
6443 > esac
6444 > echo "$as_me:$LINENO: checking for fftw3.h" >&5
6445 > echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6446 > if test "${ac_cv_header_fftw3_h+set}" = set; then
6447    echo $ECHO_N "(cached) $ECHO_C" >&6
6448   else
6449 <  ac_check_lib_save_LIBS=$LIBS
6450 < LIBS="-l$fftwname  $LIBS"
6451 < cat >conftest.$ac_ext <<_ACEOF
6452 < /* confdefs.h.  */
6482 < _ACEOF
6483 < cat confdefs.h >>conftest.$ac_ext
6484 < cat >>conftest.$ac_ext <<_ACEOF
6485 < /* end confdefs.h.  */
6486 <
6449 >  ac_cv_header_fftw3_h=$ac_header_preproc
6450 > fi
6451 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6452 > echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6453  
6488 #ifdef FC_DUMMY_MAIN
6489 #ifndef FC_DUMMY_MAIN_EQ_F77
6490 #  ifdef __cplusplus
6491     extern "C"
6492 #  endif
6493   int FC_DUMMY_MAIN() { return 1; }
6494 #endif
6495 #endif
6496 int
6497 main ()
6498 {
6499 main ();
6500  ;
6501  return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext conftest$ac_exeext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6506  (eval $ac_link) 2>conftest.er1
6507  ac_status=$?
6508  grep -v '^ *+' conftest.er1 >conftest.err
6509  rm -f conftest.er1
6510  cat conftest.err >&5
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); } &&
6513         { ac_try='test -z "$ac_c_werror_flag"
6514                         || test ! -s conftest.err'
6515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516  (eval $ac_try) 2>&5
6517  ac_status=$?
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); }; } &&
6520         { ac_try='test -s conftest$ac_exeext'
6521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522  (eval $ac_try) 2>&5
6523  ac_status=$?
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); }; }; then
6526  eval "$as_ac_Lib=yes"
6527 else
6528  echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 eval "$as_ac_Lib=no"
6454   fi
6455 < rm -f conftest.err conftest.$ac_objext \
6456 <      conftest$ac_exeext conftest.$ac_ext
6535 < LIBS=$ac_check_lib_save_LIBS
6536 < fi
6537 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6538 < echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6539 < if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6540 <  cat >>confdefs.h <<_ACEOF
6541 < #define `echo "HAVE_LIB$fftwname" | $as_tr_cpp` 1
6542 < _ACEOF
6543 <
6544 <  LIBS="-l$fftwname $LIBS"
6545 <
6455 > if test $ac_cv_header_fftw3_h = yes; then
6456 >  fftw_cv_fftw3_h=yes
6457   else
6458 <  { { echo "$as_me:$LINENO: error: Can't find a library to match the $fftwname header" >&5
6548 < echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
6549 <   { (exit 1); exit 1; }; }
6458 >  fftw_cv_fftw3_h=no
6459   fi
6460  
6552 ac_fftw_savedprefix=$usedprefix
6553 ac_fftw_firstname=$fftwname
6461  
6462 +      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
6463 +        echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
6464 + echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6
6465 + if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
6466 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6467   else
6468 <
6469 < fftwname=${ac_fftw_savedprefix}fftw3
6558 < echo "$as_me:$LINENO: checking for $fftwname.h" >&5
6559 < echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
6468 >  ac_check_lib_save_LIBS=$LIBS
6469 > LIBS="-lfftw  $LIBS"
6470   cat >conftest.$ac_ext <<_ACEOF
6471   /* confdefs.h.  */
6472   _ACEOF
6473   cat confdefs.h >>conftest.$ac_ext
6474   cat >>conftest.$ac_ext <<_ACEOF
6475   /* end confdefs.h.  */
6566 #include <$fftwname.h>
6567 #ifdef FC_DUMMY_MAIN
6568 #ifndef FC_DUMMY_MAIN_EQ_F77
6569 #  ifdef __cplusplus
6570     extern "C"
6571 #  endif
6572   int FC_DUMMY_MAIN() { return 1; }
6573 #endif
6574 #endif
6575 int
6576 main ()
6577 {
6476  
6477 <  ;
6478 <  return 0;
6479 < }
6480 < _ACEOF
6481 < rm -f conftest.$ac_objext
6482 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483 <  (eval $ac_compile) 2>conftest.er1
6586 <  ac_status=$?
6587 <  grep -v '^ *+' conftest.er1 >conftest.err
6588 <  rm -f conftest.er1
6589 <  cat conftest.err >&5
6590 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 <  (exit $ac_status); } &&
6592 <         { ac_try='test -z "$ac_c_werror_flag"
6593 <                         || test ! -s conftest.err'
6594 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 <  (eval $ac_try) 2>&5
6596 <  ac_status=$?
6597 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 <  (exit $ac_status); }; } &&
6599 <         { ac_try='test -s conftest.$ac_objext'
6600 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 <  (eval $ac_try) 2>&5
6602 <  ac_status=$?
6603 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 <  (exit $ac_status); }; }; then
6605 <  echo "$as_me:$LINENO: result: yes" >&5
6606 < echo "${ECHO_T}yes" >&6
6607 < LIBS="-l$fftwname $LIBS"
6608 < cat >conftest.$ac_ext <<_ACEOF
6609 < /* confdefs.h.  */
6610 < _ACEOF
6611 < cat confdefs.h >>conftest.$ac_ext
6612 < cat >>conftest.$ac_ext <<_ACEOF
6613 < /* end confdefs.h.  */
6614 <
6615 <
6477 > /* Override any gcc2 internal prototype to avoid an error.  */
6478 > #ifdef __cplusplus
6479 > extern "C"
6480 > #endif
6481 > /* We use char because int might match the return type of a gcc2
6482 >   builtin and then its argument prototype would still apply.  */
6483 > char fftwnd_one ();
6484   #ifdef FC_DUMMY_MAIN
6485   #ifndef FC_DUMMY_MAIN_EQ_F77
6486   #  ifdef __cplusplus
# Line 6624 | Line 6492 | main ()
6492   int
6493   main ()
6494   {
6495 < main ();
6495 > fftwnd_one ();
6496    ;
6497    return 0;
6498   }
# Line 6651 | Line 6519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519    ac_status=$?
6520    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521    (exit $ac_status); }; }; then
6522 <  :
6522 >  ac_cv_lib_fftw_fftwnd_one=yes
6523   else
6524    echo "$as_me: failed program was:" >&5
6525   sed 's/^/| /' conftest.$ac_ext >&5
6526  
6527 + ac_cv_lib_fftw_fftwnd_one=no
6528   fi
6529   rm -f conftest.err conftest.$ac_objext \
6530        conftest$ac_exeext conftest.$ac_ext
6531 + LIBS=$ac_check_lib_save_LIBS
6532 + fi
6533 + echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
6534 + echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6
6535 + if test $ac_cv_lib_fftw_fftwnd_one = yes; then
6536 +  fftw_cv_libfftw=yes
6537   else
6538 <  echo "$as_me: failed program was:" >&5
6664 < sed 's/^/| /' conftest.$ac_ext >&5
6665 <
6666 <
6667 < echo "$as_me:$LINENO: result: no" >&5
6668 < echo "${ECHO_T}no" >&6
6669 < { { echo "$as_me:$LINENO: error: Cant find $fftwname.h header. Make sure all your
6670 < fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
6671 < echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
6672 < fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
6673 <   { (exit 1); exit 1; }; }
6674 <
6538 >  fftw_cv_libfftw=no
6539   fi
6676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6540  
6541 +        if test "${ac_cv_header_fftw_h+set}" = set; then
6542 +  echo "$as_me:$LINENO: checking for fftw.h" >&5
6543 + echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6544 + if test "${ac_cv_header_fftw_h+set}" = set; then
6545 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6546   fi
6547 <
6548 <
6681 <
6682 <  if test "$with_mpi" = "yes"; then
6683 <
6684 < if test -z "$ac_fftw_firstname"; then
6685 <
6686 < sizeof_real=$sizeof_real
6687 < if test $sizeof_real = 8; then
6688 <  prec="double"
6689 <  fftwcheckprefix=d
6547 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6548 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6549   else
6550 <  prec="single"
6551 <  fftwcheckprefix=s
6552 < fi
6694 <
6695 < xfftwname=${fftwcheckprefix}fftw3_mpi
6696 <
6697 < ok="no"
6698 < # check header doesn't work, since we must use mpicc to get includes,
6699 < # we cant trust cpp.
6700 < echo "$as_me:$LINENO: checking for $xfftwname.h" >&5
6701 < echo $ECHO_N "checking for $xfftwname.h... $ECHO_C" >&6
6550 >  # Is the header compilable?
6551 > echo "$as_me:$LINENO: checking fftw.h usability" >&5
6552 > echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
6553   cat >conftest.$ac_ext <<_ACEOF
6554   /* confdefs.h.  */
6555   _ACEOF
6556   cat confdefs.h >>conftest.$ac_ext
6557   cat >>conftest.$ac_ext <<_ACEOF
6558   /* end confdefs.h.  */
6559 < #include <$xfftwname.h>
6560 < #ifdef FC_DUMMY_MAIN
6710 < #ifndef FC_DUMMY_MAIN_EQ_F77
6711 < #  ifdef __cplusplus
6712 <     extern "C"
6713 < #  endif
6714 <   int FC_DUMMY_MAIN() { return 1; }
6715 < #endif
6716 < #endif
6717 < int
6718 < main ()
6719 < {
6720 <
6721 <  ;
6722 <  return 0;
6723 < }
6559 > $ac_includes_default
6560 > #include <fftw.h>
6561   _ACEOF
6562   rm -f conftest.$ac_objext
6563   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 6744 | Line 6581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581    ac_status=$?
6582    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583    (exit $ac_status); }; }; then
6584 <
6748 < fftwname=$xfftwname
6749 < echo "$as_me:$LINENO: result: yes" >&5
6750 < echo "${ECHO_T}yes" >&6
6751 <
6584 >  ac_header_compiler=yes
6585   else
6586    echo "$as_me: failed program was:" >&5
6587   sed 's/^/| /' conftest.$ac_ext >&5
6588  
6589 < echo "$as_me:$LINENO: result: no" >&5
6757 < echo "${ECHO_T}no" >&6
6589 > ac_header_compiler=no
6590   fi
6591   rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6592 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 + echo "${ECHO_T}$ac_header_compiler" >&6
6594  
6595 < # fftwname was set if we found a header
6596 <
6597 < if test -n "$fftwname"; then
6764 < # we cannot run the code since an MPI program might not be allowed
6765 < # on a login node of a supercomputer
6595 > # Is the header present?
6596 > echo "$as_me:$LINENO: checking fftw.h presence" >&5
6597 > echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
6598   cat >conftest.$ac_ext <<_ACEOF
6599   /* confdefs.h.  */
6600   _ACEOF
6601   cat confdefs.h >>conftest.$ac_ext
6602   cat >>conftest.$ac_ext <<_ACEOF
6603   /* end confdefs.h.  */
6604 < #include <$fftwname.h>
6773 < #ifdef FC_DUMMY_MAIN
6774 < #ifndef FC_DUMMY_MAIN_EQ_F77
6775 < #  ifdef __cplusplus
6776 <     extern "C"
6777 < #  endif
6778 <   int FC_DUMMY_MAIN() { return 1; }
6779 < #endif
6780 < #endif
6781 < int
6782 < main ()
6783 < {
6784 < int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
6785 <  ;
6786 <  return 0;
6787 < }
6604 > #include <fftw.h>
6605   _ACEOF
6606 < rm -f conftest.$ac_objext
6607 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 <  (eval $ac_compile) 2>conftest.er1
6606 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6607 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6608    ac_status=$?
6609    grep -v '^ *+' conftest.er1 >conftest.err
6610    rm -f conftest.er1
6611    cat conftest.err >&5
6612    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 <  (exit $ac_status); } &&
6614 <         { ac_try='test -z "$ac_c_werror_flag"
6615 <                         || test ! -s conftest.err'
6616 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 <  (eval $ac_try) 2>&5
6618 <  ac_status=$?
6619 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 <  (exit $ac_status); }; } &&
6805 <         { ac_try='test -s conftest.$ac_objext'
6806 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 <  (eval $ac_try) 2>&5
6808 <  ac_status=$?
6809 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 <  (exit $ac_status); }; }; then
6811 <
6812 < ok=yes
6813 < usedprefix=$fftwcheckprefix
6814 <
6613 >  (exit $ac_status); } >/dev/null; then
6614 >  if test -s conftest.err; then
6615 >    ac_cpp_err=$ac_c_preproc_warn_flag
6616 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6617 >  else
6618 >    ac_cpp_err=
6619 >  fi
6620   else
6621 <  echo "$as_me: failed program was:" >&5
6817 < sed 's/^/| /' conftest.$ac_ext >&5
6818 <
6819 < ok=no
6621 >  ac_cpp_err=yes
6622   fi
6623 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6624 < fi
6823 <
6824 < if test "$ok" != "yes"; then
6825 <  echo "$as_me:$LINENO: checking for fftw3_mpi.h" >&5
6826 < echo $ECHO_N "checking for fftw3_mpi.h... $ECHO_C" >&6
6827 <  cat >conftest.$ac_ext <<_ACEOF
6828 < /* confdefs.h.  */
6829 < _ACEOF
6830 < cat confdefs.h >>conftest.$ac_ext
6831 < cat >>conftest.$ac_ext <<_ACEOF
6832 < /* end confdefs.h.  */
6833 < #include <fftw3_mpi.h>
6834 < #ifdef FC_DUMMY_MAIN
6835 < #ifndef FC_DUMMY_MAIN_EQ_F77
6836 < #  ifdef __cplusplus
6837 <     extern "C"
6838 < #  endif
6839 <   int FC_DUMMY_MAIN() { return 1; }
6840 < #endif
6841 < #endif
6842 < int
6843 < main ()
6844 < {
6845 <
6846 <  ;
6847 <  return 0;
6848 < }
6849 < _ACEOF
6850 < rm -f conftest.$ac_objext
6851 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6852 <  (eval $ac_compile) 2>conftest.er1
6853 <  ac_status=$?
6854 <  grep -v '^ *+' conftest.er1 >conftest.err
6855 <  rm -f conftest.er1
6856 <  cat conftest.err >&5
6857 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 <  (exit $ac_status); } &&
6859 <         { ac_try='test -z "$ac_c_werror_flag"
6860 <                         || test ! -s conftest.err'
6861 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 <  (eval $ac_try) 2>&5
6863 <  ac_status=$?
6864 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 <  (exit $ac_status); }; } &&
6866 <         { ac_try='test -s conftest.$ac_objext'
6867 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 <  (eval $ac_try) 2>&5
6869 <  ac_status=$?
6870 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 <  (exit $ac_status); }; }; then
6872 <  echo "$as_me:$LINENO: result: yes" >&5
6873 < echo "${ECHO_T}yes" >&6
6623 > if test -z "$ac_cpp_err"; then
6624 >  ac_header_preproc=yes
6625   else
6626    echo "$as_me: failed program was:" >&5
6627   sed 's/^/| /' conftest.$ac_ext >&5
6628  
6629 <
6879 < echo "$as_me:$LINENO: result: no" >&5
6880 < echo "${ECHO_T}no" >&6
6881 < { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h
6882 < Do you have $prec precision FFTW installed? If you are using packages,
6883 < note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6884 < software at www.fftw.org.
6885 < If you compiled FFTW yourself:
6886 < Note that the default FFTW setup is double precision.  If you want MPI support,
6887 < use --with-mpi. It is a good idea to install both single & double.
6888 < If you have installed FFTW in a non-standard location, you should
6889 < provide the correct paths in the CPPFLAGS and LDFLAGS environment
6890 < variables before running configure.
6891 < That is also necessary to do if your compiler doesn't search
6892 < /usr/local/include and /usr/local/lib by default." >&5
6893 < echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h
6894 < Do you have $prec precision FFTW installed? If you are using packages,
6895 < note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6896 < software at www.fftw.org.
6897 < If you compiled FFTW yourself:
6898 < Note that the default FFTW setup is double precision.  If you want MPI support,
6899 < use --with-mpi. It is a good idea to install both single & double.
6900 < If you have installed FFTW in a non-standard location, you should
6901 < provide the correct paths in the CPPFLAGS and LDFLAGS environment
6902 < variables before running configure.
6903 < That is also necessary to do if your compiler doesn't search
6904 < /usr/local/include and /usr/local/lib by default." >&2;}
6905 <   { (exit 1); exit 1; }; }
6906 <
6629 >  ac_header_preproc=no
6630   fi
6631 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6632 < cat >conftest.$ac_ext <<_ACEOF
6633 < /* confdefs.h.  */
6911 < _ACEOF
6912 < cat confdefs.h >>conftest.$ac_ext
6913 < cat >>conftest.$ac_ext <<_ACEOF
6914 < /* end confdefs.h.  */
6915 < #include <fftw3_mpi.h>
6916 < #ifdef FC_DUMMY_MAIN
6917 < #ifndef FC_DUMMY_MAIN_EQ_F77
6918 < #  ifdef __cplusplus
6919 <     extern "C"
6920 < #  endif
6921 <   int FC_DUMMY_MAIN() { return 1; }
6922 < #endif
6923 < #endif
6924 < int
6925 < main ()
6926 < {
6927 < int _array_ [1 - 2 * !((sizeof(fftw_real)) == $sizeof_real)];
6928 <  ;
6929 <  return 0;
6930 < }
6931 < _ACEOF
6932 < rm -f conftest.$ac_objext
6933 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6934 <  (eval $ac_compile) 2>conftest.er1
6935 <  ac_status=$?
6936 <  grep -v '^ *+' conftest.er1 >conftest.err
6937 <  rm -f conftest.er1
6938 <  cat conftest.err >&5
6939 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 <  (exit $ac_status); } &&
6941 <         { ac_try='test -z "$ac_c_werror_flag"
6942 <                         || test ! -s conftest.err'
6943 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 <  (eval $ac_try) 2>&5
6945 <  ac_status=$?
6946 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 <  (exit $ac_status); }; } &&
6948 <         { ac_try='test -s conftest.$ac_objext'
6949 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 <  (eval $ac_try) 2>&5
6951 <  ac_status=$?
6952 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 <  (exit $ac_status); }; }; then
6631 > rm -f conftest.err conftest.$ac_ext
6632 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6633 > echo "${ECHO_T}$ac_header_preproc" >&6
6634  
6635 < usedprefix=""
6636 < fftwname=fftw3_mpi
6637 <
6635 > # So?  What about this header?
6636 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6637 >  yes:no: )
6638 >    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6639 > echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6640 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
6641 > echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
6642 >    ac_header_preproc=yes
6643 >    ;;
6644 >  no:yes:* )
6645 >    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
6646 > echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
6647 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
6648 > echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
6649 >    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
6650 > echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
6651 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6652 > echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6653 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
6654 > echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
6655 >    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
6656 > echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
6657 >    (
6658 >      cat <<\_ASBOX
6659 > ## ------------------------------ ##
6660 > ## Report this to gezelter@nd.edu ##
6661 > ## ------------------------------ ##
6662 > _ASBOX
6663 >    ) |
6664 >      sed "s/^/$as_me: WARNING:     /" >&2
6665 >    ;;
6666 > esac
6667 > echo "$as_me:$LINENO: checking for fftw.h" >&5
6668 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6669 > if test "${ac_cv_header_fftw_h+set}" = set; then
6670 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6671   else
6672 <  echo "$as_me: failed program was:" >&5
6673 < sed 's/^/| /' conftest.$ac_ext >&5
6672 >  ac_cv_header_fftw_h=$ac_header_preproc
6673 > fi
6674 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6675 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6676  
6962
6963 { { echo "$as_me:$LINENO: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h
6964 Do you have $prec precision FFTW installed? If you are using packages,
6965 note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6966 software at www.fftw.org.
6967 If you compiled FFTW yourself:
6968 Note that the default FFTW setup is double precision.  If you want MPI support,
6969 use --with-mpi. It is a good idea to install both single & double.
6970 If you have installed FFTW in a non-standard location, you should
6971 provide the correct paths in the CPPFLAGS and LDFLAGS environment
6972 variables before running configure.
6973 That is also necessary to do if your compiler doesn't search
6974 /usr/local/include and /usr/local/lib by default." >&5
6975 echo "$as_me: error: Cannot find any $prec precision $xfftwname.h or fftw3_mpi.h
6976 Do you have $prec precision FFTW installed? If you are using packages,
6977 note that you also need fftw-devel to use FFTW with OOPSE. You can find the
6978 software at www.fftw.org.
6979 If you compiled FFTW yourself:
6980 Note that the default FFTW setup is double precision.  If you want MPI support,
6981 use --with-mpi. It is a good idea to install both single & double.
6982 If you have installed FFTW in a non-standard location, you should
6983 provide the correct paths in the CPPFLAGS and LDFLAGS environment
6984 variables before running configure.
6985 That is also necessary to do if your compiler doesn't search
6986 /usr/local/include and /usr/local/lib by default." >&2;}
6987   { (exit 1); exit 1; }; }
6677   fi
6678 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678 > if test $ac_cv_header_fftw_h = yes; then
6679 >  fftw_cv_fftw_h=yes
6680 > else
6681 >  fftw_cv_fftw_h=no
6682   fi
6683  
6684  
6685 < as_ac_Lib=`echo "ac_cv_lib_$fftwname''_main" | $as_tr_sh`
6686 < echo "$as_me:$LINENO: checking for main in -l$fftwname" >&5
6687 < echo $ECHO_N "checking for main in -l$fftwname... $ECHO_C" >&6
6688 < if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6685 >        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
6686 >          echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6687 > echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6
6688 > if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
6689    echo $ECHO_N "(cached) $ECHO_C" >&6
6690   else
6691    ac_check_lib_save_LIBS=$LIBS
6692 < LIBS="-l$fftwname  $LIBS"
6692 > LIBS="-ldfftw  $LIBS"
6693   cat >conftest.$ac_ext <<_ACEOF
6694   /* confdefs.h.  */
6695   _ACEOF
# Line 7005 | Line 6697 | cat >>conftest.$ac_ext <<_ACEOF
6697   cat >>conftest.$ac_ext <<_ACEOF
6698   /* end confdefs.h.  */
6699  
6700 <
6700 > /* Override any gcc2 internal prototype to avoid an error.  */
6701 > #ifdef __cplusplus
6702 > extern "C"
6703 > #endif
6704 > /* We use char because int might match the return type of a gcc2
6705 >   builtin and then its argument prototype would still apply.  */
6706 > char fftwnd_one ();
6707   #ifdef FC_DUMMY_MAIN
6708   #ifndef FC_DUMMY_MAIN_EQ_F77
6709   #  ifdef __cplusplus
# Line 7017 | Line 6715 | main ()
6715   int
6716   main ()
6717   {
6718 < main ();
6718 > fftwnd_one ();
6719    ;
6720    return 0;
6721   }
# Line 7044 | Line 6742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742    ac_status=$?
6743    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744    (exit $ac_status); }; }; then
6745 <  eval "$as_ac_Lib=yes"
6745 >  ac_cv_lib_dfftw_fftwnd_one=yes
6746   else
6747    echo "$as_me: failed program was:" >&5
6748   sed 's/^/| /' conftest.$ac_ext >&5
6749  
6750 < eval "$as_ac_Lib=no"
6750 > ac_cv_lib_dfftw_fftwnd_one=no
6751   fi
6752   rm -f conftest.err conftest.$ac_objext \
6753        conftest$ac_exeext conftest.$ac_ext
6754   LIBS=$ac_check_lib_save_LIBS
6755   fi
6756 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6757 < echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6758 < if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6759 <  cat >>confdefs.h <<_ACEOF
7062 < #define `echo "HAVE_LIB$fftwname" | $as_tr_cpp` 1
7063 < _ACEOF
7064 <
7065 <  LIBS="-l$fftwname $LIBS"
7066 <
6756 > echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
6757 > echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6
6758 > if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
6759 >  fftw_cv_libdfftw=yes
6760   else
6761 <  { { echo "$as_me:$LINENO: error: Can't find a library to match the $fftwname header" >&5
7069 < echo "$as_me: error: Can't find a library to match the $fftwname header" >&2;}
7070 <   { (exit 1); exit 1; }; }
6761 >  fftw_cv_libdfftw=no
6762   fi
6763  
6764 < ac_fftw_savedprefix=$usedprefix
6765 < ac_fftw_firstname=$fftwname
6766 <
6764 >          if test "${ac_cv_header_dfftw_h+set}" = set; then
6765 >  echo "$as_me:$LINENO: checking for dfftw.h" >&5
6766 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6767 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6768 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6769 > fi
6770 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6771 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6772   else
6773 <
6774 < fftwname=${ac_fftw_savedprefix}fftw3_mpi
6775 < echo "$as_me:$LINENO: checking for $fftwname.h" >&5
7080 < echo $ECHO_N "checking for $fftwname.h... $ECHO_C" >&6
6773 >  # Is the header compilable?
6774 > echo "$as_me:$LINENO: checking dfftw.h usability" >&5
6775 > echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6
6776   cat >conftest.$ac_ext <<_ACEOF
6777   /* confdefs.h.  */
6778   _ACEOF
6779   cat confdefs.h >>conftest.$ac_ext
6780   cat >>conftest.$ac_ext <<_ACEOF
6781   /* end confdefs.h.  */
6782 < #include <$fftwname.h>
6783 < #ifdef FC_DUMMY_MAIN
7089 < #ifndef FC_DUMMY_MAIN_EQ_F77
7090 < #  ifdef __cplusplus
7091 <     extern "C"
7092 < #  endif
7093 <   int FC_DUMMY_MAIN() { return 1; }
7094 < #endif
7095 < #endif
7096 < int
7097 < main ()
7098 < {
7099 <
7100 <  ;
7101 <  return 0;
7102 < }
6782 > $ac_includes_default
6783 > #include <dfftw.h>
6784   _ACEOF
6785   rm -f conftest.$ac_objext
6786   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 7123 | Line 6804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804    ac_status=$?
6805    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806    (exit $ac_status); }; }; then
6807 <  echo "$as_me:$LINENO: result: yes" >&5
6808 < echo "${ECHO_T}yes" >&6
6809 < LIBS="-l$fftwname $LIBS"
6807 >  ac_header_compiler=yes
6808 > else
6809 >  echo "$as_me: failed program was:" >&5
6810 > sed 's/^/| /' conftest.$ac_ext >&5
6811 >
6812 > ac_header_compiler=no
6813 > fi
6814 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6815 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6816 > echo "${ECHO_T}$ac_header_compiler" >&6
6817 >
6818 > # Is the header present?
6819 > echo "$as_me:$LINENO: checking dfftw.h presence" >&5
6820 > echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6
6821   cat >conftest.$ac_ext <<_ACEOF
6822   /* confdefs.h.  */
6823   _ACEOF
6824   cat confdefs.h >>conftest.$ac_ext
6825   cat >>conftest.$ac_ext <<_ACEOF
6826   /* end confdefs.h.  */
6827 + #include <dfftw.h>
6828 + _ACEOF
6829 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6830 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6831 +  ac_status=$?
6832 +  grep -v '^ *+' conftest.er1 >conftest.err
6833 +  rm -f conftest.er1
6834 +  cat conftest.err >&5
6835 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 +  (exit $ac_status); } >/dev/null; then
6837 +  if test -s conftest.err; then
6838 +    ac_cpp_err=$ac_c_preproc_warn_flag
6839 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6840 +  else
6841 +    ac_cpp_err=
6842 +  fi
6843 + else
6844 +  ac_cpp_err=yes
6845 + fi
6846 + if test -z "$ac_cpp_err"; then
6847 +  ac_header_preproc=yes
6848 + else
6849 +  echo "$as_me: failed program was:" >&5
6850 + sed 's/^/| /' conftest.$ac_ext >&5
6851 +
6852 +  ac_header_preproc=no
6853 + fi
6854 + rm -f conftest.err conftest.$ac_ext
6855 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6856 + echo "${ECHO_T}$ac_header_preproc" >&6
6857 +
6858 + # So?  What about this header?
6859 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6860 +  yes:no: )
6861 +    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6862 + echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6863 +    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
6864 + echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
6865 +    ac_header_preproc=yes
6866 +    ;;
6867 +  no:yes:* )
6868 +    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
6869 + echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
6870 +    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
6871 + echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
6872 +    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
6873 + echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
6874 +    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6875 + echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6876 +    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
6877 + echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
6878 +    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
6879 + echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
6880 +    (
6881 +      cat <<\_ASBOX
6882 + ## ------------------------------ ##
6883 + ## Report this to gezelter@nd.edu ##
6884 + ## ------------------------------ ##
6885 + _ASBOX
6886 +    ) |
6887 +      sed "s/^/$as_me: WARNING:     /" >&2
6888 +    ;;
6889 + esac
6890 + echo "$as_me:$LINENO: checking for dfftw.h" >&5
6891 + echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6892 + if test "${ac_cv_header_dfftw_h+set}" = set; then
6893 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6894 + else
6895 +  ac_cv_header_dfftw_h=$ac_header_preproc
6896 + fi
6897 + echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6898 + echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6899 +
6900 + fi
6901 + if test $ac_cv_header_dfftw_h = yes; then
6902 +  fftw_cv_dfftw_h=yes
6903 + else
6904 +  fftw_cv_dfftw_h=no
6905 + fi
6906 +
6907 +
6908 +        fi
6909 +      fi
6910 +      ac_ext=c
6911 + ac_cpp='$CPP $CPPFLAGS'
6912 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915 +
6916 +      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
6917 +
6918 + cat >>confdefs.h <<\_ACEOF
6919 + #define HAVE_FFTW3_H 1
6920 + _ACEOF
6921 +
6922 +        FFTW_INC_DIR="${FFTW_HOME}/include"
6923 +        FFTW_LIB_DIR="${FFTW_HOME}/lib"
6924 +        FFTW_LIBS="-lfftw3"
6925 +      else
6926 +        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
6927 +
6928 + cat >>confdefs.h <<\_ACEOF
6929 + #define HAVE_FFTW_H 1
6930 + _ACEOF
6931 +
6932 +          FFTW_INC_DIR="${FFTW_HOME}/include"
6933 +          FFTW_LIB_DIR="${FFTW_HOME}/lib"
6934 +          FFTW_LIBS="-lfftw"
6935 +        else
6936 +          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
6937  
6938 <
6939 < #ifdef FC_DUMMY_MAIN
7138 < #ifndef FC_DUMMY_MAIN_EQ_F77
7139 < #  ifdef __cplusplus
7140 <     extern "C"
7141 < #  endif
7142 <   int FC_DUMMY_MAIN() { return 1; }
7143 < #endif
7144 < #endif
7145 < int
7146 < main ()
7147 < {
7148 < main ();
7149 <  ;
7150 <  return 0;
7151 < }
6938 > cat >>confdefs.h <<\_ACEOF
6939 > #define HAVE_DFFTW_H 1
6940   _ACEOF
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7155  (eval $ac_link) 2>conftest.er1
7156  ac_status=$?
7157  grep -v '^ *+' conftest.er1 >conftest.err
7158  rm -f conftest.er1
7159  cat conftest.err >&5
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); } &&
7162         { ac_try='test -z "$ac_c_werror_flag"
7163                         || test ! -s conftest.err'
7164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165  (eval $ac_try) 2>&5
7166  ac_status=$?
7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168  (exit $ac_status); }; } &&
7169         { ac_try='test -s conftest$ac_exeext'
7170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171  (eval $ac_try) 2>&5
7172  ac_status=$?
7173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); }; }; then
7175  :
7176 else
7177  echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
6941  
6942 < fi
6943 < rm -f conftest.err conftest.$ac_objext \
6944 <      conftest$ac_exeext conftest.$ac_ext
6945 < else
6946 <  echo "$as_me: failed program was:" >&5
6947 < sed 's/^/| /' conftest.$ac_ext >&5
6948 <
6949 <
6950 < echo "$as_me:$LINENO: result: no" >&5
6951 < echo "${ECHO_T}no" >&6
6952 < { { echo "$as_me:$LINENO: error: Cant find $fftwname.h header. Make sure all your
6953 < fftw prefixes match - we already use $ac_fftw_firstname.h" >&5
6954 < echo "$as_me: error: Cant find $fftwname.h header. Make sure all your
6955 < fftw prefixes match - we already use $ac_fftw_firstname.h" >&2;}
6956 <   { (exit 1); exit 1; }; }
6957 <
6958 < fi
6959 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 >            FFTW_INC_DIR="${FFTW_HOME}/include"
6943 >            FFTW_LIB_DIR="${FFTW_HOME}/lib"
6944 >            FFTW_LIBS="-ldfftw"
6945 >          else
6946 >            echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
6947 > echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6
6948 >            FFTW_INC_DIR=
6949 >            FFTW_LIB_DIR=
6950 >            FFTW_LIBS=
6951 >            LDFLAGS="$FFTW_OLD_LDFLAGS"
6952 >            CPPFLAGS="$FFTW_OLD_CPPFLAGS"
6953 >            echo "$as_me:$LINENO: result: failed" >&5
6954 > echo "${ECHO_T}failed" >&6
6955 >            echo ""
6956 >            echo "*********************************************************"
6957 >            echo "* WARNING: Could not find a working FFTW installation   *"
6958 >            echo "* If you need the staticProps program to be able to     *"
6959 >            echo "* compute undulation spectra, be sure to specify a      *"
6960 >            echo "* valid fftw installation with --with-fftw=DIR          *"
6961 >            echo "*                                                       *"
6962 >            echo "* OOPSE will still work without fftw installed.         *"
6963 >            echo "*********************************************************"
6964 >            echo ""
6965 >          fi
6966 >        fi
6967 >      fi
6968  
7199 fi
6969  
6970  
6971 +    fi
6972    fi
6973 + fi
6974  
6975 <  case ${ac_fftw_savedprefix} in
7205 <   d)
7206 < cat >>confdefs.h <<\_ACEOF
7207 < #define FFTW_NAME_DFFTW
7208 < _ACEOF
7209 < ;;
7210 <   *)
7211 < cat >>confdefs.h <<\_ACEOF
7212 < #define FFTW_NAME_FFTW
7213 < _ACEOF
7214 < ;;
7215 <  esac
7216 < else
7217 <  echo "*******************************************************************"
7218 <  echo "* FFTW libraries and include files are required for computing     *"
7219 <  echo "* undulation spectra with the staticProps program.  If you don't  *"
7220 <  echo "* fftw turned on, OOPSE will still work, but you won't be able to *"
7221 <  echo "* analyze your trajectories for this property.                    *"
7222 <  echo "*******************************************************************"
7223 < fi # end of fftw check
6975 >
6976  
6977   # Checks for header files.
6978   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
# Line 12236 | Line 11988 | if test "$ac_test_FFLAGS" != "set"; then
11988    case "${host_cpu}-${host_os}" in
11989  
11990    *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
11991 <                    FCFLAGS="-O3 -ip -no-prec-div -cxxlib-icc"
11991 >                    FCFLAGS="-O3 -ip -no-prec-div"
11992                  fi;;
11993     rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
11994                      FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
# Line 13294 | Line 13046 | MPI_INC_DIR="$MPI/include"
13046  
13047  
13048  
13049 + ac_ext=c
13050 + ac_cpp='$CPP $CPPFLAGS'
13051 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13052 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13053 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13054 +
13055   echo "$as_me:$LINENO: checking for mpi.h" >&5
13056   echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
13057   have_mpi_h=0
13058   rm -f conftest*
13059 < echo '#include <mpi.h>' > conftest.cc
13060 < if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
13059 > echo '#include <mpi.h>' > conftest.c
13060 > if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
13061          echo "$as_me:$LINENO: result: yes" >&5
13062   echo "${ECHO_T}yes" >&6
13063          have_mpi_h=1
# Line 13322 | Line 13080 | echo $ECHO_N "checking whether mpif.h is usable... $EC
13080  
13081   echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13082   echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
13083 +
13084 +
13085 + ac_ext=${FC_SRCEXT-f}
13086 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13087 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
13088 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13089 +
13090 + ac_save_ext=$ac_ext
13091 + ac_ext=F90
13092 + ac_save_FCFLAGS=$FCFLAGS
13093   have_mpif_h=0
13094   rm -f conftest*
13095   cat >conftest.$ac_ext <<EOF
# Line 13351 | Line 13119 | fi
13119   _ACEOF
13120  
13121   fi
13122 + FCFLAGS=$ac_save_FCFLAGS
13123 + ac_ext=$ac_save_ext
13124 + ac_ext=c
13125 + ac_cpp='$CPP $CPPFLAGS'
13126 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129  
13130 +
13131   ac_ext=c
13132   ac_cpp='$CPP $CPPFLAGS'
13133   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 13359 | Line 13135 | ac_save_LDFLAGS=$LDFLAGS
13135   ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136  
13137   ac_save_LDFLAGS=$LDFLAGS
13138 < LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
13138 > LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
13139  
13140   if test x = x"$MPI_LIB"; then
13141          echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
# Line 13439 | Line 13215 | fi
13215   fi
13216  
13217   fi
13218 + $as_unset ac_cv_lib_mpich_MPI_Init
13219   if test x = x"$MPI_LIB"; then
13220 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13221 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13222 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13220 >        echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
13221 > echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6
13222 > if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
13223    echo $ECHO_N "(cached) $ECHO_C" >&6
13224   else
13225    ac_check_lib_save_LIBS=$LIBS
13226 < LIBS="-lmpi  $LIBS"
13226 > LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
13227   cat >conftest.$ac_ext <<_ACEOF
13228   /* confdefs.h.  */
13229   _ACEOF
# Line 13499 | Line 13276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276    ac_status=$?
13277    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278    (exit $ac_status); }; }; then
13279 <  ac_cv_lib_mpi_MPI_Init=yes
13279 >  ac_cv_lib_pmpich_MPI_Init=yes
13280   else
13281    echo "$as_me: failed program was:" >&5
13282   sed 's/^/| /' conftest.$ac_ext >&5
13283  
13284 < ac_cv_lib_mpi_MPI_Init=no
13284 > ac_cv_lib_pmpich_MPI_Init=no
13285   fi
13286   rm -f conftest.err conftest.$ac_objext \
13287        conftest$ac_exeext conftest.$ac_ext
13288   LIBS=$ac_check_lib_save_LIBS
13289   fi
13290 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13291 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13292 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13293 <  MPI_LIB="-lmpi"
13290 > echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
13291 > echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6
13292 > if test $ac_cv_lib_pmpich_MPI_Init = yes; then
13293 >  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
13294   fi
13295  
13296   fi
13520 $as_unset ac_cv_lib_mpi_MPI_Init
13297   if test x = x"$MPI_LIB"; then
13298          echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13299   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
# Line 13525 | Line 13301 | else
13301    echo $ECHO_N "(cached) $ECHO_C" >&6
13302   else
13303    ac_check_lib_save_LIBS=$LIBS
13304 < LIBS="-lmpi "-llam" $LIBS"
13304 > LIBS="-lmpi  $LIBS"
13305   cat >conftest.$ac_ext <<_ACEOF
13306   /* confdefs.h.  */
13307   _ACEOF
# Line 13592 | Line 13368 | if test $ac_cv_lib_mpi_MPI_Init = yes; then
13368   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13369   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13370   if test $ac_cv_lib_mpi_MPI_Init = yes; then
13371 <  MPI_LIB="-lmpi -llam"
13371 >  MPI_LIB="-lmpi"
13372   fi
13373  
13374   fi
13375 < $as_unset ac_cv_lib_mpich_MPI_Init
13375 > $as_unset ac_cv_lib_mpi_MPI_Init
13376   if test x = x"$MPI_LIB"; then
13377 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
13378 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13379 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13377 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13378 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13379 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13380    echo $ECHO_N "(cached) $ECHO_C" >&6
13381   else
13382    ac_check_lib_save_LIBS=$LIBS
13383 < LIBS="-lmpich "-lpmpich" $LIBS"
13383 > LIBS="-lmpi -llam $LIBS"
13384   cat >conftest.$ac_ext <<_ACEOF
13385   /* confdefs.h.  */
13386   _ACEOF
# Line 13657 | Line 13433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433    ac_status=$?
13434    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435    (exit $ac_status); }; }; then
13436 <  ac_cv_lib_mpich_MPI_Init=yes
13436 >  ac_cv_lib_mpi_MPI_Init=yes
13437   else
13438    echo "$as_me: failed program was:" >&5
13439   sed 's/^/| /' conftest.$ac_ext >&5
13440  
13441 < ac_cv_lib_mpich_MPI_Init=no
13441 > ac_cv_lib_mpi_MPI_Init=no
13442   fi
13443   rm -f conftest.err conftest.$ac_objext \
13444        conftest$ac_exeext conftest.$ac_ext
13445   LIBS=$ac_check_lib_save_LIBS
13446   fi
13447 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13448 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13449 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
13450 <  MPI_LIB="-lpmpich -lmpich"
13447 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13448 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13449 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
13450 >  MPI_LIB="-lmpi -llam"
13451   fi
13452  
13453   fi
13678
13454   $as_unset ac_cv_lib_mpi_MPI_Init
13455   if test x = x"$MPI_LIB"; then
13456   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
# Line 13783 | Line 13558 | fi
13558  
13559  
13560  
13561 + acx_cgal_found=no
13562  
13563 < USE_CGAL=no
13564 < cgal_makefile=auto
13563 > # Check whether --with-cgalmakefile or --without-cgalmakefile was given.
13564 > if test "${with_cgalmakefile+set}" = set; then
13565 >  withval="$with_cgalmakefile"
13566  
13790 # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
13791 if test "${with_cgal_makefile+set}" = set; then
13792  withval="$with_cgal_makefile"
13793  cgal_makefile="$withval"
13567   fi;
13568 + case $with_cgalmakefile in
13569 +        yes | "") ;;
13570 +        no) acx_cgal_found=disable ;;
13571 +        -* | */* | *.a | *.so | *.so.* | *.o) CGAL_MAKEFILE="$with_cgalmakefile" ;;
13572 +        *) CGAL_MAKEFILE="$with_cgalmakefile" ;;
13573 + esac
13574  
13575 < if test "x$cgal_makefile" != xno; then
13575 > if test "$acx_cgal_found" == no; then
13576 >    echo "$as_me:$LINENO: checking CGAL_MAKEFILE" >&5
13577 > echo $ECHO_N "checking CGAL_MAKEFILE... $ECHO_C" >&6
13578  
13579 <  if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
13799 <    cgal_makefile="$CGAL_MAKEFILE"
13800 <  fi
13579 >    if test \! -z "$CGAL_MAKEFILE"; then
13580  
13581 <  echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
13582 < echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
13581 >        if test -e "$CGAL_MAKEFILE"; then
13582 >            tname=`mktemp /tmp/cgal_makefile_dsrXXXXXX`
13583  
13584 <  if test -f "$cgal_makefile"; then
13584 > cat > $tname << _ACEOF
13585 > include $CGAL_MAKEFILE
13586  
13587 <    cat >config.tmp.Makefile <<EOF
13588 < include $cgal_makefile
13809 < default:
13810 <        @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
13811 <        @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
13812 <        @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
13813 <        @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
13814 <        @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
13815 <        @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
13816 <        @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
13817 <        @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
13818 <        @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
13819 <        @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
13820 <        @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
13821 <        @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
13822 < EOF
13823 <
13824 <    make -s -f config.tmp.Makefile
13825 <    . config.tmp.cgalvariables
13826 <
13827 <    rm -f config.tmp.Makefile config.tmp.cgalvariables
13828 <
13829 <    if test "x$CGAL_INCLDIR" = "x"; then
13830 <      CGAL_INCLDIR=""
13831 <    fi
13832 <
13833 <    if test "x$CGAL_LIBDIR" = "x"; then
13834 <      CGAL_LIBDIR=""
13835 <    fi
13587 > cppflags:
13588 >        @echo \$(CGAL_CXXFLAGS)
13589  
13590 <    if test "x$CGAL_RLIBDIR" = "x"; then
13591 <      CGAL_RLIBDIR=""
13590 > cxxflags:
13591 >        @echo
13592 > ldflags:
13593 >        @echo \$(CGAL_LDFLAGS)
13594 > _ACEOF
13595 >            CGAL_CPPFLAGS="`make -s -f $tname cppflags`"
13596 >            CGAL_CXXFLAGS="`make -s -f $tname cxxflags`"
13597 >            CGAL_LDFLAGST="`make -s -f $tname ldflags`"
13598 >            for i in $CGAL_LDFLAGST; do
13599 >                if test `echo $i| grep -c ^-l`; then
13600 >                    CGAL_LIBS="$CGAL_LIBS $i"
13601 >                else
13602 >                    CGAL_LDFLAGS="$CGAL_LDFLAGS $i"
13603 >                fi
13604 >            done
13605 >            rm -f $tname
13606 >            echo "$as_me:$LINENO: result: yes" >&5
13607 > echo "${ECHO_T}yes" >&6
13608 >            acx_cgal_found=yes
13609 >                                   else
13610 >            echo "$as_me:$LINENO: result: invalid" >&5
13611 > echo "${ECHO_T}invalid" >&6
13612 >            { { echo "$as_me:$LINENO: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&5
13613 > echo "$as_me: error: CGAL_MAKEFILE defined, but the makefile does not exist." >&2;}
13614 >   { (exit 1); exit 1; }; }
13615 >        fi
13616 >    else
13617 >        echo "$as_me:$LINENO: result: not defined" >&5
13618 > echo "${ECHO_T}not defined" >&6
13619      fi
13620 + fi
13621  
13622 <    if test "x$LEDA_INCLDIR" = "x"; then
13623 <      LEDA_INCLDIR=""
13624 <    fi
13625 <
13626 <    if test "x$LEDA_LIBDIR" = "x"; then
13846 <      LEDA_LIBDIR=""
13847 <    fi
13848 <
13849 <    if test "x$LEDA_RLIBDIR" = "x"; then
13850 <      LEDA_RLIBDIR=""
13851 <    fi
13852 <
13853 <    if test "x$GMP_INCLDIR" = "x"; then
13854 <      GMP_INCLDIR=""
13855 <    fi
13856 <
13857 <    if test "x$GMP_LIBDIR" = "x"; then
13858 <      GMP_LIBDIR=""
13859 <    fi
13860 <
13861 <    if test "x$GMP_RLIBDIR" = "x"; then
13862 <      GMP_RLIBDIR=""
13863 <    fi
13864 <
13865 <    echo "$as_me:$LINENO: result: CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&5
13866 < echo "${ECHO_T}CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&6
13867 <    echo "$as_me:$LINENO: result: CGAL_INCLDIR=       $CGAL_INCLDIR" >&5
13868 < echo "${ECHO_T}CGAL_INCLDIR=       $CGAL_INCLDIR" >&6
13869 <    echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&5
13870 < echo "${ECHO_T}CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&6
13871 <    echo "$as_me:$LINENO: result: CGAL_LIBDIR=        $CGAL_LIBDIR" >&5
13872 < echo "${ECHO_T}CGAL_LIBDIR=        $CGAL_LIBDIR" >&6
13873 <    echo "$as_me:$LINENO: result: CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&5
13874 < echo "${ECHO_T}CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&6
13875 <    echo "$as_me:$LINENO: result: LEDA_INCLDIR=       $LEDA_INCLDIR" >&5
13876 < echo "${ECHO_T}LEDA_INCLDIR=       $LEDA_INCLDIR" >&6
13877 <    echo "$as_me:$LINENO: result: LEDA_LIBDIR=        $LEDA_LIBDIR" >&5
13878 < echo "${ECHO_T}LEDA_LIBDIR=        $LEDA_LIBDIR" >&6
13879 <    echo "$as_me:$LINENO: result: GMP_INCLDIR=        $GMP_INCLDIR" >&5
13880 < echo "${ECHO_T}GMP_INCLDIR=        $GMP_INCLDIR" >&6
13881 <    echo "$as_me:$LINENO: result: GMP_LIBDIR=         $GMP_LIBDIR" >&5
13882 < echo "${ECHO_T}GMP_LIBDIR=         $GMP_LIBDIR" >&6
13883 <
13884 <    ac_ext=cc
13885 < ac_cpp='$CXXCPP $CPPFLAGS'
13886 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13887 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13888 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13889 <
13890 <    save_CXXFLAGS="$CXXFLAGS"
13891 <    CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
13892 <    if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
13893 <  echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
13894 < echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
13895 < if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
13622 > if test "$acx_cgal_found" == no; then
13623 >        if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13624 >  echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
13625 > echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6
13626 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13627    echo $ECHO_N "(cached) $ECHO_C" >&6
13628   fi
13629 < echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
13630 < echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
13629 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
13630 > echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6
13631   else
13632    # Is the header compilable?
13633 < echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
13634 < echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
13633 > echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability" >&5
13634 > echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h usability... $ECHO_C" >&6
13635   cat >conftest.$ac_ext <<_ACEOF
13636   /* confdefs.h.  */
13637   _ACEOF
# Line 13908 | Line 13639 | $ac_includes_default
13639   cat >>conftest.$ac_ext <<_ACEOF
13640   /* end confdefs.h.  */
13641   $ac_includes_default
13642 < #include <CGAL/Cartesian.h>
13642 > #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
13643   _ACEOF
13644   rm -f conftest.$ac_objext
13645   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 13919 | Line 13650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13650    cat conftest.err >&5
13651    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652    (exit $ac_status); } &&
13653 <         { ac_try='test -z "$ac_cxx_werror_flag"
13653 >         { ac_try='test -z "$ac_c_werror_flag"
13654                           || test ! -s conftest.err'
13655    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656    (eval $ac_try) 2>&5
# Line 13944 | Line 13675 | echo "${ECHO_T}$ac_header_compiler" >&6
13675   echo "${ECHO_T}$ac_header_compiler" >&6
13676  
13677   # Is the header present?
13678 < echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
13679 < echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
13678 > echo "$as_me:$LINENO: checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence" >&5
13679 > echo $ECHO_N "checking CGAL/Exact_predicates_inexact_constructions_kernel.h presence... $ECHO_C" >&6
13680   cat >conftest.$ac_ext <<_ACEOF
13681   /* confdefs.h.  */
13682   _ACEOF
13683   cat confdefs.h >>conftest.$ac_ext
13684   cat >>conftest.$ac_ext <<_ACEOF
13685   /* end confdefs.h.  */
13686 < #include <CGAL/Cartesian.h>
13686 > #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
13687   _ACEOF
13688   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13689    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 13963 | Line 13694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
13694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695    (exit $ac_status); } >/dev/null; then
13696    if test -s conftest.err; then
13697 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
13698 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13697 >    ac_cpp_err=$ac_c_preproc_warn_flag
13698 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13699    else
13700      ac_cpp_err=
13701    fi
# Line 13984 | Line 13715 | echo "${ECHO_T}$ac_header_preproc" >&6
13715   echo "${ECHO_T}$ac_header_preproc" >&6
13716  
13717   # So?  What about this header?
13718 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13718 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13719    yes:no: )
13720 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
13721 < echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13722 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
13723 < echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
13720 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&5
13721 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13722 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&5
13723 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the compiler's result" >&2;}
13724      ac_header_preproc=yes
13725      ;;
13726    no:yes:* )
13727 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
13728 < echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
13729 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&5
13730 < echo "$as_me: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&2;}
13731 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
13732 < echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
13733 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&5
13734 < echo "$as_me: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13735 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
13736 < echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
13737 <    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
13738 < echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
13727 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&5
13728 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: present but cannot be compiled" >&2;}
13729 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&5
13730 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     check for missing prerequisite headers?" >&2;}
13731 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&5
13732 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: see the Autoconf documentation" >&2;}
13733 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&5
13734 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13735 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&5
13736 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: proceeding with the preprocessor's result" >&2;}
13737 >    { echo "$as_me:$LINENO: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&5
13738 > echo "$as_me: WARNING: CGAL/Exact_predicates_inexact_constructions_kernel.h: in the future, the compiler will take precedence" >&2;}
13739      (
13740        cat <<\_ASBOX
13741   ## ------------------------------ ##
# Line 14015 | Line 13746 | esac
13746        sed "s/^/$as_me: WARNING:     /" >&2
13747      ;;
13748   esac
13749 < echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
13750 < echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
13751 < if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
13749 > echo "$as_me:$LINENO: checking for CGAL/Exact_predicates_inexact_constructions_kernel.h" >&5
13750 > echo $ECHO_N "checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... $ECHO_C" >&6
13751 > if test "${ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h+set}" = set; then
13752    echo $ECHO_N "(cached) $ECHO_C" >&6
13753   else
13754 <  ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
13754 >  ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h=$ac_header_preproc
13755   fi
13756 < echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
13757 < echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
13756 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&5
13757 > echo "${ECHO_T}$ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h" >&6
13758  
13759   fi
13760 < if test $ac_cv_header_CGAL_Cartesian_h = yes; then
13761 <  cgal=yes
13760 > if test $ac_cv_header_CGAL_Exact_predicates_inexact_constructions_kernel_h = yes; then
13761 >  cgal_have_header=yes
13762   else
13763 <  cgal=no
13763 >  cgal_have_header=no
13764   fi
13765  
13766  
13767 <    CXXFLAGS="$save_CXXFLAGS"
13767 >        if test "$cgal_have_header" == yes; then
13768 >                echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
13769 > echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6
13770 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
13771 >  echo $ECHO_N "(cached) $ECHO_C" >&6
13772 > else
13773 >  ac_check_lib_save_LIBS=$LIBS
13774 > LIBS="-lCGAL  $LIBS"
13775 > cat >conftest.$ac_ext <<_ACEOF
13776 > /* confdefs.h.  */
13777 > _ACEOF
13778 > cat confdefs.h >>conftest.$ac_ext
13779 > cat >>conftest.$ac_ext <<_ACEOF
13780 > /* end confdefs.h.  */
13781  
14038    if test "x$cgal" = xyes; then
14039      echo "$as_me:$LINENO: checking for CGAL version" >&5
14040 echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
14041      LOCATION=${CGAL_INCLDIR}
14042      LOCATION=${LOCATION:-/usr/include}
14043      if test -f $LOCATION/CGAL/version.h; then
14044        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
14045      else
14046        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
14047      fi
14048      if echo $CGAL_VERSION | grep -q "^[3456789]"; then
14049        echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
14050 echo "${ECHO_T}($CGAL_VERSION) yes" >&6
14051      else
14052        echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
14053 echo "${ECHO_T}($CGAL_VERSION) no" >&6
14054        cgal=no
14055      fi
14056    fi
13782  
13783 <    if test "x$cgal" = xyes; then
13784 <      CGAL_LIBS="-lCGAL"
13785 <      echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
13786 < echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
13787 <      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
13788 <        CGAL_USES_LEDA=yes
13789 <        echo "$as_me:$LINENO: result: yes" >&5
13790 < echo "${ECHO_T}yes" >&6
13791 <        CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
13792 <      else
13793 <        echo "$as_me:$LINENO: result: no" >&5
13794 < echo "${ECHO_T}no" >&6
13795 <        CGAL_USES_LEDA=no
13796 <      fi
13797 <
13798 <      echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
13799 < echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
13800 <      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
13801 <        CGAL_USES_GMP=yes
13802 <        echo "$as_me:$LINENO: result: yes" >&5
13803 < echo "${ECHO_T}yes" >&6
13804 <        CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
13805 <      else
13806 <        echo "$as_me:$LINENO: result: no" >&5
13807 < echo "${ECHO_T}no" >&6
13808 <        CGAL_USES_GMP=no
13809 <      fi
13810 <
13811 <      CGAL_LIBS="$CGAL_LIBS -lm"
13812 <
13813 <      CGAL_CXXFLAGS="-ftemplate-depth-50"
13783 > #ifdef FC_DUMMY_MAIN
13784 > #ifndef FC_DUMMY_MAIN_EQ_F77
13785 > #  ifdef __cplusplus
13786 >     extern "C"
13787 > #  endif
13788 >   int FC_DUMMY_MAIN() { return 1; }
13789 > #endif
13790 > #endif
13791 > int
13792 > main ()
13793 > {
13794 > main ();
13795 >  ;
13796 >  return 0;
13797 > }
13798 > _ACEOF
13799 > rm -f conftest.$ac_objext conftest$ac_exeext
13800 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 >  (eval $ac_link) 2>conftest.er1
13802 >  ac_status=$?
13803 >  grep -v '^ *+' conftest.er1 >conftest.err
13804 >  rm -f conftest.er1
13805 >  cat conftest.err >&5
13806 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 >  (exit $ac_status); } &&
13808 >         { ac_try='test -z "$ac_c_werror_flag"
13809 >                         || test ! -s conftest.err'
13810 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 >  (eval $ac_try) 2>&5
13812 >  ac_status=$?
13813 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 >  (exit $ac_status); }; } &&
13815 >         { ac_try='test -s conftest$ac_exeext'
13816 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 >  (eval $ac_try) 2>&5
13818 >  ac_status=$?
13819 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 >  (exit $ac_status); }; }; then
13821 >  ac_cv_lib_CGAL_main=yes
13822 > else
13823 >  echo "$as_me: failed program was:" >&5
13824 > sed 's/^/| /' conftest.$ac_ext >&5
13825  
13826 <      echo "$as_me:$LINENO: result: CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&5
13827 < echo "${ECHO_T}CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&6
13828 <      echo "$as_me:$LINENO: result: CGAL_USES_GMP =     $CGAL_USES_GMP" >&5
13829 < echo "${ECHO_T}CGAL_USES_GMP =     $CGAL_USES_GMP" >&6
13830 <      echo "$as_me:$LINENO: result: CGAL_INCLDIR  =     $CGAL_INCLDIR" >&5
13831 < echo "${ECHO_T}CGAL_INCLDIR  =     $CGAL_INCLDIR" >&6
13832 <      echo "$as_me:$LINENO: result: CGAL_LIBDIR   =     $CGAL_LIBDIR" >&5
13833 < echo "${ECHO_T}CGAL_LIBDIR   =     $CGAL_LIBDIR" >&6
13834 <      echo "$as_me:$LINENO: result: CGAL_DEFINES  =     $CGAL_DEFINES" >&5
13835 < echo "${ECHO_T}CGAL_DEFINES  =     $CGAL_DEFINES" >&6
13836 <      echo "$as_me:$LINENO: result: CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&5
13837 < echo "${ECHO_T}CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&6
13838 <      echo "$as_me:$LINENO: result: CGAL_LIBS     =     $CGAL_LIBS" >&5
14103 < echo "${ECHO_T}CGAL_LIBS     =     $CGAL_LIBS" >&6
14104 <    fi
13826 > ac_cv_lib_CGAL_main=no
13827 > fi
13828 > rm -f conftest.err conftest.$ac_objext \
13829 >      conftest$ac_exeext conftest.$ac_ext
13830 > LIBS=$ac_check_lib_save_LIBS
13831 > fi
13832 > echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
13833 > echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6
13834 > if test $ac_cv_lib_CGAL_main = yes; then
13835 >  cgal_have_lib=yes
13836 > else
13837 >  cgal_have_lib=no
13838 > fi
13839  
13840 <    if test "x$cgal" = xyes; then
13841 <      save_LIBS="$LIBS"
13842 <      LIBS="$LIBS -L$CGAL_LIBDIR"
13843 <      if test "x$CGAL_USES_LEDA" = xyes; then
13844 <        LIBS="-lL $LIBS -L$LEDA_LIBDIR"
13845 <      fi
13846 <      # if test "x$CGAL_USES_GMP" = xyes; then
13847 <      #   LIBS="-lgmp $LIBS $GMP_LIBDIR"
14114 <      # fi
14115 <      echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
14116 < echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
14117 < save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
14118 < CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
14119 < save_LIBS_CHECK_CXX_LIB="$LIBS"
13840 >                if test "$cgal_have_lib" == no; then
13841 >                        save_LIBS="$LIBS"; LIBS="$LIBS -lgmp -lmpfr -lm"
13842 >                        echo "$as_me:$LINENO: checking for main in -lCGAL" >&5
13843 > echo $ECHO_N "checking for main in -lCGAL... $ECHO_C" >&6
13844 > if test "${ac_cv_lib_CGAL_main+set}" = set; then
13845 >  echo $ECHO_N "(cached) $ECHO_C" >&6
13846 > else
13847 >  ac_check_lib_save_LIBS=$LIBS
13848   LIBS="-lCGAL  $LIBS"
13849   cat >conftest.$ac_ext <<_ACEOF
13850   /* confdefs.h.  */
# Line 14124 | Line 13852 | cat >>conftest.$ac_ext <<_ACEOF
13852   cat confdefs.h >>conftest.$ac_ext
13853   cat >>conftest.$ac_ext <<_ACEOF
13854   /* end confdefs.h.  */
13855 < #include <CGAL/Cartesian.h>
13855 >
13856 >
13857   #ifdef FC_DUMMY_MAIN
13858   #ifndef FC_DUMMY_MAIN_EQ_F77
13859   #  ifdef __cplusplus
# Line 14136 | Line 13865 | main ()
13865   int
13866   main ()
13867   {
13868 < ::CGAL::Cartesian<int>::Point_2 P
13868 > main ();
13869    ;
13870    return 0;
13871   }
# Line 14150 | Line 13879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13879    cat conftest.err >&5
13880    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881    (exit $ac_status); } &&
13882 <         { ac_try='test -z "$ac_cxx_werror_flag"
13882 >         { ac_try='test -z "$ac_c_werror_flag"
13883                           || test ! -s conftest.err'
13884    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885    (eval $ac_try) 2>&5
# Line 14163 | Line 13892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892    ac_status=$?
13893    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894    (exit $ac_status); }; }; then
13895 <  echo "$as_me:$LINENO: result: yes" >&5
14167 < echo "${ECHO_T}yes" >&6
14168 < cgal=yes
13895 >  ac_cv_lib_CGAL_main=yes
13896   else
13897    echo "$as_me: failed program was:" >&5
13898   sed 's/^/| /' conftest.$ac_ext >&5
13899  
13900 < echo "$as_me:$LINENO: result: no" >&5
14174 < echo "${ECHO_T}no" >&6
14175 < cgal=no
13900 > ac_cv_lib_CGAL_main=no
13901   fi
13902   rm -f conftest.err conftest.$ac_objext \
13903        conftest$ac_exeext conftest.$ac_ext
13904 < CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
13905 < LIBS="$save_LIBS_CHECK_CXX_LIB"
13906 <      LIBS="$save_LIBS"
13907 <    fi
13904 > LIBS=$ac_check_lib_save_LIBS
13905 > fi
13906 > echo "$as_me:$LINENO: result: $ac_cv_lib_CGAL_main" >&5
13907 > echo "${ECHO_T}$ac_cv_lib_CGAL_main" >&6
13908 > if test $ac_cv_lib_CGAL_main = yes; then
13909 >  CGAL_LIBS="-lCGAL -lgmp -lmpfr"
13910 >                                                  cgal_have_lib=yes
13911 > else
13912 >  cgal_have_lib=no
13913 > fi
13914  
13915 <  fi
13916 <  ac_ext=c
13917 < ac_cpp='$CPP $CPPFLAGS'
13918 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
13915 >                        LIBS="$save_LIBS"
13916 >                else
13917 >                        CGAL_LIBS="-lCGAL"
13918 >                        echo "$as_me:$LINENO: checking for main in -lmpfr" >&5
13919 > echo $ECHO_N "checking for main in -lmpfr... $ECHO_C" >&6
13920 > if test "${ac_cv_lib_mpfr_main+set}" = set; then
13921 >  echo $ECHO_N "(cached) $ECHO_C" >&6
13922 > else
13923 >  ac_check_lib_save_LIBS=$LIBS
13924 > LIBS="-lmpfr  $LIBS"
13925 > cat >conftest.$ac_ext <<_ACEOF
13926 > /* confdefs.h.  */
13927 > _ACEOF
13928 > cat confdefs.h >>conftest.$ac_ext
13929 > cat >>conftest.$ac_ext <<_ACEOF
13930 > /* end confdefs.h.  */
13931  
13932  
13933 + #ifdef FC_DUMMY_MAIN
13934 + #ifndef FC_DUMMY_MAIN_EQ_F77
13935 + #  ifdef __cplusplus
13936 +     extern "C"
13937 + #  endif
13938 +   int FC_DUMMY_MAIN() { return 1; }
13939 + #endif
13940 + #endif
13941 + int
13942 + main ()
13943 + {
13944 + main ();
13945 +  ;
13946 +  return 0;
13947 + }
13948 + _ACEOF
13949 + rm -f conftest.$ac_objext conftest$ac_exeext
13950 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951 +  (eval $ac_link) 2>conftest.er1
13952 +  ac_status=$?
13953 +  grep -v '^ *+' conftest.er1 >conftest.err
13954 +  rm -f conftest.er1
13955 +  cat conftest.err >&5
13956 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 +  (exit $ac_status); } &&
13958 +         { ac_try='test -z "$ac_c_werror_flag"
13959 +                         || test ! -s conftest.err'
13960 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 +  (eval $ac_try) 2>&5
13962 +  ac_status=$?
13963 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 +  (exit $ac_status); }; } &&
13965 +         { ac_try='test -s conftest$ac_exeext'
13966 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 +  (eval $ac_try) 2>&5
13968 +  ac_status=$?
13969 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 +  (exit $ac_status); }; }; then
13971 +  ac_cv_lib_mpfr_main=yes
13972 + else
13973 +  echo "$as_me: failed program was:" >&5
13974 + sed 's/^/| /' conftest.$ac_ext >&5
13975 +
13976 + ac_cv_lib_mpfr_main=no
13977   fi
13978 + rm -f conftest.err conftest.$ac_objext \
13979 +      conftest$ac_exeext conftest.$ac_ext
13980 + LIBS=$ac_check_lib_save_LIBS
13981 + fi
13982 + echo "$as_me:$LINENO: result: $ac_cv_lib_mpfr_main" >&5
13983 + echo "${ECHO_T}$ac_cv_lib_mpfr_main" >&6
13984 + if test $ac_cv_lib_mpfr_main = yes; then
13985 +  CGAL_LIBS="$CGAL_LIBS -lmpfr"
13986 + fi
13987  
13988 < if test "x$cgal" = xyes; then
13989 <  USE_CGAL=yes
13990 <
13991 < cat >>confdefs.h <<\_ACEOF
13992 < #define HAVE_CGAL 1
13988 >                        echo "$as_me:$LINENO: checking for main in -lgmp" >&5
13989 > echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
13990 > if test "${ac_cv_lib_gmp_main+set}" = set; then
13991 >  echo $ECHO_N "(cached) $ECHO_C" >&6
13992 > else
13993 >  ac_check_lib_save_LIBS=$LIBS
13994 > LIBS="-lgmp  $LIBS"
13995 > cat >conftest.$ac_ext <<_ACEOF
13996 > /* confdefs.h.  */
13997   _ACEOF
13998 + cat confdefs.h >>conftest.$ac_ext
13999 + cat >>conftest.$ac_ext <<_ACEOF
14000 + /* end confdefs.h.  */
14001  
14002  
14003 < cat >>confdefs.h <<_ACEOF
14004 < #define CGAL_VERSION $CGAL_VERSION
14003 > #ifdef FC_DUMMY_MAIN
14004 > #ifndef FC_DUMMY_MAIN_EQ_F77
14005 > #  ifdef __cplusplus
14006 >     extern "C"
14007 > #  endif
14008 >   int FC_DUMMY_MAIN() { return 1; }
14009 > #endif
14010 > #endif
14011 > int
14012 > main ()
14013 > {
14014 > main ();
14015 >  ;
14016 >  return 0;
14017 > }
14018   _ACEOF
14019 <
14020 <  if ! echo $CGAL_VERSION | grep -q "^3.0"; then
14021 <    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
14022 < echo "$as_me: WARNING: *****************************************************" >&2;}
14023 <    { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&5
14024 < echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&2;}
14025 <    { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
14026 < echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
14027 <    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
14028 < echo "$as_me: WARNING: *****************************************************" >&2;}
14029 <  fi
14019 > rm -f conftest.$ac_objext conftest$ac_exeext
14020 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 >  (eval $ac_link) 2>conftest.er1
14022 >  ac_status=$?
14023 >  grep -v '^ *+' conftest.er1 >conftest.err
14024 >  rm -f conftest.er1
14025 >  cat conftest.err >&5
14026 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 >  (exit $ac_status); } &&
14028 >         { ac_try='test -z "$ac_c_werror_flag"
14029 >                         || test ! -s conftest.err'
14030 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 >  (eval $ac_try) 2>&5
14032 >  ac_status=$?
14033 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 >  (exit $ac_status); }; } &&
14035 >         { ac_try='test -s conftest$ac_exeext'
14036 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 >  (eval $ac_try) 2>&5
14038 >  ac_status=$?
14039 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 >  (exit $ac_status); }; }; then
14041 >  ac_cv_lib_gmp_main=yes
14042   else
14043 <   if test "x$cgal_makefile" != xno; then
14044 <    echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
14045 < echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
14046 <  fi
14221 <  CGAL_INCLDIR=
14222 <  CGAL_LIBDIR=
14223 <  CGAL_RLIBDIR=
14224 <  CGAL_DEFINES=
14225 <  CGAL_CXXFLAGS=
14226 <  CGAL_LIBS=
14043 >  echo "$as_me: failed program was:" >&5
14044 > sed 's/^/| /' conftest.$ac_ext >&5
14045 >
14046 > ac_cv_lib_gmp_main=no
14047   fi
14048 + rm -f conftest.err conftest.$ac_objext \
14049 +      conftest$ac_exeext conftest.$ac_ext
14050 + LIBS=$ac_check_lib_save_LIBS
14051 + fi
14052 + echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
14053 + echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
14054 + if test $ac_cv_lib_gmp_main = yes; then
14055 +  CGAL_LIBS="$CGAL_LIBS -lgmp"
14056 + fi
14057  
14058 +                        echo "$as_me:$LINENO: checking for main in -lgmpxx" >&5
14059 + echo $ECHO_N "checking for main in -lgmpxx... $ECHO_C" >&6
14060 + if test "${ac_cv_lib_gmpxx_main+set}" = set; then
14061 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14062 + else
14063 +  ac_check_lib_save_LIBS=$LIBS
14064 + LIBS="-lgmpxx  $LIBS"
14065 + cat >conftest.$ac_ext <<_ACEOF
14066 + /* confdefs.h.  */
14067 + _ACEOF
14068 + cat confdefs.h >>conftest.$ac_ext
14069 + cat >>conftest.$ac_ext <<_ACEOF
14070 + /* end confdefs.h.  */
14071  
14230 CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
14072  
14073 < CGAL_LIB_DIR=${CGAL_LIBDIR}
14073 > #ifdef FC_DUMMY_MAIN
14074 > #ifndef FC_DUMMY_MAIN_EQ_F77
14075 > #  ifdef __cplusplus
14076 >     extern "C"
14077 > #  endif
14078 >   int FC_DUMMY_MAIN() { return 1; }
14079 > #endif
14080 > #endif
14081 > int
14082 > main ()
14083 > {
14084 > main ();
14085 >  ;
14086 >  return 0;
14087 > }
14088 > _ACEOF
14089 > rm -f conftest.$ac_objext conftest$ac_exeext
14090 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 >  (eval $ac_link) 2>conftest.er1
14092 >  ac_status=$?
14093 >  grep -v '^ *+' conftest.er1 >conftest.err
14094 >  rm -f conftest.er1
14095 >  cat conftest.err >&5
14096 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 >  (exit $ac_status); } &&
14098 >         { ac_try='test -z "$ac_c_werror_flag"
14099 >                         || test ! -s conftest.err'
14100 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 >  (eval $ac_try) 2>&5
14102 >  ac_status=$?
14103 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 >  (exit $ac_status); }; } &&
14105 >         { ac_try='test -s conftest$ac_exeext'
14106 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 >  (eval $ac_try) 2>&5
14108 >  ac_status=$?
14109 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 >  (exit $ac_status); }; }; then
14111 >  ac_cv_lib_gmpxx_main=yes
14112 > else
14113 >  echo "$as_me: failed program was:" >&5
14114 > sed 's/^/| /' conftest.$ac_ext >&5
14115  
14116 < CGAL_RLIB_DIR=${CGAL_RLIBDIR}
14116 > ac_cv_lib_gmpxx_main=no
14117 > fi
14118 > rm -f conftest.err conftest.$ac_objext \
14119 >      conftest$ac_exeext conftest.$ac_ext
14120 > LIBS=$ac_check_lib_save_LIBS
14121 > fi
14122 > echo "$as_me:$LINENO: result: $ac_cv_lib_gmpxx_main" >&5
14123 > echo "${ECHO_T}$ac_cv_lib_gmpxx_main" >&6
14124 > if test $ac_cv_lib_gmpxx_main = yes; then
14125 >  CGAL_LIBS="$CGAL_LIBS -lgmpxx"
14126 > fi
14127  
14128 +                fi
14129  
14130 +                if test "$cgal_have_lib" == yes; then
14131 +                        acx_cgal_found=yes
14132 +                fi
14133 +        fi
14134 +        if test "$acx_cgal_found" == yes; then
14135 +                echo "$as_me:$LINENO: checking for main in -lCore" >&5
14136 + echo $ECHO_N "checking for main in -lCore... $ECHO_C" >&6
14137 + if test "${ac_cv_lib_Core_main+set}" = set; then
14138 +  echo $ECHO_N "(cached) $ECHO_C" >&6
14139 + else
14140 +  ac_check_lib_save_LIBS=$LIBS
14141 + LIBS="-lCore  $LIBS"
14142 + cat >conftest.$ac_ext <<_ACEOF
14143 + /* confdefs.h.  */
14144 + _ACEOF
14145 + cat confdefs.h >>conftest.$ac_ext
14146 + cat >>conftest.$ac_ext <<_ACEOF
14147 + /* end confdefs.h.  */
14148  
14149  
14150 + #ifdef FC_DUMMY_MAIN
14151 + #ifndef FC_DUMMY_MAIN_EQ_F77
14152 + #  ifdef __cplusplus
14153 +     extern "C"
14154 + #  endif
14155 +   int FC_DUMMY_MAIN() { return 1; }
14156 + #endif
14157 + #endif
14158 + int
14159 + main ()
14160 + {
14161 + main ();
14162 +  ;
14163 +  return 0;
14164 + }
14165 + _ACEOF
14166 + rm -f conftest.$ac_objext conftest$ac_exeext
14167 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 +  (eval $ac_link) 2>conftest.er1
14169 +  ac_status=$?
14170 +  grep -v '^ *+' conftest.er1 >conftest.err
14171 +  rm -f conftest.er1
14172 +  cat conftest.err >&5
14173 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 +  (exit $ac_status); } &&
14175 +         { ac_try='test -z "$ac_c_werror_flag"
14176 +                         || test ! -s conftest.err'
14177 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 +  (eval $ac_try) 2>&5
14179 +  ac_status=$?
14180 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 +  (exit $ac_status); }; } &&
14182 +         { ac_try='test -s conftest$ac_exeext'
14183 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 +  (eval $ac_try) 2>&5
14185 +  ac_status=$?
14186 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 +  (exit $ac_status); }; }; then
14188 +  ac_cv_lib_Core_main=yes
14189 + else
14190 +  echo "$as_me: failed program was:" >&5
14191 + sed 's/^/| /' conftest.$ac_ext >&5
14192  
14193 + ac_cv_lib_Core_main=no
14194 + fi
14195 + rm -f conftest.err conftest.$ac_objext \
14196 +      conftest$ac_exeext conftest.$ac_ext
14197 + LIBS=$ac_check_lib_save_LIBS
14198 + fi
14199 + echo "$as_me:$LINENO: result: $ac_cv_lib_Core_main" >&5
14200 + echo "${ECHO_T}$ac_cv_lib_Core_main" >&6
14201 + if test $ac_cv_lib_Core_main = yes; then
14202 +  CGAL_LIBS="$CGAL_LIBS -lCore"
14203 + fi
14204  
14205 +        fi
14206 + fi
14207  
14208 +
14209 +
14210 + echo "$as_me:$LINENO: checking CGAL" >&5
14211 + echo $ECHO_N "checking CGAL... $ECHO_C" >&6
14212 + if test "$acx_cgal_found" == yes; then
14213 +        echo "$as_me:$LINENO: result: yes" >&5
14214 + echo "${ECHO_T}yes" >&6;
14215 +
14216 + else
14217 +        echo "$as_me:$LINENO: result: no" >&5
14218 + echo "${ECHO_T}no" >&6
14219 +
14220 + fi
14221 +
14222 + if test "$acx_cgal_found" == yes; then
14223 +        USE_CGAL=yes
14224 +
14225 + cat >>confdefs.h <<\_ACEOF
14226 + #define HAVE_CGAL 1
14227 + _ACEOF
14228 +
14229 +
14230 +
14231 +
14232 +
14233 +
14234 + fi
14235 +
14236 +
14237 +
14238   # Check whether --enable-doxygen or --disable-doxygen was given.
14239   if test "${enable_doxygen+set}" = set; then
14240    enableval="$enable_doxygen"
# Line 14392 | Line 14388 | fi
14388  
14389  
14390  
14391 <                                        ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
14391 >                                                  ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/staticProps/Makefile scripts/filepp"
14392  
14393  
14394   cat >confcache <<\_ACEOF
# Line 14757 | Line 14753 | cat >&5 <<_CSEOF
14753   } >&5
14754   cat >&5 <<_CSEOF
14755  
14756 < This file was extended by OOPSE $as_me 3.0, which was
14756 > This file was extended by OOPSE $as_me 4.0, which was
14757   generated by GNU Autoconf 2.59.  Invocation command line was
14758  
14759    CONFIG_FILES    = $CONFIG_FILES
# Line 14820 | Line 14816 | ac_cs_version="\\
14816  
14817   cat >>$CONFIG_STATUS <<_ACEOF
14818   ac_cs_version="\\
14819 < OOPSE config.status 3.0
14819 > OOPSE config.status 4.0
14820   configured by $0, generated by GNU Autoconf 2.59,
14821    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14822  
# Line 14925 | Line 14921 | do
14921    # Handling of arguments.
14922    "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
14923    "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14924 <  "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
14924 >  "src/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
14925 >  "src/applications/staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/staticProps/Makefile" ;;
14926    "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
14927    "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
14928    "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
# Line 15024 | Line 15021 | s,@debug@,$debug,;t t
15021   s,@host_os@,$host_os,;t t
15022   s,@PROGNAME@,$PROGNAME,;t t
15023   s,@debug@,$debug,;t t
15024 + s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t
15025   s,@CXX@,$CXX,;t t
15026   s,@CXXFLAGS@,$CXXFLAGS,;t t
15027   s,@LDFLAGS@,$LDFLAGS,;t t
# Line 15061 | Line 15059 | s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
15059   s,@MODDIRFLAG@,$MODDIRFLAG,;t t
15060   s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
15061   s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
15062 + s,@ZLIB_INC_DIR@,$ZLIB_INC_DIR,;t t
15063 + s,@ZLIB_LIB_DIR@,$ZLIB_LIB_DIR,;t t
15064 + s,@ZLIB@,$ZLIB,;t t
15065 + s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t
15066 + s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t
15067 + s,@FFTW_LIBS@,$FFTW_LIBS,;t t
15068   s,@LIBOBJS@,$LIBOBJS,;t t
15069   s,@POW_LIB@,$POW_LIB,;t t
15070   s,@CXXCPP@,$CXXCPP,;t t
# Line 15072 | Line 15076 | s,@USE_CGAL@,$USE_CGAL,;t t
15076   s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
15077   s,@USE_MPI@,$USE_MPI,;t t
15078   s,@USE_CGAL@,$USE_CGAL,;t t
15079 < s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
15080 < s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
15081 < s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
15078 < s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
15079 < s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
15079 > s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
15080 > s,@CGAL_LDFLAGS@,$CGAL_LDFLAGS,;t t
15081 > s,@CGAL_CPPFLAGS@,$CGAL_CPPFLAGS,;t t
15082   s,@CGAL_LIBS@,$CGAL_LIBS,;t t
15083   s,@DOXYGEN@,$DOXYGEN,;t t
15084   s,@DOT@,$DOT,;t t
# Line 15330 | Line 15332 | s,@INSTALL@,$ac_INSTALL,;t t
15332    case $ac_file in
15333      make/Makefile ) chmod 0755 scripts/* ;;
15334      src/utils/Makefile ) chmod 0755 scripts/* ;;
15335 <    src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
15335 >    src/math/Makefile ) chmod 0755 scripts/* ;;
15336 >    src/applications/staticProps/Makefile ) chmod 0755 scripts/* ;;
15337      scripts/filepp ) chmod 0755 scripts/* ;;
15338    esac
15339   done

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines