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 1223 by gezelter, Wed Jan 23 22:36:36 2008 UTC vs.
Revision 1226 by gezelter, Mon Feb 11 23:05:00 2008 UTC

# Line 664 | Line 664 | USE_SINGLE_PRECISION
664   PROGNAME
665   debug
666   USE_SINGLE_PRECISION
667 + ac_cc_set
668 + ac_cc_path
669 + ac_cxx_set
670 + ac_cxx_path
671 + ac_fc_set
672 + ac_fc_path
673 + acx_mpi_mpicc
674 + acx_mpi_mpicc_path
675 + acx_mpi_mpif90
676 + acx_mpi_mpif90_path
677 + acx_mpi_mpicxx
678 + acx_mpi_mpicxx_path
679 + MPI_CPPFLAGS
680 + MPI_LIBS
681 + MPI90_LIBS
682 + USE_MPI
683   CXX
684   CXXFLAGS
685   LDFLAGS
# Line 683 | Line 699 | RANLIB
699   LN_S
700   SET_MAKE
701   RANLIB
686 YACC
687 YFLAGS
688 LEX
689 LEX_OUTPUT_ROOT
690 LEXLIB
702   PERLINTERP
703   PERL_SHEBANG
704   INSTALL_PROGRAM
# Line 723 | Line 734 | POW_LIB
734   USE_OPENBABEL
735   LIBOBJS
736   POW_LIB
726 __func__
727 MPI_LIB_DIR
728 MPI_INC_DIR
729 MPI_F90_INC
730 MPI_LIB
731 MPI_F90_LIB
732 USE_MPI
737   CGAL_MAKEFILE
738   CGAL_CXXFLAGS
739   CGAL_CPPFLAGS
# Line 763 | Line 767 | CPP
767   FC
768   FCFLAGS
769   CPP
766 YACC
767 YFLAGS
770   CXXCPP'
771  
772  
# Line 1352 | Line 1354 | Optional Packages:
1354   Optional Packages:
1355    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1356    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1357 +  --with-mpi=auto|mpich|lam|openmpi|no
1358 +                          Indicates which kind of MPI implementation to use
1359 +                          [default=auto]
1360    --with-perl-shebang     override what perl thinks is the way for the kernel
1361                            to start it (seldom needed)
1362    --with-zlib=DIR         root directory path of zlib installation (defaults
# Line 1363 | Line 1368 | Optional Packages:
1368    --with-openbabel=DIR    root directory path of openbabel-2.x installation
1369                            (defaults to /usr/local or /usr if not found in
1370                            /usr/local)
1366  --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
1371    --with-cgalmakefile=makefile
1372                            Use the following CGAL makefile
1373  
# Line 1380 | Line 1384 | Some influential environment variables:
1384    FC          Fortran compiler command
1385    FCFLAGS     Fortran compiler flags
1386    CPP         C preprocessor
1383  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1384              the first program found out of: `bison -y', `byacc', `yacc'.
1385  YFLAGS      The list of arguments that will be passed by default to $YACC.
1386              This script will default YFLAGS to the empty string to avoid a
1387              default value of `-d' given by some make applications.
1387    CXXCPP      C++ preprocessor
1388  
1389   Use these variables to override the choices made by `configure' or to help
# Line 1914 | Line 1913 | ac_config_headers="$ac_config_headers src/config.h"
1913   # Figure out how the Fortran 90 compiler constructs module file names
1914   #
1915   # AC_F90_MODULE_NAMES
1916 +
1917 +
1918 +
1919 +
1920 +
1921 +
1922 +
1923 +
1924 +
1925  
1926  
1927  
# Line 1991 | Line 1999 | ac_config_headers="$ac_config_headers src/config.h"
1999  
2000  
2001  
2002 +
2003 + # ACX_MPI_GET_PROG
2004 +
2005 + # ACX_DETECT_MPI_IMPLEMENTATION
2006  
2007  
2008  
2009  
2010  
2011 + # ACX_MPI
2012  
2013  
2014  
# Line 2210 | Line 2223 | fi
2223  
2224   fi
2225  
2226 < # Checks for programs.
2227 < ac_ext=cpp
2228 < ac_cpp='$CXXCPP $CPPFLAGS'
2229 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2219 < if test -z "$CXX"; then
2220 <  if test -n "$CCC"; then
2221 <    CXX=$CCC
2222 <  else
2223 <    if test -n "$ac_tool_prefix"; then
2224 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2225 <  do
2226 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2226 > if test x"$CC" != x; then
2227 >   for ac_prog in $CC
2228 > do
2229 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2230 > set dummy $ac_prog; ac_word=$2
2231   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 < if test "${ac_cv_prog_CXX+set}" = set; then
2233 > if test "${ac_cv_prog_ac_cc_set+set}" = set; then
2234    echo $ECHO_N "(cached) $ECHO_C" >&6
2235   else
2236 <  if test -n "$CXX"; then
2237 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2236 >  if test -n "$ac_cc_set"; then
2237 >  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
2238   else
2239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240   for as_dir in $PATH
# Line 2240 | Line 2243 | do
2243    test -z "$as_dir" && as_dir=.
2244    for ac_exec_ext in '' $ac_executable_extensions; do
2245    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2246 >    ac_cv_prog_ac_cc_set="$ac_prog"
2247      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248      break 2
2249    fi
# Line 2250 | Line 2253 | fi
2253  
2254   fi
2255   fi
2256 < CXX=$ac_cv_prog_CXX
2257 < if test -n "$CXX"; then
2258 <  { echo "$as_me:$LINENO: result: $CXX" >&5
2259 < echo "${ECHO_T}$CXX" >&6; }
2256 > ac_cc_set=$ac_cv_prog_ac_cc_set
2257 > if test -n "$ac_cc_set"; then
2258 >  { echo "$as_me:$LINENO: result: $ac_cc_set" >&5
2259 > echo "${ECHO_T}$ac_cc_set" >&6; }
2260   else
2261    { echo "$as_me:$LINENO: result: no" >&5
2262   echo "${ECHO_T}no" >&6; }
2263   fi
2264  
2265  
2266 <    test -n "$CXX" && break
2267 <  done
2266 >  test -n "$ac_cc_set" && break
2267 > done
2268 > test -n "$ac_cc_set" || ac_cc_set="no"
2269 >
2270 >   if test $ac_cc_set != no; then
2271 >
2272 >     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
2273 > set dummy $ac_cc_set; ac_word=$2
2274 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 > if test "${ac_cv_path_ac_cc_path+set}" = set; then
2277 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2278 > else
2279 >  case $ac_cc_path in
2280 >  [\\/]* | ?:[\\/]*)
2281 >  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
2282 >  ;;
2283 >  *)
2284 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 > for as_dir in $PATH
2286 > do
2287 >  IFS=$as_save_IFS
2288 >  test -z "$as_dir" && as_dir=.
2289 >  for ac_exec_ext in '' $ac_executable_extensions; do
2290 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 >    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
2292 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 >    break 2
2294 >  fi
2295 > done
2296 > done
2297 > IFS=$as_save_IFS
2298 >
2299 >  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
2300 >  ;;
2301 > esac
2302   fi
2303 < if test -z "$CXX"; then
2304 <  ac_ct_CXX=$CXX
2305 <  for ac_prog in mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
2303 > ac_cc_path=$ac_cv_path_ac_cc_path
2304 > if test -n "$ac_cc_path"; then
2305 >  { echo "$as_me:$LINENO: result: $ac_cc_path" >&5
2306 > echo "${ECHO_T}$ac_cc_path" >&6; }
2307 > else
2308 >  { echo "$as_me:$LINENO: result: no" >&5
2309 > echo "${ECHO_T}no" >&6; }
2310 > fi
2311 >
2312 >
2313 > else
2314 >
2315 >     { { echo "$as_me:$LINENO: error: Specified C compiler $CC doesn't seem to exist!" >&5
2316 > echo "$as_me: error: Specified C compiler $CC doesn't seem to exist!" >&2;}
2317 >   { (exit 1); exit 1; }; }
2318 > fi
2319 >
2320 >
2321 >   if test $ac_cc_path != no; then
2322 >
2323 >     { echo "$as_me:$LINENO: Will attempt to use $CC as C compiler" >&5
2324 > echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
2325 > else
2326 >
2327 >     { { echo "$as_me:$LINENO: error: Can't find path to user-specified C compiler $CC" >&5
2328 > echo "$as_me: error: Can't find path to user-specified C compiler $CC" >&2;}
2329 >   { (exit 1); exit 1; }; }
2330 > fi
2331 >
2332 > fi
2333 >
2334 > if test x"$CXX" != x; then
2335 >   for ac_prog in $CXX
2336   do
2337    # Extract the first word of "$ac_prog", so it can be a program name with args.
2338   set dummy $ac_prog; ac_word=$2
2339   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2341 > if test "${ac_cv_prog_ac_cxx_set+set}" = set; then
2342    echo $ECHO_N "(cached) $ECHO_C" >&6
2343   else
2344 <  if test -n "$ac_ct_CXX"; then
2345 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2344 >  if test -n "$ac_cxx_set"; then
2345 >  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
2346   else
2347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348   for as_dir in $PATH
# Line 2284 | Line 2351 | do
2351    test -z "$as_dir" && as_dir=.
2352    for ac_exec_ext in '' $ac_executable_extensions; do
2353    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
2354 >    ac_cv_prog_ac_cxx_set="$ac_prog"
2355      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356      break 2
2357    fi
# Line 2294 | Line 2361 | fi
2361  
2362   fi
2363   fi
2364 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2365 < if test -n "$ac_ct_CXX"; then
2366 <  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2367 < echo "${ECHO_T}$ac_ct_CXX" >&6; }
2364 > ac_cxx_set=$ac_cv_prog_ac_cxx_set
2365 > if test -n "$ac_cxx_set"; then
2366 >  { echo "$as_me:$LINENO: result: $ac_cxx_set" >&5
2367 > echo "${ECHO_T}$ac_cxx_set" >&6; }
2368   else
2369    { echo "$as_me:$LINENO: result: no" >&5
2370   echo "${ECHO_T}no" >&6; }
2371   fi
2372  
2373  
2374 <  test -n "$ac_ct_CXX" && break
2374 >  test -n "$ac_cxx_set" && break
2375   done
2376 + test -n "$ac_cxx_set" || ac_cxx_set="no"
2377  
2378 <  if test "x$ac_ct_CXX" = x; then
2311 <    CXX="g++"
2312 <  else
2313 <    case $cross_compiling:$ac_tool_warned in
2314 < yes:)
2315 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316 < whose name does not start with the host triplet.  If you think this
2317 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2318 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319 < whose name does not start with the host triplet.  If you think this
2320 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321 < ac_tool_warned=yes ;;
2322 < esac
2323 <    CXX=$ac_ct_CXX
2324 <  fi
2325 < fi
2378 >   if test $ac_cxx_set != no; then
2379  
2380 +     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
2381 + set dummy $ac_cxx_set; ac_word=$2
2382 + { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 + if test "${ac_cv_path_ac_cxx_path+set}" = set; then
2385 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2386 + else
2387 +  case $ac_cxx_path in
2388 +  [\\/]* | ?:[\\/]*)
2389 +  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
2390 +  ;;
2391 +  *)
2392 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 + for as_dir in $PATH
2394 + do
2395 +  IFS=$as_save_IFS
2396 +  test -z "$as_dir" && as_dir=.
2397 +  for ac_exec_ext in '' $ac_executable_extensions; do
2398 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 +    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
2400 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 +    break 2
2402    fi
2403 < fi
2404 < # Provide some information about the compiler.
2405 < echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2406 < ac_compiler=`set X $ac_compile; echo $2`
2407 < { (ac_try="$ac_compiler --version >&5"
2408 < case "(($ac_try" in
2334 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 <  *) ac_try_echo=$ac_try;;
2403 > done
2404 > done
2405 > IFS=$as_save_IFS
2406 >
2407 >  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
2408 >  ;;
2409   esac
2410 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 <  (eval "$ac_compiler --version >&5") 2>&5
2412 <  ac_status=$?
2413 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 <  (exit $ac_status); }
2415 < { (ac_try="$ac_compiler -v >&5"
2416 < case "(($ac_try" in
2417 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 <  *) ac_try_echo=$ac_try;;
2346 < esac
2347 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348 <  (eval "$ac_compiler -v >&5") 2>&5
2349 <  ac_status=$?
2350 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 <  (exit $ac_status); }
2352 < { (ac_try="$ac_compiler -V >&5"
2353 < case "(($ac_try" in
2354 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 <  *) ac_try_echo=$ac_try;;
2356 < esac
2357 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 <  (eval "$ac_compiler -V >&5") 2>&5
2359 <  ac_status=$?
2360 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 <  (exit $ac_status); }
2410 > fi
2411 > ac_cxx_path=$ac_cv_path_ac_cxx_path
2412 > if test -n "$ac_cxx_path"; then
2413 >  { echo "$as_me:$LINENO: result: $ac_cxx_path" >&5
2414 > echo "${ECHO_T}$ac_cxx_path" >&6; }
2415 > else
2416 >  { echo "$as_me:$LINENO: result: no" >&5
2417 > echo "${ECHO_T}no" >&6; }
2418 > fi
2419  
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2420  
2421 < int
2371 < main ()
2372 < {
2421 > else
2422  
2423 <  ;
2424 <  return 0;
2425 < }
2377 < _ACEOF
2378 < ac_clean_files_save=$ac_clean_files
2379 < ac_clean_files="$ac_clean_files a.out a.exe b.out"
2380 < # Try to create an executable without -o first, disregard a.out.
2381 < # It will help us diagnose broken compilers, and finding out an intuition
2382 < # of exeext.
2383 < { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2384 < echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2385 < ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386 < #
2387 < # List of possible output files, starting from the most likely.
2388 < # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2389 < # only as a last resort.  b.out is created by i960 compilers.
2390 < ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2391 < #
2392 < # The IRIX 6 linker writes into existing files which may not be
2393 < # executable, retaining their permissions.  Remove them first so a
2394 < # subsequent execution test works.
2395 < ac_rmfiles=
2396 < for ac_file in $ac_files
2397 < do
2398 <  case $ac_file in
2399 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2400 <    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2401 <  esac
2402 < done
2403 < rm -f $ac_rmfiles
2404 <
2405 < if { (ac_try="$ac_link_default"
2406 < case "(($ac_try" in
2407 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 <  *) ac_try_echo=$ac_try;;
2409 < esac
2410 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 <  (eval "$ac_link_default") 2>&5
2412 <  ac_status=$?
2413 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 <  (exit $ac_status); }; then
2415 <  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2416 < # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2417 < # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2418 < # so that the user can short-circuit this test for compilers unknown to
2419 < # Autoconf.
2420 < for ac_file in $ac_files ''
2421 < do
2422 <  test -f "$ac_file" || continue
2423 <  case $ac_file in
2424 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2425 <        ;;
2426 <    [ab].out )
2427 <        # We found the default executable, but exeext='' is most
2428 <        # certainly right.
2429 <        break;;
2430 <    *.* )
2431 <        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2432 <        then :; else
2433 <           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2434 <        fi
2435 <        # We set ac_cv_exeext here because the later test for it is not
2436 <        # safe: cross compilers may not add the suffix if given an `-o'
2437 <        # argument, so we may need to know it at that point already.
2438 <        # Even if this section looks crufty: it has the advantage of
2439 <        # actually working.
2440 <        break;;
2441 <    * )
2442 <        break;;
2443 <  esac
2444 < done
2445 < test "$ac_cv_exeext" = no && ac_cv_exeext=
2446 <
2447 < else
2448 <  ac_file=''
2423 >     { { echo "$as_me:$LINENO: error: Specified C++ compiler $CXX doesn't seem to exist!" >&5
2424 > echo "$as_me: error: Specified C++ compiler $CXX doesn't seem to exist!" >&2;}
2425 >   { (exit 1); exit 1; }; }
2426   fi
2427  
2451 { echo "$as_me:$LINENO: result: $ac_file" >&5
2452 echo "${ECHO_T}$ac_file" >&6; }
2453 if test -z "$ac_file"; then
2454  echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2428  
2429 < { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2458 < See \`config.log' for more details." >&5
2459 < echo "$as_me: error: C++ compiler cannot create executables
2460 < See \`config.log' for more details." >&2;}
2461 <   { (exit 77); exit 77; }; }
2462 < fi
2429 >   if test $ac_cxx_path != no; then
2430  
2431 < ac_exeext=$ac_cv_exeext
2431 >     { echo "$as_me:$LINENO: Will attempt to use $CXX as C++ compiler" >&5
2432 > echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
2433 > else
2434  
2435 < # Check that the compiler produces executables we can run.  If not, either
2436 < # the compiler is broken, or we cross compile.
2468 < { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2469 < echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2470 < # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2471 < # If not cross compiling, check that we can run a simple program.
2472 < if test "$cross_compiling" != yes; then
2473 <  if { ac_try='./$ac_file'
2474 <  { (case "(($ac_try" in
2475 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 <  *) ac_try_echo=$ac_try;;
2477 < esac
2478 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2479 <  (eval "$ac_try") 2>&5
2480 <  ac_status=$?
2481 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 <  (exit $ac_status); }; }; then
2483 <    cross_compiling=no
2484 <  else
2485 <    if test "$cross_compiling" = maybe; then
2486 <        cross_compiling=yes
2487 <    else
2488 <        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2489 < If you meant to cross compile, use \`--host'.
2490 < See \`config.log' for more details." >&5
2491 < echo "$as_me: error: cannot run C++ compiled programs.
2492 < If you meant to cross compile, use \`--host'.
2493 < See \`config.log' for more details." >&2;}
2435 >     { { echo "$as_me:$LINENO: error: Can't find path to user-specified C++ compiler $CXX" >&5
2436 > echo "$as_me: error: Can't find path to user-specified C++ compiler $CXX" >&2;}
2437     { (exit 1); exit 1; }; }
2495    fi
2496  fi
2438   fi
2498 { echo "$as_me:$LINENO: result: yes" >&5
2499 echo "${ECHO_T}yes" >&6; }
2439  
2440 < rm -f a.out a.exe conftest$ac_cv_exeext b.out
2502 < ac_clean_files=$ac_clean_files_save
2503 < # Check that the compiler produces executables we can run.  If not, either
2504 < # the compiler is broken, or we cross compile.
2505 < { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2506 < echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2507 < { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2508 < echo "${ECHO_T}$cross_compiling" >&6; }
2440 > fi
2441  
2442 < { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 < echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 < if { (ac_try="$ac_link"
2445 < case "(($ac_try" in
2446 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 <  *) ac_try_echo=$ac_try;;
2448 < esac
2449 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 <  (eval "$ac_link") 2>&5
2451 <  ac_status=$?
2452 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 <  (exit $ac_status); }; then
2454 <  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 < # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 < # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 < # `rm'.
2458 < for ac_file in conftest.exe conftest conftest.*; do
2459 <  test -f "$ac_file" || continue
2460 <  case $ac_file in
2461 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463 <          break;;
2464 <    * ) break;;
2465 <  esac
2442 > if test x"$FC" != x; then
2443 >   for ac_prog in $FC
2444 > do
2445 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 > set dummy $ac_prog; ac_word=$2
2447 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 > if test "${ac_cv_prog_ac_fc_set+set}" = set; then
2450 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2451 > else
2452 >  if test -n "$ac_fc_set"; then
2453 >  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
2454 > else
2455 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 > for as_dir in $PATH
2457 > do
2458 >  IFS=$as_save_IFS
2459 >  test -z "$as_dir" && as_dir=.
2460 >  for ac_exec_ext in '' $ac_executable_extensions; do
2461 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 >    ac_cv_prog_ac_fc_set="$ac_prog"
2463 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 >    break 2
2465 >  fi
2466   done
2467 + done
2468 + IFS=$as_save_IFS
2469 +
2470 + fi
2471 + fi
2472 + ac_fc_set=$ac_cv_prog_ac_fc_set
2473 + if test -n "$ac_fc_set"; then
2474 +  { echo "$as_me:$LINENO: result: $ac_fc_set" >&5
2475 + echo "${ECHO_T}$ac_fc_set" >&6; }
2476   else
2477 <  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2478 < See \`config.log' for more details." >&5
2538 < echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2539 < See \`config.log' for more details." >&2;}
2540 <   { (exit 1); exit 1; }; }
2477 >  { echo "$as_me:$LINENO: result: no" >&5
2478 > echo "${ECHO_T}no" >&6; }
2479   fi
2480  
2543 rm -f conftest$ac_cv_exeext
2544 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2545 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2481  
2482 < rm -f conftest.$ac_ext
2483 < EXEEXT=$ac_cv_exeext
2484 < ac_exeext=$EXEEXT
2550 < { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2551 < echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2552 < if test "${ac_cv_objext+set}" = set; then
2553 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2554 < else
2555 <  cat >conftest.$ac_ext <<_ACEOF
2556 < /* confdefs.h.  */
2557 < _ACEOF
2558 < cat confdefs.h >>conftest.$ac_ext
2559 < cat >>conftest.$ac_ext <<_ACEOF
2560 < /* end confdefs.h.  */
2482 >  test -n "$ac_fc_set" && break
2483 > done
2484 > test -n "$ac_fc_set" || ac_fc_set="no"
2485  
2486 < int
2563 < main ()
2564 < {
2486 >   if test $ac_fc_set != no; then
2487  
2488 <  ;
2489 <  return 0;
2490 < }
2491 < _ACEOF
2492 < rm -f conftest.o conftest.obj
2493 < if { (ac_try="$ac_compile"
2572 < case "(($ac_try" in
2573 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 <  *) ac_try_echo=$ac_try;;
2575 < esac
2576 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 <  (eval "$ac_compile") 2>&5
2578 <  ac_status=$?
2579 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 <  (exit $ac_status); }; then
2581 <  for ac_file in conftest.o conftest.obj conftest.*; do
2582 <  test -f "$ac_file" || continue;
2583 <  case $ac_file in
2584 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2585 <    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2586 <       break;;
2587 <  esac
2588 < done
2488 >     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
2489 > set dummy $ac_fc_set; ac_word=$2
2490 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 > if test "${ac_cv_path_ac_fc_path+set}" = set; then
2493 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2494   else
2495 <  echo "$as_me: failed program was:" >&5
2496 < sed 's/^/| /' conftest.$ac_ext >&5
2495 >  case $ac_fc_path in
2496 >  [\\/]* | ?:[\\/]*)
2497 >  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
2498 >  ;;
2499 >  *)
2500 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 > for as_dir in $PATH
2502 > do
2503 >  IFS=$as_save_IFS
2504 >  test -z "$as_dir" && as_dir=.
2505 >  for ac_exec_ext in '' $ac_executable_extensions; do
2506 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 >    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
2508 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 >    break 2
2510 >  fi
2511 > done
2512 > done
2513 > IFS=$as_save_IFS
2514  
2515 < { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2516 < See \`config.log' for more details." >&5
2517 < echo "$as_me: error: cannot compute suffix of object files: cannot compile
2596 < See \`config.log' for more details." >&2;}
2597 <   { (exit 1); exit 1; }; }
2515 >  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
2516 >  ;;
2517 > esac
2518   fi
2519 <
2520 < rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521 < fi
2522 < { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2603 < echo "${ECHO_T}$ac_cv_objext" >&6; }
2604 < OBJEXT=$ac_cv_objext
2605 < ac_objext=$OBJEXT
2606 < { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2607 < echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2608 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2609 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2519 > ac_fc_path=$ac_cv_path_ac_fc_path
2520 > if test -n "$ac_fc_path"; then
2521 >  { echo "$as_me:$LINENO: result: $ac_fc_path" >&5
2522 > echo "${ECHO_T}$ac_fc_path" >&6; }
2523   else
2524 <  cat >conftest.$ac_ext <<_ACEOF
2525 < /* confdefs.h.  */
2526 < _ACEOF
2614 < cat confdefs.h >>conftest.$ac_ext
2615 < cat >>conftest.$ac_ext <<_ACEOF
2616 < /* end confdefs.h.  */
2524 >  { echo "$as_me:$LINENO: result: no" >&5
2525 > echo "${ECHO_T}no" >&6; }
2526 > fi
2527  
2618 int
2619 main ()
2620 {
2621 #ifndef __GNUC__
2622       choke me
2623 #endif
2528  
2625  ;
2626  return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (ac_try="$ac_compile"
2631 case "(($ac_try" in
2632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633  *) ac_try_echo=$ac_try;;
2634 esac
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636  (eval "$ac_compile") 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } && {
2643         test -z "$ac_cxx_werror_flag" ||
2644         test ! -s conftest.err
2645       } && test -s conftest.$ac_objext; then
2646  ac_compiler_gnu=yes
2529   else
2648  echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2530  
2531 <        ac_compiler_gnu=no
2531 >     { { echo "$as_me:$LINENO: error: Specified Fortran compiler $FC doesn't seem to exist!" >&5
2532 > echo "$as_me: error: Specified Fortran compiler $FC doesn't seem to exist!" >&2;}
2533 >   { (exit 1); exit 1; }; }
2534   fi
2535  
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2536  
2537 < fi
2658 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2659 < echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2660 < GXX=`test $ac_compiler_gnu = yes && echo yes`
2661 < ac_test_CXXFLAGS=${CXXFLAGS+set}
2662 < ac_save_CXXFLAGS=$CXXFLAGS
2663 < { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2664 < echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2665 < if test "${ac_cv_prog_cxx_g+set}" = set; then
2666 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2667 < else
2668 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2669 <   ac_cxx_werror_flag=yes
2670 <   ac_cv_prog_cxx_g=no
2671 <   CXXFLAGS="-g"
2672 <   cat >conftest.$ac_ext <<_ACEOF
2673 < /* confdefs.h.  */
2674 < _ACEOF
2675 < cat confdefs.h >>conftest.$ac_ext
2676 < cat >>conftest.$ac_ext <<_ACEOF
2677 < /* end confdefs.h.  */
2537 >   if test $ac_fc_path != no; then
2538  
2539 < int
2540 < main ()
2681 < {
2682 <
2683 <  ;
2684 <  return 0;
2685 < }
2686 < _ACEOF
2687 < rm -f conftest.$ac_objext
2688 < if { (ac_try="$ac_compile"
2689 < case "(($ac_try" in
2690 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 <  *) ac_try_echo=$ac_try;;
2692 < esac
2693 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 <  (eval "$ac_compile") 2>conftest.er1
2695 <  ac_status=$?
2696 <  grep -v '^ *+' conftest.er1 >conftest.err
2697 <  rm -f conftest.er1
2698 <  cat conftest.err >&5
2699 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 <  (exit $ac_status); } && {
2701 <         test -z "$ac_cxx_werror_flag" ||
2702 <         test ! -s conftest.err
2703 <       } && test -s conftest.$ac_objext; then
2704 <  ac_cv_prog_cxx_g=yes
2539 >     { echo "$as_me:$LINENO: Will attempt to use $FC as Fortran compiler" >&5
2540 > echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
2541   else
2706  echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2542  
2543 <        CXXFLAGS=""
2544 <      cat >conftest.$ac_ext <<_ACEOF
2545 < /* confdefs.h.  */
2546 < _ACEOF
2713 < cat confdefs.h >>conftest.$ac_ext
2714 < cat >>conftest.$ac_ext <<_ACEOF
2715 < /* end confdefs.h.  */
2543 >     { { echo "$as_me:$LINENO: error: Can't find path to user-specified Fortran compiler $FC" >&5
2544 > echo "$as_me: error: Can't find path to user-specified Fortran compiler $FC" >&2;}
2545 >   { (exit 1); exit 1; }; }
2546 > fi
2547  
2548 < int
2718 < main ()
2719 < {
2548 > fi
2549  
2721  ;
2722  return 0;
2723 }
2724 _ACEOF
2725 rm -f conftest.$ac_objext
2726 if { (ac_try="$ac_compile"
2727 case "(($ac_try" in
2728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729  *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732  (eval "$ac_compile") 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } && {
2739         test -z "$ac_cxx_werror_flag" ||
2740         test ! -s conftest.err
2741       } && test -s conftest.$ac_objext; then
2742  :
2743 else
2744  echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2550  
2747        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2748         CXXFLAGS="-g"
2749         cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2551  
2756 int
2757 main ()
2758 {
2552  
2553 <  ;
2554 <  return 0;
2555 < }
2763 < _ACEOF
2764 < rm -f conftest.$ac_objext
2765 < if { (ac_try="$ac_compile"
2766 < case "(($ac_try" in
2767 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 <  *) ac_try_echo=$ac_try;;
2769 < esac
2770 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 <  (eval "$ac_compile") 2>conftest.er1
2772 <  ac_status=$?
2773 <  grep -v '^ *+' conftest.er1 >conftest.err
2774 <  rm -f conftest.er1
2775 <  cat conftest.err >&5
2776 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 <  (exit $ac_status); } && {
2778 <         test -z "$ac_cxx_werror_flag" ||
2779 <         test ! -s conftest.err
2780 <       } && test -s conftest.$ac_objext; then
2781 <  ac_cv_prog_cxx_g=yes
2553 > # Check whether --with-mpi was given.
2554 > if test "${with_mpi+set}" = set; then
2555 >  withval=$with_mpi;
2556   else
2557 <  echo "$as_me: failed program was:" >&5
2558 < sed 's/^/| /' conftest.$ac_ext >&5
2557 >  with_mpi="auto"
2558 > fi
2559  
2560 + if test "x$with_mpi" != "xno"; then
2561  
2787 fi
2562  
2563 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 < fi
2563 > for ac_prog in $CC openmpicc mpicc
2564 > do
2565 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 > set dummy $ac_prog; ac_word=$2
2567 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 > if test "${ac_cv_prog_acx_mpi_mpicc+set}" = set; then
2570 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2571 > else
2572 >  if test -n "$acx_mpi_mpicc"; then
2573 >  ac_cv_prog_acx_mpi_mpicc="$acx_mpi_mpicc" # Let the user override the test.
2574 > else
2575 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 > for as_dir in $PATH
2577 > do
2578 >  IFS=$as_save_IFS
2579 >  test -z "$as_dir" && as_dir=.
2580 >  for ac_exec_ext in '' $ac_executable_extensions; do
2581 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 >    ac_cv_prog_acx_mpi_mpicc="$ac_prog"
2583 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 >    break 2
2585 >  fi
2586 > done
2587 > done
2588 > IFS=$as_save_IFS
2589  
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590   fi
2794
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2591   fi
2592 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2593 < echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2594 < if test "$ac_test_CXXFLAGS" = set; then
2595 <  CXXFLAGS=$ac_save_CXXFLAGS
2802 < elif test $ac_cv_prog_cxx_g = yes; then
2803 <  if test "$GXX" = yes; then
2804 <    CXXFLAGS="-g -O2"
2805 <  else
2806 <    CXXFLAGS="-g"
2807 <  fi
2592 > acx_mpi_mpicc=$ac_cv_prog_acx_mpi_mpicc
2593 > if test -n "$acx_mpi_mpicc"; then
2594 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicc" >&5
2595 > echo "${ECHO_T}$acx_mpi_mpicc" >&6; }
2596   else
2597 <  if test "$GXX" = yes; then
2598 <    CXXFLAGS="-O2"
2599 <  else
2600 <    CXXFLAGS=
2597 >  { echo "$as_me:$LINENO: result: no" >&5
2598 > echo "${ECHO_T}no" >&6; }
2599 > fi
2600 >
2601 >
2602 >  test -n "$acx_mpi_mpicc" && break
2603 > done
2604 > test -n "$acx_mpi_mpicc" || acx_mpi_mpicc="no"
2605 >
2606 > if test $acx_mpi_mpicc != no; then
2607 >
2608 >  # Extract the first word of "$acx_mpi_mpicc", so it can be a program name with args.
2609 > set dummy $acx_mpi_mpicc; ac_word=$2
2610 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 > if test "${ac_cv_path_acx_mpi_mpicc_path+set}" = set; then
2613 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2614 > else
2615 >  case $acx_mpi_mpicc_path in
2616 >  [\\/]* | ?:[\\/]*)
2617 >  ac_cv_path_acx_mpi_mpicc_path="$acx_mpi_mpicc_path" # Let the user override the test with a path.
2618 >  ;;
2619 >  *)
2620 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 > for as_dir in $PATH
2622 > do
2623 >  IFS=$as_save_IFS
2624 >  test -z "$as_dir" && as_dir=.
2625 >  for ac_exec_ext in '' $ac_executable_extensions; do
2626 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 >    ac_cv_path_acx_mpi_mpicc_path="$as_dir/$ac_word$ac_exec_ext"
2628 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 >    break 2
2630    fi
2631 + done
2632 + done
2633 + IFS=$as_save_IFS
2634 +
2635 +  test -z "$ac_cv_path_acx_mpi_mpicc_path" && ac_cv_path_acx_mpi_mpicc_path="no"
2636 +  ;;
2637 + esac
2638   fi
2639 < ac_ext=c
2640 < ac_cpp='$CPP $CPPFLAGS'
2641 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 > acx_mpi_mpicc_path=$ac_cv_path_acx_mpi_mpicc_path
2640 > if test -n "$acx_mpi_mpicc_path"; then
2641 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicc_path" >&5
2642 > echo "${ECHO_T}$acx_mpi_mpicc_path" >&6; }
2643 > else
2644 >  { echo "$as_me:$LINENO: result: no" >&5
2645 > echo "${ECHO_T}no" >&6; }
2646 > fi
2647  
2648 < ac_ext=c
2649 < ac_cpp='$CPP $CPPFLAGS'
2650 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 < if test -n "$ac_tool_prefix"; then
2654 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2828 <  do
2829 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2648 >
2649 > fi
2650 >
2651 > for ac_prog in $FC openmpif90 mpif90
2652 > do
2653 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 > set dummy $ac_prog; ac_word=$2
2655   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 < if test "${ac_cv_prog_CC+set}" = set; then
2657 > if test "${ac_cv_prog_acx_mpi_mpif90+set}" = set; then
2658    echo $ECHO_N "(cached) $ECHO_C" >&6
2659   else
2660 <  if test -n "$CC"; then
2661 <  ac_cv_prog_CC="$CC" # Let the user override the test.
2660 >  if test -n "$acx_mpi_mpif90"; then
2661 >  ac_cv_prog_acx_mpi_mpif90="$acx_mpi_mpif90" # Let the user override the test.
2662   else
2663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664   for as_dir in $PATH
# Line 2843 | Line 2667 | do
2667    test -z "$as_dir" && as_dir=.
2668    for ac_exec_ext in '' $ac_executable_extensions; do
2669    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2670 >    ac_cv_prog_acx_mpi_mpif90="$ac_prog"
2671      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672      break 2
2673    fi
# Line 2853 | Line 2677 | fi
2677  
2678   fi
2679   fi
2680 < CC=$ac_cv_prog_CC
2681 < if test -n "$CC"; then
2682 <  { echo "$as_me:$LINENO: result: $CC" >&5
2683 < echo "${ECHO_T}$CC" >&6; }
2680 > acx_mpi_mpif90=$ac_cv_prog_acx_mpi_mpif90
2681 > if test -n "$acx_mpi_mpif90"; then
2682 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpif90" >&5
2683 > echo "${ECHO_T}$acx_mpi_mpif90" >&6; }
2684   else
2685    { echo "$as_me:$LINENO: result: no" >&5
2686   echo "${ECHO_T}no" >&6; }
2687   fi
2688  
2689  
2690 <    test -n "$CC" && break
2691 <  done
2690 >  test -n "$acx_mpi_mpif90" && break
2691 > done
2692 > test -n "$acx_mpi_mpif90" || acx_mpi_mpif90="no"
2693 >
2694 > if test $acx_mpi_mpif90 != no; then
2695 >
2696 >  # Extract the first word of "$acx_mpi_mpif90", so it can be a program name with args.
2697 > set dummy $acx_mpi_mpif90; ac_word=$2
2698 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2700 > if test "${ac_cv_path_acx_mpi_mpif90_path+set}" = set; then
2701 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2702 > else
2703 >  case $acx_mpi_mpif90_path in
2704 >  [\\/]* | ?:[\\/]*)
2705 >  ac_cv_path_acx_mpi_mpif90_path="$acx_mpi_mpif90_path" # Let the user override the test with a path.
2706 >  ;;
2707 >  *)
2708 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 > for as_dir in $PATH
2710 > do
2711 >  IFS=$as_save_IFS
2712 >  test -z "$as_dir" && as_dir=.
2713 >  for ac_exec_ext in '' $ac_executable_extensions; do
2714 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 >    ac_cv_path_acx_mpi_mpif90_path="$as_dir/$ac_word$ac_exec_ext"
2716 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 >    break 2
2718 >  fi
2719 > done
2720 > done
2721 > IFS=$as_save_IFS
2722 >
2723 >  test -z "$ac_cv_path_acx_mpi_mpif90_path" && ac_cv_path_acx_mpi_mpif90_path="no"
2724 >  ;;
2725 > esac
2726   fi
2727 < if test -z "$CC"; then
2728 <  ac_ct_CC=$CC
2729 <  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2727 > acx_mpi_mpif90_path=$ac_cv_path_acx_mpi_mpif90_path
2728 > if test -n "$acx_mpi_mpif90_path"; then
2729 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpif90_path" >&5
2730 > echo "${ECHO_T}$acx_mpi_mpif90_path" >&6; }
2731 > else
2732 >  { echo "$as_me:$LINENO: result: no" >&5
2733 > echo "${ECHO_T}no" >&6; }
2734 > fi
2735 >
2736 >
2737 > fi
2738 >
2739 > for ac_prog in $CXX openmpicxx openmpiCC openmpic++ mpicxx mpiCC mpic++
2740   do
2741    # Extract the first word of "$ac_prog", so it can be a program name with args.
2742   set dummy $ac_prog; ac_word=$2
2743   { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2745 > if test "${ac_cv_prog_acx_mpi_mpicxx+set}" = set; then
2746    echo $ECHO_N "(cached) $ECHO_C" >&6
2747   else
2748 <  if test -n "$ac_ct_CC"; then
2749 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748 >  if test -n "$acx_mpi_mpicxx"; then
2749 >  ac_cv_prog_acx_mpi_mpicxx="$acx_mpi_mpicxx" # Let the user override the test.
2750   else
2751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752   for as_dir in $PATH
# Line 2887 | Line 2755 | do
2755    test -z "$as_dir" && as_dir=.
2756    for ac_exec_ext in '' $ac_executable_extensions; do
2757    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 <    ac_cv_prog_ac_ct_CC="$ac_prog"
2758 >    ac_cv_prog_acx_mpi_mpicxx="$ac_prog"
2759      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760      break 2
2761    fi
# Line 2897 | Line 2765 | fi
2765  
2766   fi
2767   fi
2768 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 < if test -n "$ac_ct_CC"; then
2770 <  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2771 < echo "${ECHO_T}$ac_ct_CC" >&6; }
2768 > acx_mpi_mpicxx=$ac_cv_prog_acx_mpi_mpicxx
2769 > if test -n "$acx_mpi_mpicxx"; then
2770 >  { echo "$as_me:$LINENO: result: $acx_mpi_mpicxx" >&5
2771 > echo "${ECHO_T}$acx_mpi_mpicxx" >&6; }
2772   else
2773    { echo "$as_me:$LINENO: result: no" >&5
2774   echo "${ECHO_T}no" >&6; }
2775   fi
2776  
2777  
2778 <  test -n "$ac_ct_CC" && break
2778 >  test -n "$acx_mpi_mpicxx" && break
2779   done
2780 + test -n "$acx_mpi_mpicxx" || acx_mpi_mpicxx="no"
2781  
2782 <  if test "x$ac_ct_CC" = x; then
2783 <    CC=""
2784 <  else
2785 <    case $cross_compiling:$ac_tool_warned in
2786 < yes:)
2787 < { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 < whose name does not start with the host triplet.  If you think this
2789 < configuration is useful to you, please write to autoconf@gnu.org." >&5
2790 < echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 < whose name does not start with the host triplet.  If you think this
2792 < configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793 < ac_tool_warned=yes ;;
2794 < esac
2795 <    CC=$ac_ct_CC
2782 > if test $acx_mpi_mpicxx != no; then
2783 >
2784 >  # Extract the first word of "$acx_mpi_mpicxx", so it can be a program name with args.
2785 > set dummy $acx_mpi_mpicxx; ac_word=$2
2786 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 > if test "${ac_cv_path_acx_mpi_mpicxx_path+set}" = set; then
2789 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2790 > else
2791 >  case $acx_mpi_mpicxx_path in
2792 >  [\\/]* | ?:[\\/]*)
2793 >  ac_cv_path_acx_mpi_mpicxx_path="$acx_mpi_mpicxx_path" # Let the user override the test with a path.
2794 >  ;;
2795 >  *)
2796 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 > for as_dir in $PATH
2798 > do
2799 >  IFS=$as_save_IFS
2800 >  test -z "$as_dir" && as_dir=.
2801 >  for ac_exec_ext in '' $ac_executable_extensions; do
2802 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 >    ac_cv_path_acx_mpi_mpicxx_path="$as_dir/$ac_word$ac_exec_ext"
2804 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 >    break 2
2806    fi
2807 + done
2808 + done
2809 + IFS=$as_save_IFS
2810 +
2811 +  test -z "$ac_cv_path_acx_mpi_mpicxx_path" && ac_cv_path_acx_mpi_mpicxx_path="no"
2812 +  ;;
2813 + esac
2814   fi
2815 + acx_mpi_mpicxx_path=$ac_cv_path_acx_mpi_mpicxx_path
2816 + if test -n "$acx_mpi_mpicxx_path"; then
2817 +  { echo "$as_me:$LINENO: result: $acx_mpi_mpicxx_path" >&5
2818 + echo "${ECHO_T}$acx_mpi_mpicxx_path" >&6; }
2819 + else
2820 +  { echo "$as_me:$LINENO: result: no" >&5
2821 + echo "${ECHO_T}no" >&6; }
2822 + fi
2823  
2824  
2825 < test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2932 < See \`config.log' for more details." >&5
2933 < echo "$as_me: error: no acceptable C compiler found in \$PATH
2934 < See \`config.log' for more details." >&2;}
2935 <   { (exit 1); exit 1; }; }
2825 > fi
2826  
2827 < # Provide some information about the compiler.
2938 < echo "$as_me:$LINENO: checking for C compiler version" >&5
2939 < ac_compiler=`set X $ac_compile; echo $2`
2940 < { (ac_try="$ac_compiler --version >&5"
2941 < case "(($ac_try" in
2942 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 <  *) ac_try_echo=$ac_try;;
2944 < esac
2945 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 <  (eval "$ac_compiler --version >&5") 2>&5
2947 <  ac_status=$?
2948 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 <  (exit $ac_status); }
2950 < { (ac_try="$ac_compiler -v >&5"
2951 < case "(($ac_try" in
2952 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 <  *) ac_try_echo=$ac_try;;
2954 < esac
2955 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 <  (eval "$ac_compiler -v >&5") 2>&5
2957 <  ac_status=$?
2958 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 <  (exit $ac_status); }
2960 < { (ac_try="$ac_compiler -V >&5"
2961 < case "(($ac_try" in
2962 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 <  *) ac_try_echo=$ac_try;;
2964 < esac
2965 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 <  (eval "$ac_compiler -V >&5") 2>&5
2967 <  ac_status=$?
2968 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 <  (exit $ac_status); }
2827 > if test $acx_mpi_mpicc = no; then
2828  
2829 < { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2830 < echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2831 < if test "${ac_cv_c_compiler_gnu+set}" = set; then
2832 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2829 >  if test $acx_mpi_mpicxx = no; then
2830 >
2831 >    acx_mpi_compiler=no
2832 >
2833   else
2834 <  cat >conftest.$ac_ext <<_ACEOF
2834 >
2835 >    acx_mpi_compiler=$acx_mpi_mpicxx
2836 >    acx_mpi_compiler_path=$acx_mpi_mpicxx_path
2837 > fi
2838 >
2839 >
2840 > else
2841 >
2842 >  if test $acx_mpi_mpicxx = no; then
2843 >
2844 >    acx_mpi_compiler=$acx_mpi_mpicc
2845 >    acx_mpi_compiler_path=$acx_mpi_mpicc_path
2846 >
2847 > else
2848 >
2849 >    { echo "$as_me:$LINENO: checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx" >&5
2850 > echo $ECHO_N "checking whether to use $acx_mpi_mpicc or $acx_mpi_mpicxx... $ECHO_C" >&6; }
2851 >    ac_ext=cpp
2852 > ac_cpp='$CXXCPP $CPPFLAGS'
2853 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2856 >
2857 >    cat >conftest.$ac_ext <<_ACEOF
2858   /* confdefs.h.  */
2859   _ACEOF
2860   cat confdefs.h >>conftest.$ac_ext
2861   cat >>conftest.$ac_ext <<_ACEOF
2862   /* end confdefs.h.  */
2863  
2864 + #include <mpi.h>
2865 +
2866   int
2867   main ()
2868   {
2986 #ifndef __GNUC__
2987       choke me
2988 #endif
2869  
2870 + MPI_Finalize();
2871 +
2872    ;
2873    return 0;
2874   }
2875   _ACEOF
2876 < rm -f conftest.$ac_objext
2995 < if { (ac_try="$ac_compile"
2876 >    if { (ac_try="$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5"
2877   case "(($ac_try" in
2878    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879    *) ac_try_echo=$ac_try;;
2880   esac
2881   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 <  (eval "$ac_compile") 2>conftest.er1
2882 >  (eval "$acx_mpi_mpicxx_path -c conftest.$ac_ext >&5") 2>conftest.er1
2883    ac_status=$?
2884    grep -v '^ *+' conftest.er1 >conftest.err
2885    rm -f conftest.er1
2886    cat conftest.err >&5
2887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888    (exit $ac_status); } && {
2889 <         test -z "$ac_c_werror_flag" ||
2890 <         test ! -s conftest.err
2889 >         test -z "$ac_cxx_werror_flag" ||
2890 >         test ! -s conftest.err
2891         } && test -s conftest.$ac_objext; then
2892 <  ac_compiler_gnu=yes
2892 >
2893 >      acx_mpi_compiler=$acx_mpi_mpicxx
2894 >      acx_mpi_compiler_path=$acx_mpi_mpicxx_path
2895 >
2896   else
3013  echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
2897  
2898 <        ac_compiler_gnu=no
2898 >      acx_mpi_compiler=$acx_mpi_mpicc
2899 >      acx_mpi_compiler_path=$acx_mpi_mpicc_path
2900   fi
2901  
2902 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
2902 >    ac_ext=c
2903 > ac_cpp='$CPP $CPPFLAGS'
2904 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907  
2908 +    { echo "$as_me:$LINENO: result: $acx_mpi_compiler" >&5
2909 + echo "${ECHO_T}$acx_mpi_compiler" >&6; }
2910   fi
2911 < { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2912 < echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2913 < GCC=`test $ac_compiler_gnu = yes && echo yes`
2914 < ac_test_CFLAGS=${CFLAGS+set}
2915 < ac_save_CFLAGS=$CFLAGS
2916 < { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2917 < echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2918 < if test "${ac_cv_prog_cc_g+set}" = set; then
2919 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2911 >
2912 > fi
2913 >
2914 > { echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
2915 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; }
2916 > ac_ext=${ac_fc_srcext-f}
2917 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
2918 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
2919 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2920 >
2921 > ac_save_ext=$ac_ext
2922 > ac_ext=F90
2923 > rm -f conftest*
2924 > cat >conftest.$ac_ext <<EOF
2925 > program main
2926 >   include 'mpif.h'
2927 >   call MPI_Init
2928 > end
2929 > EOF
2930 > if $acx_mpi_mpif90_path -c conftest.$ac_ext > conftest.out 2>&1 ; then
2931 >        acx_mpi_f90_compiler=yes
2932 >        { echo "$as_me:$LINENO: result: yes" >&5
2933 > echo "${ECHO_T}yes" >&6; }
2934   else
2935 <  ac_save_c_werror_flag=$ac_c_werror_flag
2936 <   ac_c_werror_flag=yes
2937 <   ac_cv_prog_cc_g=no
2938 <   CFLAGS="-g"
2939 <   cat >conftest.$ac_ext <<_ACEOF
2940 < /* confdefs.h.  */
2941 < _ACEOF
2942 < cat confdefs.h >>conftest.$ac_ext
2943 < cat >>conftest.$ac_ext <<_ACEOF
2944 < /* end confdefs.h.  */
2935 >        if test -s conftest.out ; then
2936 >                cat conftest.out >> config.log
2937 >        fi
2938 >        acx_mpi_f90_compiler=no
2939 >        { echo "$as_me:$LINENO: result: no! Check MPI fortran include paths" >&5
2940 > echo "${ECHO_T}no! Check MPI fortran include paths" >&6; }
2941 > fi
2942 > rm -f conftest*
2943 > ac_ext=$ac_save_ext
2944 > ac_ext=c
2945 > ac_cpp='$CPP $CPPFLAGS'
2946 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949  
2950 < int
3045 < main ()
3046 < {
2950 > if test $acx_mpi_compiler = no || test $acx_mpi_f90_compiler = no; then
2951  
2952 <  ;
2953 <  return 0;
2954 < }
2955 < _ACEOF
2956 < rm -f conftest.$ac_objext
2957 < if { (ac_try="$ac_compile"
2952 > acx_cv_mpi_implementation=no
2953 > else
2954 >  { echo "$as_me:$LINENO: checking for the MPI implementation flavor" >&5
2955 > echo $ECHO_N "checking for the MPI implementation flavor... $ECHO_C" >&6; }
2956 > if test "${acx_cv_mpi_implementation+set}" = set; then
2957 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2958 > else
2959 >  acx_cv_mpi_implementation=no
2960 > if { (ac_try="grep -q LAM $acx_mpi_compiler_path"
2961   case "(($ac_try" in
2962    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963    *) ac_try_echo=$ac_try;;
2964   esac
2965   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 <  (eval "$ac_compile") 2>conftest.er1
2966 >  (eval "grep -q LAM $acx_mpi_compiler_path") 2>conftest.er1
2967    ac_status=$?
2968    grep -v '^ *+' conftest.er1 >conftest.err
2969    rm -f conftest.er1
2970    cat conftest.err >&5
2971    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 <  (exit $ac_status); } && {
3066 <         test -z "$ac_c_werror_flag" ||
3067 <         test ! -s conftest.err
3068 <       } && test -s conftest.$ac_objext; then
3069 <  ac_cv_prog_cc_g=yes
3070 < else
3071 <  echo "$as_me: failed program was:" >&5
3072 < sed 's/^/| /' conftest.$ac_ext >&5
2972 >  (exit $ac_status); }; then
2973  
2974 <        CFLAGS=""
3075 <      cat >conftest.$ac_ext <<_ACEOF
3076 < /* confdefs.h.  */
3077 < _ACEOF
3078 < cat confdefs.h >>conftest.$ac_ext
3079 < cat >>conftest.$ac_ext <<_ACEOF
3080 < /* end confdefs.h.  */
2974 >  acx_cv_mpi_implementation=lammpi
2975  
2976 < int
3083 < main ()
3084 < {
2976 > else
2977  
2978 <  ;
3087 <  return 0;
3088 < }
3089 < _ACEOF
3090 < rm -f conftest.$ac_objext
3091 < if { (ac_try="$ac_compile"
2978 >  if { (ac_try="grep -q showme $acx_mpi_compiler_path"
2979   case "(($ac_try" in
2980    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981    *) ac_try_echo=$ac_try;;
2982   esac
2983   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 <  (eval "$ac_compile") 2>conftest.er1
2984 >  (eval "grep -q showme $acx_mpi_compiler_path") 2>conftest.er1
2985    ac_status=$?
2986    grep -v '^ *+' conftest.er1 >conftest.err
2987    rm -f conftest.er1
2988    cat conftest.err >&5
2989    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 <  (exit $ac_status); } && {
3104 <         test -z "$ac_c_werror_flag" ||
3105 <         test ! -s conftest.err
3106 <       } && test -s conftest.$ac_objext; then
3107 <  :
3108 < else
3109 <  echo "$as_me: failed program was:" >&5
3110 < sed 's/^/| /' conftest.$ac_ext >&5
2990 >  (exit $ac_status); }; then
2991  
2992 <        ac_c_werror_flag=$ac_save_c_werror_flag
3113 <         CFLAGS="-g"
3114 <         cat >conftest.$ac_ext <<_ACEOF
3115 < /* confdefs.h.  */
3116 < _ACEOF
3117 < cat confdefs.h >>conftest.$ac_ext
3118 < cat >>conftest.$ac_ext <<_ACEOF
3119 < /* end confdefs.h.  */
2992 >    acx_cv_mpi_implementation=openmpi
2993  
2994 < int
3122 < main ()
3123 < {
2994 > else
2995  
2996 <  ;
3126 <  return 0;
3127 < }
3128 < _ACEOF
3129 < rm -f conftest.$ac_objext
3130 < if { (ac_try="$ac_compile"
2996 >    if { (ac_try="grep -q MPICH $acx_mpi_compiler_path"
2997   case "(($ac_try" in
2998    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999    *) ac_try_echo=$ac_try;;
3000   esac
3001   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 <  (eval "$ac_compile") 2>conftest.er1
3002 >  (eval "grep -q MPICH $acx_mpi_compiler_path") 2>conftest.er1
3003    ac_status=$?
3004    grep -v '^ *+' conftest.er1 >conftest.err
3005    rm -f conftest.er1
3006    cat conftest.err >&5
3007    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 <  (exit $ac_status); } && {
3143 <         test -z "$ac_c_werror_flag" ||
3144 <         test ! -s conftest.err
3145 <       } && test -s conftest.$ac_objext; then
3146 <  ac_cv_prog_cc_g=yes
3147 < else
3148 <  echo "$as_me: failed program was:" >&5
3149 < sed 's/^/| /' conftest.$ac_ext >&5
3008 >  (exit $ac_status); }; then
3009  
3010 +      acx_cv_mpi_implementation=mpich
3011  
3012 + else
3013 +  acx_cv_mpi_implementation=$with_mpi
3014   fi
3015  
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016   fi
3017  
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018   fi
3019  
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161   ac_c_werror_flag=$ac_save_c_werror_flag
3020   fi
3021 < { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3022 < echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3023 < if test "$ac_test_CFLAGS" = set; then
3166 <  CFLAGS=$ac_save_CFLAGS
3167 < elif test $ac_cv_prog_cc_g = yes; then
3168 <  if test "$GCC" = yes; then
3169 <    CFLAGS="-g -O2"
3170 <  else
3171 <    CFLAGS="-g"
3172 <  fi
3173 < else
3174 <  if test "$GCC" = yes; then
3175 <    CFLAGS="-O2"
3176 <  else
3177 <    CFLAGS=
3178 <  fi
3021 > { echo "$as_me:$LINENO: result: $acx_cv_mpi_implementation" >&5
3022 > echo "${ECHO_T}$acx_cv_mpi_implementation" >&6; }
3023 >
3024   fi
3025 < { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3026 < echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3027 < if test "${ac_cv_prog_cc_c89+set}" = set; then
3028 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3029 < else
3030 <  ac_cv_prog_cc_c89=no
3031 < ac_save_CC=$CC
3032 < cat >conftest.$ac_ext <<_ACEOF
3033 < /* confdefs.h.  */
3025 > case $acx_cv_mpi_implementation in
3026 > (lammpi)
3027 >
3028 > cat >>confdefs.h <<\_ACEOF
3029 > #define MPI_IS_LAMMPI 1
3030 > _ACEOF
3031 >
3032 >  ;;
3033 > (openmpi)
3034 >
3035 > cat >>confdefs.h <<\_ACEOF
3036 > #define MPI_IS_OPENMPI 1
3037 > _ACEOF
3038 >
3039 >  ;;
3040 > (mpich)
3041 >
3042 > cat >>confdefs.h <<\_ACEOF
3043 > #define MPI_IS_MPICH 1
3044   _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h.  */
3193 #include <stdarg.h>
3194 #include <stdio.h>
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201     char **p;
3202     int i;
3203 {
3204  return p[i];
3205 }
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3207 {
3208  char *s;
3209  va_list v;
3210  va_start (v,p);
3211  s = g (p, va_arg (v,int));
3212  va_end (v);
3213  return s;
3214 }
3045  
3046 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3047 <   function prototypes and stuff, but not '\xHH' hex character constants.
3048 <   These don't provoke an error unfortunately, instead are silently treated
3219 <   as 'x'.  The following induces an error, until -std is added to get
3220 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3221 <   array size at least.  It's necessary to write '\x00'==0 to get something
3222 <   that's true only with -std.  */
3223 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3046 >  ;;
3047 > esac
3048 > if test $acx_cv_mpi_implementation = no; then
3049  
3050 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3051 <   inside strings and character constants.  */
3052 < #define FOO(x) 'x'
3053 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3050 > acx_mpi_cflags=""
3051 > acx_mpi_libs=""
3052 > USE_MPI="no"
3053 >        { echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5
3054 > echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;}
3055 > else
3056  
3057 < int test (int i, double x);
3058 < struct s1 {int (*f) (int a);};
3059 < struct s2 {int (*f) (double a);};
3060 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3061 < int argc;
3235 < char **argv;
3236 < int
3237 < main ()
3238 < {
3239 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3240 <  ;
3241 <  return 0;
3242 < }
3243 < _ACEOF
3244 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3246 < do
3247 <  CC="$ac_save_CC $ac_arg"
3248 <  rm -f conftest.$ac_objext
3249 < if { (ac_try="$ac_compile"
3250 < case "(($ac_try" in
3251 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 <  *) ac_try_echo=$ac_try;;
3253 < esac
3254 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 <  (eval "$ac_compile") 2>conftest.er1
3256 <  ac_status=$?
3257 <  grep -v '^ *+' conftest.er1 >conftest.err
3258 <  rm -f conftest.er1
3259 <  cat conftest.err >&5
3260 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 <  (exit $ac_status); } && {
3262 <         test -z "$ac_c_werror_flag" ||
3263 <         test ! -s conftest.err
3264 <       } && test -s conftest.$ac_objext; then
3265 <  ac_cv_prog_cc_c89=$ac_arg
3057 >
3058 > { echo "$as_me:$LINENO: checking how to compile MPI-C code" >&5
3059 > echo $ECHO_N "checking how to compile MPI-C code... $ECHO_C" >&6; }
3060 > if test "${acx_mpi_cflags+set}" = set; then
3061 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3062   else
3267  echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3063  
3064 + case $acx_cv_mpi_implementation in
3065 +  (lammpi)
3066 +    cfo="--showme:compile"
3067 +    ;;
3068 +  (openmpi)
3069 +    cfo="--showme:compile"
3070 +    ;;
3071 +  (mpich)
3072 +    case "$acx_mpi_compiler_path" in
3073 +      (*mpiCC)
3074 +        sc_cv_cn="-CC="
3075 +        ;;
3076 +      (*mpicxx)
3077 +        sc_cv_cn="-cxx="
3078 +        ;;
3079 +      (*mpicc)
3080 +        sc_cv_cn="-cc="
3081 +        ;;
3082 +      (*)
3083 +        sc_cv_cn=""
3084 +        ;;
3085 +    esac
3086 +    cfo="-compile_info $sc_cv_cn"
3087 +    ;;
3088 + esac
3089 + echo "$as_me:$LINENO: mpi_pre_cflags=\"\`$acx_mpi_compiler_path $cfo || echo ' no'\`\"" >&5
3090 + mpi_pre_cflags="`$acx_mpi_compiler_path $cfo 2>conftest.er1 || echo ' no'`"
3091 + grep -v '^ *+' conftest.er1 >conftest.err
3092 + rm -f conftest.er1
3093 + cat conftest.err >&5
3094 + echo "$as_me:$LINENO: mpi_pre_cflags = $mpi_pre_cflags" >&5
3095 + case "$mpi_pre_cflags" in
3096 +  (*no)
3097 +    acx_mpi_cflags=no
3098 +    acx_mpi_cflags="no"
3099 +    ;;
3100 +  (*)
3101 +    acx_mpi_tmp_mode="normal"
3102 +  acx_mpi_tmp_prefix=""
3103 +  eval "acx_mpi_cflags=\"\""
3104 +  for acx_mpi_tmp in $mpi_pre_cflags; do
3105 +    case "$acx_mpi_tmp_mode" in
3106 +      (normal)
3107 +        case "$acx_mpi_tmp" in
3108 +          (-I|-D)
3109 +            acx_mpi_tmp_prefix="$acx_mpi_tmp"
3110 +            acx_mpi_tmp_mode="accept"
3111 +            ;;
3112 +          (-I*|-D*)
3113 +            eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp\""
3114 +            ;;
3115 +          (-L|-l)
3116 +            acx_mpi_tmp_mode="skip"
3117 +            ;;
3118 +          (*)
3119 +            ;;
3120 +        esac
3121 +        ;;
3122 +      (accept)
3123 +        eval "acx_mpi_cflags=\"`eval echo '${'\\acx_mpi_cflags'}'` \$acx_mpi_tmp_prefix \$acx_mpi_tmp\""
3124 +        ;;
3125 +      (skip)
3126 +        ;;
3127 +    esac
3128 +  done
3129  
3130 +    ;;
3131 + esac
3132 +
3133   fi
3134 + { echo "$as_me:$LINENO: result: $acx_mpi_cflags" >&5
3135 + echo "${ECHO_T}$acx_mpi_cflags" >&6; }
3136  
3273 rm -f core conftest.err conftest.$ac_objext
3274  test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3137  
3138 < fi
3139 < # AC_CACHE_VAL
3140 < case "x$ac_cv_prog_cc_c89" in
3141 <  x)
3142 <    { echo "$as_me:$LINENO: result: none needed" >&5
3143 < echo "${ECHO_T}none needed" >&6; } ;;
3144 <  xno)
3145 <    { echo "$as_me:$LINENO: result: unsupported" >&5
3146 < echo "${ECHO_T}unsupported" >&6; } ;;
3147 <  *)
3148 <    CC="$CC $ac_cv_prog_cc_c89"
3149 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3150 < echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3138 > { echo "$as_me:$LINENO: checking how to link MPI-C code" >&5
3139 > echo $ECHO_N "checking how to link MPI-C code... $ECHO_C" >&6; }
3140 > if test "${acx_mpi_libs+set}" = set; then
3141 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3142 > else
3143 >
3144 > case $acx_cv_mpi_implementation in
3145 >  (lammpi)
3146 >    lfo="--showme:compile --showme:link"
3147 >    ;;
3148 >  (openmpi)
3149 >    lfo="--showme:link"
3150 >    ;;
3151 >  (mpich)
3152 >    case "$acx_mpi_compiler_path" in
3153 >      (*mpiCC)
3154 >        sc_cv_cn="-CC="
3155 >        ;;
3156 >      (*mpicxx)
3157 >        sc_cv_cn="-cxx="
3158 >        ;;
3159 >      (*mpicc)
3160 >        sc_cv_cn="-cc="
3161 >        ;;
3162 >      (*)
3163 >        sc_cv_cn=""
3164 >        ;;
3165 >    esac
3166 >    lfo="-link_info $sc_cv_cn"
3167 >    ;;
3168   esac
3169 + echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_compiler_path $lfo || echo ' no'\`\"" >&5
3170 + mpi_pre_libs="`$acx_mpi_compiler_path $lfo 2>conftest.er1 || echo ' no'`"
3171 + grep -v '^ *+' conftest.er1 >conftest.err
3172 + rm -f conftest.er1
3173 + cat conftest.err >&5
3174 + echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5
3175 + case "$mpi_pre_libs" in
3176 +  (*no)
3177 +    acx_mpi_libs=no
3178 +    ;;
3179 +  (*)
3180 +    acx_mpi_libs="$mpi_pre_libs"
3181 +    ;;
3182 + esac
3183  
3184 + fi
3185 + { echo "$as_me:$LINENO: result: $acx_mpi_libs" >&5
3186 + echo "${ECHO_T}$acx_mpi_libs" >&6; }
3187  
3188 < ac_ext=c
3296 < ac_cpp='$CPP $CPPFLAGS'
3297 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 > if test $acx_mpi_mpif90_path != no; then
3189  
3190 < ac_ext=${ac_fc_srcext-f}
3191 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3192 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3193 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3194 < if test -n "$ac_tool_prefix"; then
3195 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3190 >
3191 >  { echo "$as_me:$LINENO: checking how to link MPI-Fortran code" >&5
3192 > echo $ECHO_N "checking how to link MPI-Fortran code... $ECHO_C" >&6; }
3193 > if test "${acx_mpi90_libs+set}" = set; then
3194 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3195 > else
3196 >
3197 >    echo "$as_me:$LINENO: mpi_pre_libs=\"\`$acx_mpi_mpif90_path $lfo || echo \" no\"\`\"" >&5
3198 >    mpi_pre_libs="`$acx_mpi_mpif90_path $lfo 2>conftest.er1 || echo " no"`"
3199 >    grep -v '^ *+' conftest.er1 >conftest.err
3200 >    rm -f conftest.er1
3201 >    cat conftest.err >&5
3202 >    echo "$as_me:$LINENO: mpi_pre_libs = $mpi_pre_libs" >&5
3203 >    case "$mpi_pre_libs" in
3204 >      (*no)
3205 >        acx_mpi90_libs=no
3206 >        ;;
3207 >      (*)
3208 >        acx_mpi90_libs="$mpi_pre_libs"
3209 >        ;;
3210 >    esac
3211 >
3212 > fi
3213 > { echo "$as_me:$LINENO: result: $acx_mpi90_libs" >&5
3214 > echo "${ECHO_T}$acx_mpi90_libs" >&6; }
3215 >
3216 >
3217 > fi
3218 >
3219 > if test "$acx_mpi_cflags" = no -o "$acx_mpi_libs" = no; then
3220 >
3221 > acx_mpi_cflags=""
3222 > acx_mpi_libs=""
3223 > USE_MPI="no"
3224 >        { echo "$as_me:$LINENO: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&5
3225 > echo "$as_me: WARNING: No suitable MPI implementation found. oopse_MPI will not be build." >&2;}
3226 > else
3227 >
3228 > MPI_CPPFLAGS=$acx_mpi_cflags
3229 >
3230 > MPI_LIBS=$acx_mpi_libs
3231 >
3232 > if test "$acx_mpi90_libs" != no; then
3233 >  MPI90_LIBS=$acx_mpi90_libs
3234 >
3235 > fi
3236 >
3237 > USE_MPI="yes"
3238 > fi
3239 >
3240 >
3241 > fi
3242 >
3243 >
3244 > fi
3245 >
3246 >
3247 >
3248 > # Checks for programs.
3249 > ac_ext=cpp
3250 > ac_cpp='$CXXCPP $CPPFLAGS'
3251 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3254 > if test -z "$CXX"; then
3255 >  if test -n "$CCC"; then
3256 >    CXX=$CCC
3257 >  else
3258 >    if test -n "$ac_tool_prefix"; then
3259 >  for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3260    do
3261      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3263   { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 < if test "${ac_cv_prog_FC+set}" = set; then
3265 > if test "${ac_cv_prog_CXX+set}" = set; then
3266    echo $ECHO_N "(cached) $ECHO_C" >&6
3267   else
3268 <  if test -n "$FC"; then
3269 <  ac_cv_prog_FC="$FC" # Let the user override the test.
3268 >  if test -n "$CXX"; then
3269 >  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3270   else
3271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272   for as_dir in $PATH
# Line 3322 | Line 3275 | do
3275    test -z "$as_dir" && as_dir=.
3276    for ac_exec_ext in '' $ac_executable_extensions; do
3277    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3278 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3279      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280      break 2
3281    fi
# Line 3332 | Line 3285 | fi
3285  
3286   fi
3287   fi
3288 < FC=$ac_cv_prog_FC
3289 < if test -n "$FC"; then
3290 <  { echo "$as_me:$LINENO: result: $FC" >&5
3291 < echo "${ECHO_T}$FC" >&6; }
3288 > CXX=$ac_cv_prog_CXX
3289 > if test -n "$CXX"; then
3290 >  { echo "$as_me:$LINENO: result: $CXX" >&5
3291 > echo "${ECHO_T}$CXX" >&6; }
3292   else
3293    { echo "$as_me:$LINENO: result: no" >&5
3294   echo "${ECHO_T}no" >&6; }
3295   fi
3296  
3297  
3298 <    test -n "$FC" && break
3298 >    test -n "$CXX" && break
3299    done
3300   fi
3301 < if test -z "$FC"; then
3302 <  ac_ct_FC=$FC
3303 <  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3301 > if test -z "$CXX"; then
3302 >  ac_ct_CXX=$CXX
3303 >  for ac_prog in $CXX $ac_cv_prog_acx_mpi_mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
3304   do
3305    # Extract the first word of "$ac_prog", so it can be a program name with args.
3306   set dummy $ac_prog; ac_word=$2
3307   { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
3309 > if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3310    echo $ECHO_N "(cached) $ECHO_C" >&6
3311   else
3312 <  if test -n "$ac_ct_FC"; then
3313 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3312 >  if test -n "$ac_ct_CXX"; then
3313 >  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3314   else
3315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316   for as_dir in $PATH
# Line 3366 | Line 3319 | do
3319    test -z "$as_dir" && as_dir=.
3320    for ac_exec_ext in '' $ac_executable_extensions; do
3321    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 <    ac_cv_prog_ac_ct_FC="$ac_prog"
3322 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
3323      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324      break 2
3325    fi
# Line 3376 | Line 3329 | fi
3329  
3330   fi
3331   fi
3332 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
3333 < if test -n "$ac_ct_FC"; then
3334 <  { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
3335 < echo "${ECHO_T}$ac_ct_FC" >&6; }
3332 > ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3333 > if test -n "$ac_ct_CXX"; then
3334 >  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3335 > echo "${ECHO_T}$ac_ct_CXX" >&6; }
3336   else
3337    { echo "$as_me:$LINENO: result: no" >&5
3338   echo "${ECHO_T}no" >&6; }
3339   fi
3340  
3341  
3342 <  test -n "$ac_ct_FC" && break
3342 >  test -n "$ac_ct_CXX" && break
3343   done
3344  
3345 <  if test "x$ac_ct_FC" = x; then
3346 <    FC=""
3345 >  if test "x$ac_ct_CXX" = x; then
3346 >    CXX="g++"
3347    else
3348      case $cross_compiling:$ac_tool_warned in
3349   yes:)
# Line 3402 | Line 3355 | esac
3355   configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3356   ac_tool_warned=yes ;;
3357   esac
3358 <    FC=$ac_ct_FC
3358 >    CXX=$ac_ct_CXX
3359    fi
3360   fi
3361  
3362 <
3362 >  fi
3363 > fi
3364   # Provide some information about the compiler.
3365 < echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
3365 > echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3366   ac_compiler=`set X $ac_compile; echo $2`
3367   { (ac_try="$ac_compiler --version >&5"
3368   case "(($ac_try" in
# Line 3440 | Line 3394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394    ac_status=$?
3395    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396    (exit $ac_status); }
3443 rm -f a.out
3397  
3398 < # If we don't use `.F' as extension, the preprocessor is not run on the
3399 < # input file.  (Note that this only needs to work for GNU compilers.)
3400 < ac_save_ext=$ac_ext
3401 < ac_ext=F
3402 < { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
3403 < echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
3451 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then
3452 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3453 < else
3454 <  cat >conftest.$ac_ext <<_ACEOF
3455 <      program main
3456 < #ifndef __GNUC__
3457 <       choke me
3458 < #endif
3398 > cat >conftest.$ac_ext <<_ACEOF
3399 > /* confdefs.h.  */
3400 > _ACEOF
3401 > cat confdefs.h >>conftest.$ac_ext
3402 > cat >>conftest.$ac_ext <<_ACEOF
3403 > /* end confdefs.h.  */
3404  
3405 <      end
3405 > int
3406 > main ()
3407 > {
3408 >
3409 >  ;
3410 >  return 0;
3411 > }
3412   _ACEOF
3413 < rm -f conftest.$ac_objext
3414 < if { (ac_try="$ac_compile"
3413 > ac_clean_files_save=$ac_clean_files
3414 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
3415 > # Try to create an executable without -o first, disregard a.out.
3416 > # It will help us diagnose broken compilers, and finding out an intuition
3417 > # of exeext.
3418 > { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3419 > echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
3420 > ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3421 > #
3422 > # List of possible output files, starting from the most likely.
3423 > # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3424 > # only as a last resort.  b.out is created by i960 compilers.
3425 > ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3426 > #
3427 > # The IRIX 6 linker writes into existing files which may not be
3428 > # executable, retaining their permissions.  Remove them first so a
3429 > # subsequent execution test works.
3430 > ac_rmfiles=
3431 > for ac_file in $ac_files
3432 > do
3433 >  case $ac_file in
3434 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3435 >    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3436 >  esac
3437 > done
3438 > rm -f $ac_rmfiles
3439 >
3440 > if { (ac_try="$ac_link_default"
3441   case "(($ac_try" in
3442    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443    *) ac_try_echo=$ac_try;;
3444   esac
3445   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 <  (eval "$ac_compile") 2>conftest.er1
3446 >  (eval "$ac_link_default") 2>&5
3447    ac_status=$?
3471  grep -v '^ *+' conftest.er1 >conftest.err
3472  rm -f conftest.er1
3473  cat conftest.err >&5
3448    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 <  (exit $ac_status); } && {
3450 <         test -z "$ac_fc_werror_flag" ||
3451 <         test ! -s conftest.err
3452 <       } && test -s conftest.$ac_objext; then
3453 <  ac_compiler_gnu=yes
3449 >  (exit $ac_status); }; then
3450 >  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3451 > # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3452 > # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3453 > # so that the user can short-circuit this test for compilers unknown to
3454 > # Autoconf.
3455 > for ac_file in $ac_files ''
3456 > do
3457 >  test -f "$ac_file" || continue
3458 >  case $ac_file in
3459 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3460 >        ;;
3461 >    [ab].out )
3462 >        # We found the default executable, but exeext='' is most
3463 >        # certainly right.
3464 >        break;;
3465 >    *.* )
3466 >        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3467 >        then :; else
3468 >           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3469 >        fi
3470 >        # We set ac_cv_exeext here because the later test for it is not
3471 >        # safe: cross compilers may not add the suffix if given an `-o'
3472 >        # argument, so we may need to know it at that point already.
3473 >        # Even if this section looks crufty: it has the advantage of
3474 >        # actually working.
3475 >        break;;
3476 >    * )
3477 >        break;;
3478 >  esac
3479 > done
3480 > test "$ac_cv_exeext" = no && ac_cv_exeext=
3481 >
3482   else
3483 +  ac_file=''
3484 + fi
3485 +
3486 + { echo "$as_me:$LINENO: result: $ac_file" >&5
3487 + echo "${ECHO_T}$ac_file" >&6; }
3488 + if test -z "$ac_file"; then
3489    echo "$as_me: failed program was:" >&5
3490   sed 's/^/| /' conftest.$ac_ext >&5
3491  
3492 <        ac_compiler_gnu=no
3492 > { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3493 > See \`config.log' for more details." >&5
3494 > echo "$as_me: error: C++ compiler cannot create executables
3495 > See \`config.log' for more details." >&2;}
3496 >   { (exit 77); exit 77; }; }
3497   fi
3498  
3499 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3499 > ac_exeext=$ac_cv_exeext
3500  
3501 < fi
3502 < { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
3503 < echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
3504 < ac_ext=$ac_save_ext
3505 < ac_test_FFLAGS=${FCFLAGS+set}
3506 < ac_save_FFLAGS=$FCFLAGS
3507 < FCFLAGS=
3508 < { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
3509 < echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
3510 < if test "${ac_cv_prog_fc_g+set}" = set; then
3511 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3512 < else
3513 <  FCFLAGS=-g
3514 < cat >conftest.$ac_ext <<_ACEOF
3515 <      program main
3501 > # Check that the compiler produces executables we can run.  If not, either
3502 > # the compiler is broken, or we cross compile.
3503 > { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3504 > echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
3505 > # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3506 > # If not cross compiling, check that we can run a simple program.
3507 > if test "$cross_compiling" != yes; then
3508 >  if { ac_try='./$ac_file'
3509 >  { (case "(($ac_try" in
3510 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 >  *) ac_try_echo=$ac_try;;
3512 > esac
3513 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 >  (eval "$ac_try") 2>&5
3515 >  ac_status=$?
3516 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 >  (exit $ac_status); }; }; then
3518 >    cross_compiling=no
3519 >  else
3520 >    if test "$cross_compiling" = maybe; then
3521 >        cross_compiling=yes
3522 >    else
3523 >        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3524 > If you meant to cross compile, use \`--host'.
3525 > See \`config.log' for more details." >&5
3526 > echo "$as_me: error: cannot run C++ compiled programs.
3527 > If you meant to cross compile, use \`--host'.
3528 > See \`config.log' for more details." >&2;}
3529 >   { (exit 1); exit 1; }; }
3530 >    fi
3531 >  fi
3532 > fi
3533 > { echo "$as_me:$LINENO: result: yes" >&5
3534 > echo "${ECHO_T}yes" >&6; }
3535  
3536 <      end
3537 < _ACEOF
3538 < rm -f conftest.$ac_objext
3539 < if { (ac_try="$ac_compile"
3536 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
3537 > ac_clean_files=$ac_clean_files_save
3538 > # Check that the compiler produces executables we can run.  If not, either
3539 > # the compiler is broken, or we cross compile.
3540 > { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3541 > echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3542 > { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3543 > echo "${ECHO_T}$cross_compiling" >&6; }
3544 >
3545 > { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3546 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3547 > if { (ac_try="$ac_link"
3548   case "(($ac_try" in
3549    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550    *) ac_try_echo=$ac_try;;
3551   esac
3552   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 <  (eval "$ac_compile") 2>conftest.er1
3553 >  (eval "$ac_link") 2>&5
3554    ac_status=$?
3517  grep -v '^ *+' conftest.er1 >conftest.err
3518  rm -f conftest.er1
3519  cat conftest.err >&5
3555    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 <  (exit $ac_status); } && {
3557 <         test -z "$ac_fc_werror_flag" ||
3558 <         test ! -s conftest.err
3559 <       } && test -s conftest.$ac_objext; then
3560 <  ac_cv_prog_fc_g=yes
3556 >  (exit $ac_status); }; then
3557 >  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3558 > # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3559 > # work properly (i.e., refer to `conftest.exe'), while it won't with
3560 > # `rm'.
3561 > for ac_file in conftest.exe conftest conftest.*; do
3562 >  test -f "$ac_file" || continue
3563 >  case $ac_file in
3564 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3565 >    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566 >          break;;
3567 >    * ) break;;
3568 >  esac
3569 > done
3570   else
3571 <  echo "$as_me: failed program was:" >&5
3572 < sed 's/^/| /' conftest.$ac_ext >&5
3573 <
3574 <        ac_cv_prog_fc_g=no
3571 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3572 > See \`config.log' for more details." >&5
3573 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3574 > See \`config.log' for more details." >&2;}
3575 >   { (exit 1); exit 1; }; }
3576   fi
3577  
3578 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 > rm -f conftest$ac_cv_exeext
3579 > { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3580 > echo "${ECHO_T}$ac_cv_exeext" >&6; }
3581  
3582 < fi
3583 < { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
3584 < echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
3585 < if test "$ac_test_FFLAGS" = set; then
3586 <  FCFLAGS=$ac_save_FFLAGS
3587 < elif test $ac_cv_prog_fc_g = yes; then
3541 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3542 <    FCFLAGS="-g -O2"
3543 <  else
3544 <    FCFLAGS="-g"
3545 <  fi
3546 < else
3547 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
3548 <    FCFLAGS="-O2"
3549 <  else
3550 <    FCFLAGS=
3551 <  fi
3552 < fi
3553 <
3554 < ac_ext=c
3555 < ac_cpp='$CPP $CPPFLAGS'
3556 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 <
3560 < ac_ext=c
3561 < ac_cpp='$CPP $CPPFLAGS'
3562 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 < { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3566 < echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3567 < # On Suns, sometimes $CPP names a directory.
3568 < if test -n "$CPP" && test -d "$CPP"; then
3569 <  CPP=
3570 < fi
3571 < if test -z "$CPP"; then
3572 <  if test "${ac_cv_prog_CPP+set}" = set; then
3582 > rm -f conftest.$ac_ext
3583 > EXEEXT=$ac_cv_exeext
3584 > ac_exeext=$EXEEXT
3585 > { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3586 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3587 > if test "${ac_cv_objext+set}" = set; then
3588    echo $ECHO_N "(cached) $ECHO_C" >&6
3589   else
3575      # Double quotes because CPP needs to be expanded
3576    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3577    do
3578      ac_preproc_ok=false
3579 for ac_c_preproc_warn_flag in '' yes
3580 do
3581  # Use a header file that comes with gcc, so configuring glibc
3582  # with a fresh cross-compiler works.
3583  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3584  # <limits.h> exists even on freestanding compilers.
3585  # On the NeXT, cc -E runs the code through the compiler's parser,
3586  # not just through cpp. "Syntax error" is here to catch this case.
3590    cat >conftest.$ac_ext <<_ACEOF
3591   /* confdefs.h.  */
3592   _ACEOF
3593   cat confdefs.h >>conftest.$ac_ext
3594   cat >>conftest.$ac_ext <<_ACEOF
3595   /* end confdefs.h.  */
3596 < #ifdef __STDC__
3597 < # include <limits.h>
3598 < #else
3599 < # include <assert.h>
3600 < #endif
3601 <                     Syntax error
3596 >
3597 > int
3598 > main ()
3599 > {
3600 >
3601 >  ;
3602 >  return 0;
3603 > }
3604   _ACEOF
3605 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3605 > rm -f conftest.o conftest.obj
3606 > if { (ac_try="$ac_compile"
3607   case "(($ac_try" in
3608    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609    *) ac_try_echo=$ac_try;;
3610   esac
3611   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612 >  (eval "$ac_compile") 2>&5
3613    ac_status=$?
3608  grep -v '^ *+' conftest.er1 >conftest.err
3609  rm -f conftest.er1
3610  cat conftest.err >&5
3614    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 <  (exit $ac_status); } >/dev/null && {
3616 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3617 <         test ! -s conftest.err
3618 <       }; then
3619 <  :
3615 >  (exit $ac_status); }; then
3616 >  for ac_file in conftest.o conftest.obj conftest.*; do
3617 >  test -f "$ac_file" || continue;
3618 >  case $ac_file in
3619 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3620 >    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3621 >       break;;
3622 >  esac
3623 > done
3624   else
3625    echo "$as_me: failed program was:" >&5
3626   sed 's/^/| /' conftest.$ac_ext >&5
3627  
3628 <  # Broken: fails on valid input.
3629 < continue
3628 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3629 > See \`config.log' for more details." >&5
3630 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
3631 > See \`config.log' for more details." >&2;}
3632 >   { (exit 1); exit 1; }; }
3633   fi
3634  
3635 < rm -f conftest.err conftest.$ac_ext
3636 <
3637 <  # OK, works on sane cases.  Now check whether nonexistent headers
3638 <  # can be detected and how.
3635 > rm -f conftest.$ac_cv_objext conftest.$ac_ext
3636 > fi
3637 > { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3638 > echo "${ECHO_T}$ac_cv_objext" >&6; }
3639 > OBJEXT=$ac_cv_objext
3640 > ac_objext=$OBJEXT
3641 > { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3642 > echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3643 > if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3644 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3645 > else
3646    cat >conftest.$ac_ext <<_ACEOF
3647   /* confdefs.h.  */
3648   _ACEOF
3649   cat confdefs.h >>conftest.$ac_ext
3650   cat >>conftest.$ac_ext <<_ACEOF
3651   /* end confdefs.h.  */
3652 < #include <ac_nonexistent.h>
3652 >
3653 > int
3654 > main ()
3655 > {
3656 > #ifndef __GNUC__
3657 >       choke me
3658 > #endif
3659 >
3660 >  ;
3661 >  return 0;
3662 > }
3663   _ACEOF
3664 < if { (ac_try="$ac_cpp conftest.$ac_ext"
3664 > rm -f conftest.$ac_objext
3665 > if { (ac_try="$ac_compile"
3666   case "(($ac_try" in
3667    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668    *) ac_try_echo=$ac_try;;
3669   esac
3670   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671 >  (eval "$ac_compile") 2>conftest.er1
3672    ac_status=$?
3673    grep -v '^ *+' conftest.er1 >conftest.err
3674    rm -f conftest.er1
3675    cat conftest.err >&5
3676    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 <  (exit $ac_status); } >/dev/null && {
3678 <         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 >  (exit $ac_status); } && {
3678 >         test -z "$ac_cxx_werror_flag" ||
3679           test ! -s conftest.err
3680 <       }; then
3681 <  # Broken: success on invalid input.
3654 < continue
3680 >       } && test -s conftest.$ac_objext; then
3681 >  ac_compiler_gnu=yes
3682   else
3683    echo "$as_me: failed program was:" >&5
3684   sed 's/^/| /' conftest.$ac_ext >&5
3685  
3686 <  # Passes both tests.
3660 < ac_preproc_ok=:
3661 < break
3686 >        ac_compiler_gnu=no
3687   fi
3688  
3689 < rm -f conftest.err conftest.$ac_ext
3689 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 > ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3691  
3666 done
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then
3670  break
3692   fi
3693 <
3694 <    done
3695 <    ac_cv_prog_CPP=$CPP
3696 <
3697 < fi
3698 <  CPP=$ac_cv_prog_CPP
3699 < else
3700 <  ac_cv_prog_CPP=$CPP
3701 < fi
3702 < { echo "$as_me:$LINENO: result: $CPP" >&5
3703 < echo "${ECHO_T}$CPP" >&6; }
3693 > { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3694 > echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3695 > GXX=`test $ac_compiler_gnu = yes && echo yes`
3696 > ac_test_CXXFLAGS=${CXXFLAGS+set}
3697 > ac_save_CXXFLAGS=$CXXFLAGS
3698 > { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3699 > echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3700 > if test "${ac_cv_prog_cxx_g+set}" = set; then
3701 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3702 > else
3703 >  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3704 >   ac_cxx_werror_flag=yes
3705 >   ac_cv_prog_cxx_g=no
3706 >   CXXFLAGS="-g"
3707 >   cat >conftest.$ac_ext <<_ACEOF
3708 > /* confdefs.h.  */
3709 > _ACEOF
3710 > cat confdefs.h >>conftest.$ac_ext
3711 > cat >>conftest.$ac_ext <<_ACEOF
3712 > /* end confdefs.h.  */
3713 >
3714 > int
3715 > main ()
3716 > {
3717 >
3718 >  ;
3719 >  return 0;
3720 > }
3721 > _ACEOF
3722 > rm -f conftest.$ac_objext
3723 > if { (ac_try="$ac_compile"
3724 > case "(($ac_try" in
3725 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 >  *) ac_try_echo=$ac_try;;
3727 > esac
3728 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 >  (eval "$ac_compile") 2>conftest.er1
3730 >  ac_status=$?
3731 >  grep -v '^ *+' conftest.er1 >conftest.err
3732 >  rm -f conftest.er1
3733 >  cat conftest.err >&5
3734 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 >  (exit $ac_status); } && {
3736 >         test -z "$ac_cxx_werror_flag" ||
3737 >         test ! -s conftest.err
3738 >       } && test -s conftest.$ac_objext; then
3739 >  ac_cv_prog_cxx_g=yes
3740 > else
3741 >  echo "$as_me: failed program was:" >&5
3742 > sed 's/^/| /' conftest.$ac_ext >&5
3743 >
3744 >        CXXFLAGS=""
3745 >      cat >conftest.$ac_ext <<_ACEOF
3746 > /* confdefs.h.  */
3747 > _ACEOF
3748 > cat confdefs.h >>conftest.$ac_ext
3749 > cat >>conftest.$ac_ext <<_ACEOF
3750 > /* end confdefs.h.  */
3751 >
3752 > int
3753 > main ()
3754 > {
3755 >
3756 >  ;
3757 >  return 0;
3758 > }
3759 > _ACEOF
3760 > rm -f conftest.$ac_objext
3761 > if { (ac_try="$ac_compile"
3762 > case "(($ac_try" in
3763 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 >  *) ac_try_echo=$ac_try;;
3765 > esac
3766 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 >  (eval "$ac_compile") 2>conftest.er1
3768 >  ac_status=$?
3769 >  grep -v '^ *+' conftest.er1 >conftest.err
3770 >  rm -f conftest.er1
3771 >  cat conftest.err >&5
3772 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 >  (exit $ac_status); } && {
3774 >         test -z "$ac_cxx_werror_flag" ||
3775 >         test ! -s conftest.err
3776 >       } && test -s conftest.$ac_objext; then
3777 >  :
3778 > else
3779 >  echo "$as_me: failed program was:" >&5
3780 > sed 's/^/| /' conftest.$ac_ext >&5
3781 >
3782 >        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3783 >         CXXFLAGS="-g"
3784 >         cat >conftest.$ac_ext <<_ACEOF
3785 > /* confdefs.h.  */
3786 > _ACEOF
3787 > cat confdefs.h >>conftest.$ac_ext
3788 > cat >>conftest.$ac_ext <<_ACEOF
3789 > /* end confdefs.h.  */
3790 >
3791 > int
3792 > main ()
3793 > {
3794 >
3795 >  ;
3796 >  return 0;
3797 > }
3798 > _ACEOF
3799 > rm -f conftest.$ac_objext
3800 > if { (ac_try="$ac_compile"
3801 > case "(($ac_try" in
3802 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 >  *) ac_try_echo=$ac_try;;
3804 > esac
3805 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3806 >  (eval "$ac_compile") 2>conftest.er1
3807 >  ac_status=$?
3808 >  grep -v '^ *+' conftest.er1 >conftest.err
3809 >  rm -f conftest.er1
3810 >  cat conftest.err >&5
3811 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 >  (exit $ac_status); } && {
3813 >         test -z "$ac_cxx_werror_flag" ||
3814 >         test ! -s conftest.err
3815 >       } && test -s conftest.$ac_objext; then
3816 >  ac_cv_prog_cxx_g=yes
3817 > else
3818 >  echo "$as_me: failed program was:" >&5
3819 > sed 's/^/| /' conftest.$ac_ext >&5
3820 >
3821 >
3822 > fi
3823 >
3824 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 > fi
3826 >
3827 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 > fi
3829 >
3830 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 >   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3832 > fi
3833 > { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3834 > echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3835 > if test "$ac_test_CXXFLAGS" = set; then
3836 >  CXXFLAGS=$ac_save_CXXFLAGS
3837 > elif test $ac_cv_prog_cxx_g = yes; then
3838 >  if test "$GXX" = yes; then
3839 >    CXXFLAGS="-g -O2"
3840 >  else
3841 >    CXXFLAGS="-g"
3842 >  fi
3843 > else
3844 >  if test "$GXX" = yes; then
3845 >    CXXFLAGS="-O2"
3846 >  else
3847 >    CXXFLAGS=
3848 >  fi
3849 > fi
3850 > ac_ext=c
3851 > ac_cpp='$CPP $CPPFLAGS'
3852 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855 >
3856 > ac_ext=c
3857 > ac_cpp='$CPP $CPPFLAGS'
3858 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 > if test -n "$ac_tool_prefix"; then
3862 >  for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc
3863 >  do
3864 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3865 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3866 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3868 > if test "${ac_cv_prog_CC+set}" = set; then
3869 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3870 > else
3871 >  if test -n "$CC"; then
3872 >  ac_cv_prog_CC="$CC" # Let the user override the test.
3873 > else
3874 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 > for as_dir in $PATH
3876 > do
3877 >  IFS=$as_save_IFS
3878 >  test -z "$as_dir" && as_dir=.
3879 >  for ac_exec_ext in '' $ac_executable_extensions; do
3880 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3882 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 >    break 2
3884 >  fi
3885 > done
3886 > done
3887 > IFS=$as_save_IFS
3888 >
3889 > fi
3890 > fi
3891 > CC=$ac_cv_prog_CC
3892 > if test -n "$CC"; then
3893 >  { echo "$as_me:$LINENO: result: $CC" >&5
3894 > echo "${ECHO_T}$CC" >&6; }
3895 > else
3896 >  { echo "$as_me:$LINENO: result: no" >&5
3897 > echo "${ECHO_T}no" >&6; }
3898 > fi
3899 >
3900 >
3901 >    test -n "$CC" && break
3902 >  done
3903 > fi
3904 > if test -z "$CC"; then
3905 >  ac_ct_CC=$CC
3906 >  for ac_prog in $CC $ac_cv_prog_acx_mpi_mpicc icc pathcc pgcc cc xlc gcc
3907 > do
3908 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 > set dummy $ac_prog; ac_word=$2
3910 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3912 > if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3913 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3914 > else
3915 >  if test -n "$ac_ct_CC"; then
3916 >  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917 > else
3918 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 > for as_dir in $PATH
3920 > do
3921 >  IFS=$as_save_IFS
3922 >  test -z "$as_dir" && as_dir=.
3923 >  for ac_exec_ext in '' $ac_executable_extensions; do
3924 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 >    ac_cv_prog_ac_ct_CC="$ac_prog"
3926 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 >    break 2
3928 >  fi
3929 > done
3930 > done
3931 > IFS=$as_save_IFS
3932 >
3933 > fi
3934 > fi
3935 > ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 > if test -n "$ac_ct_CC"; then
3937 >  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938 > echo "${ECHO_T}$ac_ct_CC" >&6; }
3939 > else
3940 >  { echo "$as_me:$LINENO: result: no" >&5
3941 > echo "${ECHO_T}no" >&6; }
3942 > fi
3943 >
3944 >
3945 >  test -n "$ac_ct_CC" && break
3946 > done
3947 >
3948 >  if test "x$ac_ct_CC" = x; then
3949 >    CC=""
3950 >  else
3951 >    case $cross_compiling:$ac_tool_warned in
3952 > yes:)
3953 > { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3954 > whose name does not start with the host triplet.  If you think this
3955 > configuration is useful to you, please write to autoconf@gnu.org." >&5
3956 > echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3957 > whose name does not start with the host triplet.  If you think this
3958 > configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3959 > ac_tool_warned=yes ;;
3960 > esac
3961 >    CC=$ac_ct_CC
3962 >  fi
3963 > fi
3964 >
3965 >
3966 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3967 > See \`config.log' for more details." >&5
3968 > echo "$as_me: error: no acceptable C compiler found in \$PATH
3969 > See \`config.log' for more details." >&2;}
3970 >   { (exit 1); exit 1; }; }
3971 >
3972 > # Provide some information about the compiler.
3973 > echo "$as_me:$LINENO: checking for C compiler version" >&5
3974 > ac_compiler=`set X $ac_compile; echo $2`
3975 > { (ac_try="$ac_compiler --version >&5"
3976 > case "(($ac_try" in
3977 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 >  *) ac_try_echo=$ac_try;;
3979 > esac
3980 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 >  (eval "$ac_compiler --version >&5") 2>&5
3982 >  ac_status=$?
3983 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 >  (exit $ac_status); }
3985 > { (ac_try="$ac_compiler -v >&5"
3986 > case "(($ac_try" in
3987 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 >  *) ac_try_echo=$ac_try;;
3989 > esac
3990 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 >  (eval "$ac_compiler -v >&5") 2>&5
3992 >  ac_status=$?
3993 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 >  (exit $ac_status); }
3995 > { (ac_try="$ac_compiler -V >&5"
3996 > case "(($ac_try" in
3997 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 >  *) ac_try_echo=$ac_try;;
3999 > esac
4000 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 >  (eval "$ac_compiler -V >&5") 2>&5
4002 >  ac_status=$?
4003 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 >  (exit $ac_status); }
4005 >
4006 > { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4007 > echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4008 > if test "${ac_cv_c_compiler_gnu+set}" = set; then
4009 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4010 > else
4011 >  cat >conftest.$ac_ext <<_ACEOF
4012 > /* confdefs.h.  */
4013 > _ACEOF
4014 > cat confdefs.h >>conftest.$ac_ext
4015 > cat >>conftest.$ac_ext <<_ACEOF
4016 > /* end confdefs.h.  */
4017 >
4018 > int
4019 > main ()
4020 > {
4021 > #ifndef __GNUC__
4022 >       choke me
4023 > #endif
4024 >
4025 >  ;
4026 >  return 0;
4027 > }
4028 > _ACEOF
4029 > rm -f conftest.$ac_objext
4030 > if { (ac_try="$ac_compile"
4031 > case "(($ac_try" in
4032 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 >  *) ac_try_echo=$ac_try;;
4034 > esac
4035 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 >  (eval "$ac_compile") 2>conftest.er1
4037 >  ac_status=$?
4038 >  grep -v '^ *+' conftest.er1 >conftest.err
4039 >  rm -f conftest.er1
4040 >  cat conftest.err >&5
4041 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 >  (exit $ac_status); } && {
4043 >         test -z "$ac_c_werror_flag" ||
4044 >         test ! -s conftest.err
4045 >       } && test -s conftest.$ac_objext; then
4046 >  ac_compiler_gnu=yes
4047 > else
4048 >  echo "$as_me: failed program was:" >&5
4049 > sed 's/^/| /' conftest.$ac_ext >&5
4050 >
4051 >        ac_compiler_gnu=no
4052 > fi
4053 >
4054 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 > ac_cv_c_compiler_gnu=$ac_compiler_gnu
4056 >
4057 > fi
4058 > { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4059 > echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4060 > GCC=`test $ac_compiler_gnu = yes && echo yes`
4061 > ac_test_CFLAGS=${CFLAGS+set}
4062 > ac_save_CFLAGS=$CFLAGS
4063 > { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4064 > echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4065 > if test "${ac_cv_prog_cc_g+set}" = set; then
4066 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4067 > else
4068 >  ac_save_c_werror_flag=$ac_c_werror_flag
4069 >   ac_c_werror_flag=yes
4070 >   ac_cv_prog_cc_g=no
4071 >   CFLAGS="-g"
4072 >   cat >conftest.$ac_ext <<_ACEOF
4073 > /* confdefs.h.  */
4074 > _ACEOF
4075 > cat confdefs.h >>conftest.$ac_ext
4076 > cat >>conftest.$ac_ext <<_ACEOF
4077 > /* end confdefs.h.  */
4078 >
4079 > int
4080 > main ()
4081 > {
4082 >
4083 >  ;
4084 >  return 0;
4085 > }
4086 > _ACEOF
4087 > rm -f conftest.$ac_objext
4088 > if { (ac_try="$ac_compile"
4089 > case "(($ac_try" in
4090 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 >  *) ac_try_echo=$ac_try;;
4092 > esac
4093 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 >  (eval "$ac_compile") 2>conftest.er1
4095 >  ac_status=$?
4096 >  grep -v '^ *+' conftest.er1 >conftest.err
4097 >  rm -f conftest.er1
4098 >  cat conftest.err >&5
4099 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 >  (exit $ac_status); } && {
4101 >         test -z "$ac_c_werror_flag" ||
4102 >         test ! -s conftest.err
4103 >       } && test -s conftest.$ac_objext; then
4104 >  ac_cv_prog_cc_g=yes
4105 > else
4106 >  echo "$as_me: failed program was:" >&5
4107 > sed 's/^/| /' conftest.$ac_ext >&5
4108 >
4109 >        CFLAGS=""
4110 >      cat >conftest.$ac_ext <<_ACEOF
4111 > /* confdefs.h.  */
4112 > _ACEOF
4113 > cat confdefs.h >>conftest.$ac_ext
4114 > cat >>conftest.$ac_ext <<_ACEOF
4115 > /* end confdefs.h.  */
4116 >
4117 > int
4118 > main ()
4119 > {
4120 >
4121 >  ;
4122 >  return 0;
4123 > }
4124 > _ACEOF
4125 > rm -f conftest.$ac_objext
4126 > if { (ac_try="$ac_compile"
4127 > case "(($ac_try" in
4128 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 >  *) ac_try_echo=$ac_try;;
4130 > esac
4131 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 >  (eval "$ac_compile") 2>conftest.er1
4133 >  ac_status=$?
4134 >  grep -v '^ *+' conftest.er1 >conftest.err
4135 >  rm -f conftest.er1
4136 >  cat conftest.err >&5
4137 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 >  (exit $ac_status); } && {
4139 >         test -z "$ac_c_werror_flag" ||
4140 >         test ! -s conftest.err
4141 >       } && test -s conftest.$ac_objext; then
4142 >  :
4143 > else
4144 >  echo "$as_me: failed program was:" >&5
4145 > sed 's/^/| /' conftest.$ac_ext >&5
4146 >
4147 >        ac_c_werror_flag=$ac_save_c_werror_flag
4148 >         CFLAGS="-g"
4149 >         cat >conftest.$ac_ext <<_ACEOF
4150 > /* confdefs.h.  */
4151 > _ACEOF
4152 > cat confdefs.h >>conftest.$ac_ext
4153 > cat >>conftest.$ac_ext <<_ACEOF
4154 > /* end confdefs.h.  */
4155 >
4156 > int
4157 > main ()
4158 > {
4159 >
4160 >  ;
4161 >  return 0;
4162 > }
4163 > _ACEOF
4164 > rm -f conftest.$ac_objext
4165 > if { (ac_try="$ac_compile"
4166 > case "(($ac_try" in
4167 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 >  *) ac_try_echo=$ac_try;;
4169 > esac
4170 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 >  (eval "$ac_compile") 2>conftest.er1
4172 >  ac_status=$?
4173 >  grep -v '^ *+' conftest.er1 >conftest.err
4174 >  rm -f conftest.er1
4175 >  cat conftest.err >&5
4176 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 >  (exit $ac_status); } && {
4178 >         test -z "$ac_c_werror_flag" ||
4179 >         test ! -s conftest.err
4180 >       } && test -s conftest.$ac_objext; then
4181 >  ac_cv_prog_cc_g=yes
4182 > else
4183 >  echo "$as_me: failed program was:" >&5
4184 > sed 's/^/| /' conftest.$ac_ext >&5
4185 >
4186 >
4187 > fi
4188 >
4189 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 > fi
4191 >
4192 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 > fi
4194 >
4195 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 >   ac_c_werror_flag=$ac_save_c_werror_flag
4197 > fi
4198 > { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4199 > echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4200 > if test "$ac_test_CFLAGS" = set; then
4201 >  CFLAGS=$ac_save_CFLAGS
4202 > elif test $ac_cv_prog_cc_g = yes; then
4203 >  if test "$GCC" = yes; then
4204 >    CFLAGS="-g -O2"
4205 >  else
4206 >    CFLAGS="-g"
4207 >  fi
4208 > else
4209 >  if test "$GCC" = yes; then
4210 >    CFLAGS="-O2"
4211 >  else
4212 >    CFLAGS=
4213 >  fi
4214 > fi
4215 > { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4216 > echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4217 > if test "${ac_cv_prog_cc_c89+set}" = set; then
4218 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4219 > else
4220 >  ac_cv_prog_cc_c89=no
4221 > ac_save_CC=$CC
4222 > cat >conftest.$ac_ext <<_ACEOF
4223 > /* confdefs.h.  */
4224 > _ACEOF
4225 > cat confdefs.h >>conftest.$ac_ext
4226 > cat >>conftest.$ac_ext <<_ACEOF
4227 > /* end confdefs.h.  */
4228 > #include <stdarg.h>
4229 > #include <stdio.h>
4230 > #include <sys/types.h>
4231 > #include <sys/stat.h>
4232 > /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4233 > struct buf { int x; };
4234 > FILE * (*rcsopen) (struct buf *, struct stat *, int);
4235 > static char *e (p, i)
4236 >     char **p;
4237 >     int i;
4238 > {
4239 >  return p[i];
4240 > }
4241 > static char *f (char * (*g) (char **, int), char **p, ...)
4242 > {
4243 >  char *s;
4244 >  va_list v;
4245 >  va_start (v,p);
4246 >  s = g (p, va_arg (v,int));
4247 >  va_end (v);
4248 >  return s;
4249 > }
4250 >
4251 > /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4252 >   function prototypes and stuff, but not '\xHH' hex character constants.
4253 >   These don't provoke an error unfortunately, instead are silently treated
4254 >   as 'x'.  The following induces an error, until -std is added to get
4255 >   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4256 >   array size at least.  It's necessary to write '\x00'==0 to get something
4257 >   that's true only with -std.  */
4258 > int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4259 >
4260 > /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4261 >   inside strings and character constants.  */
4262 > #define FOO(x) 'x'
4263 > int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4264 >
4265 > int test (int i, double x);
4266 > struct s1 {int (*f) (int a);};
4267 > struct s2 {int (*f) (double a);};
4268 > int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4269 > int argc;
4270 > char **argv;
4271 > int
4272 > main ()
4273 > {
4274 > return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4275 >  ;
4276 >  return 0;
4277 > }
4278 > _ACEOF
4279 > for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4280 >        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4281 > do
4282 >  CC="$ac_save_CC $ac_arg"
4283 >  rm -f conftest.$ac_objext
4284 > if { (ac_try="$ac_compile"
4285 > case "(($ac_try" in
4286 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 >  *) ac_try_echo=$ac_try;;
4288 > esac
4289 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 >  (eval "$ac_compile") 2>conftest.er1
4291 >  ac_status=$?
4292 >  grep -v '^ *+' conftest.er1 >conftest.err
4293 >  rm -f conftest.er1
4294 >  cat conftest.err >&5
4295 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 >  (exit $ac_status); } && {
4297 >         test -z "$ac_c_werror_flag" ||
4298 >         test ! -s conftest.err
4299 >       } && test -s conftest.$ac_objext; then
4300 >  ac_cv_prog_cc_c89=$ac_arg
4301 > else
4302 >  echo "$as_me: failed program was:" >&5
4303 > sed 's/^/| /' conftest.$ac_ext >&5
4304 >
4305 >
4306 > fi
4307 >
4308 > rm -f core conftest.err conftest.$ac_objext
4309 >  test "x$ac_cv_prog_cc_c89" != "xno" && break
4310 > done
4311 > rm -f conftest.$ac_ext
4312 > CC=$ac_save_CC
4313 >
4314 > fi
4315 > # AC_CACHE_VAL
4316 > case "x$ac_cv_prog_cc_c89" in
4317 >  x)
4318 >    { echo "$as_me:$LINENO: result: none needed" >&5
4319 > echo "${ECHO_T}none needed" >&6; } ;;
4320 >  xno)
4321 >    { echo "$as_me:$LINENO: result: unsupported" >&5
4322 > echo "${ECHO_T}unsupported" >&6; } ;;
4323 >  *)
4324 >    CC="$CC $ac_cv_prog_cc_c89"
4325 >    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4326 > echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4327 > esac
4328 >
4329 >
4330 > ac_ext=c
4331 > ac_cpp='$CPP $CPPFLAGS'
4332 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 >
4336 > ac_ext=${ac_fc_srcext-f}
4337 > ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4338 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4339 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4340 > if test -n "$ac_tool_prefix"; then
4341 >  for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4342 >  do
4343 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4345 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 > if test "${ac_cv_prog_FC+set}" = set; then
4348 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4349 > else
4350 >  if test -n "$FC"; then
4351 >  ac_cv_prog_FC="$FC" # Let the user override the test.
4352 > else
4353 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 > for as_dir in $PATH
4355 > do
4356 >  IFS=$as_save_IFS
4357 >  test -z "$as_dir" && as_dir=.
4358 >  for ac_exec_ext in '' $ac_executable_extensions; do
4359 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 >    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4361 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 >    break 2
4363 >  fi
4364 > done
4365 > done
4366 > IFS=$as_save_IFS
4367 >
4368 > fi
4369 > fi
4370 > FC=$ac_cv_prog_FC
4371 > if test -n "$FC"; then
4372 >  { echo "$as_me:$LINENO: result: $FC" >&5
4373 > echo "${ECHO_T}$FC" >&6; }
4374 > else
4375 >  { echo "$as_me:$LINENO: result: no" >&5
4376 > echo "${ECHO_T}no" >&6; }
4377 > fi
4378 >
4379 >
4380 >    test -n "$FC" && break
4381 >  done
4382 > fi
4383 > if test -z "$FC"; then
4384 >  ac_ct_FC=$FC
4385 >  for ac_prog in $FC $ac_cv_prog_acx_mpi_mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4386 > do
4387 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 > set dummy $ac_prog; ac_word=$2
4389 > { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 > if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4392 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4393 > else
4394 >  if test -n "$ac_ct_FC"; then
4395 >  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4396 > else
4397 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 > for as_dir in $PATH
4399 > do
4400 >  IFS=$as_save_IFS
4401 >  test -z "$as_dir" && as_dir=.
4402 >  for ac_exec_ext in '' $ac_executable_extensions; do
4403 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 >    ac_cv_prog_ac_ct_FC="$ac_prog"
4405 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 >    break 2
4407 >  fi
4408 > done
4409 > done
4410 > IFS=$as_save_IFS
4411 >
4412 > fi
4413 > fi
4414 > ac_ct_FC=$ac_cv_prog_ac_ct_FC
4415 > if test -n "$ac_ct_FC"; then
4416 >  { echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4417 > echo "${ECHO_T}$ac_ct_FC" >&6; }
4418 > else
4419 >  { echo "$as_me:$LINENO: result: no" >&5
4420 > echo "${ECHO_T}no" >&6; }
4421 > fi
4422 >
4423 >
4424 >  test -n "$ac_ct_FC" && break
4425 > done
4426 >
4427 >  if test "x$ac_ct_FC" = x; then
4428 >    FC=""
4429 >  else
4430 >    case $cross_compiling:$ac_tool_warned in
4431 > yes:)
4432 > { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4433 > whose name does not start with the host triplet.  If you think this
4434 > configuration is useful to you, please write to autoconf@gnu.org." >&5
4435 > echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4436 > whose name does not start with the host triplet.  If you think this
4437 > configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4438 > ac_tool_warned=yes ;;
4439 > esac
4440 >    FC=$ac_ct_FC
4441 >  fi
4442 > fi
4443 >
4444 >
4445 > # Provide some information about the compiler.
4446 > echo "$as_me:$LINENO: checking for Fortran compiler version" >&5
4447 > ac_compiler=`set X $ac_compile; echo $2`
4448 > { (ac_try="$ac_compiler --version >&5"
4449 > case "(($ac_try" in
4450 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 >  *) ac_try_echo=$ac_try;;
4452 > esac
4453 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 >  (eval "$ac_compiler --version >&5") 2>&5
4455 >  ac_status=$?
4456 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 >  (exit $ac_status); }
4458 > { (ac_try="$ac_compiler -v >&5"
4459 > case "(($ac_try" in
4460 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 >  *) ac_try_echo=$ac_try;;
4462 > esac
4463 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 >  (eval "$ac_compiler -v >&5") 2>&5
4465 >  ac_status=$?
4466 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 >  (exit $ac_status); }
4468 > { (ac_try="$ac_compiler -V >&5"
4469 > case "(($ac_try" in
4470 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 >  *) ac_try_echo=$ac_try;;
4472 > esac
4473 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 >  (eval "$ac_compiler -V >&5") 2>&5
4475 >  ac_status=$?
4476 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 >  (exit $ac_status); }
4478 > rm -f a.out
4479 >
4480 > # If we don't use `.F' as extension, the preprocessor is not run on the
4481 > # input file.  (Note that this only needs to work for GNU compilers.)
4482 > ac_save_ext=$ac_ext
4483 > ac_ext=F
4484 > { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4485 > echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6; }
4486 > if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4487 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4488 > else
4489 >  cat >conftest.$ac_ext <<_ACEOF
4490 >      program main
4491 > #ifndef __GNUC__
4492 >       choke me
4493 > #endif
4494 >
4495 >      end
4496 > _ACEOF
4497 > rm -f conftest.$ac_objext
4498 > if { (ac_try="$ac_compile"
4499 > case "(($ac_try" in
4500 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 >  *) ac_try_echo=$ac_try;;
4502 > esac
4503 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 >  (eval "$ac_compile") 2>conftest.er1
4505 >  ac_status=$?
4506 >  grep -v '^ *+' conftest.er1 >conftest.err
4507 >  rm -f conftest.er1
4508 >  cat conftest.err >&5
4509 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 >  (exit $ac_status); } && {
4511 >         test -z "$ac_fc_werror_flag" ||
4512 >         test ! -s conftest.err
4513 >       } && test -s conftest.$ac_objext; then
4514 >  ac_compiler_gnu=yes
4515 > else
4516 >  echo "$as_me: failed program was:" >&5
4517 > sed 's/^/| /' conftest.$ac_ext >&5
4518 >
4519 >        ac_compiler_gnu=no
4520 > fi
4521 >
4522 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 > ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4524 >
4525 > fi
4526 > { echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4527 > echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6; }
4528 > ac_ext=$ac_save_ext
4529 > ac_test_FFLAGS=${FCFLAGS+set}
4530 > ac_save_FFLAGS=$FCFLAGS
4531 > FCFLAGS=
4532 > { echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4533 > echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6; }
4534 > if test "${ac_cv_prog_fc_g+set}" = set; then
4535 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4536 > else
4537 >  FCFLAGS=-g
4538 > cat >conftest.$ac_ext <<_ACEOF
4539 >      program main
4540 >
4541 >      end
4542 > _ACEOF
4543 > rm -f conftest.$ac_objext
4544 > if { (ac_try="$ac_compile"
4545 > case "(($ac_try" in
4546 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 >  *) ac_try_echo=$ac_try;;
4548 > esac
4549 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 >  (eval "$ac_compile") 2>conftest.er1
4551 >  ac_status=$?
4552 >  grep -v '^ *+' conftest.er1 >conftest.err
4553 >  rm -f conftest.er1
4554 >  cat conftest.err >&5
4555 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 >  (exit $ac_status); } && {
4557 >         test -z "$ac_fc_werror_flag" ||
4558 >         test ! -s conftest.err
4559 >       } && test -s conftest.$ac_objext; then
4560 >  ac_cv_prog_fc_g=yes
4561 > else
4562 >  echo "$as_me: failed program was:" >&5
4563 > sed 's/^/| /' conftest.$ac_ext >&5
4564 >
4565 >        ac_cv_prog_fc_g=no
4566 > fi
4567 >
4568 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 >
4570 > fi
4571 > { echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4572 > echo "${ECHO_T}$ac_cv_prog_fc_g" >&6; }
4573 > if test "$ac_test_FFLAGS" = set; then
4574 >  FCFLAGS=$ac_save_FFLAGS
4575 > elif test $ac_cv_prog_fc_g = yes; then
4576 >  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4577 >    FCFLAGS="-g -O2"
4578 >  else
4579 >    FCFLAGS="-g"
4580 >  fi
4581 > else
4582 >  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4583 >    FCFLAGS="-O2"
4584 >  else
4585 >    FCFLAGS=
4586 >  fi
4587 > fi
4588 >
4589 > ac_ext=c
4590 > ac_cpp='$CPP $CPPFLAGS'
4591 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 >
4595 > ac_ext=c
4596 > ac_cpp='$CPP $CPPFLAGS'
4597 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 > { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4601 > echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4602 > # On Suns, sometimes $CPP names a directory.
4603 > if test -n "$CPP" && test -d "$CPP"; then
4604 >  CPP=
4605 > fi
4606 > if test -z "$CPP"; then
4607 >  if test "${ac_cv_prog_CPP+set}" = set; then
4608 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4609 > else
4610 >      # Double quotes because CPP needs to be expanded
4611 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4612 >    do
4613 >      ac_preproc_ok=false
4614 > for ac_c_preproc_warn_flag in '' yes
4615 > do
4616 >  # Use a header file that comes with gcc, so configuring glibc
4617 >  # with a fresh cross-compiler works.
4618 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619 >  # <limits.h> exists even on freestanding compilers.
4620 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4621 >  # not just through cpp. "Syntax error" is here to catch this case.
4622 >  cat >conftest.$ac_ext <<_ACEOF
4623 > /* confdefs.h.  */
4624 > _ACEOF
4625 > cat confdefs.h >>conftest.$ac_ext
4626 > cat >>conftest.$ac_ext <<_ACEOF
4627 > /* end confdefs.h.  */
4628 > #ifdef __STDC__
4629 > # include <limits.h>
4630 > #else
4631 > # include <assert.h>
4632 > #endif
4633 >                     Syntax error
4634 > _ACEOF
4635 > if { (ac_try="$ac_cpp conftest.$ac_ext"
4636 > case "(($ac_try" in
4637 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 >  *) ac_try_echo=$ac_try;;
4639 > esac
4640 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4642 >  ac_status=$?
4643 >  grep -v '^ *+' conftest.er1 >conftest.err
4644 >  rm -f conftest.er1
4645 >  cat conftest.err >&5
4646 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 >  (exit $ac_status); } >/dev/null && {
4648 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4649 >         test ! -s conftest.err
4650 >       }; then
4651 >  :
4652 > else
4653 >  echo "$as_me: failed program was:" >&5
4654 > sed 's/^/| /' conftest.$ac_ext >&5
4655 >
4656 >  # Broken: fails on valid input.
4657 > continue
4658 > fi
4659 >
4660 > rm -f conftest.err conftest.$ac_ext
4661 >
4662 >  # OK, works on sane cases.  Now check whether nonexistent headers
4663 >  # can be detected and how.
4664 >  cat >conftest.$ac_ext <<_ACEOF
4665 > /* confdefs.h.  */
4666 > _ACEOF
4667 > cat confdefs.h >>conftest.$ac_ext
4668 > cat >>conftest.$ac_ext <<_ACEOF
4669 > /* end confdefs.h.  */
4670 > #include <ac_nonexistent.h>
4671 > _ACEOF
4672 > if { (ac_try="$ac_cpp conftest.$ac_ext"
4673 > case "(($ac_try" in
4674 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 >  *) ac_try_echo=$ac_try;;
4676 > esac
4677 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 >  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4679 >  ac_status=$?
4680 >  grep -v '^ *+' conftest.er1 >conftest.err
4681 >  rm -f conftest.er1
4682 >  cat conftest.err >&5
4683 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 >  (exit $ac_status); } >/dev/null && {
4685 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4686 >         test ! -s conftest.err
4687 >       }; then
4688 >  # Broken: success on invalid input.
4689 > continue
4690 > else
4691 >  echo "$as_me: failed program was:" >&5
4692 > sed 's/^/| /' conftest.$ac_ext >&5
4693 >
4694 >  # Passes both tests.
4695 > ac_preproc_ok=:
4696 > break
4697 > fi
4698 >
4699 > rm -f conftest.err conftest.$ac_ext
4700 >
4701 > done
4702 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4703 > rm -f conftest.err conftest.$ac_ext
4704 > if $ac_preproc_ok; then
4705 >  break
4706 > fi
4707 >
4708 >    done
4709 >    ac_cv_prog_CPP=$CPP
4710 >
4711 > fi
4712 >  CPP=$ac_cv_prog_CPP
4713 > else
4714 >  ac_cv_prog_CPP=$CPP
4715 > fi
4716 > { echo "$as_me:$LINENO: result: $CPP" >&5
4717 > echo "${ECHO_T}$CPP" >&6; }
4718   ac_preproc_ok=false
4719   for ac_c_preproc_warn_flag in '' yes
4720   do
# Line 4086 | Line 5121 | fi
5121    RANLIB="$ac_cv_prog_RANLIB"
5122   fi
5123  
4089 for ac_prog in 'bison -y' byacc
4090 do
4091  # Extract the first word of "$ac_prog", so it can be a program name with args.
4092 set dummy $ac_prog; ac_word=$2
4093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4095 if test "${ac_cv_prog_YACC+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098  if test -n "$YACC"; then
4099  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106  for ac_exec_ext in '' $ac_executable_extensions; do
4107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108    ac_cv_prog_YACC="$ac_prog"
4109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110    break 2
4111  fi
4112 done
4113 done
4114 IFS=$as_save_IFS
4115
4116 fi
4117 fi
4118 YACC=$ac_cv_prog_YACC
4119 if test -n "$YACC"; then
4120  { echo "$as_me:$LINENO: result: $YACC" >&5
4121 echo "${ECHO_T}$YACC" >&6; }
4122 else
4123  { echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6; }
4125 fi
4126
4127
4128  test -n "$YACC" && break
4129 done
4130 test -n "$YACC" || YACC="yacc"
4131
4132
4133 for ac_prog in flex lex
4134 do
4135  # Extract the first word of "$ac_prog", so it can be a program name with args.
4136 set dummy $ac_prog; ac_word=$2
4137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4139 if test "${ac_cv_prog_LEX+set}" = set; then
4140  echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142  if test -n "$LEX"; then
4143  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4144 else
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148  IFS=$as_save_IFS
4149  test -z "$as_dir" && as_dir=.
4150  for ac_exec_ext in '' $ac_executable_extensions; do
4151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152    ac_cv_prog_LEX="$ac_prog"
4153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4154    break 2
4155  fi
4156 done
4157 done
4158 IFS=$as_save_IFS
4159
4160 fi
4161 fi
4162 LEX=$ac_cv_prog_LEX
4163 if test -n "$LEX"; then
4164  { echo "$as_me:$LINENO: result: $LEX" >&5
4165 echo "${ECHO_T}$LEX" >&6; }
4166 else
4167  { echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6; }
4169 fi
4170
4171
4172  test -n "$LEX" && break
4173 done
4174 test -n "$LEX" || LEX=":"
4175
4176 if test "x$LEX" != "x:"; then
4177  cat >conftest.l <<_ACEOF
4178 %%
4179 a { ECHO; }
4180 b { REJECT; }
4181 c { yymore (); }
4182 d { yyless (1); }
4183 e { yyless (input () != 0); }
4184 f { unput (yytext[0]); }
4185 . { BEGIN INITIAL; }
4186 %%
4187 #ifdef YYTEXT_POINTER
4188 extern char *yytext;
4189 #endif
4190 int
4191 main (void)
4192 {
4193  return ! yylex () + ! yywrap ();
4194 }
4195 _ACEOF
4196 { (ac_try="$LEX conftest.l"
4197 case "(($ac_try" in
4198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199  *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202  (eval "$LEX conftest.l") 2>&5
4203  ac_status=$?
4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205  (exit $ac_status); }
4206 { echo "$as_me:$LINENO: checking lex output file root" >&5
4207 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4208 if test "${ac_cv_prog_lex_root+set}" = set; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211
4212 if test -f lex.yy.c; then
4213  ac_cv_prog_lex_root=lex.yy
4214 elif test -f lexyy.c; then
4215  ac_cv_prog_lex_root=lexyy
4216 else
4217  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4218 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4219   { (exit 1); exit 1; }; }
4220 fi
4221 fi
4222 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4223 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4224 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5124  
4226 if test -z "${LEXLIB+set}"; then
4227  { echo "$as_me:$LINENO: checking lex library" >&5
4228 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4229 if test "${ac_cv_lib_lex+set}" = set; then
4230  echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232
4233    ac_save_LIBS=$LIBS
4234    ac_cv_lib_lex='none needed'
4235    for ac_lib in '' -lfl -ll; do
4236      LIBS="$ac_lib $ac_save_LIBS"
4237      cat >conftest.$ac_ext <<_ACEOF
4238 `cat $LEX_OUTPUT_ROOT.c`
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4242 case "(($ac_try" in
4243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244  *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247  (eval "$ac_link") 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } && {
4254         test -z "$ac_c_werror_flag" ||
4255         test ! -s conftest.err
4256       } && test -s conftest$ac_exeext &&
4257       $as_test_x conftest$ac_exeext; then
4258  ac_cv_lib_lex=$ac_lib
4259 else
4260  echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263
4264 fi
4265
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267      conftest$ac_exeext conftest.$ac_ext
4268      test "$ac_cv_lib_lex" != 'none needed' && break
4269    done
4270    LIBS=$ac_save_LIBS
4271
4272 fi
4273 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4274 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4275  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4276 fi
4277
4278
4279 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4280 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4281 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284  # POSIX says lex can declare yytext either as a pointer or an array; the
4285 # default is implementation-dependent.  Figure out which it is, since
4286 # not all implementations provide the %pointer and %array declarations.
4287 ac_cv_prog_lex_yytext_pointer=no
4288 ac_save_LIBS=$LIBS
4289 LIBS="$LEXLIB $ac_save_LIBS"
4290 cat >conftest.$ac_ext <<_ACEOF
4291 #define YYTEXT_POINTER 1
4292 `cat $LEX_OUTPUT_ROOT.c`
4293 _ACEOF
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4296 case "(($ac_try" in
4297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298  *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301  (eval "$ac_link") 2>conftest.er1
4302  ac_status=$?
4303  grep -v '^ *+' conftest.er1 >conftest.err
4304  rm -f conftest.er1
4305  cat conftest.err >&5
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); } && {
4308         test -z "$ac_c_werror_flag" ||
4309         test ! -s conftest.err
4310       } && test -s conftest$ac_exeext &&
4311       $as_test_x conftest$ac_exeext; then
4312  ac_cv_prog_lex_yytext_pointer=yes
4313 else
4314  echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317
4318 fi
4319
4320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321      conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_save_LIBS
4323
4324 fi
4325 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4326 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4327 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4328
4329 cat >>confdefs.h <<\_ACEOF
4330 #define YYTEXT_POINTER 1
4331 _ACEOF
4332
4333 fi
4334 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4335
4336 fi
4337
5125     # Extract the first word of "perl", so it can be a program name with args.
5126   set dummy perl; ac_word=$2
5127   { echo "$as_me:$LINENO: checking for $ac_word" >&5
# Line 5361 | Line 6148 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6148   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6149   ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6150  
6151 +
6152   ac_ext=${ac_fc_srcext-f}
6153   ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6154   ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
# Line 7963 | Line 8751 | then
8751   #
8752   if test -n "${QHULL_HOME}"
8753   then
7966        QHULL_OLD_LDFLAGS=$LDFLAGS
7967        QHULL_OLD_CFLAGS=$CFLAGS
7968        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
7969        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
8754  
8755          ac_ext=c
8756   ac_cpp='$CPP $CPPFLAGS'
# Line 7974 | Line 8758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
8758   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8759   ac_compiler_gnu=$ac_cv_c_compiler_gnu
8760  
8761 <        { echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
8762 < echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; }
8763 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
8764 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8765 < else
8766 <  ac_check_lib_save_LIBS=$LIBS
7983 < LIBS="-lqhull  $LIBS"
7984 < cat >conftest.$ac_ext <<_ACEOF
7985 < /* confdefs.h.  */
7986 < _ACEOF
7987 < cat confdefs.h >>conftest.$ac_ext
7988 < cat >>conftest.$ac_ext <<_ACEOF
7989 < /* end confdefs.h.  */
7990 <
7991 < /* Override any GCC internal prototype to avoid an error.
7992 <   Use char because int might match the return type of a GCC
7993 <   builtin and then its argument prototype would still apply.  */
7994 < #ifdef __cplusplus
7995 < extern "C"
7996 < #endif
7997 < char qh_qhull ();
7998 < #ifdef FC_DUMMY_MAIN
7999 < #ifndef FC_DUMMY_MAIN_EQ_F77
8000 < #  ifdef __cplusplus
8001 <     extern "C"
8002 < #  endif
8003 <   int FC_DUMMY_MAIN() { return 1; }
8004 < #endif
8005 < #endif
8006 < int
8007 < main ()
8008 < {
8009 < return qh_qhull ();
8010 <  ;
8011 <  return 0;
8012 < }
8013 < _ACEOF
8014 < rm -f conftest.$ac_objext conftest$ac_exeext
8015 < if { (ac_try="$ac_link"
8016 < case "(($ac_try" in
8017 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 <  *) ac_try_echo=$ac_try;;
8019 < esac
8020 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 <  (eval "$ac_link") 2>conftest.er1
8022 <  ac_status=$?
8023 <  grep -v '^ *+' conftest.er1 >conftest.err
8024 <  rm -f conftest.er1
8025 <  cat conftest.err >&5
8026 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 <  (exit $ac_status); } && {
8028 <         test -z "$ac_c_werror_flag" ||
8029 <         test ! -s conftest.err
8030 <       } && test -s conftest$ac_exeext &&
8031 <       $as_test_x conftest$ac_exeext; then
8032 <  ac_cv_lib_qhull_qh_qhull=yes
8033 < else
8034 <  echo "$as_me: failed program was:" >&5
8035 < sed 's/^/| /' conftest.$ac_ext >&5
8036 <
8037 <        ac_cv_lib_qhull_qh_qhull=no
8038 < fi
8039 <
8040 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041 <      conftest$ac_exeext conftest.$ac_ext
8042 < LIBS=$ac_check_lib_save_LIBS
8043 < fi
8044 < { echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
8045 < echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; }
8046 < if test $ac_cv_lib_qhull_qh_qhull = yes; then
8047 <  qhull_cv_libqhull=yes
8048 < else
8049 <  qhull_cv_libqhull=no
8050 < fi
8051 <
8761 >        QHULL_OLD_LDFLAGS=$LDFLAGS
8762 >        QHULL_OLD_CFLAGS=$CFLAGS
8763 >        QHULL_OLD_CPPFLAGS=$CPPFLAGS
8764 >        LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
8765 >        CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
8766 >        CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
8767          if test "${ac_cv_header_qhull_qhull_h+set}" = set; then
8768    { echo "$as_me:$LINENO: checking for qhull/qhull.h" >&5
8769   echo $ECHO_N "checking for qhull/qhull.h... $ECHO_C" >&6; }
# Line 8186 | Line 8901 | fi
8901   fi
8902  
8903  
8904 +        { echo "$as_me:$LINENO: checking for qh_qhull in -lqhull" >&5
8905 + echo $ECHO_N "checking for qh_qhull in -lqhull... $ECHO_C" >&6; }
8906 + if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then
8907 +  echo $ECHO_N "(cached) $ECHO_C" >&6
8908 + else
8909 +  ac_check_lib_save_LIBS=$LIBS
8910 + LIBS="-lqhull  $LIBS"
8911 + cat >conftest.$ac_ext <<_ACEOF
8912 + /* confdefs.h.  */
8913 + _ACEOF
8914 + cat confdefs.h >>conftest.$ac_ext
8915 + cat >>conftest.$ac_ext <<_ACEOF
8916 + /* end confdefs.h.  */
8917 +
8918 + /* Override any GCC internal prototype to avoid an error.
8919 +   Use char because int might match the return type of a GCC
8920 +   builtin and then its argument prototype would still apply.  */
8921 + #ifdef __cplusplus
8922 + extern "C"
8923 + #endif
8924 + char qh_qhull ();
8925 + #ifdef FC_DUMMY_MAIN
8926 + #ifndef FC_DUMMY_MAIN_EQ_F77
8927 + #  ifdef __cplusplus
8928 +     extern "C"
8929 + #  endif
8930 +   int FC_DUMMY_MAIN() { return 1; }
8931 + #endif
8932 + #endif
8933 + int
8934 + main ()
8935 + {
8936 + return qh_qhull ();
8937 +  ;
8938 +  return 0;
8939 + }
8940 + _ACEOF
8941 + rm -f conftest.$ac_objext conftest$ac_exeext
8942 + if { (ac_try="$ac_link"
8943 + case "(($ac_try" in
8944 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 +  *) ac_try_echo=$ac_try;;
8946 + esac
8947 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 +  (eval "$ac_link") 2>conftest.er1
8949 +  ac_status=$?
8950 +  grep -v '^ *+' conftest.er1 >conftest.err
8951 +  rm -f conftest.er1
8952 +  cat conftest.err >&5
8953 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 +  (exit $ac_status); } && {
8955 +         test -z "$ac_c_werror_flag" ||
8956 +         test ! -s conftest.err
8957 +       } && test -s conftest$ac_exeext &&
8958 +       $as_test_x conftest$ac_exeext; then
8959 +  ac_cv_lib_qhull_qh_qhull=yes
8960 + else
8961 +  echo "$as_me: failed program was:" >&5
8962 + sed 's/^/| /' conftest.$ac_ext >&5
8963 +
8964 +        ac_cv_lib_qhull_qh_qhull=no
8965 + fi
8966 +
8967 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968 +      conftest$ac_exeext conftest.$ac_ext
8969 + LIBS=$ac_check_lib_save_LIBS
8970 + fi
8971 + { echo "$as_me:$LINENO: result: $ac_cv_lib_qhull_qh_qhull" >&5
8972 + echo "${ECHO_T}$ac_cv_lib_qhull_qh_qhull" >&6; }
8973 + if test $ac_cv_lib_qhull_qh_qhull = yes; then
8974 +  qhull_cv_libqhull=yes
8975 + else
8976 +  qhull_cv_libqhull=no
8977 + fi
8978 +
8979 +        LDFLAGS="$QHULL_OLD_LDFLAGS"
8980 +        CFLAGS="$QHULL_OLD_CFLAGS"
8981 +        CPPFLAGS="$QHULL_OLD_CPPFLAGS"
8982          ac_ext=c
8983   ac_cpp='$CPP $CPPFLAGS'
8984   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8215 | Line 9008 | echo $ECHO_N "checking qhull in ${QHULL_HOME}... $ECHO
9008                  QHULL_LIB_DIR=
9009                  QHULL=
9010                  USE_QHULL=no
8218                LDFLAGS="$QHULL_OLD_LDFLAGS"
8219                CFLAGS="$QHULL_OLD_CFLAGS"
9011                  { echo "$as_me:$LINENO: result: failed" >&5
9012   echo "${ECHO_T}failed" >&6; }
9013                  echo ""
# Line 8810 | Line 9601 | OBConversion Conv(&cin, &cout);
9601   OBConversion Conv(&cin, &cout);
9602  
9603  
8813  ;
8814  return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8819 case "(($ac_try" in
8820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821  *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824  (eval "$ac_link") 2>conftest.er1
8825  ac_status=$?
8826  grep -v '^ *+' conftest.er1 >conftest.err
8827  rm -f conftest.er1
8828  cat conftest.err >&5
8829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830  (exit $ac_status); } && {
8831         test -z "$ac_cxx_werror_flag" ||
8832         test ! -s conftest.err
8833       } && test -s conftest$ac_exeext &&
8834       $as_test_x conftest$ac_exeext; then
8835
8836                openbabel_lib_found="yes"
8837                { echo "$as_me:$LINENO: result: found" >&5
8838 echo "${ECHO_T}found" >&6; }
8839
8840 else
8841  echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844
8845                openbabel_lib_found="no"
8846                { echo "$as_me:$LINENO: result: not found" >&5
8847 echo "${ECHO_T}not found" >&6; }
8848
8849
8850 fi
8851
8852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8853      conftest$ac_exeext conftest.$ac_ext
8854        ac_ext=c
8855 ac_cpp='$CPP $CPPFLAGS'
8856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859
8860        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
8861        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
8862
8863        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
8864                USE_OPENBABEL=yes
8865                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
8866                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
8867                OPENBABEL_LIB="-lopenbabel"
8868        else
8869                { echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5
8870 echo $ECHO_N "checking openbabel in ${OPENBABEL_HOME}... $ECHO_C" >&6; }
8871                OPENBABEL_INC_DIR=
8872                OPENBABEL_LIB_DIR=
8873                OPENBABEL_LIB=
8874                USE_OPENBABEL=no
8875                { echo "$as_me:$LINENO: result: failed" >&5
8876 echo "${ECHO_T}failed" >&6; }
8877                echo ""
8878                echo "*********************************************************"
8879                echo "* WARNING: Could not find a working openbabel-2.x       *"
8880                echo "* installation If you need OOPSE to be able to convert  *"
8881                echo "* xyz or pdb files you need to specify a valid          *"
8882                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
8883                echo "*                                                       *"
8884                echo "* OOPSE will still work without openbabel installed.    *"
8885                echo "*********************************************************"
8886                echo ""
8887        fi
8888
8889
8890
8891
8892 fi
8893 fi
8894
8895
8896 # Checks for header files.
8897 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8898 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8899 if test "${ac_cv_header_stdc+set}" = set; then
8900  echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902  cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 #include <stdlib.h>
8909 #include <stdarg.h>
8910 #include <string.h>
8911 #include <float.h>
8912
8913 #ifdef FC_DUMMY_MAIN
8914 #ifndef FC_DUMMY_MAIN_EQ_F77
8915 #  ifdef __cplusplus
8916     extern "C"
8917 #  endif
8918   int FC_DUMMY_MAIN() { return 1; }
8919 #endif
8920 #endif
8921 int
8922 main ()
8923 {
8924
8925  ;
8926  return 0;
8927 }
8928 _ACEOF
8929 rm -f conftest.$ac_objext
8930 if { (ac_try="$ac_compile"
8931 case "(($ac_try" in
8932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933  *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936  (eval "$ac_compile") 2>conftest.er1
8937  ac_status=$?
8938  grep -v '^ *+' conftest.er1 >conftest.err
8939  rm -f conftest.er1
8940  cat conftest.err >&5
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); } && {
8943         test -z "$ac_c_werror_flag" ||
8944         test ! -s conftest.err
8945       } && test -s conftest.$ac_objext; then
8946  ac_cv_header_stdc=yes
8947 else
8948  echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951        ac_cv_header_stdc=no
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955
8956 if test $ac_cv_header_stdc = yes; then
8957  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8958  cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h.  */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h.  */
8964 #include <string.h>
8965
8966 _ACEOF
8967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8968  $EGREP "memchr" >/dev/null 2>&1; then
8969  :
8970 else
8971  ac_cv_header_stdc=no
8972 fi
8973 rm -f conftest*
8974
8975 fi
8976
8977 if test $ac_cv_header_stdc = yes; then
8978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8979  cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985 #include <stdlib.h>
8986
8987 _ACEOF
8988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8989  $EGREP "free" >/dev/null 2>&1; then
8990  :
8991 else
8992  ac_cv_header_stdc=no
8993 fi
8994 rm -f conftest*
8995
8996 fi
8997
8998 if test $ac_cv_header_stdc = yes; then
8999  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9000  if test "$cross_compiling" = yes; then
9001  :
9002 else
9003  cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h.  */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h.  */
9009 #include <ctype.h>
9010 #include <stdlib.h>
9011 #if ((' ' & 0x0FF) == 0x020)
9012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9014 #else
9015 # define ISLOWER(c) \
9016                   (('a' <= (c) && (c) <= 'i') \
9017                     || ('j' <= (c) && (c) <= 'r') \
9018                     || ('s' <= (c) && (c) <= 'z'))
9019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9020 #endif
9021
9022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9023 int
9024 main ()
9025 {
9026  int i;
9027  for (i = 0; i < 256; i++)
9028    if (XOR (islower (i), ISLOWER (i))
9029        || toupper (i) != TOUPPER (i))
9030      return 2;
9031  return 0;
9032 }
9033 _ACEOF
9034 rm -f conftest$ac_exeext
9035 if { (ac_try="$ac_link"
9036 case "(($ac_try" in
9037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038  *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041  (eval "$ac_link") 2>&5
9042  ac_status=$?
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9045  { (case "(($ac_try" in
9046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047  *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050  (eval "$ac_try") 2>&5
9051  ac_status=$?
9052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053  (exit $ac_status); }; }; then
9054  :
9055 else
9056  echo "$as_me: program exited with status $ac_status" >&5
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060 ( exit $ac_status )
9061 ac_cv_header_stdc=no
9062 fi
9063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9064 fi
9065
9066
9067 fi
9068 fi
9069 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9070 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9071 if test $ac_cv_header_stdc = yes; then
9072
9073 cat >>confdefs.h <<\_ACEOF
9074 #define STDC_HEADERS 1
9075 _ACEOF
9076
9077 fi
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104 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
9105 do
9106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9108  { echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111  echo $ECHO_N "(cached) $ECHO_C" >&6
9112 fi
9113 ac_res=`eval echo '${'$as_ac_Header'}'`
9114               { echo "$as_me:$LINENO: result: $ac_res" >&5
9115 echo "${ECHO_T}$ac_res" >&6; }
9116 else
9117  # Is the header compilable?
9118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126 $ac_includes_default
9127 #include <$ac_header>
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133  *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136  (eval "$ac_compile") 2>conftest.er1
9137  ac_status=$?
9138  grep -v '^ *+' conftest.er1 >conftest.err
9139  rm -f conftest.er1
9140  cat conftest.err >&5
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); } && {
9143         test -z "$ac_c_werror_flag" ||
9144         test ! -s conftest.err
9145       } && test -s conftest.$ac_objext; then
9146  ac_header_compiler=yes
9147 else
9148  echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151        ac_header_compiler=no
9152 fi
9153
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9156 echo "${ECHO_T}$ac_header_compiler" >&6; }
9157
9158 # Is the header present?
9159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h.  */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h.  */
9167 #include <$ac_header>
9168 _ACEOF
9169 if { (ac_try="$ac_cpp conftest.$ac_ext"
9170 case "(($ac_try" in
9171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172  *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9176  ac_status=$?
9177  grep -v '^ *+' conftest.er1 >conftest.err
9178  rm -f conftest.er1
9179  cat conftest.err >&5
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); } >/dev/null && {
9182         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9183         test ! -s conftest.err
9184       }; then
9185  ac_header_preproc=yes
9186 else
9187  echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190  ac_header_preproc=no
9191 fi
9192
9193 rm -f conftest.err conftest.$ac_ext
9194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9195 echo "${ECHO_T}$ac_header_preproc" >&6; }
9196
9197 # So?  What about this header?
9198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9199  yes:no: )
9200    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9204    ac_header_preproc=yes
9205    ;;
9206  no:yes:* )
9207    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9209    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9211    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9213    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9215    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9217    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9219    ( cat <<\_ASBOX
9220 ## ------------------------------ ##
9221 ## Report this to gezelter@nd.edu ##
9222 ## ------------------------------ ##
9223 _ASBOX
9224     ) | sed "s/^/$as_me: WARNING:     /" >&2
9225    ;;
9226 esac
9227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9230  echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232  eval "$as_ac_Header=\$ac_header_preproc"
9233 fi
9234 ac_res=`eval echo '${'$as_ac_Header'}'`
9235               { echo "$as_me:$LINENO: result: $ac_res" >&5
9236 echo "${ECHO_T}$ac_res" >&6; }
9237
9238 fi
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240  cat >>confdefs.h <<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242 _ACEOF
9243
9244 fi
9245
9246 done
9247
9248
9249 # Checks for typedefs, structures, and compiler characteristics.
9250 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9251 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
9252 if test "${ac_cv_header_stdbool_h+set}" = set; then
9253  echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255  cat >conftest.$ac_ext <<_ACEOF
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261
9262 #include <stdbool.h>
9263 #ifndef bool
9264 "error: bool is not defined"
9265 #endif
9266 #ifndef false
9267 "error: false is not defined"
9268 #endif
9269 #if false
9270 "error: false is not 0"
9271 #endif
9272 #ifndef true
9273 "error: true is not defined"
9274 #endif
9275 #if true != 1
9276 "error: true is not 1"
9277 #endif
9278 #ifndef __bool_true_false_are_defined
9279 "error: __bool_true_false_are_defined is not defined"
9280 #endif
9281
9282        struct s { _Bool s: 1; _Bool t; } s;
9283
9284        char a[true == 1 ? 1 : -1];
9285        char b[false == 0 ? 1 : -1];
9286        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9287        char d[(bool) 0.5 == true ? 1 : -1];
9288        bool e = &s;
9289        char f[(_Bool) 0.0 == false ? 1 : -1];
9290        char g[true];
9291        char h[sizeof (_Bool)];
9292        char i[sizeof s.t];
9293        enum { j = false, k = true, l = false * true, m = true * 256 };
9294        _Bool n[m];
9295        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9296        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9297 #       if defined __xlc__ || defined __GNUC__
9298         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9299            reported by James Lemley on 2005-10-05; see
9300            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9301            This test is not quite right, since xlc is allowed to
9302            reject this program, as the initializer for xlcbug is
9303            not one of the forms that C requires support for.
9304            However, doing the test right would require a runtime
9305            test, and that would make cross-compilation harder.
9306            Let us hope that IBM fixes the xlc bug, and also adds
9307            support for this kind of constant expression.  In the
9308            meantime, this test will reject xlc, which is OK, since
9309            our stdbool.h substitute should suffice.  We also test
9310            this with GCC, where it should work, to detect more
9311            quickly whether someone messes up the test in the
9312            future.  */
9313         char digs[] = "0123456789";
9314         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9315 #       endif
9316        /* Catch a bug in an HP-UX C compiler.  See
9317           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9318           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9319         */
9320        _Bool q = true;
9321        _Bool *pq = &q;
9322
9323 #ifdef FC_DUMMY_MAIN
9324 #ifndef FC_DUMMY_MAIN_EQ_F77
9325 #  ifdef __cplusplus
9326     extern "C"
9327 #  endif
9328   int FC_DUMMY_MAIN() { return 1; }
9329 #endif
9330 #endif
9331 int
9332 main ()
9333 {
9334
9335        *pq |= q;
9336        *pq |= ! q;
9337        /* Refer to every declared value, to avoid compiler optimizations.  */
9338        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9339                + !m + !n + !o + !p + !q + !pq);
9340
9341  ;
9342  return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349  *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352  (eval "$ac_compile") 2>conftest.er1
9353  ac_status=$?
9354  grep -v '^ *+' conftest.er1 >conftest.err
9355  rm -f conftest.er1
9356  cat conftest.err >&5
9357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358  (exit $ac_status); } && {
9359         test -z "$ac_c_werror_flag" ||
9360         test ! -s conftest.err
9361       } && test -s conftest.$ac_objext; then
9362  ac_cv_header_stdbool_h=yes
9363 else
9364  echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367        ac_cv_header_stdbool_h=no
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9373 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
9374 { echo "$as_me:$LINENO: checking for _Bool" >&5
9375 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
9376 if test "${ac_cv_type__Bool+set}" = set; then
9377  echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379  cat >conftest.$ac_ext <<_ACEOF
9380 /* confdefs.h.  */
9381 _ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h.  */
9385 $ac_includes_default
9386 typedef _Bool ac__type_new_;
9387 #ifdef FC_DUMMY_MAIN
9388 #ifndef FC_DUMMY_MAIN_EQ_F77
9389 #  ifdef __cplusplus
9390     extern "C"
9391 #  endif
9392   int FC_DUMMY_MAIN() { return 1; }
9393 #endif
9394 #endif
9395 int
9396 main ()
9397 {
9398 if ((ac__type_new_ *) 0)
9399  return 0;
9400 if (sizeof (ac__type_new_))
9401  return 0;
9402  ;
9403  return 0;
9404 }
9405 _ACEOF
9406 rm -f conftest.$ac_objext
9407 if { (ac_try="$ac_compile"
9408 case "(($ac_try" in
9409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410  *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413  (eval "$ac_compile") 2>conftest.er1
9414  ac_status=$?
9415  grep -v '^ *+' conftest.er1 >conftest.err
9416  rm -f conftest.er1
9417  cat conftest.err >&5
9418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419  (exit $ac_status); } && {
9420         test -z "$ac_c_werror_flag" ||
9421         test ! -s conftest.err
9422       } && test -s conftest.$ac_objext; then
9423  ac_cv_type__Bool=yes
9424 else
9425  echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428        ac_cv_type__Bool=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 fi
9433 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9434 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
9435 if test $ac_cv_type__Bool = yes; then
9436
9437 cat >>confdefs.h <<_ACEOF
9438 #define HAVE__BOOL 1
9439 _ACEOF
9440
9441
9442 fi
9443
9444 if test $ac_cv_header_stdbool_h = yes; then
9445
9446 cat >>confdefs.h <<\_ACEOF
9447 #define HAVE_STDBOOL_H 1
9448 _ACEOF
9449
9450 fi
9451
9452 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9453 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9454 if test "${ac_cv_c_const+set}" = set; then
9455  echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457  cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463
9464 #ifdef FC_DUMMY_MAIN
9465 #ifndef FC_DUMMY_MAIN_EQ_F77
9466 #  ifdef __cplusplus
9467     extern "C"
9468 #  endif
9469   int FC_DUMMY_MAIN() { return 1; }
9470 #endif
9471 #endif
9472 int
9473 main ()
9474 {
9475 /* FIXME: Include the comments suggested by Paul. */
9476 #ifndef __cplusplus
9477  /* Ultrix mips cc rejects this.  */
9478  typedef int charset[2];
9479  const charset cs;
9480  /* SunOS 4.1.1 cc rejects this.  */
9481  char const *const *pcpcc;
9482  char **ppc;
9483  /* NEC SVR4.0.2 mips cc rejects this.  */
9484  struct point {int x, y;};
9485  static struct point const zero = {0,0};
9486  /* AIX XL C 1.02.0.0 rejects this.
9487     It does not let you subtract one const X* pointer from another in
9488     an arm of an if-expression whose if-part is not a constant
9489     expression */
9490  const char *g = "string";
9491  pcpcc = &g + (g ? g-g : 0);
9492  /* HPUX 7.0 cc rejects these. */
9493  ++pcpcc;
9494  ppc = (char**) pcpcc;
9495  pcpcc = (char const *const *) ppc;
9496  { /* SCO 3.2v4 cc rejects this.  */
9497    char *t;
9498    char const *s = 0 ? (char *) 0 : (char const *) 0;
9499
9500    *t++ = 0;
9501    if (s) return 0;
9502  }
9503  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9504    int x[] = {25, 17};
9505    const int *foo = &x[0];
9506    ++foo;
9507  }
9508  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9509    typedef const int *iptr;
9510    iptr p = 0;
9511    ++p;
9512  }
9513  { /* AIX XL C 1.02.0.0 rejects this saying
9514       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9515    struct s { int j; const int *ap[3]; };
9516    struct s *b; b->j = 5;
9517  }
9518  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9519    const int foo = 10;
9520    if (!foo) return 0;
9521  }
9522  return !cs[0] && !zero.x;
9523 #endif
9524
9525  ;
9526  return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9531 case "(($ac_try" in
9532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533  *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536  (eval "$ac_compile") 2>conftest.er1
9537  ac_status=$?
9538  grep -v '^ *+' conftest.er1 >conftest.err
9539  rm -f conftest.er1
9540  cat conftest.err >&5
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); } && {
9543         test -z "$ac_c_werror_flag" ||
9544         test ! -s conftest.err
9545       } && test -s conftest.$ac_objext; then
9546  ac_cv_c_const=yes
9547 else
9548  echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551        ac_cv_c_const=no
9552 fi
9553
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 fi
9556 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9557 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9558 if test $ac_cv_c_const = no; then
9559
9560 cat >>confdefs.h <<\_ACEOF
9561 #define const
9562 _ACEOF
9563
9564 fi
9565
9566 { echo "$as_me:$LINENO: checking for inline" >&5
9567 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
9568 if test "${ac_cv_c_inline+set}" = set; then
9569  echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571  ac_cv_c_inline=no
9572 for ac_kw in inline __inline__ __inline; do
9573  cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 #ifndef __cplusplus
9580 typedef int foo_t;
9581 static $ac_kw foo_t static_foo () {return 0; }
9582 $ac_kw foo_t foo () {return 0; }
9583 #endif
9584
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (ac_try="$ac_compile"
9588 case "(($ac_try" in
9589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590  *) ac_try_echo=$ac_try;;
9591 esac
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593  (eval "$ac_compile") 2>conftest.er1
9594  ac_status=$?
9595  grep -v '^ *+' conftest.er1 >conftest.err
9596  rm -f conftest.er1
9597  cat conftest.err >&5
9598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599  (exit $ac_status); } && {
9600         test -z "$ac_c_werror_flag" ||
9601         test ! -s conftest.err
9602       } && test -s conftest.$ac_objext; then
9603  ac_cv_c_inline=$ac_kw
9604 else
9605  echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612  test "$ac_cv_c_inline" != no && break
9613 done
9614
9615 fi
9616 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9617 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
9618
9619
9620 case $ac_cv_c_inline in
9621  inline | yes) ;;
9622  *)
9623    case $ac_cv_c_inline in
9624      no) ac_val=;;
9625      *) ac_val=$ac_cv_c_inline;;
9626    esac
9627    cat >>confdefs.h <<_ACEOF
9628 #ifndef __cplusplus
9629 #define inline $ac_val
9630 #endif
9631 _ACEOF
9632    ;;
9633 esac
9634
9635 { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9636 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
9637 if test "${ac_cv_c_restrict+set}" = set; then
9638  echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640  ac_cv_c_restrict=no
9641   # Try the official restrict keyword, then gcc's __restrict, and
9642   # the less common variants.
9643   for ac_kw in restrict __restrict __restrict__ _Restrict; do
9644     cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650 typedef int * int_ptr;
9651        int foo (int_ptr $ac_kw ip) {
9652        return ip[0];
9653       }
9654 #ifdef FC_DUMMY_MAIN
9655 #ifndef FC_DUMMY_MAIN_EQ_F77
9656 #  ifdef __cplusplus
9657     extern "C"
9658 #  endif
9659   int FC_DUMMY_MAIN() { return 1; }
9660 #endif
9661 #endif
9662 int
9663 main ()
9664 {
9665 int s[1];
9666        int * $ac_kw t = s;
9667        t[0] = 0;
9668        return foo(t)
9669  ;
9670  return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9675 case "(($ac_try" in
9676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677  *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680  (eval "$ac_compile") 2>conftest.er1
9681  ac_status=$?
9682  grep -v '^ *+' conftest.er1 >conftest.err
9683  rm -f conftest.er1
9684  cat conftest.err >&5
9685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686  (exit $ac_status); } && {
9687         test -z "$ac_c_werror_flag" ||
9688         test ! -s conftest.err
9689       } && test -s conftest.$ac_objext; then
9690  ac_cv_c_restrict=$ac_kw
9691 else
9692  echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695
9696 fi
9697
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699     test "$ac_cv_c_restrict" != no && break
9700   done
9701
9702 fi
9703 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9704 echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
9705 case $ac_cv_c_restrict in
9706   restrict) ;;
9707   no)
9708 cat >>confdefs.h <<\_ACEOF
9709 #define restrict
9710 _ACEOF
9711 ;;
9712   *)  cat >>confdefs.h <<_ACEOF
9713 #define restrict $ac_cv_c_restrict
9714 _ACEOF
9715 ;;
9716 esac
9717
9718 { echo "$as_me:$LINENO: checking for size_t" >&5
9719 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9720 if test "${ac_cv_type_size_t+set}" = set; then
9721  echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723  cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9729 $ac_includes_default
9730 typedef size_t ac__type_new_;
9731 #ifdef FC_DUMMY_MAIN
9732 #ifndef FC_DUMMY_MAIN_EQ_F77
9733 #  ifdef __cplusplus
9734     extern "C"
9735 #  endif
9736   int FC_DUMMY_MAIN() { return 1; }
9737 #endif
9738 #endif
9739 int
9740 main ()
9741 {
9742 if ((ac__type_new_ *) 0)
9743  return 0;
9744 if (sizeof (ac__type_new_))
9745  return 0;
9746  ;
9747  return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (ac_try="$ac_compile"
9752 case "(($ac_try" in
9753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754  *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757  (eval "$ac_compile") 2>conftest.er1
9758  ac_status=$?
9759  grep -v '^ *+' conftest.er1 >conftest.err
9760  rm -f conftest.er1
9761  cat conftest.err >&5
9762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763  (exit $ac_status); } && {
9764         test -z "$ac_c_werror_flag" ||
9765         test ! -s conftest.err
9766       } && test -s conftest.$ac_objext; then
9767  ac_cv_type_size_t=yes
9768 else
9769  echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772        ac_cv_type_size_t=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9778 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9779 if test $ac_cv_type_size_t = yes; then
9780  :
9781 else
9782
9783 cat >>confdefs.h <<_ACEOF
9784 #define size_t unsigned int
9785 _ACEOF
9786
9787 fi
9788
9789 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9790 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9791 if test "${ac_cv_header_time+set}" = set; then
9792  echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794  cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 #include <sys/types.h>
9801 #include <sys/time.h>
9802 #include <time.h>
9803
9804 #ifdef FC_DUMMY_MAIN
9805 #ifndef FC_DUMMY_MAIN_EQ_F77
9806 #  ifdef __cplusplus
9807     extern "C"
9808 #  endif
9809   int FC_DUMMY_MAIN() { return 1; }
9810 #endif
9811 #endif
9812 int
9813 main ()
9814 {
9815 if ((struct tm *) 0)
9816 return 0;
9817  ;
9818  return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (ac_try="$ac_compile"
9823 case "(($ac_try" in
9824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825  *) ac_try_echo=$ac_try;;
9826 esac
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828  (eval "$ac_compile") 2>conftest.er1
9829  ac_status=$?
9830  grep -v '^ *+' conftest.er1 >conftest.err
9831  rm -f conftest.er1
9832  cat conftest.err >&5
9833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834  (exit $ac_status); } && {
9835         test -z "$ac_c_werror_flag" ||
9836         test ! -s conftest.err
9837       } && test -s conftest.$ac_objext; then
9838  ac_cv_header_time=yes
9839 else
9840  echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843        ac_cv_header_time=no
9844 fi
9845
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 fi
9848 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9849 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9850 if test $ac_cv_header_time = yes; then
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define TIME_WITH_SYS_TIME 1
9854 _ACEOF
9855
9856 fi
9857
9858 { echo "$as_me:$LINENO: checking for clock_t" >&5
9859 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
9860 if test "${ac_cv_type_clock_t+set}" = set; then
9861  echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863  cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 $ac_includes_default
9870 typedef clock_t ac__type_new_;
9871 #ifdef FC_DUMMY_MAIN
9872 #ifndef FC_DUMMY_MAIN_EQ_F77
9873 #  ifdef __cplusplus
9874     extern "C"
9875 #  endif
9876   int FC_DUMMY_MAIN() { return 1; }
9877 #endif
9878 #endif
9879 int
9880 main ()
9881 {
9882 if ((ac__type_new_ *) 0)
9883  return 0;
9884 if (sizeof (ac__type_new_))
9885  return 0;
9886  ;
9887  return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext
9891 if { (ac_try="$ac_compile"
9892 case "(($ac_try" in
9893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894  *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897  (eval "$ac_compile") 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } && {
9904         test -z "$ac_c_werror_flag" ||
9905         test ! -s conftest.err
9906       } && test -s conftest.$ac_objext; then
9907  ac_cv_type_clock_t=yes
9908 else
9909  echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912        ac_cv_type_clock_t=no
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916 fi
9917 { echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
9918 echo "${ECHO_T}$ac_cv_type_clock_t" >&6; }
9919 if test $ac_cv_type_clock_t = yes; then
9920
9921 cat >>confdefs.h <<_ACEOF
9922 #define HAVE_CLOCK_T 1
9923 _ACEOF
9924
9925
9926 fi
9927
9928 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9930 if test "${ac_cv_c_const+set}" = set; then
9931  echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933  cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h.  */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h.  */
9939
9940 #ifdef FC_DUMMY_MAIN
9941 #ifndef FC_DUMMY_MAIN_EQ_F77
9942 #  ifdef __cplusplus
9943     extern "C"
9944 #  endif
9945   int FC_DUMMY_MAIN() { return 1; }
9946 #endif
9947 #endif
9948 int
9949 main ()
9950 {
9951 /* FIXME: Include the comments suggested by Paul. */
9952 #ifndef __cplusplus
9953  /* Ultrix mips cc rejects this.  */
9954  typedef int charset[2];
9955  const charset cs;
9956  /* SunOS 4.1.1 cc rejects this.  */
9957  char const *const *pcpcc;
9958  char **ppc;
9959  /* NEC SVR4.0.2 mips cc rejects this.  */
9960  struct point {int x, y;};
9961  static struct point const zero = {0,0};
9962  /* AIX XL C 1.02.0.0 rejects this.
9963     It does not let you subtract one const X* pointer from another in
9964     an arm of an if-expression whose if-part is not a constant
9965     expression */
9966  const char *g = "string";
9967  pcpcc = &g + (g ? g-g : 0);
9968  /* HPUX 7.0 cc rejects these. */
9969  ++pcpcc;
9970  ppc = (char**) pcpcc;
9971  pcpcc = (char const *const *) ppc;
9972  { /* SCO 3.2v4 cc rejects this.  */
9973    char *t;
9974    char const *s = 0 ? (char *) 0 : (char const *) 0;
9975
9976    *t++ = 0;
9977    if (s) return 0;
9978  }
9979  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9980    int x[] = {25, 17};
9981    const int *foo = &x[0];
9982    ++foo;
9983  }
9984  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9985    typedef const int *iptr;
9986    iptr p = 0;
9987    ++p;
9988  }
9989  { /* AIX XL C 1.02.0.0 rejects this saying
9990       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9991    struct s { int j; const int *ap[3]; };
9992    struct s *b; b->j = 5;
9993  }
9994  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9995    const int foo = 10;
9996    if (!foo) return 0;
9997  }
9998  return !cs[0] && !zero.x;
9999 #endif
10000
10001  ;
10002  return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (ac_try="$ac_compile"
10007 case "(($ac_try" in
10008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009  *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012  (eval "$ac_compile") 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } && {
10019         test -z "$ac_c_werror_flag" ||
10020         test ! -s conftest.err
10021       } && test -s conftest.$ac_objext; then
10022  ac_cv_c_const=yes
10023 else
10024  echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027        ac_cv_c_const=no
10028 fi
10029
10030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031 fi
10032 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10033 echo "${ECHO_T}$ac_cv_c_const" >&6; }
10034 if test $ac_cv_c_const = no; then
10035
10036 cat >>confdefs.h <<\_ACEOF
10037 #define const
10038 _ACEOF
10039
10040 fi
10041
10042 { echo "$as_me:$LINENO: checking for inline" >&5
10043 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10044 if test "${ac_cv_c_inline+set}" = set; then
10045  echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047  ac_cv_c_inline=no
10048 for ac_kw in inline __inline__ __inline; do
10049  cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055 #ifndef __cplusplus
10056 typedef int foo_t;
10057 static $ac_kw foo_t static_foo () {return 0; }
10058 $ac_kw foo_t foo () {return 0; }
10059 #endif
10060
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066  *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069  (eval "$ac_compile") 2>conftest.er1
10070  ac_status=$?
10071  grep -v '^ *+' conftest.er1 >conftest.err
10072  rm -f conftest.er1
10073  cat conftest.err >&5
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); } && {
10076         test -z "$ac_c_werror_flag" ||
10077         test ! -s conftest.err
10078       } && test -s conftest.$ac_objext; then
10079  ac_cv_c_inline=$ac_kw
10080 else
10081  echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084
10085 fi
10086
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088  test "$ac_cv_c_inline" != no && break
10089 done
10090
10091 fi
10092 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10093 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10094
10095
10096 case $ac_cv_c_inline in
10097  inline | yes) ;;
10098  *)
10099    case $ac_cv_c_inline in
10100      no) ac_val=;;
10101      *) ac_val=$ac_cv_c_inline;;
10102    esac
10103    cat >>confdefs.h <<_ACEOF
10104 #ifndef __cplusplus
10105 #define inline $ac_val
10106 #endif
10107 _ACEOF
10108    ;;
10109 esac
10110
10111
10112 # Checks for library functions.
10113
10114 for ac_header in stdlib.h
10115 do
10116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10118  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10121  echo $ECHO_N "(cached) $ECHO_C" >&6
10122 fi
10123 ac_res=`eval echo '${'$as_ac_Header'}'`
10124               { echo "$as_me:$LINENO: result: $ac_res" >&5
10125 echo "${ECHO_T}$ac_res" >&6; }
10126 else
10127  # Is the header compilable?
10128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 $ac_includes_default
10137 #include <$ac_header>
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (ac_try="$ac_compile"
10141 case "(($ac_try" in
10142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143  *) ac_try_echo=$ac_try;;
10144 esac
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146  (eval "$ac_compile") 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } && {
10153         test -z "$ac_c_werror_flag" ||
10154         test ! -s conftest.err
10155       } && test -s conftest.$ac_objext; then
10156  ac_header_compiler=yes
10157 else
10158  echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161        ac_header_compiler=no
10162 fi
10163
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10166 echo "${ECHO_T}$ac_header_compiler" >&6; }
10167
10168 # Is the header present?
10169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 #include <$ac_header>
10178 _ACEOF
10179 if { (ac_try="$ac_cpp conftest.$ac_ext"
10180 case "(($ac_try" in
10181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182  *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10186  ac_status=$?
10187  grep -v '^ *+' conftest.er1 >conftest.err
10188  rm -f conftest.er1
10189  cat conftest.err >&5
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); } >/dev/null && {
10192         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10193         test ! -s conftest.err
10194       }; then
10195  ac_header_preproc=yes
10196 else
10197  echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10199
10200  ac_header_preproc=no
10201 fi
10202
10203 rm -f conftest.err conftest.$ac_ext
10204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10205 echo "${ECHO_T}$ac_header_preproc" >&6; }
10206
10207 # So?  What about this header?
10208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10209  yes:no: )
10210    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10212    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10214    ac_header_preproc=yes
10215    ;;
10216  no:yes:* )
10217    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10219    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10221    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10223    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10225    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10227    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10229    ( cat <<\_ASBOX
10230 ## ------------------------------ ##
10231 ## Report this to gezelter@nd.edu ##
10232 ## ------------------------------ ##
10233 _ASBOX
10234     ) | sed "s/^/$as_me: WARNING:     /" >&2
10235    ;;
10236 esac
10237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240  echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242  eval "$as_ac_Header=\$ac_header_preproc"
10243 fi
10244 ac_res=`eval echo '${'$as_ac_Header'}'`
10245               { echo "$as_me:$LINENO: result: $ac_res" >&5
10246 echo "${ECHO_T}$ac_res" >&6; }
10247
10248 fi
10249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10250  cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10252 _ACEOF
10253
10254 fi
10255
10256 done
10257
10258 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10259 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
10260 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10261  echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263  if test "$cross_compiling" = yes; then
10264  ac_cv_func_malloc_0_nonnull=no
10265 else
10266  cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10273 # include <stdlib.h>
10274 #else
10275 char *malloc ();
10276 #endif
10277
10278 #ifdef FC_DUMMY_MAIN
10279 #ifndef FC_DUMMY_MAIN_EQ_F77
10280 #  ifdef __cplusplus
10281     extern "C"
10282 #  endif
10283   int FC_DUMMY_MAIN() { return 1; }
10284 #endif
10285 #endif
10286 int
10287 main ()
10288 {
10289 return ! malloc (0);
10290  ;
10291  return 0;
10292 }
10293 _ACEOF
10294 rm -f conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298  *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301  (eval "$ac_link") 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10305  { (case "(($ac_try" in
10306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307  *) ac_try_echo=$ac_try;;
10308 esac
10309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10310  (eval "$ac_try") 2>&5
10311  ac_status=$?
10312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313  (exit $ac_status); }; }; then
10314  ac_cv_func_malloc_0_nonnull=yes
10315 else
10316  echo "$as_me: program exited with status $ac_status" >&5
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 ( exit $ac_status )
10321 ac_cv_func_malloc_0_nonnull=no
10322 fi
10323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10324 fi
10325
10326
10327 fi
10328 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10329 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
10330 if test $ac_cv_func_malloc_0_nonnull = yes; then
10331
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_MALLOC 1
10334 _ACEOF
10335
10336 else
10337  cat >>confdefs.h <<\_ACEOF
10338 #define HAVE_MALLOC 0
10339 _ACEOF
10340
10341   case " $LIBOBJS " in
10342  *" malloc.$ac_objext "* ) ;;
10343  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10344 ;;
10345 esac
10346
10347
10348 cat >>confdefs.h <<\_ACEOF
10349 #define malloc rpl_malloc
10350 _ACEOF
10351
10352 fi
10353
10354
10355
10356 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10357 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10358 if test "${ac_cv_func_memcmp_working+set}" = set; then
10359  echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361  if test "$cross_compiling" = yes; then
10362  ac_cv_func_memcmp_working=no
10363 else
10364  cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10370 $ac_includes_default
10371 #ifdef FC_DUMMY_MAIN
10372 #ifndef FC_DUMMY_MAIN_EQ_F77
10373 #  ifdef __cplusplus
10374     extern "C"
10375 #  endif
10376   int FC_DUMMY_MAIN() { return 1; }
10377 #endif
10378 #endif
10379 int
10380 main ()
10381 {
10382
10383  /* Some versions of memcmp are not 8-bit clean.  */
10384  char c0 = '\100', c1 = '\200', c2 = '\201';
10385  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10386    return 1;
10387
10388  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10389     or more and with at least one buffer not starting on a 4-byte boundary.
10390     William Lewis provided this test program.   */
10391  {
10392    char foo[21];
10393    char bar[21];
10394    int i;
10395    for (i = 0; i < 4; i++)
10396      {
10397        char *a = foo + i;
10398        char *b = bar + i;
10399        strcpy (a, "--------01111111");
10400        strcpy (b, "--------10000000");
10401        if (memcmp (a, b, 16) >= 0)
10402          return 1;
10403      }
10404    return 0;
10405  }
10406
10407  ;
10408  return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415  *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418  (eval "$ac_link") 2>&5
10419  ac_status=$?
10420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10422  { (case "(($ac_try" in
10423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424  *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427  (eval "$ac_try") 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); }; }; then
10431  ac_cv_func_memcmp_working=yes
10432 else
10433  echo "$as_me: program exited with status $ac_status" >&5
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ( exit $ac_status )
10438 ac_cv_func_memcmp_working=no
10439 fi
10440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10441 fi
10442
10443
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10446 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10447 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10448  *" memcmp.$ac_objext "* ) ;;
10449  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10450 ;;
10451 esac
10452
10453
10454
10455 for ac_header in stdlib.h
10456 do
10457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10459  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10462  echo $ECHO_N "(cached) $ECHO_C" >&6
10463 fi
10464 ac_res=`eval echo '${'$as_ac_Header'}'`
10465               { echo "$as_me:$LINENO: result: $ac_res" >&5
10466 echo "${ECHO_T}$ac_res" >&6; }
10467 else
10468  # Is the header compilable?
10469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477 $ac_includes_default
10478 #include <$ac_header>
10479 _ACEOF
10480 rm -f conftest.$ac_objext
10481 if { (ac_try="$ac_compile"
10482 case "(($ac_try" in
10483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484  *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487  (eval "$ac_compile") 2>conftest.er1
10488  ac_status=$?
10489  grep -v '^ *+' conftest.er1 >conftest.err
10490  rm -f conftest.er1
10491  cat conftest.err >&5
10492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493  (exit $ac_status); } && {
10494         test -z "$ac_c_werror_flag" ||
10495         test ! -s conftest.err
10496       } && test -s conftest.$ac_objext; then
10497  ac_header_compiler=yes
10498 else
10499  echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502        ac_header_compiler=no
10503 fi
10504
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10507 echo "${ECHO_T}$ac_header_compiler" >&6; }
10508
10509 # Is the header present?
10510 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h.  */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h.  */
10518 #include <$ac_header>
10519 _ACEOF
10520 if { (ac_try="$ac_cpp conftest.$ac_ext"
10521 case "(($ac_try" in
10522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523  *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10527  ac_status=$?
10528  grep -v '^ *+' conftest.er1 >conftest.err
10529  rm -f conftest.er1
10530  cat conftest.err >&5
10531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532  (exit $ac_status); } >/dev/null && {
10533         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10534         test ! -s conftest.err
10535       }; then
10536  ac_header_preproc=yes
10537 else
10538  echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541  ac_header_preproc=no
10542 fi
10543
10544 rm -f conftest.err conftest.$ac_ext
10545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10546 echo "${ECHO_T}$ac_header_preproc" >&6; }
10547
10548 # So?  What about this header?
10549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10550  yes:no: )
10551    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10553    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10555    ac_header_preproc=yes
10556    ;;
10557  no:yes:* )
10558    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10560    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10562    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10564    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10566    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10568    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10570    ( cat <<\_ASBOX
10571 ## ------------------------------ ##
10572 ## Report this to gezelter@nd.edu ##
10573 ## ------------------------------ ##
10574 _ASBOX
10575     ) | sed "s/^/$as_me: WARNING:     /" >&2
10576    ;;
10577 esac
10578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10581  echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583  eval "$as_ac_Header=\$ac_header_preproc"
10584 fi
10585 ac_res=`eval echo '${'$as_ac_Header'}'`
10586               { echo "$as_me:$LINENO: result: $ac_res" >&5
10587 echo "${ECHO_T}$ac_res" >&6; }
10588
10589 fi
10590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10591  cat >>confdefs.h <<_ACEOF
10592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10593 _ACEOF
10594
10595 fi
10596
10597 done
10598
10599 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10600 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
10601 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10602  echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604  if test "$cross_compiling" = yes; then
10605  ac_cv_func_realloc_0_nonnull=no
10606 else
10607  cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10614 # include <stdlib.h>
10615 #else
10616 char *realloc ();
10617 #endif
10618
10619 #ifdef FC_DUMMY_MAIN
10620 #ifndef FC_DUMMY_MAIN_EQ_F77
10621 #  ifdef __cplusplus
10622     extern "C"
10623 #  endif
10624   int FC_DUMMY_MAIN() { return 1; }
10625 #endif
10626 #endif
10627 int
10628 main ()
10629 {
10630 return ! realloc (0, 0);
10631  ;
10632  return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest$ac_exeext
10636 if { (ac_try="$ac_link"
10637 case "(($ac_try" in
10638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639  *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642  (eval "$ac_link") 2>&5
10643  ac_status=$?
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10646  { (case "(($ac_try" in
10647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648  *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651  (eval "$ac_try") 2>&5
10652  ac_status=$?
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); }; }; then
10655  ac_cv_func_realloc_0_nonnull=yes
10656 else
10657  echo "$as_me: program exited with status $ac_status" >&5
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ( exit $ac_status )
10662 ac_cv_func_realloc_0_nonnull=no
10663 fi
10664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10665 fi
10666
10667
10668 fi
10669 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10670 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
10671 if test $ac_cv_func_realloc_0_nonnull = yes; then
10672
10673 cat >>confdefs.h <<\_ACEOF
10674 #define HAVE_REALLOC 1
10675 _ACEOF
10676
10677 else
10678  cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_REALLOC 0
10680 _ACEOF
10681
10682   case " $LIBOBJS " in
10683  *" realloc.$ac_objext "* ) ;;
10684  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10685 ;;
10686 esac
10687
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define realloc rpl_realloc
10691 _ACEOF
10692
10693 fi
10694
10695
10696
10697
10698
10699 for ac_header in sys/select.h sys/socket.h
10700 do
10701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10703  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706  echo $ECHO_N "(cached) $ECHO_C" >&6
10707 fi
10708 ac_res=`eval echo '${'$as_ac_Header'}'`
10709               { echo "$as_me:$LINENO: result: $ac_res" >&5
10710 echo "${ECHO_T}$ac_res" >&6; }
10711 else
10712  # Is the header compilable?
10713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h.  */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h.  */
10721 $ac_includes_default
10722 #include <$ac_header>
10723 _ACEOF
10724 rm -f conftest.$ac_objext
10725 if { (ac_try="$ac_compile"
10726 case "(($ac_try" in
10727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728  *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731  (eval "$ac_compile") 2>conftest.er1
10732  ac_status=$?
10733  grep -v '^ *+' conftest.er1 >conftest.err
10734  rm -f conftest.er1
10735  cat conftest.err >&5
10736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737  (exit $ac_status); } && {
10738         test -z "$ac_c_werror_flag" ||
10739         test ! -s conftest.err
10740       } && test -s conftest.$ac_objext; then
10741  ac_header_compiler=yes
10742 else
10743  echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746        ac_header_compiler=no
10747 fi
10748
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10751 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752
10753 # Is the header present?
10754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 #include <$ac_header>
10763 _ACEOF
10764 if { (ac_try="$ac_cpp conftest.$ac_ext"
10765 case "(($ac_try" in
10766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767  *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771  ac_status=$?
10772  grep -v '^ *+' conftest.er1 >conftest.err
10773  rm -f conftest.er1
10774  cat conftest.err >&5
10775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776  (exit $ac_status); } >/dev/null && {
10777         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10778         test ! -s conftest.err
10779       }; then
10780  ac_header_preproc=yes
10781 else
10782  echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785  ac_header_preproc=no
10786 fi
10787
10788 rm -f conftest.err conftest.$ac_ext
10789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10790 echo "${ECHO_T}$ac_header_preproc" >&6; }
10791
10792 # So?  What about this header?
10793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794  yes:no: )
10795    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10799    ac_header_preproc=yes
10800    ;;
10801  no:yes:* )
10802    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10804    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10806    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10808    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10810    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10812    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10814    ( cat <<\_ASBOX
10815 ## ------------------------------ ##
10816 ## Report this to gezelter@nd.edu ##
10817 ## ------------------------------ ##
10818 _ASBOX
10819     ) | sed "s/^/$as_me: WARNING:     /" >&2
10820    ;;
10821 esac
10822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10825  echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827  eval "$as_ac_Header=\$ac_header_preproc"
10828 fi
10829 ac_res=`eval echo '${'$as_ac_Header'}'`
10830               { echo "$as_me:$LINENO: result: $ac_res" >&5
10831 echo "${ECHO_T}$ac_res" >&6; }
10832
10833 fi
10834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10835  cat >>confdefs.h <<_ACEOF
10836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 _ACEOF
10838
10839 fi
10840
10841 done
10842
10843 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
10844 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10845 if test "${ac_cv_func_select_args+set}" = set; then
10846  echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10849 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10850  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10851   cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h.  */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h.  */
10857 $ac_includes_default
10858 #ifdef HAVE_SYS_SELECT_H
10859 # include <sys/select.h>
10860 #endif
10861 #ifdef HAVE_SYS_SOCKET_H
10862 # include <sys/socket.h>
10863 #endif
10864
10865 #ifdef FC_DUMMY_MAIN
10866 #ifndef FC_DUMMY_MAIN_EQ_F77
10867 #  ifdef __cplusplus
10868     extern "C"
10869 #  endif
10870   int FC_DUMMY_MAIN() { return 1; }
10871 #endif
10872 #endif
10873 int
10874 main ()
10875 {
10876 extern int select ($ac_arg1,
10877                                            $ac_arg234, $ac_arg234, $ac_arg234,
10878                                            $ac_arg5);
10879  ;
10880  return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext
10884 if { (ac_try="$ac_compile"
10885 case "(($ac_try" in
10886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887  *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890  (eval "$ac_compile") 2>conftest.er1
10891  ac_status=$?
10892  grep -v '^ *+' conftest.er1 >conftest.err
10893  rm -f conftest.er1
10894  cat conftest.err >&5
10895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896  (exit $ac_status); } && {
10897         test -z "$ac_c_werror_flag" ||
10898         test ! -s conftest.err
10899       } && test -s conftest.$ac_objext; then
10900  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10901 else
10902  echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905
10906 fi
10907
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909  done
10910 done
10911 done
10912 # Provide a safe default value.
10913 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10914
10915 fi
10916 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10917 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10918 ac_save_IFS=$IFS; IFS=','
10919 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10920 IFS=$ac_save_IFS
10921 shift
10922
10923 cat >>confdefs.h <<_ACEOF
10924 #define SELECT_TYPE_ARG1 $1
10925 _ACEOF
10926
10927
10928 cat >>confdefs.h <<_ACEOF
10929 #define SELECT_TYPE_ARG234 ($2)
10930 _ACEOF
10931
10932
10933 cat >>confdefs.h <<_ACEOF
10934 #define SELECT_TYPE_ARG5 ($3)
10935 _ACEOF
10936
10937 rm -f conftest*
10938
10939
10940 for ac_func in strftime
10941 do
10942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10946  echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948  cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h.  */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h.  */
10954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10955   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10956 #define $ac_func innocuous_$ac_func
10957
10958 /* System header to define __stub macros and hopefully few prototypes,
10959    which can conflict with char $ac_func (); below.
10960    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961    <limits.h> exists even on freestanding compilers.  */
10962
10963 #ifdef __STDC__
10964 # include <limits.h>
10965 #else
10966 # include <assert.h>
10967 #endif
10968
10969 #undef $ac_func
10970
10971 /* Override any GCC internal prototype to avoid an error.
10972   Use char because int might match the return type of a GCC
10973   builtin and then its argument prototype would still apply.  */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char $ac_func ();
10978 /* The GNU C library defines this for functions which it implements
10979    to always fail with ENOSYS.  Some functions are actually named
10980    something starting with __ and the normal name is an alias.  */
10981 #if defined __stub_$ac_func || defined __stub___$ac_func
10982 choke me
10983 #endif
10984
10985 #ifdef FC_DUMMY_MAIN
10986 #ifndef FC_DUMMY_MAIN_EQ_F77
10987 #  ifdef __cplusplus
10988     extern "C"
10989 #  endif
10990   int FC_DUMMY_MAIN() { return 1; }
10991 #endif
10992 #endif
10993 int
10994 main ()
10995 {
10996 return $ac_func ();
10997  ;
10998  return 0;
10999 }
11000 _ACEOF
11001 rm -f conftest.$ac_objext conftest$ac_exeext
11002 if { (ac_try="$ac_link"
11003 case "(($ac_try" in
11004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005  *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008  (eval "$ac_link") 2>conftest.er1
11009  ac_status=$?
11010  grep -v '^ *+' conftest.er1 >conftest.err
11011  rm -f conftest.er1
11012  cat conftest.err >&5
11013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014  (exit $ac_status); } && {
11015         test -z "$ac_c_werror_flag" ||
11016         test ! -s conftest.err
11017       } && test -s conftest$ac_exeext &&
11018       $as_test_x conftest$ac_exeext; then
11019  eval "$as_ac_var=yes"
11020 else
11021  echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024        eval "$as_ac_var=no"
11025 fi
11026
11027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11028      conftest$ac_exeext conftest.$ac_ext
11029 fi
11030 ac_res=`eval echo '${'$as_ac_var'}'`
11031               { echo "$as_me:$LINENO: result: $ac_res" >&5
11032 echo "${ECHO_T}$ac_res" >&6; }
11033 if test `eval echo '${'$as_ac_var'}'` = yes; then
11034  cat >>confdefs.h <<_ACEOF
11035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036 _ACEOF
11037
11038 else
11039  # strftime is in -lintl on SCO UNIX.
11040 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11041 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
11042 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11043  echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045  ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lintl  $LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h.  */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h.  */
11053
11054 /* Override any GCC internal prototype to avoid an error.
11055   Use char because int might match the return type of a GCC
11056   builtin and then its argument prototype would still apply.  */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 char strftime ();
11061 #ifdef FC_DUMMY_MAIN
11062 #ifndef FC_DUMMY_MAIN_EQ_F77
11063 #  ifdef __cplusplus
11064     extern "C"
11065 #  endif
11066   int FC_DUMMY_MAIN() { return 1; }
11067 #endif
11068 #endif
11069 int
11070 main ()
11071 {
11072 return strftime ();
11073  ;
11074  return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (ac_try="$ac_link"
11079 case "(($ac_try" in
11080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081  *) ac_try_echo=$ac_try;;
11082 esac
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084  (eval "$ac_link") 2>conftest.er1
11085  ac_status=$?
11086  grep -v '^ *+' conftest.er1 >conftest.err
11087  rm -f conftest.er1
11088  cat conftest.err >&5
11089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090  (exit $ac_status); } && {
11091         test -z "$ac_c_werror_flag" ||
11092         test ! -s conftest.err
11093       } && test -s conftest$ac_exeext &&
11094       $as_test_x conftest$ac_exeext; then
11095  ac_cv_lib_intl_strftime=yes
11096 else
11097  echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100        ac_cv_lib_intl_strftime=no
11101 fi
11102
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104      conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11108 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
11109 if test $ac_cv_lib_intl_strftime = yes; then
11110  cat >>confdefs.h <<\_ACEOF
11111 #define HAVE_STRFTIME 1
11112 _ACEOF
11113
11114 LIBS="-lintl $LIBS"
11115 fi
11116
11117 fi
11118 done
11119
11120 { echo "$as_me:$LINENO: checking for working strtod" >&5
11121 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
11122 if test "${ac_cv_func_strtod+set}" = set; then
11123  echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125  if test "$cross_compiling" = yes; then
11126  ac_cv_func_strtod=no
11127 else
11128  cat >conftest.$ac_ext <<_ACEOF
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134
11135 $ac_includes_default
11136 #ifndef strtod
11137 double strtod ();
11138 #endif
11139 int
11140 main()
11141 {
11142  {
11143    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
11144    char *string = " +69";
11145    char *term;
11146    double value;
11147    value = strtod (string, &term);
11148    if (value != 69 || term != (string + 4))
11149      return 1;
11150  }
11151
11152  {
11153    /* Under Solaris 2.4, strtod returns the wrong value for the
11154       terminating character under some conditions.  */
11155    char *string = "NaN";
11156    char *term;
11157    strtod (string, &term);
11158    if (term != string && *(term - 1) == 0)
11159      return 1;
11160  }
11161  return 0;
11162 }
11163
11164 _ACEOF
11165 rm -f conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169  *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172  (eval "$ac_link") 2>&5
11173  ac_status=$?
11174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11176  { (case "(($ac_try" in
11177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178  *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181  (eval "$ac_try") 2>&5
11182  ac_status=$?
11183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184  (exit $ac_status); }; }; then
11185  ac_cv_func_strtod=yes
11186 else
11187  echo "$as_me: program exited with status $ac_status" >&5
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11190
11191 ( exit $ac_status )
11192 ac_cv_func_strtod=no
11193 fi
11194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11195 fi
11196
11197
11198 fi
11199 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11200 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
11201 if test $ac_cv_func_strtod = no; then
11202  case " $LIBOBJS " in
11203  *" strtod.$ac_objext "* ) ;;
11204  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11205 ;;
11206 esac
11207
11208 { echo "$as_me:$LINENO: checking for pow" >&5
11209 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
11210 if test "${ac_cv_func_pow+set}" = set; then
11211  echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213  cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
11220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11221 #define pow innocuous_pow
11222
11223 /* System header to define __stub macros and hopefully few prototypes,
11224    which can conflict with char pow (); below.
11225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226    <limits.h> exists even on freestanding compilers.  */
11227
11228 #ifdef __STDC__
11229 # include <limits.h>
11230 #else
11231 # include <assert.h>
11232 #endif
11233
11234 #undef pow
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237   Use char because int might match the return type of a GCC
11238   builtin and then its argument prototype would still apply.  */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char pow ();
11243 /* The GNU C library defines this for functions which it implements
11244    to always fail with ENOSYS.  Some functions are actually named
11245    something starting with __ and the normal name is an alias.  */
11246 #if defined __stub_pow || defined __stub___pow
11247 choke me
11248 #endif
11249
11250 #ifdef FC_DUMMY_MAIN
11251 #ifndef FC_DUMMY_MAIN_EQ_F77
11252 #  ifdef __cplusplus
11253     extern "C"
11254 #  endif
11255   int FC_DUMMY_MAIN() { return 1; }
11256 #endif
11257 #endif
11258 int
11259 main ()
11260 {
11261 return pow ();
11262  ;
11263  return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270  *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273  (eval "$ac_link") 2>conftest.er1
11274  ac_status=$?
11275  grep -v '^ *+' conftest.er1 >conftest.err
11276  rm -f conftest.er1
11277  cat conftest.err >&5
11278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279  (exit $ac_status); } && {
11280         test -z "$ac_c_werror_flag" ||
11281         test ! -s conftest.err
11282       } && test -s conftest$ac_exeext &&
11283       $as_test_x conftest$ac_exeext; then
11284  ac_cv_func_pow=yes
11285 else
11286  echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289        ac_cv_func_pow=no
11290 fi
11291
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293      conftest$ac_exeext conftest.$ac_ext
11294 fi
11295 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
11296 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
11297
11298 if test $ac_cv_func_pow = no; then
11299  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
11300 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
11301 if test "${ac_cv_lib_m_pow+set}" = set; then
11302  echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304  ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-lm  $LIBS"
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312
11313 /* Override any GCC internal prototype to avoid an error.
11314   Use char because int might match the return type of a GCC
11315   builtin and then its argument prototype would still apply.  */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char pow ();
11320 #ifdef FC_DUMMY_MAIN
11321 #ifndef FC_DUMMY_MAIN_EQ_F77
11322 #  ifdef __cplusplus
11323     extern "C"
11324 #  endif
11325   int FC_DUMMY_MAIN() { return 1; }
11326 #endif
11327 #endif
11328 int
11329 main ()
11330 {
11331 return pow ();
9604    ;
9605    return 0;
9606   }
# Line 11347 | Line 9619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619    cat conftest.err >&5
9620    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621    (exit $ac_status); } && {
9622 <         test -z "$ac_c_werror_flag" ||
9622 >         test -z "$ac_cxx_werror_flag" ||
9623           test ! -s conftest.err
9624         } && test -s conftest$ac_exeext &&
9625         $as_test_x conftest$ac_exeext; then
9626 <  ac_cv_lib_m_pow=yes
9626 >
9627 >                openbabel_lib_found="yes"
9628 >                { echo "$as_me:$LINENO: result: found" >&5
9629 > echo "${ECHO_T}found" >&6; }
9630 >
9631   else
9632    echo "$as_me: failed program was:" >&5
9633   sed 's/^/| /' conftest.$ac_ext >&5
9634  
11359        ac_cv_lib_m_pow=no
11360 fi
9635  
9636 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 <      conftest$ac_exeext conftest.$ac_ext
9638 < LIBS=$ac_check_lib_save_LIBS
11365 < fi
11366 < { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
11367 < echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
11368 < if test $ac_cv_lib_m_pow = yes; then
11369 <  POW_LIB=-lm
11370 < else
11371 <  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
11372 < echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11373 < fi
9636 >                openbabel_lib_found="no"
9637 >                { echo "$as_me:$LINENO: result: not found" >&5
9638 > echo "${ECHO_T}not found" >&6; }
9639  
11375 fi
9640  
9641   fi
9642  
9643 + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 +      conftest$ac_exeext conftest.$ac_ext
9645 +        ac_ext=c
9646 + ac_cpp='$CPP $CPPFLAGS'
9647 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9648 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9649 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
9650  
9651 +        LDFLAGS="$OPENBABEL_OLD_LDFLAGS"
9652 +        CPPFLAGS="$OPENBABEL_OLD_CPPFLAGS"
9653  
9654 +        if test "$openbabel_lib_found" = "yes" -a "$openbabel_cv_openbabel_h" = "yes" -a "$openbabel_cv_obconversion_h" = "yes"; then
9655 +                USE_OPENBABEL=yes
9656 +                OPENBABEL_INC_DIR="${OPENBABEL_HOME}/include/openbabel-2.0"
9657 +                OPENBABEL_LIB_DIR="${OPENBABEL_HOME}/lib"
9658 +                OPENBABEL_LIB="-lopenbabel"
9659 +        else
9660 +                { echo "$as_me:$LINENO: checking openbabel in ${OPENBABEL_HOME}" >&5
9661 + echo $ECHO_N "checking openbabel in ${OPENBABEL_HOME}... $ECHO_C" >&6; }
9662 +                OPENBABEL_INC_DIR=
9663 +                OPENBABEL_LIB_DIR=
9664 +                OPENBABEL_LIB=
9665 +                USE_OPENBABEL=no
9666 +                { echo "$as_me:$LINENO: result: failed" >&5
9667 + echo "${ECHO_T}failed" >&6; }
9668 +                echo ""
9669 +                echo "*********************************************************"
9670 +                echo "* WARNING: Could not find a working openbabel-2.x       *"
9671 +                echo "* installation If you need OOPSE to be able to convert  *"
9672 +                echo "* xyz or pdb files you need to specify a valid          *"
9673 +                echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
9674 +                echo "*                                                       *"
9675 +                echo "* OOPSE will still work without openbabel installed.    *"
9676 +                echo "*********************************************************"
9677 +                echo ""
9678 +        fi
9679  
9680  
9681  
9682  
9683 + fi
9684 + fi
9685  
9686  
9687 <
9688 <
9689 <
9690 <
11391 <
11392 <
11393 <
11394 <
11395 <
11396 <
11397 <
11398 <
11399 <
11400 <
11401 <
11402 <
11403 <
11404 <
11405 <
11406 < 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
11407 < do
11408 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9687 > # Checks for header files.
9688 > { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9689 > echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9690 > if test "${ac_cv_header_stdc+set}" = set; then
9691    echo $ECHO_N "(cached) $ECHO_C" >&6
9692   else
9693    cat >conftest.$ac_ext <<_ACEOF
# Line 11417 | Line 9696 | cat >>conftest.$ac_ext <<_ACEOF
9696   cat confdefs.h >>conftest.$ac_ext
9697   cat >>conftest.$ac_ext <<_ACEOF
9698   /* end confdefs.h.  */
9699 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9700 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9701 < #define $ac_func innocuous_$ac_func
9699 > #include <stdlib.h>
9700 > #include <stdarg.h>
9701 > #include <string.h>
9702 > #include <float.h>
9703  
11424 /* System header to define __stub macros and hopefully few prototypes,
11425    which can conflict with char $ac_func (); below.
11426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427    <limits.h> exists even on freestanding compilers.  */
11428
11429 #ifdef __STDC__
11430 # include <limits.h>
11431 #else
11432 # include <assert.h>
11433 #endif
11434
11435 #undef $ac_func
11436
11437 /* Override any GCC internal prototype to avoid an error.
11438   Use char because int might match the return type of a GCC
11439   builtin and then its argument prototype would still apply.  */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char $ac_func ();
11444 /* The GNU C library defines this for functions which it implements
11445    to always fail with ENOSYS.  Some functions are actually named
11446    something starting with __ and the normal name is an alias.  */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11448 choke me
11449 #endif
11450
9704   #ifdef FC_DUMMY_MAIN
9705   #ifndef FC_DUMMY_MAIN_EQ_F77
9706   #  ifdef __cplusplus
# Line 11459 | Line 9712 | main ()
9712   int
9713   main ()
9714   {
9715 < return $ac_func ();
9715 >
9716    ;
9717    return 0;
9718   }
9719   _ACEOF
9720 < rm -f conftest.$ac_objext conftest$ac_exeext
9721 < if { (ac_try="$ac_link"
9720 > rm -f conftest.$ac_objext
9721 > if { (ac_try="$ac_compile"
9722   case "(($ac_try" in
9723    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724    *) ac_try_echo=$ac_try;;
9725   esac
9726   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 <  (eval "$ac_link") 2>conftest.er1
9727 >  (eval "$ac_compile") 2>conftest.er1
9728    ac_status=$?
9729    grep -v '^ *+' conftest.er1 >conftest.err
9730    rm -f conftest.er1
# Line 11480 | Line 9733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733    (exit $ac_status); } && {
9734           test -z "$ac_c_werror_flag" ||
9735           test ! -s conftest.err
9736 <       } && test -s conftest$ac_exeext &&
9737 <       $as_test_x conftest$ac_exeext; then
11485 <  eval "$as_ac_var=yes"
9736 >       } && test -s conftest.$ac_objext; then
9737 >  ac_cv_header_stdc=yes
9738   else
9739    echo "$as_me: failed program was:" >&5
9740   sed 's/^/| /' conftest.$ac_ext >&5
9741  
9742 <        eval "$as_ac_var=no"
9742 >        ac_cv_header_stdc=no
9743   fi
9744  
9745 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 <      conftest$ac_exeext conftest.$ac_ext
9745 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746 >
9747 > if test $ac_cv_header_stdc = yes; then
9748 >  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9749 >  cat >conftest.$ac_ext <<_ACEOF
9750 > /* confdefs.h.  */
9751 > _ACEOF
9752 > cat confdefs.h >>conftest.$ac_ext
9753 > cat >>conftest.$ac_ext <<_ACEOF
9754 > /* end confdefs.h.  */
9755 > #include <string.h>
9756 >
9757 > _ACEOF
9758 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9759 >  $EGREP "memchr" >/dev/null 2>&1; then
9760 >  :
9761 > else
9762 >  ac_cv_header_stdc=no
9763   fi
9764 < ac_res=`eval echo '${'$as_ac_var'}'`
9765 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
9766 < echo "${ECHO_T}$ac_res" >&6; }
9767 < if test `eval echo '${'$as_ac_var'}'` = yes; then
9768 <  cat >>confdefs.h <<_ACEOF
9769 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9764 > rm -f conftest*
9765 >
9766 > fi
9767 >
9768 > if test $ac_cv_header_stdc = yes; then
9769 >  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9770 >  cat >conftest.$ac_ext <<_ACEOF
9771 > /* confdefs.h.  */
9772   _ACEOF
9773 + cat confdefs.h >>conftest.$ac_ext
9774 + cat >>conftest.$ac_ext <<_ACEOF
9775 + /* end confdefs.h.  */
9776 + #include <stdlib.h>
9777  
9778 + _ACEOF
9779 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9780 +  $EGREP "free" >/dev/null 2>&1; then
9781 +  :
9782 + else
9783 +  ac_cv_header_stdc=no
9784   fi
9785 < done
9785 > rm -f conftest*
9786  
9787 + fi
9788  
9789 < # special check for _system_configuration because AIX <4.3.2 do not
9790 < # contain the `physmem' member.
9791 < { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9792 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
9793 < cat >conftest.$ac_ext <<_ACEOF
9789 > if test $ac_cv_header_stdc = yes; then
9790 >  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9791 >  if test "$cross_compiling" = yes; then
9792 >  :
9793 > else
9794 >  cat >conftest.$ac_ext <<_ACEOF
9795   /* confdefs.h.  */
9796   _ACEOF
9797   cat confdefs.h >>conftest.$ac_ext
9798   cat >>conftest.$ac_ext <<_ACEOF
9799   /* end confdefs.h.  */
9800 < #include <sys/systemcfg.h>
9801 < #ifdef FC_DUMMY_MAIN
9802 < #ifndef FC_DUMMY_MAIN_EQ_F77
9803 < #  ifdef __cplusplus
9804 <     extern "C"
9805 < #  endif
9806 <   int FC_DUMMY_MAIN() { return 1; }
9800 > #include <ctype.h>
9801 > #include <stdlib.h>
9802 > #if ((' ' & 0x0FF) == 0x020)
9803 > # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9804 > # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9805 > #else
9806 > # define ISLOWER(c) \
9807 >                   (('a' <= (c) && (c) <= 'i') \
9808 >                     || ('j' <= (c) && (c) <= 'r') \
9809 >                     || ('s' <= (c) && (c) <= 'z'))
9810 > # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9811   #endif
9812 < #endif
9812 >
9813 > #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9814   int
9815   main ()
9816   {
9817 < double x = _system_configuration.physmem;
9818 <  ;
9817 >  int i;
9818 >  for (i = 0; i < 256; i++)
9819 >    if (XOR (islower (i), ISLOWER (i))
9820 >        || toupper (i) != TOUPPER (i))
9821 >      return 2;
9822    return 0;
9823   }
9824   _ACEOF
9825 < rm -f conftest.$ac_objext
9826 < if { (ac_try="$ac_compile"
9825 > rm -f conftest$ac_exeext
9826 > if { (ac_try="$ac_link"
9827   case "(($ac_try" in
9828    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829    *) ac_try_echo=$ac_try;;
9830   esac
9831   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 <  (eval "$ac_compile") 2>conftest.er1
9832 >  (eval "$ac_link") 2>&5
9833    ac_status=$?
11544  grep -v '^ *+' conftest.er1 >conftest.err
11545  rm -f conftest.er1
11546  cat conftest.err >&5
9834    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 <  (exit $ac_status); } && {
9836 <         test -z "$ac_c_werror_flag" ||
9837 <         test ! -s conftest.err
9838 <       } && test -s conftest.$ac_objext; then
9839 <  { echo "$as_me:$LINENO: result: yes" >&5
9840 < echo "${ECHO_T}yes" >&6; }
9835 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9836 >  { (case "(($ac_try" in
9837 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 >  *) ac_try_echo=$ac_try;;
9839 > esac
9840 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 >  (eval "$ac_try") 2>&5
9842 >  ac_status=$?
9843 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 >  (exit $ac_status); }; }; then
9845 >  :
9846 > else
9847 >  echo "$as_me: program exited with status $ac_status" >&5
9848 > echo "$as_me: failed program was:" >&5
9849 > sed 's/^/| /' conftest.$ac_ext >&5
9850  
9851 + ( exit $ac_status )
9852 + ac_cv_header_stdc=no
9853 + fi
9854 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9855 + fi
9856 +
9857 +
9858 + fi
9859 + fi
9860 + { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9861 + echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9862 + if test $ac_cv_header_stdc = yes; then
9863 +
9864   cat >>confdefs.h <<\_ACEOF
9865 < #define HAVE__SYSTEM_CONFIGURATION 1
9865 > #define STDC_HEADERS 1
9866   _ACEOF
9867  
11559 else
11560  echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563        { echo "$as_me:$LINENO: result: no" >&5
11564 echo "${ECHO_T}no" >&6; }
9868   fi
9869  
11567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870  
11569  # clean out junk possibly left behind by a previous configuration
11570  rm -f src/getopt.h
11571  # Check for getopt_long support
9871  
9872 < for ac_header in getopt.h
9872 >
9873 >
9874 >
9875 >
9876 >
9877 >
9878 >
9879 >
9880 >
9881 >
9882 >
9883 >
9884 >
9885 > for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h
9886   do
9887   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9888   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
# Line 11715 | Line 10027 | done
10027   done
10028  
10029  
10030 < for ac_func in getopt_long
10031 < do
10032 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10033 < { echo "$as_me:$LINENO: checking for $ac_func" >&5
11722 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723 < if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10030 > # Checks for typedefs, structures, and compiler characteristics.
10031 > { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
10032 > echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
10033 > if test "${ac_cv_header_stdbool_h+set}" = set; then
10034    echo $ECHO_N "(cached) $ECHO_C" >&6
10035   else
10036    cat >conftest.$ac_ext <<_ACEOF
# Line 11729 | Line 10039 | cat >>conftest.$ac_ext <<_ACEOF
10039   cat confdefs.h >>conftest.$ac_ext
10040   cat >>conftest.$ac_ext <<_ACEOF
10041   /* end confdefs.h.  */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11734 #define $ac_func innocuous_$ac_func
10042  
10043 < /* System header to define __stub macros and hopefully few prototypes,
10044 <    which can conflict with char $ac_func (); below.
10045 <    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 <    <limits.h> exists even on freestanding compilers.  */
11740 <
11741 < #ifdef __STDC__
11742 < # include <limits.h>
11743 < #else
11744 < # include <assert.h>
10043 > #include <stdbool.h>
10044 > #ifndef bool
10045 > "error: bool is not defined"
10046   #endif
10047 <
10048 < #undef $ac_func
11748 <
11749 < /* Override any GCC internal prototype to avoid an error.
11750 <   Use char because int might match the return type of a GCC
11751 <   builtin and then its argument prototype would still apply.  */
11752 < #ifdef __cplusplus
11753 < extern "C"
10047 > #ifndef false
10048 > "error: false is not defined"
10049   #endif
10050 < char $ac_func ();
10051 < /* The GNU C library defines this for functions which it implements
11757 <    to always fail with ENOSYS.  Some functions are actually named
11758 <    something starting with __ and the normal name is an alias.  */
11759 < #if defined __stub_$ac_func || defined __stub___$ac_func
11760 < choke me
10050 > #if false
10051 > "error: false is not 0"
10052   #endif
10053 <
10054 < #ifdef FC_DUMMY_MAIN
11764 < #ifndef FC_DUMMY_MAIN_EQ_F77
11765 < #  ifdef __cplusplus
11766 <     extern "C"
11767 < #  endif
11768 <   int FC_DUMMY_MAIN() { return 1; }
10053 > #ifndef true
10054 > "error: true is not defined"
10055   #endif
10056 + #if true != 1
10057 + "error: true is not 1"
10058   #endif
10059 < int
10060 < main ()
10061 < {
11774 < return $ac_func ();
11775 <  ;
11776 <  return 0;
11777 < }
11778 < _ACEOF
11779 < rm -f conftest.$ac_objext conftest$ac_exeext
11780 < if { (ac_try="$ac_link"
11781 < case "(($ac_try" in
11782 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 <  *) ac_try_echo=$ac_try;;
11784 < esac
11785 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 <  (eval "$ac_link") 2>conftest.er1
11787 <  ac_status=$?
11788 <  grep -v '^ *+' conftest.er1 >conftest.err
11789 <  rm -f conftest.er1
11790 <  cat conftest.err >&5
11791 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 <  (exit $ac_status); } && {
11793 <         test -z "$ac_c_werror_flag" ||
11794 <         test ! -s conftest.err
11795 <       } && test -s conftest$ac_exeext &&
11796 <       $as_test_x conftest$ac_exeext; then
11797 <  eval "$as_ac_var=yes"
11798 < else
11799 <  echo "$as_me: failed program was:" >&5
11800 < sed 's/^/| /' conftest.$ac_ext >&5
10059 > #ifndef __bool_true_false_are_defined
10060 > "error: __bool_true_false_are_defined is not defined"
10061 > #endif
10062  
10063 <        eval "$as_ac_var=no"
11803 < fi
10063 >        struct s { _Bool s: 1; _Bool t; } s;
10064  
10065 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10066 <      conftest$ac_exeext conftest.$ac_ext
10067 < fi
10068 < ac_res=`eval echo '${'$as_ac_var'}'`
10069 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
10070 < echo "${ECHO_T}$ac_res" >&6; }
10071 < if test `eval echo '${'$as_ac_var'}'` = yes; then
10072 <  cat >>confdefs.h <<_ACEOF
10073 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10074 < _ACEOF
10065 >        char a[true == 1 ? 1 : -1];
10066 >        char b[false == 0 ? 1 : -1];
10067 >        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10068 >        char d[(bool) 0.5 == true ? 1 : -1];
10069 >        bool e = &s;
10070 >        char f[(_Bool) 0.0 == false ? 1 : -1];
10071 >        char g[true];
10072 >        char h[sizeof (_Bool)];
10073 >        char i[sizeof s.t];
10074 >        enum { j = false, k = true, l = false * true, m = true * 256 };
10075 >        _Bool n[m];
10076 >        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10077 >        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10078 > #       if defined __xlc__ || defined __GNUC__
10079 >         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10080 >            reported by James Lemley on 2005-10-05; see
10081 >            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10082 >            This test is not quite right, since xlc is allowed to
10083 >            reject this program, as the initializer for xlcbug is
10084 >            not one of the forms that C requires support for.
10085 >            However, doing the test right would require a runtime
10086 >            test, and that would make cross-compilation harder.
10087 >            Let us hope that IBM fixes the xlc bug, and also adds
10088 >            support for this kind of constant expression.  In the
10089 >            meantime, this test will reject xlc, which is OK, since
10090 >            our stdbool.h substitute should suffice.  We also test
10091 >            this with GCC, where it should work, to detect more
10092 >            quickly whether someone messes up the test in the
10093 >            future.  */
10094 >         char digs[] = "0123456789";
10095 >         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10096 > #       endif
10097 >        /* Catch a bug in an HP-UX C compiler.  See
10098 >           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10099 >           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10100 >         */
10101 >        _Bool q = true;
10102 >        _Bool *pq = &q;
10103  
11816 else
11817  # FreeBSD has a gnugetopt library for this
11818    { echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
11819 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6; }
11820 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
11821  echo $ECHO_N "(cached) $ECHO_C" >&6
11822 else
11823  ac_check_lib_save_LIBS=$LIBS
11824 LIBS="-lgnugetopt  $LIBS"
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831
11832 /* Override any GCC internal prototype to avoid an error.
11833   Use char because int might match the return type of a GCC
11834   builtin and then its argument prototype would still apply.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char getopt_long ();
10104   #ifdef FC_DUMMY_MAIN
10105   #ifndef FC_DUMMY_MAIN_EQ_F77
10106   #  ifdef __cplusplus
# Line 11847 | Line 10112 | main ()
10112   int
10113   main ()
10114   {
10115 < return getopt_long ();
10115 >
10116 >        *pq |= q;
10117 >        *pq |= ! q;
10118 >        /* Refer to every declared value, to avoid compiler optimizations.  */
10119 >        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10120 >                + !m + !n + !o + !p + !q + !pq);
10121 >
10122    ;
10123    return 0;
10124   }
10125   _ACEOF
10126 < rm -f conftest.$ac_objext conftest$ac_exeext
10127 < if { (ac_try="$ac_link"
10126 > rm -f conftest.$ac_objext
10127 > if { (ac_try="$ac_compile"
10128   case "(($ac_try" in
10129    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130    *) ac_try_echo=$ac_try;;
10131   esac
10132   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 <  (eval "$ac_link") 2>conftest.er1
10133 >  (eval "$ac_compile") 2>conftest.er1
10134    ac_status=$?
10135    grep -v '^ *+' conftest.er1 >conftest.err
10136    rm -f conftest.er1
# Line 11868 | Line 10139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139    (exit $ac_status); } && {
10140           test -z "$ac_c_werror_flag" ||
10141           test ! -s conftest.err
10142 <       } && test -s conftest$ac_exeext &&
10143 <       $as_test_x conftest$ac_exeext; then
11873 <  ac_cv_lib_gnugetopt_getopt_long=yes
10142 >       } && test -s conftest.$ac_objext; then
10143 >  ac_cv_header_stdbool_h=yes
10144   else
10145    echo "$as_me: failed program was:" >&5
10146   sed 's/^/| /' conftest.$ac_ext >&5
10147  
10148 <        ac_cv_lib_gnugetopt_getopt_long=no
11879 < fi
11880 <
11881 < rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 <      conftest$ac_exeext conftest.$ac_ext
11883 < LIBS=$ac_check_lib_save_LIBS
11884 < fi
11885 < { echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
11886 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6; }
11887 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
11888 <  cat >>confdefs.h <<\_ACEOF
11889 < #define HAVE_GETOPT_LONG 1
11890 < _ACEOF
11891 <
11892 < else
11893 <  # use the GNU replacement
11894 <      case " $LIBOBJS " in
11895 <  *" getopt.$ac_objext "* ) ;;
11896 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11897 < ;;
11898 < esac
11899 <
11900 <      case " $LIBOBJS " in
11901 <  *" getopt1.$ac_objext "* ) ;;
11902 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
11903 < ;;
11904 < esac
11905 <
11906 <      ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
11907 <
10148 >        ac_cv_header_stdbool_h=no
10149   fi
10150  
10151 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152   fi
10153 < done
10154 <
10155 <
10156 < ac_ext=cpp
10157 < ac_cpp='$CXXCPP $CPPFLAGS'
11916 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11917 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11918 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11919 <
11920 < { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
11921 < echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
11922 < if test "${ac_cv_cxx_namespaces+set}" = set; then
10153 > { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
10154 > echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
10155 > { echo "$as_me:$LINENO: checking for _Bool" >&5
10156 > echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
10157 > if test "${ac_cv_type__Bool+set}" = set; then
10158    echo $ECHO_N "(cached) $ECHO_C" >&6
10159   else
10160 <
11926 < ac_ext=cpp
11927 < ac_cpp='$CXXCPP $CPPFLAGS'
11928 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11929 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11930 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11931 <
11932 < cat >conftest.$ac_ext <<_ACEOF
10160 >  cat >conftest.$ac_ext <<_ACEOF
10161   /* confdefs.h.  */
10162   _ACEOF
10163   cat confdefs.h >>conftest.$ac_ext
10164   cat >>conftest.$ac_ext <<_ACEOF
10165   /* end confdefs.h.  */
10166 < namespace Outer { namespace Inner { int i = 0; }}
10166 > $ac_includes_default
10167 > typedef _Bool ac__type_new_;
10168   #ifdef FC_DUMMY_MAIN
10169   #ifndef FC_DUMMY_MAIN_EQ_F77
10170   #  ifdef __cplusplus
# Line 11947 | Line 10176 | main ()
10176   int
10177   main ()
10178   {
10179 < using namespace Outer::Inner; return i;
10179 > if ((ac__type_new_ *) 0)
10180 >  return 0;
10181 > if (sizeof (ac__type_new_))
10182 >  return 0;
10183    ;
10184    return 0;
10185   }
# Line 11966 | Line 10198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198    cat conftest.err >&5
10199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200    (exit $ac_status); } && {
10201 <         test -z "$ac_cxx_werror_flag" ||
10201 >         test -z "$ac_c_werror_flag" ||
10202           test ! -s conftest.err
10203         } && test -s conftest.$ac_objext; then
10204 <  ac_cv_cxx_namespaces=yes
10204 >  ac_cv_type__Bool=yes
10205   else
10206    echo "$as_me: failed program was:" >&5
10207   sed 's/^/| /' conftest.$ac_ext >&5
10208  
10209 <        ac_cv_cxx_namespaces=no
10209 >        ac_cv_type__Bool=no
10210   fi
10211  
10212   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10213 < ac_ext=cpp
10214 < ac_cpp='$CXXCPP $CPPFLAGS'
10215 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10213 > fi
10214 > { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
10215 > echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
10216 > if test $ac_cv_type__Bool = yes; then
10217  
10218 + cat >>confdefs.h <<_ACEOF
10219 + #define HAVE__BOOL 1
10220 + _ACEOF
10221  
10222 +
10223   fi
11989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
11990 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
11991 if test "$ac_cv_cxx_namespaces" = yes; then
10224  
10225 + if test $ac_cv_header_stdbool_h = yes; then
10226 +
10227   cat >>confdefs.h <<\_ACEOF
10228 < #define HAVE_NAMESPACES
10228 > #define HAVE_STDBOOL_H 1
10229   _ACEOF
10230  
10231   fi
10232  
10233 < { echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
10234 < echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6; }
10235 < if test "${ac_cv_cxx_have_stl+set}" = set; then
10233 > { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10234 > echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
10235 > if test "${ac_cv_c_const+set}" = set; then
10236    echo $ECHO_N "(cached) $ECHO_C" >&6
10237   else
10238 <
12005 <
12006 < ac_ext=cpp
12007 < ac_cpp='$CXXCPP $CPPFLAGS'
12008 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12009 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12010 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12011 <
12012 < cat >conftest.$ac_ext <<_ACEOF
10238 >  cat >conftest.$ac_ext <<_ACEOF
10239   /* confdefs.h.  */
10240   _ACEOF
10241   cat confdefs.h >>conftest.$ac_ext
10242   cat >>conftest.$ac_ext <<_ACEOF
10243   /* end confdefs.h.  */
10244 < #include <list>
12019 < #include <deque>
12020 < #ifdef HAVE_NAMESPACES
12021 < using namespace std;
12022 < #endif
10244 >
10245   #ifdef FC_DUMMY_MAIN
10246   #ifndef FC_DUMMY_MAIN_EQ_F77
10247   #  ifdef __cplusplus
# Line 12031 | Line 10253 | main ()
10253   int
10254   main ()
10255   {
10256 < list<int> x; x.push_back(5);
10257 < list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
10256 > /* FIXME: Include the comments suggested by Paul. */
10257 > #ifndef __cplusplus
10258 >  /* Ultrix mips cc rejects this.  */
10259 >  typedef int charset[2];
10260 >  const charset cs;
10261 >  /* SunOS 4.1.1 cc rejects this.  */
10262 >  char const *const *pcpcc;
10263 >  char **ppc;
10264 >  /* NEC SVR4.0.2 mips cc rejects this.  */
10265 >  struct point {int x, y;};
10266 >  static struct point const zero = {0,0};
10267 >  /* AIX XL C 1.02.0.0 rejects this.
10268 >     It does not let you subtract one const X* pointer from another in
10269 >     an arm of an if-expression whose if-part is not a constant
10270 >     expression */
10271 >  const char *g = "string";
10272 >  pcpcc = &g + (g ? g-g : 0);
10273 >  /* HPUX 7.0 cc rejects these. */
10274 >  ++pcpcc;
10275 >  ppc = (char**) pcpcc;
10276 >  pcpcc = (char const *const *) ppc;
10277 >  { /* SCO 3.2v4 cc rejects this.  */
10278 >    char *t;
10279 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
10280 >
10281 >    *t++ = 0;
10282 >    if (s) return 0;
10283 >  }
10284 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10285 >    int x[] = {25, 17};
10286 >    const int *foo = &x[0];
10287 >    ++foo;
10288 >  }
10289 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10290 >    typedef const int *iptr;
10291 >    iptr p = 0;
10292 >    ++p;
10293 >  }
10294 >  { /* AIX XL C 1.02.0.0 rejects this saying
10295 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10296 >    struct s { int j; const int *ap[3]; };
10297 >    struct s *b; b->j = 5;
10298 >  }
10299 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10300 >    const int foo = 10;
10301 >    if (!foo) return 0;
10302 >  }
10303 >  return !cs[0] && !zero.x;
10304 > #endif
10305 >
10306    ;
10307    return 0;
10308   }
# Line 12051 | Line 10321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321    cat conftest.err >&5
10322    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323    (exit $ac_status); } && {
10324 <         test -z "$ac_cxx_werror_flag" ||
10324 >         test -z "$ac_c_werror_flag" ||
10325           test ! -s conftest.err
10326         } && test -s conftest.$ac_objext; then
10327 <  ac_cv_cxx_have_stl=yes
10327 >  ac_cv_c_const=yes
10328   else
10329    echo "$as_me: failed program was:" >&5
10330   sed 's/^/| /' conftest.$ac_ext >&5
10331  
10332 <        ac_cv_cxx_have_stl=no
10332 >        ac_cv_c_const=no
10333   fi
10334  
10335   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 ac_ext=cpp
12067 ac_cpp='$CXXCPP $CPPFLAGS'
12068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12071
12072
10336   fi
10337 < { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
10338 < echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6; }
10339 < if test "$ac_cv_cxx_have_stl" = yes; then
10337 > { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10338 > echo "${ECHO_T}$ac_cv_c_const" >&6; }
10339 > if test $ac_cv_c_const = no; then
10340  
10341   cat >>confdefs.h <<\_ACEOF
10342 < #define HAVE_STL
10342 > #define const
10343   _ACEOF
10344  
10345   fi
10346  
10347 <
10348 <
10349 <  if test "${ac_cv_header_iostream+set}" = set; then
12087 <  { echo "$as_me:$LINENO: checking for iostream" >&5
12088 < echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
12089 < if test "${ac_cv_header_iostream+set}" = set; then
10347 > { echo "$as_me:$LINENO: checking for inline" >&5
10348 > echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
10349 > if test "${ac_cv_c_inline+set}" = set; then
10350    echo $ECHO_N "(cached) $ECHO_C" >&6
12091 fi
12092 { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
12093 echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
10351   else
10352 <  # Is the header compilable?
10353 < { echo "$as_me:$LINENO: checking iostream usability" >&5
10354 < echo $ECHO_N "checking iostream usability... $ECHO_C" >&6; }
12098 < cat >conftest.$ac_ext <<_ACEOF
10352 >  ac_cv_c_inline=no
10353 > for ac_kw in inline __inline__ __inline; do
10354 >  cat >conftest.$ac_ext <<_ACEOF
10355   /* confdefs.h.  */
10356   _ACEOF
10357   cat confdefs.h >>conftest.$ac_ext
10358   cat >>conftest.$ac_ext <<_ACEOF
10359   /* end confdefs.h.  */
10360 < $ac_includes_default
10361 < #include <iostream>
10360 > #ifndef __cplusplus
10361 > typedef int foo_t;
10362 > static $ac_kw foo_t static_foo () {return 0; }
10363 > $ac_kw foo_t foo () {return 0; }
10364 > #endif
10365 >
10366   _ACEOF
10367   rm -f conftest.$ac_objext
10368   if { (ac_try="$ac_compile"
# Line 12118 | Line 10378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378    cat conftest.err >&5
10379    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380    (exit $ac_status); } && {
10381 <         test -z "$ac_cxx_werror_flag" ||
10381 >         test -z "$ac_c_werror_flag" ||
10382           test ! -s conftest.err
10383         } && test -s conftest.$ac_objext; then
10384 <  ac_header_compiler=yes
10384 >  ac_cv_c_inline=$ac_kw
10385   else
10386    echo "$as_me: failed program was:" >&5
10387   sed 's/^/| /' conftest.$ac_ext >&5
10388  
12129        ac_header_compiler=no
12130 fi
10389  
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12134 echo "${ECHO_T}$ac_header_compiler" >&6; }
12135
12136 # Is the header present?
12137 { echo "$as_me:$LINENO: checking iostream presence" >&5
12138 echo $ECHO_N "checking iostream presence... $ECHO_C" >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145 #include <iostream>
12146 _ACEOF
12147 if { (ac_try="$ac_cpp conftest.$ac_ext"
12148 case "(($ac_try" in
12149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150  *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12154  ac_status=$?
12155  grep -v '^ *+' conftest.er1 >conftest.err
12156  rm -f conftest.er1
12157  cat conftest.err >&5
12158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159  (exit $ac_status); } >/dev/null && {
12160         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12161         test ! -s conftest.err
12162       }; then
12163  ac_header_preproc=yes
12164 else
12165  echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168  ac_header_preproc=no
10390   fi
10391  
10392 < rm -f conftest.err conftest.$ac_ext
10393 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10394 < echo "${ECHO_T}$ac_header_preproc" >&6; }
10392 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393 >  test "$ac_cv_c_inline" != no && break
10394 > done
10395  
12175 # So?  What about this header?
12176 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12177  yes:no: )
12178    { echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5
12179 echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;}
12180    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5
12181 echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;}
12182    ac_header_preproc=yes
12183    ;;
12184  no:yes:* )
12185    { echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5
12186 echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;}
12187    { echo "$as_me:$LINENO: WARNING: iostream:     check for missing prerequisite headers?" >&5
12188 echo "$as_me: WARNING: iostream:     check for missing prerequisite headers?" >&2;}
12189    { echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5
12190 echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;}
12191    { echo "$as_me:$LINENO: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&5
12192 echo "$as_me: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&2;}
12193    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;}
12195    { echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5
12196 echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;}
12197    ( cat <<\_ASBOX
12198 ## ------------------------------ ##
12199 ## Report this to gezelter@nd.edu ##
12200 ## ------------------------------ ##
12201 _ASBOX
12202     ) | sed "s/^/$as_me: WARNING:     /" >&2
12203    ;;
12204 esac
12205 { echo "$as_me:$LINENO: checking for iostream" >&5
12206 echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
12207 if test "${ac_cv_header_iostream+set}" = set; then
12208  echo $ECHO_N "(cached) $ECHO_C" >&6
12209 else
12210  ac_cv_header_iostream=$ac_header_preproc
10396   fi
10397 < { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
10398 < echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
10397 > { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10398 > echo "${ECHO_T}$ac_cv_c_inline" >&6; }
10399  
12215 fi
12216 if test $ac_cv_header_iostream = yes; then
10400  
10401 <
10402 < cat >>confdefs.h <<\_ACEOF
10403 < #define HAVE_IOSTREAM 1
10401 > case $ac_cv_c_inline in
10402 >  inline | yes) ;;
10403 >  *)
10404 >    case $ac_cv_c_inline in
10405 >      no) ac_val=;;
10406 >      *) ac_val=$ac_cv_c_inline;;
10407 >    esac
10408 >    cat >>confdefs.h <<_ACEOF
10409 > #ifndef __cplusplus
10410 > #define inline $ac_val
10411 > #endif
10412   _ACEOF
10413 +    ;;
10414 + esac
10415  
10416 <
10417 < else
10418 <
12226 <
12227 < for ac_header in iostream.h
12228 < do
12229 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12230 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12231 <  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12232 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12233 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10416 > { echo "$as_me:$LINENO: checking for size_t" >&5
10417 > echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10418 > if test "${ac_cv_type_size_t+set}" = set; then
10419    echo $ECHO_N "(cached) $ECHO_C" >&6
12235 fi
12236 ac_res=`eval echo '${'$as_ac_Header'}'`
12237               { echo "$as_me:$LINENO: result: $ac_res" >&5
12238 echo "${ECHO_T}$ac_res" >&6; }
10420   else
10421 <  # Is the header compilable?
12241 < { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12242 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12243 < cat >conftest.$ac_ext <<_ACEOF
10421 >  cat >conftest.$ac_ext <<_ACEOF
10422   /* confdefs.h.  */
10423   _ACEOF
10424   cat confdefs.h >>conftest.$ac_ext
10425   cat >>conftest.$ac_ext <<_ACEOF
10426   /* end confdefs.h.  */
10427   $ac_includes_default
10428 < #include <$ac_header>
10429 < _ACEOF
10430 < rm -f conftest.$ac_objext
10431 < if { (ac_try="$ac_compile"
10432 < case "(($ac_try" in
10433 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 <  *) ac_try_echo=$ac_try;;
10435 < esac
10436 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 <  (eval "$ac_compile") 2>conftest.er1
10438 <  ac_status=$?
10439 <  grep -v '^ *+' conftest.er1 >conftest.err
10440 <  rm -f conftest.er1
10441 <  cat conftest.err >&5
10442 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 <  (exit $ac_status); } && {
10444 <         test -z "$ac_cxx_werror_flag" ||
10445 <         test ! -s conftest.err
10446 <       } && test -s conftest.$ac_objext; then
12269 <  ac_header_compiler=yes
12270 < else
12271 <  echo "$as_me: failed program was:" >&5
12272 < sed 's/^/| /' conftest.$ac_ext >&5
12273 <
12274 <        ac_header_compiler=no
12275 < fi
12276 <
12277 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279 < echo "${ECHO_T}$ac_header_compiler" >&6; }
12280 <
12281 < # Is the header present?
12282 < { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12283 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12284 < cat >conftest.$ac_ext <<_ACEOF
12285 < /* confdefs.h.  */
12286 < _ACEOF
12287 < cat confdefs.h >>conftest.$ac_ext
12288 < cat >>conftest.$ac_ext <<_ACEOF
12289 < /* end confdefs.h.  */
12290 < #include <$ac_header>
12291 < _ACEOF
12292 < if { (ac_try="$ac_cpp conftest.$ac_ext"
12293 < case "(($ac_try" in
12294 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 <  *) ac_try_echo=$ac_try;;
12296 < esac
12297 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12299 <  ac_status=$?
12300 <  grep -v '^ *+' conftest.er1 >conftest.err
12301 <  rm -f conftest.er1
12302 <  cat conftest.err >&5
12303 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 <  (exit $ac_status); } >/dev/null && {
12305 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12306 <         test ! -s conftest.err
12307 <       }; then
12308 <  ac_header_preproc=yes
12309 < else
12310 <  echo "$as_me: failed program was:" >&5
12311 < sed 's/^/| /' conftest.$ac_ext >&5
12312 <
12313 <  ac_header_preproc=no
12314 < fi
12315 <
12316 < rm -f conftest.err conftest.$ac_ext
12317 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12318 < echo "${ECHO_T}$ac_header_preproc" >&6; }
12319 <
12320 < # So?  What about this header?
12321 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12322 <  yes:no: )
12323 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12324 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12325 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12326 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12327 <    ac_header_preproc=yes
12328 <    ;;
12329 <  no:yes:* )
12330 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12331 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12332 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12333 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12334 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12335 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12336 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12337 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12338 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12339 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12340 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12341 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12342 <    ( cat <<\_ASBOX
12343 < ## ------------------------------ ##
12344 < ## Report this to gezelter@nd.edu ##
12345 < ## ------------------------------ ##
12346 < _ASBOX
12347 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
12348 <    ;;
12349 < esac
12350 < { echo "$as_me:$LINENO: checking for $ac_header" >&5
12351 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12352 < if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12353 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12354 < else
12355 <  eval "$as_ac_Header=\$ac_header_preproc"
12356 < fi
12357 < ac_res=`eval echo '${'$as_ac_Header'}'`
12358 <               { echo "$as_me:$LINENO: result: $ac_res" >&5
12359 < echo "${ECHO_T}$ac_res" >&6; }
12360 <
12361 < fi
12362 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
12363 <  cat >>confdefs.h <<_ACEOF
12364 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12365 < _ACEOF
12366 <
12367 < fi
12368 <
12369 < done
12370 <
12371 <
12372 < fi
12373 <
12374 <
12375 <
12376 <
12377 <  if test "${ac_cv_header_iomanip+set}" = set; then
12378 <  { echo "$as_me:$LINENO: checking for iomanip" >&5
12379 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; }
12380 < if test "${ac_cv_header_iomanip+set}" = set; then
12381 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12382 < fi
12383 < { echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
12384 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6; }
12385 < else
12386 <  # Is the header compilable?
12387 < { echo "$as_me:$LINENO: checking iomanip usability" >&5
12388 < echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6; }
12389 < cat >conftest.$ac_ext <<_ACEOF
12390 < /* confdefs.h.  */
10428 > typedef size_t ac__type_new_;
10429 > #ifdef FC_DUMMY_MAIN
10430 > #ifndef FC_DUMMY_MAIN_EQ_F77
10431 > #  ifdef __cplusplus
10432 >     extern "C"
10433 > #  endif
10434 >   int FC_DUMMY_MAIN() { return 1; }
10435 > #endif
10436 > #endif
10437 > int
10438 > main ()
10439 > {
10440 > if ((ac__type_new_ *) 0)
10441 >  return 0;
10442 > if (sizeof (ac__type_new_))
10443 >  return 0;
10444 >  ;
10445 >  return 0;
10446 > }
10447   _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 $ac_includes_default
12396 #include <iomanip>
12397 _ACEOF
10448   rm -f conftest.$ac_objext
10449   if { (ac_try="$ac_compile"
10450   case "(($ac_try" in
# Line 12409 | Line 10459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459    cat conftest.err >&5
10460    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461    (exit $ac_status); } && {
10462 <         test -z "$ac_cxx_werror_flag" ||
10462 >         test -z "$ac_c_werror_flag" ||
10463           test ! -s conftest.err
10464         } && test -s conftest.$ac_objext; then
10465 <  ac_header_compiler=yes
10465 >  ac_cv_type_size_t=yes
10466   else
10467    echo "$as_me: failed program was:" >&5
10468   sed 's/^/| /' conftest.$ac_ext >&5
10469  
10470 <        ac_header_compiler=no
10470 >        ac_cv_type_size_t=no
10471   fi
10472  
10473   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 < { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10475 < echo "${ECHO_T}$ac_header_compiler" >&6; }
10474 > fi
10475 > { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10476 > echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10477 > if test $ac_cv_type_size_t = yes; then
10478 >  :
10479 > else
10480  
10481 < # Is the header present?
10482 < { echo "$as_me:$LINENO: checking iomanip presence" >&5
10483 < echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6; }
10484 < cat >conftest.$ac_ext <<_ACEOF
10481 > cat >>confdefs.h <<_ACEOF
10482 > #define size_t unsigned int
10483 > _ACEOF
10484 >
10485 > fi
10486 >
10487 > { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10488 > echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10489 > if test "${ac_cv_header_time+set}" = set; then
10490 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10491 > else
10492 >  cat >conftest.$ac_ext <<_ACEOF
10493   /* confdefs.h.  */
10494   _ACEOF
10495   cat confdefs.h >>conftest.$ac_ext
10496   cat >>conftest.$ac_ext <<_ACEOF
10497   /* end confdefs.h.  */
10498 < #include <iomanip>
10498 > #include <sys/types.h>
10499 > #include <sys/time.h>
10500 > #include <time.h>
10501 >
10502 > #ifdef FC_DUMMY_MAIN
10503 > #ifndef FC_DUMMY_MAIN_EQ_F77
10504 > #  ifdef __cplusplus
10505 >     extern "C"
10506 > #  endif
10507 >   int FC_DUMMY_MAIN() { return 1; }
10508 > #endif
10509 > #endif
10510 > int
10511 > main ()
10512 > {
10513 > if ((struct tm *) 0)
10514 > return 0;
10515 >  ;
10516 >  return 0;
10517 > }
10518   _ACEOF
10519 < if { (ac_try="$ac_cpp conftest.$ac_ext"
10519 > rm -f conftest.$ac_objext
10520 > if { (ac_try="$ac_compile"
10521   case "(($ac_try" in
10522    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523    *) ac_try_echo=$ac_try;;
10524   esac
10525   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 <  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10526 >  (eval "$ac_compile") 2>conftest.er1
10527    ac_status=$?
10528    grep -v '^ *+' conftest.er1 >conftest.err
10529    rm -f conftest.er1
10530    cat conftest.err >&5
10531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 <  (exit $ac_status); } >/dev/null && {
10533 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10532 >  (exit $ac_status); } && {
10533 >         test -z "$ac_c_werror_flag" ||
10534           test ! -s conftest.err
10535 <       }; then
10536 <  ac_header_preproc=yes
10535 >       } && test -s conftest.$ac_objext; then
10536 >  ac_cv_header_time=yes
10537   else
10538    echo "$as_me: failed program was:" >&5
10539   sed 's/^/| /' conftest.$ac_ext >&5
10540  
10541 <  ac_header_preproc=no
10541 >        ac_cv_header_time=no
10542   fi
10543  
10544 < rm -f conftest.err conftest.$ac_ext
12463 < { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12464 < echo "${ECHO_T}$ac_header_preproc" >&6; }
12465 <
12466 < # So?  What about this header?
12467 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12468 <  yes:no: )
12469 <    { echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5
12470 < echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;}
12471 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5
12472 < echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;}
12473 <    ac_header_preproc=yes
12474 <    ;;
12475 <  no:yes:* )
12476 <    { echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5
12477 < echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;}
12478 <    { echo "$as_me:$LINENO: WARNING: iomanip:     check for missing prerequisite headers?" >&5
12479 < echo "$as_me: WARNING: iomanip:     check for missing prerequisite headers?" >&2;}
12480 <    { echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5
12481 < echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;}
12482 <    { echo "$as_me:$LINENO: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&5
12483 < echo "$as_me: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&2;}
12484 <    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5
12485 < echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;}
12486 <    { echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5
12487 < echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;}
12488 <    ( cat <<\_ASBOX
12489 < ## ------------------------------ ##
12490 < ## Report this to gezelter@nd.edu ##
12491 < ## ------------------------------ ##
12492 < _ASBOX
12493 <     ) | sed "s/^/$as_me: WARNING:     /" >&2
12494 <    ;;
12495 < esac
12496 < { echo "$as_me:$LINENO: checking for iomanip" >&5
12497 < echo $ECHO_N "checking for iomanip... $ECHO_C" >&6; }
12498 < if test "${ac_cv_header_iomanip+set}" = set; then
12499 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12500 < else
12501 <  ac_cv_header_iomanip=$ac_header_preproc
10544 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10545   fi
10546 < { echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
10547 < echo "${ECHO_T}$ac_cv_header_iomanip" >&6; }
10546 > { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10547 > echo "${ECHO_T}$ac_cv_header_time" >&6; }
10548 > if test $ac_cv_header_time = yes; then
10549  
12506 fi
12507 if test $ac_cv_header_iomanip = yes; then
12508
12509
10550   cat >>confdefs.h <<\_ACEOF
10551 < #define HAVE_IOMANIP 1
10551 > #define TIME_WITH_SYS_TIME 1
10552   _ACEOF
10553  
10554 + fi
10555  
12515 else
10556  
10557 + # Checks for library functions.
10558  
10559 < for ac_header in iomanip.h
10559 > for ac_header in stdlib.h
10560   do
10561   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10562   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
# Line 12554 | Line 10595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595    cat conftest.err >&5
10596    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597    (exit $ac_status); } && {
10598 <         test -z "$ac_cxx_werror_flag" ||
10598 >         test -z "$ac_c_werror_flag" ||
10599           test ! -s conftest.err
10600         } && test -s conftest.$ac_objext; then
10601    ac_header_compiler=yes
# Line 12593 | Line 10634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634    cat conftest.err >&5
10635    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636    (exit $ac_status); } >/dev/null && {
10637 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10637 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10638           test ! -s conftest.err
10639         }; then
10640    ac_header_preproc=yes
# Line 12609 | Line 10650 | echo "${ECHO_T}$ac_header_preproc" >&6; }
10650   echo "${ECHO_T}$ac_header_preproc" >&6; }
10651  
10652   # So?  What about this header?
10653 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10653 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10654    yes:no: )
10655      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10656   echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
# Line 12658 | Line 10699 | done
10699   fi
10700  
10701   done
10702 +
10703 + { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
10704 + echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
10705 + if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
10706 +  echo $ECHO_N "(cached) $ECHO_C" >&6
10707 + else
10708 +  if test "$cross_compiling" = yes; then
10709 +  ac_cv_func_malloc_0_nonnull=no
10710 + else
10711 +  cat >conftest.$ac_ext <<_ACEOF
10712 + /* confdefs.h.  */
10713 + _ACEOF
10714 + cat confdefs.h >>conftest.$ac_ext
10715 + cat >>conftest.$ac_ext <<_ACEOF
10716 + /* end confdefs.h.  */
10717 + #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10718 + # include <stdlib.h>
10719 + #else
10720 + char *malloc ();
10721 + #endif
10722 +
10723 + #ifdef FC_DUMMY_MAIN
10724 + #ifndef FC_DUMMY_MAIN_EQ_F77
10725 + #  ifdef __cplusplus
10726 +     extern "C"
10727 + #  endif
10728 +   int FC_DUMMY_MAIN() { return 1; }
10729 + #endif
10730 + #endif
10731 + int
10732 + main ()
10733 + {
10734 + return ! malloc (0);
10735 +  ;
10736 +  return 0;
10737 + }
10738 + _ACEOF
10739 + rm -f conftest$ac_exeext
10740 + if { (ac_try="$ac_link"
10741 + case "(($ac_try" in
10742 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 +  *) ac_try_echo=$ac_try;;
10744 + esac
10745 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 +  (eval "$ac_link") 2>&5
10747 +  ac_status=$?
10748 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10750 +  { (case "(($ac_try" in
10751 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 +  *) ac_try_echo=$ac_try;;
10753 + esac
10754 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 +  (eval "$ac_try") 2>&5
10756 +  ac_status=$?
10757 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 +  (exit $ac_status); }; }; then
10759 +  ac_cv_func_malloc_0_nonnull=yes
10760 + else
10761 +  echo "$as_me: program exited with status $ac_status" >&5
10762 + echo "$as_me: failed program was:" >&5
10763 + sed 's/^/| /' conftest.$ac_ext >&5
10764  
10765 + ( exit $ac_status )
10766 + ac_cv_func_malloc_0_nonnull=no
10767 + fi
10768 + rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10769 + fi
10770  
10771 +
10772   fi
10773 + { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
10774 + echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
10775 + if test $ac_cv_func_malloc_0_nonnull = yes; then
10776  
10777 + cat >>confdefs.h <<\_ACEOF
10778 + #define HAVE_MALLOC 1
10779 + _ACEOF
10780  
10781 + else
10782 +  cat >>confdefs.h <<\_ACEOF
10783 + #define HAVE_MALLOC 0
10784 + _ACEOF
10785  
10786 +   case " $LIBOBJS " in
10787 +  *" malloc.$ac_objext "* ) ;;
10788 +  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10789 + ;;
10790 + esac
10791  
10792 < for ac_header in cmath
10792 >
10793 > cat >>confdefs.h <<\_ACEOF
10794 > #define malloc rpl_malloc
10795 > _ACEOF
10796 >
10797 > fi
10798 >
10799 >
10800 >
10801 >
10802 > for ac_header in stdlib.h
10803   do
10804   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10805   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
# Line 12704 | Line 10838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838    cat conftest.err >&5
10839    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840    (exit $ac_status); } && {
10841 <         test -z "$ac_cxx_werror_flag" ||
10841 >         test -z "$ac_c_werror_flag" ||
10842           test ! -s conftest.err
10843         } && test -s conftest.$ac_objext; then
10844    ac_header_compiler=yes
# Line 12743 | Line 10877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877    cat conftest.err >&5
10878    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879    (exit $ac_status); } >/dev/null && {
10880 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10880 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10881           test ! -s conftest.err
10882         }; then
10883    ac_header_preproc=yes
# Line 12759 | Line 10893 | echo "${ECHO_T}$ac_header_preproc" >&6; }
10893   echo "${ECHO_T}$ac_header_preproc" >&6; }
10894  
10895   # So?  What about this header?
10896 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10896 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897    yes:no: )
10898      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899   echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
# Line 12809 | Line 10943 | done
10943  
10944   done
10945  
10946 <
10947 <
10948 <
12815 <  { echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5
12816 < echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6; }
12817 < if test "${ac_cv_cxx_have_std_iostream+set}" = set; then
10946 > { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10947 > echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
10948 > if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10949    echo $ECHO_N "(cached) $ECHO_C" >&6
10950   else
10951 <
10952 <      ac_cv_cxx_have_std_iostream=no
10953 <      ac_cv_cxx_need_use_std_iostream=no
10954 <      if test "x$ac_cv_cxx_namespaces" = xyes; then
12824 <
12825 <        ac_ext=cpp
12826 < ac_cpp='$CXXCPP $CPPFLAGS'
12827 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12828 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12829 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12830 <
12831 <        cat >conftest.$ac_ext <<_ACEOF
10951 >  if test "$cross_compiling" = yes; then
10952 >  ac_cv_func_realloc_0_nonnull=no
10953 > else
10954 >  cat >conftest.$ac_ext <<_ACEOF
10955   /* confdefs.h.  */
10956   _ACEOF
10957   cat confdefs.h >>conftest.$ac_ext
10958   cat >>conftest.$ac_ext <<_ACEOF
10959   /* end confdefs.h.  */
10960 <
10961 < #ifdef HAVE_IOSTREAM
12839 < #include <iostream>
10960 > #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10961 > # include <stdlib.h>
10962   #else
10963 < #include <iostream.h>
10963 > char *realloc ();
10964   #endif
10965  
10966   #ifdef FC_DUMMY_MAIN
# Line 12852 | Line 10974 | main ()
10974   int
10975   main ()
10976   {
10977 < std::cout<<"Hello World"<<std::endl;return 0;
10977 > return ! realloc (0, 0);
10978    ;
10979    return 0;
10980   }
10981   _ACEOF
10982 < rm -f conftest.$ac_objext
10983 < if { (ac_try="$ac_compile"
10982 > rm -f conftest$ac_exeext
10983 > if { (ac_try="$ac_link"
10984   case "(($ac_try" in
10985    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986    *) ac_try_echo=$ac_try;;
10987   esac
10988   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 <  (eval "$ac_compile") 2>conftest.er1
10989 >  (eval "$ac_link") 2>&5
10990    ac_status=$?
12869  grep -v '^ *+' conftest.er1 >conftest.err
12870  rm -f conftest.er1
12871  cat conftest.err >&5
10991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 <  (exit $ac_status); } && {
10993 <         test -z "$ac_cxx_werror_flag" ||
12875 <         test ! -s conftest.err
12876 <       } && test -s conftest.$ac_objext; then
12877 <  ac_cv_cxx_have_std_iostream=yes
12878 < else
12879 <  echo "$as_me: failed program was:" >&5
12880 < sed 's/^/| /' conftest.$ac_ext >&5
12881 <
12882 <
12883 < fi
12884 <
12885 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 <        cat >conftest.$ac_ext <<_ACEOF
12887 < /* confdefs.h.  */
12888 < _ACEOF
12889 < cat confdefs.h >>conftest.$ac_ext
12890 < cat >>conftest.$ac_ext <<_ACEOF
12891 < /* end confdefs.h.  */
12892 <
12893 < #define __USE_STD_IOSTREAM 1
12894 < #ifdef HAVE_IOSTREAM
12895 < #include <iostream>
12896 < #else
12897 < #include <iostream.h>
12898 < #endif
12899 <
12900 < #ifdef FC_DUMMY_MAIN
12901 < #ifndef FC_DUMMY_MAIN_EQ_F77
12902 < #  ifdef __cplusplus
12903 <     extern "C"
12904 < #  endif
12905 <   int FC_DUMMY_MAIN() { return 1; }
12906 < #endif
12907 < #endif
12908 < int
12909 < main ()
12910 < {
12911 < std::cout<<"Hello World"<<std::endl;return 0;
12912 <  ;
12913 <  return 0;
12914 < }
12915 < _ACEOF
12916 < rm -f conftest.$ac_objext
12917 < if { (ac_try="$ac_compile"
12918 < case "(($ac_try" in
10992 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993 >  { (case "(($ac_try" in
10994    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995    *) ac_try_echo=$ac_try;;
10996   esac
10997   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 <  (eval "$ac_compile") 2>conftest.er1
10998 >  (eval "$ac_try") 2>&5
10999    ac_status=$?
12925  grep -v '^ *+' conftest.er1 >conftest.err
12926  rm -f conftest.er1
12927  cat conftest.err >&5
11000    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 <  (exit $ac_status); } && {
11002 <         test -z "$ac_cxx_werror_flag" ||
12931 <         test ! -s conftest.err
12932 <       } && test -s conftest.$ac_objext; then
12933 <  ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes
11001 >  (exit $ac_status); }; }; then
11002 >  ac_cv_func_realloc_0_nonnull=yes
11003   else
11004 <  echo "$as_me: failed program was:" >&5
11004 >  echo "$as_me: program exited with status $ac_status" >&5
11005 > echo "$as_me: failed program was:" >&5
11006   sed 's/^/| /' conftest.$ac_ext >&5
11007  
11008 <
11008 > ( exit $ac_status )
11009 > ac_cv_func_realloc_0_nonnull=no
11010   fi
11011 <
12941 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 <        ac_ext=cpp
12943 < ac_cpp='$CXXCPP $CPPFLAGS'
12944 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12945 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12947 <
12948 <      fi
12949 <
11011 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11012   fi
12951 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5
12952 echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6; }
12953  if test "$ac_cv_cxx_have_std_iostream" = yes; then
11013  
12955 cat >>confdefs.h <<\_ACEOF
12956 #define HAVE_STD_IOSTREAM 1
12957 _ACEOF
11014  
12959  fi
12960  if test "$ac_cv_cxx_need_use_std_iostream" = yes; then
12961
12962 cat >>confdefs.h <<\_ACEOF
12963 #define __USE_STD_IOSTREAM 1
12964 _ACEOF
12965
12966  fi
12967
12968
12969
12970
12971  { echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5
12972 echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6; }
12973 if test "${ac_cv_cxx_have_std_stl+set}" = set; then
12974  echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976
12977      ac_cv_cxx_have_std_stl=no
12978      if test "x$ac_cv_cxx_namespaces" = xyes; then
12979
12980        ac_ext=cpp
12981 ac_cpp='$CXXCPP $CPPFLAGS'
12982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12985
12986        cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <list>
12993
12994 #ifdef FC_DUMMY_MAIN
12995 #ifndef FC_DUMMY_MAIN_EQ_F77
12996 #  ifdef __cplusplus
12997     extern "C"
12998 #  endif
12999   int FC_DUMMY_MAIN() { return 1; }
13000 #endif
13001 #endif
13002 int
13003 main ()
13004 {
13005 std::list<int> foo;return 0;
13006  ;
13007  return 0;
13008 }
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
13012 case "(($ac_try" in
13013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014  *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017  (eval "$ac_compile") 2>conftest.er1
13018  ac_status=$?
13019  grep -v '^ *+' conftest.er1 >conftest.err
13020  rm -f conftest.er1
13021  cat conftest.err >&5
13022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023  (exit $ac_status); } && {
13024         test -z "$ac_cxx_werror_flag" ||
13025         test ! -s conftest.err
13026       } && test -s conftest.$ac_objext; then
13027  ac_cv_cxx_have_std_stl=yes
13028 else
13029  echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13031
13032
11015   fi
11016 + { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
11017 + echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
11018 + if test $ac_cv_func_realloc_0_nonnull = yes; then
11019  
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036        ac_ext=cpp
13037 ac_cpp='$CXXCPP $CPPFLAGS'
13038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13041
13042      fi
13043
13044 fi
13045 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5
13046 echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6; }
13047  if test "$ac_cv_cxx_have_std_stl" = yes; then
13048
11020   cat >>confdefs.h <<\_ACEOF
11021 < #define HAVE_STD_STL 1
11021 > #define HAVE_REALLOC 1
11022   _ACEOF
11023  
13053  fi
13054
13055
13056
13057  { echo "$as_me:$LINENO: checking for fstream::attach()" >&5
13058 echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6; }
13059 if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then
13060  echo $ECHO_N "(cached) $ECHO_C" >&6
11024   else
11025 <
11026 <    ac_cv_cxx_have_fstream_attach=no
13064 <
13065 <    ac_ext=cpp
13066 < ac_cpp='$CXXCPP $CPPFLAGS'
13067 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13068 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13070 <
13071 <    cat >conftest.$ac_ext <<_ACEOF
13072 < /* confdefs.h.  */
11025 >  cat >>confdefs.h <<\_ACEOF
11026 > #define HAVE_REALLOC 0
11027   _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
11028  
11029 < #ifdef HAVE_IOSTREAM
11030 < #include <fstream>
11031 < #else
11032 < #include <fstream.h>
13082 < #endif
13083 < #ifdef HAVE_STD_IOSTREAM
13084 < using namespace std;
13085 < #endif
13086 <
13087 < #ifdef FC_DUMMY_MAIN
13088 < #ifndef FC_DUMMY_MAIN_EQ_F77
13089 < #  ifdef __cplusplus
13090 <     extern "C"
13091 < #  endif
13092 <   int FC_DUMMY_MAIN() { return 1; }
13093 < #endif
13094 < #endif
13095 < int
13096 < main ()
13097 < {
13098 < int fd=0;ofstream s;s.attach(fd);
13099 <  ;
13100 <  return 0;
13101 < }
13102 < _ACEOF
13103 < rm -f conftest.$ac_objext
13104 < if { (ac_try="$ac_compile"
13105 < case "(($ac_try" in
13106 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 <  *) ac_try_echo=$ac_try;;
11029 >   case " $LIBOBJS " in
11030 >  *" realloc.$ac_objext "* ) ;;
11031 >  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11032 > ;;
11033   esac
13109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110  (eval "$ac_compile") 2>conftest.er1
13111  ac_status=$?
13112  grep -v '^ *+' conftest.er1 >conftest.err
13113  rm -f conftest.er1
13114  cat conftest.err >&5
13115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116  (exit $ac_status); } && {
13117         test -z "$ac_cxx_werror_flag" ||
13118         test ! -s conftest.err
13119       } && test -s conftest.$ac_objext; then
13120  ac_cv_cxx_have_fstream_attach=yes
13121 else
13122  echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
11034  
11035  
13126 fi
13127
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129    ac_ext=cpp
13130 ac_cpp='$CXXCPP $CPPFLAGS'
13131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13134
13135
13136 fi
13137 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5
13138 echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6; }
13139  if test "$ac_cv_cxx_have_fstream_attach" = yes; then
13140
11036   cat >>confdefs.h <<\_ACEOF
11037 < #define HAVE_FSTREAM_ATTACH 1
13143 < _ACEOF
13144 <
13145 <  fi
13146 <
13147 <
13148 <
13149 <  { echo "$as_me:$LINENO: checking for fstream::open()" >&5
13150 < echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6; }
13151 < if test "${ac_cv_cxx_have_fstream_open+set}" = set; then
13152 <  echo $ECHO_N "(cached) $ECHO_C" >&6
13153 < else
13154 <
13155 <    ac_cv_cxx_have_fstream_open=no
13156 <    ac_cv_cxx_fstream_open_prot=no
13157 <
13158 <    ac_ext=cpp
13159 < ac_cpp='$CXXCPP $CPPFLAGS'
13160 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13163 <
13164 <    # Try with 2 parameters
13165 <    cat >conftest.$ac_ext <<_ACEOF
13166 < /* confdefs.h.  */
13167 < _ACEOF
13168 < cat confdefs.h >>conftest.$ac_ext
13169 < cat >>conftest.$ac_ext <<_ACEOF
13170 < /* end confdefs.h.  */
13171 <
13172 < #ifdef HAVE_IOSTREAM
13173 < #include <fstream>
13174 < #else
13175 < #include <fstream.h>
13176 < #endif
13177 < #ifdef HAVE_STD_IOSTREAM
13178 < using namespace std;
13179 < #endif
13180 <
13181 < #ifdef FC_DUMMY_MAIN
13182 < #ifndef FC_DUMMY_MAIN_EQ_F77
13183 < #  ifdef __cplusplus
13184 <     extern "C"
13185 < #  endif
13186 <   int FC_DUMMY_MAIN() { return 1; }
13187 < #endif
13188 < #endif
13189 < int
13190 < main ()
13191 < {
13192 < ofstream s;s.open("conftest.txt",ios::out|ios::trunc);
13193 <  ;
13194 <  return 0;
13195 < }
13196 < _ACEOF
13197 < rm -f conftest.$ac_objext
13198 < if { (ac_try="$ac_compile"
13199 < case "(($ac_try" in
13200 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 <  *) ac_try_echo=$ac_try;;
13202 < esac
13203 < eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 <  (eval "$ac_compile") 2>conftest.er1
13205 <  ac_status=$?
13206 <  grep -v '^ *+' conftest.er1 >conftest.err
13207 <  rm -f conftest.er1
13208 <  cat conftest.err >&5
13209 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 <  (exit $ac_status); } && {
13211 <         test -z "$ac_cxx_werror_flag" ||
13212 <         test ! -s conftest.err
13213 <       } && test -s conftest.$ac_objext; then
13214 <  ac_cv_cxx_have_fstream_open=yes
13215 < else
13216 <  echo "$as_me: failed program was:" >&5
13217 < sed 's/^/| /' conftest.$ac_ext >&5
13218 <
13219 <
13220 < fi
13221 <
13222 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 <    # Try with mode parameter
13224 <    cat >conftest.$ac_ext <<_ACEOF
13225 < /* confdefs.h.  */
11037 > #define realloc rpl_realloc
11038   _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
11039  
13231 #ifdef HAVE_IOSTREAM
13232 #include <fstream>
13233 #else
13234 #include <fstream.h>
13235 #endif
13236 #ifdef HAVE_STD_IOSTREAM
13237 using namespace std;
13238 #endif
13239
13240 #ifdef FC_DUMMY_MAIN
13241 #ifndef FC_DUMMY_MAIN_EQ_F77
13242 #  ifdef __cplusplus
13243     extern "C"
13244 #  endif
13245   int FC_DUMMY_MAIN() { return 1; }
13246 #endif
13247 #endif
13248 int
13249 main ()
13250 {
13251 ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666);
13252  ;
13253  return 0;
13254 }
13255 _ACEOF
13256 rm -f conftest.$ac_objext
13257 if { (ac_try="$ac_compile"
13258 case "(($ac_try" in
13259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260  *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263  (eval "$ac_compile") 2>conftest.er1
13264  ac_status=$?
13265  grep -v '^ *+' conftest.er1 >conftest.err
13266  rm -f conftest.er1
13267  cat conftest.err >&5
13268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269  (exit $ac_status); } && {
13270         test -z "$ac_cxx_werror_flag" ||
13271         test ! -s conftest.err
13272       } && test -s conftest.$ac_objext; then
13273  ac_cv_cxx_fstream_open_prot=yes
13274 else
13275  echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278
11040   fi
11041  
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282    ac_ext=cpp
13283 ac_cpp='$CXXCPP $CPPFLAGS'
13284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11042  
11043  
13289 fi
13290 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5
13291 echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6; }
13292  if test "$ac_cv_cxx_have_fstream_open" = yes; then
11044  
13294 cat >>confdefs.h <<\_ACEOF
13295 #define HAVE_FSTREAM_OPEN 1
13296 _ACEOF
11045  
11046 <  fi
13299 <  if test "$ac_cv_cxx_fstream_open_prot" = yes; then
13300 <
13301 < cat >>confdefs.h <<\_ACEOF
13302 < #define FSTREAM_OPEN_PROT 1
13303 < _ACEOF
13304 <
13305 <  fi
13306 <
13307 <
13308 <
13309 <
13310 <
13311 <
13312 <
13313 < for ac_header in ctype.h iostream fstream sstream strstream
11046 > for ac_header in sys/select.h sys/socket.h
11047   do
11048   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11049   if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
# Line 13349 | Line 11082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082    cat conftest.err >&5
11083    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084    (exit $ac_status); } && {
11085 <         test -z "$ac_cxx_werror_flag" ||
11085 >         test -z "$ac_c_werror_flag" ||
11086           test ! -s conftest.err
11087         } && test -s conftest.$ac_objext; then
11088    ac_header_compiler=yes
# Line 13388 | Line 11121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121    cat conftest.err >&5
11122    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123    (exit $ac_status); } >/dev/null && {
11124 <         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11124 >         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11125           test ! -s conftest.err
11126         }; then
11127    ac_header_preproc=yes
# Line 13404 | Line 11137 | echo "${ECHO_T}$ac_header_preproc" >&6; }
11137   echo "${ECHO_T}$ac_header_preproc" >&6; }
11138  
11139   # So?  What about this header?
11140 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11140 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11141    yes:no: )
11142      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11143   echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
# Line 13454 | Line 11187 | done
11187  
11188   done
11189  
11190 < # AC_CPP_FUNC
11191 < # ------------------ #
11192 < # Checks to see if ANSI C99 CPP variable __func__ works.
13460 < # If not, perhaps __FUNCTION__ works instead.
13461 < # If not, we'll just define __func__ to "".
13462 < # AC_CPP_FUNC
13463 <
13464 <   case $ac_cv_prog_cc_stdc in
13465 <  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
13466 <  *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
13467 < echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
13468 < if test "${ac_cv_prog_cc_c99+set}" = set; then
11190 > { echo "$as_me:$LINENO: checking types of arguments for select" >&5
11191 > echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
11192 > if test "${ac_cv_func_select_args+set}" = set; then
11193    echo $ECHO_N "(cached) $ECHO_C" >&6
11194   else
11195 <  ac_cv_prog_cc_c99=no
11196 < ac_save_CC=$CC
11197 < cat >conftest.$ac_ext <<_ACEOF
11195 >  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11196 > for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11197 >  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11198 >   cat >conftest.$ac_ext <<_ACEOF
11199   /* confdefs.h.  */
11200   _ACEOF
11201   cat confdefs.h >>conftest.$ac_ext
11202   cat >>conftest.$ac_ext <<_ACEOF
11203   /* end confdefs.h.  */
11204 < #include <stdarg.h>
11205 < #include <stdbool.h>
11206 < #include <stdlib.h>
11207 < #include <wchar.h>
11208 < #include <stdio.h>
11204 > $ac_includes_default
11205 > #ifdef HAVE_SYS_SELECT_H
11206 > # include <sys/select.h>
11207 > #endif
11208 > #ifdef HAVE_SYS_SOCKET_H
11209 > # include <sys/socket.h>
11210 > #endif
11211  
11212 < // Check varargs macros.  These examples are taken from C99 6.10.3.5.
11213 < #define debug(...) fprintf (stderr, __VA_ARGS__)
11214 < #define showlist(...) puts (#__VA_ARGS__)
11215 < #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11216 < static void
11217 < test_varargs_macros (void)
11212 > #ifdef FC_DUMMY_MAIN
11213 > #ifndef FC_DUMMY_MAIN_EQ_F77
11214 > #  ifdef __cplusplus
11215 >     extern "C"
11216 > #  endif
11217 >   int FC_DUMMY_MAIN() { return 1; }
11218 > #endif
11219 > #endif
11220 > int
11221 > main ()
11222   {
11223 <  int x = 1234;
11224 <  int y = 5678;
11225 <  debug ("Flag");
11226 <  debug ("X = %d\n", x);
11227 <  showlist (The first, second, and third items.);
13497 <  report (x>y, "x is %d but y is %d", x, y);
11223 > extern int select ($ac_arg1,
11224 >                                            $ac_arg234, $ac_arg234, $ac_arg234,
11225 >                                            $ac_arg5);
11226 >  ;
11227 >  return 0;
11228   }
11229 + _ACEOF
11230 + rm -f conftest.$ac_objext
11231 + if { (ac_try="$ac_compile"
11232 + case "(($ac_try" in
11233 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 +  *) ac_try_echo=$ac_try;;
11235 + esac
11236 + eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 +  (eval "$ac_compile") 2>conftest.er1
11238 +  ac_status=$?
11239 +  grep -v '^ *+' conftest.er1 >conftest.err
11240 +  rm -f conftest.er1
11241 +  cat conftest.err >&5
11242 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 +  (exit $ac_status); } && {
11244 +         test -z "$ac_c_werror_flag" ||
11245 +         test ! -s conftest.err
11246 +       } && test -s conftest.$ac_objext; then
11247 +  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11248 + else
11249 +  echo "$as_me: failed program was:" >&5
11250 + sed 's/^/| /' conftest.$ac_ext >&5
11251  
13500 // Check long long types.
13501 #define BIG64 18446744073709551615ull
13502 #define BIG32 4294967295ul
13503 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13504 #if !BIG_OK
13505  your preprocessor is broken;
13506 #endif
13507 #if BIG_OK
13508 #else
13509  your preprocessor is broken;
13510 #endif
13511 static long long int bignum = -9223372036854775807LL;
13512 static unsigned long long int ubignum = BIG64;
11252  
11253 < struct incomplete_array
13515 < {
13516 <  int datasize;
13517 <  double data[];
13518 < };
11253 > fi
11254  
11255 < struct named_init {
11256 <  int number;
11257 <  const wchar_t *name;
11258 <  double average;
11259 < };
11255 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 >  done
11257 > done
11258 > done
11259 > # Provide a safe default value.
11260 > : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11261  
11262 < typedef const char *ccp;
11262 > fi
11263 > { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11264 > echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
11265 > ac_save_IFS=$IFS; IFS=','
11266 > set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11267 > IFS=$ac_save_IFS
11268 > shift
11269  
11270 < static inline int
11271 < test_restrict (ccp restrict text)
11270 > cat >>confdefs.h <<_ACEOF
11271 > #define SELECT_TYPE_ARG1 $1
11272 > _ACEOF
11273 >
11274 >
11275 > cat >>confdefs.h <<_ACEOF
11276 > #define SELECT_TYPE_ARG234 ($2)
11277 > _ACEOF
11278 >
11279 >
11280 > cat >>confdefs.h <<_ACEOF
11281 > #define SELECT_TYPE_ARG5 ($3)
11282 > _ACEOF
11283 >
11284 > rm -f conftest*
11285 >
11286 > { echo "$as_me:$LINENO: checking for working strtod" >&5
11287 > echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
11288 > if test "${ac_cv_func_strtod+set}" = set; then
11289 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11290 > else
11291 >  if test "$cross_compiling" = yes; then
11292 >  ac_cv_func_strtod=no
11293 > else
11294 >  cat >conftest.$ac_ext <<_ACEOF
11295 > /* confdefs.h.  */
11296 > _ACEOF
11297 > cat confdefs.h >>conftest.$ac_ext
11298 > cat >>conftest.$ac_ext <<_ACEOF
11299 > /* end confdefs.h.  */
11300 >
11301 > $ac_includes_default
11302 > #ifndef strtod
11303 > double strtod ();
11304 > #endif
11305 > int
11306 > main()
11307   {
11308 <  // See if C++-style comments work.
11309 <  // Iterate through items via the restricted pointer.
11310 <  // Also check for declarations in for loops.
11311 <  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11312 <    continue;
11308 >  {
11309 >    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
11310 >    char *string = " +69";
11311 >    char *term;
11312 >    double value;
11313 >    value = strtod (string, &term);
11314 >    if (value != 69 || term != (string + 4))
11315 >      return 1;
11316 >  }
11317 >
11318 >  {
11319 >    /* Under Solaris 2.4, strtod returns the wrong value for the
11320 >       terminating character under some conditions.  */
11321 >    char *string = "NaN";
11322 >    char *term;
11323 >    strtod (string, &term);
11324 >    if (term != string && *(term - 1) == 0)
11325 >      return 1;
11326 >  }
11327    return 0;
11328   }
11329  
11330 < // Check varargs and va_copy.
11331 < static void
11332 < test_varargs (const char *format, ...)
11333 < {
11334 <  va_list args;
11335 <  va_start (args, format);
11336 <  va_list args_copy;
11337 <  va_copy (args_copy, args);
11330 > _ACEOF
11331 > rm -f conftest$ac_exeext
11332 > if { (ac_try="$ac_link"
11333 > case "(($ac_try" in
11334 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 >  *) ac_try_echo=$ac_try;;
11336 > esac
11337 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 >  (eval "$ac_link") 2>&5
11339 >  ac_status=$?
11340 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11342 >  { (case "(($ac_try" in
11343 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 >  *) ac_try_echo=$ac_try;;
11345 > esac
11346 > eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 >  (eval "$ac_try") 2>&5
11348 >  ac_status=$?
11349 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 >  (exit $ac_status); }; }; then
11351 >  ac_cv_func_strtod=yes
11352 > else
11353 >  echo "$as_me: program exited with status $ac_status" >&5
11354 > echo "$as_me: failed program was:" >&5
11355 > sed 's/^/| /' conftest.$ac_ext >&5
11356 >
11357 > ( exit $ac_status )
11358 > ac_cv_func_strtod=no
11359 > fi
11360 > rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11361 > fi
11362 >
11363 >
11364 > fi
11365 > { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11366 > echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
11367 > if test $ac_cv_func_strtod = no; then
11368 >  case " $LIBOBJS " in
11369 >  *" strtod.$ac_objext "* ) ;;
11370 >  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11371 > ;;
11372 > esac
11373 >
11374 > { echo "$as_me:$LINENO: checking for pow" >&5
11375 > echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
11376 > if test "${ac_cv_func_pow+set}" = set; then
11377 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11378 > else
11379 >  cat >conftest.$ac_ext <<_ACEOF
11380 > /* confdefs.h.  */
11381 > _ACEOF
11382 > cat confdefs.h >>conftest.$ac_ext
11383 > cat >>conftest.$ac_ext <<_ACEOF
11384 > /* end confdefs.h.  */
11385 > /* Define pow to an innocuous variant, in case <limits.h> declares pow.
11386 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11387 > #define pow innocuous_pow
11388 >
11389 > /* System header to define __stub macros and hopefully few prototypes,
11390 >    which can conflict with char pow (); below.
11391 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11392 >    <limits.h> exists even on freestanding compilers.  */
11393 >
11394 > #ifdef __STDC__
11395 > # include <limits.h>
11396 > #else
11397 > # include <assert.h>
11398 > #endif
11399  
11400 <  const char *str;
13549 <  int number;
13550 <  float fnumber;
11400 > #undef pow
11401  
11402 <  while (*format)
11403 <    {
11404 <      switch (*format++)
11405 <        {
11406 <        case 's': // string
11407 <          str = va_arg (args_copy, const char *);
11408 <          break;
11409 <        case 'd': // int
11410 <          number = va_arg (args_copy, int);
11411 <          break;
11412 <        case 'f': // float
11413 <          fnumber = va_arg (args_copy, double);
11414 <          break;
13565 <        default:
13566 <          break;
13567 <        }
13568 <    }
13569 <  va_end (args_copy);
13570 <  va_end (args);
13571 < }
11402 > /* Override any GCC internal prototype to avoid an error.
11403 >   Use char because int might match the return type of a GCC
11404 >   builtin and then its argument prototype would still apply.  */
11405 > #ifdef __cplusplus
11406 > extern "C"
11407 > #endif
11408 > char pow ();
11409 > /* The GNU C library defines this for functions which it implements
11410 >    to always fail with ENOSYS.  Some functions are actually named
11411 >    something starting with __ and the normal name is an alias.  */
11412 > #if defined __stub_pow || defined __stub___pow
11413 > choke me
11414 > #endif
11415  
11416   #ifdef FC_DUMMY_MAIN
11417   #ifndef FC_DUMMY_MAIN_EQ_F77
# Line 13581 | Line 11424 | main ()
11424   int
11425   main ()
11426   {
11427 <
13585 <  // Check bool.
13586 <  _Bool success = false;
13587 <
13588 <  // Check restrict.
13589 <  if (test_restrict ("String literal") == 0)
13590 <    success = true;
13591 <  char *restrict newvar = "Another string";
13592 <
13593 <  // Check varargs.
13594 <  test_varargs ("s, d' f .", "string", 65, 34.234);
13595 <  test_varargs_macros ();
13596 <
13597 <  // Check flexible array members.
13598 <  struct incomplete_array *ia =
13599 <    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13600 <  ia->datasize = 10;
13601 <  for (int i = 0; i < ia->datasize; ++i)
13602 <    ia->data[i] = i * 1.234;
13603 <
13604 <  // Check named initializers.
13605 <  struct named_init ni = {
13606 <    .number = 34,
13607 <    .name = L"Test wide string",
13608 <    .average = 543.34343,
13609 <  };
13610 <
13611 <  ni.number = 58;
13612 <
13613 <  int dynamic_array[ni.number];
13614 <  dynamic_array[ni.number - 1] = 543;
13615 <
13616 <  // work around unused variable warnings
13617 <  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13618 <          || dynamic_array[ni.number - 1] != 543);
13619 <
11427 > return pow ();
11428    ;
11429    return 0;
11430   }
11431   _ACEOF
11432 < for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
11433 < do
13626 <  CC="$ac_save_CC $ac_arg"
13627 <  rm -f conftest.$ac_objext
13628 < if { (ac_try="$ac_compile"
11432 > rm -f conftest.$ac_objext conftest$ac_exeext
11433 > if { (ac_try="$ac_link"
11434   case "(($ac_try" in
11435    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436    *) ac_try_echo=$ac_try;;
11437   esac
11438   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 <  (eval "$ac_compile") 2>conftest.er1
11439 >  (eval "$ac_link") 2>conftest.er1
11440    ac_status=$?
11441    grep -v '^ *+' conftest.er1 >conftest.err
11442    rm -f conftest.er1
11443    cat conftest.err >&5
11444    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445    (exit $ac_status); } && {
11446 <         test -z "$ac_cxx_werror_flag" ||
11446 >         test -z "$ac_c_werror_flag" ||
11447           test ! -s conftest.err
11448 <       } && test -s conftest.$ac_objext; then
11449 <  ac_cv_prog_cc_c99=$ac_arg
11448 >       } && test -s conftest$ac_exeext &&
11449 >       $as_test_x conftest$ac_exeext; then
11450 >  ac_cv_func_pow=yes
11451   else
11452    echo "$as_me: failed program was:" >&5
11453   sed 's/^/| /' conftest.$ac_ext >&5
11454  
11455 <
11455 >        ac_cv_func_pow=no
11456   fi
11457  
11458 < rm -f core conftest.err conftest.$ac_objext
11459 <  test "x$ac_cv_prog_cc_c99" != "xno" && break
13654 < done
13655 < rm -f conftest.$ac_ext
13656 < CC=$ac_save_CC
13657 <
11458 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11459 >      conftest$ac_exeext conftest.$ac_ext
11460   fi
11461 < # AC_CACHE_VAL
11462 < case "x$ac_cv_prog_cc_c99" in
11463 <  x)
11464 <    { echo "$as_me:$LINENO: result: none needed" >&5
11465 < echo "${ECHO_T}none needed" >&6; } ;;
11466 <  xno)
11467 <    { echo "$as_me:$LINENO: result: unsupported" >&5
13666 < echo "${ECHO_T}unsupported" >&6; } ;;
13667 <  *)
13668 <    CC="$CC $ac_cv_prog_cc_c99"
13669 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
13670 < echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
13671 < esac
13672 < if test "x$ac_cv_prog_cc_c99" != xno; then
13673 <  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
13674 < else
13675 <  { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13676 < echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13677 < if test "${ac_cv_prog_cc_c89+set}" = set; then
11461 > { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
11462 > echo "${ECHO_T}$ac_cv_func_pow" >&6; }
11463 >
11464 > if test $ac_cv_func_pow = no; then
11465 >  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
11466 > echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
11467 > if test "${ac_cv_lib_m_pow+set}" = set; then
11468    echo $ECHO_N "(cached) $ECHO_C" >&6
11469   else
11470 <  ac_cv_prog_cc_c89=no
11471 < ac_save_CC=$CC
11470 >  ac_check_lib_save_LIBS=$LIBS
11471 > LIBS="-lm  $LIBS"
11472   cat >conftest.$ac_ext <<_ACEOF
11473   /* confdefs.h.  */
11474   _ACEOF
11475   cat confdefs.h >>conftest.$ac_ext
11476   cat >>conftest.$ac_ext <<_ACEOF
11477   /* end confdefs.h.  */
13688 #include <stdarg.h>
13689 #include <stdio.h>
13690 #include <sys/types.h>
13691 #include <sys/stat.h>
13692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13693 struct buf { int x; };
13694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13695 static char *e (p, i)
13696     char **p;
13697     int i;
13698 {
13699  return p[i];
13700 }
13701 static char *f (char * (*g) (char **, int), char **p, ...)
13702 {
13703  char *s;
13704  va_list v;
13705  va_start (v,p);
13706  s = g (p, va_arg (v,int));
13707  va_end (v);
13708  return s;
13709 }
11478  
11479 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11480 <   function prototypes and stuff, but not '\xHH' hex character constants.
11481 <   These don't provoke an error unfortunately, instead are silently treated
11482 <   as 'x'.  The following induces an error, until -std is added to get
11483 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11484 <   array size at least.  It's necessary to write '\x00'==0 to get something
11485 <   that's true only with -std.  */
13718 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13719 <
13720 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13721 <   inside strings and character constants.  */
13722 < #define FOO(x) 'x'
13723 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13724 <
13725 < int test (int i, double x);
13726 < struct s1 {int (*f) (int a);};
13727 < struct s2 {int (*f) (double a);};
13728 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13729 < int argc;
13730 < char **argv;
11479 > /* Override any GCC internal prototype to avoid an error.
11480 >   Use char because int might match the return type of a GCC
11481 >   builtin and then its argument prototype would still apply.  */
11482 > #ifdef __cplusplus
11483 > extern "C"
11484 > #endif
11485 > char pow ();
11486   #ifdef FC_DUMMY_MAIN
11487   #ifndef FC_DUMMY_MAIN_EQ_F77
11488   #  ifdef __cplusplus
# Line 13739 | Line 11494 | main ()
11494   int
11495   main ()
11496   {
11497 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11497 > return pow ();
11498    ;
11499    return 0;
11500   }
11501   _ACEOF
11502 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11503 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13749 < do
13750 <  CC="$ac_save_CC $ac_arg"
13751 <  rm -f conftest.$ac_objext
13752 < if { (ac_try="$ac_compile"
11502 > rm -f conftest.$ac_objext conftest$ac_exeext
11503 > if { (ac_try="$ac_link"
11504   case "(($ac_try" in
11505    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506    *) ac_try_echo=$ac_try;;
11507   esac
11508   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 <  (eval "$ac_compile") 2>conftest.er1
11509 >  (eval "$ac_link") 2>conftest.er1
11510    ac_status=$?
11511    grep -v '^ *+' conftest.er1 >conftest.err
11512    rm -f conftest.er1
11513    cat conftest.err >&5
11514    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515    (exit $ac_status); } && {
11516 <         test -z "$ac_cxx_werror_flag" ||
11516 >         test -z "$ac_c_werror_flag" ||
11517           test ! -s conftest.err
11518 <       } && test -s conftest.$ac_objext; then
11519 <  ac_cv_prog_cc_c89=$ac_arg
11518 >       } && test -s conftest$ac_exeext &&
11519 >       $as_test_x conftest$ac_exeext; then
11520 >  ac_cv_lib_m_pow=yes
11521   else
11522    echo "$as_me: failed program was:" >&5
11523   sed 's/^/| /' conftest.$ac_ext >&5
11524  
11525 <
11525 >        ac_cv_lib_m_pow=no
11526   fi
11527  
11528 < rm -f core conftest.err conftest.$ac_objext
11529 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
11530 < done
13779 < rm -f conftest.$ac_ext
13780 < CC=$ac_save_CC
13781 <
11528 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11529 >      conftest$ac_exeext conftest.$ac_ext
11530 > LIBS=$ac_check_lib_save_LIBS
11531   fi
11532 < # AC_CACHE_VAL
11533 < case "x$ac_cv_prog_cc_c89" in
11534 <  x)
11535 <    { echo "$as_me:$LINENO: result: none needed" >&5
13787 < echo "${ECHO_T}none needed" >&6; } ;;
13788 <  xno)
13789 <    { echo "$as_me:$LINENO: result: unsupported" >&5
13790 < echo "${ECHO_T}unsupported" >&6; } ;;
13791 <  *)
13792 <    CC="$CC $ac_cv_prog_cc_c89"
13793 <    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13794 < echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13795 < esac
13796 < if test "x$ac_cv_prog_cc_c89" != xno; then
13797 <  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
11532 > { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
11533 > echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
11534 > if test $ac_cv_lib_m_pow = yes; then
11535 >  POW_LIB=-lm
11536   else
11537 <  ac_cv_prog_cc_stdc=no
11537 >  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
11538 > echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11539   fi
11540  
13802
11541   fi
11542  
13805 ;;
13806 esac
13807  { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
13808 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
13809  if test "${ac_cv_prog_cc_stdc+set}" = set; then
13810  echo $ECHO_N "(cached) $ECHO_C" >&6
11543   fi
11544  
13813  case $ac_cv_prog_cc_stdc in
13814  no) { echo "$as_me:$LINENO: result: unsupported" >&5
13815 echo "${ECHO_T}unsupported" >&6; } ;;
13816  '') { echo "$as_me:$LINENO: result: none needed" >&5
13817 echo "${ECHO_T}none needed" >&6; } ;;
13818  *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13819 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
13820 esac
11545  
11546  
11547 < { echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
11548 < echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6; }
11549 < if test "${ac_cv_cpp_func+set}" = set; then
11547 >
11548 >
11549 >
11550 >
11551 >
11552 >
11553 >
11554 >
11555 >
11556 >
11557 >
11558 >
11559 >
11560 >
11561 >
11562 >
11563 >
11564 >
11565 >
11566 > for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table
11567 > do
11568 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11569 > { echo "$as_me:$LINENO: checking for $ac_func" >&5
11570 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11571 > if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11572    echo $ECHO_N "(cached) $ECHO_C" >&6
11573   else
11574    cat >conftest.$ac_ext <<_ACEOF
# Line 13831 | Line 11577 | cat >>conftest.$ac_ext <<_ACEOF
11577   cat confdefs.h >>conftest.$ac_ext
11578   cat >>conftest.$ac_ext <<_ACEOF
11579   /* end confdefs.h.  */
11580 + /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11581 +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11582 + #define $ac_func innocuous_$ac_func
11583  
11584 + /* System header to define __stub macros and hopefully few prototypes,
11585 +    which can conflict with char $ac_func (); below.
11586 +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11587 +    <limits.h> exists even on freestanding compilers.  */
11588 +
11589 + #ifdef __STDC__
11590 + # include <limits.h>
11591 + #else
11592 + # include <assert.h>
11593 + #endif
11594 +
11595 + #undef $ac_func
11596 +
11597 + /* Override any GCC internal prototype to avoid an error.
11598 +   Use char because int might match the return type of a GCC
11599 +   builtin and then its argument prototype would still apply.  */
11600 + #ifdef __cplusplus
11601 + extern "C"
11602 + #endif
11603 + char $ac_func ();
11604 + /* The GNU C library defines this for functions which it implements
11605 +    to always fail with ENOSYS.  Some functions are actually named
11606 +    something starting with __ and the normal name is an alias.  */
11607 + #if defined __stub_$ac_func || defined __stub___$ac_func
11608 + choke me
11609 + #endif
11610 +
11611   #ifdef FC_DUMMY_MAIN
11612   #ifndef FC_DUMMY_MAIN_EQ_F77
11613   #  ifdef __cplusplus
# Line 13843 | Line 11619 | main ()
11619   int
11620   main ()
11621   {
11622 < const char *foo = __func__;
11622 > return $ac_func ();
11623    ;
11624    return 0;
11625   }
11626   _ACEOF
11627 < rm -f conftest.$ac_objext
11628 < if { (ac_try="$ac_compile"
11627 > rm -f conftest.$ac_objext conftest$ac_exeext
11628 > if { (ac_try="$ac_link"
11629   case "(($ac_try" in
11630    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11631    *) ac_try_echo=$ac_try;;
11632   esac
11633   eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 <  (eval "$ac_compile") 2>conftest.er1
11634 >  (eval "$ac_link") 2>conftest.er1
11635    ac_status=$?
11636    grep -v '^ *+' conftest.er1 >conftest.err
11637    rm -f conftest.er1
11638    cat conftest.err >&5
11639    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640    (exit $ac_status); } && {
11641 <         test -z "$ac_cxx_werror_flag" ||
11641 >         test -z "$ac_c_werror_flag" ||
11642           test ! -s conftest.err
11643 <       } && test -s conftest.$ac_objext; then
11644 <  ac_cv_cpp_func=yes
11643 >       } && test -s conftest$ac_exeext &&
11644 >       $as_test_x conftest$ac_exeext; then
11645 >  eval "$as_ac_var=yes"
11646   else
11647    echo "$as_me: failed program was:" >&5
11648   sed 's/^/| /' conftest.$ac_ext >&5
11649  
11650 <        cat >conftest.$ac_ext <<_ACEOF
11650 >        eval "$as_ac_var=no"
11651 > fi
11652 >
11653 > rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654 >      conftest$ac_exeext conftest.$ac_ext
11655 > fi
11656 > ac_res=`eval echo '${'$as_ac_var'}'`
11657 >               { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 > echo "${ECHO_T}$ac_res" >&6; }
11659 > if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 >  cat >>confdefs.h <<_ACEOF
11661 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662 > _ACEOF
11663 >
11664 > fi
11665 > done
11666 >
11667 >
11668 > # special check for _system_configuration because AIX <4.3.2 do not
11669 > # contain the `physmem' member.
11670 > { echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
11671 > echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6; }
11672 > cat >conftest.$ac_ext <<_ACEOF
11673   /* confdefs.h.  */
11674   _ACEOF
11675   cat confdefs.h >>conftest.$ac_ext
11676   cat >>conftest.$ac_ext <<_ACEOF
11677   /* end confdefs.h.  */
11678 <
11678 > #include <sys/systemcfg.h>
11679   #ifdef FC_DUMMY_MAIN
11680   #ifndef FC_DUMMY_MAIN_EQ_F77
11681   #  ifdef __cplusplus
# Line 13888 | Line 11687 | main ()
11687   int
11688   main ()
11689   {
11690 < const char *foo = __FUNCTION__;
11690 > double x = _system_configuration.physmem;
11691    ;
11692    return 0;
11693   }
# Line 13907 | Line 11706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706    cat conftest.err >&5
11707    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708    (exit $ac_status); } && {
11709 <         test -z "$ac_cxx_werror_flag" ||
11709 >         test -z "$ac_c_werror_flag" ||
11710           test ! -s conftest.err
11711         } && test -s conftest.$ac_objext; then
11712 <  ac_cv_cpp_func=__FUNCTION__
11713 < else
13915 <  echo "$as_me: failed program was:" >&5
13916 < sed 's/^/| /' conftest.$ac_ext >&5
11712 >  { echo "$as_me:$LINENO: result: yes" >&5
11713 > echo "${ECHO_T}yes" >&6; }
11714  
13918        ac_cv_cpp_func=no
13919 fi
13920
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 fi
13923
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 fi
13926 { echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
13927 echo "${ECHO_T}$ac_cv_cpp_func" >&6; }
13928 if test $ac_cv_cpp_func = __FUNCTION__; then
13929
11715   cat >>confdefs.h <<\_ACEOF
11716 < #define __func__ __FUNCTION__
11716 > #define HAVE__SYSTEM_CONFIGURATION 1
11717   _ACEOF
11718  
11719 < elif test $ac_cv_cpp_func = no; then
11720 <
11721 < cat >>confdefs.h <<\_ACEOF
13937 < #define __func__ ""
13938 < _ACEOF
11719 > else
11720 >  echo "$as_me: failed program was:" >&5
11721 > sed 's/^/| /' conftest.$ac_ext >&5
11722  
11723 +        { echo "$as_me:$LINENO: result: no" >&5
11724 + echo "${ECHO_T}no" >&6; }
11725   fi
11726  
11727 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11728  
11729  
13944
13945
11730   case $debug in
11731    1)
11732       ;;
# Line 14027 | Line 11811 | rm -f conftest*
11811          ac_guessed_f90flags=no
11812   fi
11813   rm -f conftest*
11814 < ac_ext=cpp
11815 < ac_cpp='$CXXCPP $CPPFLAGS'
11816 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11814 > ac_ext=c
11815 > ac_cpp='$CPP $CPPFLAGS'
11816 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
11819  
11820  
11821   fi
# Line 14981 | Line 12765 | fi
12765   fi
12766  
12767       ;;
14984 esac
14985
14986
14987 cat >>confdefs.h <<\_ACEOF
14988 #define OBAPI
14989 _ACEOF
14990
14991
14992
14993
14994 # Check whether --with-mpi was given.
14995 if test "${with_mpi+set}" = set; then
14996  withval=$with_mpi; with_mpi=$withval
14997 else
14998  with_mpi="no"
14999 fi
15000
15001
15002 case "x$with_mpi" in
15003        xyes | "x")  USE_MPI=yes;;
15004        xno) USE_MPI=no ;;
15005        *) MPI="$with_mpi"; USE_MPI=yes ;;
12768   esac
15007 if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
15008        MPI="/usr/local"
15009 fi
15010 if test "$USE_MPI" = "yes"; then
12769  
12770  
15013 # Set variables...
15014 MPI_LIB_DIR="$MPI/lib"
15015 MPI_INC_DIR="$MPI/include"
15016
15017
15018
15019 ac_ext=c
15020 ac_cpp='$CPP $CPPFLAGS'
15021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15024
15025 { echo "$as_me:$LINENO: checking for mpi.h" >&5
15026 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6; }
15027 have_mpi_h=0
15028 rm -f conftest*
15029 echo '#include <mpi.h>' > conftest.c
15030 if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
15031        { echo "$as_me:$LINENO: result: yes" >&5
15032 echo "${ECHO_T}yes" >&6; }
15033        have_mpi_h=1
15034 else
15035        if test -s conftest.out ; then
15036                cat conftest.out >> config.log
15037        fi
15038        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
15039 echo "${ECHO_T}no! Check MPI include paths" >&6; }
15040        USE_MPI="no"
15041 fi
15042 rm -f conftest*
15043 if test "$have_mpi_h" = 1; then
15044
15045 cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_MPI_H 1
15047 _ACEOF
15048
15049 fi
15050
15051 { echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
15052 echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6; }
15053
15054 ac_ext=${ac_fc_srcext-f}
15055 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15056 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15057 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15058
15059 ac_save_ext=$ac_ext
15060 ac_ext=F90
15061 ac_save_FCFLAGS=$FCFLAGS
15062 have_mpif_h=0
15063 rm -f conftest*
15064 cat >conftest.$ac_ext <<EOF
15065 program main
15066   include 'mpif.h'
15067 end
15068 EOF
15069 if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then
15070        { echo "$as_me:$LINENO: result: yes" >&5
15071 echo "${ECHO_T}yes" >&6; }
15072        MPI_F90_INC="$MPI_INC_DIR"
15073        have_mpif_h=1
15074 else
15075        if test -s conftest.out ; then
15076                cat conftest.out >> config.log
15077        fi
15078        { echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
15079 echo "${ECHO_T}no! Check MPI include paths" >&6; }
15080        USE_MPI="no"
15081 fi
15082 rm -f conftest*
15083
15084 if test "$have_mpif_h" = 1; then
15085
15086 cat >>confdefs.h <<\_ACEOF
15087 #define HAVE_MPIF_H 1
15088 _ACEOF
15089
15090 fi
15091 FCFLAGS=$ac_save_FCFLAGS
15092 ac_ext=$ac_save_ext
15093 ac_ext=c
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15098
15099
15100 ac_ext=c
15101 ac_cpp='$CPP $CPPFLAGS'
15102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15105
15106 ac_save_LDFLAGS=$LDFLAGS
15107 LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
15108
15109 if test x = x"$MPI_LIB"; then
15110        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
15111 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6; }
15112 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
15113  echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115  ac_check_lib_save_LIBS=$LIBS
15116 LIBS="-lmpich  $LIBS"
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123
15124 /* Override any GCC internal prototype to avoid an error.
15125   Use char because int might match the return type of a GCC
15126   builtin and then its argument prototype would still apply.  */
15127 #ifdef __cplusplus
15128 extern "C"
15129 #endif
15130 char MPI_Init ();
15131 #ifdef FC_DUMMY_MAIN
15132 #ifndef FC_DUMMY_MAIN_EQ_F77
15133 #  ifdef __cplusplus
15134     extern "C"
15135 #  endif
15136   int FC_DUMMY_MAIN() { return 1; }
15137 #endif
15138 #endif
15139 int
15140 main ()
15141 {
15142 return MPI_Init ();
15143  ;
15144  return 0;
15145 }
15146 _ACEOF
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151  *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154  (eval "$ac_link") 2>conftest.er1
15155  ac_status=$?
15156  grep -v '^ *+' conftest.er1 >conftest.err
15157  rm -f conftest.er1
15158  cat conftest.err >&5
15159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160  (exit $ac_status); } && {
15161         test -z "$ac_c_werror_flag" ||
15162         test ! -s conftest.err
15163       } && test -s conftest$ac_exeext &&
15164       $as_test_x conftest$ac_exeext; then
15165  ac_cv_lib_mpich_MPI_Init=yes
15166 else
15167  echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170        ac_cv_lib_mpich_MPI_Init=no
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174      conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
15178 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6; }
15179 if test $ac_cv_lib_mpich_MPI_Init = yes; then
15180  MPI_LIB="-lmpich"
15181 fi
15182
15183 fi
15184 $as_unset ac_cv_lib_mpich_MPI_Init
15185 if test x = x"$MPI_LIB"; then
15186        { echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
15187 echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6; }
15188 if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
15189  echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191  ac_check_lib_save_LIBS=$LIBS
15192 LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h.  */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h.  */
15199
15200 /* Override any GCC internal prototype to avoid an error.
15201   Use char because int might match the return type of a GCC
15202   builtin and then its argument prototype would still apply.  */
15203 #ifdef __cplusplus
15204 extern "C"
15205 #endif
15206 char MPI_Init ();
15207 #ifdef FC_DUMMY_MAIN
15208 #ifndef FC_DUMMY_MAIN_EQ_F77
15209 #  ifdef __cplusplus
15210     extern "C"
15211 #  endif
15212   int FC_DUMMY_MAIN() { return 1; }
15213 #endif
15214 #endif
15215 int
15216 main ()
15217 {
15218 return MPI_Init ();
15219  ;
15220  return 0;
15221 }
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (ac_try="$ac_link"
15225 case "(($ac_try" in
15226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227  *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230  (eval "$ac_link") 2>conftest.er1
15231  ac_status=$?
15232  grep -v '^ *+' conftest.er1 >conftest.err
15233  rm -f conftest.er1
15234  cat conftest.err >&5
15235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236  (exit $ac_status); } && {
15237         test -z "$ac_c_werror_flag" ||
15238         test ! -s conftest.err
15239       } && test -s conftest$ac_exeext &&
15240       $as_test_x conftest$ac_exeext; then
15241  ac_cv_lib_pmpich_MPI_Init=yes
15242 else
15243  echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246        ac_cv_lib_pmpich_MPI_Init=no
15247 fi
15248
15249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15250      conftest$ac_exeext conftest.$ac_ext
15251 LIBS=$ac_check_lib_save_LIBS
15252 fi
15253 { echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
15254 echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6; }
15255 if test $ac_cv_lib_pmpich_MPI_Init = yes; then
15256  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
15257 fi
15258
15259 fi
15260 if test x = x"$MPI_LIB"; then
15261        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
15262 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
15263 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
15264  echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266  ac_check_lib_save_LIBS=$LIBS
15267 LIBS="-lmpi  $LIBS"
15268 cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h.  */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h.  */
15274
15275 /* Override any GCC internal prototype to avoid an error.
15276   Use char because int might match the return type of a GCC
15277   builtin and then its argument prototype would still apply.  */
15278 #ifdef __cplusplus
15279 extern "C"
15280 #endif
15281 char MPI_Init ();
15282 #ifdef FC_DUMMY_MAIN
15283 #ifndef FC_DUMMY_MAIN_EQ_F77
15284 #  ifdef __cplusplus
15285     extern "C"
15286 #  endif
15287   int FC_DUMMY_MAIN() { return 1; }
15288 #endif
15289 #endif
15290 int
15291 main ()
15292 {
15293 return MPI_Init ();
15294  ;
15295  return 0;
15296 }
15297 _ACEOF
15298 rm -f conftest.$ac_objext conftest$ac_exeext
15299 if { (ac_try="$ac_link"
15300 case "(($ac_try" in
15301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302  *) ac_try_echo=$ac_try;;
15303 esac
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305  (eval "$ac_link") 2>conftest.er1
15306  ac_status=$?
15307  grep -v '^ *+' conftest.er1 >conftest.err
15308  rm -f conftest.er1
15309  cat conftest.err >&5
15310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311  (exit $ac_status); } && {
15312         test -z "$ac_c_werror_flag" ||
15313         test ! -s conftest.err
15314       } && test -s conftest$ac_exeext &&
15315       $as_test_x conftest$ac_exeext; then
15316  ac_cv_lib_mpi_MPI_Init=yes
15317 else
15318  echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321        ac_cv_lib_mpi_MPI_Init=no
15322 fi
15323
15324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15325      conftest$ac_exeext conftest.$ac_ext
15326 LIBS=$ac_check_lib_save_LIBS
15327 fi
15328 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
15329 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
15330 if test $ac_cv_lib_mpi_MPI_Init = yes; then
15331  MPI_LIB="-lmpi"
15332 fi
15333
15334 fi
15335 $as_unset ac_cv_lib_mpi_MPI_Init
15336 if test x = x"$MPI_LIB"; then
15337        { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
15338 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
15339 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
15340  echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342  ac_check_lib_save_LIBS=$LIBS
15343 LIBS="-lmpi -llam $LIBS"
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350
15351 /* Override any GCC internal prototype to avoid an error.
15352   Use char because int might match the return type of a GCC
15353   builtin and then its argument prototype would still apply.  */
15354 #ifdef __cplusplus
15355 extern "C"
15356 #endif
15357 char MPI_Init ();
15358 #ifdef FC_DUMMY_MAIN
15359 #ifndef FC_DUMMY_MAIN_EQ_F77
15360 #  ifdef __cplusplus
15361     extern "C"
15362 #  endif
15363   int FC_DUMMY_MAIN() { return 1; }
15364 #endif
15365 #endif
15366 int
15367 main ()
15368 {
15369 return MPI_Init ();
15370  ;
15371  return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (ac_try="$ac_link"
15376 case "(($ac_try" in
15377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378  *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381  (eval "$ac_link") 2>conftest.er1
15382  ac_status=$?
15383  grep -v '^ *+' conftest.er1 >conftest.err
15384  rm -f conftest.er1
15385  cat conftest.err >&5
15386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387  (exit $ac_status); } && {
15388         test -z "$ac_c_werror_flag" ||
15389         test ! -s conftest.err
15390       } && test -s conftest$ac_exeext &&
15391       $as_test_x conftest$ac_exeext; then
15392  ac_cv_lib_mpi_MPI_Init=yes
15393 else
15394  echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397        ac_cv_lib_mpi_MPI_Init=no
15398 fi
15399
15400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15401      conftest$ac_exeext conftest.$ac_ext
15402 LIBS=$ac_check_lib_save_LIBS
15403 fi
15404 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
15405 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
15406 if test $ac_cv_lib_mpi_MPI_Init = yes; then
15407  MPI_LIB="-lmpi -llam"
15408 fi
15409
15410 fi
15411 $as_unset ac_cv_lib_mpi_MPI_Init
15412 if test x = x"$MPI_LIB"; then
15413 { echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
15414 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6; }
15415 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
15416  echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418  ac_check_lib_save_LIBS=$LIBS
15419 LIBS="-lmpi -llam -lpthread $LIBS"
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426
15427 /* Override any GCC internal prototype to avoid an error.
15428   Use char because int might match the return type of a GCC
15429   builtin and then its argument prototype would still apply.  */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 char MPI_Init ();
15434 #ifdef FC_DUMMY_MAIN
15435 #ifndef FC_DUMMY_MAIN_EQ_F77
15436 #  ifdef __cplusplus
15437     extern "C"
15438 #  endif
15439   int FC_DUMMY_MAIN() { return 1; }
15440 #endif
15441 #endif
15442 int
15443 main ()
15444 {
15445 return MPI_Init ();
15446  ;
15447  return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454  *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457  (eval "$ac_link") 2>conftest.er1
15458  ac_status=$?
15459  grep -v '^ *+' conftest.er1 >conftest.err
15460  rm -f conftest.er1
15461  cat conftest.err >&5
15462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463  (exit $ac_status); } && {
15464         test -z "$ac_c_werror_flag" ||
15465         test ! -s conftest.err
15466       } && test -s conftest$ac_exeext &&
15467       $as_test_x conftest$ac_exeext; then
15468  ac_cv_lib_mpi_MPI_Init=yes
15469 else
15470  echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473        ac_cv_lib_mpi_MPI_Init=no
15474 fi
15475
15476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15477      conftest$ac_exeext conftest.$ac_ext
15478 LIBS=$ac_check_lib_save_LIBS
15479 fi
15480 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
15481 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6; }
15482 if test $ac_cv_lib_mpi_MPI_Init = yes; then
15483  MPI_LIB="-lmpi -llam -lpthread"
15484 else
15485
15486             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
15487 echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
15488   { (exit 1); exit 1; }; }
15489             USE_MPI="no"
15490
15491 fi
15492
15493 fi
15494
15495
15496
15497 { echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
15498 echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6; }
15499 MPI_F90_LIB=""
15500 if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
15501        MPI_F90_LIB="-lfmpich"
15502 elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
15503        MPI_F90_LIB="-llamf77mpi"
15504 else
15505                        MPI_F90_LIB="  "
15506 fi
15507 { echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
15508 echo "${ECHO_T}found $MPI_F90_LIB" >&6; }
15509
15510
15511 fi
15512
15513
15514
12771   acx_cgal_found=no
12772  
12773   # Check whether --with-cgalmakefile was given.
# Line 16741 | Line 13997 | config_headers="$ac_config_headers"
13997   # Files that config.status was made for.
13998   config_files="$ac_config_files"
13999   config_headers="$ac_config_headers"
16744 config_links="$ac_config_links"
14000  
14001   _ACEOF
14002  
# Line 16768 | Line 14023 | $config_headers
14023   Configuration headers:
14024   $config_headers
14025  
16771 Configuration links:
16772 $config_links
16773
14026   Report bugs to <bug-autoconf@gnu.org>."
14027  
14028   _ACEOF
# Line 16885 | Line 14137 | do
14137   do
14138    case $ac_config_target in
14139      "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16888    "src/getopt.h") CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
14140      "make/Makefile") CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
14141      "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14142      "src/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
# Line 16906 | Line 14157 | if $ac_need_defaults; then
14157   if $ac_need_defaults; then
14158    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14159    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16909  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14160   fi
14161  
14162   # Have a temporary directory for convenience.  Make it in the build tree
# Line 17001 | Line 14251 | USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim
14251   PROGNAME!$PROGNAME$ac_delim
14252   debug!$debug$ac_delim
14253   USE_SINGLE_PRECISION!$USE_SINGLE_PRECISION$ac_delim
14254 + ac_cc_set!$ac_cc_set$ac_delim
14255 + ac_cc_path!$ac_cc_path$ac_delim
14256 + ac_cxx_set!$ac_cxx_set$ac_delim
14257 + ac_cxx_path!$ac_cxx_path$ac_delim
14258 + ac_fc_set!$ac_fc_set$ac_delim
14259 + ac_fc_path!$ac_fc_path$ac_delim
14260 + acx_mpi_mpicc!$acx_mpi_mpicc$ac_delim
14261 + acx_mpi_mpicc_path!$acx_mpi_mpicc_path$ac_delim
14262 + acx_mpi_mpif90!$acx_mpi_mpif90$ac_delim
14263 + acx_mpi_mpif90_path!$acx_mpi_mpif90_path$ac_delim
14264 + acx_mpi_mpicxx!$acx_mpi_mpicxx$ac_delim
14265 + acx_mpi_mpicxx_path!$acx_mpi_mpicxx_path$ac_delim
14266 + MPI_CPPFLAGS!$MPI_CPPFLAGS$ac_delim
14267 + MPI_LIBS!$MPI_LIBS$ac_delim
14268 + MPI90_LIBS!$MPI90_LIBS$ac_delim
14269 + USE_MPI!$USE_MPI$ac_delim
14270   CXX!$CXX$ac_delim
14271   CXXFLAGS!$CXXFLAGS$ac_delim
14272   LDFLAGS!$LDFLAGS$ac_delim
# Line 17020 | Line 14286 | RANLIB!$RANLIB$ac_delim
14286   LN_S!$LN_S$ac_delim
14287   SET_MAKE!$SET_MAKE$ac_delim
14288   RANLIB!$RANLIB$ac_delim
17023 YACC!$YACC$ac_delim
17024 YFLAGS!$YFLAGS$ac_delim
17025 LEX!$LEX$ac_delim
17026 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
17027 LEXLIB!$LEXLIB$ac_delim
14289   PERLINTERP!$PERLINTERP$ac_delim
14290   PERL_SHEBANG!$PERL_SHEBANG$ac_delim
14291   INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
# Line 17039 | Line 14300 | MOD!$MOD$ac_delim
14300   FC_FUNC!$FC_FUNC$ac_delim
14301   FC_FUNC_!$FC_FUNC_$ac_delim
14302   MOD!$MOD$ac_delim
17042 F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim
17043 MODDIRFLAG!$MODDIRFLAG$ac_delim
17044 F90MODINCSPEC!$F90MODINCSPEC$ac_delim
17045 F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim
17046 ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim
17047 ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim
17048 ZLIB!$ZLIB$ac_delim
17049 FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
17050 FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
17051 FFTW_LIBS!$FFTW_LIBS$ac_delim
17052 QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim
14303   _ACEOF
14304  
14305    if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
# Line 17091 | Line 14341 | for ac_last_try in false false false false false :; do
14341   ac_delim='%!_!# '
14342   for ac_last_try in false false false false false :; do
14343    cat >conf$$subs.sed <<_ACEOF
14344 + F90_WORK_FILES_ARG!$F90_WORK_FILES_ARG$ac_delim
14345 + MODDIRFLAG!$MODDIRFLAG$ac_delim
14346 + F90MODINCSPEC!$F90MODINCSPEC$ac_delim
14347 + F90_MODULE_NAMES!$F90_MODULE_NAMES$ac_delim
14348 + ZLIB_INC_DIR!$ZLIB_INC_DIR$ac_delim
14349 + ZLIB_LIB_DIR!$ZLIB_LIB_DIR$ac_delim
14350 + ZLIB!$ZLIB$ac_delim
14351 + FFTW_INC_DIR!$FFTW_INC_DIR$ac_delim
14352 + FFTW_LIB_DIR!$FFTW_LIB_DIR$ac_delim
14353 + FFTW_LIBS!$FFTW_LIBS$ac_delim
14354 + QHULL_INC_DIR!$QHULL_INC_DIR$ac_delim
14355   QHULL_LIB_DIR!$QHULL_LIB_DIR$ac_delim
14356   QHULL!$QHULL$ac_delim
14357   USE_QHULL!$USE_QHULL$ac_delim
# Line 17101 | Line 14362 | POW_LIB!$POW_LIB$ac_delim
14362   USE_OPENBABEL!$USE_OPENBABEL$ac_delim
14363   LIBOBJS!$LIBOBJS$ac_delim
14364   POW_LIB!$POW_LIB$ac_delim
17104 __func__!$__func__$ac_delim
17105 MPI_LIB_DIR!$MPI_LIB_DIR$ac_delim
17106 MPI_INC_DIR!$MPI_INC_DIR$ac_delim
17107 MPI_F90_INC!$MPI_F90_INC$ac_delim
17108 MPI_LIB!$MPI_LIB$ac_delim
17109 MPI_F90_LIB!$MPI_F90_LIB$ac_delim
17110 USE_MPI!$USE_MPI$ac_delim
14365   CGAL_MAKEFILE!$CGAL_MAKEFILE$ac_delim
14366   CGAL_CXXFLAGS!$CGAL_CXXFLAGS$ac_delim
14367   CGAL_CPPFLAGS!$CGAL_CPPFLAGS$ac_delim
# Line 17128 | Line 14382 | _ACEOF
14382   LTLIBOBJS!$LTLIBOBJS$ac_delim
14383   _ACEOF
14384  
14385 <  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
14385 >  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
14386      break
14387    elif $ac_last_try; then
14388      { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
# Line 17185 | Line 14439 | fi # test -n "$CONFIG_FILES"
14439   fi # test -n "$CONFIG_FILES"
14440  
14441  
14442 < for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS
14442 > for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
14443   do
14444    case $ac_tag in
14445    :[FHLC]) ac_mode=$ac_tag; continue;;
# Line 17523 | Line 14777 | echo "$as_me: $ac_file is unchanged" >&6;}
14777    fi
14778    rm -f "$tmp/out12"
14779   ;;
17526  :L)
17527  #
17528  # CONFIG_LINK
17529  #
17530
17531  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
17532 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
17533
17534  if test ! -r "$srcdir/$ac_source"; then
17535    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17536 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17537   { (exit 1); exit 1; }; }
17538  fi
17539  rm -f "$ac_file"
14780  
17541  # Try a relative symlink, then a hard link, then a copy.
17542  case $srcdir in
17543  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17544      *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
17545  esac
17546  ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17547    ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
17548    cp -p "$srcdir/$ac_source" "$ac_file" ||
17549    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
17550 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
17551   { (exit 1); exit 1; }; }
17552 ;;
14781  
14782    esac
14783  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines