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 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
branches/development/configure (file contents), Revision 1618 by gezelter, Mon Sep 12 17:09:26 2011 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.65 for OpenMD 1.0.
3 > # Generated by GNU Autoconf 2.68 for OpenMD 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7   #
8   # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 < # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 < # Inc.
9 > # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 > # Foundation, Inc.
11   #
12   #
13   # This configure script is free software; the Free Software Foundation
# Line 91 | Line 91 | IFS=" ""       $as_nl"
91   IFS=" ""        $as_nl"
92  
93   # Find who we are.  Look in the path if we contain no directory separator.
94 + as_myself=
95   case $0 in #((
96    *[\\/]* ) as_myself=$0 ;;
97    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 216 | Line 217 | IFS=$as_save_IFS
217    # We cannot yet assume a decent shell, so we have to provide a
218          # neutralization value for shells without unset; and this also
219          # works around shells that cannot unset nonexistent variables.
220 +        # Preserve -v and -x to the replacement shell.
221          BASH_ENV=/dev/null
222          ENV=/dev/null
223          (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224          export CONFIG_SHELL
225 <        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 >        case $- in # ((((
226 >          *v*x* | *x*v* ) as_opts=-vx ;;
227 >          *v* ) as_opts=-v ;;
228 >          *x* ) as_opts=-x ;;
229 >          * ) as_opts= ;;
230 >        esac
231 >        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232   fi
233  
234      if test x$as_have_required = xno; then :
# Line 319 | Line 327 | $as_echo X"$as_dir" |
327        test -d "$as_dir" && break
328      done
329      test -z "$as_dirs" || eval "mkdir $as_dirs"
330 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331  
332  
333   } # as_fn_mkdir_p
# Line 359 | Line 367 | fi # as_fn_arith
367   fi # as_fn_arith
368  
369  
370 < # as_fn_error ERROR [LINENO LOG_FD]
371 < # ---------------------------------
370 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 > # ----------------------------------------
372   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 < # script with status $?, using 1 if that was 0.
374 > # script with STATUS, using 1 if that was 0.
375   as_fn_error ()
376   {
377 <  as_status=$?; test $as_status -eq 0 && as_status=1
378 <  if test "$3"; then
379 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 >  as_status=$1; test $as_status -eq 0 && as_status=1
378 >  if test "$4"; then
379 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381    fi
382 <  $as_echo "$as_me: error: $1" >&2
382 >  $as_echo "$as_me: error: $2" >&2
383    as_fn_exit $as_status
384   } # as_fn_error
385  
# Line 533 | Line 541 | exec 6>&1
541   exec 6>&1
542  
543   # Name of the host.
544 < # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 > # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545   # so uname gets run too.
546   ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547  
# Line 624 | Line 632 | ZLIB_INC_DIR
632   ZLIB
633   ZLIB_LIB_DIR
634   ZLIB_INC_DIR
627 F90_MODULE_NAMES
628 F90MODINCSPEC
629 MODDIRFLAG
630 F90_WORK_FILES_ARG
631 MOD
632 FC_FUNC_
633 FC_FUNC
634 FCLIBS
635 PREPDEFFLAG
636 FCFLAGS_SRCEXT
637 FCFLAGS_F90
635   PS
636   AR
637   INSTALL_DATA
# Line 649 | Line 646 | USE_MPI
646   GREP
647   CPP
648   USE_MPI
652 MPIFC
653 ac_ct_FC
654 FCFLAGS
655 FC
649   MPICC
650 + MPILIBS
651 + MPICXX
652 + LIBDL
653   ac_ct_CC
654   CFLAGS
655   CC
660 MPILIBS
661 MPICXX
656   OBJEXT
657   EXEEXT
658   ac_ct_CXX
# Line 666 | Line 660 | CXX
660   LDFLAGS
661   CXXFLAGS
662   CXX
669 ac_fc_path
670 ac_fc_set
671 ac_cxx_path
672 ac_cxx_set
673 ac_cc_path
674 ac_cc_set
663   USE_SINGLE_PRECISION
664   debug
665   PROGNAME
# Line 747 | Line 735 | CCC
735   LIBS
736   CPPFLAGS
737   CCC
750 MPICXX
738   CC
739   CFLAGS
740 + MPICXX
741   MPICC
754 FC
755 FCFLAGS
756 MPIFC
742   CPP
743   CXXCPP'
744  
# Line 818 | Line 803 | do
803    fi
804  
805    case $ac_option in
806 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 <  *)    ac_optarg=yes ;;
806 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 >  *=)   ac_optarg= ;;
808 >  *)    ac_optarg=yes ;;
809    esac
810  
811    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 864 | Line 850 | do
850      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851      # Reject names that are not valid shell variable names.
852      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 <      as_fn_error "invalid feature name: $ac_useropt"
853 >      as_fn_error $? "invalid feature name: $ac_useropt"
854      ac_useropt_orig=$ac_useropt
855      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856      case $ac_user_opts in
# Line 890 | Line 876 | do
876      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877      # Reject names that are not valid shell variable names.
878      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 <      as_fn_error "invalid feature name: $ac_useropt"
879 >      as_fn_error $? "invalid feature name: $ac_useropt"
880      ac_useropt_orig=$ac_useropt
881      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882      case $ac_user_opts in
# Line 1094 | Line 1080 | do
1080      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081      # Reject names that are not valid shell variable names.
1082      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 <      as_fn_error "invalid package name: $ac_useropt"
1083 >      as_fn_error $? "invalid package name: $ac_useropt"
1084      ac_useropt_orig=$ac_useropt
1085      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086      case $ac_user_opts in
# Line 1110 | Line 1096 | do
1096      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1097      # Reject names that are not valid shell variable names.
1098      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 <      as_fn_error "invalid package name: $ac_useropt"
1099 >      as_fn_error $? "invalid package name: $ac_useropt"
1100      ac_useropt_orig=$ac_useropt
1101      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102      case $ac_user_opts in
# Line 1140 | Line 1126 | do
1126    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127      x_libraries=$ac_optarg ;;
1128  
1129 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1130 < Try \`$0 --help' for more information."
1129 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1130 > Try \`$0 --help' for more information"
1131      ;;
1132  
1133    *=*)
# Line 1149 | Line 1135 | Try \`$0 --help' for more information."
1135      # Reject names that are not valid shell variable names.
1136      case $ac_envvar in #(
1137        '' | [0-9]* | *[!_$as_cr_alnum]* )
1138 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139      esac
1140      eval $ac_envvar=\$ac_optarg
1141      export $ac_envvar ;;
# Line 1159 | Line 1145 | Try \`$0 --help' for more information."
1145      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149      ;;
1150  
1151    esac
# Line 1167 | Line 1153 | if test -n "$ac_prev"; then
1153  
1154   if test -n "$ac_prev"; then
1155    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 <  as_fn_error "missing argument to $ac_option"
1156 >  as_fn_error $? "missing argument to $ac_option"
1157   fi
1158  
1159   if test -n "$ac_unrecognized_opts"; then
1160    case $enable_option_checking in
1161      no) ;;
1162 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1163      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164    esac
1165   fi
# Line 1196 | Line 1182 | do
1182      [\\/$]* | ?:[\\/]* )  continue;;
1183      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184    esac
1185 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1186   done
1187  
1188   # There might be people who depend on the old broken behavior: `$host'
# Line 1210 | Line 1196 | if test "x$host_alias" != x; then
1196   if test "x$host_alias" != x; then
1197    if test "x$build_alias" = x; then
1198      cross_compiling=maybe
1199 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 <    If a cross compiler is detected then cross compile mode will be used." >&2
1199 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1200 >    If a cross compiler is detected then cross compile mode will be used" >&2
1201    elif test "x$build_alias" != "x$host_alias"; then
1202      cross_compiling=yes
1203    fi
# Line 1226 | Line 1212 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213   ac_ls_di=`ls -di .` &&
1214   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 <  as_fn_error "working directory cannot be determined"
1215 >  as_fn_error $? "working directory cannot be determined"
1216   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 <  as_fn_error "pwd does not report name of working directory"
1217 >  as_fn_error $? "pwd does not report name of working directory"
1218  
1219  
1220   # Find the source files, if location was not specified.
# Line 1267 | Line 1253 | if test ! -r "$srcdir/$ac_unique_file"; then
1253   fi
1254   if test ! -r "$srcdir/$ac_unique_file"; then
1255    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1257   fi
1258   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259   ac_abs_confdir=`(
1260 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1261          pwd)`
1262   # When building in place, set srcdir=.
1263   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1311 | Line 1297 | Configuration:
1297        --help=short        display options specific to this package
1298        --help=recursive    display the short help of all the included packages
1299    -V, --version           display version information and exit
1300 <  -q, --quiet, --silent   do not print \`checking...' messages
1300 >  -q, --quiet, --silent   do not print \`checking ...' messages
1301        --cache-file=FILE   cache test results in FILE [disabled]
1302    -C, --config-cache      alias for \`--cache-file=config.cache'
1303    -n, --no-create         do not create output files
# Line 1402 | Line 1388 | Some influential environment variables:
1388    LIBS        libraries to pass to the linker, e.g. -l<library>
1389    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390                you have headers in a nonstandard directory <include dir>
1405  MPICXX      MPI C++ compiler command
1391    CC          C compiler command
1392    CFLAGS      C compiler flags
1393 +  MPICXX      MPI C++ compiler command
1394    MPICC       MPI C compiler command
1409  FC          Fortran compiler command
1410  FCFLAGS     Fortran compiler flags
1411  MPIFC       MPI Fortran compiler command
1395    CPP         C preprocessor
1396    CXXCPP      C++ preprocessor
1397  
# Line 1479 | Line 1462 | OpenMD configure 1.0
1462   if $ac_init_version; then
1463    cat <<\_ACEOF
1464   OpenMD configure 1.0
1465 < generated by GNU Autoconf 2.65
1465 > generated by GNU Autoconf 2.68
1466  
1467 < Copyright (C) 2009 Free Software Foundation, Inc.
1467 > Copyright (C) 2010 Free Software Foundation, Inc.
1468   This configure script is free software; the Free Software Foundation
1469   gives unlimited permission to copy, distribute and modify it.
1470   _ACEOF
# Line 1525 | Line 1508 | fi
1508  
1509          ac_retval=1
1510   fi
1511 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512    as_fn_set_status $ac_retval
1513  
1514   } # ac_fn_cxx_try_compile
1515 +
1516 + # ac_fn_c_try_compile LINENO
1517 + # --------------------------
1518 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 + ac_fn_c_try_compile ()
1520 + {
1521 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 +  rm -f conftest.$ac_objext
1523 +  if { { ac_try="$ac_compile"
1524 + case "(($ac_try" in
1525 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 +  *) ac_try_echo=$ac_try;;
1527 + esac
1528 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 + $as_echo "$ac_try_echo"; } >&5
1530 +  (eval "$ac_compile") 2>conftest.err
1531 +  ac_status=$?
1532 +  if test -s conftest.err; then
1533 +    grep -v '^ *+' conftest.err >conftest.er1
1534 +    cat conftest.er1 >&5
1535 +    mv -f conftest.er1 conftest.err
1536 +  fi
1537 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 +  test $ac_status = 0; } && {
1539 +         test -z "$ac_c_werror_flag" ||
1540 +         test ! -s conftest.err
1541 +       } && test -s conftest.$ac_objext; then :
1542 +  ac_retval=0
1543 + else
1544 +  $as_echo "$as_me: failed program was:" >&5
1545 + sed 's/^/| /' conftest.$ac_ext >&5
1546  
1547 +        ac_retval=1
1548 + fi
1549 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 +  as_fn_set_status $ac_retval
1551 +
1552 + } # ac_fn_c_try_compile
1553 +
1554   # ac_fn_cxx_try_link LINENO
1555   # -------------------------
1556   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1571 | Line 1592 | fi
1592    # interfere with the next link command; also delete a directory that is
1593    # left behind by Apple's compiler.  We do this before executing the actions.
1594    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596    as_fn_set_status $ac_retval
1597  
1598   } # ac_fn_cxx_try_link
# Line 1584 | Line 1605 | $as_echo_n "checking for $2... " >&6; }
1605    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607   $as_echo_n "checking for $2... " >&6; }
1608 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1608 > if eval \${$3+:} false; then :
1609    $as_echo_n "(cached) " >&6
1610   else
1611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1639 | Line 1660 | $as_echo "$ac_res" >&6; }
1660   eval ac_res=\$$3
1661                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662   $as_echo "$ac_res" >&6; }
1663 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664  
1665   } # ac_fn_cxx_check_func
1666  
1646 # ac_fn_c_try_compile LINENO
1647 # --------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_compile ()
1650 {
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669         test -z "$ac_c_werror_flag" ||
1670         test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673 else
1674  $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677        ac_retval=1
1678 fi
1679  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680  as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1667   # ac_fn_c_try_link LINENO
1668   # -----------------------
1669   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1722 | Line 1705 | fi
1705    # interfere with the next link command; also delete a directory that is
1706    # left behind by Apple's compiler.  We do this before executing the actions.
1707    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709    as_fn_set_status $ac_retval
1710  
1711   } # ac_fn_c_try_link
# Line 1735 | Line 1718 | $as_echo_n "checking for $2... " >&6; }
1718    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720   $as_echo_n "checking for $2... " >&6; }
1721 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 > if eval \${$3+:} false; then :
1722    $as_echo_n "(cached) " >&6
1723   else
1724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1790 | Line 1773 | $as_echo "$ac_res" >&6; }
1773   eval ac_res=\$$3
1774                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775   $as_echo "$ac_res" >&6; }
1776 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  
1778   } # ac_fn_c_check_func
1796
1797 # ac_fn_fc_try_compile LINENO
1798 # ---------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_fc_try_compile ()
1801 {
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  rm -f conftest.$ac_objext
1804  if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_compile") 2>conftest.err
1812  ac_status=$?
1813  if test -s conftest.err; then
1814    grep -v '^ *+' conftest.err >conftest.er1
1815    cat conftest.er1 >&5
1816    mv -f conftest.er1 conftest.err
1817  fi
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } && {
1820         test -z "$ac_fc_werror_flag" ||
1821         test ! -s conftest.err
1822       } && test -s conftest.$ac_objext; then :
1823  ac_retval=0
1824 else
1825  $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828        ac_retval=1
1829 fi
1830  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831  as_fn_set_status $ac_retval
1832
1833 } # ac_fn_fc_try_compile
1834
1835 # ac_fn_fc_try_link LINENO
1836 # ------------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_fc_try_link ()
1839 {
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  rm -f conftest.$ac_objext conftest$ac_exeext
1842  if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849  (eval "$ac_link") 2>conftest.err
1850  ac_status=$?
1851  if test -s conftest.err; then
1852    grep -v '^ *+' conftest.err >conftest.er1
1853    cat conftest.er1 >&5
1854    mv -f conftest.er1 conftest.err
1855  fi
1856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857  test $ac_status = 0; } && {
1858         test -z "$ac_fc_werror_flag" ||
1859         test ! -s conftest.err
1860       } && test -s conftest$ac_exeext && {
1861         test "$cross_compiling" = yes ||
1862         $as_test_x conftest$ac_exeext
1863       }; then :
1864  ac_retval=0
1865 else
1866  $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1779  
1869        ac_retval=1
1870 fi
1871  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873  # interfere with the next link command; also delete a directory that is
1874  # left behind by Apple's compiler.  We do this before executing the actions.
1875  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877  as_fn_set_status $ac_retval
1878
1879 } # ac_fn_fc_try_link
1880
1780   # ac_fn_c_try_cpp LINENO
1781   # ----------------------
1782   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1899 | Line 1798 | $as_echo "$ac_try_echo"; } >&5
1798      mv -f conftest.er1 conftest.err
1799    fi
1800    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 <  test $ac_status = 0; } >/dev/null && {
1801 >  test $ac_status = 0; } > conftest.i && {
1802           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803           test ! -s conftest.err
1804         }; then :
# Line 1910 | Line 1809 | fi
1809  
1810      ac_retval=1
1811   fi
1812 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813    as_fn_set_status $ac_retval
1814  
1815   } # ac_fn_c_try_cpp
# Line 1923 | Line 1822 | ac_fn_c_check_header_mongrel ()
1822   ac_fn_c_check_header_mongrel ()
1823   {
1824    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 >  if eval \${$3+:} false; then :
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827   $as_echo_n "checking for $2... " >&6; }
1828 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 > if eval \${$3+:} false; then :
1829    $as_echo_n "(cached) " >&6
1830   fi
1831   eval ac_res=\$$3
# Line 1962 | Line 1861 | fi
1861   else
1862    ac_header_preproc=no
1863   fi
1864 < rm -f conftest.err conftest.$ac_ext
1864 > rm -f conftest.err conftest.i conftest.$ac_ext
1865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866   $as_echo "$ac_header_preproc" >&6; }
1867  
# Line 1985 | Line 1884 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1884   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887 < ( cat <<\_ASBOX
1989 < ## ------------------------------ ##
1887 > ( $as_echo "## ------------------------------ ##
1888   ## Report this to gezelter@nd.edu ##
1889 < ## ------------------------------ ##
1992 < _ASBOX
1889 > ## ------------------------------ ##"
1890       ) | sed "s/^/$as_me: WARNING:     /" >&2
1891      ;;
1892   esac
1893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894   $as_echo_n "checking for $2... " >&6; }
1895 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 > if eval \${$3+:} false; then :
1896    $as_echo_n "(cached) " >&6
1897   else
1898    eval "$3=\$ac_header_compiler"
# Line 2004 | Line 1901 | fi
1901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902   $as_echo "$ac_res" >&6; }
1903   fi
1904 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905  
1906   } # ac_fn_c_check_header_mongrel
1907  
# Line 2045 | Line 1942 | fi
1942         ac_retval=$ac_status
1943   fi
1944    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946    as_fn_set_status $ac_retval
1947  
1948   } # ac_fn_c_try_run
# Line 2059 | Line 1956 | $as_echo_n "checking for $2... " >&6; }
1956    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958   $as_echo_n "checking for $2... " >&6; }
1959 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 > if eval \${$3+:} false; then :
1960    $as_echo_n "(cached) " >&6
1961   else
1962    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2077 | Line 1974 | $as_echo "$ac_res" >&6; }
1974   eval ac_res=\$$3
1975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976   $as_echo "$ac_res" >&6; }
1977 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978  
1979   } # ac_fn_c_check_header_compile
1980  
# Line 2102 | Line 1999 | $as_echo "$ac_try_echo"; } >&5
1999      mv -f conftest.er1 conftest.err
2000    fi
2001    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 <  test $ac_status = 0; } >/dev/null && {
2002 >  test $ac_status = 0; } > conftest.i && {
2003           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2004           test ! -s conftest.err
2005         }; then :
# Line 2113 | Line 2010 | fi
2010  
2011      ac_retval=1
2012   fi
2013 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014    as_fn_set_status $ac_retval
2015  
2016   } # ac_fn_cxx_try_cpp
# Line 2126 | Line 2023 | ac_fn_cxx_check_header_mongrel ()
2023   ac_fn_cxx_check_header_mongrel ()
2024   {
2025    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 >  if eval \${$3+:} false; then :
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028   $as_echo_n "checking for $2... " >&6; }
2029 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 > if eval \${$3+:} false; then :
2030    $as_echo_n "(cached) " >&6
2031   fi
2032   eval ac_res=\$$3
# Line 2165 | Line 2062 | fi
2062   else
2063    ac_header_preproc=no
2064   fi
2065 < rm -f conftest.err conftest.$ac_ext
2065 > rm -f conftest.err conftest.i conftest.$ac_ext
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2067   $as_echo "$ac_header_preproc" >&6; }
2068  
# Line 2188 | Line 2085 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2085   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2086      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2088 < ( cat <<\_ASBOX
2192 < ## ------------------------------ ##
2088 > ( $as_echo "## ------------------------------ ##
2089   ## Report this to gezelter@nd.edu ##
2090 < ## ------------------------------ ##
2195 < _ASBOX
2090 > ## ------------------------------ ##"
2091       ) | sed "s/^/$as_me: WARNING:     /" >&2
2092      ;;
2093   esac
2094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095   $as_echo_n "checking for $2... " >&6; }
2096 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 > if eval \${$3+:} false; then :
2097    $as_echo_n "(cached) " >&6
2098   else
2099    eval "$3=\$ac_header_compiler"
# Line 2207 | Line 2102 | fi
2102                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103   $as_echo "$ac_res" >&6; }
2104   fi
2105 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106  
2107   } # ac_fn_cxx_check_header_mongrel
2108  
# Line 2220 | Line 2115 | $as_echo_n "checking for $2... " >&6; }
2115    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117   $as_echo_n "checking for $2... " >&6; }
2118 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 > if eval \${$3+:} false; then :
2119    $as_echo_n "(cached) " >&6
2120   else
2121    eval "$3=no"
2122    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123   /* end confdefs.h.  */
2124   $4
2230 #ifdef FC_DUMMY_MAIN
2231 #ifndef FC_DUMMY_MAIN_EQ_F77
2232 #  ifdef __cplusplus
2233     extern "C"
2234 #  endif
2235   int FC_DUMMY_MAIN() { return 1; }
2236 #endif
2237 #endif
2125   int
2126   main ()
2127   {
# Line 2248 | Line 2135 | $4
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136   /* end confdefs.h.  */
2137   $4
2251 #ifdef FC_DUMMY_MAIN
2252 #ifndef FC_DUMMY_MAIN_EQ_F77
2253 #  ifdef __cplusplus
2254     extern "C"
2255 #  endif
2256   int FC_DUMMY_MAIN() { return 1; }
2257 #endif
2258 #endif
2138   int
2139   main ()
2140   {
# Line 2277 | Line 2156 | $as_echo "$ac_res" >&6; }
2156   eval ac_res=\$$3
2157                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158   $as_echo "$ac_res" >&6; }
2159 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160  
2161   } # ac_fn_c_check_type
2162   cat >config.log <<_ACEOF
# Line 2285 | Line 2164 | It was created by OpenMD $as_me 1.0, which was
2164   running configure, to aid debugging if configure makes a mistake.
2165  
2166   It was created by OpenMD $as_me 1.0, which was
2167 < generated by GNU Autoconf 2.65.  Invocation command line was
2167 > generated by GNU Autoconf 2.68.  Invocation command line was
2168  
2169    $ $0 $@
2170  
# Line 2395 | Line 2274 | trap 'exit_status=$?
2274    {
2275      echo
2276  
2277 <    cat <<\_ASBOX
2399 < ## ---------------- ##
2277 >    $as_echo "## ---------------- ##
2278   ## Cache variables. ##
2279 < ## ---------------- ##
2402 < _ASBOX
2279 > ## ---------------- ##"
2280      echo
2281      # The following way of writing the cache mishandles newlines in values,
2282   (
# Line 2433 | Line 2310 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2310   )
2311      echo
2312  
2313 <    cat <<\_ASBOX
2437 < ## ----------------- ##
2313 >    $as_echo "## ----------------- ##
2314   ## Output variables. ##
2315 < ## ----------------- ##
2440 < _ASBOX
2315 > ## ----------------- ##"
2316      echo
2317      for ac_var in $ac_subst_vars
2318      do
# Line 2450 | Line 2325 | _ASBOX
2325      echo
2326  
2327      if test -n "$ac_subst_files"; then
2328 <      cat <<\_ASBOX
2454 < ## ------------------- ##
2328 >      $as_echo "## ------------------- ##
2329   ## File substitutions. ##
2330 < ## ------------------- ##
2457 < _ASBOX
2330 > ## ------------------- ##"
2331        echo
2332        for ac_var in $ac_subst_files
2333        do
# Line 2468 | Line 2341 | _ASBOX
2341      fi
2342  
2343      if test -s confdefs.h; then
2344 <      cat <<\_ASBOX
2472 < ## ----------- ##
2344 >      $as_echo "## ----------- ##
2345   ## confdefs.h. ##
2346 < ## ----------- ##
2475 < _ASBOX
2346 > ## ----------- ##"
2347        echo
2348        cat confdefs.h
2349        echo
# Line 2527 | Line 2398 | if test -n "$CONFIG_SITE"; then
2398   ac_site_file1=NONE
2399   ac_site_file2=NONE
2400   if test -n "$CONFIG_SITE"; then
2401 <  ac_site_file1=$CONFIG_SITE
2401 >  # We do not want a PATH search for config.site.
2402 >  case $CONFIG_SITE in #((
2403 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2404 >    */*) ac_site_file1=$CONFIG_SITE;;
2405 >    *)   ac_site_file1=./$CONFIG_SITE;;
2406 >  esac
2407   elif test "x$prefix" != xNONE; then
2408    ac_site_file1=$prefix/share/config.site
2409    ac_site_file2=$prefix/etc/config.site
# Line 2542 | Line 2418 | $as_echo "$as_me: loading site script $ac_site_file" >
2418      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420      sed 's/^/| /' "$ac_site_file" >&5
2421 <    . "$ac_site_file"
2421 >    . "$ac_site_file" \
2422 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 > as_fn_error $? "failed to load site script $ac_site_file
2425 > See \`config.log' for more details" "$LINENO" 5; }
2426    fi
2427   done
2428  
# Line 2618 | Line 2498 | $as_echo "$as_me: error: changes in the environment ca
2498   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502   fi
2503   ## -------------------- ##
2504   ## Main body of script. ##
# Line 2633 | Line 2513 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2513  
2514   ac_aux_dir=
2515   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2516 <  for ac_t in install-sh install.sh shtool; do
2517 <    if test -f "$ac_dir/$ac_t"; then
2518 <      ac_aux_dir=$ac_dir
2519 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2520 <      break 2
2521 <    fi
2522 <  done
2516 >  if test -f "$ac_dir/install-sh"; then
2517 >    ac_aux_dir=$ac_dir
2518 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2519 >    break
2520 >  elif test -f "$ac_dir/install.sh"; then
2521 >    ac_aux_dir=$ac_dir
2522 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2523 >    break
2524 >  elif test -f "$ac_dir/shtool"; then
2525 >    ac_aux_dir=$ac_dir
2526 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2527 >    break
2528 >  fi
2529   done
2530   if test -z "$ac_aux_dir"; then
2531 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2532   fi
2533  
2534   # These three variables are undocumented and unsupported,
# Line 2656 | Line 2542 | ac_config_headers="$ac_config_headers src/config.h"
2542  
2543  
2544   ac_config_headers="$ac_config_headers src/config.h"
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2545  
2546  
2547  
# Line 2695 | Line 2571 | ac_config_headers="$ac_config_headers src/config.h"
2571  
2572  
2573  
2698
2699
2700
2701
2702
2574   #
2575   #
2576   #
# Line 2713 | Line 2584 | ac_config_headers="$ac_config_headers src/config.h"
2584  
2585  
2586  
2716 # AC_F90_MODULE_NAMES
2717 # -------------------
2718 #
2719 # Figure out how the Fortran 90 compiler constructs module file names
2720 #
2721 # AC_F90_MODULE_NAMES
2587  
2588  
2589  
# Line 2899 | Line 2764 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 |
2764   # who am i
2765   # Make sure we can run config.sub.
2766   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2767 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768  
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770   $as_echo_n "checking build system type... " >&6; }
2771 < if test "${ac_cv_build+set}" = set; then :
2771 > if ${ac_cv_build+:} false; then :
2772    $as_echo_n "(cached) " >&6
2773   else
2774    ac_build_alias=$build_alias
2775   test "x$ac_build_alias" = x &&
2776    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777   test "x$ac_build_alias" = x &&
2778 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2778 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2780 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781  
2782   fi
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784   $as_echo "$ac_cv_build" >&6; }
2785   case $ac_cv_build in
2786   *-*-*) ;;
2787 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2787 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788   esac
2789   build=$ac_cv_build
2790   ac_save_IFS=$IFS; IFS='-'
# Line 2937 | Line 2802 | $as_echo_n "checking host system type... " >&6; }
2802  
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804   $as_echo_n "checking host system type... " >&6; }
2805 < if test "${ac_cv_host+set}" = set; then :
2805 > if ${ac_cv_host+:} false; then :
2806    $as_echo_n "(cached) " >&6
2807   else
2808    if test "x$host_alias" = x; then
2809    ac_cv_host=$ac_cv_build
2810   else
2811    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2812 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813   fi
2814  
2815   fi
# Line 2952 | Line 2817 | case $ac_cv_host in
2817   $as_echo "$ac_cv_host" >&6; }
2818   case $ac_cv_host in
2819   *-*-*) ;;
2820 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2820 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821   esac
2822   host=$ac_cv_host
2823   ac_save_IFS=$IFS; IFS='-'
# Line 3030 | Line 2895 | fi
2895  
2896   fi
2897  
3033 if test x"$CC" != x; then
3034   for ac_prog in $CC
3035 do
3036  # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3041  $as_echo_n "(cached) " >&6
3042 else
3043  if test -n "$ac_cc_set"; then
3044  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049  IFS=$as_save_IFS
3050  test -z "$as_dir" && as_dir=.
3051    for ac_exec_ext in '' $ac_executable_extensions; do
3052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053    ac_cv_prog_ac_cc_set="$ac_prog"
3054    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055    break 2
3056  fi
3057 done
3058  done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 ac_cc_set=$ac_cv_prog_ac_cc_set
3064 if test -n "$ac_cc_set"; then
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3066 $as_echo "$ac_cc_set" >&6; }
3067 else
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073  test -n "$ac_cc_set" && break
3074 done
3075 test -n "$ac_cc_set" || ac_cc_set="no"
3076
3077   if test $ac_cc_set != no; then :
3078
3079     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3080 set dummy $ac_cc_set; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3084  $as_echo_n "(cached) " >&6
3085 else
3086  case $ac_cc_path in
3087  [\\/]* | ?:[\\/]*)
3088  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3089  ;;
3090  *)
3091  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102 done
3103  done
3104 IFS=$as_save_IFS
3105
3106  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3107  ;;
3108 esac
3109 fi
3110 ac_cc_path=$ac_cv_path_ac_cc_path
3111 if test -n "$ac_cc_path"; then
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3113 $as_echo "$ac_cc_path" >&6; }
3114 else
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 else
3121
3122     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3123 fi
3124
3125   if test $ac_cc_path != no; then :
3126
3127     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3128 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3129     MPICC=$CC
3130
3131 else
3132
3133     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3134 fi
3135 fi
3136
3137 if test x"$CXX" != x; then
3138   for ac_prog in $CXX
3139 do
3140  # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3145  $as_echo_n "(cached) " >&6
3146 else
3147  if test -n "$ac_cxx_set"; then
3148  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155    for ac_exec_ext in '' $ac_executable_extensions; do
3156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157    ac_cv_prog_ac_cxx_set="$ac_prog"
3158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161 done
3162  done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3168 if test -n "$ac_cxx_set"; then
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3170 $as_echo "$ac_cxx_set" >&6; }
3171 else
3172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177  test -n "$ac_cxx_set" && break
3178 done
3179 test -n "$ac_cxx_set" || ac_cxx_set="no"
3180
3181   if test $ac_cxx_set != no; then :
3182
3183     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3184 set dummy $ac_cxx_set; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3188  $as_echo_n "(cached) " >&6
3189 else
3190  case $ac_cxx_path in
3191  [\\/]* | ?:[\\/]*)
3192  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3193  ;;
3194  *)
3195  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200    for ac_exec_ext in '' $ac_executable_extensions; do
3201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204    break 2
3205  fi
3206 done
3207  done
3208 IFS=$as_save_IFS
3209
3210  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3211  ;;
3212 esac
3213 fi
3214 ac_cxx_path=$ac_cv_path_ac_cxx_path
3215 if test -n "$ac_cxx_path"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3217 $as_echo "$ac_cxx_path" >&6; }
3218 else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224 else
3225
3226     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3227 fi
3228
3229   if test $ac_cxx_path != no; then :
3230
3231     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3232 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3233     MPICXX=$CXX
3234
3235 else
3236
3237     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3238 fi
3239 fi
3240
3241 if test x"$FC" != x; then
3242   for ac_prog in $FC
3243 do
3244  # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 $as_echo_n "checking for $ac_word... " >&6; }
3248 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3249  $as_echo_n "(cached) " >&6
3250 else
3251  if test -n "$ac_fc_set"; then
3252  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259    for ac_exec_ext in '' $ac_executable_extensions; do
3260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261    ac_cv_prog_ac_fc_set="$ac_prog"
3262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265 done
3266  done
3267 IFS=$as_save_IFS
3268
3269 fi
3270 fi
3271 ac_fc_set=$ac_cv_prog_ac_fc_set
3272 if test -n "$ac_fc_set"; then
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3274 $as_echo "$ac_fc_set" >&6; }
3275 else
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 $as_echo "no" >&6; }
3278 fi
3279
3280
3281  test -n "$ac_fc_set" && break
3282 done
3283 test -n "$ac_fc_set" || ac_fc_set="no"
3284
3285   if test $ac_fc_set != no; then :
3286
3287     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3288 set dummy $ac_fc_set; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3292  $as_echo_n "(cached) " >&6
3293 else
3294  case $ac_fc_path in
3295  [\\/]* | ?:[\\/]*)
3296  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3297  ;;
3298  *)
3299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310 done
3311  done
3312 IFS=$as_save_IFS
3313
3314  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3315  ;;
3316 esac
3317 fi
3318 ac_fc_path=$ac_cv_path_ac_fc_path
3319 if test -n "$ac_fc_path"; then
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3321 $as_echo "$ac_fc_path" >&6; }
3322 else
3323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328 else
3329
3330     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3331 fi
3332
3333   if test $ac_fc_path != no; then :
3334
3335     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3336 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3337     MPIFC=$FC
3338
3339 else
3340
3341     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3342 fi
3343 fi
3344
3345
2898   ac_ext=cpp
2899   ac_cpp='$CXXCPP $CPPFLAGS'
2900   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3351
3352 ac_ext=cpp
3353 ac_cpp='$CXXCPP $CPPFLAGS'
3354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2903   if test -z "$CXX"; then
2904    if test -n "$CCC"; then
2905      CXX=$CCC
2906    else
2907      if test -n "$ac_tool_prefix"; then
2908 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2908 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2909    do
2910      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913   $as_echo_n "checking for $ac_word... " >&6; }
2914 < if test "${ac_cv_prog_CXX+set}" = set; then :
2914 > if ${ac_cv_prog_CXX+:} false; then :
2915    $as_echo_n "(cached) " >&6
2916   else
2917    if test -n "$CXX"; then
# Line 3403 | Line 2949 | if test -z "$CXX"; then
2949   fi
2950   if test -z "$CXX"; then
2951    ac_ct_CXX=$CXX
2952 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2952 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2953   do
2954    # Extract the first word of "$ac_prog", so it can be a program name with args.
2955   set dummy $ac_prog; ac_word=$2
2956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957   $as_echo_n "checking for $ac_word... " >&6; }
2958 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2958 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2959    $as_echo_n "(cached) " >&6
2960   else
2961    if test -n "$ac_ct_CXX"; then
# Line 3572 | Line 3118 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118  
3119   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 < { as_fn_set_status 77
3122 < as_fn_error "C++ compiler cannot create executables
3577 < See \`config.log' for more details." "$LINENO" 5; }; }
3121 > as_fn_error 77 "C++ compiler cannot create executables
3122 > See \`config.log' for more details" "$LINENO" 5; }
3123   else
3124    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3125   $as_echo "yes" >&6; }
# Line 3616 | Line 3161 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161   else
3162    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3165 < See \`config.log' for more details." "$LINENO" 5; }
3164 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3165 > See \`config.log' for more details" "$LINENO" 5; }
3166   fi
3167   rm -f conftest conftest$ac_cv_exeext
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
# Line 3674 | Line 3219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219      else
3220          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 < as_fn_error "cannot run C++ compiled programs.
3222 > as_fn_error $? "cannot run C++ compiled programs.
3223   If you meant to cross compile, use \`--host'.
3224 < See \`config.log' for more details." "$LINENO" 5; }
3224 > See \`config.log' for more details" "$LINENO" 5; }
3225      fi
3226    fi
3227   fi
# Line 3687 | Line 3232 | $as_echo_n "checking for suffix of object files... " >
3232   ac_clean_files=$ac_clean_files_save
3233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3234   $as_echo_n "checking for suffix of object files... " >&6; }
3235 < if test "${ac_cv_objext+set}" = set; then :
3235 > if ${ac_cv_objext+:} false; then :
3236    $as_echo_n "(cached) " >&6
3237   else
3238    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3727 | Line 3272 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272  
3273   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 < as_fn_error "cannot compute suffix of object files: cannot compile
3276 < See \`config.log' for more details." "$LINENO" 5; }
3275 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3276 > See \`config.log' for more details" "$LINENO" 5; }
3277   fi
3278   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3279   fi
# Line 3738 | Line 3283 | $as_echo_n "checking whether we are using the GNU C++
3283   ac_objext=$OBJEXT
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3285   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3286 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3286 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3287    $as_echo_n "(cached) " >&6
3288   else
3289    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3775 | Line 3320 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3320   ac_save_CXXFLAGS=$CXXFLAGS
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3322   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3323 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3323 > if ${ac_cv_prog_cxx_g+:} false; then :
3324    $as_echo_n "(cached) " >&6
3325   else
3326    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3851 | Line 3396 | fi
3396      CXXFLAGS=
3397    fi
3398   fi
3399 < ac_ext=cpp
3400 < ac_cpp='$CXXCPP $CPPFLAGS'
3401 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3859 <
3860 <
3861 <
3399 > ac_ext=c
3400 > ac_cpp='$CPP $CPPFLAGS'
3401 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404  
3405 + ac_ext=c
3406 + ac_cpp='$CPP $CPPFLAGS'
3407 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 + if test -n "$ac_tool_prefix"; then
3411 +  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3412 +  do
3413 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3414 + set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3415 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 + $as_echo_n "checking for $ac_word... " >&6; }
3417 + if ${ac_cv_prog_CC+:} false; then :
3418 +  $as_echo_n "(cached) " >&6
3419 + else
3420 +  if test -n "$CC"; then
3421 +  ac_cv_prog_CC="$CC" # Let the user override the test.
3422 + else
3423 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 + for as_dir in $PATH
3425 + do
3426 +  IFS=$as_save_IFS
3427 +  test -z "$as_dir" && as_dir=.
3428 +    for ac_exec_ext in '' $ac_executable_extensions; do
3429 +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3431 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 +    break 2
3433 +  fi
3434 + done
3435 +  done
3436 + IFS=$as_save_IFS
3437  
3438 + fi
3439 + fi
3440 + CC=$ac_cv_prog_CC
3441 + if test -n "$CC"; then
3442 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 + $as_echo "$CC" >&6; }
3444 + else
3445 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 + $as_echo "no" >&6; }
3447 + fi
3448  
3449  
3450 <        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3450 >    test -n "$CC" && break
3451 >  done
3452 > fi
3453 > if test -z "$CC"; then
3454 >  ac_ct_CC=$CC
3455 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3456   do
3457    # Extract the first word of "$ac_prog", so it can be a program name with args.
3458   set dummy $ac_prog; ac_word=$2
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460   $as_echo_n "checking for $ac_word... " >&6; }
3461 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3461 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3462    $as_echo_n "(cached) " >&6
3463   else
3464 <  if test -n "$MPICXX"; then
3465 <  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3464 >  if test -n "$ac_ct_CC"; then
3465 >  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3466   else
3467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468   for as_dir in $PATH
# Line 3882 | Line 3471 | do
3471    test -z "$as_dir" && as_dir=.
3472      for ac_exec_ext in '' $ac_executable_extensions; do
3473    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474 <    ac_cv_prog_MPICXX="$ac_prog"
3474 >    ac_cv_prog_ac_ct_CC="$ac_prog"
3475      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476      break 2
3477    fi
# Line 3892 | Line 3481 | fi
3481  
3482   fi
3483   fi
3484 < MPICXX=$ac_cv_prog_MPICXX
3485 < if test -n "$MPICXX"; then
3486 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3487 < $as_echo "$MPICXX" >&6; }
3484 > ac_ct_CC=$ac_cv_prog_ac_ct_CC
3485 > if test -n "$ac_ct_CC"; then
3486 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3487 > $as_echo "$ac_ct_CC" >&6; }
3488   else
3489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490   $as_echo "no" >&6; }
3491   fi
3492  
3493  
3494 <  test -n "$MPICXX" && break
3494 >  test -n "$ac_ct_CC" && break
3495   done
3907 test -n "$MPICXX" || MPICXX="$CXX"
3496  
3497 <        ax_mpi_save_CXX="$CXX"
3498 <        CXX="$MPICXX"
3499 <
3500 <
3501 <
3502 < if test x = x"$MPILIBS"; then
3503 <        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3504 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3505 <  MPILIBS=" "
3497 >  if test "x$ac_ct_CC" = x; then
3498 >    CC=""
3499 >  else
3500 >    case $cross_compiling:$ac_tool_warned in
3501 > yes:)
3502 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504 > ac_tool_warned=yes ;;
3505 > esac
3506 >    CC=$ac_ct_CC
3507 >  fi
3508   fi
3509  
3920 fi
3510  
3511 < if test x = x"$MPILIBS"; then
3512 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3513 < $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3514 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3511 > test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 > as_fn_error $? "no acceptable C compiler found in \$PATH
3514 > See \`config.log' for more details" "$LINENO" 5; }
3515 >
3516 > # Provide some information about the compiler.
3517 > $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518 > set X $ac_compile
3519 > ac_compiler=$2
3520 > for ac_option in --version -v -V -qversion; do
3521 >  { { ac_try="$ac_compiler $ac_option >&5"
3522 > case "(($ac_try" in
3523 >  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 >  *) ac_try_echo=$ac_try;;
3525 > esac
3526 > eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 > $as_echo "$ac_try_echo"; } >&5
3528 >  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529 >  ac_status=$?
3530 >  if test -s conftest.err; then
3531 >    sed '10a\
3532 > ... rest of stderr output deleted ...
3533 >         10q' conftest.err >conftest.er1
3534 >    cat conftest.er1 >&5
3535 >  fi
3536 >  rm -f conftest.er1 conftest.err
3537 >  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 >  test $ac_status = 0; }
3539 > done
3540 >
3541 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3542 > $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3543 > if ${ac_cv_c_compiler_gnu+:} false; then :
3544    $as_echo_n "(cached) " >&6
3545   else
3546 <  ac_check_lib_save_LIBS=$LIBS
3929 < LIBS="-lmpi  $LIBS"
3930 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547   /* end confdefs.h.  */
3548  
3933 /* Override any GCC internal prototype to avoid an error.
3934   Use char because int might match the return type of a GCC
3935   builtin and then its argument prototype would still apply.  */
3936 #ifdef __cplusplus
3937 extern "C"
3938 #endif
3939 char MPI_Init ();
3549   int
3550   main ()
3551   {
3552 < return MPI_Init ();
3552 > #ifndef __GNUC__
3553 >       choke me
3554 > #endif
3555 >
3556    ;
3557    return 0;
3558   }
3559   _ACEOF
3560 < if ac_fn_cxx_try_link "$LINENO"; then :
3561 <  ac_cv_lib_mpi_MPI_Init=yes
3560 > if ac_fn_c_try_compile "$LINENO"; then :
3561 >  ac_compiler_gnu=yes
3562   else
3563 <  ac_cv_lib_mpi_MPI_Init=no
3563 >  ac_compiler_gnu=no
3564   fi
3565 < rm -f core conftest.err conftest.$ac_objext \
3566 <    conftest$ac_exeext conftest.$ac_ext
3955 < LIBS=$ac_check_lib_save_LIBS
3956 < fi
3957 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3958 < $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3959 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3960 <  MPILIBS="-lmpi"
3961 < fi
3565 > rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 > ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567  
3568   fi
3569 < if test x = x"$MPILIBS"; then
3570 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3571 < $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3572 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3569 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3570 > $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3571 > if test $ac_compiler_gnu = yes; then
3572 >  GCC=yes
3573 > else
3574 >  GCC=
3575 > fi
3576 > ac_test_CFLAGS=${CFLAGS+set}
3577 > ac_save_CFLAGS=$CFLAGS
3578 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3579 > $as_echo_n "checking whether $CC accepts -g... " >&6; }
3580 > if ${ac_cv_prog_cc_g+:} false; then :
3581    $as_echo_n "(cached) " >&6
3582   else
3583 <  ac_check_lib_save_LIBS=$LIBS
3584 < LIBS="-lmpich  $LIBS"
3585 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 >  ac_save_c_werror_flag=$ac_c_werror_flag
3584 >   ac_c_werror_flag=yes
3585 >   ac_cv_prog_cc_g=no
3586 >   CFLAGS="-g"
3587 >   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588   /* end confdefs.h.  */
3589  
3975 /* Override any GCC internal prototype to avoid an error.
3976   Use char because int might match the return type of a GCC
3977   builtin and then its argument prototype would still apply.  */
3978 #ifdef __cplusplus
3979 extern "C"
3980 #endif
3981 char MPI_Init ();
3590   int
3591   main ()
3592   {
3593 < return MPI_Init ();
3593 >
3594    ;
3595    return 0;
3596   }
3597   _ACEOF
3598 < if ac_fn_cxx_try_link "$LINENO"; then :
3599 <  ac_cv_lib_mpich_MPI_Init=yes
3598 > if ac_fn_c_try_compile "$LINENO"; then :
3599 >  ac_cv_prog_cc_g=yes
3600   else
3993  ac_cv_lib_mpich_MPI_Init=no
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext \
3996    conftest$ac_exeext conftest.$ac_ext
3997 LIBS=$ac_check_lib_save_LIBS
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4000 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4001 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4002  MPILIBS="-lmpich"
4003 fi
4004
4005 fi
4006
4007 if test x != x"$MPILIBS"; then
4008        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4009 $as_echo_n "checking for mpi.h... " >&6; }
4010        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012 #include <mpi.h>
4013 int
4014 main ()
4015 {
4016
4017  ;
4018  return 0;
4019 }
4020 _ACEOF
4021 if ac_fn_cxx_try_compile "$LINENO"; then :
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023 $as_echo "yes" >&6; }
4024 else
4025  MPILIBS=""
4026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 fi
4031
4032 CXX="$ax_mpi_save_CXX"
4033
4034
4035
4036 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4037 if test x = x"$MPILIBS"; then
4038        USE_MPI="no"
4039       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4040 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4041        :
4042 else
4043        USE_MPI="yes"
4044        :
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_CC+set}" = set; then :
4058  $as_echo_n "(cached) " >&6
4059 else
4060  if test -n "$CC"; then
4061  ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066  IFS=$as_save_IFS
4067  test -z "$as_dir" && as_dir=.
4068    for ac_exec_ext in '' $ac_executable_extensions; do
4069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072    break 2
4073  fi
4074 done
4075  done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4084 else
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 fi
4091 if test -z "$ac_cv_prog_CC"; then
4092  ac_ct_CC=$CC
4093  # Extract the first word of "gcc", so it can be a program name with args.
4094 set dummy gcc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4098  $as_echo_n "(cached) " >&6
4099 else
4100  if test -n "$ac_ct_CC"; then
4101  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108    for ac_exec_ext in '' $ac_executable_extensions; do
4109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110    ac_cv_prog_ac_ct_CC="gcc"
4111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114 done
4115  done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4121 if test -n "$ac_ct_CC"; then
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123 $as_echo "$ac_ct_CC" >&6; }
4124 else
4125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129  if test "x$ac_ct_CC" = x; then
4130    CC=""
4131  else
4132    case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138    CC=$ac_ct_CC
4139  fi
4140 else
4141  CC="$ac_cv_prog_CC"
4142 fi
4143
4144 if test -z "$CC"; then
4145          if test -n "$ac_tool_prefix"; then
4146    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147 set dummy ${ac_tool_prefix}cc; ac_word=$2
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 $as_echo_n "checking for $ac_word... " >&6; }
4150 if test "${ac_cv_prog_CC+set}" = set; then :
4151  $as_echo_n "(cached) " >&6
4152 else
4153  if test -n "$CC"; then
4154  ac_cv_prog_CC="$CC" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4158 do
4159  IFS=$as_save_IFS
4160  test -z "$as_dir" && as_dir=.
4161    for ac_exec_ext in '' $ac_executable_extensions; do
4162  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163    ac_cv_prog_CC="${ac_tool_prefix}cc"
4164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165    break 2
4166  fi
4167 done
4168  done
4169 IFS=$as_save_IFS
4170
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4180 fi
4181
4182
4183  fi
4184 fi
4185 if test -z "$CC"; then
4186  # Extract the first word of "cc", so it can be a program name with args.
4187 set dummy cc; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_CC+set}" = set; then :
4191  $as_echo_n "(cached) " >&6
4192 else
4193  if test -n "$CC"; then
4194  ac_cv_prog_CC="$CC" # Let the user override the test.
4195 else
4196  ac_prog_rejected=no
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200  IFS=$as_save_IFS
4201  test -z "$as_dir" && as_dir=.
4202    for ac_exec_ext in '' $ac_executable_extensions; do
4203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205       ac_prog_rejected=yes
4206       continue
4207     fi
4208    ac_cv_prog_CC="cc"
4209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210    break 2
4211  fi
4212 done
4213  done
4214 IFS=$as_save_IFS
4215
4216 if test $ac_prog_rejected = yes; then
4217  # We found a bogon in the path, so make sure we never use it.
4218  set dummy $ac_cv_prog_CC
4219  shift
4220  if test $# != 0; then
4221    # We chose a different compiler from the bogus one.
4222    # However, it has the same basename, so the bogon will be chosen
4223    # first if we set CC to just the basename; use the full file name.
4224    shift
4225    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4226  fi
4227 fi
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4234 else
4235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4237 fi
4238
4239
4240 fi
4241 if test -z "$CC"; then
4242  if test -n "$ac_tool_prefix"; then
4243  for ac_prog in cl.exe
4244  do
4245    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if test "${ac_cv_prog_CC+set}" = set; then :
4250  $as_echo_n "(cached) " >&6
4251 else
4252  if test -n "$CC"; then
4253  ac_cv_prog_CC="$CC" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260    for ac_exec_ext in '' $ac_executable_extensions; do
4261  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264    break 2
4265  fi
4266 done
4267  done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 CC=$ac_cv_prog_CC
4273 if test -n "$CC"; then
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275 $as_echo "$CC" >&6; }
4276 else
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281
4282    test -n "$CC" && break
4283  done
4284 fi
4285 if test -z "$CC"; then
4286  ac_ct_CC=$CC
4287  for ac_prog in cl.exe
4288 do
4289  # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4294  $as_echo_n "(cached) " >&6
4295 else
4296  if test -n "$ac_ct_CC"; then
4297  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_exec_ext in '' $ac_executable_extensions; do
4305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306    ac_cv_prog_ac_ct_CC="$ac_prog"
4307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308    break 2
4309  fi
4310 done
4311  done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4317 if test -n "$ac_ct_CC"; then
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4319 $as_echo "$ac_ct_CC" >&6; }
4320 else
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4323 fi
4324
4325
4326  test -n "$ac_ct_CC" && break
4327 done
4328
4329  if test "x$ac_ct_CC" = x; then
4330    CC=""
4331  else
4332    case $cross_compiling:$ac_tool_warned in
4333 yes:)
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4337 esac
4338    CC=$ac_ct_CC
4339  fi
4340 fi
4341
4342 fi
4343
4344
4345 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error "no acceptable C compiler found in \$PATH
4348 See \`config.log' for more details." "$LINENO" 5; }
4349
4350 # Provide some information about the compiler.
4351 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4352 set X $ac_compile
4353 ac_compiler=$2
4354 for ac_option in --version -v -V -qversion; do
4355  { { ac_try="$ac_compiler $ac_option >&5"
4356 case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363  ac_status=$?
4364  if test -s conftest.err; then
4365    sed '10a\
4366 ... rest of stderr output deleted ...
4367         10q' conftest.err >conftest.er1
4368    cat conftest.er1 >&5
4369  fi
4370  rm -f conftest.er1 conftest.err
4371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372  test $ac_status = 0; }
4373 done
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4376 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4377 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4378  $as_echo_n "(cached) " >&6
4379 else
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382
4383 int
4384 main ()
4385 {
4386 #ifndef __GNUC__
4387       choke me
4388 #endif
4389
4390  ;
4391  return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395  ac_compiler_gnu=yes
4396 else
4397  ac_compiler_gnu=no
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4401
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4404 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4405 if test $ac_compiler_gnu = yes; then
4406  GCC=yes
4407 else
4408  GCC=
4409 fi
4410 ac_test_CFLAGS=${CFLAGS+set}
4411 ac_save_CFLAGS=$CFLAGS
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4413 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4414 if test "${ac_cv_prog_cc_g+set}" = set; then :
4415  $as_echo_n "(cached) " >&6
4416 else
4417  ac_save_c_werror_flag=$ac_c_werror_flag
4418   ac_c_werror_flag=yes
4419   ac_cv_prog_cc_g=no
4420   CFLAGS="-g"
4421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h.  */
4423
4424 int
4425 main ()
4426 {
4427
4428  ;
4429  return 0;
4430 }
4431 _ACEOF
4432 if ac_fn_c_try_compile "$LINENO"; then :
4433  ac_cv_prog_cc_g=yes
4434 else
3601    CFLAGS=""
3602        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603   /* end confdefs.h.  */
# Line 4489 | Line 3655 | $as_echo_n "checking for $CC option to accept ISO C89.
3655   fi
3656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3657   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3658 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3658 > if ${ac_cv_prog_cc_c89+:} false; then :
3659    $as_echo_n "(cached) " >&6
3660   else
3661    ac_cv_prog_cc_c89=no
# Line 4585 | Line 3751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752  
3753  
3754 < if test $USE_MPI != no; then :
3754 > save_CXX=$CXX
3755 > save_CC=$CC
3756 > save_LIBS=$LIBS
3757  
3758 < ac_ext=c
3759 < ac_cpp='$CPP $CPPFLAGS'
3760 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758 > ac_ext=cpp
3759 > ac_cpp='$CXXCPP $CPPFLAGS'
3760 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3763  
3764  
3765 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3766 + $as_echo_n "checking for dlopen in -lc... " >&6; }
3767 + if ${ac_cv_lib_c_dlopen+:} false; then :
3768 +  $as_echo_n "(cached) " >&6
3769 + else
3770 +  ac_check_lib_save_LIBS=$LIBS
3771 + LIBS="-lc  $LIBS"
3772 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 + /* end confdefs.h.  */
3774  
3775 + /* Override any GCC internal prototype to avoid an error.
3776 +   Use char because int might match the return type of a GCC
3777 +   builtin and then its argument prototype would still apply.  */
3778 + #ifdef __cplusplus
3779 + extern "C"
3780 + #endif
3781 + char dlopen ();
3782 + int
3783 + main ()
3784 + {
3785 + return dlopen ();
3786 +  ;
3787 +  return 0;
3788 + }
3789 + _ACEOF
3790 + if ac_fn_cxx_try_link "$LINENO"; then :
3791 +  ac_cv_lib_c_dlopen=yes
3792 + else
3793 +  ac_cv_lib_c_dlopen=no
3794 + fi
3795 + rm -f core conftest.err conftest.$ac_objext \
3796 +    conftest$ac_exeext conftest.$ac_ext
3797 + LIBS=$ac_check_lib_save_LIBS
3798 + fi
3799 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3800 + $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3801 + if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3802 +  LIBDL=""
3803 + else
3804 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3805 + $as_echo_n "checking for dlopen in -ldl... " >&6; }
3806 + if ${ac_cv_lib_dl_dlopen+:} false; then :
3807 +  $as_echo_n "(cached) " >&6
3808 + else
3809 +  ac_check_lib_save_LIBS=$LIBS
3810 + LIBS="-ldl  $LIBS"
3811 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 + /* end confdefs.h.  */
3813  
3814 + /* Override any GCC internal prototype to avoid an error.
3815 +   Use char because int might match the return type of a GCC
3816 +   builtin and then its argument prototype would still apply.  */
3817 + #ifdef __cplusplus
3818 + extern "C"
3819 + #endif
3820 + char dlopen ();
3821 + int
3822 + main ()
3823 + {
3824 + return dlopen ();
3825 +  ;
3826 +  return 0;
3827 + }
3828 + _ACEOF
3829 + if ac_fn_cxx_try_link "$LINENO"; then :
3830 +  ac_cv_lib_dl_dlopen=yes
3831 + else
3832 +  ac_cv_lib_dl_dlopen=no
3833 + fi
3834 + rm -f core conftest.err conftest.$ac_objext \
3835 +    conftest$ac_exeext conftest.$ac_ext
3836 + LIBS=$ac_check_lib_save_LIBS
3837 + fi
3838 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3839 + $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3840 + if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3841 +  LIBDL="-ldl"
3842 + fi
3843  
3844 + fi
3845  
3846 <        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
3846 >
3847 >
3848 >
3849 >
3850 >
3851 >
3852 >        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3853   do
3854    # Extract the first word of "$ac_prog", so it can be a program name with args.
3855   set dummy $ac_prog; ac_word=$2
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857   $as_echo_n "checking for $ac_word... " >&6; }
3858 < if test "${ac_cv_prog_MPICC+set}" = set; then :
3858 > if ${ac_cv_prog_MPICXX+:} false; then :
3859    $as_echo_n "(cached) " >&6
3860   else
3861 <  if test -n "$MPICC"; then
3862 <  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3861 >  if test -n "$MPICXX"; then
3862 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3863   else
3864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865   for as_dir in $PATH
# Line 4617 | Line 3868 | do
3868    test -z "$as_dir" && as_dir=.
3869      for ac_exec_ext in '' $ac_executable_extensions; do
3870    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 <    ac_cv_prog_MPICC="$ac_prog"
3871 >    ac_cv_prog_MPICXX="$ac_prog"
3872      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873      break 2
3874    fi
# Line 4627 | Line 3878 | fi
3878  
3879   fi
3880   fi
3881 < MPICC=$ac_cv_prog_MPICC
3882 < if test -n "$MPICC"; then
3883 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
3884 < $as_echo "$MPICC" >&6; }
3881 > MPICXX=$ac_cv_prog_MPICXX
3882 > if test -n "$MPICXX"; then
3883 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3884 > $as_echo "$MPICXX" >&6; }
3885   else
3886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887   $as_echo "no" >&6; }
3888   fi
3889  
3890  
3891 <  test -n "$MPICC" && break
3891 >  test -n "$MPICXX" && break
3892   done
3893 < test -n "$MPICC" || MPICC="$CC"
3893 > test -n "$MPICXX" || MPICXX="$CXX"
3894  
3895 <        ax_mpi_save_CC="$CC"
3896 <        CC="$MPICC"
3895 >        ax_mpi_save_CXX="$CXX"
3896 >        CXX="$MPICXX"
3897  
3898  
3899  
3900   if test x = x"$MPILIBS"; then
3901 <        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3901 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3902 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3903    MPILIBS=" "
3904   fi
3905  
# Line 4657 | Line 3908 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3908   if test x = x"$MPILIBS"; then
3909          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3910   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3911 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3911 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3912    $as_echo_n "(cached) " >&6
3913   else
3914    ac_check_lib_save_LIBS=$LIBS
# Line 4680 | Line 3931 | _ACEOF
3931    return 0;
3932   }
3933   _ACEOF
3934 < if ac_fn_c_try_link "$LINENO"; then :
3934 > if ac_fn_cxx_try_link "$LINENO"; then :
3935    ac_cv_lib_mpi_MPI_Init=yes
3936   else
3937    ac_cv_lib_mpi_MPI_Init=no
# Line 4691 | Line 3942 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3942   fi
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3944   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3945 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3945 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3946    MPILIBS="-lmpi"
3947   fi
3948  
# Line 4699 | Line 3950 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
3950   if test x = x"$MPILIBS"; then
3951          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3952   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3953 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3953 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3954    $as_echo_n "(cached) " >&6
3955   else
3956    ac_check_lib_save_LIBS=$LIBS
# Line 4722 | Line 3973 | _ACEOF
3973    return 0;
3974   }
3975   _ACEOF
3976 < if ac_fn_c_try_link "$LINENO"; then :
3976 > if ac_fn_cxx_try_link "$LINENO"; then :
3977    ac_cv_lib_mpich_MPI_Init=yes
3978   else
3979    ac_cv_lib_mpich_MPI_Init=no
# Line 4733 | Line 3984 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3984   fi
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3986   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3987 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3987 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3988    MPILIBS="-lmpich"
3989   fi
3990  
# Line 4753 | Line 4004 | _ACEOF
4004    return 0;
4005   }
4006   _ACEOF
4007 < if ac_fn_c_try_compile "$LINENO"; then :
4007 > if ac_fn_cxx_try_compile "$LINENO"; then :
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009   $as_echo "yes" >&6; }
4010   else
# Line 4764 | Line 4015 | fi
4015   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016   fi
4017  
4018 < CC="$ax_mpi_save_CC"
4018 > CXX="$ax_mpi_save_CXX"
4019  
4020  
4021  
4022   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4023   if test x = x"$MPILIBS"; then
4024          USE_MPI="no"
4025 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4026 < $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4025 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4026 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4027          :
4028   else
4029          USE_MPI="yes"
# Line 4780 | Line 4031 | fi
4031   fi
4032  
4033  
4783 fi
4784 ac_ext=${ac_fc_srcext-f}
4785 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4786 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4788 if test -n "$ac_tool_prefix"; then
4789  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4790  do
4791    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_FC+set}" = set; then :
4796  $as_echo_n "(cached) " >&6
4797 else
4798  if test -n "$FC"; then
4799  ac_cv_prog_FC="$FC" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804  IFS=$as_save_IFS
4805  test -z "$as_dir" && as_dir=.
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810    break 2
4811  fi
4812 done
4813  done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 FC=$ac_cv_prog_FC
4819 if test -n "$FC"; then
4820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4821 $as_echo "$FC" >&6; }
4822 else
4823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827
4828    test -n "$FC" && break
4829  done
4830 fi
4831 if test -z "$FC"; then
4832  ac_ct_FC=$FC
4833  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4834 do
4835  # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4840  $as_echo_n "(cached) " >&6
4841 else
4842  if test -n "$ac_ct_FC"; then
4843  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850    for ac_exec_ext in '' $ac_executable_extensions; do
4851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852    ac_cv_prog_ac_ct_FC="$ac_prog"
4853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856 done
4857  done
4858 IFS=$as_save_IFS
4859
4860 fi
4861 fi
4862 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4863 if test -n "$ac_ct_FC"; then
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4865 $as_echo "$ac_ct_FC" >&6; }
4866 else
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 fi
4870
4871
4872  test -n "$ac_ct_FC" && break
4873 done
4874
4875  if test "x$ac_ct_FC" = x; then
4876    FC=""
4877  else
4878    case $cross_compiling:$ac_tool_warned in
4879 yes:)
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4882 ac_tool_warned=yes ;;
4883 esac
4884    FC=$ac_ct_FC
4885  fi
4886 fi
4887
4888
4889 # Provide some information about the compiler.
4890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4891 set X $ac_compile
4892 ac_compiler=$2
4893 for ac_option in --version -v -V -qversion; do
4894  { { ac_try="$ac_compiler $ac_option >&5"
4895 case "(($ac_try" in
4896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897  *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900 $as_echo "$ac_try_echo"; } >&5
4901  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4902  ac_status=$?
4903  if test -s conftest.err; then
4904    sed '10a\
4905 ... rest of stderr output deleted ...
4906         10q' conftest.err >conftest.er1
4907    cat conftest.er1 >&5
4908  fi
4909  rm -f conftest.er1 conftest.err
4910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911  test $ac_status = 0; }
4912 done
4913 rm -f a.out
4914
4915 # If we don't use `.F' as extension, the preprocessor is not run on the
4916 # input file.  (Note that this only needs to work for GNU compilers.)
4917 ac_save_ext=$ac_ext
4918 ac_ext=F
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4920 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4921 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4922  $as_echo_n "(cached) " >&6
4923 else
4924  cat > conftest.$ac_ext <<_ACEOF
4925      program main
4926 #ifndef __GNUC__
4927       choke me
4928 #endif
4929
4930      end
4931 _ACEOF
4932 if ac_fn_fc_try_compile "$LINENO"; then :
4933  ac_compiler_gnu=yes
4934 else
4935  ac_compiler_gnu=no
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4939
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4942 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4943 ac_ext=$ac_save_ext
4944 ac_test_FCFLAGS=${FCFLAGS+set}
4945 ac_save_FCFLAGS=$FCFLAGS
4946 FCFLAGS=
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4948 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4949 if test "${ac_cv_prog_fc_g+set}" = set; then :
4950  $as_echo_n "(cached) " >&6
4951 else
4952  FCFLAGS=-g
4953 cat > conftest.$ac_ext <<_ACEOF
4954      program main
4955
4956      end
4957 _ACEOF
4958 if ac_fn_fc_try_compile "$LINENO"; then :
4959  ac_cv_prog_fc_g=yes
4960 else
4961  ac_cv_prog_fc_g=no
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4967 $as_echo "$ac_cv_prog_fc_g" >&6; }
4968 if test "$ac_test_FCFLAGS" = set; then
4969  FCFLAGS=$ac_save_FCFLAGS
4970 elif test $ac_cv_prog_fc_g = yes; then
4971  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4972    FCFLAGS="-g -O2"
4973  else
4974    FCFLAGS="-g"
4975  fi
4976 else
4977  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4978    FCFLAGS="-O2"
4979  else
4980    FCFLAGS=
4981  fi
4982 fi
4983
4984 ac_ext=${ac_fc_srcext-f}
4985 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4986 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4988
4989
4034   if test $USE_MPI != no; then :
4035  
4036 < ac_ext=${ac_fc_srcext-f}
4037 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4038 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4039 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4036 > ac_ext=c
4037 > ac_cpp='$CPP $CPPFLAGS'
4038 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041  
4042  
4043  
4044  
4045  
4046  
4047 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4047 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4048   do
4049    # Extract the first word of "$ac_prog", so it can be a program name with args.
4050   set dummy $ac_prog; ac_word=$2
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052   $as_echo_n "checking for $ac_word... " >&6; }
4053 < if test "${ac_cv_prog_MPIFC+set}" = set; then :
4053 > if ${ac_cv_prog_MPICC+:} false; then :
4054    $as_echo_n "(cached) " >&6
4055   else
4056 <  if test -n "$MPIFC"; then
4057 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4056 >  if test -n "$MPICC"; then
4057 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4058   else
4059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060   for as_dir in $PATH
# Line 5018 | Line 4063 | do
4063    test -z "$as_dir" && as_dir=.
4064      for ac_exec_ext in '' $ac_executable_extensions; do
4065    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 <    ac_cv_prog_MPIFC="$ac_prog"
4066 >    ac_cv_prog_MPICC="$ac_prog"
4067      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068      break 2
4069    fi
# Line 5028 | Line 4073 | fi
4073  
4074   fi
4075   fi
4076 < MPIFC=$ac_cv_prog_MPIFC
4077 < if test -n "$MPIFC"; then
4078 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4079 < $as_echo "$MPIFC" >&6; }
4076 > MPICC=$ac_cv_prog_MPICC
4077 > if test -n "$MPICC"; then
4078 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4079 > $as_echo "$MPICC" >&6; }
4080   else
4081    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082   $as_echo "no" >&6; }
4083   fi
4084  
4085  
4086 <  test -n "$MPIFC" && break
4086 >  test -n "$MPICC" && break
4087   done
4088 < test -n "$MPIFC" || MPIFC="$FC"
4088 > test -n "$MPICC" || MPICC="$CC"
4089  
4090 <        ax_mpi_save_FC="$FC"
4091 <        FC="$MPIFC"
4090 >        ax_mpi_save_CC="$CC"
4091 >        CC="$MPICC"
4092  
4093  
4094  
4095   if test x = x"$MPILIBS"; then
4096 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4097 < $as_echo_n "checking for MPI_Init... " >&6; }
5053 <                        cat > conftest.$ac_ext <<_ACEOF
5054 <      program main
5055 <      call MPI_Init
5056 <      end
5057 < _ACEOF
5058 < if ac_fn_fc_try_link "$LINENO"; then :
4096 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4097 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4098    MPILIBS=" "
5060                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5061 $as_echo "yes" >&6; }
5062 else
5063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
4099   fi
5066 rm -f core conftest.err conftest.$ac_objext \
5067    conftest$ac_exeext conftest.$ac_ext
5068 fi
4100  
5070        if test x = x"$MPILIBS"; then
5071                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5072 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5073 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5074  $as_echo_n "(cached) " >&6
5075 else
5076  ac_check_lib_save_LIBS=$LIBS
5077 LIBS="-lfmpi  $LIBS"
5078 cat > conftest.$ac_ext <<_ACEOF
5079      program main
5080      call MPI_Init
5081      end
5082 _ACEOF
5083 if ac_fn_fc_try_link "$LINENO"; then :
5084  ac_cv_lib_fmpi_MPI_Init=yes
5085 else
5086  ac_cv_lib_fmpi_MPI_Init=no
4101   fi
5088 rm -f core conftest.err conftest.$ac_objext \
5089    conftest$ac_exeext conftest.$ac_ext
5090 LIBS=$ac_check_lib_save_LIBS
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5093 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5094 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5095  MPILIBS="-lfmpi"
5096 fi
4102  
5098        fi
5099        if test x = x"$MPILIBS"; then
5100                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5101 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5102 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5103  $as_echo_n "(cached) " >&6
5104 else
5105  ac_check_lib_save_LIBS=$LIBS
5106 LIBS="-lmpichf90  $LIBS"
5107 cat > conftest.$ac_ext <<_ACEOF
5108      program main
5109      call MPI_Init
5110      end
5111 _ACEOF
5112 if ac_fn_fc_try_link "$LINENO"; then :
5113  ac_cv_lib_mpichf90_MPI_Init=yes
5114 else
5115  ac_cv_lib_mpichf90_MPI_Init=no
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext \
5118    conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5122 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5123 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5124  MPILIBS="-lmpichf90"
5125 fi
5126
5127        fi
5128
4103   if test x = x"$MPILIBS"; then
4104          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4105   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4106 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4106 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4107    $as_echo_n "(cached) " >&6
4108   else
4109    ac_check_lib_save_LIBS=$LIBS
4110   LIBS="-lmpi  $LIBS"
4111 < cat > conftest.$ac_ext <<_ACEOF
4112 <      program main
4113 <      call MPI_Init
4114 <      end
4111 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 > /* end confdefs.h.  */
4113 >
4114 > /* Override any GCC internal prototype to avoid an error.
4115 >   Use char because int might match the return type of a GCC
4116 >   builtin and then its argument prototype would still apply.  */
4117 > #ifdef __cplusplus
4118 > extern "C"
4119 > #endif
4120 > char MPI_Init ();
4121 > int
4122 > main ()
4123 > {
4124 > return MPI_Init ();
4125 >  ;
4126 >  return 0;
4127 > }
4128   _ACEOF
4129 < if ac_fn_fc_try_link "$LINENO"; then :
4129 > if ac_fn_c_try_link "$LINENO"; then :
4130    ac_cv_lib_mpi_MPI_Init=yes
4131   else
4132    ac_cv_lib_mpi_MPI_Init=no
# Line 5150 | Line 4137 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4137   fi
4138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4139   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4140 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4140 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4141    MPILIBS="-lmpi"
4142   fi
4143  
# Line 5158 | Line 4145 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4145   if test x = x"$MPILIBS"; then
4146          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4147   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4148 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4148 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4149    $as_echo_n "(cached) " >&6
4150   else
4151    ac_check_lib_save_LIBS=$LIBS
4152   LIBS="-lmpich  $LIBS"
4153 < cat > conftest.$ac_ext <<_ACEOF
4154 <      program main
4155 <      call MPI_Init
4156 <      end
4153 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 > /* end confdefs.h.  */
4155 >
4156 > /* Override any GCC internal prototype to avoid an error.
4157 >   Use char because int might match the return type of a GCC
4158 >   builtin and then its argument prototype would still apply.  */
4159 > #ifdef __cplusplus
4160 > extern "C"
4161 > #endif
4162 > char MPI_Init ();
4163 > int
4164 > main ()
4165 > {
4166 > return MPI_Init ();
4167 >  ;
4168 >  return 0;
4169 > }
4170   _ACEOF
4171 < if ac_fn_fc_try_link "$LINENO"; then :
4171 > if ac_fn_c_try_link "$LINENO"; then :
4172    ac_cv_lib_mpich_MPI_Init=yes
4173   else
4174    ac_cv_lib_mpich_MPI_Init=no
# Line 5179 | Line 4179 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4179   fi
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4181   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4182 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4182 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4183    MPILIBS="-lmpich"
4184   fi
4185  
4186   fi
4187  
4188   if test x != x"$MPILIBS"; then
4189 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4190 < $as_echo_n "checking for mpif.h... " >&6; }
4191 <        cat > conftest.$ac_ext <<_ACEOF
4192 <      program main
4193 <      include 'mpif.h'
4194 <      end
4189 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4190 > $as_echo_n "checking for mpi.h... " >&6; }
4191 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 > /* end confdefs.h.  */
4193 > #include <mpi.h>
4194 > int
4195 > main ()
4196 > {
4197 >
4198 >  ;
4199 >  return 0;
4200 > }
4201   _ACEOF
4202 < if ac_fn_fc_try_compile "$LINENO"; then :
4202 > if ac_fn_c_try_compile "$LINENO"; then :
4203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204   $as_echo "yes" >&6; }
4205   else
# Line 5204 | Line 4210 | fi
4210   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211   fi
4212  
4213 < FC="$ax_mpi_save_FC"
4213 > CC="$ax_mpi_save_CC"
4214  
4215  
4216  
4217   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4218   if test x = x"$MPILIBS"; then
4219          USE_MPI="no"
4220 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4221 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4220 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4221 > $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4222          :
4223   else
4224          USE_MPI="yes"
# Line 5225 | Line 4231 | if test $USE_MPI != no; then :
4231  
4232          CXX=$MPICXX
4233          CC=$MPICC
4234 <        FC=$MPIFC
4234 >        LIBS="$MPILIBS $LIBS"
4235  
4236 + else
4237 +
4238 +        CXX=$save_CXX
4239 +        CC=$save_CC
4240 +        LIBS=$save_LIBS
4241 +
4242 +
4243   fi
4244  
4245  
4246   # Checks for programs.
4247 < ac_ext=cpp
4248 < ac_cpp='$CXXCPP $CPPFLAGS'
4249 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4252 < if test -z "$CXX"; then
4253 <  if test -n "$CCC"; then
4254 <    CXX=$CCC
4255 <  else
4256 <    if test -n "$ac_tool_prefix"; then
4257 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4258 <  do
4259 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5247 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5248 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 < $as_echo_n "checking for $ac_word... " >&6; }
5250 < if test "${ac_cv_prog_CXX+set}" = set; then :
4247 > ac_ext=c
4248 > ac_cpp='$CPP $CPPFLAGS'
4249 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4253 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4254 > # On Suns, sometimes $CPP names a directory.
4255 > if test -n "$CPP" && test -d "$CPP"; then
4256 >  CPP=
4257 > fi
4258 > if test -z "$CPP"; then
4259 >  if ${ac_cv_prog_CPP+:} false; then :
4260    $as_echo_n "(cached) " >&6
4261   else
4262 <  if test -n "$CXX"; then
4263 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4264 < else
4265 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 < for as_dir in $PATH
4267 < do
4268 <  IFS=$as_save_IFS
4269 <  test -z "$as_dir" && as_dir=.
4270 <    for ac_exec_ext in '' $ac_executable_extensions; do
4271 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4273 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 <    break 2
4275 <  fi
4276 < done
4277 <  done
4278 < IFS=$as_save_IFS
4279 <
4280 < fi
4281 < fi
4282 < CXX=$ac_cv_prog_CXX
4283 < if test -n "$CXX"; then
4284 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4285 < $as_echo "$CXX" >&6; }
4286 < else
4287 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 < $as_echo "no" >&6; }
4289 < fi
4290 <
4291 <
4292 <    test -n "$CXX" && break
4293 <  done
4294 < fi
4295 < if test -z "$CXX"; then
4296 <  ac_ct_CXX=$CXX
4297 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4298 < do
4299 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 < set dummy $ac_prog; ac_word=$2
4301 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 < $as_echo_n "checking for $ac_word... " >&6; }
4303 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4304 <  $as_echo_n "(cached) " >&6
4305 < else
4306 <  if test -n "$ac_ct_CXX"; then
4307 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4308 < else
4309 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 < for as_dir in $PATH
4311 < do
4312 <  IFS=$as_save_IFS
4313 <  test -z "$as_dir" && as_dir=.
4314 <    for ac_exec_ext in '' $ac_executable_extensions; do
4315 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4317 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 <    break 2
4319 <  fi
4320 < done
4321 <  done
4322 < IFS=$as_save_IFS
4323 <
4324 < fi
4325 < fi
4326 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4327 < if test -n "$ac_ct_CXX"; then
4328 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4329 < $as_echo "$ac_ct_CXX" >&6; }
4330 < else
4331 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 < $as_echo "no" >&6; }
4333 < fi
4334 <
4335 <
4336 <  test -n "$ac_ct_CXX" && break
4337 < done
4338 <
4339 <  if test "x$ac_ct_CXX" = x; then
4340 <    CXX="g++"
4341 <  else
4342 <    case $cross_compiling:$ac_tool_warned in
4343 < yes:)
4344 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 < ac_tool_warned=yes ;;
4347 < esac
4348 <    CXX=$ac_ct_CXX
4349 <  fi
4350 < fi
4351 <
4352 <  fi
4353 < fi
4354 < # Provide some information about the compiler.
4355 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4356 < set X $ac_compile
4357 < ac_compiler=$2
4358 < for ac_option in --version -v -V -qversion; do
4359 <  { { ac_try="$ac_compiler $ac_option >&5"
4360 < case "(($ac_try" in
4361 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 <  *) ac_try_echo=$ac_try;;
4363 < esac
4364 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 < $as_echo "$ac_try_echo"; } >&5
4366 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4367 <  ac_status=$?
4368 <  if test -s conftest.err; then
4369 <    sed '10a\
4370 < ... rest of stderr output deleted ...
4371 <         10q' conftest.err >conftest.er1
4372 <    cat conftest.er1 >&5
4373 <  fi
4374 <  rm -f conftest.er1 conftest.err
4375 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 <  test $ac_status = 0; }
4377 < done
4378 <
4379 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4380 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4381 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4382 <  $as_echo_n "(cached) " >&6
4383 < else
4384 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 < /* end confdefs.h.  */
4386 <
4387 < int
4388 < main ()
4389 < {
4390 < #ifndef __GNUC__
4391 <       choke me
4392 < #endif
4393 <
4394 <  ;
4395 <  return 0;
4396 < }
4397 < _ACEOF
4398 < if ac_fn_cxx_try_compile "$LINENO"; then :
4399 <  ac_compiler_gnu=yes
4400 < else
4401 <  ac_compiler_gnu=no
4402 < fi
4403 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4405 <
4406 < fi
4407 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4408 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4409 < if test $ac_compiler_gnu = yes; then
4410 <  GXX=yes
4411 < else
4412 <  GXX=
4413 < fi
4414 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4415 < ac_save_CXXFLAGS=$CXXFLAGS
4416 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4417 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4418 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4419 <  $as_echo_n "(cached) " >&6
4420 < else
4421 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4422 <   ac_cxx_werror_flag=yes
4423 <   ac_cv_prog_cxx_g=no
4424 <   CXXFLAGS="-g"
4425 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 < /* end confdefs.h.  */
4427 <
4428 < int
4429 < main ()
4430 < {
4431 <
4432 <  ;
4433 <  return 0;
4434 < }
4435 < _ACEOF
4436 < if ac_fn_cxx_try_compile "$LINENO"; then :
4437 <  ac_cv_prog_cxx_g=yes
4438 < else
4439 <  CXXFLAGS=""
4440 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 < /* end confdefs.h.  */
4442 <
4443 < int
4444 < main ()
4445 < {
4446 <
4447 <  ;
4448 <  return 0;
4449 < }
4450 < _ACEOF
4451 < if ac_fn_cxx_try_compile "$LINENO"; then :
4452 <
4453 < else
4454 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4455 <         CXXFLAGS="-g"
4456 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 < /* end confdefs.h.  */
4458 <
4459 < int
4460 < main ()
4461 < {
4462 <
4463 <  ;
4464 <  return 0;
4465 < }
4466 < _ACEOF
4467 < if ac_fn_cxx_try_compile "$LINENO"; then :
4468 <  ac_cv_prog_cxx_g=yes
4469 < fi
4470 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 < fi
4472 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 < fi
4474 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4476 < fi
4477 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4478 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4479 < if test "$ac_test_CXXFLAGS" = set; then
4480 <  CXXFLAGS=$ac_save_CXXFLAGS
4481 < elif test $ac_cv_prog_cxx_g = yes; then
4482 <  if test "$GXX" = yes; then
4483 <    CXXFLAGS="-g -O2"
4484 <  else
4485 <    CXXFLAGS="-g"
4486 <  fi
4487 < else
4488 <  if test "$GXX" = yes; then
4489 <    CXXFLAGS="-O2"
4490 <  else
4491 <    CXXFLAGS=
4492 <  fi
4493 < fi
4494 < ac_ext=${ac_fc_srcext-f}
4495 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4496 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4497 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4498 <
4499 < ac_ext=c
4500 < ac_cpp='$CPP $CPPFLAGS'
4501 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 < if test -n "$ac_tool_prefix"; then
4505 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4506 <  do
4507 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 < $as_echo_n "checking for $ac_word... " >&6; }
4511 < if test "${ac_cv_prog_CC+set}" = set; then :
4512 <  $as_echo_n "(cached) " >&6
4513 < else
4514 <  if test -n "$CC"; then
4515 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4516 < else
4517 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 < for as_dir in $PATH
4519 < do
4520 <  IFS=$as_save_IFS
4521 <  test -z "$as_dir" && as_dir=.
4522 <    for ac_exec_ext in '' $ac_executable_extensions; do
4523 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4525 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 <    break 2
4527 <  fi
4528 < done
4529 <  done
4530 < IFS=$as_save_IFS
4531 <
4532 < fi
4533 < fi
4534 < CC=$ac_cv_prog_CC
4535 < if test -n "$CC"; then
4536 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4537 < $as_echo "$CC" >&6; }
4538 < else
4539 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 < $as_echo "no" >&6; }
4541 < fi
4542 <
4543 <
4544 <    test -n "$CC" && break
4545 <  done
4546 < fi
4547 < if test -z "$CC"; then
4548 <  ac_ct_CC=$CC
4549 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4550 < do
4551 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 < set dummy $ac_prog; ac_word=$2
4553 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 < $as_echo_n "checking for $ac_word... " >&6; }
4555 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4556 <  $as_echo_n "(cached) " >&6
4557 < else
4558 <  if test -n "$ac_ct_CC"; then
4559 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4560 < else
4561 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 < for as_dir in $PATH
4563 < do
4564 <  IFS=$as_save_IFS
4565 <  test -z "$as_dir" && as_dir=.
4566 <    for ac_exec_ext in '' $ac_executable_extensions; do
4567 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4569 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 <    break 2
4571 <  fi
4572 < done
4573 <  done
4574 < IFS=$as_save_IFS
4575 <
4576 < fi
4577 < fi
4578 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4579 < if test -n "$ac_ct_CC"; then
4580 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4581 < $as_echo "$ac_ct_CC" >&6; }
4582 < else
4583 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 < $as_echo "no" >&6; }
4585 < fi
4586 <
4587 <
4588 <  test -n "$ac_ct_CC" && break
4589 < done
4590 <
4591 <  if test "x$ac_ct_CC" = x; then
4592 <    CC=""
4593 <  else
4594 <    case $cross_compiling:$ac_tool_warned in
4595 < yes:)
4596 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 < ac_tool_warned=yes ;;
4599 < esac
4600 <    CC=$ac_ct_CC
4601 <  fi
4602 < fi
4603 <
4604 <
4605 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 < as_fn_error "no acceptable C compiler found in \$PATH
4608 < See \`config.log' for more details." "$LINENO" 5; }
4609 <
4610 < # Provide some information about the compiler.
4611 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4612 < set X $ac_compile
4613 < ac_compiler=$2
4614 < for ac_option in --version -v -V -qversion; do
4615 <  { { ac_try="$ac_compiler $ac_option >&5"
4616 < case "(($ac_try" in
4617 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 <  *) ac_try_echo=$ac_try;;
4619 < esac
4620 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 < $as_echo "$ac_try_echo"; } >&5
4622 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 <  ac_status=$?
4624 <  if test -s conftest.err; then
4625 <    sed '10a\
4626 < ... rest of stderr output deleted ...
4627 <         10q' conftest.err >conftest.er1
4628 <    cat conftest.er1 >&5
4629 <  fi
4630 <  rm -f conftest.er1 conftest.err
4631 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 <  test $ac_status = 0; }
4633 < done
4634 <
4635 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4636 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4637 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4638 <  $as_echo_n "(cached) " >&6
4639 < else
4640 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 < /* end confdefs.h.  */
4642 <
4643 < int
4644 < main ()
4645 < {
4646 < #ifndef __GNUC__
4647 <       choke me
4648 < #endif
4649 <
4650 <  ;
4651 <  return 0;
4652 < }
4653 < _ACEOF
4654 < if ac_fn_c_try_compile "$LINENO"; then :
4655 <  ac_compiler_gnu=yes
4656 < else
4657 <  ac_compiler_gnu=no
4658 < fi
4659 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
4661 <
4662 < fi
4663 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4664 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4665 < if test $ac_compiler_gnu = yes; then
4666 <  GCC=yes
4667 < else
4668 <  GCC=
4669 < fi
4670 < ac_test_CFLAGS=${CFLAGS+set}
4671 < ac_save_CFLAGS=$CFLAGS
4672 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4673 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
4674 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4675 <  $as_echo_n "(cached) " >&6
4676 < else
4677 <  ac_save_c_werror_flag=$ac_c_werror_flag
4678 <   ac_c_werror_flag=yes
4679 <   ac_cv_prog_cc_g=no
4680 <   CFLAGS="-g"
4681 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 < /* end confdefs.h.  */
4683 <
4684 < int
4685 < main ()
4686 < {
4687 <
4688 <  ;
4689 <  return 0;
4690 < }
4691 < _ACEOF
4692 < if ac_fn_c_try_compile "$LINENO"; then :
4693 <  ac_cv_prog_cc_g=yes
4694 < else
4695 <  CFLAGS=""
4696 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 < /* end confdefs.h.  */
4698 <
4699 < int
4700 < main ()
4701 < {
4702 <
4703 <  ;
4704 <  return 0;
4705 < }
4706 < _ACEOF
4707 < if ac_fn_c_try_compile "$LINENO"; then :
4708 <
4709 < else
4710 <  ac_c_werror_flag=$ac_save_c_werror_flag
4711 <         CFLAGS="-g"
4712 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 < /* end confdefs.h.  */
4714 <
4715 < int
4716 < main ()
4717 < {
4718 <
4719 <  ;
4720 <  return 0;
4721 < }
4722 < _ACEOF
4723 < if ac_fn_c_try_compile "$LINENO"; then :
4724 <  ac_cv_prog_cc_g=yes
4725 < fi
4726 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 < fi
4728 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 < fi
4730 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 <   ac_c_werror_flag=$ac_save_c_werror_flag
4732 < fi
4733 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4734 < $as_echo "$ac_cv_prog_cc_g" >&6; }
4735 < if test "$ac_test_CFLAGS" = set; then
4736 <  CFLAGS=$ac_save_CFLAGS
4737 < elif test $ac_cv_prog_cc_g = yes; then
4738 <  if test "$GCC" = yes; then
4739 <    CFLAGS="-g -O2"
4740 <  else
4741 <    CFLAGS="-g"
4742 <  fi
4743 < else
4744 <  if test "$GCC" = yes; then
4745 <    CFLAGS="-O2"
4746 <  else
4747 <    CFLAGS=
4748 <  fi
4749 < fi
4750 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4751 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4752 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
4753 <  $as_echo_n "(cached) " >&6
4754 < else
4755 <  ac_cv_prog_cc_c89=no
4756 < ac_save_CC=$CC
4757 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 < /* end confdefs.h.  */
4759 < #include <stdarg.h>
4760 < #include <stdio.h>
4761 < #include <sys/types.h>
4762 < #include <sys/stat.h>
4763 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4764 < struct buf { int x; };
4765 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
4766 < static char *e (p, i)
4767 <     char **p;
4768 <     int i;
4769 < {
4770 <  return p[i];
4771 < }
4772 < static char *f (char * (*g) (char **, int), char **p, ...)
4773 < {
4774 <  char *s;
4775 <  va_list v;
4776 <  va_start (v,p);
4777 <  s = g (p, va_arg (v,int));
4778 <  va_end (v);
4779 <  return s;
4780 < }
4781 <
4782 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4783 <   function prototypes and stuff, but not '\xHH' hex character constants.
4784 <   These don't provoke an error unfortunately, instead are silently treated
4785 <   as 'x'.  The following induces an error, until -std is added to get
4786 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4787 <   array size at least.  It's necessary to write '\x00'==0 to get something
4788 <   that's true only with -std.  */
4789 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4790 <
4791 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4792 <   inside strings and character constants.  */
4793 < #define FOO(x) 'x'
4794 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4795 <
4796 < int test (int i, double x);
4797 < struct s1 {int (*f) (int a);};
4798 < struct s2 {int (*f) (double a);};
4799 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4800 < int argc;
4801 < char **argv;
4802 < int
4803 < main ()
4804 < {
4805 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4806 <  ;
4807 <  return 0;
4808 < }
4809 < _ACEOF
4810 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4811 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4812 < do
4813 <  CC="$ac_save_CC $ac_arg"
4814 <  if ac_fn_c_try_compile "$LINENO"; then :
4815 <  ac_cv_prog_cc_c89=$ac_arg
4816 < fi
4817 < rm -f core conftest.err conftest.$ac_objext
4818 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
4819 < done
4820 < rm -f conftest.$ac_ext
4821 < CC=$ac_save_CC
4822 <
4823 < fi
4824 < # AC_CACHE_VAL
4825 < case "x$ac_cv_prog_cc_c89" in
4826 <  x)
4827 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4828 < $as_echo "none needed" >&6; } ;;
4829 <  xno)
4830 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4831 < $as_echo "unsupported" >&6; } ;;
4832 <  *)
4833 <    CC="$CC $ac_cv_prog_cc_c89"
4834 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4835 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4836 < esac
4837 < if test "x$ac_cv_prog_cc_c89" != xno; then :
4838 <
4839 < fi
4840 <
4841 < ac_ext=${ac_fc_srcext-f}
4842 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4843 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4844 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4845 <
4846 < ac_ext=${ac_fc_srcext-f}
4847 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4848 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4849 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4850 < if test -n "$ac_tool_prefix"; then
4851 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4852 <  do
4853 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 < $as_echo_n "checking for $ac_word... " >&6; }
4857 < if test "${ac_cv_prog_FC+set}" = set; then :
4858 <  $as_echo_n "(cached) " >&6
4859 < else
4860 <  if test -n "$FC"; then
4861 <  ac_cv_prog_FC="$FC" # Let the user override the test.
4862 < else
4863 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 < for as_dir in $PATH
4865 < do
4866 <  IFS=$as_save_IFS
4867 <  test -z "$as_dir" && as_dir=.
4868 <    for ac_exec_ext in '' $ac_executable_extensions; do
4869 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4871 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 <    break 2
4873 <  fi
4874 < done
4875 <  done
4876 < IFS=$as_save_IFS
4877 <
4878 < fi
4879 < fi
4880 < FC=$ac_cv_prog_FC
4881 < if test -n "$FC"; then
4882 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4883 < $as_echo "$FC" >&6; }
4884 < else
4885 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 < $as_echo "no" >&6; }
4887 < fi
4888 <
4889 <
4890 <    test -n "$FC" && break
4891 <  done
4892 < fi
4893 < if test -z "$FC"; then
4894 <  ac_ct_FC=$FC
4895 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4896 < do
4897 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4898 < set dummy $ac_prog; ac_word=$2
4899 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 < $as_echo_n "checking for $ac_word... " >&6; }
4901 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4902 <  $as_echo_n "(cached) " >&6
4903 < else
4904 <  if test -n "$ac_ct_FC"; then
4905 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4906 < else
4907 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 < for as_dir in $PATH
4909 < do
4910 <  IFS=$as_save_IFS
4911 <  test -z "$as_dir" && as_dir=.
4912 <    for ac_exec_ext in '' $ac_executable_extensions; do
4913 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 <    ac_cv_prog_ac_ct_FC="$ac_prog"
4915 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 <    break 2
4917 <  fi
4918 < done
4919 <  done
4920 < IFS=$as_save_IFS
4921 <
4922 < fi
4923 < fi
4924 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4925 < if test -n "$ac_ct_FC"; then
4926 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4927 < $as_echo "$ac_ct_FC" >&6; }
4928 < else
4929 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 < $as_echo "no" >&6; }
4931 < fi
4932 <
4933 <
4934 <  test -n "$ac_ct_FC" && break
4935 < done
4936 <
4937 <  if test "x$ac_ct_FC" = x; then
4938 <    FC=""
4939 <  else
4940 <    case $cross_compiling:$ac_tool_warned in
4941 < yes:)
4942 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944 < ac_tool_warned=yes ;;
4945 < esac
4946 <    FC=$ac_ct_FC
4947 <  fi
4948 < fi
4949 <
4950 <
4951 < # Provide some information about the compiler.
4952 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4953 < set X $ac_compile
4954 < ac_compiler=$2
4955 < for ac_option in --version -v -V -qversion; do
4956 <  { { ac_try="$ac_compiler $ac_option >&5"
4957 < case "(($ac_try" in
4958 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 <  *) ac_try_echo=$ac_try;;
4960 < esac
4961 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4962 < $as_echo "$ac_try_echo"; } >&5
4963 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4964 <  ac_status=$?
4965 <  if test -s conftest.err; then
4966 <    sed '10a\
4967 < ... rest of stderr output deleted ...
4968 <         10q' conftest.err >conftest.er1
4969 <    cat conftest.er1 >&5
4970 <  fi
4971 <  rm -f conftest.er1 conftest.err
4972 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4973 <  test $ac_status = 0; }
4974 < done
4975 < rm -f a.out
4976 <
4977 < # If we don't use `.F' as extension, the preprocessor is not run on the
4978 < # input file.  (Note that this only needs to work for GNU compilers.)
4979 < ac_save_ext=$ac_ext
4980 < ac_ext=F
4981 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4982 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
5974 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
5975 <  $as_echo_n "(cached) " >&6
5976 < else
5977 <  cat > conftest.$ac_ext <<_ACEOF
5978 <      program main
5979 < #ifndef __GNUC__
5980 <       choke me
5981 < #endif
5982 <
5983 <      end
5984 < _ACEOF
5985 < if ac_fn_fc_try_compile "$LINENO"; then :
5986 <  ac_compiler_gnu=yes
5987 < else
5988 <  ac_compiler_gnu=no
5989 < fi
5990 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5992 <
5993 < fi
5994 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5995 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5996 < ac_ext=$ac_save_ext
5997 < ac_test_FCFLAGS=${FCFLAGS+set}
5998 < ac_save_FCFLAGS=$FCFLAGS
5999 < FCFLAGS=
6000 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
6001 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
6002 < if test "${ac_cv_prog_fc_g+set}" = set; then :
6003 <  $as_echo_n "(cached) " >&6
6004 < else
6005 <  FCFLAGS=-g
6006 < cat > conftest.$ac_ext <<_ACEOF
6007 <      program main
6008 <
6009 <      end
6010 < _ACEOF
6011 < if ac_fn_fc_try_compile "$LINENO"; then :
6012 <  ac_cv_prog_fc_g=yes
6013 < else
6014 <  ac_cv_prog_fc_g=no
6015 < fi
6016 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 <
6018 < fi
6019 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
6020 < $as_echo "$ac_cv_prog_fc_g" >&6; }
6021 < if test "$ac_test_FCFLAGS" = set; then
6022 <  FCFLAGS=$ac_save_FCFLAGS
6023 < elif test $ac_cv_prog_fc_g = yes; then
6024 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6025 <    FCFLAGS="-g -O2"
6026 <  else
6027 <    FCFLAGS="-g"
6028 <  fi
6029 < else
6030 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6031 <    FCFLAGS="-O2"
6032 <  else
6033 <    FCFLAGS=
6034 <  fi
6035 < fi
6036 <
6037 < ac_ext=${ac_fc_srcext-f}
6038 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6039 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6040 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6041 <
6042 < ac_ext=c
6043 < ac_cpp='$CPP $CPPFLAGS'
6044 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6048 < $as_echo_n "checking how to run the C preprocessor... " >&6; }
6049 < # On Suns, sometimes $CPP names a directory.
6050 < if test -n "$CPP" && test -d "$CPP"; then
6051 <  CPP=
6052 < fi
6053 < if test -z "$CPP"; then
6054 <  if test "${ac_cv_prog_CPP+set}" = set; then :
6055 <  $as_echo_n "(cached) " >&6
6056 < else
6057 <      # Double quotes because CPP needs to be expanded
6058 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6059 <    do
6060 <      ac_preproc_ok=false
6061 < for ac_c_preproc_warn_flag in '' yes
6062 < do
6063 <  # Use a header file that comes with gcc, so configuring glibc
6064 <  # with a fresh cross-compiler works.
6065 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6066 <  # <limits.h> exists even on freestanding compilers.
6067 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6068 <  # not just through cpp. "Syntax error" is here to catch this case.
6069 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 < /* end confdefs.h.  */
6071 < #ifdef __STDC__
6072 < # include <limits.h>
6073 < #else
6074 < # include <assert.h>
6075 < #endif
6076 <                     Syntax error
6077 < _ACEOF
6078 < if ac_fn_c_try_cpp "$LINENO"; then :
6079 <
6080 < else
6081 <  # Broken: fails on valid input.
6082 < continue
6083 < fi
6084 < rm -f conftest.err conftest.$ac_ext
6085 <
6086 <  # OK, works on sane cases.  Now check whether nonexistent headers
6087 <  # can be detected and how.
6088 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 < /* end confdefs.h.  */
6090 < #include <ac_nonexistent.h>
6091 < _ACEOF
6092 < if ac_fn_c_try_cpp "$LINENO"; then :
6093 <  # Broken: success on invalid input.
6094 < continue
6095 < else
6096 <  # Passes both tests.
6097 < ac_preproc_ok=:
6098 < break
6099 < fi
6100 < rm -f conftest.err conftest.$ac_ext
6101 <
6102 < done
6103 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6104 < rm -f conftest.err conftest.$ac_ext
6105 < if $ac_preproc_ok; then :
6106 <  break
6107 < fi
6108 <
6109 <    done
6110 <    ac_cv_prog_CPP=$CPP
6111 <
6112 < fi
6113 <  CPP=$ac_cv_prog_CPP
6114 < else
6115 <  ac_cv_prog_CPP=$CPP
6116 < fi
6117 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6118 < $as_echo "$CPP" >&6; }
6119 < ac_preproc_ok=false
6120 < for ac_c_preproc_warn_flag in '' yes
6121 < do
6122 <  # Use a header file that comes with gcc, so configuring glibc
6123 <  # with a fresh cross-compiler works.
6124 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6125 <  # <limits.h> exists even on freestanding compilers.
6126 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6127 <  # not just through cpp. "Syntax error" is here to catch this case.
6128 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 < /* end confdefs.h.  */
6130 < #ifdef __STDC__
6131 < # include <limits.h>
6132 < #else
6133 < # include <assert.h>
6134 < #endif
6135 <                     Syntax error
6136 < _ACEOF
6137 < if ac_fn_c_try_cpp "$LINENO"; then :
6138 <
6139 < else
6140 <  # Broken: fails on valid input.
6141 < continue
6142 < fi
6143 < rm -f conftest.err conftest.$ac_ext
6144 <
6145 <  # OK, works on sane cases.  Now check whether nonexistent headers
6146 <  # can be detected and how.
6147 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 < /* end confdefs.h.  */
6149 < #include <ac_nonexistent.h>
6150 < _ACEOF
6151 < if ac_fn_c_try_cpp "$LINENO"; then :
6152 <  # Broken: success on invalid input.
6153 < continue
6154 < else
6155 <  # Passes both tests.
6156 < ac_preproc_ok=:
6157 < break
6158 < fi
6159 < rm -f conftest.err conftest.$ac_ext
6160 <
6161 < done
6162 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6163 < rm -f conftest.err conftest.$ac_ext
6164 < if $ac_preproc_ok; then :
6165 <
6166 < else
6167 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
6170 < See \`config.log' for more details." "$LINENO" 5; }
6171 < fi
6172 <
6173 < ac_ext=${ac_fc_srcext-f}
6174 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6175 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6176 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6177 <
6178 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6179 < $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6180 < if test "${ac_cv_path_GREP+set}" = set; then :
6181 <  $as_echo_n "(cached) " >&6
6182 < else
6183 <  if test -z "$GREP"; then
6184 <  ac_path_GREP_found=false
6185 <  # Loop through the user's path and test for each of PROGNAME-LIST
6186 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6188 < do
6189 <  IFS=$as_save_IFS
6190 <  test -z "$as_dir" && as_dir=.
6191 <    for ac_prog in grep ggrep; do
6192 <    for ac_exec_ext in '' $ac_executable_extensions; do
6193 <      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6194 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6195 < # Check for GNU ac_path_GREP and select it if it is found.
6196 <  # Check for GNU $ac_path_GREP
6197 < case `"$ac_path_GREP" --version 2>&1` in
6198 < *GNU*)
6199 <  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6200 < *)
6201 <  ac_count=0
6202 <  $as_echo_n 0123456789 >"conftest.in"
6203 <  while :
6204 <  do
6205 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6206 <    mv "conftest.tmp" "conftest.in"
6207 <    cp "conftest.in" "conftest.nl"
6208 <    $as_echo 'GREP' >> "conftest.nl"
6209 <    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6210 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6211 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6212 <    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6213 <      # Best one so far, save it but keep looking for a better one
6214 <      ac_cv_path_GREP="$ac_path_GREP"
6215 <      ac_path_GREP_max=$ac_count
6216 <    fi
6217 <    # 10*(2^10) chars as input seems more than enough
6218 <    test $ac_count -gt 10 && break
6219 <  done
6220 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6221 < esac
6222 <
6223 <      $ac_path_GREP_found && break 3
6224 <    done
6225 <  done
6226 <  done
6227 < IFS=$as_save_IFS
6228 <  if test -z "$ac_cv_path_GREP"; then
6229 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6230 <  fi
6231 < else
6232 <  ac_cv_path_GREP=$GREP
6233 < fi
6234 <
6235 < fi
6236 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6237 < $as_echo "$ac_cv_path_GREP" >&6; }
6238 < GREP="$ac_cv_path_GREP"
6239 <
6240 <
6241 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6242 < $as_echo_n "checking for egrep... " >&6; }
6243 < if test "${ac_cv_path_EGREP+set}" = set; then :
6244 <  $as_echo_n "(cached) " >&6
6245 < else
6246 <  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6247 <   then ac_cv_path_EGREP="$GREP -E"
6248 <   else
6249 <     if test -z "$EGREP"; then
6250 <  ac_path_EGREP_found=false
6251 <  # Loop through the user's path and test for each of PROGNAME-LIST
6252 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6254 < do
6255 <  IFS=$as_save_IFS
6256 <  test -z "$as_dir" && as_dir=.
6257 <    for ac_prog in egrep; do
6258 <    for ac_exec_ext in '' $ac_executable_extensions; do
6259 <      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6260 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6261 < # Check for GNU ac_path_EGREP and select it if it is found.
6262 <  # Check for GNU $ac_path_EGREP
6263 < case `"$ac_path_EGREP" --version 2>&1` in
6264 < *GNU*)
6265 <  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6266 < *)
6267 <  ac_count=0
6268 <  $as_echo_n 0123456789 >"conftest.in"
6269 <  while :
6270 <  do
6271 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6272 <    mv "conftest.tmp" "conftest.in"
6273 <    cp "conftest.in" "conftest.nl"
6274 <    $as_echo 'EGREP' >> "conftest.nl"
6275 <    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6276 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6277 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6278 <    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6279 <      # Best one so far, save it but keep looking for a better one
6280 <      ac_cv_path_EGREP="$ac_path_EGREP"
6281 <      ac_path_EGREP_max=$ac_count
6282 <    fi
6283 <    # 10*(2^10) chars as input seems more than enough
6284 <    test $ac_count -gt 10 && break
6285 <  done
6286 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6287 < esac
6288 <
6289 <      $ac_path_EGREP_found && break 3
6290 <    done
6291 <  done
6292 <  done
6293 < IFS=$as_save_IFS
6294 <  if test -z "$ac_cv_path_EGREP"; then
6295 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6296 <  fi
6297 < else
6298 <  ac_cv_path_EGREP=$EGREP
6299 < fi
6300 <
6301 <   fi
6302 < fi
6303 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6304 < $as_echo "$ac_cv_path_EGREP" >&6; }
6305 < EGREP="$ac_cv_path_EGREP"
6306 <
6307 <
6308 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6309 < $as_echo_n "checking whether ln -s works... " >&6; }
6310 < LN_S=$as_ln_s
6311 < if test "$LN_S" = "ln -s"; then
6312 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6313 < $as_echo "yes" >&6; }
6314 < else
6315 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6316 < $as_echo "no, using $LN_S" >&6; }
6317 < fi
6318 <
6319 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6320 < $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6321 < set x ${MAKE-make}
6322 < ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6323 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6324 <  $as_echo_n "(cached) " >&6
6325 < else
6326 <  cat >conftest.make <<\_ACEOF
6327 < SHELL = /bin/sh
6328 < all:
6329 <        @echo '@@@%%%=$(MAKE)=@@@%%%'
6330 < _ACEOF
6331 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6332 < case `${MAKE-make} -f conftest.make 2>/dev/null` in
6333 <  *@@@%%%=?*=@@@%%%*)
6334 <    eval ac_cv_prog_make_${ac_make}_set=yes;;
6335 <  *)
6336 <    eval ac_cv_prog_make_${ac_make}_set=no;;
6337 < esac
6338 < rm -f conftest.make
6339 < fi
6340 < if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6341 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342 < $as_echo "yes" >&6; }
6343 <  SET_MAKE=
6344 < else
6345 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 < $as_echo "no" >&6; }
6347 <  SET_MAKE="MAKE=${MAKE-make}"
6348 < fi
6349 <
6350 < if test -n "$ac_tool_prefix"; then
6351 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6352 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6353 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 < $as_echo_n "checking for $ac_word... " >&6; }
6355 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
6356 <  $as_echo_n "(cached) " >&6
6357 < else
6358 <  if test -n "$RANLIB"; then
6359 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6360 < else
6361 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 < for as_dir in $PATH
6363 < do
6364 <  IFS=$as_save_IFS
6365 <  test -z "$as_dir" && as_dir=.
6366 <    for ac_exec_ext in '' $ac_executable_extensions; do
6367 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6369 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 <    break 2
6371 <  fi
6372 < done
6373 <  done
6374 < IFS=$as_save_IFS
6375 <
6376 < fi
6377 < fi
6378 < RANLIB=$ac_cv_prog_RANLIB
6379 < if test -n "$RANLIB"; then
6380 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6381 < $as_echo "$RANLIB" >&6; }
6382 < else
6383 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 < $as_echo "no" >&6; }
6385 < fi
6386 <
6387 <
6388 < fi
6389 < if test -z "$ac_cv_prog_RANLIB"; then
6390 <  ac_ct_RANLIB=$RANLIB
6391 <  # Extract the first word of "ranlib", so it can be a program name with args.
6392 < set dummy ranlib; ac_word=$2
6393 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 < $as_echo_n "checking for $ac_word... " >&6; }
6395 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6396 <  $as_echo_n "(cached) " >&6
6397 < else
6398 <  if test -n "$ac_ct_RANLIB"; then
6399 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6400 < else
6401 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 < for as_dir in $PATH
6403 < do
6404 <  IFS=$as_save_IFS
6405 <  test -z "$as_dir" && as_dir=.
6406 <    for ac_exec_ext in '' $ac_executable_extensions; do
6407 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
6409 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 <    break 2
6411 <  fi
6412 < done
6413 <  done
6414 < IFS=$as_save_IFS
6415 <
6416 < fi
6417 < fi
6418 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6419 < if test -n "$ac_ct_RANLIB"; then
6420 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6421 < $as_echo "$ac_ct_RANLIB" >&6; }
6422 < else
6423 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 < $as_echo "no" >&6; }
6425 < fi
6426 <
6427 <  if test "x$ac_ct_RANLIB" = x; then
6428 <    RANLIB=":"
6429 <  else
6430 <    case $cross_compiling:$ac_tool_warned in
6431 < yes:)
6432 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 < ac_tool_warned=yes ;;
6435 < esac
6436 <    RANLIB=$ac_ct_RANLIB
6437 <  fi
6438 < else
6439 <  RANLIB="$ac_cv_prog_RANLIB"
6440 < fi
6441 <
6442 <
6443 <   # Extract the first word of "perl", so it can be a program name with args.
6444 < set dummy perl; ac_word=$2
6445 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 < $as_echo_n "checking for $ac_word... " >&6; }
6447 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
6448 <  $as_echo_n "(cached) " >&6
6449 < else
6450 <  case $PERLINTERP in
6451 <  [\\/]* | ?:[\\/]*)
6452 <  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
6453 <  ;;
6454 <  *)
6455 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 < for as_dir in $PATH
6457 < do
6458 <  IFS=$as_save_IFS
6459 <  test -z "$as_dir" && as_dir=.
6460 <    for ac_exec_ext in '' $ac_executable_extensions; do
6461 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 <    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
6463 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 <    break 2
6465 <  fi
6466 < done
6467 <  done
6468 < IFS=$as_save_IFS
6469 <
6470 <  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
6471 <  ;;
6472 < esac
6473 < fi
6474 < PERLINTERP=$ac_cv_path_PERLINTERP
6475 < if test -n "$PERLINTERP"; then
6476 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
6477 < $as_echo "$PERLINTERP" >&6; }
6478 < else
6479 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 < $as_echo "no" >&6; }
6481 < fi
6482 <
6483 <
6484 <   ac_cv_path_perlinterp="$PERLINTERP"
6485 <   _sHpB='#!'
6486 <
6487 <
6488 < # Check whether --with-perl-shebang was given.
6489 < if test "${with_perl_shebang+set}" = set; then :
6490 <  withval=$with_perl_shebang; opt_perl_shebang="$withval"
6491 < else
6492 <                opt_perl_shebang="not_set"
6493 < fi
6494 <
6495 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
6496 < $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
6497 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
6498 <  $as_echo_n "(cached) " >&6
6499 < else
6500 <   case "$opt_perl_shebang" in
6501 <                      not_set  ) ax_cv_opt_perl_shebang=''
6502 <                               ;;
6503 <                         *     )
6504 <        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
6505 <                    esac
6506 <
6507 < fi
6508 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
6509 < $as_echo "$ax_cv_opt_perl_shebang" >&6; }
6510 <   if test "A$ax_cv_opt_perl_shebang" != "A"
6511 <     then
6512 <       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
6513 <       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6514 <              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
6515 < $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
6516 <
6517 < # Automatic detection of sharpbang formula starts here
6518 <     else
6519 <   _somian_shbangperl=`$PERLINTERP -V:startperl`
6520 <   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
6521 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
6522 < $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
6523 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
6524 <  $as_echo_n "(cached) " >&6
6525 < else
6526 <  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
6527 <        if test "x$_somian_kspb_perl" == x
6528 <          then _somian_ksbp_warn_empty='durnit'
6529 <          else
6530 <          case "A$_somian_kspb_perl" in
6531 <                 A#!*perl* )
6532 <           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
6533 <                        ;;
6534 <                     A*    )  _somian_ksbp_warn_defau='trouble'
6535 <                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
6536 <          esac
6537 <        fi
6538 <
6539 < fi
6540 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
6541 < $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
6542 < # The above prints Checking ... result message to user.
6543 <   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6544 <
6545 <    if test A${_somian_ksbp_warn_empty+set} == Aset
6546 <      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
6547 < $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
6548 <    fi
6549 < # Inform user after printing result value
6550 <    if test A${_somian_ksbp_warn_defau+set} == Aset
6551 <      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
6552 < $as_echo "$as_me: Maybe Not good -" >&6;}
6553 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
6554 < $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
6555 <      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
6556 < $as_echo "$as_me: OK Good result - " >&6;}
6557 <           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
6558 < $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
6559 <    fi
6560 <  fi
6561 <
6562 < # Find a good install program.  We prefer a C program (faster),
6563 < # so one script is as good as another.  But avoid the broken or
6564 < # incompatible versions:
6565 < # SysV /etc/install, /usr/sbin/install
6566 < # SunOS /usr/etc/install
6567 < # IRIX /sbin/install
6568 < # AIX /bin/install
6569 < # AmigaOS /C/install, which installs bootblocks on floppy discs
6570 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6571 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6572 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6573 < # OS/2's system install, which has a completely different semantic
6574 < # ./install, which can be erroneously created by make from ./install.sh.
6575 < # Reject install programs that cannot install multiple files.
6576 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6577 < $as_echo_n "checking for a BSD-compatible install... " >&6; }
6578 < if test -z "$INSTALL"; then
6579 < if test "${ac_cv_path_install+set}" = set; then :
6580 <  $as_echo_n "(cached) " >&6
6581 < else
6582 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 < for as_dir in $PATH
6584 < do
6585 <  IFS=$as_save_IFS
6586 <  test -z "$as_dir" && as_dir=.
6587 <    # Account for people who put trailing slashes in PATH elements.
6588 < case $as_dir/ in #((
6589 <  ./ | .// | /[cC]/* | \
6590 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6591 <  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6592 <  /usr/ucb/* ) ;;
6593 <  *)
6594 <    # OSF1 and SCO ODT 3.0 have their own names for install.
6595 <    # Don't use installbsd from OSF since it installs stuff as root
6596 <    # by default.
6597 <    for ac_prog in ginstall scoinst install; do
6598 <      for ac_exec_ext in '' $ac_executable_extensions; do
6599 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6600 <          if test $ac_prog = install &&
6601 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6602 <            # AIX install.  It has an incompatible calling convention.
6603 <            :
6604 <          elif test $ac_prog = install &&
6605 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6606 <            # program-specific install script used by HP pwplus--don't use.
6607 <            :
6608 <          else
6609 <            rm -rf conftest.one conftest.two conftest.dir
6610 <            echo one > conftest.one
6611 <            echo two > conftest.two
6612 <            mkdir conftest.dir
6613 <            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6614 <              test -s conftest.one && test -s conftest.two &&
6615 <              test -s conftest.dir/conftest.one &&
6616 <              test -s conftest.dir/conftest.two
6617 <            then
6618 <              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6619 <              break 3
6620 <            fi
6621 <          fi
6622 <        fi
6623 <      done
6624 <    done
6625 <    ;;
6626 < esac
6627 <
6628 <  done
6629 < IFS=$as_save_IFS
6630 <
6631 < rm -rf conftest.one conftest.two conftest.dir
6632 <
6633 < fi
6634 <  if test "${ac_cv_path_install+set}" = set; then
6635 <    INSTALL=$ac_cv_path_install
6636 <  else
6637 <    # As a last resort, use the slow shell script.  Don't cache a
6638 <    # value for INSTALL within a source directory, because that will
6639 <    # break other packages using the cache if that directory is
6640 <    # removed, or if the value is a relative name.
6641 <    INSTALL=$ac_install_sh
6642 <  fi
6643 < fi
6644 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6645 < $as_echo "$INSTALL" >&6; }
6646 <
6647 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6648 < # It thinks the first close brace ends the variable substitution.
6649 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6650 <
6651 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6652 <
6653 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6654 <
6655 < case "x$INSTALL" in
6656 <   x/*) ;;
6657 <   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6658 < esac
6659 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6660 < # Extract the first word of "ar", so it can be a program name with args.
6661 < set dummy ar; ac_word=$2
6662 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 < $as_echo_n "checking for $ac_word... " >&6; }
6664 < if test "${ac_cv_prog_AR+set}" = set; then :
6665 <  $as_echo_n "(cached) " >&6
6666 < else
6667 <  if test -n "$AR"; then
6668 <  ac_cv_prog_AR="$AR" # Let the user override the test.
6669 < else
6670 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 < for as_dir in $PATH
6672 < do
6673 <  IFS=$as_save_IFS
6674 <  test -z "$as_dir" && as_dir=.
6675 <    for ac_exec_ext in '' $ac_executable_extensions; do
6676 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 <    ac_cv_prog_AR="ar"
6678 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 <    break 2
6680 <  fi
6681 < done
6682 <  done
6683 < IFS=$as_save_IFS
6684 <
6685 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
6686 < fi
6687 < fi
6688 < AR=$ac_cv_prog_AR
6689 < if test -n "$AR"; then
6690 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6691 < $as_echo "$AR" >&6; }
6692 < else
6693 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 < $as_echo "no" >&6; }
6695 < fi
6696 <
6697 <
6698 < if test "$AR" = "NONE"; then
6699 <  cat >confcache <<\_ACEOF
6700 < # This file is a shell script that caches the results of configure
6701 < # tests run on this system so they can be shared between configure
6702 < # scripts and configure runs, see configure's option --config-cache.
6703 < # It is not useful on other systems.  If it contains results you don't
6704 < # want to keep, you may remove or edit it.
6705 < #
6706 < # config.status only pays attention to the cache file if you give it
6707 < # the --recheck option to rerun configure.
6708 < #
6709 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
6710 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
6711 < # following values.
6712 <
6713 < _ACEOF
6714 <
6715 < # The following way of writing the cache mishandles newlines in values,
6716 < # but we know of no workaround that is simple, portable, and efficient.
6717 < # So, we kill variables containing newlines.
6718 < # Ultrix sh set writes to stderr and can't be redirected directly,
6719 < # and sets the high bit in the cache file unless we assign to the vars.
6720 < (
6721 <  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6722 <    eval ac_val=\$$ac_var
6723 <    case $ac_val in #(
6724 <    *${as_nl}*)
6725 <      case $ac_var in #(
6726 <      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6727 < $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6728 <      esac
6729 <      case $ac_var in #(
6730 <      _ | IFS | as_nl) ;; #(
6731 <      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6732 <      *) { eval $ac_var=; unset $ac_var;} ;;
6733 <      esac ;;
6734 <    esac
6735 <  done
6736 <
6737 <  (set) 2>&1 |
6738 <    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6739 <    *${as_nl}ac_space=\ *)
6740 <      # `set' does not quote correctly, so add quotes: double-quote
6741 <      # substitution turns \\\\ into \\, and sed turns \\ into \.
6742 <      sed -n \
6743 <        "s/'/'\\\\''/g;
6744 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6745 <      ;; #(
6746 <    *)
6747 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
6748 <      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6749 <      ;;
6750 <    esac |
6751 <    sort
6752 < ) |
6753 <  sed '
6754 <     /^ac_cv_env_/b end
6755 <     t clear
6756 <     :clear
6757 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6758 <     t end
6759 <     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6760 <     :end' >>confcache
6761 < if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6762 <  if test -w "$cache_file"; then
6763 <    test "x$cache_file" != "x/dev/null" &&
6764 <      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6765 < $as_echo "$as_me: updating cache $cache_file" >&6;}
6766 <    cat confcache >$cache_file
6767 <  else
6768 <    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6769 < $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6770 <  fi
6771 < fi
6772 < rm -f confcache
6773 <  exit 1
6774 < fi
6775 < # Extract the first word of "ps", so it can be a program name with args.
6776 < set dummy ps; ac_word=$2
6777 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 < $as_echo_n "checking for $ac_word... " >&6; }
6779 < if test "${ac_cv_path_PS+set}" = set; then :
6780 <  $as_echo_n "(cached) " >&6
6781 < else
6782 <  case $PS in
6783 <  [\\/]* | ?:[\\/]*)
6784 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
6785 <  ;;
6786 <  *)
6787 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 < for as_dir in $PATH
6789 < do
6790 <  IFS=$as_save_IFS
6791 <  test -z "$as_dir" && as_dir=.
6792 <    for ac_exec_ext in '' $ac_executable_extensions; do
6793 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6795 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 <    break 2
6797 <  fi
6798 < done
6799 <  done
6800 < IFS=$as_save_IFS
6801 <
6802 <  ;;
6803 < esac
6804 < fi
6805 < PS=$ac_cv_path_PS
6806 < if test -n "$PS"; then
6807 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
6808 < $as_echo "$PS" >&6; }
6809 < else
6810 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 < $as_echo "no" >&6; }
6812 < fi
6813 <
6814 <
6815 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
6816 < $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
6817 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
6818 <  $as_echo_n "(cached) " >&6
6819 < else
6820 <
6821 <        if $PS ax -o rss > /dev/null 2>&1; then
6822 <                ac_cv_prog_ps_ax=yes
6823 <        else
6824 <                ac_cv_prog_ps_ax=no
6825 <        fi
6826 <        if $PS -ef -o rss > /dev/null 2>&1; then
6827 <                ac_cv_prog_ps_ef=yes
6828 <        else
6829 <                ac_cv_prog_ps_ef=no
6830 <        fi
6831 <        if test "$ac_cv_prog_ps_ax" = yes; then
6832 <                ac_cv_prog_ps_syntax=BSD
6833 <        else
6834 <                if test "$ac_cv_prog_ps_ef" = yes; then
6835 <                        ac_cv_prog_ps_syntax=POSIX
6836 <                else
6837 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
6838 <                fi
6839 <        fi
6840 <
6841 < fi
6842 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
6843 < $as_echo "$ac_cv_prog_ps_syntax" >&6; }
6844 <
6845 < cat >>confdefs.h <<_ACEOF
6846 < #define PSCOMMAND $PS
6847 < _ACEOF
6848 <
6849 < if test "$ac_cv_prog_ps_syntax" = BSD; then
6850 <
6851 < $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
6852 <
6853 < else
6854 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
6855 <
6856 < $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
6857 <
6858 <   else
6859 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
6860 <   fi
6861 < fi
6862 <
6863 < ac_ext=${ac_fc_srcext-f}
6864 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6865 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6866 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6867 <
6868 < ac_ext=${ac_fc_srcext-f}
6869 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6870 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6871 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6872 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
6873 < $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
6874 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
6875 <  $as_echo_n "(cached) " >&6
6876 < else
6877 <  ac_ext=F90
6878 < ac_fcflags_srcext_save=$ac_fcflags_srcext
6879 < ac_fcflags_srcext=
6880 < ac_cv_fc_srcext_F90=unknown
6881 < for ac_flag in none -qsuffix=f=F90 -Tf; do
6882 <  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
6883 <  cat > conftest.$ac_ext <<_ACEOF
6884 <      program main
6885 <
6886 <      end
6887 < _ACEOF
6888 < if ac_fn_fc_try_compile "$LINENO"; then :
6889 <  ac_cv_fc_srcext_F90=$ac_flag; break
6890 < fi
6891 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 < done
6893 < rm -f conftest.$ac_objext conftest.F90
6894 < ac_fcflags_srcext=$ac_fcflags_srcext_save
6895 <
6896 < fi
6897 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
6898 < $as_echo "$ac_cv_fc_srcext_F90" >&6; }
6899 < if test "x$ac_cv_fc_srcext_F90" = xunknown; then
6900 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
6901 < else
6902 <  ac_fc_srcext=F90
6903 <  if test "x$ac_cv_fc_srcext_F90" = xnone; then
6904 <    ac_fcflags_srcext=""
6905 <    FCFLAGS_F90=""
6906 <  else
6907 <    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
6908 <    FCFLAGS_F90=$ac_cv_fc_srcext_F90
6909 <  fi
6910 <
6911 <
6912 < fi
6913 < ac_ext=${ac_fc_srcext-f}
6914 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6915 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6916 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6917 <
6918 <
6919 <
6920 <
6921 <
6922 < # Try to determine native compiler flags that allow us to use F90 suffix
6923 < # for preprocessed f90 source.
6924 <
6925 < if test "$ac_test_PREPFLAG" != "set"; then
6926 <  PREPFLAG=""
6927 <  case "${host_cpu}-${host_os}" in
6928 <
6929 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
6930 <                    PREPFLAG="-fpp1 "
6931 <                fi;;
6932 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
6933 <                    PREPFLAG="-qsuffix=cpp=F90 "
6934 <                fi;;
6935 <  *darwin*)
6936 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
6937 <                PREPFLAG="-qsuffix=cpp=F90 "
6938 <        fi;;
6939 <  esac
6940 <
6941 <  if test -z "$PREPFLAG"; then
6942 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
6943 < $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
6944 <        PREPFLAG=""
6945 <  fi
6946 <
6947 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
6948 < $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
6949 <
6950 <  ac_ext=${ac_fc_srcext-f}
6951 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6952 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6953 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6954 <
6955 <  ac_save_ext=$ac_ext
6956 <  ac_ext=F90
6957 <  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
6958 <
6959 <  if test "$PREPFLAG"; then :
6960 <  FCFLAGS_SRCEXT="${PREPFLAG}"
6961 < fi
6962 <    cat > conftest.$ac_ext <<_ACEOF
6963 <
6964 <
6965 < program conftest
6966 <  integer :: i
6967 <  i = 1
6968 < end program conftest
6969 <
6970 < _ACEOF
6971 < if ac_fn_fc_try_compile "$LINENO"; then :
6972 <  prepflagworks=1
6973 < else
6974 <  prepflagworks=0
6975 < fi
6976 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 <
6978 <  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
6979 <  ac_ext=$ac_save_ext
6980 <  ac_ext=${ac_fc_srcext-f}
6981 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6982 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6983 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6984 <
6985 <
6986 <  if test "$prepflagworks" = 1; then
6987 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988 < $as_echo "yes" >&6; }
6989 <    FCFLAGS_SRCEXT="${PREPFLAG}"
6990 <
6991 <  else
6992 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 < $as_echo "no" >&6; }
6994 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
6995 <  fi
6996 < fi
6997 <
6998 <
6999 <
7000 <
7001 <
7002 < # Try to determine native compiler flags that allow us to use F90 suffix
7003 < # for preprocessed f90 source with -D type defines
7004 <
7005 < if test "$ac_test_PREPDEFFLAG" != "set"; then
7006 <  PREPDEFFLAG=""
7007 <  case "${host_cpu}-${host_os}" in
7008 <
7009 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
7010 <                    PREPDEFFLAG=" "
7011 <                fi;;
7012 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
7013 <                    PREPDEFFLAG="-WF,"
7014 <                fi;;
7015 <  *darwin*)
7016 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
7017 <                PREPDEFFLAG="-WF,"
7018 <        fi;;
7019 <  esac
7020 <
7021 <  if test -z "$PREPDEFFLAG"; then
7022 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
7023 < $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
7024 <        PREPDEFFLAG=" "
7025 <  fi
7026 <
7027 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
7028 < $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
7029 <
7030 <  ac_ext=${ac_fc_srcext-f}
7031 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7032 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7033 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7034 <
7035 <  ac_save_ext=$ac_ext
7036 <  ac_ext=F90
7037 <  ac_save_FCFLAGS=$FCFLAGS
7038 <
7039 <  if test "$PREPDEFFLAG"; then :
7040 <  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
7041 < fi
7042 <    cat > conftest.$ac_ext <<_ACEOF
7043 <
7044 <
7045 < program conftest
7046 <  integer :: i
7047 < #ifdef TEST
7048 <  i = 1
7049 < #else
7050 <  choke me
7051 < #endif
7052 < end program conftest
7053 <
7054 < _ACEOF
7055 < if ac_fn_fc_try_compile "$LINENO"; then :
7056 <  prepdefflagworks=1
7057 < else
7058 <  prepdefflagworks=0
7059 < fi
7060 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 <
7062 <  FCFLAGS=$ac_save_FCFLAGS
7063 <  ac_ext=$ac_save_ext
7064 <  ac_ext=${ac_fc_srcext-f}
7065 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7066 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7067 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7068 <
7069 <
7070 <  if test "$prepdefflagworks" = 1; then
7071 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7072 < $as_echo "yes" >&6; }
7073 <
7074 <  else
7075 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 < $as_echo "no" >&6; }
7077 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
7078 <  fi
7079 < fi
7080 <
7081 < ac_ext=${ac_fc_srcext-f}
7082 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7083 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7084 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7085 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7086 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7087 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7088 <  $as_echo_n "(cached) " >&6
7089 < else
7090 <  cat > conftest.$ac_ext <<_ACEOF
7091 <      program main
7092 <
7093 <      end
7094 < _ACEOF
7095 < if ac_fn_fc_try_compile "$LINENO"; then :
7096 <  ac_cv_prog_fc_v=
7097 < # Try some options frequently used verbose output
7098 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7099 <  cat > conftest.$ac_ext <<_ACEOF
7100 <      program main
7101 <
7102 <      end
7103 < _ACEOF
7104 <
7105 < # Compile and link our simple test program by passing a flag (argument
7106 < # 1 to this macro) to the Fortran compiler in order to get
7107 < # "verbose" output that we can then parse for the Fortran linker
7108 < # flags.
7109 < ac_save_FCFLAGS=$FCFLAGS
7110 < FCFLAGS="$FCFLAGS $ac_verb"
7111 < eval "set x $ac_link"
7112 < shift
7113 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7114 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7115 < # LIBRARY_PATH; skip all such settings.
7116 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7117 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7118 < $as_echo "$ac_fc_v_output" >&5
7119 < FCFLAGS=$ac_save_FCFLAGS
7120 <
7121 < rm -rf conftest*
7122 <
7123 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7124 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7125 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7126 < ac_fc_v_output="`echo $ac_fc_v_output |
7127 <        grep 'LPATH is:' |
7128 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7129 <
7130 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7131 < #        that detects unbalanced quotes in FLIBS should be implemented
7132 < #        and (ugh) tested at some point.
7133 < case $ac_fc_v_output in
7134 <  # If we are using xlf then replace all the commas with spaces.
7135 <  *xlfentry*)
7136 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7137 <
7138 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7139 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7140 <  *mGLOB_options_string*)
7141 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7142 <
7143 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7144 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7145 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7146 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7147 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7148 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7149 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7150 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7151 <
7152 <  # If we are using Cray Fortran then delete quotes.
7153 <  *cft90*)
7154 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7155 < esac
7156 <
7157 <
7158 <  # look for -l* and *.a constructs in the output
7159 <  for ac_arg in $ac_fc_v_output; do
7160 <     case $ac_arg in
7161 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7162 <          ac_cv_prog_fc_v=$ac_verb
7163 <          break 2 ;;
7164 <     esac
7165 <  done
7166 < done
7167 < if test -z "$ac_cv_prog_fc_v"; then
7168 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7169 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7170 < fi
7171 < else
7172 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7173 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7174 < fi
7175 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 <
7177 < fi
7178 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7179 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7180 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7181 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7182 < if test "${ac_cv_fc_libs+set}" = set; then :
7183 <  $as_echo_n "(cached) " >&6
7184 < else
7185 <  if test "x$FCLIBS" != "x"; then
7186 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7187 < else
7188 <
7189 < cat > conftest.$ac_ext <<_ACEOF
7190 <      program main
7191 <
7192 <      end
7193 < _ACEOF
7194 <
7195 < # Compile and link our simple test program by passing a flag (argument
7196 < # 1 to this macro) to the Fortran compiler in order to get
7197 < # "verbose" output that we can then parse for the Fortran linker
7198 < # flags.
7199 < ac_save_FCFLAGS=$FCFLAGS
7200 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7201 < eval "set x $ac_link"
7202 < shift
7203 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7204 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7205 < # LIBRARY_PATH; skip all such settings.
7206 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7207 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7208 < $as_echo "$ac_fc_v_output" >&5
7209 < FCFLAGS=$ac_save_FCFLAGS
7210 <
7211 < rm -rf conftest*
7212 <
7213 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7214 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7215 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7216 < ac_fc_v_output="`echo $ac_fc_v_output |
7217 <        grep 'LPATH is:' |
7218 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7219 <
7220 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7221 < #        that detects unbalanced quotes in FLIBS should be implemented
7222 < #        and (ugh) tested at some point.
7223 < case $ac_fc_v_output in
7224 <  # If we are using xlf then replace all the commas with spaces.
7225 <  *xlfentry*)
7226 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7227 <
7228 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7229 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7230 <  *mGLOB_options_string*)
7231 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7232 <
7233 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7234 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7235 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7236 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7237 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7238 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7239 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7240 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7241 <
7242 <  # If we are using Cray Fortran then delete quotes.
7243 <  *cft90*)
7244 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7245 < esac
7246 <
7247 <
7248 <
7249 < ac_cv_fc_libs=
7250 <
7251 < # Save positional arguments (if any)
7252 < ac_save_positional="$@"
7253 <
7254 < set X $ac_fc_v_output
7255 < while test $# != 1; do
7256 <  shift
7257 <  ac_arg=$1
7258 <  case $ac_arg in
7259 <        [\\/]*.a | ?:[\\/]*.a)
7260 <            ac_exists=false
7261 <  for ac_i in $ac_cv_fc_libs; do
7262 <    if test x"$ac_arg" = x"$ac_i"; then
7263 <      ac_exists=true
7264 <      break
7265 <    fi
7266 <  done
7267 <
7268 <  if test x"$ac_exists" = xtrue; then :
7269 <
7270 < else
7271 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7272 < fi
7273 <          ;;
7274 <        -bI:*)
7275 <            ac_exists=false
7276 <  for ac_i in $ac_cv_fc_libs; do
7277 <    if test x"$ac_arg" = x"$ac_i"; then
7278 <      ac_exists=true
7279 <      break
7280 <    fi
7281 <  done
7282 <
7283 <  if test x"$ac_exists" = xtrue; then :
7284 <
7285 < else
7286 <  if test "$ac_compiler_gnu" = yes; then
7287 <  for ac_link_opt in $ac_arg; do
7288 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7289 <  done
7290 < else
7291 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7292 < fi
7293 < fi
7294 <          ;;
7295 <          # Ignore these flags.
7296 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7297 <          |-LANG:=* | -LIST:* | -LNO:*)
7298 <          ;;
7299 <        -lkernel32)
7300 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7301 <          ;;
7302 <        -[LRuYz])
7303 <          # These flags, when seen by themselves, take an argument.
7304 <          # We remove the space between option and argument and re-iterate
7305 <          # unless we find an empty arg or a new option (starting with -)
7306 <          case $2 in
7307 <             "" | -*);;
7308 <             *)
7309 <                ac_arg="$ac_arg$2"
7310 <                shift; shift
7311 <                set X $ac_arg "$@"
7312 <                ;;
7313 <          esac
7314 <          ;;
7315 <        -YP,*)
7316 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7317 <              ac_exists=false
7318 <  for ac_i in $ac_cv_fc_libs; do
7319 <    if test x"$ac_j" = x"$ac_i"; then
7320 <      ac_exists=true
7321 <      break
7322 <    fi
7323 <  done
7324 <
7325 <  if test x"$ac_exists" = xtrue; then :
7326 <
7327 < else
7328 <  ac_arg="$ac_arg $ac_j"
7329 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7330 < fi
7331 <          done
7332 <          ;;
7333 <        -[lLR]*)
7334 <            ac_exists=false
7335 <  for ac_i in $ac_cv_fc_libs; do
7336 <    if test x"$ac_arg" = x"$ac_i"; then
7337 <      ac_exists=true
7338 <      break
7339 <    fi
7340 <  done
7341 <
7342 <  if test x"$ac_exists" = xtrue; then :
7343 <
7344 < else
7345 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7346 < fi
7347 <          ;;
7348 <        -zallextract*| -zdefaultextract)
7349 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7350 <          ;;
7351 <          # Ignore everything else.
7352 <  esac
7353 < done
7354 < # restore positional arguments
7355 < set X $ac_save_positional; shift
7356 <
7357 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7358 < # then we insist that the "run path" must be an absolute path (i.e. it
7359 < # must begin with a "/").
7360 < case `(uname -sr) 2>/dev/null` in
7361 <   "SunOS 5"*)
7362 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7363 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7364 <      test "x$ac_ld_run_path" != x &&
7365 <        if test "$ac_compiler_gnu" = yes; then
7366 <  for ac_link_opt in $ac_ld_run_path; do
7367 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7368 <  done
7369 < else
7370 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7371 < fi
7372 <      ;;
7373 < esac
7374 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7375 <
7376 < fi
7377 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7378 < $as_echo "$ac_cv_fc_libs" >&6; }
7379 < FCLIBS="$ac_cv_fc_libs"
7380 <
7381 <
7382 < ac_ext=${ac_fc_srcext-f}
7383 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7384 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7385 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7386 <
7387 < ac_ext=${ac_fc_srcext-f}
7388 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7389 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7390 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7391 <
7392 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
7393 < $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
7394 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
7395 <  $as_echo_n "(cached) " >&6
7396 < else
7397 <  ac_fc_dm_save_LIBS=$LIBS
7398 < LIBS="$LIBS $FCLIBS"
7399 < ac_fortran_dm_var=FC_DUMMY_MAIN
7400 < ac_ext=c
7401 < ac_cpp='$CPP $CPPFLAGS'
7402 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405 <
7406 < # First, try linking without a dummy main:
7407 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 < /* end confdefs.h.  */
7409 <
7410 < #ifdef FC_DUMMY_MAIN
7411 < #ifndef FC_DUMMY_MAIN_EQ_F77
7412 < #  ifdef __cplusplus
7413 <     extern "C"
7414 < #  endif
7415 <   int FC_DUMMY_MAIN() { return 1; }
7416 < #endif
7417 < #endif
7418 < int
7419 < main ()
7420 < {
7421 <
7422 <  ;
7423 <  return 0;
7424 < }
7425 < _ACEOF
7426 < if ac_fn_c_try_link "$LINENO"; then :
7427 <  ac_cv_fortran_dummy_main=none
7428 < else
7429 <  ac_cv_fortran_dummy_main=unknown
7430 < fi
7431 < rm -f core conftest.err conftest.$ac_objext \
7432 <    conftest$ac_exeext conftest.$ac_ext
7433 <
7434 < if test $ac_cv_fortran_dummy_main = unknown; then
7435 <   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
7436 <     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 < /* end confdefs.h.  */
7438 < #define $ac_fortran_dm_var $ac_func
7439 < #ifdef FC_DUMMY_MAIN
7440 < #ifndef FC_DUMMY_MAIN_EQ_F77
7441 < #  ifdef __cplusplus
7442 <     extern "C"
7443 < #  endif
7444 <   int FC_DUMMY_MAIN() { return 1; }
7445 < #endif
7446 < #endif
7447 < int
7448 < main ()
7449 < {
7450 <
7451 <  ;
7452 <  return 0;
7453 < }
7454 < _ACEOF
7455 < if ac_fn_c_try_link "$LINENO"; then :
7456 <  ac_cv_fortran_dummy_main=$ac_func; break
7457 < fi
7458 < rm -f core conftest.err conftest.$ac_objext \
7459 <    conftest$ac_exeext conftest.$ac_ext
7460 <   done
7461 < fi
7462 < ac_ext=${ac_fc_srcext-f}
7463 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7464 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7465 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7466 < ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
7467 < rm -rf conftest*
7468 < LIBS=$ac_fc_dm_save_LIBS
7469 <
7470 < fi
7471 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
7472 < $as_echo "$ac_cv_fc_dummy_main" >&6; }
7473 < FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
7474 < if test "$FC_DUMMY_MAIN" != unknown; then :
7475 <  if test $FC_DUMMY_MAIN != none; then
7476 <
7477 < cat >>confdefs.h <<_ACEOF
7478 < #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
7479 < _ACEOF
7480 <
7481 <  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
7482 <
7483 < $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
7484 <
7485 <  fi
7486 < fi
7487 < else
7488 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7489 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7490 < as_fn_error "linking to Fortran libraries from C fails
7491 < See \`config.log' for more details." "$LINENO" 5; }
7492 < fi
7493 <
7494 < ac_ext=${ac_fc_srcext-f}
7495 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7496 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7497 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7498 <
7499 < ac_ext=${ac_fc_srcext-f}
7500 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7501 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7502 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7503 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
7504 < $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
7505 < if test "${ac_cv_fc_mangling+set}" = set; then :
7506 <  $as_echo_n "(cached) " >&6
7507 < else
7508 <  cat > conftest.$ac_ext <<_ACEOF
7509 <      subroutine foobar()
7510 <      return
7511 <      end
7512 <      subroutine foo_bar()
7513 <      return
7514 <      end
7515 < _ACEOF
7516 < if ac_fn_fc_try_compile "$LINENO"; then :
7517 <  mv conftest.$ac_objext cfortran_test.$ac_objext
7518 <
7519 <  ac_save_LIBS=$LIBS
7520 <  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
7521 <
7522 <  ac_ext=c
7523 < ac_cpp='$CPP $CPPFLAGS'
7524 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527 <  ac_success=no
7528 <  for ac_foobar in foobar FOOBAR; do
7529 <    for ac_underscore in "" "_"; do
7530 <      ac_func="$ac_foobar$ac_underscore"
7531 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 < /* end confdefs.h.  */
7533 <
7534 < /* Override any GCC internal prototype to avoid an error.
7535 <   Use char because int might match the return type of a GCC
7536 <   builtin and then its argument prototype would still apply.  */
7537 < #ifdef __cplusplus
7538 < extern "C"
7539 < #endif
7540 < char $ac_func ();
7541 < #ifdef FC_DUMMY_MAIN
7542 < #ifndef FC_DUMMY_MAIN_EQ_F77
7543 < #  ifdef __cplusplus
7544 <     extern "C"
7545 < #  endif
7546 <   int FC_DUMMY_MAIN() { return 1; }
7547 < #endif
7548 < #endif
7549 < int
7550 < main ()
7551 < {
7552 < return $ac_func ();
7553 <  ;
7554 <  return 0;
7555 < }
7556 < _ACEOF
7557 < if ac_fn_c_try_link "$LINENO"; then :
7558 <  ac_success=yes; break 2
7559 < fi
7560 < rm -f core conftest.err conftest.$ac_objext \
7561 <    conftest$ac_exeext conftest.$ac_ext
7562 <    done
7563 <  done
7564 <  ac_ext=${ac_fc_srcext-f}
7565 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7566 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7567 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7568 <
7569 <  if test "$ac_success" = "yes"; then
7570 <     case $ac_foobar in
7571 <        foobar)
7572 <           ac_case=lower
7573 <           ac_foo_bar=foo_bar
7574 <           ;;
7575 <        FOOBAR)
7576 <           ac_case=upper
7577 <           ac_foo_bar=FOO_BAR
7578 <           ;;
7579 <     esac
7580 <
7581 <     ac_ext=c
7582 < ac_cpp='$CPP $CPPFLAGS'
7583 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7586 <     ac_success_extra=no
7587 <     for ac_extra in "" "_"; do
7588 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
7589 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 < /* end confdefs.h.  */
7591 <
7592 < /* Override any GCC internal prototype to avoid an error.
7593 <   Use char because int might match the return type of a GCC
7594 <   builtin and then its argument prototype would still apply.  */
7595 < #ifdef __cplusplus
7596 < extern "C"
7597 < #endif
7598 < char $ac_func ();
7599 < #ifdef FC_DUMMY_MAIN
7600 < #ifndef FC_DUMMY_MAIN_EQ_F77
7601 < #  ifdef __cplusplus
7602 <     extern "C"
7603 < #  endif
7604 <   int FC_DUMMY_MAIN() { return 1; }
7605 < #endif
7606 < #endif
7607 < int
7608 < main ()
7609 < {
7610 < return $ac_func ();
7611 <  ;
7612 <  return 0;
7613 < }
7614 < _ACEOF
7615 < if ac_fn_c_try_link "$LINENO"; then :
7616 <  ac_success_extra=yes; break
7617 < fi
7618 < rm -f core conftest.err conftest.$ac_objext \
7619 <    conftest$ac_exeext conftest.$ac_ext
7620 <     done
7621 <     ac_ext=${ac_fc_srcext-f}
7622 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7623 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7624 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7625 <
7626 <     if test "$ac_success_extra" = "yes"; then
7627 <        ac_cv_fc_mangling="$ac_case case"
7628 <        if test -z "$ac_underscore"; then
7629 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
7630 <        else
7631 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
7632 <        fi
7633 <        if test -z "$ac_extra"; then
7634 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
7635 <        else
7636 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
7637 <        fi
7638 <      else
7639 <        ac_cv_fc_mangling="unknown"
7640 <      fi
7641 <  else
7642 <     ac_cv_fc_mangling="unknown"
7643 <  fi
7644 <
7645 <  LIBS=$ac_save_LIBS
7646 <  rm -rf conftest*
7647 <  rm -f cfortran_test*
7648 < else
7649 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651 < as_fn_error "cannot compile a simple Fortran program
7652 < See \`config.log' for more details." "$LINENO" 5; }
7653 < fi
7654 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 <
7656 < fi
7657 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
7658 < $as_echo "$ac_cv_fc_mangling" >&6; }
7659 <
7660 < ac_ext=${ac_fc_srcext-f}
7661 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7662 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7663 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7664 <
7665 < ac_ext=${ac_fc_srcext-f}
7666 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7667 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7668 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7669 < case $ac_cv_fc_mangling in
7670 <  "lower case, no underscore, no extra underscore")
7671 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7672 <
7673 <          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
7674 < ;;
7675 <  "lower case, no underscore, extra underscore")
7676 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7677 <
7678 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7679 < ;;
7680 <  "lower case, underscore, no extra underscore")
7681 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7682 <
7683 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7684 < ;;
7685 <  "lower case, underscore, extra underscore")
7686 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7687 <
7688 <          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
7689 < ;;
7690 <  "upper case, no underscore, no extra underscore")
7691 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7692 <
7693 <          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
7694 < ;;
7695 <  "upper case, no underscore, extra underscore")
7696 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7697 <
7698 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7699 < ;;
7700 <  "upper case, underscore, no extra underscore")
7701 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7702 <
7703 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7704 < ;;
7705 <  "upper case, underscore, extra underscore")
7706 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7707 <
7708 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
7709 < ;;
7710 <  *)
7711 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
7712 < $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
7713 <          ;;
7714 < esac
7715 <
7716 < ac_ext=${ac_fc_srcext-f}
7717 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7718 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7719 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7720 <
7721 <
7722 <
7723 < ac_ext=${ac_fc_srcext-f}
7724 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7725 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7726 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7727 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7728 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7729 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7730 <  $as_echo_n "(cached) " >&6
7731 < else
7732 <  cat > conftest.$ac_ext <<_ACEOF
7733 <      program main
7734 <
7735 <      end
7736 < _ACEOF
7737 < if ac_fn_fc_try_compile "$LINENO"; then :
7738 <  ac_cv_prog_fc_v=
7739 < # Try some options frequently used verbose output
7740 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7741 <  cat > conftest.$ac_ext <<_ACEOF
7742 <      program main
7743 <
7744 <      end
7745 < _ACEOF
7746 <
7747 < # Compile and link our simple test program by passing a flag (argument
7748 < # 1 to this macro) to the Fortran compiler in order to get
7749 < # "verbose" output that we can then parse for the Fortran linker
7750 < # flags.
7751 < ac_save_FCFLAGS=$FCFLAGS
7752 < FCFLAGS="$FCFLAGS $ac_verb"
7753 < eval "set x $ac_link"
7754 < shift
7755 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7756 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7757 < # LIBRARY_PATH; skip all such settings.
7758 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7759 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7760 < $as_echo "$ac_fc_v_output" >&5
7761 < FCFLAGS=$ac_save_FCFLAGS
7762 <
7763 < rm -rf conftest*
7764 <
7765 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7766 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7767 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7768 < ac_fc_v_output="`echo $ac_fc_v_output |
7769 <        grep 'LPATH is:' |
7770 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7771 <
7772 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7773 < #        that detects unbalanced quotes in FLIBS should be implemented
7774 < #        and (ugh) tested at some point.
7775 < case $ac_fc_v_output in
7776 <  # If we are using xlf then replace all the commas with spaces.
7777 <  *xlfentry*)
7778 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7779 <
7780 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7781 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7782 <  *mGLOB_options_string*)
7783 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7784 <
7785 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7786 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7787 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7788 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7789 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7790 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7791 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7792 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7793 <
7794 <  # If we are using Cray Fortran then delete quotes.
7795 <  *cft90*)
7796 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7797 < esac
7798 <
7799 <
7800 <  # look for -l* and *.a constructs in the output
7801 <  for ac_arg in $ac_fc_v_output; do
7802 <     case $ac_arg in
7803 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7804 <          ac_cv_prog_fc_v=$ac_verb
7805 <          break 2 ;;
7806 <     esac
7807 <  done
7808 < done
7809 < if test -z "$ac_cv_prog_fc_v"; then
7810 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7811 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7812 < fi
7813 < else
7814 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7815 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7816 < fi
7817 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 <
7819 < fi
7820 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7821 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7822 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7823 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7824 < if test "${ac_cv_fc_libs+set}" = set; then :
7825 <  $as_echo_n "(cached) " >&6
7826 < else
7827 <  if test "x$FCLIBS" != "x"; then
7828 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7829 < else
7830 <
7831 < cat > conftest.$ac_ext <<_ACEOF
7832 <      program main
7833 <
7834 <      end
7835 < _ACEOF
7836 <
7837 < # Compile and link our simple test program by passing a flag (argument
7838 < # 1 to this macro) to the Fortran compiler in order to get
7839 < # "verbose" output that we can then parse for the Fortran linker
7840 < # flags.
7841 < ac_save_FCFLAGS=$FCFLAGS
7842 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7843 < eval "set x $ac_link"
7844 < shift
7845 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7846 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7847 < # LIBRARY_PATH; skip all such settings.
7848 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7849 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7850 < $as_echo "$ac_fc_v_output" >&5
7851 < FCFLAGS=$ac_save_FCFLAGS
7852 <
7853 < rm -rf conftest*
7854 <
7855 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7856 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7857 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7858 < ac_fc_v_output="`echo $ac_fc_v_output |
7859 <        grep 'LPATH is:' |
7860 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7861 <
7862 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7863 < #        that detects unbalanced quotes in FLIBS should be implemented
7864 < #        and (ugh) tested at some point.
7865 < case $ac_fc_v_output in
7866 <  # If we are using xlf then replace all the commas with spaces.
7867 <  *xlfentry*)
7868 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7869 <
7870 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7871 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7872 <  *mGLOB_options_string*)
7873 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7874 <
7875 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7876 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7877 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7878 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7879 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7880 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7881 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7882 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7883 <
7884 <  # If we are using Cray Fortran then delete quotes.
7885 <  *cft90*)
7886 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7887 < esac
7888 <
7889 <
7890 <
7891 < ac_cv_fc_libs=
7892 <
7893 < # Save positional arguments (if any)
7894 < ac_save_positional="$@"
7895 <
7896 < set X $ac_fc_v_output
7897 < while test $# != 1; do
7898 <  shift
7899 <  ac_arg=$1
7900 <  case $ac_arg in
7901 <        [\\/]*.a | ?:[\\/]*.a)
7902 <            ac_exists=false
7903 <  for ac_i in $ac_cv_fc_libs; do
7904 <    if test x"$ac_arg" = x"$ac_i"; then
7905 <      ac_exists=true
7906 <      break
7907 <    fi
7908 <  done
7909 <
7910 <  if test x"$ac_exists" = xtrue; then :
7911 <
7912 < else
7913 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7914 < fi
7915 <          ;;
7916 <        -bI:*)
7917 <            ac_exists=false
7918 <  for ac_i in $ac_cv_fc_libs; do
7919 <    if test x"$ac_arg" = x"$ac_i"; then
7920 <      ac_exists=true
7921 <      break
7922 <    fi
7923 <  done
7924 <
7925 <  if test x"$ac_exists" = xtrue; then :
7926 <
7927 < else
7928 <  if test "$ac_compiler_gnu" = yes; then
7929 <  for ac_link_opt in $ac_arg; do
7930 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7931 <  done
7932 < else
7933 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7934 < fi
7935 < fi
7936 <          ;;
7937 <          # Ignore these flags.
7938 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7939 <          |-LANG:=* | -LIST:* | -LNO:*)
7940 <          ;;
7941 <        -lkernel32)
7942 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7943 <          ;;
7944 <        -[LRuYz])
7945 <          # These flags, when seen by themselves, take an argument.
7946 <          # We remove the space between option and argument and re-iterate
7947 <          # unless we find an empty arg or a new option (starting with -)
7948 <          case $2 in
7949 <             "" | -*);;
7950 <             *)
7951 <                ac_arg="$ac_arg$2"
7952 <                shift; shift
7953 <                set X $ac_arg "$@"
7954 <                ;;
7955 <          esac
7956 <          ;;
7957 <        -YP,*)
7958 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7959 <              ac_exists=false
7960 <  for ac_i in $ac_cv_fc_libs; do
7961 <    if test x"$ac_j" = x"$ac_i"; then
7962 <      ac_exists=true
7963 <      break
7964 <    fi
7965 <  done
7966 <
7967 <  if test x"$ac_exists" = xtrue; then :
7968 <
7969 < else
7970 <  ac_arg="$ac_arg $ac_j"
7971 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7972 < fi
7973 <          done
7974 <          ;;
7975 <        -[lLR]*)
7976 <            ac_exists=false
7977 <  for ac_i in $ac_cv_fc_libs; do
7978 <    if test x"$ac_arg" = x"$ac_i"; then
7979 <      ac_exists=true
7980 <      break
7981 <    fi
7982 <  done
7983 <
7984 <  if test x"$ac_exists" = xtrue; then :
7985 <
7986 < else
7987 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7988 < fi
7989 <          ;;
7990 <        -zallextract*| -zdefaultextract)
7991 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7992 <          ;;
7993 <          # Ignore everything else.
7994 <  esac
7995 < done
7996 < # restore positional arguments
7997 < set X $ac_save_positional; shift
7998 <
7999 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
8000 < # then we insist that the "run path" must be an absolute path (i.e. it
8001 < # must begin with a "/").
8002 < case `(uname -sr) 2>/dev/null` in
8003 <   "SunOS 5"*)
8004 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
8005 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
8006 <      test "x$ac_ld_run_path" != x &&
8007 <        if test "$ac_compiler_gnu" = yes; then
8008 <  for ac_link_opt in $ac_ld_run_path; do
8009 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
8010 <  done
8011 < else
8012 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
8013 < fi
8014 <      ;;
8015 < esac
8016 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
8017 <
8018 < fi
8019 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
8020 < $as_echo "$ac_cv_fc_libs" >&6; }
8021 < FCLIBS="$ac_cv_fc_libs"
8022 <
8023 <
8024 < ac_ext=${ac_fc_srcext-f}
8025 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8026 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8027 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8028 <
8029 <
8030 <
8031 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
8032 < $as_echo_n "checking for module suffix... " >&6; }
8033 < rm -f conftest*
8034 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8035 < rm -f work*
8036 < cat >conftest.$ac_ext <<EOF
8037 <        module conftest
8038 <        integer n
8039 <        parameter (n=1)
8040 <        end module conftest
8041 < EOF
8042 < # SGI and absoft compilers generates module name in upper case!
8043 < testname="conftest"
8044 < modcase="lower"
8045 < if (eval $ac_compile) 2>/dev/null ; then
8046 <    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
8047 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
8048 <    if test -z "$MOD" ; then
8049 <        MOD=`ls CONFTEST* 2>/dev/null \
8050 <                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8051 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
8052 <        if test -n "$MOD" ; then
8053 <            testname="CONFTEST"
8054 <            modcase="upper"
8055 <        fi
8056 <    fi
8057 <    if test -z "$MOD" ; then
8058 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8059 < $as_echo "unknown" >&6; }
8060 <        # Use mod if we can't figure it out
8061 <        MOD="mod"
8062 <    else
8063 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
8064 < $as_echo "$MOD" >&6; }
8065 <    fi
8066 <    if test -s work.pcl ; then
8067 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
8068 < $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4262 >      # Double quotes because CPP needs to be expanded
4263 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4264 >    do
4265 >      ac_preproc_ok=false
4266 > for ac_c_preproc_warn_flag in '' yes
4267 > do
4268 >  # Use a header file that comes with gcc, so configuring glibc
4269 >  # with a fresh cross-compiler works.
4270 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 >  # <limits.h> exists even on freestanding compilers.
4272 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4273 >  # not just through cpp. "Syntax error" is here to catch this case.
4274 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 > /* end confdefs.h.  */
4276 > #ifdef __STDC__
4277 > # include <limits.h>
4278 > #else
4279 > # include <assert.h>
4280 > #endif
4281 >                     Syntax error
4282 > _ACEOF
4283 > if ac_fn_c_try_cpp "$LINENO"; then :
4284 >
4285 > else
4286 >  # Broken: fails on valid input.
4287 > continue
4288 > fi
4289 > rm -f conftest.err conftest.i conftest.$ac_ext
4290 >
4291 >  # OK, works on sane cases.  Now check whether nonexistent headers
4292 >  # can be detected and how.
4293 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 > /* end confdefs.h.  */
4295 > #include <ac_nonexistent.h>
4296 > _ACEOF
4297 > if ac_fn_c_try_cpp "$LINENO"; then :
4298 >  # Broken: success on invalid input.
4299 > continue
4300 > else
4301 >  # Passes both tests.
4302 > ac_preproc_ok=:
4303 > break
4304 > fi
4305 > rm -f conftest.err conftest.i conftest.$ac_ext
4306 >
4307 > done
4308 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 > rm -f conftest.i conftest.err conftest.$ac_ext
4310 > if $ac_preproc_ok; then :
4311 >  break
4312 > fi
4313 >
4314 >    done
4315 >    ac_cv_prog_CPP=$CPP
4316 >
4317 > fi
4318 >  CPP=$ac_cv_prog_CPP
4319 > else
4320 >  ac_cv_prog_CPP=$CPP
4321 > fi
4322 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4323 > $as_echo "$CPP" >&6; }
4324 > ac_preproc_ok=false
4325 > for ac_c_preproc_warn_flag in '' yes
4326 > do
4327 >  # Use a header file that comes with gcc, so configuring glibc
4328 >  # with a fresh cross-compiler works.
4329 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330 >  # <limits.h> exists even on freestanding compilers.
4331 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4332 >  # not just through cpp. "Syntax error" is here to catch this case.
4333 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 > /* end confdefs.h.  */
4335 > #ifdef __STDC__
4336 > # include <limits.h>
4337 > #else
4338 > # include <assert.h>
4339 > #endif
4340 >                     Syntax error
4341 > _ACEOF
4342 > if ac_fn_c_try_cpp "$LINENO"; then :
4343 >
4344 > else
4345 >  # Broken: fails on valid input.
4346 > continue
4347 > fi
4348 > rm -f conftest.err conftest.i conftest.$ac_ext
4349 >
4350 >  # OK, works on sane cases.  Now check whether nonexistent headers
4351 >  # can be detected and how.
4352 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 > /* end confdefs.h.  */
4354 > #include <ac_nonexistent.h>
4355 > _ACEOF
4356 > if ac_fn_c_try_cpp "$LINENO"; then :
4357 >  # Broken: success on invalid input.
4358 > continue
4359 > else
4360 >  # Passes both tests.
4361 > ac_preproc_ok=:
4362 > break
4363 > fi
4364 > rm -f conftest.err conftest.i conftest.$ac_ext
4365 >
4366 > done
4367 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368 > rm -f conftest.i conftest.err conftest.$ac_ext
4369 > if $ac_preproc_ok; then :
4370 >
4371 > else
4372 >  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4375 > See \`config.log' for more details" "$LINENO" 5; }
4376 > fi
4377 >
4378 > ac_ext=c
4379 > ac_cpp='$CPP $CPPFLAGS'
4380 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4381 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4382 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 >
4384 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4385 > $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4386 > if ${ac_cv_path_GREP+:} false; then :
4387 >  $as_echo_n "(cached) " >&6
4388 > else
4389 >  if test -z "$GREP"; then
4390 >  ac_path_GREP_found=false
4391 >  # Loop through the user's path and test for each of PROGNAME-LIST
4392 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 > do
4395 >  IFS=$as_save_IFS
4396 >  test -z "$as_dir" && as_dir=.
4397 >    for ac_prog in grep ggrep; do
4398 >    for ac_exec_ext in '' $ac_executable_extensions; do
4399 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4400 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4401 > # Check for GNU ac_path_GREP and select it if it is found.
4402 >  # Check for GNU $ac_path_GREP
4403 > case `"$ac_path_GREP" --version 2>&1` in
4404 > *GNU*)
4405 >  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4406 > *)
4407 >  ac_count=0
4408 >  $as_echo_n 0123456789 >"conftest.in"
4409 >  while :
4410 >  do
4411 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 >    mv "conftest.tmp" "conftest.in"
4413 >    cp "conftest.in" "conftest.nl"
4414 >    $as_echo 'GREP' >> "conftest.nl"
4415 >    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 >    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4419 >      # Best one so far, save it but keep looking for a better one
4420 >      ac_cv_path_GREP="$ac_path_GREP"
4421 >      ac_path_GREP_max=$ac_count
4422 >    fi
4423 >    # 10*(2^10) chars as input seems more than enough
4424 >    test $ac_count -gt 10 && break
4425 >  done
4426 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 > esac
4428 >
4429 >      $ac_path_GREP_found && break 3
4430 >    done
4431 >  done
4432 >  done
4433 > IFS=$as_save_IFS
4434 >  if test -z "$ac_cv_path_GREP"; then
4435 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 >  fi
4437 > else
4438 >  ac_cv_path_GREP=$GREP
4439 > fi
4440 >
4441 > fi
4442 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4443 > $as_echo "$ac_cv_path_GREP" >&6; }
4444 > GREP="$ac_cv_path_GREP"
4445 >
4446 >
4447 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4448 > $as_echo_n "checking for egrep... " >&6; }
4449 > if ${ac_cv_path_EGREP+:} false; then :
4450 >  $as_echo_n "(cached) " >&6
4451 > else
4452 >  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4453 >   then ac_cv_path_EGREP="$GREP -E"
4454 >   else
4455 >     if test -z "$EGREP"; then
4456 >  ac_path_EGREP_found=false
4457 >  # Loop through the user's path and test for each of PROGNAME-LIST
4458 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 > do
4461 >  IFS=$as_save_IFS
4462 >  test -z "$as_dir" && as_dir=.
4463 >    for ac_prog in egrep; do
4464 >    for ac_exec_ext in '' $ac_executable_extensions; do
4465 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4466 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4467 > # Check for GNU ac_path_EGREP and select it if it is found.
4468 >  # Check for GNU $ac_path_EGREP
4469 > case `"$ac_path_EGREP" --version 2>&1` in
4470 > *GNU*)
4471 >  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4472 > *)
4473 >  ac_count=0
4474 >  $as_echo_n 0123456789 >"conftest.in"
4475 >  while :
4476 >  do
4477 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 >    mv "conftest.tmp" "conftest.in"
4479 >    cp "conftest.in" "conftest.nl"
4480 >    $as_echo 'EGREP' >> "conftest.nl"
4481 >    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4484 >    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4485 >      # Best one so far, save it but keep looking for a better one
4486 >      ac_cv_path_EGREP="$ac_path_EGREP"
4487 >      ac_path_EGREP_max=$ac_count
4488 >    fi
4489 >    # 10*(2^10) chars as input seems more than enough
4490 >    test $ac_count -gt 10 && break
4491 >  done
4492 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 > esac
4494 >
4495 >      $ac_path_EGREP_found && break 3
4496 >    done
4497 >  done
4498 >  done
4499 > IFS=$as_save_IFS
4500 >  if test -z "$ac_cv_path_EGREP"; then
4501 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 >  fi
4503 > else
4504 >  ac_cv_path_EGREP=$EGREP
4505 > fi
4506 >
4507 >   fi
4508 > fi
4509 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4510 > $as_echo "$ac_cv_path_EGREP" >&6; }
4511 > EGREP="$ac_cv_path_EGREP"
4512 >
4513 >
4514 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4515 > $as_echo_n "checking whether ln -s works... " >&6; }
4516 > LN_S=$as_ln_s
4517 > if test "$LN_S" = "ln -s"; then
4518 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4519 > $as_echo "yes" >&6; }
4520 > else
4521 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4522 > $as_echo "no, using $LN_S" >&6; }
4523 > fi
4524 >
4525 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4526 > $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4527 > set x ${MAKE-make}
4528 > ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4529 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4530 >  $as_echo_n "(cached) " >&6
4531 > else
4532 >  cat >conftest.make <<\_ACEOF
4533 > SHELL = /bin/sh
4534 > all:
4535 >        @echo '@@@%%%=$(MAKE)=@@@%%%'
4536 > _ACEOF
4537 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4538 > case `${MAKE-make} -f conftest.make 2>/dev/null` in
4539 >  *@@@%%%=?*=@@@%%%*)
4540 >    eval ac_cv_prog_make_${ac_make}_set=yes;;
4541 >  *)
4542 >    eval ac_cv_prog_make_${ac_make}_set=no;;
4543 > esac
4544 > rm -f conftest.make
4545 > fi
4546 > if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4547 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548 > $as_echo "yes" >&6; }
4549 >  SET_MAKE=
4550 > else
4551 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 > $as_echo "no" >&6; }
4553 >  SET_MAKE="MAKE=${MAKE-make}"
4554 > fi
4555 >
4556 > if test -n "$ac_tool_prefix"; then
4557 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4558 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4559 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 > $as_echo_n "checking for $ac_word... " >&6; }
4561 > if ${ac_cv_prog_RANLIB+:} false; then :
4562 >  $as_echo_n "(cached) " >&6
4563 > else
4564 >  if test -n "$RANLIB"; then
4565 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4566 > else
4567 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 > for as_dir in $PATH
4569 > do
4570 >  IFS=$as_save_IFS
4571 >  test -z "$as_dir" && as_dir=.
4572 >    for ac_exec_ext in '' $ac_executable_extensions; do
4573 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4575 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 >    break 2
4577 >  fi
4578 > done
4579 >  done
4580 > IFS=$as_save_IFS
4581 >
4582 > fi
4583 > fi
4584 > RANLIB=$ac_cv_prog_RANLIB
4585 > if test -n "$RANLIB"; then
4586 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4587 > $as_echo "$RANLIB" >&6; }
4588 > else
4589 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 > $as_echo "no" >&6; }
4591 > fi
4592 >
4593 >
4594 > fi
4595 > if test -z "$ac_cv_prog_RANLIB"; then
4596 >  ac_ct_RANLIB=$RANLIB
4597 >  # Extract the first word of "ranlib", so it can be a program name with args.
4598 > set dummy ranlib; ac_word=$2
4599 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 > $as_echo_n "checking for $ac_word... " >&6; }
4601 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4602 >  $as_echo_n "(cached) " >&6
4603 > else
4604 >  if test -n "$ac_ct_RANLIB"; then
4605 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4606 > else
4607 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 > for as_dir in $PATH
4609 > do
4610 >  IFS=$as_save_IFS
4611 >  test -z "$as_dir" && as_dir=.
4612 >    for ac_exec_ext in '' $ac_executable_extensions; do
4613 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
4615 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 >    break 2
4617 >  fi
4618 > done
4619 >  done
4620 > IFS=$as_save_IFS
4621 >
4622 > fi
4623 > fi
4624 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4625 > if test -n "$ac_ct_RANLIB"; then
4626 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4627 > $as_echo "$ac_ct_RANLIB" >&6; }
4628 > else
4629 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 > $as_echo "no" >&6; }
4631 > fi
4632 >
4633 >  if test "x$ac_ct_RANLIB" = x; then
4634 >    RANLIB=":"
4635 >  else
4636 >    case $cross_compiling:$ac_tool_warned in
4637 > yes:)
4638 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 > ac_tool_warned=yes ;;
4641 > esac
4642 >    RANLIB=$ac_ct_RANLIB
4643 >  fi
4644 > else
4645 >  RANLIB="$ac_cv_prog_RANLIB"
4646 > fi
4647 >
4648 >
4649 >   # Extract the first word of "perl", so it can be a program name with args.
4650 > set dummy perl; ac_word=$2
4651 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 > $as_echo_n "checking for $ac_word... " >&6; }
4653 > if ${ac_cv_path_PERLINTERP+:} false; then :
4654 >  $as_echo_n "(cached) " >&6
4655 > else
4656 >  case $PERLINTERP in
4657 >  [\\/]* | ?:[\\/]*)
4658 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4659 >  ;;
4660 >  *)
4661 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 > for as_dir in $PATH
4663 > do
4664 >  IFS=$as_save_IFS
4665 >  test -z "$as_dir" && as_dir=.
4666 >    for ac_exec_ext in '' $ac_executable_extensions; do
4667 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4669 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 >    break 2
4671 >  fi
4672 > done
4673 >  done
4674 > IFS=$as_save_IFS
4675 >
4676 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
4677 >  ;;
4678 > esac
4679 > fi
4680 > PERLINTERP=$ac_cv_path_PERLINTERP
4681 > if test -n "$PERLINTERP"; then
4682 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
4683 > $as_echo "$PERLINTERP" >&6; }
4684 > else
4685 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 > $as_echo "no" >&6; }
4687 > fi
4688 >
4689 >
4690 >   ac_cv_path_perlinterp="$PERLINTERP"
4691 >   _sHpB='#!'
4692 >
4693 >
4694 > # Check whether --with-perl-shebang was given.
4695 > if test "${with_perl_shebang+set}" = set; then :
4696 >  withval=$with_perl_shebang; opt_perl_shebang="$withval"
4697 > else
4698 >                opt_perl_shebang="not_set"
4699 > fi
4700 >
4701 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4702 > $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4703 > if ${ax_cv_opt_perl_shebang+:} false; then :
4704 >  $as_echo_n "(cached) " >&6
4705 > else
4706 >   case "$opt_perl_shebang" in
4707 >                      not_set  ) ax_cv_opt_perl_shebang=''
4708 >                               ;;
4709 >                         *     )
4710 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
4711 >                    esac
4712 >
4713 > fi
4714 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
4715 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
4716 >   if test "A$ax_cv_opt_perl_shebang" != "A"
4717 >     then
4718 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4719 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4720 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4721 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4722 >
4723 > # Automatic detection of sharpbang formula starts here
4724 >     else
4725 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
4726 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4727 >   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4728 > $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4729 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4730 >  $as_echo_n "(cached) " >&6
4731 > else
4732 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
4733 >        if test "x$_somian_kspb_perl" == x
4734 >          then _somian_ksbp_warn_empty='durnit'
4735 >          else
4736 >          case "A$_somian_kspb_perl" in
4737 >                 A#!*perl* )
4738 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
4739 >                        ;;
4740 >                     A*    )  _somian_ksbp_warn_defau='trouble'
4741 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
4742 >          esac
4743 >        fi
4744 >
4745 > fi
4746 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
4747 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
4748 > # The above prints Checking ... result message to user.
4749 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4750 >
4751 >    if test A${_somian_ksbp_warn_empty+set} == Aset
4752 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4753 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4754 >    fi
4755 > # Inform user after printing result value
4756 >    if test A${_somian_ksbp_warn_defau+set} == Aset
4757 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
4758 > $as_echo "$as_me: Maybe Not good -" >&6;}
4759 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4760 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4761 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
4762 > $as_echo "$as_me: OK Good result - " >&6;}
4763 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4764 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4765 >    fi
4766 >  fi
4767 >
4768 > # Find a good install program.  We prefer a C program (faster),
4769 > # so one script is as good as another.  But avoid the broken or
4770 > # incompatible versions:
4771 > # SysV /etc/install, /usr/sbin/install
4772 > # SunOS /usr/etc/install
4773 > # IRIX /sbin/install
4774 > # AIX /bin/install
4775 > # AmigaOS /C/install, which installs bootblocks on floppy discs
4776 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4777 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4778 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4779 > # OS/2's system install, which has a completely different semantic
4780 > # ./install, which can be erroneously created by make from ./install.sh.
4781 > # Reject install programs that cannot install multiple files.
4782 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4783 > $as_echo_n "checking for a BSD-compatible install... " >&6; }
4784 > if test -z "$INSTALL"; then
4785 > if ${ac_cv_path_install+:} false; then :
4786 >  $as_echo_n "(cached) " >&6
4787 > else
4788 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 > for as_dir in $PATH
4790 > do
4791 >  IFS=$as_save_IFS
4792 >  test -z "$as_dir" && as_dir=.
4793 >    # Account for people who put trailing slashes in PATH elements.
4794 > case $as_dir/ in #((
4795 >  ./ | .// | /[cC]/* | \
4796 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4797 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4798 >  /usr/ucb/* ) ;;
4799 >  *)
4800 >    # OSF1 and SCO ODT 3.0 have their own names for install.
4801 >    # Don't use installbsd from OSF since it installs stuff as root
4802 >    # by default.
4803 >    for ac_prog in ginstall scoinst install; do
4804 >      for ac_exec_ext in '' $ac_executable_extensions; do
4805 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4806 >          if test $ac_prog = install &&
4807 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 >            # AIX install.  It has an incompatible calling convention.
4809 >            :
4810 >          elif test $ac_prog = install &&
4811 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4812 >            # program-specific install script used by HP pwplus--don't use.
4813 >            :
4814 >          else
4815 >            rm -rf conftest.one conftest.two conftest.dir
4816 >            echo one > conftest.one
4817 >            echo two > conftest.two
4818 >            mkdir conftest.dir
4819 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4820 >              test -s conftest.one && test -s conftest.two &&
4821 >              test -s conftest.dir/conftest.one &&
4822 >              test -s conftest.dir/conftest.two
4823 >            then
4824 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4825 >              break 3
4826 >            fi
4827 >          fi
4828 >        fi
4829 >      done
4830 >    done
4831 >    ;;
4832 > esac
4833 >
4834 >  done
4835 > IFS=$as_save_IFS
4836 >
4837 > rm -rf conftest.one conftest.two conftest.dir
4838 >
4839 > fi
4840 >  if test "${ac_cv_path_install+set}" = set; then
4841 >    INSTALL=$ac_cv_path_install
4842 >  else
4843 >    # As a last resort, use the slow shell script.  Don't cache a
4844 >    # value for INSTALL within a source directory, because that will
4845 >    # break other packages using the cache if that directory is
4846 >    # removed, or if the value is a relative name.
4847 >    INSTALL=$ac_install_sh
4848 >  fi
4849 > fi
4850 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4851 > $as_echo "$INSTALL" >&6; }
4852 >
4853 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4854 > # It thinks the first close brace ends the variable substitution.
4855 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4856 >
4857 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4858 >
4859 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4860 >
4861 > case "x$INSTALL" in
4862 >   x/*) ;;
4863 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4864 > esac
4865 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4866 > # Extract the first word of "ar", so it can be a program name with args.
4867 > set dummy ar; ac_word=$2
4868 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 > $as_echo_n "checking for $ac_word... " >&6; }
4870 > if ${ac_cv_prog_AR+:} false; then :
4871 >  $as_echo_n "(cached) " >&6
4872 > else
4873 >  if test -n "$AR"; then
4874 >  ac_cv_prog_AR="$AR" # Let the user override the test.
4875 > else
4876 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 > for as_dir in $PATH
4878 > do
4879 >  IFS=$as_save_IFS
4880 >  test -z "$as_dir" && as_dir=.
4881 >    for ac_exec_ext in '' $ac_executable_extensions; do
4882 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 >    ac_cv_prog_AR="ar"
4884 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 >    break 2
4886 >  fi
4887 > done
4888 >  done
4889 > IFS=$as_save_IFS
4890 >
4891 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4892 > fi
4893 > fi
4894 > AR=$ac_cv_prog_AR
4895 > if test -n "$AR"; then
4896 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4897 > $as_echo "$AR" >&6; }
4898 > else
4899 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 > $as_echo "no" >&6; }
4901 > fi
4902 >
4903 >
4904 > if test "$AR" = "NONE"; then
4905 >  cat >confcache <<\_ACEOF
4906 > # This file is a shell script that caches the results of configure
4907 > # tests run on this system so they can be shared between configure
4908 > # scripts and configure runs, see configure's option --config-cache.
4909 > # It is not useful on other systems.  If it contains results you don't
4910 > # want to keep, you may remove or edit it.
4911 > #
4912 > # config.status only pays attention to the cache file if you give it
4913 > # the --recheck option to rerun configure.
4914 > #
4915 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
4916 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
4917 > # following values.
4918 >
4919 > _ACEOF
4920 >
4921 > # The following way of writing the cache mishandles newlines in values,
4922 > # but we know of no workaround that is simple, portable, and efficient.
4923 > # So, we kill variables containing newlines.
4924 > # Ultrix sh set writes to stderr and can't be redirected directly,
4925 > # and sets the high bit in the cache file unless we assign to the vars.
4926 > (
4927 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4928 >    eval ac_val=\$$ac_var
4929 >    case $ac_val in #(
4930 >    *${as_nl}*)
4931 >      case $ac_var in #(
4932 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4933 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4934 >      esac
4935 >      case $ac_var in #(
4936 >      _ | IFS | as_nl) ;; #(
4937 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4938 >      *) { eval $ac_var=; unset $ac_var;} ;;
4939 >      esac ;;
4940 >    esac
4941 >  done
4942 >
4943 >  (set) 2>&1 |
4944 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4945 >    *${as_nl}ac_space=\ *)
4946 >      # `set' does not quote correctly, so add quotes: double-quote
4947 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
4948 >      sed -n \
4949 >        "s/'/'\\\\''/g;
4950 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4951 >      ;; #(
4952 >    *)
4953 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
4954 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4955 >      ;;
4956 >    esac |
4957 >    sort
4958 > ) |
4959 >  sed '
4960 >     /^ac_cv_env_/b end
4961 >     t clear
4962 >     :clear
4963 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4964 >     t end
4965 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4966 >     :end' >>confcache
4967 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4968 >  if test -w "$cache_file"; then
4969 >    if test "x$cache_file" != "x/dev/null"; then
4970 >      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4971 > $as_echo "$as_me: updating cache $cache_file" >&6;}
4972 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4973 >        cat confcache >"$cache_file"
4974 >      else
4975 >        case $cache_file in #(
4976 >        */* | ?:*)
4977 >          mv -f confcache "$cache_file"$$ &&
4978 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4979 >        *)
4980 >          mv -f confcache "$cache_file" ;;
4981 >        esac
4982 >      fi
4983      fi
4984 < else
4985 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4986 < $as_echo "unknown" >&6; }
4984 >  else
4985 >    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4986 > $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4987 >  fi
4988   fi
4989 <
4990 <
8076 <
8077 <
8078 <
8079 < # Check for module include path (some use -I, some (Solaris) use -M, some
8080 < # (absoft) use -p).
8081 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
8082 < # specified, work.pcl and work.pc are created.  However, if you specify
8083 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
8084 < # Use the module made above
8085 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
8086 < $as_echo_n "checking for module directory path flag... " >&6; }
8087 < rm -f conftest*
8088 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8089 < rm -f work*
8090 < cat >conftest.$ac_ext <<EOF
8091 <        module conftest
8092 <        integer n
8093 <        parameter (n=1)
8094 <        end module conftest
8095 < EOF
8096 < # SGI and absoft compilers generates module name in upper case!
8097 < testname="conftest"
8098 < if (eval $ac_compile) 2>/dev/null ; then
8099 <   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8100 <   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
8101 <   if test -n "$mod" ; then
8102 <      testname="CONFTEST"
8103 <   fi
8104 <   madedir=0
8105 <   if test ! -d conf ; then mkdir conf ; madedir=1; fi
8106 <   cp $testname.$MOD conf
8107 <   rm -f conftest* CONFTEST*
8108 <   cat >conftest1.$ac_ext <<EOF
8109 <        program main
8110 <        use conftest
8111 <        print *, n
8112 <        end
8113 < EOF
8114 <   F90_WORK_FILES_ARG=""
8115 <   F90MODINCSPEC=""
8116 <   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
8117 <       MODDIRFLAG="-I"
8118 <       F90MODINCSPEC="-I<dir>"
8119 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
8120 < $as_echo "-I" >&6; }
8121 <   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8122 <       MODDIRFLAG="-M"
8123 <       F90MODINCSPEC="-M<dir>"
8124 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
8125 < $as_echo "-M" >&6; }
8126 <   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8127 <       MODDIRFLAG="-p"
8128 <       F90MODINCSPEC="-p<dir>"
8129 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
8130 < $as_echo "-p" >&6; }
8131 <   elif test -s work.pc ; then
8132 <        cp work.pc conf/mpimod.pc
8133 <        echo "mpimod.pc" > conf/mpimod.pcl
8134 <        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
8135 <        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
8136 <            MODDIRFLAG='-cl,mpimod.pcl'
8137 <            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
8138 < $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
8139 <            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
8140 <            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
8141 <
8142 <        else
8143 <            # The version of the Intel compiler that I have refuses to let
8144 <            # you put the "work catalog" list anywhere but the current
8145 <            # directory. For example, you cannot in
8146 <         :
8147 <        fi
8148 <   fi
8149 <   if test -z "MODDIRFLAG" ; then
8150 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8151 < $as_echo "unknown" >&6; }
8152 <   fi
8153 <
8154 <
8155 <   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
8156 <   if test $madedir = 1 ; then rmdir conf ; fi
4989 > rm -f confcache
4990 >  exit 1
4991   fi
4992 <
4993 <
4994 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
4995 < $as_echo_n "checking for Fortran 90 module file names... " >&6; }
4996 < if test "${ac_cv_f90_module_names+set}" = set; then :
4992 > # Extract the first word of "ps", so it can be a program name with args.
4993 > set dummy ps; ac_word=$2
4994 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 > $as_echo_n "checking for $ac_word... " >&6; }
4996 > if ${ac_cv_path_PS+:} false; then :
4997    $as_echo_n "(cached) " >&6
4998   else
4999 <  ac_ext=${ac_fc_srcext-f}
5000 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5001 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5002 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5003 <
5004 < # carry out the test in a new directory, so that we don't miss anything
5005 < mkdir conftest
5006 < cd conftest
5007 < cat > conftest.$ac_ext <<_ACEOF
5008 < MODULE Bar
5009 < END MODULE Bar
5010 < _ACEOF
5011 < if ac_fn_fc_try_compile "$LINENO"; then :
5012 <  ac_cv_f90_module_names=
5013 < ac_file_list=*
5014 < for ac_file in $ac_file_list; do
5015 <   case $ac_file in
8182 <      # don't care for original source and object files
8183 <      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
8184 <          :
8185 <          ;;
8186 <      # look for new files derived from the file name
8187 <      *conftest*)
8188 <          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
8189 <            ac_exists=false
8190 <  for ac_i in $ac_cv_f90_module_names; do
8191 <    if test x"$ac_pat" = x"$ac_i"; then
8192 <      ac_exists=true
8193 <      break
8194 <    fi
4999 >  case $PS in
5000 >  [\\/]* | ?:[\\/]*)
5001 >  ac_cv_path_PS="$PS" # Let the user override the test with a path.
5002 >  ;;
5003 >  *)
5004 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 > for as_dir in $PATH
5006 > do
5007 >  IFS=$as_save_IFS
5008 >  test -z "$as_dir" && as_dir=.
5009 >    for ac_exec_ext in '' $ac_executable_extensions; do
5010 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 >    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5012 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 >    break 2
5014 >  fi
5015 > done
5016    done
5017 + IFS=$as_save_IFS
5018  
5019 <  if test x"$ac_exists" = xtrue; then :
5020 <
5019 >  ;;
5020 > esac
5021 > fi
5022 > PS=$ac_cv_path_PS
5023 > if test -n "$PS"; then
5024 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5025 > $as_echo "$PS" >&6; }
5026   else
5027 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
5027 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 > $as_echo "no" >&6; }
5029   fi
8202          ;;
8203      # look for new files derived from the module name,
8204      # with different case translation schemes
8205      *Bar*)
8206          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
8207            ac_exists=false
8208  for ac_i in $ac_cv_f90_module_names; do
8209    if test x"$ac_pat" = x"$ac_i"; then
8210      ac_exists=true
8211      break
8212    fi
8213  done
5030  
8215  if test x"$ac_exists" = xtrue; then :
5031  
5032 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5033 + $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5034 + if ${ac_cv_prog_ps_syntax+:} false; then :
5035 +  $as_echo_n "(cached) " >&6
5036   else
8218  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8219 fi
8220          ;;
8221      *bar*)
8222          ac_pat=`echo $ac_file | sed s/bar/%module%/`
8223            ac_exists=false
8224  for ac_i in $ac_cv_f90_module_names; do
8225    if test x"$ac_pat" = x"$ac_i"; then
8226      ac_exists=true
8227      break
8228    fi
8229  done
5037  
5038 <  if test x"$ac_exists" = xtrue; then :
5038 >        if $PS ax -o rss > /dev/null 2>&1; then
5039 >                ac_cv_prog_ps_ax=yes
5040 >        else
5041 >                ac_cv_prog_ps_ax=no
5042 >        fi
5043 >        if $PS -ef -o rss > /dev/null 2>&1; then
5044 >                ac_cv_prog_ps_ef=yes
5045 >        else
5046 >                ac_cv_prog_ps_ef=no
5047 >        fi
5048 >        if test "$ac_cv_prog_ps_ax" = yes; then
5049 >                ac_cv_prog_ps_syntax=BSD
5050 >        else
5051 >                if test "$ac_cv_prog_ps_ef" = yes; then
5052 >                        ac_cv_prog_ps_syntax=POSIX
5053 >                else
5054 >                        as_fn_error $? "Could not determine ps syntax" "$LINENO" 5
5055 >                fi
5056 >        fi
5057  
8233 else
8234  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
5058   fi
5059 <          ;;
5060 <      *BAR*)
8238 <          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
8239 <            ac_exists=false
8240 <  for ac_i in $ac_cv_f90_module_names; do
8241 <    if test x"$ac_pat" = x"$ac_i"; then
8242 <      ac_exists=true
8243 <      break
8244 <    fi
8245 <  done
5059 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
5060 > $as_echo "$ac_cv_prog_ps_syntax" >&6; }
5061  
5062 <  if test x"$ac_exists" = xtrue; then :
5062 > cat >>confdefs.h <<_ACEOF
5063 > #define PSCOMMAND $PS
5064 > _ACEOF
5065  
5066 < else
8250 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8251 < fi
8252 <          ;;
8253 <       # Other files - we have no idea how they are generated
8254 <       *)
8255 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
8256 < $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
8257 <          ;;
8258 <   esac
8259 < done
8260 < if test "x$ac_cv_f90_module_names" = "x"; then
8261 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8262 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8263 < fi
5066 > if test "$ac_cv_prog_ps_syntax" = BSD; then
5067  
5068 + $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
5069 +
5070   else
5071 <  ac_cv_f90_module_names=
8267 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8268 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8269 < fi
8270 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 < cd ..
8272 < # cleanup
8273 < rm -rf conftest
8274 < ac_ext=${ac_fc_srcext-f}
8275 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8276 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8277 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5071 >   if test "$ac_cv_prog_ps_syntax" = POSIX; then
5072  
5073 < fi
8280 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
8281 < $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
5073 > $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5074  
5075 < # We now generate a shell script that will help us to figure out the correct
5076 < # module file names, using the value of ac_cv_f90_module_names
5077 <
8286 < echo "Generating shell script modnam"
8287 <
8288 < cat > scripts/modnam << EOF
8289 < #! /bin/sh
8290 < # This script is auto-generated by configure
8291 < #
8292 < usage="\\
8293 < Usage: \$0 [FILES]
8294 <
8295 < [FILES] are Fortran 90 source files.
8296 < The output is a list of module file names that the Fortran 90 compiler
8297 < generates when compiling [FILES]."
8298 <
8299 < list=
8300 < empty=
8301 <
8302 < if test \$# -eq 0; then
8303 <   echo "\$usage"; exit 0
5075 >   else
5076 >       as_fn_error $? "Unknown ps syntax type!" "$LINENO" 5
5077 >   fi
5078   fi
5079  
8306 while test \$# != 0; do
8307
8308  file=\$1
8309  shift
8310
8311 # strip suffix
8312  base=\`echo \$file | sed 's/[.][^.]*$//'\`
8313
8314  test ! -f \$file && continue
8315
8316 # Look for module definitions and transform them to upper / lower case
8317  mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
8318  upper=\`echo \$mods | tr a-z A-Z\`
8319  lower=\`echo \$mods | tr A-Z a-z\`
8320
8321 # Here, the patterns for generating module file names were inserted by configure
8322  for trans in $ac_cv_f90_module_names; do
8323
8324    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
8325    var=empty
8326    case \$pat in
8327       %MODULE%)
8328          var=upper ;;
8329       %Module%)
8330          var=mods ;;
8331       %module%)
8332          var=lower ;;
8333       %FILE%)
8334          test -n "\$mods" && var=base ;;
8335    esac
8336    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
8337    list="\$list \$new"
8338  done
8339 done
8340
8341 echo \$list
8342 # end of configure-generated script
8343 EOF
8344 chmod 755 scripts/modnam
8345
8346 pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
8347 F90_MODULE_NAMES=empty
8348 case $pat in
8349       %MODULE%)
8350          F90_MODULE_NAMES=UPPER ;;
8351       %Module%)
8352          F90_MODULE_NAMES=Mixed ;;
8353       %module%)
8354          F90_MODULE_NAMES=lower ;;
8355       *)
8356          F90_MODULE_NAMES=unknown ;;
8357 esac
8358
8359 ac_ext=${ac_fc_srcext-f}
8360 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8361 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8362 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8363
8364
5080   ac_ext=c
5081   ac_cpp='$CPP $CPPFLAGS'
5082   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 8371 | Line 5086 | $as_echo_n "checking for asin in -lm... " >&6; }
5086  
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
5088   $as_echo_n "checking for asin in -lm... " >&6; }
5089 < if test "${ac_cv_lib_m_asin+set}" = set; then :
5089 > if ${ac_cv_lib_m_asin+:} false; then :
5090    $as_echo_n "(cached) " >&6
5091   else
5092    ac_check_lib_save_LIBS=$LIBS
# Line 8386 | Line 5101 | char asin ();
5101   extern "C"
5102   #endif
5103   char asin ();
8389 #ifdef FC_DUMMY_MAIN
8390 #ifndef FC_DUMMY_MAIN_EQ_F77
8391 #  ifdef __cplusplus
8392     extern "C"
8393 #  endif
8394   int FC_DUMMY_MAIN() { return 1; }
8395 #endif
8396 #endif
5104   int
5105   main ()
5106   {
# Line 8413 | Line 5120 | $as_echo "$ac_cv_lib_m_asin" >&6; }
5120   fi
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
5122   $as_echo "$ac_cv_lib_m_asin" >&6; }
5123 < if test "x$ac_cv_lib_m_asin" = x""yes; then :
5123 > if test "x$ac_cv_lib_m_asin" = xyes; then :
5124    cat >>confdefs.h <<_ACEOF
5125   #define HAVE_LIBM 1
5126   _ACEOF
# Line 8427 | Line 5134 | $as_echo_n "checking for ANSI C header files... " >&6;
5134  
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5136   $as_echo_n "checking for ANSI C header files... " >&6; }
5137 < if test "${ac_cv_header_stdc+set}" = set; then :
5137 > if ${ac_cv_header_stdc+:} false; then :
5138    $as_echo_n "(cached) " >&6
5139   else
5140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8437 | Line 5144 | else
5144   #include <string.h>
5145   #include <float.h>
5146  
8440 #ifdef FC_DUMMY_MAIN
8441 #ifndef FC_DUMMY_MAIN_EQ_F77
8442 #  ifdef __cplusplus
8443     extern "C"
8444 #  endif
8445   int FC_DUMMY_MAIN() { return 1; }
8446 #endif
8447 #endif
5147   int
5148   main ()
5149   {
# Line 8552 | Line 5251 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
5251    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5253   "
5254 < eval as_val=\$$as_ac_Header
8556 <   if test "x$as_val" = x""yes; then :
5254 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5255    cat >>confdefs.h <<_ACEOF
5256   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5257   _ACEOF
# Line 8608 | Line 5306 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5306  
5307          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5308   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5309 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
5309 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
5310    $as_echo_n "(cached) " >&6
5311   else
5312    ac_check_lib_save_LIBS=$LIBS
# Line 8623 | Line 5321 | char inflateEnd ();
5321   extern "C"
5322   #endif
5323   char inflateEnd ();
8626 #ifdef FC_DUMMY_MAIN
8627 #ifndef FC_DUMMY_MAIN_EQ_F77
8628 #  ifdef __cplusplus
8629     extern "C"
8630 #  endif
8631   int FC_DUMMY_MAIN() { return 1; }
8632 #endif
8633 #endif
5324   int
5325   main ()
5326   {
# Line 8650 | Line 5340 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5340   fi
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5342   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5343 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
5343 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5344    zlib_cv_libz=yes
5345   else
5346    zlib_cv_libz=no
5347   fi
5348  
5349          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5350 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
5350 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5351    zlib_cv_zlib_h=yes
5352   else
5353    zlib_cv_zlib_h=no
# Line 8748 | Line 5438 | $as_echo_n "checking for fftw_execute in -lfftw3... "
5438  
5439        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5440   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5441 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
5441 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5442    $as_echo_n "(cached) " >&6
5443   else
5444    ac_check_lib_save_LIBS=$LIBS
# Line 8763 | Line 5453 | char fftw_execute ();
5453   extern "C"
5454   #endif
5455   char fftw_execute ();
8766 #ifdef FC_DUMMY_MAIN
8767 #ifndef FC_DUMMY_MAIN_EQ_F77
8768 #  ifdef __cplusplus
8769     extern "C"
8770 #  endif
8771   int FC_DUMMY_MAIN() { return 1; }
8772 #endif
8773 #endif
5456   int
5457   main ()
5458   {
# Line 8790 | Line 5472 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5472   fi
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5474   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5475 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
5475 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5476    fftw_cv_libfftw3=yes
5477   else
5478    fftw_cv_libfftw3=no
5479   fi
5480  
5481        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5482 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
5482 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5483    fftw_cv_fftw3_h=yes
5484   else
5485    fftw_cv_fftw3_h=no
# Line 8807 | Line 5489 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
5489        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5490          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5491   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5492 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
5492 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5493    $as_echo_n "(cached) " >&6
5494   else
5495    ac_check_lib_save_LIBS=$LIBS
# Line 8822 | Line 5504 | char fftwnd_one ();
5504   extern "C"
5505   #endif
5506   char fftwnd_one ();
8825 #ifdef FC_DUMMY_MAIN
8826 #ifndef FC_DUMMY_MAIN_EQ_F77
8827 #  ifdef __cplusplus
8828     extern "C"
8829 #  endif
8830   int FC_DUMMY_MAIN() { return 1; }
8831 #endif
8832 #endif
5507   int
5508   main ()
5509   {
# Line 8849 | Line 5523 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5523   fi
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5525   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5526 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
5526 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5527    fftw_cv_libfftw=yes
5528   else
5529    fftw_cv_libfftw=no
5530   fi
5531  
5532          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5533 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
5533 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5534    fftw_cv_fftw_h=yes
5535   else
5536    fftw_cv_fftw_h=no
# Line 8866 | Line 5540 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
5540          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5541            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5542   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5543 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
5543 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5544    $as_echo_n "(cached) " >&6
5545   else
5546    ac_check_lib_save_LIBS=$LIBS
# Line 8881 | Line 5555 | char fftwnd_one ();
5555   extern "C"
5556   #endif
5557   char fftwnd_one ();
8884 #ifdef FC_DUMMY_MAIN
8885 #ifndef FC_DUMMY_MAIN_EQ_F77
8886 #  ifdef __cplusplus
8887     extern "C"
8888 #  endif
8889   int FC_DUMMY_MAIN() { return 1; }
8890 #endif
8891 #endif
5558   int
5559   main ()
5560   {
# Line 8908 | Line 5574 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5574   fi
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5576   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5577 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
5577 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5578    fftw_cv_libdfftw=yes
5579   else
5580    fftw_cv_libdfftw=no
5581   fi
5582  
5583            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5584 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
5584 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5585    fftw_cv_dfftw_h=yes
5586   else
5587    fftw_cv_dfftw_h=no
# Line 9007 | Line 5673 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
5673         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5674   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5675         QHULL_HOME=/usr/local
5676 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
5676 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5677            QHULL_HOME=/usr
5678         fi
5679       fi
# Line 9031 | Line 5697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
5698          CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5699          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5700 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
5701 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
5702 <  qhull_cv_qhull_h=yes
5700 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5701 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5702 >  qhull_cv_libqhull_h=yes
5703   else
5704 <  qhull_cv_qhull_h=no
5704 >  qhull_cv_libqhull_h=no
5705   fi
5706  
5707  
5708          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5709   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5710 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
5710 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5711    $as_echo_n "(cached) " >&6
5712   else
5713    ac_check_lib_save_LIBS=$LIBS
# Line 9056 | Line 5722 | char qh_qhull ();
5722   extern "C"
5723   #endif
5724   char qh_qhull ();
9059 #ifdef FC_DUMMY_MAIN
9060 #ifndef FC_DUMMY_MAIN_EQ_F77
9061 #  ifdef __cplusplus
9062     extern "C"
9063 #  endif
9064   int FC_DUMMY_MAIN() { return 1; }
9065 #endif
9066 #endif
5725   int
5726   main ()
5727   {
# Line 9083 | Line 5741 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5741   fi
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5743   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5744 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
5744 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5745    qhull_cv_libqhull=yes
5746   else
5747    qhull_cv_libqhull=no
5748   fi
5749  
5750 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5751 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5752 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5753 +  $as_echo_n "(cached) " >&6
5754 + else
5755 +  ac_check_lib_save_LIBS=$LIBS
5756 + LIBS="-lqhull6  $LIBS"
5757 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 + /* end confdefs.h.  */
5759 +
5760 + /* Override any GCC internal prototype to avoid an error.
5761 +   Use char because int might match the return type of a GCC
5762 +   builtin and then its argument prototype would still apply.  */
5763 + #ifdef __cplusplus
5764 + extern "C"
5765 + #endif
5766 + char qh_qhull ();
5767 + int
5768 + main ()
5769 + {
5770 + return qh_qhull ();
5771 +  ;
5772 +  return 0;
5773 + }
5774 + _ACEOF
5775 + if ac_fn_c_try_link "$LINENO"; then :
5776 +  ac_cv_lib_qhull6_qh_qhull=yes
5777 + else
5778 +  ac_cv_lib_qhull6_qh_qhull=no
5779 + fi
5780 + rm -f core conftest.err conftest.$ac_objext \
5781 +    conftest$ac_exeext conftest.$ac_ext
5782 + LIBS=$ac_check_lib_save_LIBS
5783 + fi
5784 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5785 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5786 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5787 +  qhull_cv_libqhull6=yes
5788 + else
5789 +  qhull_cv_libqhull6=no
5790 + fi
5791 +
5792          LDFLAGS="$QHULL_OLD_LDFLAGS"
5793          CFLAGS="$QHULL_OLD_CFLAGS"
5794          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
# Line 9099 | Line 5799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800  
5801  
5802 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
5802 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5803  
5804 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
5804 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5805  
5806 +           if test "$qhull_cv_libqhull" = "yes"; then
5807  
5808   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5809  
5810 +                QHULL="-lqhull"
5811 +           fi
5812 +           if test "$qhull_cv_libqhull6" = "yes"; then
5813 +
5814 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5815 +
5816 +                QHULL="-lqhull6"
5817 +           fi
5818             USE_QHULL=yes
5819             QHULL_INC_DIR="${QHULL_HOME}/include"
5820             QHULL_LIB_DIR="${QHULL_HOME}/lib"
9112           QHULL="-lqhull"
5821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5822   $as_echo "Working qhull found, will proceed." >&6; }
5823          else
# Line 9145 | Line 5853 | if test -z "$CXXCPP"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5854   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5855   if test -z "$CXXCPP"; then
5856 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5856 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5857    $as_echo_n "(cached) " >&6
5858   else
5859        # Double quotes because CXXCPP needs to be expanded
# Line 9175 | Line 5883 | fi
5883    # Broken: fails on valid input.
5884   continue
5885   fi
5886 < rm -f conftest.err conftest.$ac_ext
5886 > rm -f conftest.err conftest.i conftest.$ac_ext
5887  
5888    # OK, works on sane cases.  Now check whether nonexistent headers
5889    # can be detected and how.
# Line 9191 | Line 5899 | fi
5899   ac_preproc_ok=:
5900   break
5901   fi
5902 < rm -f conftest.err conftest.$ac_ext
5902 > rm -f conftest.err conftest.i conftest.$ac_ext
5903  
5904   done
5905   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5906 < rm -f conftest.err conftest.$ac_ext
5906 > rm -f conftest.i conftest.err conftest.$ac_ext
5907   if $ac_preproc_ok; then :
5908    break
5909   fi
# Line 9234 | Line 5942 | fi
5942    # Broken: fails on valid input.
5943   continue
5944   fi
5945 < rm -f conftest.err conftest.$ac_ext
5945 > rm -f conftest.err conftest.i conftest.$ac_ext
5946  
5947    # OK, works on sane cases.  Now check whether nonexistent headers
5948    # can be detected and how.
# Line 9250 | Line 5958 | fi
5958   ac_preproc_ok=:
5959   break
5960   fi
5961 < rm -f conftest.err conftest.$ac_ext
5961 > rm -f conftest.err conftest.i conftest.$ac_ext
5962  
5963   done
5964   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5965 < rm -f conftest.err conftest.$ac_ext
5965 > rm -f conftest.i conftest.err conftest.$ac_ext
5966   if $ac_preproc_ok; then :
5967  
5968   else
5969    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5972 < See \`config.log' for more details." "$LINENO" 5; }
5971 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5972 > See \`config.log' for more details" "$LINENO" 5; }
5973   fi
5974  
5975   ac_ext=cpp
# Line 9315 | Line 6023 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6023          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
6024          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
6025          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
6026 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
6026 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
6027    openbabel_cv_openbabel_h=yes
6028   else
6029    openbabel_cv_openbabel_h=no
# Line 9323 | Line 6031 | fi
6031  
6032  
6033          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
6034 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
6034 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
6035    openbabel_cv_obconversion_h=yes
6036   else
6037    openbabel_cv_obconversion_h=no
# Line 9339 | Line 6047 | using namespace OpenBabel;
6047   using namespace std;
6048   using namespace OpenBabel;
6049  
9342 #ifdef FC_DUMMY_MAIN
9343 #ifndef FC_DUMMY_MAIN_EQ_F77
9344 #  ifdef __cplusplus
9345     extern "C"
9346 #  endif
9347   int FC_DUMMY_MAIN() { return 1; }
9348 #endif
9349 #endif
6050   int
6051   main ()
6052   {
# Line 9419 | Line 6119 | $as_echo_n "checking for ANSI C header files... " >&6;
6119   # Checks for header files.
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6121   $as_echo_n "checking for ANSI C header files... " >&6; }
6122 < if test "${ac_cv_header_stdc+set}" = set; then :
6122 > if ${ac_cv_header_stdc+:} false; then :
6123    $as_echo_n "(cached) " >&6
6124   else
6125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9429 | Line 6129 | else
6129   #include <string.h>
6130   #include <float.h>
6131  
9432 #ifdef FC_DUMMY_MAIN
9433 #ifndef FC_DUMMY_MAIN_EQ_F77
9434 #  ifdef __cplusplus
9435     extern "C"
9436 #  endif
9437   int FC_DUMMY_MAIN() { return 1; }
9438 #endif
9439 #endif
6132   int
6133   main ()
6134   {
# Line 9541 | Line 6233 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6233   do :
6234    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6236 < eval as_val=\$$as_ac_Header
9545 <   if test "x$as_val" = x""yes; then :
6236 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6237    cat >>confdefs.h <<_ACEOF
6238   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6239   _ACEOF
# Line 9555 | Line 6246 | $as_echo_n "checking for stdbool.h that conforms to C9
6246   # Checks for typedefs, structures, and compiler characteristics.
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6248   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6249 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
6249 > if ${ac_cv_header_stdbool_h+:} false; then :
6250    $as_echo_n "(cached) " >&6
6251   else
6252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9587 | Line 6278 | else
6278          char b[false == 0 ? 1 : -1];
6279          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6280          char d[(bool) 0.5 == true ? 1 : -1];
6281 <        bool e = &s;
6281 >        /* See body of main program for 'e'.  */
6282          char f[(_Bool) 0.0 == false ? 1 : -1];
6283          char g[true];
6284          char h[sizeof (_Bool)];
# Line 9598 | Line 6289 | else
6289          _Bool n[m];
6290          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6291          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9601 #       if defined __xlc__ || defined __GNUC__
9602         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9603            reported by James Lemley on 2005-10-05; see
9604            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9605            This test is not quite right, since xlc is allowed to
9606            reject this program, as the initializer for xlcbug is
9607            not one of the forms that C requires support for.
9608            However, doing the test right would require a runtime
9609            test, and that would make cross-compilation harder.
9610            Let us hope that IBM fixes the xlc bug, and also adds
9611            support for this kind of constant expression.  In the
9612            meantime, this test will reject xlc, which is OK, since
9613            our stdbool.h substitute should suffice.  We also test
9614            this with GCC, where it should work, to detect more
9615            quickly whether someone messes up the test in the
9616            future.  */
9617         char digs[] = "0123456789";
9618         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9619 #       endif
6292          /* Catch a bug in an HP-UX C compiler.  See
6293             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6294             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 9624 | Line 6296 | else
6296          _Bool q = true;
6297          _Bool *pq = &q;
6298  
9627 #ifdef FC_DUMMY_MAIN
9628 #ifndef FC_DUMMY_MAIN_EQ_F77
9629 #  ifdef __cplusplus
9630     extern "C"
9631 #  endif
9632   int FC_DUMMY_MAIN() { return 1; }
9633 #endif
9634 #endif
6299   int
6300   main ()
6301   {
6302  
6303 +        bool e = &s;
6304          *pq |= q;
6305          *pq |= ! q;
6306          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 9656 | Line 6321 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6322   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6323   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6324 < if test "x$ac_cv_type__Bool" = x""yes; then :
6324 > if test "x$ac_cv_type__Bool" = xyes; then :
6325  
6326   cat >>confdefs.h <<_ACEOF
6327   #define HAVE__BOOL 1
# Line 9673 | Line 6338 | $as_echo_n "checking for an ANSI C-conforming const...
6338  
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6340   $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6341 < if test "${ac_cv_c_const+set}" = set; then :
6341 > if ${ac_cv_c_const+:} false; then :
6342    $as_echo_n "(cached) " >&6
6343   else
6344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345   /* end confdefs.h.  */
6346  
9682 #ifdef FC_DUMMY_MAIN
9683 #ifndef FC_DUMMY_MAIN_EQ_F77
9684 #  ifdef __cplusplus
9685     extern "C"
9686 #  endif
9687   int FC_DUMMY_MAIN() { return 1; }
9688 #endif
9689 #endif
6347   int
6348   main ()
6349   {
# Line 9761 | Line 6418 | $as_echo_n "checking for inline... " >&6; }
6418  
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6420   $as_echo_n "checking for inline... " >&6; }
6421 < if test "${ac_cv_c_inline+set}" = set; then :
6421 > if ${ac_cv_c_inline+:} false; then :
6422    $as_echo_n "(cached) " >&6
6423   else
6424    ac_cv_c_inline=no
# Line 9802 | Line 6459 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6459   esac
6460  
6461   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6462 < if test "x$ac_cv_type_size_t" = x""yes; then :
6462 > if test "x$ac_cv_type_size_t" = xyes; then :
6463  
6464   else
6465  
# Line 9814 | Line 6471 | $as_echo_n "checking whether time.h and sys/time.h may
6471  
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6473   $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6474 < if test "${ac_cv_header_time+set}" = set; then :
6474 > if ${ac_cv_header_time+:} false; then :
6475    $as_echo_n "(cached) " >&6
6476   else
6477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 9823 | Line 6480 | else
6480   #include <sys/time.h>
6481   #include <time.h>
6482  
9826 #ifdef FC_DUMMY_MAIN
9827 #ifndef FC_DUMMY_MAIN_EQ_F77
9828 #  ifdef __cplusplus
9829     extern "C"
9830 #  endif
9831   int FC_DUMMY_MAIN() { return 1; }
9832 #endif
9833 #endif
6483   int
6484   main ()
6485   {
# Line 9860 | Line 6509 | do :
6509   for ac_header in stdlib.h
6510   do :
6511    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6512 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6512 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6513    cat >>confdefs.h <<_ACEOF
6514   #define HAVE_STDLIB_H 1
6515   _ACEOF
# Line 9871 | Line 6520 | $as_echo_n "checking for GNU libc compatible malloc...
6520  
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6522   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6523 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6523 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6524    $as_echo_n "(cached) " >&6
6525   else
6526    if test "$cross_compiling" = yes; then :
# Line 9885 | Line 6534 | char *malloc ();
6534   char *malloc ();
6535   #endif
6536  
9888 #ifdef FC_DUMMY_MAIN
9889 #ifndef FC_DUMMY_MAIN_EQ_F77
9890 #  ifdef __cplusplus
9891     extern "C"
9892 #  endif
9893   int FC_DUMMY_MAIN() { return 1; }
9894 #endif
9895 #endif
6537   int
6538   main ()
6539   {
# Line 9935 | Line 6576 | do :
6576   for ac_header in stdlib.h
6577   do :
6578    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6579 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6579 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6580    cat >>confdefs.h <<_ACEOF
6581   #define HAVE_STDLIB_H 1
6582   _ACEOF
# Line 9946 | Line 6587 | $as_echo_n "checking for GNU libc compatible realloc..
6587  
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6589   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6590 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6590 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6591    $as_echo_n "(cached) " >&6
6592   else
6593    if test "$cross_compiling" = yes; then :
# Line 9960 | Line 6601 | char *realloc ();
6601   char *realloc ();
6602   #endif
6603  
9963 #ifdef FC_DUMMY_MAIN
9964 #ifndef FC_DUMMY_MAIN_EQ_F77
9965 #  ifdef __cplusplus
9966     extern "C"
9967 #  endif
9968   int FC_DUMMY_MAIN() { return 1; }
9969 #endif
9970 #endif
6604   int
6605   main ()
6606   {
# Line 10011 | Line 6644 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$
6644   do :
6645    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6647 < eval as_val=\$$as_ac_Header
10015 <   if test "x$as_val" = x""yes; then :
6647 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6648    cat >>confdefs.h <<_ACEOF
6649   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650   _ACEOF
# Line 10023 | Line 6655 | $as_echo_n "checking types of arguments for select...
6655  
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6657   $as_echo_n "checking types of arguments for select... " >&6; }
6658 < if test "${ac_cv_func_select_args+set}" = set; then :
6658 > if ${ac_cv_func_select_args+:} false; then :
6659    $as_echo_n "(cached) " >&6
6660   else
6661    for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
# Line 10039 | Line 6671 | $ac_includes_default
6671   # include <sys/socket.h>
6672   #endif
6673  
10042 #ifdef FC_DUMMY_MAIN
10043 #ifndef FC_DUMMY_MAIN_EQ_F77
10044 #  ifdef __cplusplus
10045     extern "C"
10046 #  endif
10047   int FC_DUMMY_MAIN() { return 1; }
10048 #endif
10049 #endif
6674   int
6675   main ()
6676   {
# Line 10065 | Line 6689 | done
6689   done
6690   done
6691   # Provide a safe default value.
6692 < : ${ac_cv_func_select_args='int,int *,struct timeval *'}
6692 > : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6693  
6694   fi
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
# Line 10093 | Line 6717 | $as_echo_n "checking for working strtod... " >&6; }
6717  
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6719   $as_echo_n "checking for working strtod... " >&6; }
6720 < if test "${ac_cv_func_strtod+set}" = set; then :
6720 > if ${ac_cv_func_strtod+:} false; then :
6721    $as_echo_n "(cached) " >&6
6722   else
6723    if test "$cross_compiling" = yes; then :
# Line 10152 | Line 6776 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6776   esac
6777  
6778   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6779 < if test "x$ac_cv_func_pow" = x""yes; then :
6779 > if test "x$ac_cv_func_pow" = xyes; then :
6780  
6781   fi
6782  
6783   if test $ac_cv_func_pow = no; then
6784    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6785   $as_echo_n "checking for pow in -lm... " >&6; }
6786 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6786 > if ${ac_cv_lib_m_pow+:} false; then :
6787    $as_echo_n "(cached) " >&6
6788   else
6789    ac_check_lib_save_LIBS=$LIBS
# Line 10174 | Line 6798 | char pow ();
6798   extern "C"
6799   #endif
6800   char pow ();
10177 #ifdef FC_DUMMY_MAIN
10178 #ifndef FC_DUMMY_MAIN_EQ_F77
10179 #  ifdef __cplusplus
10180     extern "C"
10181 #  endif
10182   int FC_DUMMY_MAIN() { return 1; }
10183 #endif
10184 #endif
6801   int
6802   main ()
6803   {
# Line 10201 | Line 6817 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6817   fi
6818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6819   $as_echo "$ac_cv_lib_m_pow" >&6; }
6820 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6820 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6821    POW_LIB=-lm
6822   else
6823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 10216 | Line 6832 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6832   do :
6833    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6835 < eval as_val=\$$as_ac_var
10220 <   if test "x$as_val" = x""yes; then :
6835 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6836    cat >>confdefs.h <<_ACEOF
6837   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6838   _ACEOF
# Line 10233 | Line 6848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849   /* end confdefs.h.  */
6850   #include <sys/systemcfg.h>
10236 #ifdef FC_DUMMY_MAIN
10237 #ifndef FC_DUMMY_MAIN_EQ_F77
10238 #  ifdef __cplusplus
10239     extern "C"
10240 #  endif
10241   int FC_DUMMY_MAIN() { return 1; }
10242 #endif
10243 #endif
6851   int
6852   main ()
6853   {
# Line 10266 | Line 6873 | case $debug in
6873    1)
6874       ;;
6875    *)
10269
10270
10271
10272
10273
10274 # Try to determine "good" native compiler flags if none specified on command
10275 # line
10276
10277 if test "$ac_test_FFLAGS" != "set"; then
10278  FCFLAGS=""
10279  case "${host_cpu}-${host_os}" in
10280
10281  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
10282                    FCFLAGS="-O2"
10283                fi;;
10284   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
10285                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
10286                fi;;
10287   powerpc*-aix*)
10288        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10289                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
10290                echo "*******************************************************"
10291                echo "*  You have AIX on an unknown powerpc system.  It is  *"
10292                echo "*  recommended that you use                           *"
10293                echo "*                                                     *"
10294                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
10295                echo "*                                 ^^^                 *"
10296                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
10297                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
10298                echo "*******************************************************"
10299        fi;;
10300   *darwin*)
10301        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10302                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
10303        fi
10304        if test "$FC" = ifort; then
10305                FCFLAGS="-O2"
10306        fi
10307        if test "$FC" = gfortran; then
10308                FCFLAGS="-Os"
10309        fi;;
10310  esac
10311
10312  if test -z "$FCFLAGS"; then
10313        echo ""
10314        echo "*********************************************************"
10315        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
10316        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10317        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
10318        echo "*********************************************************"
10319        echo ""
10320        FCFLAGS="-O"
10321  fi
10322
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
10325 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
10326 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
10327  $as_echo_n "(cached) " >&6
10328 else
10329
10330
10331 ac_ext=${ac_fc_srcext-f}
10332 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10333 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10334 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10335
10336 echo 'program main' > conftest.$ac_ext
10337 echo 'end program main' >> conftest.$ac_ext
10338 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
10339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10340  (eval $ac_compile) 2>&5
10341  ac_status=$?
10342  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10343  test $ac_status = 0; }; then
10344        ac_cv_ac_cv_guessed_f90flags=yes
10345 else
10346        ac_cv_ac_cv_guessed_f90flags=no
10347 fi
10348 rm -f conftest*
10349 ac_ext=c
10350 ac_cpp='$CPP $CPPFLAGS'
10351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10354
10355
10356 fi
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
10358 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
10359 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
10360        :
10361
10362 else
10363        :
10364
10365        echo ""
10366        echo "**********************************************************"
10367        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
10368        echo "* your compiler.                                        *"
10369        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10370        echo "*********************************************************"
10371        echo ""
10372        FCFLAGS=""
10373
10374 fi
10375
10376
10377 fi
6876  
6877  
6878  
6879  
6880  
6881  
10384
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6883   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6884 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6884 > if ${ac_cv_prog_really_gcc+:} false; then :
6885    $as_echo_n "(cached) " >&6
6886   else
6887  
# Line 10489 | Line 6986 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6986  
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6988   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6989 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6989 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6990    $as_echo_n "(cached) " >&6
6991   else
6992    echo 'void f(){}' > conftest.c
# Line 10531 | Line 7028 | $as_echo_n "checking whether we are *really* using GNU
7028  
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
7030   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
7031 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
7031 > if ${ac_cv_prog_really_gxx+:} false; then :
7032    $as_echo_n "(cached) " >&6
7033   else
7034  
# Line 10627 | Line 7124 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
7124  
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
7126   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
7127 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
7127 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
7128    $as_echo_n "(cached) " >&6
7129   else
7130    echo 'void f(){}' > conftest.cpp
# Line 10696 | Line 7193 | $as_echo_n "checking for $ac_word... " >&6; }
7193   set dummy doxygen; ac_word=$2
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195   $as_echo_n "checking for $ac_word... " >&6; }
7196 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7196 > if ${ac_cv_path_DOXYGEN+:} false; then :
7197    $as_echo_n "(cached) " >&6
7198   else
7199    case $DOXYGEN in
# Line 10734 | Line 7231 | fi
7231  
7232          if test "x$DOXYGEN" = x; then
7233                  if test "x$enable_doxygen" = xyes; then
7234 <                        as_fn_error "could not find doxygen" "$LINENO" 5
7234 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
7235                  fi
7236                  enable_doc=no
7237          else
# Line 10743 | Line 7240 | $as_echo_n "checking for $ac_word... " >&6; }
7240   set dummy dot; ac_word=$2
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242   $as_echo_n "checking for $ac_word... " >&6; }
7243 < if test "${ac_cv_path_DOT+set}" = set; then :
7243 > if ${ac_cv_path_DOT+:} false; then :
7244    $as_echo_n "(cached) " >&6
7245   else
7246    case $DOT in
# Line 10791 | Line 7288 | if test x$DOT = x; then
7288  
7289   if test x$DOT = x; then
7290          if test "x$enable_dot" = xyes; then
7291 <                as_fn_error "could not find dot" "$LINENO" 5
7291 >                as_fn_error $? "could not find dot" "$LINENO" 5
7292          fi
7293          enable_dot=no
7294   else
# Line 10813 | Line 7310 | fi
7310  
7311  
7312  
10816
10817
10818
7313   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
7314  
7315  
# Line 10883 | Line 7377 | if diff "$cache_file" confcache >/dev/null 2>&1; then
7377       :end' >>confcache
7378   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7379    if test -w "$cache_file"; then
7380 <    test "x$cache_file" != "x/dev/null" &&
7380 >    if test "x$cache_file" != "x/dev/null"; then
7381        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7382   $as_echo "$as_me: updating cache $cache_file" >&6;}
7383 <    cat confcache >$cache_file
7383 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
7384 >        cat confcache >"$cache_file"
7385 >      else
7386 >        case $cache_file in #(
7387 >        */* | ?:*)
7388 >          mv -f confcache "$cache_file"$$ &&
7389 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
7390 >        *)
7391 >          mv -f confcache "$cache_file" ;;
7392 >        esac
7393 >      fi
7394 >    fi
7395    else
7396      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7397   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 10902 | Line 7407 | ac_ltlibobjs=
7407  
7408   ac_libobjs=
7409   ac_ltlibobjs=
7410 + U=
7411   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7412    # 1. Remove the extension, and $U if already installed.
7413    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 10917 | Line 7423 | LTLIBOBJS=$ac_ltlibobjs
7423  
7424  
7425  
7426 < : ${CONFIG_STATUS=./config.status}
7426 > : "${CONFIG_STATUS=./config.status}"
7427   ac_write_fail=0
7428   ac_clean_files_save=$ac_clean_files
7429   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 11018 | Line 7524 | IFS=" ""       $as_nl"
7524   IFS=" ""        $as_nl"
7525  
7526   # Find who we are.  Look in the path if we contain no directory separator.
7527 + as_myself=
7528   case $0 in #((
7529    *[\\/]* ) as_myself=$0 ;;
7530    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 11063 | Line 7570 | export LANGUAGE
7570   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7571  
7572  
7573 < # as_fn_error ERROR [LINENO LOG_FD]
7574 < # ---------------------------------
7573 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7574 > # ----------------------------------------
7575   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7576   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7577 < # script with status $?, using 1 if that was 0.
7577 > # script with STATUS, using 1 if that was 0.
7578   as_fn_error ()
7579   {
7580 <  as_status=$?; test $as_status -eq 0 && as_status=1
7581 <  if test "$3"; then
7582 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7583 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7580 >  as_status=$1; test $as_status -eq 0 && as_status=1
7581 >  if test "$4"; then
7582 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7583 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7584    fi
7585 <  $as_echo "$as_me: error: $1" >&2
7585 >  $as_echo "$as_me: error: $2" >&2
7586    as_fn_exit $as_status
7587   } # as_fn_error
7588  
# Line 11271 | Line 7778 | $as_echo X"$as_dir" |
7778        test -d "$as_dir" && break
7779      done
7780      test -z "$as_dirs" || eval "mkdir $as_dirs"
7781 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7781 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7782  
7783  
7784   } # as_fn_mkdir_p
# Line 11325 | Line 7832 | This file was extended by OpenMD $as_me 1.0, which was
7832   # values after options handling.
7833   ac_log="
7834   This file was extended by OpenMD $as_me 1.0, which was
7835 < generated by GNU Autoconf 2.65.  Invocation command line was
7835 > generated by GNU Autoconf 2.68.  Invocation command line was
7836  
7837    CONFIG_FILES    = $CONFIG_FILES
7838    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 11387 | Line 7894 | OpenMD config.status 1.0
7894   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7895   ac_cs_version="\\
7896   OpenMD config.status 1.0
7897 < configured by $0, generated by GNU Autoconf 2.65,
7897 > configured by $0, generated by GNU Autoconf 2.68,
7898    with options \\"\$ac_cs_config\\"
7899  
7900 < Copyright (C) 2009 Free Software Foundation, Inc.
7900 > Copyright (C) 2010 Free Software Foundation, Inc.
7901   This config.status script is free software; the Free Software Foundation
7902   gives unlimited permission to copy, distribute and modify it."
7903  
# Line 11406 | Line 7913 | do
7913   while test $# != 0
7914   do
7915    case $1 in
7916 <  --*=*)
7916 >  --*=?*)
7917      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7918      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7919      ac_shift=:
7920      ;;
7921 +  --*=)
7922 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7923 +    ac_optarg=
7924 +    ac_shift=:
7925 +    ;;
7926    *)
7927      ac_option=$1
7928      ac_optarg=$2
# Line 11432 | Line 7944 | do
7944      $ac_shift
7945      case $ac_optarg in
7946      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7947 +    '') as_fn_error $? "missing file argument" ;;
7948      esac
7949      as_fn_append CONFIG_FILES " '$ac_optarg'"
7950      ac_need_defaults=false;;
# Line 11444 | Line 7957 | do
7957      ac_need_defaults=false;;
7958    --he | --h)
7959      # Conflict between --help and --header
7960 <    as_fn_error "ambiguous option: \`$1'
7960 >    as_fn_error $? "ambiguous option: \`$1'
7961   Try \`$0 --help' for more information.";;
7962    --help | --hel | -h )
7963      $as_echo "$ac_cs_usage"; exit ;;
# Line 11453 | Line 7966 | Try \`$0 --help' for more information.";;
7966      ac_cs_silent=: ;;
7967  
7968    # This is an error.
7969 <  -*) as_fn_error "unrecognized option: \`$1'
7969 >  -*) as_fn_error $? "unrecognized option: \`$1'
7970   Try \`$0 --help' for more information." ;;
7971  
7972    *) as_fn_append ac_config_targets " $1"
# Line 11510 | Line 8023 | do
8023      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
8024      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
8025  
8026 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8026 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8027    esac
8028   done
8029  
# Line 11532 | Line 8045 | $debug ||
8045   # after its creation but before its name has been assigned to `$tmp'.
8046   $debug ||
8047   {
8048 <  tmp=
8048 >  tmp= ac_tmp=
8049    trap 'exit_status=$?
8050 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8050 >  : "${ac_tmp:=$tmp}"
8051 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8052   ' 0
8053    trap 'as_fn_exit 1' 1 2 13 15
8054   }
# Line 11542 | Line 8056 | $debug ||
8056  
8057   {
8058    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8059 <  test -n "$tmp" && test -d "$tmp"
8059 >  test -d "$tmp"
8060   }  ||
8061   {
8062    tmp=./conf$$-$RANDOM
8063    (umask 077 && mkdir "$tmp")
8064 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8064 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8065 > ac_tmp=$tmp
8066  
8067   # Set up the scripts for CONFIG_FILES section.
8068   # No need to generate them if there are no CONFIG_FILES.
# Line 11564 | Line 8079 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8079   fi
8080   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8081   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8082 <  ac_cs_awk_cr='\r'
8082 >  ac_cs_awk_cr='\\r'
8083   else
8084    ac_cs_awk_cr=$ac_cr
8085   fi
8086  
8087 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
8087 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8088   _ACEOF
8089  
8090  
# Line 11578 | Line 8093 | _ACEOF
8093    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8094    echo "_ACEOF"
8095   } >conf$$subs.sh ||
8096 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8097 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8096 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8097 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8098   ac_delim='%!_!# '
8099   for ac_last_try in false false false false false :; do
8100    . ./conf$$subs.sh ||
8101 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8101 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8102  
8103    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8104    if test $ac_delim_n = $ac_delim_num; then
8105      break
8106    elif $ac_last_try; then
8107 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8107 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8108    else
8109      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8110    fi
# Line 11597 | Line 8112 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8112   rm -f conf$$subs.sh
8113  
8114   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8115 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8115 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8116   _ACEOF
8117   sed -n '
8118   h
# Line 11645 | Line 8160 | _ACAWK
8160   rm -f conf$$subs.awk
8161   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8162   _ACAWK
8163 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8163 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8164    for (key in S) S_is_set[key] = 1
8165    FS = ""
8166  
# Line 11677 | Line 8192 | else
8192    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8193   else
8194    cat
8195 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8196 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
8195 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8196 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8197   _ACEOF
8198  
8199 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
8200 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8199 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8200 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8201   # trailing colons and then remove the whole line if VPATH becomes empty
8202   # (actually we leave an empty line to preserve line numbers).
8203   if test "x$srcdir" = x.; then
8204 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8205 < s/:*\$(srcdir):*/:/
8206 < s/:*\${srcdir}:*/:/
8207 < s/:*@srcdir@:*/:/
8208 < s/^\([^=]*=[     ]*\):*/\1/
8204 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8205 > h
8206 > s///
8207 > s/^/:/
8208 > s/[      ]*$/:/
8209 > s/:\$(srcdir):/:/g
8210 > s/:\${srcdir}:/:/g
8211 > s/:@srcdir@:/:/g
8212 > s/^:*//
8213   s/:*$//
8214 + x
8215 + s/\(=[   ]*\).*/\1/
8216 + G
8217 + s/\n//
8218   s/^[^=]*=[       ]*$//
8219   }'
8220   fi
# Line 11703 | Line 8226 | if test -n "$CONFIG_HEADERS"; then
8226   # No need to generate them if there are no CONFIG_HEADERS.
8227   # This happens for instance with `./config.status Makefile'.
8228   if test -n "$CONFIG_HEADERS"; then
8229 < cat >"$tmp/defines.awk" <<\_ACAWK ||
8229 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8230   BEGIN {
8231   _ACEOF
8232  
# Line 11715 | Line 8238 | for ac_last_try in false false :; do
8238   # handling of long lines.
8239   ac_delim='%!_!# '
8240   for ac_last_try in false false :; do
8241 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8242 <  if test -z "$ac_t"; then
8241 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8242 >  if test -z "$ac_tt"; then
8243      break
8244    elif $ac_last_try; then
8245 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8245 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8246    else
8247      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8248    fi
# Line 11804 | Line 8327 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8327   _ACAWK
8328   _ACEOF
8329   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8330 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
8330 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8331   fi # test -n "$CONFIG_HEADERS"
8332  
8333  
# Line 11817 | Line 8340 | do
8340    esac
8341    case $ac_mode$ac_tag in
8342    :[FHL]*:*);;
8343 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8343 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8344    :[FH]-) ac_tag=-:-;;
8345    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8346    esac
# Line 11836 | Line 8359 | do
8359      for ac_f
8360      do
8361        case $ac_f in
8362 <      -) ac_f="$tmp/stdin";;
8362 >      -) ac_f="$ac_tmp/stdin";;
8363        *) # Look for the file first in the build tree, then in the source tree
8364           # (if the path is not absolute).  The absolute path cannot be DOS-style,
8365           # because $ac_f cannot contain `:'.
# Line 11845 | Line 8368 | do
8368             [\\/$]*) false;;
8369             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8370             esac ||
8371 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8371 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8372        esac
8373        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8374        as_fn_append ac_file_inputs " '$ac_f'"
# Line 11871 | Line 8394 | $as_echo "$as_me: creating $ac_file" >&6;}
8394      esac
8395  
8396      case $ac_tag in
8397 <    *:-:* | *:-) cat >"$tmp/stdin" \
8398 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8397 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8398 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8399      esac
8400      ;;
8401    esac
# Line 12002 | Line 8525 | $ac_datarootdir_hack
8525   s&@INSTALL@&$ac_INSTALL&;t t
8526   $ac_datarootdir_hack
8527   "
8528 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8529 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8528 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8529 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8530  
8531   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8532 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8533 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8532 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8533 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8534 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8535    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8536 < which seems to be undefined.  Please make sure it is defined." >&5
8536 > which seems to be undefined.  Please make sure it is defined" >&5
8537   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8538 < which seems to be undefined.  Please make sure it is defined." >&2;}
8538 > which seems to be undefined.  Please make sure it is defined" >&2;}
8539  
8540 <  rm -f "$tmp/stdin"
8540 >  rm -f "$ac_tmp/stdin"
8541    case $ac_file in
8542 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8543 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8542 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8543 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8544    esac \
8545 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8545 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8546   ;;
8547    :H)
8548    #
# Line 12027 | Line 8551 | which seems to be undefined.  Please make sure it is d
8551    if test x"$ac_file" != x-; then
8552      {
8553        $as_echo "/* $configure_input  */" \
8554 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8555 <    } >"$tmp/config.h" \
8556 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8557 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8554 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8555 >    } >"$ac_tmp/config.h" \
8556 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8557 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8558        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8559   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8560      else
8561        rm -f "$ac_file"
8562 <      mv "$tmp/config.h" "$ac_file" \
8563 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8562 >      mv "$ac_tmp/config.h" "$ac_file" \
8563 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8564      fi
8565    else
8566      $as_echo "/* $configure_input  */" \
8567 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8568 <      || as_fn_error "could not create -" "$LINENO" 5
8567 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8568 >      || as_fn_error $? "could not create -" "$LINENO" 5
8569    fi
8570   ;;
8571  
# Line 12066 | Line 8590 | test $ac_write_fail = 0 ||
8590   ac_clean_files=$ac_clean_files_save
8591  
8592   test $ac_write_fail = 0 ||
8593 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8593 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8594  
8595  
8596   # configure is writing to config.log, and then calls config.status.
# Line 12087 | Line 8611 | if test "$no_create" != yes; then
8611    exec 5>>config.log
8612    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8613    # would make configure fail if this is the last instruction.
8614 <  $ac_cs_success || as_fn_exit $?
8614 >  $ac_cs_success || as_fn_exit 1
8615   fi
8616   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines