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

Comparing trunk/OOPSE-4/configure (file contents):
Revision 2547 by gezelter, Wed Jan 11 23:06:08 2006 UTC vs.
Revision 2926 by gezelter, Fri Jul 7 19:44:54 2006 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 2.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 3.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
# Line 269 | Line 269 | PACKAGE_VERSION='2.0'
269   # Identity of this package.
270   PACKAGE_NAME='OOPSE'
271   PACKAGE_TARNAME='oopse'
272 < PACKAGE_VERSION='2.0'
273 < PACKAGE_STRING='OOPSE 2.0'
272 > PACKAGE_VERSION='3.0'
273 > PACKAGE_STRING='OOPSE 3.0'
274   PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
276   ac_unique_file="src/applications/oopse/oopse.cpp"
# Line 312 | Line 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKA
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_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'
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 2.0 to adapt to many kinds of systems.
804 > \`configure' configures OOPSE 3.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 2.0:";;
865 >     short | recursive ) echo "Configuration of OOPSE 3.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
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
892  
# Line 1000 | Line 1003 | OOPSE configure 2.0
1003   test -n "$ac_init_help" && exit 0
1004   if $ac_init_version; then
1005    cat <<\_ACEOF
1006 < OOPSE configure 2.0
1006 > OOPSE configure 3.0
1007   generated by GNU Autoconf 2.59
1008  
1009   Copyright (C) 2003 Free Software Foundation, Inc.
# Line 1014 | Line 1017 | It was created by OOPSE $as_me 2.0, which was
1017   This file contains any messages produced by compilers while
1018   running configure, to aid debugging if configure makes a mistake.
1019  
1020 < It was created by OOPSE $as_me 2.0, which was
1020 > It was created by OOPSE $as_me 3.0, which was
1021   generated by GNU Autoconf 2.59.  Invocation command line was
1022  
1023    $ $0 $@
# Line 1377 | Line 1380 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1380  
1381  
1382            ac_config_headers="$ac_config_headers src/config.h"
1383 +
1384 +
1385  
1386  
1387  
# Line 1424 | Line 1429 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1429   #
1430  
1431  
1432 +
1433 +
1434 +
1435 +
1436   # AC_F90_MODULE_NAMES
1437   # -------------------
1438   #
1439   # Figure out how the Fortran 90 compiler constructs module file names
1440   #
1441   # AC_F90_MODULE_NAMES
1442 +
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  
# Line 1466 | Line 1526 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1526  
1527  
1528  
1529 +
1530   # who am i
1531   # Make sure we can run config.sub.
1532   $ac_config_sub sun4 >/dev/null 2>&1 ||
# Line 1563 | Line 1624 | fi
1624  
1625    msg="$msg, debug mode"
1626   fi
1627 +
1628 +
1629 + # Check whether --enable-single or --disable-single was given.
1630 + if test "${enable_single+set}" = set; then
1631 +  enableval="$enable_single"
1632 +  ok=$enableval
1633 + else
1634 +  ok=no
1635 + fi;
1636 + # Check whether --enable-float or --disable-float was given.
1637 + if test "${enable_float+set}" = set; then
1638 +  enableval="$enable_float"
1639 +  ok=$enableval
1640 + fi;
1641 + if test "$ok" = "yes"; then
1642 +
1643 + cat >>confdefs.h <<\_ACEOF
1644 + #define SINGLE_PRECISION 1
1645 + _ACEOF
1646 +
1647 +        USE_SINGLE_PRECISION=yes
1648  
1649 + fi
1650  
1651   # Checks for programs.
1652   ac_ext=cc
# Line 1572 | Line 1655 | if test -n "$ac_tool_prefix"; then
1655   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1656   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1657   if test -n "$ac_tool_prefix"; then
1658 <  for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++
1658 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1659    do
1660      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1661   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 1614 | Line 1697 | if test -z "$CXX"; then
1697   fi
1698   if test -z "$CXX"; then
1699    ac_ct_CXX=$CXX
1700 <  for ac_prog in $CCC pathCC icpc icc xlc++ xlC CC g++ c++
1700 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1701   do
1702    # Extract the first word of "$ac_prog", so it can be a program name with args.
1703   set dummy $ac_prog; ac_word=$2
# Line 2128 | Line 2211 | if test -n "$ac_tool_prefix"; then
2211   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213   if test -n "$ac_tool_prefix"; then
2214 <  for ac_prog in pathcc icc xlc gcc cc
2214 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2215    do
2216      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2170 | Line 2253 | if test -z "$CC"; then
2253   fi
2254   if test -z "$CC"; then
2255    ac_ct_CC=$CC
2256 <  for ac_prog in pathcc icc xlc gcc cc
2256 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2257   do
2258    # Extract the first word of "$ac_prog", so it can be a program name with args.
2259   set dummy $ac_prog; ac_word=$2
# Line 2639 | Line 2722 | if test -n "$ac_tool_prefix"; then
2722   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
2723   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2724   if test -n "$ac_tool_prefix"; then
2725 <  for ac_prog in pathf95 ifort ifc xlf95 pgf95 lf95 epcf90 xlf90 pgf90 fort f95 f90 g95 f77
2725 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2726    do
2727      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2728   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2681 | Line 2764 | if test -z "$FC"; then
2764   fi
2765   if test -z "$FC"; then
2766    ac_ct_FC=$FC
2767 <  for ac_prog in pathf95 ifort ifc xlf95 pgf95 lf95 epcf90 xlf90 pgf90 fort f95 f90 g95 f77
2767 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2768   do
2769    # Extract the first word of "$ac_prog", so it can be a program name with args.
2770   set dummy $ac_prog; ac_word=$2
# Line 2726 | Line 2809 | echo "$as_me:2729:" \
2809  
2810  
2811   # Provide some information about the compiler.
2812 < echo "$as_me:2729:" \
2812 > echo "$as_me:2812:" \
2813       "checking for Fortran compiler version" >&5
2814   ac_compiler=`set X $ac_compile; echo $2`
2815   { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 3478 | Line 3561 | if test "$AR" = "NONE"; then
3561   fi
3562  
3563   if test "$AR" = "NONE"; then
3481  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
3482 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3483   { (exit 1); exit 1; }; }
3564    cat >confcache <<\_ACEOF
3565   # This file is a shell script that caches the results of configure
3566   # tests run on this system so they can be shared between configure
# Line 3977 | Line 4057 | FCFLAGS="$FCFLAGS $ac_verb"
4057   # flags.
4058   ac_save_FFLAGS=$FCFLAGS
4059   FCFLAGS="$FCFLAGS $ac_verb"
4060 < (eval echo $as_me:3980: \"$ac_link\") >&5
4060 > (eval echo $as_me:4060: \"$ac_link\") >&5
4061   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4062   echo "$ac_fc_v_output" >&5
4063   FCFLAGS=$ac_save_FFLAGS
# Line 4055 | Line 4135 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4135   # flags.
4136   ac_save_FFLAGS=$FCFLAGS
4137   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4138 < (eval echo $as_me:4058: \"$ac_link\") >&5
4138 > (eval echo $as_me:4138: \"$ac_link\") >&5
4139   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4140   echo "$ac_fc_v_output" >&5
4141   FCFLAGS=$ac_save_FFLAGS
# Line 4791 | Line 4871 | FCFLAGS="$FCFLAGS $ac_verb"
4871   # flags.
4872   ac_save_FFLAGS=$FCFLAGS
4873   FCFLAGS="$FCFLAGS $ac_verb"
4874 < (eval echo $as_me:4794: \"$ac_link\") >&5
4874 > (eval echo $as_me:4874: \"$ac_link\") >&5
4875   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4876   echo "$ac_fc_v_output" >&5
4877   FCFLAGS=$ac_save_FFLAGS
# Line 4869 | Line 4949 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4949   # flags.
4950   ac_save_FFLAGS=$FCFLAGS
4951   FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4952 < (eval echo $as_me:4872: \"$ac_link\") >&5
4952 > (eval echo $as_me:4952: \"$ac_link\") >&5
4953   ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4954   echo "$ac_fc_v_output" >&5
4955   FCFLAGS=$ac_save_FFLAGS
# Line 5746 | Line 5826 | echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5826   #
5827   # Handle user hints
5828   #
5749 echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5750 echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5829  
5830   # Check whether --with-zlib or --without-zlib was given.
5831   if test "${with_zlib+set}" = set; then
5832    withval="$with_zlib"
5833 <  if test "$withval" != no ; then
5834 <  echo "$as_me:$LINENO: result: yes" >&5
5835 < echo "${ECHO_T}yes" >&6
5836 <  if test -d "$withval"
5837 <  then
5838 <    ZLIB_HOME="$withval"
5833 >  zlib_dir="$withval"
5834 > else
5835 >                zlib_dir="not_set"
5836 > fi;
5837 > if test "$zlib_dir" != "no"; then
5838 >
5839 > if test "$zlib_dir" != "not_set" ; then
5840 >  if test -d "$zlib_dir"
5841 >  then
5842 >    ZLIB_HOME="$zlib_dir"
5843    else
5844 <    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5845 < echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5844 >    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
5845 > echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
5846    fi
5765 else
5766  echo "$as_me:$LINENO: result: no" >&5
5767 echo "${ECHO_T}no" >&6
5847   fi
5769 fi;
5848  
5849   ZLIB_HOME=/usr/local
5850   if test ! -f "${ZLIB_HOME}/include/zlib.h"
# Line 6019 | Line 6097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099  
6100 <        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
6101 <        then
6024 <                #
6025 <                # If both library and header were found, use them
6026 <                #
6100 >
6101 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
6102  
6103 < echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6104 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
6105 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6103 > cat >>confdefs.h <<\_ACEOF
6104 > #define HAVE_ZLIB_H 1
6105 > _ACEOF
6106 >
6107 >
6108 > cat >>confdefs.h <<\_ACEOF
6109 > #define HAVE_LIBZ 1
6110 > _ACEOF
6111 >
6112 >                ZLIB_INC_DIR="${ZLIB_HOME}/include"
6113 >                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
6114 >                ZLIB="-lz"
6115 >        else
6116 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6117 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6118 >                ZLIB_INC_DIR=
6119 >                ZLIB_LIB_DIR=
6120 >                ZLIB=
6121 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6122 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6123 >                echo "$as_me:$LINENO: result: failed" >&5
6124 > echo "${ECHO_T}failed" >&6
6125 >                echo ""
6126 >                echo "*********************************************************"
6127 >                echo "* WARNING: Could not find a working zlib installation   *"
6128 >                echo "* If you need OOPSE to be able to deal with compressed  *"
6129 >                echo "* trajectory dump files be sure to specify a valid zlib *"
6130 >                echo "* installation with --with-zlib=DIR                     *"
6131 >                echo "*                                                       *"
6132 >                echo "* OOPSE will still work without zlib installed.         *"
6133 >                echo "*********************************************************"
6134 >                echo ""
6135 >        fi
6136 >
6137 >
6138 >
6139 > fi
6140 > fi
6141 >
6142 > #
6143 > # Handle user hints
6144 > #
6145 >
6146 > # Check whether --with-fftw or --without-fftw was given.
6147 > if test "${with_fftw+set}" = set; then
6148 >  withval="$with_fftw"
6149 >  fftw_dir="$withval"
6150 > else
6151 >                fftw_dir="not_set"
6152 > fi;
6153 > if test "$fftw_dir" != "no"; then
6154 >
6155 > if test "$fftw_dir" != "not_set" ; then
6156 >  if test -d "$fftw_dir"
6157 >  then
6158 >    FFTW_HOME="$fftw_dir"
6159 >  else
6160 >    { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6161 > echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6162 >  fi
6163 > fi
6164 >
6165 > FFTW_HOME=/usr/local
6166 > if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"
6167 > then
6168 >        FFTW_HOME=/usr
6169 > fi
6170 >
6171 > #
6172 > # Locate fftw, if wanted
6173 > #
6174 > if test -n "${FFTW_HOME}"
6175 > then
6176 >        FFTW_OLD_LDFLAGS=$LDFLAGS
6177 >        FFTW_OLD_CPPFLAGS=$LDFLAGS
6178 >        LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6179 >        CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6180 >
6181 >
6182 >        ac_ext=c
6183 > ac_cpp='$CPP $CPPFLAGS'
6184 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6187 >
6188 >        echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6189 > echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6
6190 > if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6191    echo $ECHO_N "(cached) $ECHO_C" >&6
6192   else
6193    ac_check_lib_save_LIBS=$LIBS
6194 < LIBS="-lz  $LIBS"
6194 > LIBS="-lfftw3  $LIBS"
6195   cat >conftest.$ac_ext <<_ACEOF
6196   /* confdefs.h.  */
6197   _ACEOF
# Line 6045 | Line 6205 | char inflateEnd ();
6205   #endif
6206   /* We use char because int might match the return type of a gcc2
6207     builtin and then its argument prototype would still apply.  */
6208 < char inflateEnd ();
6208 > char fftw_execute ();
6209   #ifdef FC_DUMMY_MAIN
6210   #ifndef FC_DUMMY_MAIN_EQ_F77
6211   #  ifdef __cplusplus
# Line 6057 | Line 6217 | inflateEnd ();
6217   int
6218   main ()
6219   {
6220 < inflateEnd ();
6220 > fftw_execute ();
6221    ;
6222    return 0;
6223   }
# Line 6084 | Line 6244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6244    ac_status=$?
6245    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246    (exit $ac_status); }; }; then
6247 <  ac_cv_lib_z_inflateEnd=yes
6247 >  ac_cv_lib_fftw3_fftw_execute=yes
6248   else
6249    echo "$as_me: failed program was:" >&5
6250   sed 's/^/| /' conftest.$ac_ext >&5
6251  
6252 < ac_cv_lib_z_inflateEnd=no
6252 > ac_cv_lib_fftw3_fftw_execute=no
6253   fi
6254   rm -f conftest.err conftest.$ac_objext \
6255        conftest$ac_exeext conftest.$ac_ext
6256   LIBS=$ac_check_lib_save_LIBS
6257   fi
6258 < echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
6259 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
6260 < if test $ac_cv_lib_z_inflateEnd = yes; then
6261 <  cat >>confdefs.h <<_ACEOF
6262 < #define HAVE_LIBZ 1
6263 < _ACEOF
6258 > echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
6259 > echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6
6260 > if test $ac_cv_lib_fftw3_fftw_execute = yes; then
6261 >  fftw_cv_libfftw3=yes
6262 > else
6263 >  fftw_cv_libfftw3=no
6264 > fi
6265  
6266 <  LIBS="-lz $LIBS"
6266 >        if test "${ac_cv_header_fftw3_h+set}" = set; then
6267 >  echo "$as_me:$LINENO: checking for fftw3.h" >&5
6268 > echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6269 > if test "${ac_cv_header_fftw3_h+set}" = set; then
6270 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6271 > fi
6272 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6273 > echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6274 > else
6275 >  # Is the header compilable?
6276 > echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6277 > echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6
6278 > cat >conftest.$ac_ext <<_ACEOF
6279 > /* confdefs.h.  */
6280 > _ACEOF
6281 > cat confdefs.h >>conftest.$ac_ext
6282 > cat >>conftest.$ac_ext <<_ACEOF
6283 > /* end confdefs.h.  */
6284 > $ac_includes_default
6285 > #include <fftw3.h>
6286 > _ACEOF
6287 > rm -f conftest.$ac_objext
6288 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289 >  (eval $ac_compile) 2>conftest.er1
6290 >  ac_status=$?
6291 >  grep -v '^ *+' conftest.er1 >conftest.err
6292 >  rm -f conftest.er1
6293 >  cat conftest.err >&5
6294 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 >  (exit $ac_status); } &&
6296 >         { ac_try='test -z "$ac_c_werror_flag"
6297 >                         || test ! -s conftest.err'
6298 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 >  (eval $ac_try) 2>&5
6300 >  ac_status=$?
6301 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 >  (exit $ac_status); }; } &&
6303 >         { ac_try='test -s conftest.$ac_objext'
6304 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 >  (eval $ac_try) 2>&5
6306 >  ac_status=$?
6307 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 >  (exit $ac_status); }; }; then
6309 >  ac_header_compiler=yes
6310 > else
6311 >  echo "$as_me: failed program was:" >&5
6312 > sed 's/^/| /' conftest.$ac_ext >&5
6313  
6314 + ac_header_compiler=no
6315   fi
6316 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6317 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6318 + echo "${ECHO_T}$ac_header_compiler" >&6
6319  
6320 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6321 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6322 <                echo "$as_me:$LINENO: result: ok" >&5
6323 < echo "${ECHO_T}ok" >&6
6324 <        else
6325 <                #
6326 <                # If either header or library was not found, revert and bomb
6327 <                #
6328 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6329 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6330 <                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6331 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6332 <                echo "$as_me:$LINENO: result: failed" >&5
6333 < echo "${ECHO_T}failed" >&6
6334 <                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
6335 < echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
6336 <   { (exit 1); exit 1; }; }
6337 <        fi
6320 > # Is the header present?
6321 > echo "$as_me:$LINENO: checking fftw3.h presence" >&5
6322 > echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6
6323 > cat >conftest.$ac_ext <<_ACEOF
6324 > /* confdefs.h.  */
6325 > _ACEOF
6326 > cat confdefs.h >>conftest.$ac_ext
6327 > cat >>conftest.$ac_ext <<_ACEOF
6328 > /* end confdefs.h.  */
6329 > #include <fftw3.h>
6330 > _ACEOF
6331 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6332 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333 >  ac_status=$?
6334 >  grep -v '^ *+' conftest.er1 >conftest.err
6335 >  rm -f conftest.er1
6336 >  cat conftest.err >&5
6337 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 >  (exit $ac_status); } >/dev/null; then
6339 >  if test -s conftest.err; then
6340 >    ac_cpp_err=$ac_c_preproc_warn_flag
6341 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6342 >  else
6343 >    ac_cpp_err=
6344 >  fi
6345 > else
6346 >  ac_cpp_err=yes
6347   fi
6348 + if test -z "$ac_cpp_err"; then
6349 +  ac_header_preproc=yes
6350 + else
6351 +  echo "$as_me: failed program was:" >&5
6352 + sed 's/^/| /' conftest.$ac_ext >&5
6353  
6354 +  ac_header_preproc=no
6355 + fi
6356 + rm -f conftest.err conftest.$ac_ext
6357 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6358 + echo "${ECHO_T}$ac_header_preproc" >&6
6359  
6360 + # So?  What about this header?
6361 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6362 +  yes:no: )
6363 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
6364 + echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6365 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
6366 + echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
6367 +    ac_header_preproc=yes
6368 +    ;;
6369 +  no:yes:* )
6370 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
6371 + echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
6372 +    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
6373 + echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
6374 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
6375 + echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
6376 +    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
6377 + echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6378 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
6379 + echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
6380 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
6381 + echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
6382 +    (
6383 +      cat <<\_ASBOX
6384 + ## ------------------------------ ##
6385 + ## Report this to gezelter@nd.edu ##
6386 + ## ------------------------------ ##
6387 + _ASBOX
6388 +    ) |
6389 +      sed "s/^/$as_me: WARNING:     /" >&2
6390 +    ;;
6391 + esac
6392 + echo "$as_me:$LINENO: checking for fftw3.h" >&5
6393 + echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6394 + if test "${ac_cv_header_fftw3_h+set}" = set; then
6395 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6396 + else
6397 +  ac_cv_header_fftw3_h=$ac_header_preproc
6398 + fi
6399 + echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6400 + echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6401  
6402 < # Checks for header files.
6403 < echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6404 < echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6405 < if test "${ac_cv_header_stdc+set}" = set; then
6402 > fi
6403 > if test $ac_cv_header_fftw3_h = yes; then
6404 >  fftw_cv_fftw3_h=yes
6405 > else
6406 >  fftw_cv_fftw3_h=no
6407 > fi
6408 >
6409 >
6410 >        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"
6411 >        then
6412 >                echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
6413 > echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6
6414 > if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
6415    echo $ECHO_N "(cached) $ECHO_C" >&6
6416   else
6417 <  cat >conftest.$ac_ext <<_ACEOF
6417 >  ac_check_lib_save_LIBS=$LIBS
6418 > LIBS="-lfftw  $LIBS"
6419 > cat >conftest.$ac_ext <<_ACEOF
6420   /* confdefs.h.  */
6421   _ACEOF
6422   cat confdefs.h >>conftest.$ac_ext
6423   cat >>conftest.$ac_ext <<_ACEOF
6424   /* end confdefs.h.  */
6143 #include <stdlib.h>
6144 #include <stdarg.h>
6145 #include <string.h>
6146 #include <float.h>
6425  
6426 + /* Override any gcc2 internal prototype to avoid an error.  */
6427 + #ifdef __cplusplus
6428 + extern "C"
6429 + #endif
6430 + /* We use char because int might match the return type of a gcc2
6431 +   builtin and then its argument prototype would still apply.  */
6432 + char fftwnd_one ();
6433   #ifdef FC_DUMMY_MAIN
6434   #ifndef FC_DUMMY_MAIN_EQ_F77
6435   #  ifdef __cplusplus
# Line 6156 | Line 6441 | main ()
6441   int
6442   main ()
6443   {
6444 <
6444 > fftwnd_one ();
6445    ;
6446    return 0;
6447   }
6448   _ACEOF
6449 < rm -f conftest.$ac_objext
6450 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 <  (eval $ac_compile) 2>conftest.er1
6449 > rm -f conftest.$ac_objext conftest$ac_exeext
6450 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 >  (eval $ac_link) 2>conftest.er1
6452    ac_status=$?
6453    grep -v '^ *+' conftest.er1 >conftest.err
6454    rm -f conftest.er1
# Line 6177 | Line 6462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462    ac_status=$?
6463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464    (exit $ac_status); }; } &&
6465 <         { ac_try='test -s conftest.$ac_objext'
6465 >         { ac_try='test -s conftest$ac_exeext'
6466    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467    (eval $ac_try) 2>&5
6468    ac_status=$?
6469    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470    (exit $ac_status); }; }; then
6471 <  ac_cv_header_stdc=yes
6471 >  ac_cv_lib_fftw_fftwnd_one=yes
6472   else
6473    echo "$as_me: failed program was:" >&5
6474   sed 's/^/| /' conftest.$ac_ext >&5
6475  
6476 < ac_cv_header_stdc=no
6476 > ac_cv_lib_fftw_fftwnd_one=no
6477   fi
6478 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478 > rm -f conftest.err conftest.$ac_objext \
6479 >      conftest$ac_exeext conftest.$ac_ext
6480 > LIBS=$ac_check_lib_save_LIBS
6481 > fi
6482 > echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
6483 > echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6
6484 > if test $ac_cv_lib_fftw_fftwnd_one = yes; then
6485 >  fftw_cv_libfftw=yes
6486 > else
6487 >  fftw_cv_libfftw=no
6488 > fi
6489  
6490 < if test $ac_cv_header_stdc = yes; then
6491 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6492 <  cat >conftest.$ac_ext <<_ACEOF
6490 >                if test "${ac_cv_header_fftw_h+set}" = set; then
6491 >  echo "$as_me:$LINENO: checking for fftw.h" >&5
6492 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6493 > if test "${ac_cv_header_fftw_h+set}" = set; then
6494 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6495 > fi
6496 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6497 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6498 > else
6499 >  # Is the header compilable?
6500 > echo "$as_me:$LINENO: checking fftw.h usability" >&5
6501 > echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
6502 > cat >conftest.$ac_ext <<_ACEOF
6503   /* confdefs.h.  */
6504   _ACEOF
6505   cat confdefs.h >>conftest.$ac_ext
6506   cat >>conftest.$ac_ext <<_ACEOF
6507   /* end confdefs.h.  */
6508 < #include <string.h>
6509 <
6508 > $ac_includes_default
6509 > #include <fftw.h>
6510   _ACEOF
6511 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6512 <  $EGREP "memchr" >/dev/null 2>&1; then
6513 <  :
6511 > rm -f conftest.$ac_objext
6512 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 >  (eval $ac_compile) 2>conftest.er1
6514 >  ac_status=$?
6515 >  grep -v '^ *+' conftest.er1 >conftest.err
6516 >  rm -f conftest.er1
6517 >  cat conftest.err >&5
6518 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 >  (exit $ac_status); } &&
6520 >         { ac_try='test -z "$ac_c_werror_flag"
6521 >                         || test ! -s conftest.err'
6522 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 >  (eval $ac_try) 2>&5
6524 >  ac_status=$?
6525 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 >  (exit $ac_status); }; } &&
6527 >         { ac_try='test -s conftest.$ac_objext'
6528 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 >  (eval $ac_try) 2>&5
6530 >  ac_status=$?
6531 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 >  (exit $ac_status); }; }; then
6533 >  ac_header_compiler=yes
6534   else
6535 <  ac_cv_header_stdc=no
6536 < fi
6212 < rm -f conftest*
6535 >  echo "$as_me: failed program was:" >&5
6536 > sed 's/^/| /' conftest.$ac_ext >&5
6537  
6538 + ac_header_compiler=no
6539   fi
6540 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542 + echo "${ECHO_T}$ac_header_compiler" >&6
6543  
6544 < if test $ac_cv_header_stdc = yes; then
6545 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6546 <  cat >conftest.$ac_ext <<_ACEOF
6544 > # Is the header present?
6545 > echo "$as_me:$LINENO: checking fftw.h presence" >&5
6546 > echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
6547 > cat >conftest.$ac_ext <<_ACEOF
6548   /* confdefs.h.  */
6549   _ACEOF
6550   cat confdefs.h >>conftest.$ac_ext
6551   cat >>conftest.$ac_ext <<_ACEOF
6552   /* end confdefs.h.  */
6553 < #include <stdlib.h>
6225 <
6553 > #include <fftw.h>
6554   _ACEOF
6555 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6556 <  $EGREP "free" >/dev/null 2>&1; then
6557 <  :
6555 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6557 >  ac_status=$?
6558 >  grep -v '^ *+' conftest.er1 >conftest.err
6559 >  rm -f conftest.er1
6560 >  cat conftest.err >&5
6561 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 >  (exit $ac_status); } >/dev/null; then
6563 >  if test -s conftest.err; then
6564 >    ac_cpp_err=$ac_c_preproc_warn_flag
6565 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6566 >  else
6567 >    ac_cpp_err=
6568 >  fi
6569   else
6570 <  ac_cv_header_stdc=no
6570 >  ac_cpp_err=yes
6571   fi
6572 < rm -f conftest*
6572 > if test -z "$ac_cpp_err"; then
6573 >  ac_header_preproc=yes
6574 > else
6575 >  echo "$as_me: failed program was:" >&5
6576 > sed 's/^/| /' conftest.$ac_ext >&5
6577  
6578 +  ac_header_preproc=no
6579   fi
6580 + rm -f conftest.err conftest.$ac_ext
6581 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582 + echo "${ECHO_T}$ac_header_preproc" >&6
6583  
6584 < if test $ac_cv_header_stdc = yes; then
6585 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6586 <  if test "$cross_compiling" = yes; then
6587 <  :
6584 > # So?  What about this header?
6585 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6586 >  yes:no: )
6587 >    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6588 > echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
6590 > echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
6591 >    ac_header_preproc=yes
6592 >    ;;
6593 >  no:yes:* )
6594 >    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
6595 > echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
6596 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
6597 > echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
6598 >    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
6599 > echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
6600 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6601 > echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6602 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
6603 > echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
6604 >    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
6605 > echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
6606 >    (
6607 >      cat <<\_ASBOX
6608 > ## ------------------------------ ##
6609 > ## Report this to gezelter@nd.edu ##
6610 > ## ------------------------------ ##
6611 > _ASBOX
6612 >    ) |
6613 >      sed "s/^/$as_me: WARNING:     /" >&2
6614 >    ;;
6615 > esac
6616 > echo "$as_me:$LINENO: checking for fftw.h" >&5
6617 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6618 > if test "${ac_cv_header_fftw_h+set}" = set; then
6619 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6620   else
6621 <  cat >conftest.$ac_ext <<_ACEOF
6621 >  ac_cv_header_fftw_h=$ac_header_preproc
6622 > fi
6623 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6624 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6625 >
6626 > fi
6627 > if test $ac_cv_header_fftw_h = yes; then
6628 >  fftw_cv_fftw_h=yes
6629 > else
6630 >  fftw_cv_fftw_h=no
6631 > fi
6632 >
6633 >
6634 >                if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"
6635 >                then
6636 >                        echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6637 > echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6
6638 > if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
6639 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6640 > else
6641 >  ac_check_lib_save_LIBS=$LIBS
6642 > LIBS="-ldfftw  $LIBS"
6643 > cat >conftest.$ac_ext <<_ACEOF
6644   /* confdefs.h.  */
6645   _ACEOF
6646   cat confdefs.h >>conftest.$ac_ext
6647   cat >>conftest.$ac_ext <<_ACEOF
6648   /* end confdefs.h.  */
6248 #include <ctype.h>
6249 #if ((' ' & 0x0FF) == 0x020)
6250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6252 #else
6253 # define ISLOWER(c) \
6254                   (('a' <= (c) && (c) <= 'i') \
6255                     || ('j' <= (c) && (c) <= 'r') \
6256                     || ('s' <= (c) && (c) <= 'z'))
6257 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6258 #endif
6649  
6650 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6650 > /* Override any gcc2 internal prototype to avoid an error.  */
6651 > #ifdef __cplusplus
6652 > extern "C"
6653 > #endif
6654 > /* We use char because int might match the return type of a gcc2
6655 >   builtin and then its argument prototype would still apply.  */
6656 > char fftwnd_one ();
6657 > #ifdef FC_DUMMY_MAIN
6658 > #ifndef FC_DUMMY_MAIN_EQ_F77
6659 > #  ifdef __cplusplus
6660 >     extern "C"
6661 > #  endif
6662 >   int FC_DUMMY_MAIN() { return 1; }
6663 > #endif
6664 > #endif
6665   int
6666   main ()
6667   {
6668 <  int i;
6669 <  for (i = 0; i < 256; i++)
6670 <    if (XOR (islower (i), ISLOWER (i))
6267 <        || toupper (i) != TOUPPER (i))
6268 <      exit(2);
6269 <  exit (0);
6668 > fftwnd_one ();
6669 >  ;
6670 >  return 0;
6671   }
6672   _ACEOF
6673 < rm -f conftest$ac_exeext
6673 > rm -f conftest.$ac_objext conftest$ac_exeext
6674   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 <  (eval $ac_link) 2>&5
6675 >  (eval $ac_link) 2>conftest.er1
6676    ac_status=$?
6677 +  grep -v '^ *+' conftest.er1 >conftest.err
6678 +  rm -f conftest.er1
6679 +  cat conftest.err >&5
6680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 <  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6681 >  (exit $ac_status); } &&
6682 >         { ac_try='test -z "$ac_c_werror_flag"
6683 >                         || test ! -s conftest.err'
6684    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685    (eval $ac_try) 2>&5
6686    ac_status=$?
6687    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 +  (exit $ac_status); }; } &&
6689 +         { ac_try='test -s conftest$ac_exeext'
6690 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 +  (eval $ac_try) 2>&5
6692 +  ac_status=$?
6693 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694    (exit $ac_status); }; }; then
6695 <  :
6695 >  ac_cv_lib_dfftw_fftwnd_one=yes
6696   else
6697 <  echo "$as_me: program exited with status $ac_status" >&5
6286 < echo "$as_me: failed program was:" >&5
6697 >  echo "$as_me: failed program was:" >&5
6698   sed 's/^/| /' conftest.$ac_ext >&5
6699  
6700 < ( exit $ac_status )
6290 < ac_cv_header_stdc=no
6700 > ac_cv_lib_dfftw_fftwnd_one=no
6701   fi
6702 < rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6702 > rm -f conftest.err conftest.$ac_objext \
6703 >      conftest$ac_exeext conftest.$ac_ext
6704 > LIBS=$ac_check_lib_save_LIBS
6705   fi
6706 + echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
6707 + echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6
6708 + if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
6709 +  fftw_cv_libdfftw=yes
6710 + else
6711 +  fftw_cv_libdfftw=no
6712   fi
6295 fi
6296 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6297 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6298 if test $ac_cv_header_stdc = yes; then
6713  
6714 < cat >>confdefs.h <<\_ACEOF
6715 < #define STDC_HEADERS 1
6716 < _ACEOF
6717 <
6304 < fi
6305 <
6306 <
6307 <
6308 <
6309 <
6310 <
6311 <
6312 <
6313 <
6314 <
6315 < for ac_header in libintl.h limits.h stddef.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
6316 < do
6317 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6318 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6319 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
6320 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6321 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6714 >                        if test "${ac_cv_header_dfftw_h+set}" = set; then
6715 >  echo "$as_me:$LINENO: checking for dfftw.h" >&5
6716 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6717 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6718    echo $ECHO_N "(cached) $ECHO_C" >&6
6719   fi
6720 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6720 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6721 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6722   else
6723    # Is the header compilable?
6724 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
6725 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6724 > echo "$as_me:$LINENO: checking dfftw.h usability" >&5
6725 > echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6
6726   cat >conftest.$ac_ext <<_ACEOF
6727   /* confdefs.h.  */
6728   _ACEOF
# Line 6334 | Line 6730 | $ac_includes_default
6730   cat >>conftest.$ac_ext <<_ACEOF
6731   /* end confdefs.h.  */
6732   $ac_includes_default
6733 < #include <$ac_header>
6733 > #include <dfftw.h>
6734   _ACEOF
6735   rm -f conftest.$ac_objext
6736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 6370 | Line 6766 | echo "$as_me:$LINENO: checking $ac_header presence" >&
6766   echo "${ECHO_T}$ac_header_compiler" >&6
6767  
6768   # Is the header present?
6769 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
6770 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6769 > echo "$as_me:$LINENO: checking dfftw.h presence" >&5
6770 > echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6
6771   cat >conftest.$ac_ext <<_ACEOF
6772   /* confdefs.h.  */
6773   _ACEOF
6774   cat confdefs.h >>conftest.$ac_ext
6775   cat >>conftest.$ac_ext <<_ACEOF
6776   /* end confdefs.h.  */
6777 < #include <$ac_header>
6777 > #include <dfftw.h>
6778   _ACEOF
6779   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6780    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 6412 | Line 6808 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
6808   # So?  What about this header?
6809   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6810    yes:no: )
6811 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6812 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6813 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6814 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6811 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6812 > echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6813 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
6814 > echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
6815      ac_header_preproc=yes
6816      ;;
6817    no:yes:* )
6818 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6819 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6820 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6821 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6822 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6823 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6824 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6825 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6826 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6827 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6828 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6829 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6818 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
6819 > echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
6820 >    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
6821 > echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
6822 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
6823 > echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
6824 >    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6825 > echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6826 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
6827 > echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
6828 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
6829 > echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
6830      (
6831        cat <<\_ASBOX
6832   ## ------------------------------ ##
# Line 6441 | Line 6837 | echo "$as_me:$LINENO: checking for $ac_header" >&5
6837        sed "s/^/$as_me: WARNING:     /" >&2
6838      ;;
6839   esac
6840 < echo "$as_me:$LINENO: checking for $ac_header" >&5
6841 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6842 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6840 > echo "$as_me:$LINENO: checking for dfftw.h" >&5
6841 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6842 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6843    echo $ECHO_N "(cached) $ECHO_C" >&6
6844   else
6845 <  eval "$as_ac_Header=\$ac_header_preproc"
6845 >  ac_cv_header_dfftw_h=$ac_header_preproc
6846   fi
6847 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6848 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6848 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6849  
6850   fi
6851 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
6852 <  cat >>confdefs.h <<_ACEOF
6853 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 > if test $ac_cv_header_dfftw_h = yes; then
6852 >  fftw_cv_dfftw_h=yes
6853 > else
6854 >  fftw_cv_dfftw_h=no
6855 > fi
6856 >
6857 >
6858 >                fi
6859 >        fi
6860 >        ac_ext=c
6861 > ac_cpp='$CPP $CPPFLAGS'
6862 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865 >
6866 >
6867 >        if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"
6868 >        then
6869 >
6870 > cat >>confdefs.h <<\_ACEOF
6871 > #define HAVE_FFTW3_H 1
6872   _ACEOF
6873  
6874 +                FFTW_INC_DIR="${FFTW_HOME}/include"
6875 +                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6876 +                FFTW_LIBS="-lfftw3"
6877 +        else
6878 +        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"
6879 +        then
6880 +
6881 + cat >>confdefs.h <<\_ACEOF
6882 + #define HAVE_FFTW_H 1
6883 + _ACEOF
6884 +
6885 +                FFTW_INC_DIR="${FFTW_HOME}/include"
6886 +                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6887 +                FFTW_LIBS="-lfftw"
6888 +        else
6889 +        if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"
6890 +        then
6891 +
6892 + cat >>confdefs.h <<\_ACEOF
6893 + #define HAVE_DFFTW_H 1
6894 + _ACEOF
6895 +
6896 +                FFTW_INC_DIR="${FFTW_HOME}/include"
6897 +                FFTW_LIB_DIR="${FFTW_HOME}/lib"
6898 +                FFTW_LIBS="-ldfftw"
6899 +        else
6900 +                echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
6901 + echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6
6902 +                FFTW_INC_DIR=
6903 +                FFTW_LIB_DIR=
6904 +                FFTW_LIBS=
6905 +                LDFLAGS="$FFTW_OLD_LDFLAGS"
6906 +                CPPFLAGS="$FFTW_OLD_CPPFLAGS"
6907 +                echo "$as_me:$LINENO: result: failed" >&5
6908 + echo "${ECHO_T}failed" >&6
6909 +        echo ""
6910 +        echo "*********************************************************"
6911 +        echo "* WARNING: Could not find a working FFTW installation   *"
6912 +        echo "* If you need the staticProps program to be able to     *"
6913 +        echo "* compute undulation spectra, be sure to specify a      *"
6914 +        echo "* valid fftw installation with --with-fftw=DIR          *"
6915 +        echo "*                                                       *"
6916 +        echo "* OOPSE will still work without fftw installed.         *"
6917 +        echo "*********************************************************"
6918 +        echo ""
6919 +        fi
6920 +        fi
6921 +        fi
6922 +
6923 +
6924 +
6925   fi
6926 + fi
6927  
6928 < done
6928 >
6929 >
6930 > # Checks for header files.
6931 > echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6932 > echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6933 > if test "${ac_cv_header_stdc+set}" = set; then
6934 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6935 > else
6936 >  cat >conftest.$ac_ext <<_ACEOF
6937 > /* confdefs.h.  */
6938 > _ACEOF
6939 > cat confdefs.h >>conftest.$ac_ext
6940 > cat >>conftest.$ac_ext <<_ACEOF
6941 > /* end confdefs.h.  */
6942 > #include <stdlib.h>
6943 > #include <stdarg.h>
6944 > #include <string.h>
6945 > #include <float.h>
6946  
6947 + #ifdef FC_DUMMY_MAIN
6948 + #ifndef FC_DUMMY_MAIN_EQ_F77
6949 + #  ifdef __cplusplus
6950 +     extern "C"
6951 + #  endif
6952 +   int FC_DUMMY_MAIN() { return 1; }
6953 + #endif
6954 + #endif
6955 + int
6956 + main ()
6957 + {
6958  
6959 +  ;
6960 +  return 0;
6961 + }
6962 + _ACEOF
6963 + rm -f conftest.$ac_objext
6964 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 +  (eval $ac_compile) 2>conftest.er1
6966 +  ac_status=$?
6967 +  grep -v '^ *+' conftest.er1 >conftest.err
6968 +  rm -f conftest.er1
6969 +  cat conftest.err >&5
6970 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 +  (exit $ac_status); } &&
6972 +         { ac_try='test -z "$ac_c_werror_flag"
6973 +                         || test ! -s conftest.err'
6974 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 +  (eval $ac_try) 2>&5
6976 +  ac_status=$?
6977 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 +  (exit $ac_status); }; } &&
6979 +         { ac_try='test -s conftest.$ac_objext'
6980 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 +  (eval $ac_try) 2>&5
6982 +  ac_status=$?
6983 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 +  (exit $ac_status); }; }; then
6985 +  ac_cv_header_stdc=yes
6986 + else
6987 +  echo "$as_me: failed program was:" >&5
6988 + sed 's/^/| /' conftest.$ac_ext >&5
6989  
6990 + ac_cv_header_stdc=no
6991 + fi
6992 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6993  
6994 + if test $ac_cv_header_stdc = yes; then
6995 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6996 +  cat >conftest.$ac_ext <<_ACEOF
6997 + /* confdefs.h.  */
6998 + _ACEOF
6999 + cat confdefs.h >>conftest.$ac_ext
7000 + cat >>conftest.$ac_ext <<_ACEOF
7001 + /* end confdefs.h.  */
7002 + #include <string.h>
7003  
7004 + _ACEOF
7005 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7006 +  $EGREP "memchr" >/dev/null 2>&1; then
7007 +  :
7008 + else
7009 +  ac_cv_header_stdc=no
7010 + fi
7011 + rm -f conftest*
7012  
7013 + fi
7014  
7015 + if test $ac_cv_header_stdc = yes; then
7016 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7017 +  cat >conftest.$ac_ext <<_ACEOF
7018 + /* confdefs.h.  */
7019 + _ACEOF
7020 + cat confdefs.h >>conftest.$ac_ext
7021 + cat >>conftest.$ac_ext <<_ACEOF
7022 + /* end confdefs.h.  */
7023 + #include <stdlib.h>
7024  
7025 + _ACEOF
7026 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 +  $EGREP "free" >/dev/null 2>&1; then
7028 +  :
7029 + else
7030 +  ac_cv_header_stdc=no
7031 + fi
7032 + rm -f conftest*
7033  
7034 + fi
7035  
7036 + if test $ac_cv_header_stdc = yes; then
7037 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7038 +  if test "$cross_compiling" = yes; then
7039 +  :
7040 + else
7041 +  cat >conftest.$ac_ext <<_ACEOF
7042 + /* confdefs.h.  */
7043 + _ACEOF
7044 + cat confdefs.h >>conftest.$ac_ext
7045 + cat >>conftest.$ac_ext <<_ACEOF
7046 + /* end confdefs.h.  */
7047 + #include <ctype.h>
7048 + #if ((' ' & 0x0FF) == 0x020)
7049 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7050 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7051 + #else
7052 + # define ISLOWER(c) \
7053 +                   (('a' <= (c) && (c) <= 'i') \
7054 +                     || ('j' <= (c) && (c) <= 'r') \
7055 +                     || ('s' <= (c) && (c) <= 'z'))
7056 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7057 + #endif
7058  
7059 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7060 + int
7061 + main ()
7062 + {
7063 +  int i;
7064 +  for (i = 0; i < 256; i++)
7065 +    if (XOR (islower (i), ISLOWER (i))
7066 +        || toupper (i) != TOUPPER (i))
7067 +      exit(2);
7068 +  exit (0);
7069 + }
7070 + _ACEOF
7071 + rm -f conftest$ac_exeext
7072 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 +  (eval $ac_link) 2>&5
7074 +  ac_status=$?
7075 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7077 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 +  (eval $ac_try) 2>&5
7079 +  ac_status=$?
7080 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 +  (exit $ac_status); }; }; then
7082 +  :
7083 + else
7084 +  echo "$as_me: program exited with status $ac_status" >&5
7085 + echo "$as_me: failed program was:" >&5
7086 + sed 's/^/| /' conftest.$ac_ext >&5
7087  
7088 + ( exit $ac_status )
7089 + ac_cv_header_stdc=no
7090 + fi
7091 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7092 + fi
7093 + fi
7094 + fi
7095 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7096 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
7097 + if test $ac_cv_header_stdc = yes; then
7098  
7099 + cat >>confdefs.h <<\_ACEOF
7100 + #define STDC_HEADERS 1
7101 + _ACEOF
7102  
7103 + fi
7104  
7105 < for ac_header in stdio.h conio.h strstream.h iostream.h fstream.h math.h time.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
7105 >
7106 >
7107 >
7108 >
7109 >
7110 >
7111 >
7112 >
7113 >
7114 >
7115 >
7116 >
7117 >
7118 >
7119 >
7120 >
7121 >
7122 >
7123 >
7124 >
7125 >
7126 >
7127 >
7128 >
7129 >
7130 > for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h
7131   do
7132   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7133   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 8752 | Line 9404 | for ac_func in floor getpagesize gettimeofday memchr m
9404  
9405  
9406  
9407 < for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9407 >
9408 > for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9409   do
9410   as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9411   echo "$as_me:$LINENO: checking for $ac_func" >&5
# Line 11283 | Line 11936 | if test "$ac_test_FCFLAGS" != "set"; then
11936   # Try to determine "good" native compiler flags if none specified on command
11937   # line
11938  
11939 < if test "$ac_test_FCFLAGS" != "set"; then
11939 > if test "$ac_test_FFLAGS" != "set"; then
11940    FCFLAGS=""
11941    case "${host_cpu}-${host_os}" in
11942  
11943    *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
11944 <                    FCFLAGS="-O"
11944 >                    FCFLAGS="-O3 -ip -no-prec-div -cxxlib-icc"
11945                  fi;;
11946     rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
11947                      FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
# Line 11309 | Line 11962 | if test "$ac_test_FCFLAGS" != "set"; then
11962     *darwin*)
11963          if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
11964                  FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
11965 +        fi
11966 +        if test "$FC" = ifort; then
11967 +                FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic"
11968          fi;;
11969    esac
11970  
# Line 11468 | Line 12124 | if test "$ac_test_CFLAGS" != "set"; then
12124     *darwin*)
12125          if test "$CC" = xlc -o "$CC" = cc; then
12126                  CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12127 +        fi
12128 +        if test "$CC" = icc; then
12129 +                CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12130          fi;;
12131    esac
12132  
# Line 11922 | Line 12581 | if test "$ac_test_CXXFLAGS" != "set"; then
12581     *darwin*)
12582          if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
12583                  CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12584 +        fi
12585 +        if test "$CXX" = icpc; then
12586 +                CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12587          fi;;
12588    esac
12589  
# Line 12337 | Line 12999 | echo "$as_me:$LINENO: checking for mpi.h" >&5
12999  
13000  
13001  
13002 + ac_ext=c
13003 + ac_cpp='$CPP $CPPFLAGS'
13004 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13005 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13006 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13007 +
13008   echo "$as_me:$LINENO: checking for mpi.h" >&5
13009   echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
13010   have_mpi_h=0
13011   rm -f conftest*
13012 < echo '#include <mpi.h>' > conftest.cc
13013 < if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
13012 > echo '#include <mpi.h>' > conftest.c
13013 > if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
13014          echo "$as_me:$LINENO: result: yes" >&5
13015   echo "${ECHO_T}yes" >&6
13016          have_mpi_h=1
# Line 12365 | Line 13033 | have_mpif_h=0
13033  
13034   echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13035   echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
13036 +
13037 +
13038 + ac_ext=${FC_SRCEXT-f}
13039 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13040 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
13041 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13042 +
13043 + ac_save_ext=$ac_ext
13044 + ac_ext=F90
13045 + ac_save_FCFLAGS=$FCFLAGS
13046   have_mpif_h=0
13047   rm -f conftest*
13048   cat >conftest.$ac_ext <<EOF
# Line 12394 | Line 13072 | fi
13072   _ACEOF
13073  
13074   fi
13075 + FCFLAGS=$ac_save_FCFLAGS
13076 + ac_ext=$ac_save_ext
13077 + ac_ext=c
13078 + ac_cpp='$CPP $CPPFLAGS'
13079 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13082  
13083 +
13084   ac_ext=c
13085   ac_cpp='$CPP $CPPFLAGS'
13086   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 12402 | Line 13088 | LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
13088   ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089  
13090   ac_save_LDFLAGS=$LDFLAGS
13091 < LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
13091 > LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
13092  
13093   if test x = x"$MPI_LIB"; then
13094          echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
# Line 12482 | Line 13168 | if test x = x"$MPI_LIB"; then
13168   fi
13169  
13170   fi
13171 + $as_unset ac_cv_lib_mpich_MPI_Init
13172   if test x = x"$MPI_LIB"; then
13173 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13174 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13175 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13173 >        echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
13174 > echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6
13175 > if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
13176    echo $ECHO_N "(cached) $ECHO_C" >&6
13177   else
13178    ac_check_lib_save_LIBS=$LIBS
13179 < LIBS="-lmpi  $LIBS"
13179 > LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
13180   cat >conftest.$ac_ext <<_ACEOF
13181   /* confdefs.h.  */
13182   _ACEOF
# Line 12542 | Line 13229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229    ac_status=$?
13230    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231    (exit $ac_status); }; }; then
13232 <  ac_cv_lib_mpi_MPI_Init=yes
13232 >  ac_cv_lib_pmpich_MPI_Init=yes
13233   else
13234    echo "$as_me: failed program was:" >&5
13235   sed 's/^/| /' conftest.$ac_ext >&5
13236  
13237 < ac_cv_lib_mpi_MPI_Init=no
13237 > ac_cv_lib_pmpich_MPI_Init=no
13238   fi
13239   rm -f conftest.err conftest.$ac_objext \
13240        conftest$ac_exeext conftest.$ac_ext
13241   LIBS=$ac_check_lib_save_LIBS
13242   fi
13243 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13244 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13245 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13246 <  MPI_LIB="-lmpi"
13243 > echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
13244 > echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6
13245 > if test $ac_cv_lib_pmpich_MPI_Init = yes; then
13246 >  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
13247   fi
13248  
13249   fi
12563 $as_unset ac_cv_lib_mpi_MPI_Init
13250   if test x = x"$MPI_LIB"; then
13251          echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13252   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
# Line 12568 | Line 13254 | LIBS="-lmpi "-llam" $LIBS"
13254    echo $ECHO_N "(cached) $ECHO_C" >&6
13255   else
13256    ac_check_lib_save_LIBS=$LIBS
13257 < LIBS="-lmpi "-llam" $LIBS"
13257 > LIBS="-lmpi  $LIBS"
13258   cat >conftest.$ac_ext <<_ACEOF
13259   /* confdefs.h.  */
13260   _ACEOF
# Line 12635 | Line 13321 | if test $ac_cv_lib_mpi_MPI_Init = yes; then
13321   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13322   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13323   if test $ac_cv_lib_mpi_MPI_Init = yes; then
13324 <  MPI_LIB="-lmpi -llam"
13324 >  MPI_LIB="-lmpi"
13325   fi
13326  
13327   fi
13328 < $as_unset ac_cv_lib_mpich_MPI_Init
13328 > $as_unset ac_cv_lib_mpi_MPI_Init
13329   if test x = x"$MPI_LIB"; then
13330 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
13331 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13332 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13330 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13331 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13332 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13333    echo $ECHO_N "(cached) $ECHO_C" >&6
13334   else
13335    ac_check_lib_save_LIBS=$LIBS
13336 < LIBS="-lmpich "-lpmpich" $LIBS"
13336 > LIBS="-lmpi -llam $LIBS"
13337   cat >conftest.$ac_ext <<_ACEOF
13338   /* confdefs.h.  */
13339   _ACEOF
# Line 12700 | Line 13386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386    ac_status=$?
13387    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388    (exit $ac_status); }; }; then
13389 <  ac_cv_lib_mpich_MPI_Init=yes
13389 >  ac_cv_lib_mpi_MPI_Init=yes
13390   else
13391    echo "$as_me: failed program was:" >&5
13392   sed 's/^/| /' conftest.$ac_ext >&5
13393  
13394 < ac_cv_lib_mpich_MPI_Init=no
13394 > ac_cv_lib_mpi_MPI_Init=no
13395   fi
13396   rm -f conftest.err conftest.$ac_objext \
13397        conftest$ac_exeext conftest.$ac_ext
13398   LIBS=$ac_check_lib_save_LIBS
13399   fi
13400 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13401 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13402 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
13403 <  MPI_LIB="-lmpich -lpmpich"
13400 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13401 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13402 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
13403 >  MPI_LIB="-lmpi -llam"
13404   fi
13405  
13406   fi
12721
13407   $as_unset ac_cv_lib_mpi_MPI_Init
13408   if test x = x"$MPI_LIB"; then
13409   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
# Line 13274 | Line 13959 | CGAL_RLIB_DIR=${CGAL_RLIBDIR}
13959   CGAL_LIB_DIR=${CGAL_LIBDIR}
13960  
13961   CGAL_RLIB_DIR=${CGAL_RLIBDIR}
13277
13962  
13963  
13964  
# Line 13799 | Line 14483 | This file was extended by OOPSE $as_me 2.0, which was
14483   } >&5
14484   cat >&5 <<_CSEOF
14485  
14486 < This file was extended by OOPSE $as_me 2.0, which was
14486 > This file was extended by OOPSE $as_me 3.0, which was
14487   generated by GNU Autoconf 2.59.  Invocation command line was
14488  
14489    CONFIG_FILES    = $CONFIG_FILES
# Line 13862 | Line 14546 | OOPSE config.status 2.0
14546  
14547   cat >>$CONFIG_STATUS <<_ACEOF
14548   ac_cs_version="\\
14549 < OOPSE config.status 2.0
14549 > OOPSE config.status 3.0
14550   configured by $0, generated by GNU Autoconf 2.59,
14551    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14552  
# Line 14066 | Line 14750 | s,@CXX@,$CXX,;t t
14750   s,@host_os@,$host_os,;t t
14751   s,@PROGNAME@,$PROGNAME,;t t
14752   s,@debug@,$debug,;t t
14753 + s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t
14754   s,@CXX@,$CXX,;t t
14755   s,@CXXFLAGS@,$CXXFLAGS,;t t
14756   s,@LDFLAGS@,$LDFLAGS,;t t
# Line 14103 | Line 14788 | s,@LIBOBJS@,$LIBOBJS,;t t
14788   s,@MODDIRFLAG@,$MODDIRFLAG,;t t
14789   s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
14790   s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
14791 + s,@ZLIB_INC_DIR@,$ZLIB_INC_DIR,;t t
14792 + s,@ZLIB_LIB_DIR@,$ZLIB_LIB_DIR,;t t
14793 + s,@ZLIB@,$ZLIB,;t t
14794 + s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t
14795 + s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t
14796 + s,@FFTW_LIBS@,$FFTW_LIBS,;t t
14797   s,@LIBOBJS@,$LIBOBJS,;t t
14798   s,@POW_LIB@,$POW_LIB,;t t
14799   s,@CXXCPP@,$CXXCPP,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines