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 1399 by gezelter, Thu Dec 24 05:45:30 2009 UTC vs.
branches/development/configure (file contents), Revision 1632 by gezelter, Wed Sep 14 21:44:08 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 2.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 552 | Line 560 | PACKAGE_TARNAME='openmd'
560   # Identity of this package.
561   PACKAGE_NAME='OpenMD'
562   PACKAGE_TARNAME='openmd'
563 < PACKAGE_VERSION='1.0'
564 < PACKAGE_STRING='OpenMD 1.0'
563 > PACKAGE_VERSION='2.0'
564 > PACKAGE_STRING='OpenMD 2.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566   PACKAGE_URL=''
567  
# 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
638 PS
635   AR
636   INSTALL_DATA
637   INSTALL_SCRIPT
# Line 649 | Line 645 | USE_MPI
645   GREP
646   CPP
647   USE_MPI
652 MPIFC
648   MPICC
649   MPILIBS
650   MPICXX
651   LIBDL
657 ac_ct_FC
658 FCFLAGS
659 FC
652   ac_ct_CC
653   CFLAGS
654   CC
# Line 744 | Line 736 | CFLAGS
736   CCC
737   CC
738   CFLAGS
747 FC
748 FCFLAGS
739   MPICXX
740   MPICC
751 MPIFC
741   CPP
742   CXXCPP'
743  
# Line 813 | Line 802 | do
802    fi
803  
804    case $ac_option in
805 <  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 <  *)    ac_optarg=yes ;;
805 >  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 >  *=)   ac_optarg= ;;
807 >  *)    ac_optarg=yes ;;
808    esac
809  
810    # Accept the important Cygnus configure options, so we can diagnose typos.
# Line 859 | Line 849 | do
849      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850      # Reject names that are not valid shell variable names.
851      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 <      as_fn_error "invalid feature name: $ac_useropt"
852 >      as_fn_error $? "invalid feature name: $ac_useropt"
853      ac_useropt_orig=$ac_useropt
854      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855      case $ac_user_opts in
# Line 885 | Line 875 | do
875      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876      # Reject names that are not valid shell variable names.
877      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 <      as_fn_error "invalid feature name: $ac_useropt"
878 >      as_fn_error $? "invalid feature name: $ac_useropt"
879      ac_useropt_orig=$ac_useropt
880      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881      case $ac_user_opts in
# Line 1089 | Line 1079 | do
1079      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080      # Reject names that are not valid shell variable names.
1081      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 <      as_fn_error "invalid package name: $ac_useropt"
1082 >      as_fn_error $? "invalid package name: $ac_useropt"
1083      ac_useropt_orig=$ac_useropt
1084      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085      case $ac_user_opts in
# Line 1105 | Line 1095 | do
1095      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096      # Reject names that are not valid shell variable names.
1097      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 <      as_fn_error "invalid package name: $ac_useropt"
1098 >      as_fn_error $? "invalid package name: $ac_useropt"
1099      ac_useropt_orig=$ac_useropt
1100      ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101      case $ac_user_opts in
# Line 1135 | Line 1125 | do
1125    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126      x_libraries=$ac_optarg ;;
1127  
1128 <  -*) as_fn_error "unrecognized option: \`$ac_option'
1129 < Try \`$0 --help' for more information."
1128 >  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 > Try \`$0 --help' for more information"
1130      ;;
1131  
1132    *=*)
# Line 1144 | Line 1134 | Try \`$0 --help' for more information."
1134      # Reject names that are not valid shell variable names.
1135      case $ac_envvar in #(
1136        '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 <      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137 >      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138      esac
1139      eval $ac_envvar=\$ac_optarg
1140      export $ac_envvar ;;
# Line 1154 | Line 1144 | Try \`$0 --help' for more information."
1144      $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146        $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 <    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 >    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148      ;;
1149  
1150    esac
# Line 1162 | Line 1152 | if test -n "$ac_prev"; then
1152  
1153   if test -n "$ac_prev"; then
1154    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 <  as_fn_error "missing argument to $ac_option"
1155 >  as_fn_error $? "missing argument to $ac_option"
1156   fi
1157  
1158   if test -n "$ac_unrecognized_opts"; then
1159    case $enable_option_checking in
1160      no) ;;
1161 <    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161 >    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162      *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163    esac
1164   fi
# Line 1191 | Line 1181 | do
1181      [\\/$]* | ?:[\\/]* )  continue;;
1182      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183    esac
1184 <  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184 >  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185   done
1186  
1187   # There might be people who depend on the old broken behavior: `$host'
# Line 1205 | Line 1195 | if test "x$host_alias" != x; then
1195   if test "x$host_alias" != x; then
1196    if test "x$build_alias" = x; then
1197      cross_compiling=maybe
1198 <    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 <    If a cross compiler is detected then cross compile mode will be used." >&2
1198 >    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199 >    If a cross compiler is detected then cross compile mode will be used" >&2
1200    elif test "x$build_alias" != "x$host_alias"; then
1201      cross_compiling=yes
1202    fi
# Line 1221 | Line 1211 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211   ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212   ac_ls_di=`ls -di .` &&
1213   ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 <  as_fn_error "working directory cannot be determined"
1214 >  as_fn_error $? "working directory cannot be determined"
1215   test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 <  as_fn_error "pwd does not report name of working directory"
1216 >  as_fn_error $? "pwd does not report name of working directory"
1217  
1218  
1219   # Find the source files, if location was not specified.
# Line 1262 | Line 1252 | if test ! -r "$srcdir/$ac_unique_file"; then
1252   fi
1253   if test ! -r "$srcdir/$ac_unique_file"; then
1254    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 <  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255 >  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1256   fi
1257   ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258   ac_abs_confdir=`(
1259 <        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259 >        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1260          pwd)`
1261   # When building in place, set srcdir=.
1262   if test "$ac_abs_confdir" = "$ac_pwd"; then
# Line 1292 | Line 1282 | if test "$ac_init_help" = "long"; then
1282    # Omit some internal or obsolete options to make the list less imposing.
1283    # This message is too long to be a string in the A/UX 3.1 sh.
1284    cat <<_ACEOF
1285 < \`configure' configures OpenMD 1.0 to adapt to many kinds of systems.
1285 > \`configure' configures OpenMD 2.0 to adapt to many kinds of systems.
1286  
1287   Usage: $0 [OPTION]... [VAR=VALUE]...
1288  
# Line 1306 | Line 1296 | Configuration:
1296        --help=short        display options specific to this package
1297        --help=recursive    display the short help of all the included packages
1298    -V, --version           display version information and exit
1299 <  -q, --quiet, --silent   do not print \`checking...' messages
1299 >  -q, --quiet, --silent   do not print \`checking ...' messages
1300        --cache-file=FILE   cache test results in FILE [disabled]
1301    -C, --config-cache      alias for \`--cache-file=config.cache'
1302    -n, --no-create         do not create output files
# Line 1357 | Line 1347 | if test -n "$ac_init_help"; then
1347  
1348   if test -n "$ac_init_help"; then
1349    case $ac_init_help in
1350 <     short | recursive ) echo "Configuration of OpenMD 1.0:";;
1350 >     short | recursive ) echo "Configuration of OpenMD 2.0:";;
1351     esac
1352    cat <<\_ACEOF
1353  
# Line 1399 | Line 1389 | Some influential environment variables:
1389                you have headers in a nonstandard directory <include dir>
1390    CC          C compiler command
1391    CFLAGS      C compiler flags
1402  FC          Fortran compiler command
1403  FCFLAGS     Fortran compiler flags
1392    MPICXX      MPI C++ compiler command
1393    MPICC       MPI C compiler command
1406  MPIFC       MPI Fortran compiler command
1394    CPP         C preprocessor
1395    CXXCPP      C++ preprocessor
1396  
# Line 1473 | Line 1460 | if $ac_init_version; then
1460   test -n "$ac_init_help" && exit $ac_status
1461   if $ac_init_version; then
1462    cat <<\_ACEOF
1463 < OpenMD configure 1.0
1464 < generated by GNU Autoconf 2.65
1463 > OpenMD configure 2.0
1464 > generated by GNU Autoconf 2.68
1465  
1466 < Copyright (C) 2009 Free Software Foundation, Inc.
1466 > Copyright (C) 2010 Free Software Foundation, Inc.
1467   This configure script is free software; the Free Software Foundation
1468   gives unlimited permission to copy, distribute and modify it.
1469   _ACEOF
# Line 1520 | Line 1507 | fi
1507  
1508          ac_retval=1
1509   fi
1510 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511    as_fn_set_status $ac_retval
1512  
1513   } # ac_fn_cxx_try_compile
# Line 1558 | Line 1545 | fi
1545  
1546          ac_retval=1
1547   fi
1548 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1548 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549    as_fn_set_status $ac_retval
1550  
1551   } # ac_fn_c_try_compile
1552  
1566 # ac_fn_fc_try_compile LINENO
1567 # ---------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_fc_try_compile ()
1570 {
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  rm -f conftest.$ac_objext
1573  if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576  *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580  (eval "$ac_compile") 2>conftest.err
1581  ac_status=$?
1582  if test -s conftest.err; then
1583    grep -v '^ *+' conftest.err >conftest.er1
1584    cat conftest.er1 >&5
1585    mv -f conftest.er1 conftest.err
1586  fi
1587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588  test $ac_status = 0; } && {
1589         test -z "$ac_fc_werror_flag" ||
1590         test ! -s conftest.err
1591       } && test -s conftest.$ac_objext; then :
1592  ac_retval=0
1593 else
1594  $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597        ac_retval=1
1598 fi
1599  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600  as_fn_set_status $ac_retval
1601
1602 } # ac_fn_fc_try_compile
1603
1553   # ac_fn_cxx_try_link LINENO
1554   # -------------------------
1555   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1642 | Line 1591 | fi
1591    # interfere with the next link command; also delete a directory that is
1592    # left behind by Apple's compiler.  We do this before executing the actions.
1593    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595    as_fn_set_status $ac_retval
1596  
1597   } # ac_fn_cxx_try_link
# Line 1655 | Line 1604 | $as_echo_n "checking for $2... " >&6; }
1604    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606   $as_echo_n "checking for $2... " >&6; }
1607 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 > if eval \${$3+:} false; then :
1608    $as_echo_n "(cached) " >&6
1609   else
1610    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1710 | Line 1659 | $as_echo "$ac_res" >&6; }
1659   eval ac_res=\$$3
1660                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661   $as_echo "$ac_res" >&6; }
1662 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663  
1664   } # ac_fn_cxx_check_func
1665  
# Line 1755 | Line 1704 | fi
1704    # interfere with the next link command; also delete a directory that is
1705    # left behind by Apple's compiler.  We do this before executing the actions.
1706    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708    as_fn_set_status $ac_retval
1709  
1710   } # ac_fn_c_try_link
# Line 1768 | Line 1717 | $as_echo_n "checking for $2... " >&6; }
1717    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719   $as_echo_n "checking for $2... " >&6; }
1720 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 > if eval \${$3+:} false; then :
1721    $as_echo_n "(cached) " >&6
1722   else
1723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 1823 | Line 1772 | $as_echo "$ac_res" >&6; }
1772   eval ac_res=\$$3
1773                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774   $as_echo "$ac_res" >&6; }
1775 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776  
1777   } # ac_fn_c_check_func
1778  
1830 # ac_fn_fc_try_link LINENO
1831 # ------------------------
1832 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_fc_try_link ()
1834 {
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  rm -f conftest.$ac_objext conftest$ac_exeext
1837  if { { ac_try="$ac_link"
1838 case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_link") 2>conftest.err
1845  ac_status=$?
1846  if test -s conftest.err; then
1847    grep -v '^ *+' conftest.err >conftest.er1
1848    cat conftest.er1 >&5
1849    mv -f conftest.er1 conftest.err
1850  fi
1851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852  test $ac_status = 0; } && {
1853         test -z "$ac_fc_werror_flag" ||
1854         test ! -s conftest.err
1855       } && test -s conftest$ac_exeext && {
1856         test "$cross_compiling" = yes ||
1857         $as_test_x conftest$ac_exeext
1858       }; then :
1859  ac_retval=0
1860 else
1861  $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864        ac_retval=1
1865 fi
1866  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868  # interfere with the next link command; also delete a directory that is
1869  # left behind by Apple's compiler.  We do this before executing the actions.
1870  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872  as_fn_set_status $ac_retval
1873
1874 } # ac_fn_fc_try_link
1875
1779   # ac_fn_c_try_cpp LINENO
1780   # ----------------------
1781   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1894 | Line 1797 | $as_echo "$ac_try_echo"; } >&5
1797      mv -f conftest.er1 conftest.err
1798    fi
1799    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 <  test $ac_status = 0; } >/dev/null && {
1800 >  test $ac_status = 0; } > conftest.i && {
1801           test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802           test ! -s conftest.err
1803         }; then :
# Line 1905 | Line 1808 | fi
1808  
1809      ac_retval=1
1810   fi
1811 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812    as_fn_set_status $ac_retval
1813  
1814   } # ac_fn_c_try_cpp
# Line 1918 | Line 1821 | ac_fn_c_check_header_mongrel ()
1821   ac_fn_c_check_header_mongrel ()
1822   {
1823    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 >  if eval \${$3+:} false; then :
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826   $as_echo_n "checking for $2... " >&6; }
1827 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 > if eval \${$3+:} false; then :
1828    $as_echo_n "(cached) " >&6
1829   fi
1830   eval ac_res=\$$3
# Line 1957 | Line 1860 | fi
1860   else
1861    ac_header_preproc=no
1862   fi
1863 < rm -f conftest.err conftest.$ac_ext
1863 > rm -f conftest.err conftest.i conftest.$ac_ext
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865   $as_echo "$ac_header_preproc" >&6; }
1866  
# Line 1980 | Line 1883 | $as_echo "$as_me: WARNING: $2: proceeding with the com
1883   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1884      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 < ( cat <<\_ASBOX
1984 < ## ------------------------------ ##
1886 > ( $as_echo "## ------------------------------ ##
1887   ## Report this to gezelter@nd.edu ##
1888 < ## ------------------------------ ##
1987 < _ASBOX
1888 > ## ------------------------------ ##"
1889       ) | sed "s/^/$as_me: WARNING:     /" >&2
1890      ;;
1891   esac
1892    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893   $as_echo_n "checking for $2... " >&6; }
1894 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 > if eval \${$3+:} false; then :
1895    $as_echo_n "(cached) " >&6
1896   else
1897    eval "$3=\$ac_header_compiler"
# Line 1999 | Line 1900 | fi
1900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901   $as_echo "$ac_res" >&6; }
1902   fi
1903 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904  
1905   } # ac_fn_c_check_header_mongrel
1906  
# Line 2040 | Line 1941 | fi
1941         ac_retval=$ac_status
1942   fi
1943    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945    as_fn_set_status $ac_retval
1946  
1947   } # ac_fn_c_try_run
# Line 2054 | Line 1955 | $as_echo_n "checking for $2... " >&6; }
1955    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957   $as_echo_n "checking for $2... " >&6; }
1958 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 > if eval \${$3+:} false; then :
1959    $as_echo_n "(cached) " >&6
1960   else
1961    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 2072 | Line 1973 | $as_echo "$ac_res" >&6; }
1973   eval ac_res=\$$3
1974                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975   $as_echo "$ac_res" >&6; }
1976 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977  
1978   } # ac_fn_c_check_header_compile
1979  
# Line 2097 | Line 1998 | $as_echo "$ac_try_echo"; } >&5
1998      mv -f conftest.er1 conftest.err
1999    fi
2000    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 <  test $ac_status = 0; } >/dev/null && {
2001 >  test $ac_status = 0; } > conftest.i && {
2002           test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2003           test ! -s conftest.err
2004         }; then :
# Line 2108 | Line 2009 | fi
2009  
2010      ac_retval=1
2011   fi
2012 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013    as_fn_set_status $ac_retval
2014  
2015   } # ac_fn_cxx_try_cpp
# Line 2121 | Line 2022 | ac_fn_cxx_check_header_mongrel ()
2022   ac_fn_cxx_check_header_mongrel ()
2023   {
2024    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 <  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 >  if eval \${$3+:} false; then :
2026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027   $as_echo_n "checking for $2... " >&6; }
2028 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 > if eval \${$3+:} false; then :
2029    $as_echo_n "(cached) " >&6
2030   fi
2031   eval ac_res=\$$3
# Line 2160 | Line 2061 | fi
2061   else
2062    ac_header_preproc=no
2063   fi
2064 < rm -f conftest.err conftest.$ac_ext
2064 > rm -f conftest.err conftest.i conftest.$ac_ext
2065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2066   $as_echo "$ac_header_preproc" >&6; }
2067  
# Line 2183 | Line 2084 | $as_echo "$as_me: WARNING: $2: proceeding with the com
2084   $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2085      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2086   $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2087 < ( cat <<\_ASBOX
2187 < ## ------------------------------ ##
2087 > ( $as_echo "## ------------------------------ ##
2088   ## Report this to gezelter@nd.edu ##
2089 < ## ------------------------------ ##
2190 < _ASBOX
2089 > ## ------------------------------ ##"
2090       ) | sed "s/^/$as_me: WARNING:     /" >&2
2091      ;;
2092   esac
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094   $as_echo_n "checking for $2... " >&6; }
2095 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 > if eval \${$3+:} false; then :
2096    $as_echo_n "(cached) " >&6
2097   else
2098    eval "$3=\$ac_header_compiler"
# Line 2202 | Line 2101 | fi
2101                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102   $as_echo "$ac_res" >&6; }
2103   fi
2104 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105  
2106   } # ac_fn_cxx_check_header_mongrel
2107  
# Line 2215 | Line 2114 | $as_echo_n "checking for $2... " >&6; }
2114    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116   $as_echo_n "checking for $2... " >&6; }
2117 < if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2117 > if eval \${$3+:} false; then :
2118    $as_echo_n "(cached) " >&6
2119   else
2120    eval "$3=no"
2121    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122   /* end confdefs.h.  */
2123   $4
2225 #ifdef FC_DUMMY_MAIN
2226 #ifndef FC_DUMMY_MAIN_EQ_F77
2227 #  ifdef __cplusplus
2228     extern "C"
2229 #  endif
2230   int FC_DUMMY_MAIN() { return 1; }
2231 #endif
2232 #endif
2124   int
2125   main ()
2126   {
# Line 2243 | Line 2134 | $4
2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135   /* end confdefs.h.  */
2136   $4
2246 #ifdef FC_DUMMY_MAIN
2247 #ifndef FC_DUMMY_MAIN_EQ_F77
2248 #  ifdef __cplusplus
2249     extern "C"
2250 #  endif
2251   int FC_DUMMY_MAIN() { return 1; }
2252 #endif
2253 #endif
2137   int
2138   main ()
2139   {
# Line 2272 | Line 2155 | $as_echo "$ac_res" >&6; }
2155   eval ac_res=\$$3
2156                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157   $as_echo "$ac_res" >&6; }
2158 <  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 >  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159  
2160   } # ac_fn_c_check_type
2161   cat >config.log <<_ACEOF
2162   This file contains any messages produced by compilers while
2163   running configure, to aid debugging if configure makes a mistake.
2164  
2165 < It was created by OpenMD $as_me 1.0, which was
2166 < generated by GNU Autoconf 2.65.  Invocation command line was
2165 > It was created by OpenMD $as_me 2.0, which was
2166 > generated by GNU Autoconf 2.68.  Invocation command line was
2167  
2168    $ $0 $@
2169  
# Line 2390 | Line 2273 | trap 'exit_status=$?
2273    {
2274      echo
2275  
2276 <    cat <<\_ASBOX
2394 < ## ---------------- ##
2276 >    $as_echo "## ---------------- ##
2277   ## Cache variables. ##
2278 < ## ---------------- ##
2397 < _ASBOX
2278 > ## ---------------- ##"
2279      echo
2280      # The following way of writing the cache mishandles newlines in values,
2281   (
# Line 2428 | Line 2309 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2309   )
2310      echo
2311  
2312 <    cat <<\_ASBOX
2432 < ## ----------------- ##
2312 >    $as_echo "## ----------------- ##
2313   ## Output variables. ##
2314 < ## ----------------- ##
2435 < _ASBOX
2314 > ## ----------------- ##"
2315      echo
2316      for ac_var in $ac_subst_vars
2317      do
# Line 2445 | Line 2324 | _ASBOX
2324      echo
2325  
2326      if test -n "$ac_subst_files"; then
2327 <      cat <<\_ASBOX
2449 < ## ------------------- ##
2327 >      $as_echo "## ------------------- ##
2328   ## File substitutions. ##
2329 < ## ------------------- ##
2452 < _ASBOX
2329 > ## ------------------- ##"
2330        echo
2331        for ac_var in $ac_subst_files
2332        do
# Line 2463 | Line 2340 | _ASBOX
2340      fi
2341  
2342      if test -s confdefs.h; then
2343 <      cat <<\_ASBOX
2467 < ## ----------- ##
2343 >      $as_echo "## ----------- ##
2344   ## confdefs.h. ##
2345 < ## ----------- ##
2470 < _ASBOX
2345 > ## ----------- ##"
2346        echo
2347        cat confdefs.h
2348        echo
# Line 2522 | Line 2397 | if test -n "$CONFIG_SITE"; then
2397   ac_site_file1=NONE
2398   ac_site_file2=NONE
2399   if test -n "$CONFIG_SITE"; then
2400 <  ac_site_file1=$CONFIG_SITE
2400 >  # We do not want a PATH search for config.site.
2401 >  case $CONFIG_SITE in #((
2402 >    -*)  ac_site_file1=./$CONFIG_SITE;;
2403 >    */*) ac_site_file1=$CONFIG_SITE;;
2404 >    *)   ac_site_file1=./$CONFIG_SITE;;
2405 >  esac
2406   elif test "x$prefix" != xNONE; then
2407    ac_site_file1=$prefix/share/config.site
2408    ac_site_file2=$prefix/etc/config.site
# Line 2537 | Line 2417 | $as_echo "$as_me: loading site script $ac_site_file" >
2417      { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2418   $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2419      sed 's/^/| /' "$ac_site_file" >&5
2420 <    . "$ac_site_file"
2420 >    . "$ac_site_file" \
2421 >      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 > $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 > as_fn_error $? "failed to load site script $ac_site_file
2424 > See \`config.log' for more details" "$LINENO" 5; }
2425    fi
2426   done
2427  
# Line 2613 | Line 2497 | $as_echo "$as_me: error: changes in the environment ca
2497   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499   $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 <  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 >  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501   fi
2502   ## -------------------- ##
2503   ## Main body of script. ##
# Line 2628 | Line 2512 | for ac_dir in ac-tools "$srcdir"/ac-tools; do
2512  
2513   ac_aux_dir=
2514   for ac_dir in ac-tools "$srcdir"/ac-tools; do
2515 <  for ac_t in install-sh install.sh shtool; do
2516 <    if test -f "$ac_dir/$ac_t"; then
2517 <      ac_aux_dir=$ac_dir
2518 <      ac_install_sh="$ac_aux_dir/$ac_t -c"
2519 <      break 2
2520 <    fi
2521 <  done
2515 >  if test -f "$ac_dir/install-sh"; then
2516 >    ac_aux_dir=$ac_dir
2517 >    ac_install_sh="$ac_aux_dir/install-sh -c"
2518 >    break
2519 >  elif test -f "$ac_dir/install.sh"; then
2520 >    ac_aux_dir=$ac_dir
2521 >    ac_install_sh="$ac_aux_dir/install.sh -c"
2522 >    break
2523 >  elif test -f "$ac_dir/shtool"; then
2524 >    ac_aux_dir=$ac_dir
2525 >    ac_install_sh="$ac_aux_dir/shtool install -c"
2526 >    break
2527 >  fi
2528   done
2529   if test -z "$ac_aux_dir"; then
2530 <  as_fn_error "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2530 >  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ac-tools \"$srcdir\"/ac-tools" "$LINENO" 5
2531   fi
2532  
2533   # These three variables are undocumented and unsupported,
# Line 2677 | Line 2567 | ac_config_headers="$ac_config_headers src/config.h"
2567  
2568  
2569  
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2570   #
2571   #
2572   #
# Line 2708 | Line 2580 | ac_config_headers="$ac_config_headers src/config.h"
2580  
2581  
2582  
2711 # AC_F90_MODULE_NAMES
2712 # -------------------
2713 #
2714 # Figure out how the Fortran 90 compiler constructs module file names
2715 #
2716 # AC_F90_MODULE_NAMES
2583  
2584  
2585  
# Line 2894 | Line 2760 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 |
2760   # who am i
2761   # Make sure we can run config.sub.
2762   $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763 <  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 >  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764  
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766   $as_echo_n "checking build system type... " >&6; }
2767 < if test "${ac_cv_build+set}" = set; then :
2767 > if ${ac_cv_build+:} false; then :
2768    $as_echo_n "(cached) " >&6
2769   else
2770    ac_build_alias=$build_alias
2771   test "x$ac_build_alias" = x &&
2772    ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773   test "x$ac_build_alias" = x &&
2774 <  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2774 >  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775   ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776 <  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2776 >  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777  
2778   fi
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780   $as_echo "$ac_cv_build" >&6; }
2781   case $ac_cv_build in
2782   *-*-*) ;;
2783 < *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2783 > *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784   esac
2785   build=$ac_cv_build
2786   ac_save_IFS=$IFS; IFS='-'
# Line 2932 | Line 2798 | $as_echo_n "checking host system type... " >&6; }
2798  
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800   $as_echo_n "checking host system type... " >&6; }
2801 < if test "${ac_cv_host+set}" = set; then :
2801 > if ${ac_cv_host+:} false; then :
2802    $as_echo_n "(cached) " >&6
2803   else
2804    if test "x$host_alias" = x; then
2805    ac_cv_host=$ac_cv_build
2806   else
2807    ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808 <    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2808 >    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809   fi
2810  
2811   fi
# Line 2947 | Line 2813 | case $ac_cv_host in
2813   $as_echo "$ac_cv_host" >&6; }
2814   case $ac_cv_host in
2815   *-*-*) ;;
2816 < *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2816 > *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817   esac
2818   host=$ac_cv_host
2819   ac_save_IFS=$IFS; IFS='-'
# Line 3041 | Line 2907 | $as_echo_n "checking for $ac_word... " >&6; }
2907   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909   $as_echo_n "checking for $ac_word... " >&6; }
2910 < if test "${ac_cv_prog_CXX+set}" = set; then :
2910 > if ${ac_cv_prog_CXX+:} false; then :
2911    $as_echo_n "(cached) " >&6
2912   else
2913    if test -n "$CXX"; then
# Line 3085 | Line 2951 | $as_echo_n "checking for $ac_word... " >&6; }
2951   set dummy $ac_prog; ac_word=$2
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953   $as_echo_n "checking for $ac_word... " >&6; }
2954 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2954 > if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2955    $as_echo_n "(cached) " >&6
2956   else
2957    if test -n "$ac_ct_CXX"; then
# Line 3248 | Line 3114 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114  
3115   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117 < { as_fn_set_status 77
3118 < as_fn_error "C++ compiler cannot create executables
3253 < See \`config.log' for more details." "$LINENO" 5; }; }
3117 > as_fn_error 77 "C++ compiler cannot create executables
3118 > See \`config.log' for more details" "$LINENO" 5; }
3119   else
3120    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121   $as_echo "yes" >&6; }
# Line 3292 | Line 3157 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157   else
3158    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 < as_fn_error "cannot compute suffix of executables: cannot compile and link
3161 < See \`config.log' for more details." "$LINENO" 5; }
3160 > as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3161 > See \`config.log' for more details" "$LINENO" 5; }
3162   fi
3163   rm -f conftest conftest$ac_cv_exeext
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
# Line 3350 | Line 3215 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215      else
3216          { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218 < as_fn_error "cannot run C++ compiled programs.
3218 > as_fn_error $? "cannot run C++ compiled programs.
3219   If you meant to cross compile, use \`--host'.
3220 < See \`config.log' for more details." "$LINENO" 5; }
3220 > See \`config.log' for more details" "$LINENO" 5; }
3221      fi
3222    fi
3223   fi
# Line 3363 | Line 3228 | $as_echo_n "checking for suffix of object files... " >
3228   ac_clean_files=$ac_clean_files_save
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3230   $as_echo_n "checking for suffix of object files... " >&6; }
3231 < if test "${ac_cv_objext+set}" = set; then :
3231 > if ${ac_cv_objext+:} false; then :
3232    $as_echo_n "(cached) " >&6
3233   else
3234    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3403 | Line 3268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268  
3269   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 < as_fn_error "cannot compute suffix of object files: cannot compile
3272 < See \`config.log' for more details." "$LINENO" 5; }
3271 > as_fn_error $? "cannot compute suffix of object files: cannot compile
3272 > See \`config.log' for more details" "$LINENO" 5; }
3273   fi
3274   rm -f conftest.$ac_cv_objext conftest.$ac_ext
3275   fi
# Line 3414 | Line 3279 | $as_echo_n "checking whether we are using the GNU C++
3279   ac_objext=$OBJEXT
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3281   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3282 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3282 > if ${ac_cv_cxx_compiler_gnu+:} false; then :
3283    $as_echo_n "(cached) " >&6
3284   else
3285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3451 | Line 3316 | $as_echo_n "checking whether $CXX accepts -g... " >&6;
3316   ac_save_CXXFLAGS=$CXXFLAGS
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3318   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3319 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
3319 > if ${ac_cv_prog_cxx_g+:} false; then :
3320    $as_echo_n "(cached) " >&6
3321   else
3322    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
# Line 3545 | Line 3410 | $as_echo_n "checking for $ac_word... " >&6; }
3410   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412   $as_echo_n "checking for $ac_word... " >&6; }
3413 < if test "${ac_cv_prog_CC+set}" = set; then :
3413 > if ${ac_cv_prog_CC+:} false; then :
3414    $as_echo_n "(cached) " >&6
3415   else
3416    if test -n "$CC"; then
# Line 3589 | Line 3454 | $as_echo_n "checking for $ac_word... " >&6; }
3454   set dummy $ac_prog; ac_word=$2
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456   $as_echo_n "checking for $ac_word... " >&6; }
3457 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3457 > if ${ac_cv_prog_ac_ct_CC+:} false; then :
3458    $as_echo_n "(cached) " >&6
3459   else
3460    if test -n "$ac_ct_CC"; then
# Line 3641 | Line 3506 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506  
3507   test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 < as_fn_error "no acceptable C compiler found in \$PATH
3510 < See \`config.log' for more details." "$LINENO" 5; }
3509 > as_fn_error $? "no acceptable C compiler found in \$PATH
3510 > See \`config.log' for more details" "$LINENO" 5; }
3511  
3512   # Provide some information about the compiler.
3513   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
# Line 3671 | Line 3536 | $as_echo_n "checking whether we are using the GNU C co
3536  
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538   $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3539 > if ${ac_cv_c_compiler_gnu+:} false; then :
3540    $as_echo_n "(cached) " >&6
3541   else
3542    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 3708 | Line 3573 | $as_echo_n "checking whether $CC accepts -g... " >&6;
3573   ac_save_CFLAGS=$CFLAGS
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575   $as_echo_n "checking whether $CC accepts -g... " >&6; }
3576 < if test "${ac_cv_prog_cc_g+set}" = set; then :
3576 > if ${ac_cv_prog_cc_g+:} false; then :
3577    $as_echo_n "(cached) " >&6
3578   else
3579    ac_save_c_werror_flag=$ac_c_werror_flag
# Line 3786 | Line 3651 | $as_echo_n "checking for $CC option to accept ISO C89.
3651   fi
3652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653   $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
3654 > if ${ac_cv_prog_cc_c89+:} false; then :
3655    $as_echo_n "(cached) " >&6
3656   else
3657    ac_cv_prog_cc_c89=no
# Line 3880 | Line 3745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884 ac_ext=${ac_fc_srcext-f}
3885 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3886 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3888 if test -n "$ac_tool_prefix"; then
3889  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3890  do
3891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_FC+set}" = set; then :
3896  $as_echo_n "(cached) " >&6
3897 else
3898  if test -n "$FC"; then
3899  ac_cv_prog_FC="$FC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912 done
3913  done
3914 IFS=$as_save_IFS
3748  
3916 fi
3917 fi
3918 FC=$ac_cv_prog_FC
3919 if test -n "$FC"; then
3920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3921 $as_echo "$FC" >&6; }
3922 else
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3749  
3927
3928    test -n "$FC" && break
3929  done
3930 fi
3931 if test -z "$FC"; then
3932  ac_ct_FC=$FC
3933  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3934 do
3935  # Extract the first word of "$ac_prog", so it can be a program name with args.
3936 set dummy $ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
3940  $as_echo_n "(cached) " >&6
3941 else
3942  if test -n "$ac_ct_FC"; then
3943  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948  IFS=$as_save_IFS
3949  test -z "$as_dir" && as_dir=.
3950    for ac_exec_ext in '' $ac_executable_extensions; do
3951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952    ac_cv_prog_ac_ct_FC="$ac_prog"
3953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956 done
3957  done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 ac_ct_FC=$ac_cv_prog_ac_ct_FC
3963 if test -n "$ac_ct_FC"; then
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3965 $as_echo "$ac_ct_FC" >&6; }
3966 else
3967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972  test -n "$ac_ct_FC" && break
3973 done
3974
3975  if test "x$ac_ct_FC" = x; then
3976    FC=""
3977  else
3978    case $cross_compiling:$ac_tool_warned in
3979 yes:)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982 ac_tool_warned=yes ;;
3983 esac
3984    FC=$ac_ct_FC
3985  fi
3986 fi
3987
3988
3989 # Provide some information about the compiler.
3990 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3991 set X $ac_compile
3992 ac_compiler=$2
3993 for ac_option in --version -v -V -qversion; do
3994  { { ac_try="$ac_compiler $ac_option >&5"
3995 case "(($ac_try" in
3996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997  *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4002  ac_status=$?
4003  if test -s conftest.err; then
4004    sed '10a\
4005 ... rest of stderr output deleted ...
4006         10q' conftest.err >conftest.er1
4007    cat conftest.er1 >&5
4008  fi
4009  rm -f conftest.er1 conftest.err
4010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011  test $ac_status = 0; }
4012 done
4013 rm -f a.out
4014
4015 # If we don't use `.F' as extension, the preprocessor is not run on the
4016 # input file.  (Note that this only needs to work for GNU compilers.)
4017 ac_save_ext=$ac_ext
4018 ac_ext=F
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4020 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4021 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4022  $as_echo_n "(cached) " >&6
4023 else
4024  cat > conftest.$ac_ext <<_ACEOF
4025      program main
4026 #ifndef __GNUC__
4027       choke me
4028 #endif
4029
4030      end
4031 _ACEOF
4032 if ac_fn_fc_try_compile "$LINENO"; then :
4033  ac_compiler_gnu=yes
4034 else
4035  ac_compiler_gnu=no
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4039
4040 fi
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4042 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4043 ac_ext=$ac_save_ext
4044 ac_test_FCFLAGS=${FCFLAGS+set}
4045 ac_save_FCFLAGS=$FCFLAGS
4046 FCFLAGS=
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4048 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4049 if test "${ac_cv_prog_fc_g+set}" = set; then :
4050  $as_echo_n "(cached) " >&6
4051 else
4052  FCFLAGS=-g
4053 cat > conftest.$ac_ext <<_ACEOF
4054      program main
4055
4056      end
4057 _ACEOF
4058 if ac_fn_fc_try_compile "$LINENO"; then :
4059  ac_cv_prog_fc_g=yes
4060 else
4061  ac_cv_prog_fc_g=no
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4067 $as_echo "$ac_cv_prog_fc_g" >&6; }
4068 if test "$ac_test_FCFLAGS" = set; then
4069  FCFLAGS=$ac_save_FCFLAGS
4070 elif test $ac_cv_prog_fc_g = yes; then
4071  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4072    FCFLAGS="-g -O2"
4073  else
4074    FCFLAGS="-g"
4075  fi
4076 else
4077  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4078    FCFLAGS="-O2"
4079  else
4080    FCFLAGS=
4081  fi
4082 fi
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
3750   save_CXX=$CXX
3751   save_CC=$CC
4093 save_FC=$FC
3752   save_LIBS=$LIBS
3753  
3754   ac_ext=cpp
# Line 4102 | Line 3760 | $as_echo_n "checking for dlopen in -lc... " >&6; }
3760  
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
3762   $as_echo_n "checking for dlopen in -lc... " >&6; }
3763 < if test "${ac_cv_lib_c_dlopen+set}" = set; then :
3763 > if ${ac_cv_lib_c_dlopen+:} false; then :
3764    $as_echo_n "(cached) " >&6
3765   else
3766    ac_check_lib_save_LIBS=$LIBS
# Line 4136 | Line 3794 | $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3794   fi
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
3796   $as_echo "$ac_cv_lib_c_dlopen" >&6; }
3797 < if test "x$ac_cv_lib_c_dlopen" = x""yes; then :
3797 > if test "x$ac_cv_lib_c_dlopen" = xyes; then :
3798    LIBDL=""
3799   else
3800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3801   $as_echo_n "checking for dlopen in -ldl... " >&6; }
3802 < if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3802 > if ${ac_cv_lib_dl_dlopen+:} false; then :
3803    $as_echo_n "(cached) " >&6
3804   else
3805    ac_check_lib_save_LIBS=$LIBS
# Line 4175 | Line 3833 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3833   fi
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3835   $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3836 < if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3836 > if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3837    LIBDL="-ldl"
3838   fi
3839  
# Line 4193 | Line 3851 | $as_echo_n "checking for $ac_word... " >&6; }
3851   set dummy $ac_prog; ac_word=$2
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853   $as_echo_n "checking for $ac_word... " >&6; }
3854 < if test "${ac_cv_prog_MPICXX+set}" = set; then :
3854 > if ${ac_cv_prog_MPICXX+:} false; then :
3855    $as_echo_n "(cached) " >&6
3856   else
3857    if test -n "$MPICXX"; then
# Line 4237 | Line 3895 | if test x = x"$MPILIBS"; then
3895  
3896   if test x = x"$MPILIBS"; then
3897          ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3898 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3899    MPILIBS=" "
3900   fi
3901  
# Line 4246 | Line 3904 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3904   if test x = x"$MPILIBS"; then
3905          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3906   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3907 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3907 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
3908    $as_echo_n "(cached) " >&6
3909   else
3910    ac_check_lib_save_LIBS=$LIBS
# Line 4280 | Line 3938 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3938   fi
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3940   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3941 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3941 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
3942    MPILIBS="-lmpi"
3943   fi
3944  
# Line 4288 | Line 3946 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
3946   if test x = x"$MPILIBS"; then
3947          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3948   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3949 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3949 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
3950    $as_echo_n "(cached) " >&6
3951   else
3952    ac_check_lib_save_LIBS=$LIBS
# Line 4322 | Line 3980 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3980   fi
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3982   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3983 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3983 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
3984    MPILIBS="-lmpich"
3985   fi
3986  
# Line 4388 | Line 4046 | $as_echo_n "checking for $ac_word... " >&6; }
4046   set dummy $ac_prog; ac_word=$2
4047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048   $as_echo_n "checking for $ac_word... " >&6; }
4049 < if test "${ac_cv_prog_MPICC+set}" = set; then :
4049 > if ${ac_cv_prog_MPICC+:} false; then :
4050    $as_echo_n "(cached) " >&6
4051   else
4052    if test -n "$MPICC"; then
# Line 4432 | Line 4090 | if test x = x"$MPILIBS"; then
4090  
4091   if test x = x"$MPILIBS"; then
4092          ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4093 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
4093 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4094    MPILIBS=" "
4095   fi
4096  
# Line 4441 | Line 4099 | $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4099   if test x = x"$MPILIBS"; then
4100          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4101   $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4102 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4102 > if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
4103    $as_echo_n "(cached) " >&6
4104   else
4105    ac_check_lib_save_LIBS=$LIBS
# Line 4475 | Line 4133 | $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4133   fi
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4135   $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4136 < if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4136 > if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
4137    MPILIBS="-lmpi"
4138   fi
4139  
# Line 4483 | Line 4141 | $as_echo_n "checking for MPI_Init in -lmpich... " >&6;
4141   if test x = x"$MPILIBS"; then
4142          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4143   $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4144 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4144 > if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
4145    $as_echo_n "(cached) " >&6
4146   else
4147    ac_check_lib_save_LIBS=$LIBS
# Line 4517 | Line 4175 | $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4175   fi
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4177   $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4178 < if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4178 > if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
4179    MPILIBS="-lmpich"
4180   fi
4181  
# Line 4565 | Line 4223 | fi
4223  
4224  
4225   fi
4568
4226   if test $USE_MPI != no; then :
4570
4571 ac_ext=${ac_fc_srcext-f}
4572 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4573 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4575
4576
4577
4578
4579
4580
4581        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4582 do
4583  # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if test "${ac_cv_prog_MPIFC+set}" = set; then :
4588  $as_echo_n "(cached) " >&6
4589 else
4590  if test -n "$MPIFC"; then
4591  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596  IFS=$as_save_IFS
4597  test -z "$as_dir" && as_dir=.
4598    for ac_exec_ext in '' $ac_executable_extensions; do
4599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600    ac_cv_prog_MPIFC="$ac_prog"
4601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602    break 2
4603  fi
4604 done
4605  done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 MPIFC=$ac_cv_prog_MPIFC
4611 if test -n "$MPIFC"; then
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4613 $as_echo "$MPIFC" >&6; }
4614 else
4615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4227  
4619
4620  test -n "$MPIFC" && break
4621 done
4622 test -n "$MPIFC" || MPIFC="$FC"
4623
4624        ax_mpi_save_FC="$FC"
4625        FC="$MPIFC"
4626
4627
4628
4629 if test x = x"$MPILIBS"; then
4630        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4631 $as_echo_n "checking for MPI_Init... " >&6; }
4632                        cat > conftest.$ac_ext <<_ACEOF
4633      program main
4634      call MPI_Init
4635      end
4636 _ACEOF
4637 if ac_fn_fc_try_link "$LINENO"; then :
4638  MPILIBS=" "
4639                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4640 $as_echo "yes" >&6; }
4641 else
4642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext \
4646    conftest$ac_exeext conftest.$ac_ext
4647 fi
4648
4649        if test x = x"$MPILIBS"; then
4650                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4651 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4652 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
4653  $as_echo_n "(cached) " >&6
4654 else
4655  ac_check_lib_save_LIBS=$LIBS
4656 LIBS="-lfmpi  $LIBS"
4657 cat > conftest.$ac_ext <<_ACEOF
4658      program main
4659      call MPI_Init
4660      end
4661 _ACEOF
4662 if ac_fn_fc_try_link "$LINENO"; then :
4663  ac_cv_lib_fmpi_MPI_Init=yes
4664 else
4665  ac_cv_lib_fmpi_MPI_Init=no
4666 fi
4667 rm -f core conftest.err conftest.$ac_objext \
4668    conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4670 fi
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4672 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4673 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
4674  MPILIBS="-lfmpi"
4675 fi
4676
4677        fi
4678        if test x = x"$MPILIBS"; then
4679                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4680 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4681 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
4682  $as_echo_n "(cached) " >&6
4683 else
4684  ac_check_lib_save_LIBS=$LIBS
4685 LIBS="-lmpichf90  $LIBS"
4686 cat > conftest.$ac_ext <<_ACEOF
4687      program main
4688      call MPI_Init
4689      end
4690 _ACEOF
4691 if ac_fn_fc_try_link "$LINENO"; then :
4692  ac_cv_lib_mpichf90_MPI_Init=yes
4693 else
4694  ac_cv_lib_mpichf90_MPI_Init=no
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext \
4697    conftest$ac_exeext conftest.$ac_ext
4698 LIBS=$ac_check_lib_save_LIBS
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4701 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4702 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
4703  MPILIBS="-lmpichf90"
4704 fi
4705
4706        fi
4707
4708 if test x = x"$MPILIBS"; then
4709        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4710 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4711 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4712  $as_echo_n "(cached) " >&6
4713 else
4714  ac_check_lib_save_LIBS=$LIBS
4715 LIBS="-lmpi  $LIBS"
4716 cat > conftest.$ac_ext <<_ACEOF
4717      program main
4718      call MPI_Init
4719      end
4720 _ACEOF
4721 if ac_fn_fc_try_link "$LINENO"; then :
4722  ac_cv_lib_mpi_MPI_Init=yes
4723 else
4724  ac_cv_lib_mpi_MPI_Init=no
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext \
4727    conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4731 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4732 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4733  MPILIBS="-lmpi"
4734 fi
4735
4736 fi
4737 if test x = x"$MPILIBS"; then
4738        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4739 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4740 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4741  $as_echo_n "(cached) " >&6
4742 else
4743  ac_check_lib_save_LIBS=$LIBS
4744 LIBS="-lmpich  $LIBS"
4745 cat > conftest.$ac_ext <<_ACEOF
4746      program main
4747      call MPI_Init
4748      end
4749 _ACEOF
4750 if ac_fn_fc_try_link "$LINENO"; then :
4751  ac_cv_lib_mpich_MPI_Init=yes
4752 else
4753  ac_cv_lib_mpich_MPI_Init=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext \
4756    conftest$ac_exeext conftest.$ac_ext
4757 LIBS=$ac_check_lib_save_LIBS
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4760 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4761 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4762  MPILIBS="-lmpich"
4763 fi
4764
4765 fi
4766
4767 if test x != x"$MPILIBS"; then
4768        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4769 $as_echo_n "checking for mpif.h... " >&6; }
4770        cat > conftest.$ac_ext <<_ACEOF
4771      program main
4772      include 'mpif.h'
4773      end
4774 _ACEOF
4775 if ac_fn_fc_try_compile "$LINENO"; then :
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4777 $as_echo "yes" >&6; }
4778 else
4779  MPILIBS=""
4780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 fi
4785
4786 FC="$ax_mpi_save_FC"
4787
4788
4789
4790 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4791 if test x = x"$MPILIBS"; then
4792        USE_MPI="no"
4793       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4794 $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4795        :
4796 else
4797        USE_MPI="yes"
4798        :
4799 fi
4800
4801
4802 fi
4803 if test $USE_MPI != no; then :
4804
4228          CXX=$MPICXX
4229          CC=$MPICC
4807        FC=$MPIFC
4230          LIBS="$MPILIBS $LIBS"
4231  
4232   else
4233  
4234          CXX=$save_CXX
4235          CC=$save_CC
4814        FC=$save_FC
4236          LIBS=$save_LIBS
4237  
4238  
# Line 4831 | Line 4252 | if test -z "$CPP"; then
4252    CPP=
4253   fi
4254   if test -z "$CPP"; then
4255 <  if test "${ac_cv_prog_CPP+set}" = set; then :
4255 >  if ${ac_cv_prog_CPP+:} false; then :
4256    $as_echo_n "(cached) " >&6
4257   else
4258        # Double quotes because CPP needs to be expanded
# Line 4861 | Line 4282 | fi
4282    # Broken: fails on valid input.
4283   continue
4284   fi
4285 < rm -f conftest.err conftest.$ac_ext
4285 > rm -f conftest.err conftest.i conftest.$ac_ext
4286  
4287    # OK, works on sane cases.  Now check whether nonexistent headers
4288    # can be detected and how.
# Line 4877 | Line 4298 | fi
4298   ac_preproc_ok=:
4299   break
4300   fi
4301 < rm -f conftest.err conftest.$ac_ext
4301 > rm -f conftest.err conftest.i conftest.$ac_ext
4302  
4303   done
4304   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 < rm -f conftest.err conftest.$ac_ext
4305 > rm -f conftest.i conftest.err conftest.$ac_ext
4306   if $ac_preproc_ok; then :
4307    break
4308   fi
# Line 4920 | Line 4341 | fi
4341    # Broken: fails on valid input.
4342   continue
4343   fi
4344 < rm -f conftest.err conftest.$ac_ext
4344 > rm -f conftest.err conftest.i conftest.$ac_ext
4345  
4346    # OK, works on sane cases.  Now check whether nonexistent headers
4347    # can be detected and how.
# Line 4936 | Line 4357 | fi
4357   ac_preproc_ok=:
4358   break
4359   fi
4360 < rm -f conftest.err conftest.$ac_ext
4360 > rm -f conftest.err conftest.i conftest.$ac_ext
4361  
4362   done
4363   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 < rm -f conftest.err conftest.$ac_ext
4364 > rm -f conftest.i conftest.err conftest.$ac_ext
4365   if $ac_preproc_ok; then :
4366  
4367   else
4368    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
4371 < See \`config.log' for more details." "$LINENO" 5; }
4370 > as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4371 > See \`config.log' for more details" "$LINENO" 5; }
4372   fi
4373  
4374 < ac_ext=${ac_fc_srcext-f}
4375 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4376 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4377 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4374 > ac_ext=c
4375 > ac_cpp='$CPP $CPPFLAGS'
4376 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379  
4380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4381   $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4382 < if test "${ac_cv_path_GREP+set}" = set; then :
4382 > if ${ac_cv_path_GREP+:} false; then :
4383    $as_echo_n "(cached) " >&6
4384   else
4385    if test -z "$GREP"; then
# Line 5006 | Line 4428 | IFS=$as_save_IFS
4428    done
4429   IFS=$as_save_IFS
4430    if test -z "$ac_cv_path_GREP"; then
4431 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 >    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432    fi
4433   else
4434    ac_cv_path_GREP=$GREP
# Line 5020 | Line 4442 | $as_echo_n "checking for egrep... " >&6; }
4442  
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4444   $as_echo_n "checking for egrep... " >&6; }
4445 < if test "${ac_cv_path_EGREP+set}" = set; then :
4445 > if ${ac_cv_path_EGREP+:} false; then :
4446    $as_echo_n "(cached) " >&6
4447   else
4448    if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
# Line 5072 | Line 4494 | IFS=$as_save_IFS
4494    done
4495   IFS=$as_save_IFS
4496    if test -z "$ac_cv_path_EGREP"; then
4497 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 >    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4498    fi
4499   else
4500    ac_cv_path_EGREP=$EGREP
# Line 5100 | Line 4522 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]
4522   $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4523   set x ${MAKE-make}
4524   ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4525 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4525 > if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4526    $as_echo_n "(cached) " >&6
4527   else
4528    cat >conftest.make <<\_ACEOF
# Line 5108 | Line 4530 | _ACEOF
4530   all:
4531          @echo '@@@%%%=$(MAKE)=@@@%%%'
4532   _ACEOF
4533 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4533 > # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4534   case `${MAKE-make} -f conftest.make 2>/dev/null` in
4535    *@@@%%%=?*=@@@%%%*)
4536      eval ac_cv_prog_make_${ac_make}_set=yes;;
# Line 5132 | Line 4554 | $as_echo_n "checking for $ac_word... " >&6; }
4554   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556   $as_echo_n "checking for $ac_word... " >&6; }
4557 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
4557 > if ${ac_cv_prog_RANLIB+:} false; then :
4558    $as_echo_n "(cached) " >&6
4559   else
4560    if test -n "$RANLIB"; then
# Line 5172 | Line 4594 | $as_echo_n "checking for $ac_word... " >&6; }
4594   set dummy ranlib; ac_word=$2
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596   $as_echo_n "checking for $ac_word... " >&6; }
4597 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4597 > if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4598    $as_echo_n "(cached) " >&6
4599   else
4600    if test -n "$ac_ct_RANLIB"; then
# Line 5224 | Line 4646 | $as_echo_n "checking for $ac_word... " >&6; }
4646   set dummy perl; ac_word=$2
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648   $as_echo_n "checking for $ac_word... " >&6; }
4649 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
4649 > if ${ac_cv_path_PERLINTERP+:} false; then :
4650    $as_echo_n "(cached) " >&6
4651   else
4652    case $PERLINTERP in
# Line 5274 | Line 4696 | $as_echo_n "checking whether explicit instead of detec
4696  
4697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
4698   $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
4699 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
4699 > if ${ax_cv_opt_perl_shebang+:} false; then :
4700    $as_echo_n "(cached) " >&6
4701   else
4702     case "$opt_perl_shebang" in
# Line 5300 | Line 4722 | $as_echo_n "checking for kernel sharpbang invocation t
4722     negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
4723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
4724   $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
4725 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
4725 > if ${ac_cv_sys_kernshrpbang_perl+:} false; then :
4726    $as_echo_n "(cached) " >&6
4727   else
4728    _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
# Line 5356 | Line 4778 | if test -z "$INSTALL"; then
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4779   $as_echo_n "checking for a BSD-compatible install... " >&6; }
4780   if test -z "$INSTALL"; then
4781 < if test "${ac_cv_path_install+set}" = set; then :
4781 > if ${ac_cv_path_install+:} false; then :
4782    $as_echo_n "(cached) " >&6
4783   else
4784    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 5441 | Line 4863 | $as_echo_n "checking for $ac_word... " >&6; }
4863   set dummy ar; ac_word=$2
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865   $as_echo_n "checking for $ac_word... " >&6; }
4866 < if test "${ac_cv_prog_AR+set}" = set; then :
4866 > if ${ac_cv_prog_AR+:} false; then :
4867    $as_echo_n "(cached) " >&6
4868   else
4869    if test -n "$AR"; then
# Line 5540 | Line 4962 | if diff "$cache_file" confcache >/dev/null 2>&1; then
4962       :end' >>confcache
4963   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4964    if test -w "$cache_file"; then
4965 <    test "x$cache_file" != "x/dev/null" &&
4965 >    if test "x$cache_file" != "x/dev/null"; then
4966        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4967   $as_echo "$as_me: updating cache $cache_file" >&6;}
4968 <    cat confcache >$cache_file
4968 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
4969 >        cat confcache >"$cache_file"
4970 >      else
4971 >        case $cache_file in #(
4972 >        */* | ?:*)
4973 >          mv -f confcache "$cache_file"$$ &&
4974 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
4975 >        *)
4976 >          mv -f confcache "$cache_file" ;;
4977 >        esac
4978 >      fi
4979 >    fi
4980    else
4981      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4982   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 5552 | Line 4985 | fi
4985   rm -f confcache
4986    exit 1
4987   fi
4988 < # Extract the first word of "ps", so it can be a program name with args.
4989 < set dummy ps; ac_word=$2
4990 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 < $as_echo_n "checking for $ac_word... " >&6; }
4992 < if test "${ac_cv_path_PS+set}" = set; then :
4988 >
4989 >
4990 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4991 > $as_echo_n "checking for ANSI C header files... " >&6; }
4992 > if ${ac_cv_header_stdc+:} false; then :
4993    $as_echo_n "(cached) " >&6
4994   else
4995 <  case $PS in
4996 <  [\\/]* | ?:[\\/]*)
4997 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
4998 <  ;;
4999 <  *)
5000 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 < for as_dir in $PATH
5569 < do
5570 <  IFS=$as_save_IFS
5571 <  test -z "$as_dir" && as_dir=.
5572 <    for ac_exec_ext in '' $ac_executable_extensions; do
5573 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5575 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 <    break 2
5577 <  fi
5578 < done
5579 <  done
5580 < IFS=$as_save_IFS
4995 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 > /* end confdefs.h.  */
4997 > #include <stdlib.h>
4998 > #include <stdarg.h>
4999 > #include <string.h>
5000 > #include <float.h>
5001  
5002 <  ;;
5003 < esac
5004 < fi
5005 < PS=$ac_cv_path_PS
5006 < if test -n "$PS"; then
5007 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5008 < $as_echo "$PS" >&6; }
5002 > int
5003 > main ()
5004 > {
5005 >
5006 >  ;
5007 >  return 0;
5008 > }
5009 > _ACEOF
5010 > if ac_fn_c_try_compile "$LINENO"; then :
5011 >  ac_cv_header_stdc=yes
5012   else
5013 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 < $as_echo "no" >&6; }
5013 >  ac_cv_header_stdc=no
5014   fi
5015 + rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016  
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5596 $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5597 if test "${ac_cv_prog_ps_syntax+set}" = set; then :
5598  $as_echo_n "(cached) " >&6
5599 else
5600
5601        if $PS ax -o rss > /dev/null 2>&1; then
5602                ac_cv_prog_ps_ax=yes
5603        else
5604                ac_cv_prog_ps_ax=no
5605        fi
5606        if $PS -ef -o rss > /dev/null 2>&1; then
5607                ac_cv_prog_ps_ef=yes
5608        else
5609                ac_cv_prog_ps_ef=no
5610        fi
5611        if test "$ac_cv_prog_ps_ax" = yes; then
5612                ac_cv_prog_ps_syntax=BSD
5613        else
5614                if test "$ac_cv_prog_ps_ef" = yes; then
5615                        ac_cv_prog_ps_syntax=POSIX
5616                else
5617                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
5618                fi
5619        fi
5620
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
5623 $as_echo "$ac_cv_prog_ps_syntax" >&6; }
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define PSCOMMAND $PS
5627 _ACEOF
5628
5629 if test "$ac_cv_prog_ps_syntax" = BSD; then
5630
5631 $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
5632
5633 else
5634   if test "$ac_cv_prog_ps_syntax" = POSIX; then
5635
5636 $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5637
5638   else
5639       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5640   fi
5641 fi
5642
5643 ac_ext=${ac_fc_srcext-f}
5644 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5645 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5647
5648 ac_ext=${ac_fc_srcext-f}
5649 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5650 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5653 $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5654 if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5655  $as_echo_n "(cached) " >&6
5656 else
5657  ac_ext=F90
5658 ac_fcflags_srcext_save=$ac_fcflags_srcext
5659 ac_fcflags_srcext=
5660 ac_cv_fc_srcext_F90=unknown
5661 for ac_flag in none -qsuffix=f=F90 -Tf; do
5662  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
5663  cat > conftest.$ac_ext <<_ACEOF
5664      program main
5665
5666      end
5667 _ACEOF
5668 if ac_fn_fc_try_compile "$LINENO"; then :
5669  ac_cv_fc_srcext_F90=$ac_flag; break
5670 fi
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 done
5673 rm -f conftest.$ac_objext conftest.F90
5674 ac_fcflags_srcext=$ac_fcflags_srcext_save
5675
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5678 $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5679 if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5680  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5681 else
5682  ac_fc_srcext=F90
5683  if test "x$ac_cv_fc_srcext_F90" = xnone; then
5684    ac_fcflags_srcext=""
5685    FCFLAGS_F90=""
5686  else
5687    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
5688    FCFLAGS_F90=$ac_cv_fc_srcext_F90
5689  fi
5690
5691
5692 fi
5693 ac_ext=${ac_fc_srcext-f}
5694 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5695 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5697
5698
5699
5700
5701
5702 # Try to determine native compiler flags that allow us to use F90 suffix
5703 # for preprocessed f90 source.
5704
5705 if test "$ac_test_PREPFLAG" != "set"; then
5706  PREPFLAG=""
5707  case "${host_cpu}-${host_os}" in
5708
5709  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5710                    PREPFLAG="-fpp1 "
5711                fi;;
5712  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5713                    PREPFLAG="-qsuffix=cpp=F90 "
5714                fi;;
5715  *darwin*)
5716        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5717                PREPFLAG="-qsuffix=cpp=F90 "
5718        fi;;
5719  esac
5720
5721  if test -z "$PREPFLAG"; then
5722        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
5723 $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5724        PREPFLAG=""
5725  fi
5726
5727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
5728 $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
5729
5730  ac_ext=${ac_fc_srcext-f}
5731 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5732 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5733 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5734
5735  ac_save_ext=$ac_ext
5736  ac_ext=F90
5737  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
5738
5739  if test "$PREPFLAG"; then :
5740  FCFLAGS_SRCEXT="${PREPFLAG}"
5741 fi
5742    cat > conftest.$ac_ext <<_ACEOF
5743
5744
5745 program conftest
5746  integer :: i
5747  i = 1
5748 end program conftest
5749
5750 _ACEOF
5751 if ac_fn_fc_try_compile "$LINENO"; then :
5752  prepflagworks=1
5753 else
5754  prepflagworks=0
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757
5758  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5759  ac_ext=$ac_save_ext
5760  ac_ext=${ac_fc_srcext-f}
5761 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5762 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5764
5765
5766  if test "$prepflagworks" = 1; then
5767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5768 $as_echo "yes" >&6; }
5769    FCFLAGS_SRCEXT="${PREPFLAG}"
5770
5771  else
5772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5775  fi
5776 fi
5777
5778
5779
5780
5781
5782 # Try to determine native compiler flags that allow us to use F90 suffix
5783 # for preprocessed f90 source with -D type defines
5784
5785 if test "$ac_test_PREPDEFFLAG" != "set"; then
5786  PREPDEFFLAG=""
5787  case "${host_cpu}-${host_os}" in
5788
5789  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5790                    PREPDEFFLAG=" "
5791                fi;;
5792  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5793                    PREPDEFFLAG="-WF,"
5794                fi;;
5795  *darwin*)
5796        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5797                PREPDEFFLAG="-WF,"
5798        fi;;
5799  esac
5800
5801  if test -z "$PREPDEFFLAG"; then
5802        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
5803 $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
5804        PREPDEFFLAG=" "
5805  fi
5806
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
5808 $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
5809
5810  ac_ext=${ac_fc_srcext-f}
5811 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5812 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5814
5815  ac_save_ext=$ac_ext
5816  ac_ext=F90
5817  ac_save_FCFLAGS=$FCFLAGS
5818
5819  if test "$PREPDEFFLAG"; then :
5820  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
5821 fi
5822    cat > conftest.$ac_ext <<_ACEOF
5823
5824
5825 program conftest
5826  integer :: i
5827 #ifdef TEST
5828  i = 1
5829 #else
5830  choke me
5831 #endif
5832 end program conftest
5833
5834 _ACEOF
5835 if ac_fn_fc_try_compile "$LINENO"; then :
5836  prepdefflagworks=1
5837 else
5838  prepdefflagworks=0
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841
5842  FCFLAGS=$ac_save_FCFLAGS
5843  ac_ext=$ac_save_ext
5844  ac_ext=${ac_fc_srcext-f}
5845 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5846 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5848
5849
5850  if test "$prepdefflagworks" = 1; then
5851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852 $as_echo "yes" >&6; }
5853
5854  else
5855    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
5858  fi
5859 fi
5860
5861 ac_ext=${ac_fc_srcext-f}
5862 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5863 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5866 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5867 if test "${ac_cv_prog_fc_v+set}" = set; then :
5868  $as_echo_n "(cached) " >&6
5869 else
5870  cat > conftest.$ac_ext <<_ACEOF
5871      program main
5872
5873      end
5874 _ACEOF
5875 if ac_fn_fc_try_compile "$LINENO"; then :
5876  ac_cv_prog_fc_v=
5877 # Try some options frequently used verbose output
5878 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5879  cat > conftest.$ac_ext <<_ACEOF
5880      program main
5881
5882      end
5883 _ACEOF
5884
5885 # Compile and link our simple test program by passing a flag (argument
5886 # 1 to this macro) to the Fortran compiler in order to get
5887 # "verbose" output that we can then parse for the Fortran linker
5888 # flags.
5889 ac_save_FCFLAGS=$FCFLAGS
5890 FCFLAGS="$FCFLAGS $ac_verb"
5891 eval "set x $ac_link"
5892 shift
5893 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5894 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5895 # LIBRARY_PATH; skip all such settings.
5896 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5897  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5898 $as_echo "$ac_fc_v_output" >&5
5899 FCFLAGS=$ac_save_FCFLAGS
5900
5901 rm -rf conftest*
5902
5903 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5904 # /foo, /bar, and /baz are search directories for the Fortran linker.
5905 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5906 ac_fc_v_output="`echo $ac_fc_v_output |
5907        grep 'LPATH is:' |
5908        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5909
5910 # FIXME: we keep getting bitten by quoted arguments; a more general fix
5911 #        that detects unbalanced quotes in FLIBS should be implemented
5912 #        and (ugh) tested at some point.
5913 case $ac_fc_v_output in
5914  # If we are using xlf then replace all the commas with spaces.
5915  *xlfentry*)
5916    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5917
5918  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5919  # $LIBS confuse us, and the libraries appear later in the output anyway).
5920  *mGLOB_options_string*)
5921    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5922
5923  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5924  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5925  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5926  *-cmdline\ * | *-ignore\ * | *-def\ *)
5927    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5928        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5929        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5930        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5931
5932  # If we are using Cray Fortran then delete quotes.
5933  *cft90*)
5934    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5935 esac
5936
5937
5938  # look for -l* and *.a constructs in the output
5939  for ac_arg in $ac_fc_v_output; do
5940     case $ac_arg in
5941        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5942          ac_cv_prog_fc_v=$ac_verb
5943          break 2 ;;
5944     esac
5945  done
5946 done
5947 if test -z "$ac_cv_prog_fc_v"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
5949 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5950 fi
5951 else
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
5953 $as_echo "$as_me: WARNING: compilation failed" >&2;}
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
5959 $as_echo "$ac_cv_prog_fc_v" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5961 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5962 if test "${ac_cv_fc_libs+set}" = set; then :
5963  $as_echo_n "(cached) " >&6
5964 else
5965  if test "x$FCLIBS" != "x"; then
5966  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
5967 else
5968
5969 cat > conftest.$ac_ext <<_ACEOF
5970      program main
5971
5972      end
5973 _ACEOF
5974
5975 # Compile and link our simple test program by passing a flag (argument
5976 # 1 to this macro) to the Fortran compiler in order to get
5977 # "verbose" output that we can then parse for the Fortran linker
5978 # flags.
5979 ac_save_FCFLAGS=$FCFLAGS
5980 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5981 eval "set x $ac_link"
5982 shift
5983 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5984 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5985 # LIBRARY_PATH; skip all such settings.
5986 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5987  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5988 $as_echo "$ac_fc_v_output" >&5
5989 FCFLAGS=$ac_save_FCFLAGS
5990
5991 rm -rf conftest*
5992
5993 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5994 # /foo, /bar, and /baz are search directories for the Fortran linker.
5995 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5996 ac_fc_v_output="`echo $ac_fc_v_output |
5997        grep 'LPATH is:' |
5998        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5999
6000 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6001 #        that detects unbalanced quotes in FLIBS should be implemented
6002 #        and (ugh) tested at some point.
6003 case $ac_fc_v_output in
6004  # If we are using xlf then replace all the commas with spaces.
6005  *xlfentry*)
6006    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6007
6008  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6009  # $LIBS confuse us, and the libraries appear later in the output anyway).
6010  *mGLOB_options_string*)
6011    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6012
6013  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6014  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6015  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6016  *-cmdline\ * | *-ignore\ * | *-def\ *)
6017    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6018        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6019        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6020        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6021
6022  # If we are using Cray Fortran then delete quotes.
6023  *cft90*)
6024    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6025 esac
6026
6027
6028
6029 ac_cv_fc_libs=
6030
6031 # Save positional arguments (if any)
6032 ac_save_positional="$@"
6033
6034 set X $ac_fc_v_output
6035 while test $# != 1; do
6036  shift
6037  ac_arg=$1
6038  case $ac_arg in
6039        [\\/]*.a | ?:[\\/]*.a)
6040            ac_exists=false
6041  for ac_i in $ac_cv_fc_libs; do
6042    if test x"$ac_arg" = x"$ac_i"; then
6043      ac_exists=true
6044      break
6045    fi
6046  done
6047
6048  if test x"$ac_exists" = xtrue; then :
6049
6050 else
6051  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6052 fi
6053          ;;
6054        -bI:*)
6055            ac_exists=false
6056  for ac_i in $ac_cv_fc_libs; do
6057    if test x"$ac_arg" = x"$ac_i"; then
6058      ac_exists=true
6059      break
6060    fi
6061  done
6062
6063  if test x"$ac_exists" = xtrue; then :
6064
6065 else
6066  if test "$ac_compiler_gnu" = yes; then
6067  for ac_link_opt in $ac_arg; do
6068    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6069  done
6070 else
6071  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6072 fi
6073 fi
6074          ;;
6075          # Ignore these flags.
6076        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6077          |-LANG:=* | -LIST:* | -LNO:*)
6078          ;;
6079        -lkernel32)
6080          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6081          ;;
6082        -[LRuYz])
6083          # These flags, when seen by themselves, take an argument.
6084          # We remove the space between option and argument and re-iterate
6085          # unless we find an empty arg or a new option (starting with -)
6086          case $2 in
6087             "" | -*);;
6088             *)
6089                ac_arg="$ac_arg$2"
6090                shift; shift
6091                set X $ac_arg "$@"
6092                ;;
6093          esac
6094          ;;
6095        -YP,*)
6096          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6097              ac_exists=false
6098  for ac_i in $ac_cv_fc_libs; do
6099    if test x"$ac_j" = x"$ac_i"; then
6100      ac_exists=true
6101      break
6102    fi
6103  done
6104
6105  if test x"$ac_exists" = xtrue; then :
6106
6107 else
6108  ac_arg="$ac_arg $ac_j"
6109                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6110 fi
6111          done
6112          ;;
6113        -[lLR]*)
6114            ac_exists=false
6115  for ac_i in $ac_cv_fc_libs; do
6116    if test x"$ac_arg" = x"$ac_i"; then
6117      ac_exists=true
6118      break
6119    fi
6120  done
6121
6122  if test x"$ac_exists" = xtrue; then :
6123
6124 else
6125  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6126 fi
6127          ;;
6128        -zallextract*| -zdefaultextract)
6129          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6130          ;;
6131          # Ignore everything else.
6132  esac
6133 done
6134 # restore positional arguments
6135 set X $ac_save_positional; shift
6136
6137 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6138 # then we insist that the "run path" must be an absolute path (i.e. it
6139 # must begin with a "/").
6140 case `(uname -sr) 2>/dev/null` in
6141   "SunOS 5"*)
6142      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6143                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6144      test "x$ac_ld_run_path" != x &&
6145        if test "$ac_compiler_gnu" = yes; then
6146  for ac_link_opt in $ac_ld_run_path; do
6147    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6148  done
6149 else
6150  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6151 fi
6152      ;;
6153 esac
6154 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6158 $as_echo "$ac_cv_fc_libs" >&6; }
6159 FCLIBS="$ac_cv_fc_libs"
6160
6161
6162 ac_ext=${ac_fc_srcext-f}
6163 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6164 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6165 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6166
6167 ac_ext=${ac_fc_srcext-f}
6168 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6169 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6171
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6173 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6174 if test "${ac_cv_fc_dummy_main+set}" = set; then :
6175  $as_echo_n "(cached) " >&6
6176 else
6177  ac_fc_dm_save_LIBS=$LIBS
6178 LIBS="$LIBS $FCLIBS"
6179 ac_fortran_dm_var=FC_DUMMY_MAIN
6180 ac_ext=c
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185
6186 # First, try linking without a dummy main:
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189
6190 #ifdef FC_DUMMY_MAIN
6191 #ifndef FC_DUMMY_MAIN_EQ_F77
6192 #  ifdef __cplusplus
6193     extern "C"
6194 #  endif
6195   int FC_DUMMY_MAIN() { return 1; }
6196 #endif
6197 #endif
6198 int
6199 main ()
6200 {
6201
6202  ;
6203  return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_link "$LINENO"; then :
6207  ac_cv_fortran_dummy_main=none
6208 else
6209  ac_cv_fortran_dummy_main=unknown
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext \
6212    conftest$ac_exeext conftest.$ac_ext
6213
6214 if test $ac_cv_fortran_dummy_main = unknown; then
6215   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
6216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h.  */
6218 #define $ac_fortran_dm_var $ac_func
6219 #ifdef FC_DUMMY_MAIN
6220 #ifndef FC_DUMMY_MAIN_EQ_F77
6221 #  ifdef __cplusplus
6222     extern "C"
6223 #  endif
6224   int FC_DUMMY_MAIN() { return 1; }
6225 #endif
6226 #endif
6227 int
6228 main ()
6229 {
6230
6231  ;
6232  return 0;
6233 }
6234 _ACEOF
6235 if ac_fn_c_try_link "$LINENO"; then :
6236  ac_cv_fortran_dummy_main=$ac_func; break
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext \
6239    conftest$ac_exeext conftest.$ac_ext
6240   done
6241 fi
6242 ac_ext=${ac_fc_srcext-f}
6243 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6244 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6246 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
6247 rm -rf conftest*
6248 LIBS=$ac_fc_dm_save_LIBS
6249
6250 fi
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
6252 $as_echo "$ac_cv_fc_dummy_main" >&6; }
6253 FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
6254 if test "$FC_DUMMY_MAIN" != unknown; then :
6255  if test $FC_DUMMY_MAIN != none; then
6256
6257 cat >>confdefs.h <<_ACEOF
6258 #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
6259 _ACEOF
6260
6261  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
6262
6263 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
6264
6265  fi
6266 fi
6267 else
6268  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6270 as_fn_error "linking to Fortran libraries from C fails
6271 See \`config.log' for more details." "$LINENO" 5; }
6272 fi
6273
6274 ac_ext=${ac_fc_srcext-f}
6275 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6276 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6278
6279 ac_ext=${ac_fc_srcext-f}
6280 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6281 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6284 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6285 if test "${ac_cv_fc_mangling+set}" = set; then :
6286  $as_echo_n "(cached) " >&6
6287 else
6288  cat > conftest.$ac_ext <<_ACEOF
6289      subroutine foobar()
6290      return
6291      end
6292      subroutine foo_bar()
6293      return
6294      end
6295 _ACEOF
6296 if ac_fn_fc_try_compile "$LINENO"; then :
6297  mv conftest.$ac_objext cfortran_test.$ac_objext
6298
6299  ac_save_LIBS=$LIBS
6300  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
6301
6302  ac_ext=c
6303 ac_cpp='$CPP $CPPFLAGS'
6304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307  ac_success=no
6308  for ac_foobar in foobar FOOBAR; do
6309    for ac_underscore in "" "_"; do
6310      ac_func="$ac_foobar$ac_underscore"
6311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h.  */
6313
6314 /* Override any GCC internal prototype to avoid an error.
6315   Use char because int might match the return type of a GCC
6316   builtin and then its argument prototype would still apply.  */
6317 #ifdef __cplusplus
6318 extern "C"
6319 #endif
6320 char $ac_func ();
6321 #ifdef FC_DUMMY_MAIN
6322 #ifndef FC_DUMMY_MAIN_EQ_F77
6323 #  ifdef __cplusplus
6324     extern "C"
6325 #  endif
6326   int FC_DUMMY_MAIN() { return 1; }
6327 #endif
6328 #endif
6329 int
6330 main ()
6331 {
6332 return $ac_func ();
6333  ;
6334  return 0;
6335 }
6336 _ACEOF
6337 if ac_fn_c_try_link "$LINENO"; then :
6338  ac_success=yes; break 2
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext \
6341    conftest$ac_exeext conftest.$ac_ext
6342    done
6343  done
6344  ac_ext=${ac_fc_srcext-f}
6345 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6346 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6348
6349  if test "$ac_success" = "yes"; then
6350     case $ac_foobar in
6351        foobar)
6352           ac_case=lower
6353           ac_foo_bar=foo_bar
6354           ;;
6355        FOOBAR)
6356           ac_case=upper
6357           ac_foo_bar=FOO_BAR
6358           ;;
6359     esac
6360
6361     ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366     ac_success_extra=no
6367     for ac_extra in "" "_"; do
6368        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
6369        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h.  */
6371
6372 /* Override any GCC internal prototype to avoid an error.
6373   Use char because int might match the return type of a GCC
6374   builtin and then its argument prototype would still apply.  */
6375 #ifdef __cplusplus
6376 extern "C"
6377 #endif
6378 char $ac_func ();
6379 #ifdef FC_DUMMY_MAIN
6380 #ifndef FC_DUMMY_MAIN_EQ_F77
6381 #  ifdef __cplusplus
6382     extern "C"
6383 #  endif
6384   int FC_DUMMY_MAIN() { return 1; }
6385 #endif
6386 #endif
6387 int
6388 main ()
6389 {
6390 return $ac_func ();
6391  ;
6392  return 0;
6393 }
6394 _ACEOF
6395 if ac_fn_c_try_link "$LINENO"; then :
6396  ac_success_extra=yes; break
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext \
6399    conftest$ac_exeext conftest.$ac_ext
6400     done
6401     ac_ext=${ac_fc_srcext-f}
6402 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6403 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6405
6406     if test "$ac_success_extra" = "yes"; then
6407        ac_cv_fc_mangling="$ac_case case"
6408        if test -z "$ac_underscore"; then
6409           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6410        else
6411           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6412        fi
6413        if test -z "$ac_extra"; then
6414           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6415        else
6416           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6417        fi
6418      else
6419        ac_cv_fc_mangling="unknown"
6420      fi
6421  else
6422     ac_cv_fc_mangling="unknown"
6423  fi
6424
6425  LIBS=$ac_save_LIBS
6426  rm -rf conftest*
6427  rm -f cfortran_test*
6428 else
6429  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6431 as_fn_error "cannot compile a simple Fortran program
6432 See \`config.log' for more details." "$LINENO" 5; }
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
6438 $as_echo "$ac_cv_fc_mangling" >&6; }
6439
6440 ac_ext=${ac_fc_srcext-f}
6441 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6442 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6444
6445 ac_ext=${ac_fc_srcext-f}
6446 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6447 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6448 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6449 case $ac_cv_fc_mangling in
6450  "lower case, no underscore, no extra underscore")
6451          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6452
6453          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
6454 ;;
6455  "lower case, no underscore, extra underscore")
6456          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6457
6458          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6459 ;;
6460  "lower case, underscore, no extra underscore")
6461          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6462
6463          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6464 ;;
6465  "lower case, underscore, extra underscore")
6466          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6467
6468          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
6469 ;;
6470  "upper case, no underscore, no extra underscore")
6471          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6472
6473          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
6474 ;;
6475  "upper case, no underscore, extra underscore")
6476          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6477
6478          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6479 ;;
6480  "upper case, underscore, no extra underscore")
6481          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6482
6483          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6484 ;;
6485  "upper case, underscore, extra underscore")
6486          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6487
6488          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
6489 ;;
6490  *)
6491          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
6492 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6493          ;;
6494 esac
6495
6496 ac_ext=${ac_fc_srcext-f}
6497 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6498 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6500
6501
6502
6503 ac_ext=${ac_fc_srcext-f}
6504 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6505 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6508 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6509 if test "${ac_cv_prog_fc_v+set}" = set; then :
6510  $as_echo_n "(cached) " >&6
6511 else
6512  cat > conftest.$ac_ext <<_ACEOF
6513      program main
6514
6515      end
6516 _ACEOF
6517 if ac_fn_fc_try_compile "$LINENO"; then :
6518  ac_cv_prog_fc_v=
6519 # Try some options frequently used verbose output
6520 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
6521  cat > conftest.$ac_ext <<_ACEOF
6522      program main
6523
6524      end
6525 _ACEOF
6526
6527 # Compile and link our simple test program by passing a flag (argument
6528 # 1 to this macro) to the Fortran compiler in order to get
6529 # "verbose" output that we can then parse for the Fortran linker
6530 # flags.
6531 ac_save_FCFLAGS=$FCFLAGS
6532 FCFLAGS="$FCFLAGS $ac_verb"
6533 eval "set x $ac_link"
6534 shift
6535 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6536 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6537 # LIBRARY_PATH; skip all such settings.
6538 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6539  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6540 $as_echo "$ac_fc_v_output" >&5
6541 FCFLAGS=$ac_save_FCFLAGS
6542
6543 rm -rf conftest*
6544
6545 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6546 # /foo, /bar, and /baz are search directories for the Fortran linker.
6547 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6548 ac_fc_v_output="`echo $ac_fc_v_output |
6549        grep 'LPATH is:' |
6550        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6551
6552 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6553 #        that detects unbalanced quotes in FLIBS should be implemented
6554 #        and (ugh) tested at some point.
6555 case $ac_fc_v_output in
6556  # If we are using xlf then replace all the commas with spaces.
6557  *xlfentry*)
6558    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6559
6560  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6561  # $LIBS confuse us, and the libraries appear later in the output anyway).
6562  *mGLOB_options_string*)
6563    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6564
6565  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6566  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6567  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6568  *-cmdline\ * | *-ignore\ * | *-def\ *)
6569    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6570        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6571        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6572        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6573
6574  # If we are using Cray Fortran then delete quotes.
6575  *cft90*)
6576    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6577 esac
6578
6579
6580  # look for -l* and *.a constructs in the output
6581  for ac_arg in $ac_fc_v_output; do
6582     case $ac_arg in
6583        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6584          ac_cv_prog_fc_v=$ac_verb
6585          break 2 ;;
6586     esac
6587  done
6588 done
6589 if test -z "$ac_cv_prog_fc_v"; then
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
6591 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6592 fi
6593 else
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
6595 $as_echo "$as_me: WARNING: compilation failed" >&2;}
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598
6599 fi
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
6601 $as_echo "$ac_cv_prog_fc_v" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6603 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6604 if test "${ac_cv_fc_libs+set}" = set; then :
6605  $as_echo_n "(cached) " >&6
6606 else
6607  if test "x$FCLIBS" != "x"; then
6608  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
6609 else
6610
6611 cat > conftest.$ac_ext <<_ACEOF
6612      program main
6613
6614      end
6615 _ACEOF
6616
6617 # Compile and link our simple test program by passing a flag (argument
6618 # 1 to this macro) to the Fortran compiler in order to get
6619 # "verbose" output that we can then parse for the Fortran linker
6620 # flags.
6621 ac_save_FCFLAGS=$FCFLAGS
6622 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6623 eval "set x $ac_link"
6624 shift
6625 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6626 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6627 # LIBRARY_PATH; skip all such settings.
6628 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6629  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6630 $as_echo "$ac_fc_v_output" >&5
6631 FCFLAGS=$ac_save_FCFLAGS
6632
6633 rm -rf conftest*
6634
6635 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6636 # /foo, /bar, and /baz are search directories for the Fortran linker.
6637 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6638 ac_fc_v_output="`echo $ac_fc_v_output |
6639        grep 'LPATH is:' |
6640        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6641
6642 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6643 #        that detects unbalanced quotes in FLIBS should be implemented
6644 #        and (ugh) tested at some point.
6645 case $ac_fc_v_output in
6646  # If we are using xlf then replace all the commas with spaces.
6647  *xlfentry*)
6648    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6649
6650  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6651  # $LIBS confuse us, and the libraries appear later in the output anyway).
6652  *mGLOB_options_string*)
6653    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6654
6655  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6656  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6657  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6658  *-cmdline\ * | *-ignore\ * | *-def\ *)
6659    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6660        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6661        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6662        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6663
6664  # If we are using Cray Fortran then delete quotes.
6665  *cft90*)
6666    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6667 esac
6668
6669
6670
6671 ac_cv_fc_libs=
6672
6673 # Save positional arguments (if any)
6674 ac_save_positional="$@"
6675
6676 set X $ac_fc_v_output
6677 while test $# != 1; do
6678  shift
6679  ac_arg=$1
6680  case $ac_arg in
6681        [\\/]*.a | ?:[\\/]*.a)
6682            ac_exists=false
6683  for ac_i in $ac_cv_fc_libs; do
6684    if test x"$ac_arg" = x"$ac_i"; then
6685      ac_exists=true
6686      break
6687    fi
6688  done
6689
6690  if test x"$ac_exists" = xtrue; then :
6691
6692 else
6693  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6694 fi
6695          ;;
6696        -bI:*)
6697            ac_exists=false
6698  for ac_i in $ac_cv_fc_libs; do
6699    if test x"$ac_arg" = x"$ac_i"; then
6700      ac_exists=true
6701      break
6702    fi
6703  done
6704
6705  if test x"$ac_exists" = xtrue; then :
6706
6707 else
6708  if test "$ac_compiler_gnu" = yes; then
6709  for ac_link_opt in $ac_arg; do
6710    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6711  done
6712 else
6713  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6714 fi
6715 fi
6716          ;;
6717          # Ignore these flags.
6718        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6719          |-LANG:=* | -LIST:* | -LNO:*)
6720          ;;
6721        -lkernel32)
6722          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6723          ;;
6724        -[LRuYz])
6725          # These flags, when seen by themselves, take an argument.
6726          # We remove the space between option and argument and re-iterate
6727          # unless we find an empty arg or a new option (starting with -)
6728          case $2 in
6729             "" | -*);;
6730             *)
6731                ac_arg="$ac_arg$2"
6732                shift; shift
6733                set X $ac_arg "$@"
6734                ;;
6735          esac
6736          ;;
6737        -YP,*)
6738          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6739              ac_exists=false
6740  for ac_i in $ac_cv_fc_libs; do
6741    if test x"$ac_j" = x"$ac_i"; then
6742      ac_exists=true
6743      break
6744    fi
6745  done
6746
6747  if test x"$ac_exists" = xtrue; then :
6748
6749 else
6750  ac_arg="$ac_arg $ac_j"
6751                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6752 fi
6753          done
6754          ;;
6755        -[lLR]*)
6756            ac_exists=false
6757  for ac_i in $ac_cv_fc_libs; do
6758    if test x"$ac_arg" = x"$ac_i"; then
6759      ac_exists=true
6760      break
6761    fi
6762  done
6763
6764  if test x"$ac_exists" = xtrue; then :
6765
6766 else
6767  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6768 fi
6769          ;;
6770        -zallextract*| -zdefaultextract)
6771          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6772          ;;
6773          # Ignore everything else.
6774  esac
6775 done
6776 # restore positional arguments
6777 set X $ac_save_positional; shift
6778
6779 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6780 # then we insist that the "run path" must be an absolute path (i.e. it
6781 # must begin with a "/").
6782 case `(uname -sr) 2>/dev/null` in
6783   "SunOS 5"*)
6784      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6785                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6786      test "x$ac_ld_run_path" != x &&
6787        if test "$ac_compiler_gnu" = yes; then
6788  for ac_link_opt in $ac_ld_run_path; do
6789    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6790  done
6791 else
6792  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6793 fi
6794      ;;
6795 esac
6796 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6797
6798 fi
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6800 $as_echo "$ac_cv_fc_libs" >&6; }
6801 FCLIBS="$ac_cv_fc_libs"
6802
6803
6804 ac_ext=${ac_fc_srcext-f}
6805 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6806 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6808
6809
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
6812 $as_echo_n "checking for module suffix... " >&6; }
6813 rm -f conftest*
6814 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6815 rm -f work*
6816 cat >conftest.$ac_ext <<EOF
6817        module conftest
6818        integer n
6819        parameter (n=1)
6820        end module conftest
6821 EOF
6822 # SGI and absoft compilers generates module name in upper case!
6823 testname="conftest"
6824 modcase="lower"
6825 if (eval $ac_compile) 2>/dev/null ; then
6826    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
6827    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
6828    if test -z "$MOD" ; then
6829        MOD=`ls CONFTEST* 2>/dev/null \
6830                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
6831        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
6832        if test -n "$MOD" ; then
6833            testname="CONFTEST"
6834            modcase="upper"
6835        fi
6836    fi
6837    if test -z "$MOD" ; then
6838        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6839 $as_echo "unknown" >&6; }
6840        # Use mod if we can't figure it out
6841        MOD="mod"
6842    else
6843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
6844 $as_echo "$MOD" >&6; }
6845    fi
6846    if test -s work.pcl ; then
6847        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
6848 $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
6849    fi
6850 else
6851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6852 $as_echo "unknown" >&6; }
6853 fi
6854
6855
6856
6857
6858
6859 # Check for module include path (some use -I, some (Solaris) use -M, some
6860 # (absoft) use -p).
6861 # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
6862 # specified, work.pcl and work.pc are created.  However, if you specify
6863 # a file, it must contain a the name of a file ending in .pc .  Ugh!
6864 # Use the module made above
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
6866 $as_echo_n "checking for module directory path flag... " >&6; }
6867 rm -f conftest*
6868 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6869 rm -f work*
6870 cat >conftest.$ac_ext <<EOF
6871        module conftest
6872        integer n
6873        parameter (n=1)
6874        end module conftest
6875 EOF
6876 # SGI and absoft compilers generates module name in upper case!
6877 testname="conftest"
6878 if (eval $ac_compile) 2>/dev/null ; then
6879   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
6880   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
6881   if test -n "$mod" ; then
6882      testname="CONFTEST"
6883   fi
6884   madedir=0
6885   if test ! -d conf ; then mkdir conf ; madedir=1; fi
6886   cp $testname.$MOD conf
6887   rm -f conftest* CONFTEST*
6888   cat >conftest1.$ac_ext <<EOF
6889        program main
6890        use conftest
6891        print *, n
6892        end
6893 EOF
6894   F90_WORK_FILES_ARG=""
6895   F90MODINCSPEC=""
6896   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
6897       MODDIRFLAG="-I"
6898       F90MODINCSPEC="-I<dir>"
6899       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
6900 $as_echo "-I" >&6; }
6901   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6902       MODDIRFLAG="-M"
6903       F90MODINCSPEC="-M<dir>"
6904       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
6905 $as_echo "-M" >&6; }
6906   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6907       MODDIRFLAG="-p"
6908       F90MODINCSPEC="-p<dir>"
6909       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
6910 $as_echo "-p" >&6; }
6911   elif test -s work.pc ; then
6912        cp work.pc conf/mpimod.pc
6913        echo "mpimod.pc" > conf/mpimod.pcl
6914        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
6915        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
6916            MODDIRFLAG='-cl,mpimod.pcl'
6917            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
6918 $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
6919            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
6920            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
6921
6922        else
6923            # The version of the Intel compiler that I have refuses to let
6924            # you put the "work catalog" list anywhere but the current
6925            # directory. For example, you cannot in
6926         :
6927        fi
6928   fi
6929   if test -z "MODDIRFLAG" ; then
6930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6931 $as_echo "unknown" >&6; }
6932   fi
6933
6934
6935   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
6936   if test $madedir = 1 ; then rmdir conf ; fi
6937 fi
6938
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6941 $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6942 if test "${ac_cv_f90_module_names+set}" = set; then :
6943  $as_echo_n "(cached) " >&6
6944 else
6945  ac_ext=${ac_fc_srcext-f}
6946 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6947 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6949
6950 # carry out the test in a new directory, so that we don't miss anything
6951 mkdir conftest
6952 cd conftest
6953 cat > conftest.$ac_ext <<_ACEOF
6954 MODULE Bar
6955 END MODULE Bar
6956 _ACEOF
6957 if ac_fn_fc_try_compile "$LINENO"; then :
6958  ac_cv_f90_module_names=
6959 ac_file_list=*
6960 for ac_file in $ac_file_list; do
6961   case $ac_file in
6962      # don't care for original source and object files
6963      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
6964          :
6965          ;;
6966      # look for new files derived from the file name
6967      *conftest*)
6968          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
6969            ac_exists=false
6970  for ac_i in $ac_cv_f90_module_names; do
6971    if test x"$ac_pat" = x"$ac_i"; then
6972      ac_exists=true
6973      break
6974    fi
6975  done
6976
6977  if test x"$ac_exists" = xtrue; then :
6978
6979 else
6980  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6981 fi
6982          ;;
6983      # look for new files derived from the module name,
6984      # with different case translation schemes
6985      *Bar*)
6986          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
6987            ac_exists=false
6988  for ac_i in $ac_cv_f90_module_names; do
6989    if test x"$ac_pat" = x"$ac_i"; then
6990      ac_exists=true
6991      break
6992    fi
6993  done
6994
6995  if test x"$ac_exists" = xtrue; then :
6996
6997 else
6998  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6999 fi
7000          ;;
7001      *bar*)
7002          ac_pat=`echo $ac_file | sed s/bar/%module%/`
7003            ac_exists=false
7004  for ac_i in $ac_cv_f90_module_names; do
7005    if test x"$ac_pat" = x"$ac_i"; then
7006      ac_exists=true
7007      break
7008    fi
7009  done
7010
7011  if test x"$ac_exists" = xtrue; then :
7012
7013 else
7014  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
7015 fi
7016          ;;
7017      *BAR*)
7018          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
7019            ac_exists=false
7020  for ac_i in $ac_cv_f90_module_names; do
7021    if test x"$ac_pat" = x"$ac_i"; then
7022      ac_exists=true
7023      break
7024    fi
7025  done
7026
7027  if test x"$ac_exists" = xtrue; then :
7028
7029 else
7030  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
7031 fi
7032          ;;
7033       # Other files - we have no idea how they are generated
7034       *)
7035          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
7036 $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
7037          ;;
7038   esac
7039 done
7040 if test "x$ac_cv_f90_module_names" = "x"; then
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
7042 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7043 fi
7044
7045 else
7046  ac_cv_f90_module_names=
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
7048 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 cd ..
7052 # cleanup
7053 rm -rf conftest
7054 ac_ext=${ac_fc_srcext-f}
7055 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7056 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7058
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
7061 $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
7062
7063 # We now generate a shell script that will help us to figure out the correct
7064 # module file names, using the value of ac_cv_f90_module_names
7065
7066 echo "Generating shell script modnam"
7067
7068 cat > scripts/modnam << EOF
7069 #! /bin/sh
7070 # This script is auto-generated by configure
7071 #
7072 usage="\\
7073 Usage: \$0 [FILES]
7074
7075 [FILES] are Fortran 90 source files.
7076 The output is a list of module file names that the Fortran 90 compiler
7077 generates when compiling [FILES]."
7078
7079 list=
7080 empty=
7081
7082 if test \$# -eq 0; then
7083   echo "\$usage"; exit 0
7084 fi
7085
7086 while test \$# != 0; do
7087
7088  file=\$1
7089  shift
7090
7091 # strip suffix
7092  base=\`echo \$file | sed 's/[.][^.]*$//'\`
7093
7094  test ! -f \$file && continue
7095
7096 # Look for module definitions and transform them to upper / lower case
7097  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/'\`
7098  upper=\`echo \$mods | tr a-z A-Z\`
7099  lower=\`echo \$mods | tr A-Z a-z\`
7100
7101 # Here, the patterns for generating module file names were inserted by configure
7102  for trans in $ac_cv_f90_module_names; do
7103
7104    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
7105    var=empty
7106    case \$pat in
7107       %MODULE%)
7108          var=upper ;;
7109       %Module%)
7110          var=mods ;;
7111       %module%)
7112          var=lower ;;
7113       %FILE%)
7114          test -n "\$mods" && var=base ;;
7115    esac
7116    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
7117    list="\$list \$new"
7118  done
7119 done
7120
7121 echo \$list
7122 # end of configure-generated script
7123 EOF
7124 chmod 755 scripts/modnam
7125
7126 pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
7127 F90_MODULE_NAMES=empty
7128 case $pat in
7129       %MODULE%)
7130          F90_MODULE_NAMES=UPPER ;;
7131       %Module%)
7132          F90_MODULE_NAMES=Mixed ;;
7133       %module%)
7134          F90_MODULE_NAMES=lower ;;
7135       *)
7136          F90_MODULE_NAMES=unknown ;;
7137 esac
7138
7139 ac_ext=${ac_fc_srcext-f}
7140 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7141 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7143
7144
7145 ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
7153 $as_echo_n "checking for asin in -lm... " >&6; }
7154 if test "${ac_cv_lib_m_asin+set}" = set; then :
7155  $as_echo_n "(cached) " >&6
7156 else
7157  ac_check_lib_save_LIBS=$LIBS
7158 LIBS="-lm  $LIBS"
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h.  */
7161
7162 /* Override any GCC internal prototype to avoid an error.
7163   Use char because int might match the return type of a GCC
7164   builtin and then its argument prototype would still apply.  */
7165 #ifdef __cplusplus
7166 extern "C"
7167 #endif
7168 char asin ();
7169 #ifdef FC_DUMMY_MAIN
7170 #ifndef FC_DUMMY_MAIN_EQ_F77
7171 #  ifdef __cplusplus
7172     extern "C"
7173 #  endif
7174   int FC_DUMMY_MAIN() { return 1; }
7175 #endif
7176 #endif
7177 int
7178 main ()
7179 {
7180 return asin ();
7181  ;
7182  return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_link "$LINENO"; then :
7186  ac_cv_lib_m_asin=yes
7187 else
7188  ac_cv_lib_m_asin=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext \
7191    conftest$ac_exeext conftest.$ac_ext
7192 LIBS=$ac_check_lib_save_LIBS
7193 fi
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
7195 $as_echo "$ac_cv_lib_m_asin" >&6; }
7196 if test "x$ac_cv_lib_m_asin" = x""yes; then :
7197  cat >>confdefs.h <<_ACEOF
7198 #define HAVE_LIBM 1
7199 _ACEOF
7200
7201  LIBS="-lm $LIBS"
7202
7203 else
7204  exit
7205 fi
7206
7207
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7209 $as_echo_n "checking for ANSI C header files... " >&6; }
7210 if test "${ac_cv_header_stdc+set}" = set; then :
7211  $as_echo_n "(cached) " >&6
7212 else
7213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h.  */
7215 #include <stdlib.h>
7216 #include <stdarg.h>
7217 #include <string.h>
7218 #include <float.h>
7219
7220 #ifdef FC_DUMMY_MAIN
7221 #ifndef FC_DUMMY_MAIN_EQ_F77
7222 #  ifdef __cplusplus
7223     extern "C"
7224 #  endif
7225   int FC_DUMMY_MAIN() { return 1; }
7226 #endif
7227 #endif
7228 int
7229 main ()
7230 {
7231
7232  ;
7233  return 0;
7234 }
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"; then :
7237  ac_cv_header_stdc=yes
7238 else
7239  ac_cv_header_stdc=no
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242
5017   if test $ac_cv_header_stdc = yes; then
5018    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 7332 | Line 5106 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$
5106    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5107   ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5108   "
5109 < eval as_val=\$$as_ac_Header
7336 <   if test "x$as_val" = x""yes; then :
5109 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5110    cat >>confdefs.h <<_ACEOF
5111   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5112   _ACEOF
# Line 7388 | Line 5161 | $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5161  
5162          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
5163   $as_echo_n "checking for inflateEnd in -lz... " >&6; }
5164 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
5164 > if ${ac_cv_lib_z_inflateEnd+:} false; then :
5165    $as_echo_n "(cached) " >&6
5166   else
5167    ac_check_lib_save_LIBS=$LIBS
# Line 7403 | Line 5176 | char inflateEnd ();
5176   extern "C"
5177   #endif
5178   char inflateEnd ();
7406 #ifdef FC_DUMMY_MAIN
7407 #ifndef FC_DUMMY_MAIN_EQ_F77
7408 #  ifdef __cplusplus
7409     extern "C"
7410 #  endif
7411   int FC_DUMMY_MAIN() { return 1; }
7412 #endif
7413 #endif
5179   int
5180   main ()
5181   {
# Line 7430 | Line 5195 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5195   fi
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
5197   $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
5198 < if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
5198 > if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
5199    zlib_cv_libz=yes
5200   else
5201    zlib_cv_libz=no
5202   fi
5203  
5204          ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5205 < if test "x$ac_cv_header_zlib_h" = x""yes; then :
5205 > if test "x$ac_cv_header_zlib_h" = xyes; then :
5206    zlib_cv_zlib_h=yes
5207   else
5208    zlib_cv_zlib_h=no
# Line 7528 | Line 5293 | $as_echo_n "checking for fftw_execute in -lfftw3... "
5293  
5294        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
5295   $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
5296 < if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
5296 > if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
5297    $as_echo_n "(cached) " >&6
5298   else
5299    ac_check_lib_save_LIBS=$LIBS
# Line 7543 | Line 5308 | char fftw_execute ();
5308   extern "C"
5309   #endif
5310   char fftw_execute ();
7546 #ifdef FC_DUMMY_MAIN
7547 #ifndef FC_DUMMY_MAIN_EQ_F77
7548 #  ifdef __cplusplus
7549     extern "C"
7550 #  endif
7551   int FC_DUMMY_MAIN() { return 1; }
7552 #endif
7553 #endif
5311   int
5312   main ()
5313   {
# Line 7570 | Line 5327 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5327   fi
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
5329   $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
5330 < if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
5330 > if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
5331    fftw_cv_libfftw3=yes
5332   else
5333    fftw_cv_libfftw3=no
5334   fi
5335  
5336        ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
5337 < if test "x$ac_cv_header_fftw3_h" = x""yes; then :
5337 > if test "x$ac_cv_header_fftw3_h" = xyes; then :
5338    fftw_cv_fftw3_h=yes
5339   else
5340    fftw_cv_fftw3_h=no
# Line 7587 | Line 5344 | $as_echo_n "checking for fftwnd_one in -lfftw... " >&6
5344        if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
5345          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -lfftw" >&5
5346   $as_echo_n "checking for fftwnd_one in -lfftw... " >&6; }
5347 < if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then :
5347 > if ${ac_cv_lib_fftw_fftwnd_one+:} false; then :
5348    $as_echo_n "(cached) " >&6
5349   else
5350    ac_check_lib_save_LIBS=$LIBS
# Line 7602 | Line 5359 | char fftwnd_one ();
5359   extern "C"
5360   #endif
5361   char fftwnd_one ();
7605 #ifdef FC_DUMMY_MAIN
7606 #ifndef FC_DUMMY_MAIN_EQ_F77
7607 #  ifdef __cplusplus
7608     extern "C"
7609 #  endif
7610   int FC_DUMMY_MAIN() { return 1; }
7611 #endif
7612 #endif
5362   int
5363   main ()
5364   {
# Line 7629 | Line 5378 | $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5378   fi
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftwnd_one" >&5
5380   $as_echo "$ac_cv_lib_fftw_fftwnd_one" >&6; }
5381 < if test "x$ac_cv_lib_fftw_fftwnd_one" = x""yes; then :
5381 > if test "x$ac_cv_lib_fftw_fftwnd_one" = xyes; then :
5382    fftw_cv_libfftw=yes
5383   else
5384    fftw_cv_libfftw=no
5385   fi
5386  
5387          ac_fn_c_check_header_mongrel "$LINENO" "fftw.h" "ac_cv_header_fftw_h" "$ac_includes_default"
5388 < if test "x$ac_cv_header_fftw_h" = x""yes; then :
5388 > if test "x$ac_cv_header_fftw_h" = xyes; then :
5389    fftw_cv_fftw_h=yes
5390   else
5391    fftw_cv_fftw_h=no
# Line 7646 | Line 5395 | $as_echo_n "checking for fftwnd_one in -ldfftw... " >&
5395          if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
5396            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_one in -ldfftw" >&5
5397   $as_echo_n "checking for fftwnd_one in -ldfftw... " >&6; }
5398 < if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then :
5398 > if ${ac_cv_lib_dfftw_fftwnd_one+:} false; then :
5399    $as_echo_n "(cached) " >&6
5400   else
5401    ac_check_lib_save_LIBS=$LIBS
# Line 7661 | Line 5410 | char fftwnd_one ();
5410   extern "C"
5411   #endif
5412   char fftwnd_one ();
7664 #ifdef FC_DUMMY_MAIN
7665 #ifndef FC_DUMMY_MAIN_EQ_F77
7666 #  ifdef __cplusplus
7667     extern "C"
7668 #  endif
7669   int FC_DUMMY_MAIN() { return 1; }
7670 #endif
7671 #endif
5413   int
5414   main ()
5415   {
# Line 7688 | Line 5429 | $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5429   fi
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
5431   $as_echo "$ac_cv_lib_dfftw_fftwnd_one" >&6; }
5432 < if test "x$ac_cv_lib_dfftw_fftwnd_one" = x""yes; then :
5432 > if test "x$ac_cv_lib_dfftw_fftwnd_one" = xyes; then :
5433    fftw_cv_libdfftw=yes
5434   else
5435    fftw_cv_libdfftw=no
5436   fi
5437  
5438            ac_fn_c_check_header_mongrel "$LINENO" "dfftw.h" "ac_cv_header_dfftw_h" "$ac_includes_default"
5439 < if test "x$ac_cv_header_dfftw_h" = x""yes; then :
5439 > if test "x$ac_cv_header_dfftw_h" = xyes; then :
5440    fftw_cv_dfftw_h=yes
5441   else
5442    fftw_cv_dfftw_h=no
# Line 7787 | Line 5528 | $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not
5528         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&5
5529   $as_echo "$as_me: WARNING: Sorry, $qhull_dir does not exist, checking usual places" >&2;}
5530         QHULL_HOME=/usr/local
5531 <       if test ! -f "${QHULL_HOME}/include/qhull/qhull.h"; then
5531 >       if test ! -f "${QHULL_HOME}/include/qhull/libqhull.h"; then
5532            QHULL_HOME=/usr
5533         fi
5534       fi
# Line 7811 | Line 5552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552          LDFLAGS="$LDFLAGS -L${QHULL_HOME}/lib"
5553          CFLAGS="$CFLAGS -I${QHULL_HOME}/include"
5554          CPPFLAGS="$CPPFLAGS -I${QHULL_HOME}/include"
5555 <        ac_fn_c_check_header_mongrel "$LINENO" "qhull/qhull.h" "ac_cv_header_qhull_qhull_h" "$ac_includes_default"
5556 < if test "x$ac_cv_header_qhull_qhull_h" = x""yes; then :
5557 <  qhull_cv_qhull_h=yes
5555 >        ac_fn_c_check_header_mongrel "$LINENO" "qhull/libqhull.h" "ac_cv_header_qhull_libqhull_h" "$ac_includes_default"
5556 > if test "x$ac_cv_header_qhull_libqhull_h" = xyes; then :
5557 >  qhull_cv_libqhull_h=yes
5558   else
5559 <  qhull_cv_qhull_h=no
5559 >  qhull_cv_libqhull_h=no
5560   fi
5561  
5562  
5563          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull" >&5
5564   $as_echo_n "checking for qh_qhull in -lqhull... " >&6; }
5565 < if test "${ac_cv_lib_qhull_qh_qhull+set}" = set; then :
5565 > if ${ac_cv_lib_qhull_qh_qhull+:} false; then :
5566    $as_echo_n "(cached) " >&6
5567   else
5568    ac_check_lib_save_LIBS=$LIBS
# Line 7836 | Line 5577 | char qh_qhull ();
5577   extern "C"
5578   #endif
5579   char qh_qhull ();
7839 #ifdef FC_DUMMY_MAIN
7840 #ifndef FC_DUMMY_MAIN_EQ_F77
7841 #  ifdef __cplusplus
7842     extern "C"
7843 #  endif
7844   int FC_DUMMY_MAIN() { return 1; }
7845 #endif
7846 #endif
5580   int
5581   main ()
5582   {
# Line 7863 | Line 5596 | $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5596   fi
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull_qh_qhull" >&5
5598   $as_echo "$ac_cv_lib_qhull_qh_qhull" >&6; }
5599 < if test "x$ac_cv_lib_qhull_qh_qhull" = x""yes; then :
5599 > if test "x$ac_cv_lib_qhull_qh_qhull" = xyes; then :
5600    qhull_cv_libqhull=yes
5601   else
5602    qhull_cv_libqhull=no
5603   fi
5604  
5605 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qh_qhull in -lqhull6" >&5
5606 + $as_echo_n "checking for qh_qhull in -lqhull6... " >&6; }
5607 + if ${ac_cv_lib_qhull6_qh_qhull+:} false; then :
5608 +  $as_echo_n "(cached) " >&6
5609 + else
5610 +  ac_check_lib_save_LIBS=$LIBS
5611 + LIBS="-lqhull6  $LIBS"
5612 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 + /* end confdefs.h.  */
5614 +
5615 + /* Override any GCC internal prototype to avoid an error.
5616 +   Use char because int might match the return type of a GCC
5617 +   builtin and then its argument prototype would still apply.  */
5618 + #ifdef __cplusplus
5619 + extern "C"
5620 + #endif
5621 + char qh_qhull ();
5622 + int
5623 + main ()
5624 + {
5625 + return qh_qhull ();
5626 +  ;
5627 +  return 0;
5628 + }
5629 + _ACEOF
5630 + if ac_fn_c_try_link "$LINENO"; then :
5631 +  ac_cv_lib_qhull6_qh_qhull=yes
5632 + else
5633 +  ac_cv_lib_qhull6_qh_qhull=no
5634 + fi
5635 + rm -f core conftest.err conftest.$ac_objext \
5636 +    conftest$ac_exeext conftest.$ac_ext
5637 + LIBS=$ac_check_lib_save_LIBS
5638 + fi
5639 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qhull6_qh_qhull" >&5
5640 + $as_echo "$ac_cv_lib_qhull6_qh_qhull" >&6; }
5641 + if test "x$ac_cv_lib_qhull6_qh_qhull" = xyes; then :
5642 +  qhull_cv_libqhull6=yes
5643 + else
5644 +  qhull_cv_libqhull6=no
5645 + fi
5646 +
5647          LDFLAGS="$QHULL_OLD_LDFLAGS"
5648          CFLAGS="$QHULL_OLD_CFLAGS"
5649          CPPFLAGS="$QHULL_OLD_CPPFLAGS"
# Line 7879 | Line 5654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5654   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655  
5656  
5657 <        if test "$qhull_cv_libqhull" = "yes" -a "$qhull_cv_qhull_h" = "yes"; then
5657 >        if test "$qhull_cv_libqhull_h" = "yes" -a "$qhull_cv_libqhull" = "yes" -o "$qhull_cv_libqhull6" = "yes"; then
5658  
5659 < $as_echo "#define HAVE_QHULL_H 1" >>confdefs.h
5659 > $as_echo "#define HAVE_LIBQHULL_H 1" >>confdefs.h
5660  
5661 +           if test "$qhull_cv_libqhull" = "yes"; then
5662  
5663   $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5664  
5665 +                QHULL="-lqhull"
5666 +           fi
5667 +           if test "$qhull_cv_libqhull6" = "yes"; then
5668 +
5669 + $as_echo "#define HAVE_QHULL 1" >>confdefs.h
5670 +
5671 +                QHULL="-lqhull6"
5672 +           fi
5673             USE_QHULL=yes
5674             QHULL_INC_DIR="${QHULL_HOME}/include"
5675             QHULL_LIB_DIR="${QHULL_HOME}/lib"
7892           QHULL="-lqhull"
5676             { $as_echo "$as_me:${as_lineno-$LINENO}: result: Working qhull found, will proceed." >&5
5677   $as_echo "Working qhull found, will proceed." >&6; }
5678          else
# Line 7925 | Line 5708 | if test -z "$CXXCPP"; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5709   $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5710   if test -z "$CXXCPP"; then
5711 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5711 >  if ${ac_cv_prog_CXXCPP+:} false; then :
5712    $as_echo_n "(cached) " >&6
5713   else
5714        # Double quotes because CXXCPP needs to be expanded
# Line 7955 | Line 5738 | fi
5738    # Broken: fails on valid input.
5739   continue
5740   fi
5741 < rm -f conftest.err conftest.$ac_ext
5741 > rm -f conftest.err conftest.i conftest.$ac_ext
5742  
5743    # OK, works on sane cases.  Now check whether nonexistent headers
5744    # can be detected and how.
# Line 7971 | Line 5754 | fi
5754   ac_preproc_ok=:
5755   break
5756   fi
5757 < rm -f conftest.err conftest.$ac_ext
5757 > rm -f conftest.err conftest.i conftest.$ac_ext
5758  
5759   done
5760   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5761 < rm -f conftest.err conftest.$ac_ext
5761 > rm -f conftest.i conftest.err conftest.$ac_ext
5762   if $ac_preproc_ok; then :
5763    break
5764   fi
# Line 8014 | Line 5797 | fi
5797    # Broken: fails on valid input.
5798   continue
5799   fi
5800 < rm -f conftest.err conftest.$ac_ext
5800 > rm -f conftest.err conftest.i conftest.$ac_ext
5801  
5802    # OK, works on sane cases.  Now check whether nonexistent headers
5803    # can be detected and how.
# Line 8030 | Line 5813 | fi
5813   ac_preproc_ok=:
5814   break
5815   fi
5816 < rm -f conftest.err conftest.$ac_ext
5816 > rm -f conftest.err conftest.i conftest.$ac_ext
5817  
5818   done
5819   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5820 < rm -f conftest.err conftest.$ac_ext
5820 > rm -f conftest.i conftest.err conftest.$ac_ext
5821   if $ac_preproc_ok; then :
5822  
5823   else
5824    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 < as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 < See \`config.log' for more details." "$LINENO" 5; }
5826 > as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5827 > See \`config.log' for more details" "$LINENO" 5; }
5828   fi
5829  
5830   ac_ext=cpp
# Line 8095 | Line 5878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5878          LDFLAGS="$LDFLAGS -L${OPENBABEL_HOME}/lib -lopenbabel"
5879          CPPFLAGS="$CPPFLAGS -I${OPENBABEL_HOME}/include/openbabel-2.0"
5880          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/babelconfig.h" "ac_cv_header_openbabel_babelconfig_h" "$ac_includes_default"
5881 < if test "x$ac_cv_header_openbabel_babelconfig_h" = x""yes; then :
5881 > if test "x$ac_cv_header_openbabel_babelconfig_h" = xyes; then :
5882    openbabel_cv_openbabel_h=yes
5883   else
5884    openbabel_cv_openbabel_h=no
# Line 8103 | Line 5886 | fi
5886  
5887  
5888          ac_fn_cxx_check_header_mongrel "$LINENO" "openbabel/obconversion.h" "ac_cv_header_openbabel_obconversion_h" "$ac_includes_default"
5889 < if test "x$ac_cv_header_openbabel_obconversion_h" = x""yes; then :
5889 > if test "x$ac_cv_header_openbabel_obconversion_h" = xyes; then :
5890    openbabel_cv_obconversion_h=yes
5891   else
5892    openbabel_cv_obconversion_h=no
# Line 8119 | Line 5902 | using namespace OpenBabel;
5902   using namespace std;
5903   using namespace OpenBabel;
5904  
8122 #ifdef FC_DUMMY_MAIN
8123 #ifndef FC_DUMMY_MAIN_EQ_F77
8124 #  ifdef __cplusplus
8125     extern "C"
8126 #  endif
8127   int FC_DUMMY_MAIN() { return 1; }
8128 #endif
8129 #endif
5905   int
5906   main ()
5907   {
# Line 8197 | Line 5972 | fi
5972  
5973  
5974   # Checks for header files.
5975 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8201 < $as_echo_n "checking for ANSI C header files... " >&6; }
8202 < if test "${ac_cv_header_stdc+set}" = set; then :
8203 <  $as_echo_n "(cached) " >&6
8204 < else
8205 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 < /* end confdefs.h.  */
8207 < #include <stdlib.h>
8208 < #include <stdarg.h>
8209 < #include <string.h>
8210 < #include <float.h>
8211 <
8212 < #ifdef FC_DUMMY_MAIN
8213 < #ifndef FC_DUMMY_MAIN_EQ_F77
8214 < #  ifdef __cplusplus
8215 <     extern "C"
8216 < #  endif
8217 <   int FC_DUMMY_MAIN() { return 1; }
8218 < #endif
8219 < #endif
8220 < int
8221 < main ()
8222 < {
8223 <
8224 <  ;
8225 <  return 0;
8226 < }
8227 < _ACEOF
8228 < if ac_fn_c_try_compile "$LINENO"; then :
8229 <  ac_cv_header_stdc=yes
8230 < else
8231 <  ac_cv_header_stdc=no
8232 < fi
8233 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 <
8235 < if test $ac_cv_header_stdc = yes; then
8236 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8237 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 < /* end confdefs.h.  */
8239 < #include <string.h>
8240 <
8241 < _ACEOF
8242 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8243 <  $EGREP "memchr" >/dev/null 2>&1; then :
8244 <
8245 < else
8246 <  ac_cv_header_stdc=no
8247 < fi
8248 < rm -f conftest*
8249 <
8250 < fi
8251 <
8252 < if test $ac_cv_header_stdc = yes; then
8253 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8254 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 < /* end confdefs.h.  */
8256 < #include <stdlib.h>
8257 <
8258 < _ACEOF
8259 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8260 <  $EGREP "free" >/dev/null 2>&1; then :
8261 <
8262 < else
8263 <  ac_cv_header_stdc=no
8264 < fi
8265 < rm -f conftest*
8266 <
8267 < fi
8268 <
8269 < if test $ac_cv_header_stdc = yes; then
8270 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8271 <  if test "$cross_compiling" = yes; then :
8272 <  :
8273 < else
8274 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 < /* end confdefs.h.  */
8276 < #include <ctype.h>
8277 < #include <stdlib.h>
8278 < #if ((' ' & 0x0FF) == 0x020)
8279 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8280 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8281 < #else
8282 < # define ISLOWER(c) \
8283 <                   (('a' <= (c) && (c) <= 'i') \
8284 <                     || ('j' <= (c) && (c) <= 'r') \
8285 <                     || ('s' <= (c) && (c) <= 'z'))
8286 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8287 < #endif
8288 <
8289 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8290 < int
8291 < main ()
8292 < {
8293 <  int i;
8294 <  for (i = 0; i < 256; i++)
8295 <    if (XOR (islower (i), ISLOWER (i))
8296 <        || toupper (i) != TOUPPER (i))
8297 <      return 2;
8298 <  return 0;
8299 < }
8300 < _ACEOF
8301 < if ac_fn_c_try_run "$LINENO"; then :
8302 <
8303 < else
8304 <  ac_cv_header_stdc=no
8305 < fi
8306 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8307 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
8308 < fi
8309 <
8310 < fi
8311 < fi
8312 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8313 < $as_echo "$ac_cv_header_stdc" >&6; }
8314 < if test $ac_cv_header_stdc = yes; then
8315 <
8316 < $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8317 <
8318 < fi
8319 <
8320 < for ac_header in libintl.h limits.h machine/hal_sysinfo.h stdlib.h string.h strings.h sys/param.h sys/pstat.h sys/sysctl.h sys/sysinfo.h sys/sysmp.h sys/systemcfg.h sys/table.h sys/time.h unistd.h
5975 > for ac_header in limits.h stdlib.h string.h sys/ioctl.h unistd.h
5976   do :
5977    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5978   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5979 < eval as_val=\$$as_ac_Header
8325 <   if test "x$as_val" = x""yes; then :
5979 > if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5980    cat >>confdefs.h <<_ACEOF
5981   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5982   _ACEOF
# Line 8335 | Line 5989 | $as_echo_n "checking for stdbool.h that conforms to C9
5989   # Checks for typedefs, structures, and compiler characteristics.
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5991   $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5992 < if test "${ac_cv_header_stdbool_h+set}" = set; then :
5992 > if ${ac_cv_header_stdbool_h+:} false; then :
5993    $as_echo_n "(cached) " >&6
5994   else
5995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 8367 | Line 6021 | else
6021          char b[false == 0 ? 1 : -1];
6022          char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6023          char d[(bool) 0.5 == true ? 1 : -1];
6024 <        bool e = &s;
6024 >        /* See body of main program for 'e'.  */
6025          char f[(_Bool) 0.0 == false ? 1 : -1];
6026          char g[true];
6027          char h[sizeof (_Bool)];
# Line 8378 | Line 6032 | else
6032          _Bool n[m];
6033          char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6034          char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8381 #       if defined __xlc__ || defined __GNUC__
8382         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8383            reported by James Lemley on 2005-10-05; see
8384            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8385            This test is not quite right, since xlc is allowed to
8386            reject this program, as the initializer for xlcbug is
8387            not one of the forms that C requires support for.
8388            However, doing the test right would require a runtime
8389            test, and that would make cross-compilation harder.
8390            Let us hope that IBM fixes the xlc bug, and also adds
8391            support for this kind of constant expression.  In the
8392            meantime, this test will reject xlc, which is OK, since
8393            our stdbool.h substitute should suffice.  We also test
8394            this with GCC, where it should work, to detect more
8395            quickly whether someone messes up the test in the
8396            future.  */
8397         char digs[] = "0123456789";
8398         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8399 #       endif
6035          /* Catch a bug in an HP-UX C compiler.  See
6036             http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6037             http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
# Line 8404 | Line 6039 | else
6039          _Bool q = true;
6040          _Bool *pq = &q;
6041  
8407 #ifdef FC_DUMMY_MAIN
8408 #ifndef FC_DUMMY_MAIN_EQ_F77
8409 #  ifdef __cplusplus
8410     extern "C"
8411 #  endif
8412   int FC_DUMMY_MAIN() { return 1; }
8413 #endif
8414 #endif
6042   int
6043   main ()
6044   {
6045  
6046 +        bool e = &s;
6047          *pq |= q;
6048          *pq |= ! q;
6049          /* Refer to every declared value, to avoid compiler optimizations.  */
# Line 8436 | Line 6064 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6065   $as_echo "$ac_cv_header_stdbool_h" >&6; }
6066   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6067 < if test "x$ac_cv_type__Bool" = x""yes; then :
6067 > if test "x$ac_cv_type__Bool" = xyes; then :
6068  
6069   cat >>confdefs.h <<_ACEOF
6070   #define HAVE__BOOL 1
# Line 8451 | Line 6079 | fi
6079  
6080   fi
6081  
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8455 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8456 if test "${ac_cv_c_const+set}" = set; then :
8457  $as_echo_n "(cached) " >&6
8458 else
8459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461
8462 #ifdef FC_DUMMY_MAIN
8463 #ifndef FC_DUMMY_MAIN_EQ_F77
8464 #  ifdef __cplusplus
8465     extern "C"
8466 #  endif
8467   int FC_DUMMY_MAIN() { return 1; }
8468 #endif
8469 #endif
8470 int
8471 main ()
8472 {
8473 /* FIXME: Include the comments suggested by Paul. */
8474 #ifndef __cplusplus
8475  /* Ultrix mips cc rejects this.  */
8476  typedef int charset[2];
8477  const charset cs;
8478  /* SunOS 4.1.1 cc rejects this.  */
8479  char const *const *pcpcc;
8480  char **ppc;
8481  /* NEC SVR4.0.2 mips cc rejects this.  */
8482  struct point {int x, y;};
8483  static struct point const zero = {0,0};
8484  /* AIX XL C 1.02.0.0 rejects this.
8485     It does not let you subtract one const X* pointer from another in
8486     an arm of an if-expression whose if-part is not a constant
8487     expression */
8488  const char *g = "string";
8489  pcpcc = &g + (g ? g-g : 0);
8490  /* HPUX 7.0 cc rejects these. */
8491  ++pcpcc;
8492  ppc = (char**) pcpcc;
8493  pcpcc = (char const *const *) ppc;
8494  { /* SCO 3.2v4 cc rejects this.  */
8495    char *t;
8496    char const *s = 0 ? (char *) 0 : (char const *) 0;
8497
8498    *t++ = 0;
8499    if (s) return 0;
8500  }
8501  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8502    int x[] = {25, 17};
8503    const int *foo = &x[0];
8504    ++foo;
8505  }
8506  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8507    typedef const int *iptr;
8508    iptr p = 0;
8509    ++p;
8510  }
8511  { /* AIX XL C 1.02.0.0 rejects this saying
8512       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8513    struct s { int j; const int *ap[3]; };
8514    struct s *b; b->j = 5;
8515  }
8516  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8517    const int foo = 10;
8518    if (!foo) return 0;
8519  }
8520  return !cs[0] && !zero.x;
8521 #endif
8522
8523  ;
8524  return 0;
8525 }
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528  ac_cv_c_const=yes
8529 else
8530  ac_cv_c_const=no
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8535 $as_echo "$ac_cv_c_const" >&6; }
8536 if test $ac_cv_c_const = no; then
8537
8538 $as_echo "#define const /**/" >>confdefs.h
8539
8540 fi
8541
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6083   $as_echo_n "checking for inline... " >&6; }
6084 < if test "${ac_cv_c_inline+set}" = set; then :
6084 > if ${ac_cv_c_inline+:} false; then :
6085    $as_echo_n "(cached) " >&6
6086   else
6087    ac_cv_c_inline=no
# Line 8582 | Line 6122 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size
6122   esac
6123  
6124   ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6125 < if test "x$ac_cv_type_size_t" = x""yes; then :
6125 > if test "x$ac_cv_type_size_t" = xyes; then :
6126  
6127   else
6128  
# Line 8592 | Line 6132 | fi
6132  
6133   fi
6134  
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8596 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8597 if test "${ac_cv_header_time+set}" = set; then :
8598  $as_echo_n "(cached) " >&6
8599 else
8600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h.  */
8602 #include <sys/types.h>
8603 #include <sys/time.h>
8604 #include <time.h>
6135  
8606 #ifdef FC_DUMMY_MAIN
8607 #ifndef FC_DUMMY_MAIN_EQ_F77
8608 #  ifdef __cplusplus
8609     extern "C"
8610 #  endif
8611   int FC_DUMMY_MAIN() { return 1; }
8612 #endif
8613 #endif
8614 int
8615 main ()
8616 {
8617 if ((struct tm *) 0)
8618 return 0;
8619  ;
8620  return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624  ac_cv_header_time=yes
8625 else
8626  ac_cv_header_time=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8631 $as_echo "$ac_cv_header_time" >&6; }
8632 if test $ac_cv_header_time = yes; then
8633
8634 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8635
8636 fi
8637
8638
6136   # Checks for library functions.
6137   for ac_header in stdlib.h
6138   do :
6139    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6140 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6140 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6141    cat >>confdefs.h <<_ACEOF
6142   #define HAVE_STDLIB_H 1
6143   _ACEOF
# Line 8651 | Line 6148 | $as_echo_n "checking for GNU libc compatible malloc...
6148  
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6150   $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6151 < if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6151 > if ${ac_cv_func_malloc_0_nonnull+:} false; then :
6152    $as_echo_n "(cached) " >&6
6153   else
6154    if test "$cross_compiling" = yes; then :
# Line 8665 | Line 6162 | char *malloc ();
6162   char *malloc ();
6163   #endif
6164  
8668 #ifdef FC_DUMMY_MAIN
8669 #ifndef FC_DUMMY_MAIN_EQ_F77
8670 #  ifdef __cplusplus
8671     extern "C"
8672 #  endif
8673   int FC_DUMMY_MAIN() { return 1; }
8674 #endif
8675 #endif
6165   int
6166   main ()
6167   {
# Line 8715 | Line 6204 | do :
6204   for ac_header in stdlib.h
6205   do :
6206    ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6207 < if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6207 > if test "x$ac_cv_header_stdlib_h" = xyes; then :
6208    cat >>confdefs.h <<_ACEOF
6209   #define HAVE_STDLIB_H 1
6210   _ACEOF
# Line 8726 | Line 6215 | $as_echo_n "checking for GNU libc compatible realloc..
6215  
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6217   $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6218 < if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6218 > if ${ac_cv_func_realloc_0_nonnull+:} false; then :
6219    $as_echo_n "(cached) " >&6
6220   else
6221    if test "$cross_compiling" = yes; then :
# Line 8740 | Line 6229 | char *realloc ();
6229   char *realloc ();
6230   #endif
6231  
8743 #ifdef FC_DUMMY_MAIN
8744 #ifndef FC_DUMMY_MAIN_EQ_F77
8745 #  ifdef __cplusplus
8746     extern "C"
8747 #  endif
8748   int FC_DUMMY_MAIN() { return 1; }
8749 #endif
8750 #endif
6232   int
6233   main ()
6234   {
# Line 8787 | Line 6268 | fi
6268   fi
6269  
6270  
8790 for ac_header in sys/select.h sys/socket.h
8791 do :
8792  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8793 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8794 eval as_val=\$$as_ac_Header
8795   if test "x$as_val" = x""yes; then :
8796  cat >>confdefs.h <<_ACEOF
8797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8799
8800 fi
8801
8802 done
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8805 $as_echo_n "checking types of arguments for select... " >&6; }
8806 if test "${ac_cv_func_select_args+set}" = set; then :
8807  $as_echo_n "(cached) " >&6
8808 else
8809  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8810 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8811  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h.  */
8814 $ac_includes_default
8815 #ifdef HAVE_SYS_SELECT_H
8816 # include <sys/select.h>
8817 #endif
8818 #ifdef HAVE_SYS_SOCKET_H
8819 # include <sys/socket.h>
8820 #endif
8821
8822 #ifdef FC_DUMMY_MAIN
8823 #ifndef FC_DUMMY_MAIN_EQ_F77
8824 #  ifdef __cplusplus
8825     extern "C"
8826 #  endif
8827   int FC_DUMMY_MAIN() { return 1; }
8828 #endif
8829 #endif
8830 int
8831 main ()
8832 {
8833 extern int select ($ac_arg1,
8834                                            $ac_arg234, $ac_arg234, $ac_arg234,
8835                                            $ac_arg5);
8836  ;
8837  return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_c_try_compile "$LINENO"; then :
8841  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844  done
8845 done
8846 done
8847 # Provide a safe default value.
8848 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8849
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
8852 $as_echo "$ac_cv_func_select_args" >&6; }
8853 ac_save_IFS=$IFS; IFS=','
8854 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8855 IFS=$ac_save_IFS
8856 shift
8857
8858 cat >>confdefs.h <<_ACEOF
8859 #define SELECT_TYPE_ARG1 $1
8860 _ACEOF
8861
8862
8863 cat >>confdefs.h <<_ACEOF
8864 #define SELECT_TYPE_ARG234 ($2)
8865 _ACEOF
8866
8867
8868 cat >>confdefs.h <<_ACEOF
8869 #define SELECT_TYPE_ARG5 ($3)
8870 _ACEOF
8871
8872 rm -f conftest*
8873
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6272   $as_echo_n "checking for working strtod... " >&6; }
6273 < if test "${ac_cv_func_strtod+set}" = set; then :
6273 > if ${ac_cv_func_strtod+:} false; then :
6274    $as_echo_n "(cached) " >&6
6275   else
6276    if test "$cross_compiling" = yes; then :
# Line 8932 | Line 6329 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6329   esac
6330  
6331   ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6332 < if test "x$ac_cv_func_pow" = x""yes; then :
6332 > if test "x$ac_cv_func_pow" = xyes; then :
6333  
6334   fi
6335  
6336   if test $ac_cv_func_pow = no; then
6337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6338   $as_echo_n "checking for pow in -lm... " >&6; }
6339 < if test "${ac_cv_lib_m_pow+set}" = set; then :
6339 > if ${ac_cv_lib_m_pow+:} false; then :
6340    $as_echo_n "(cached) " >&6
6341   else
6342    ac_check_lib_save_LIBS=$LIBS
# Line 8954 | Line 6351 | char pow ();
6351   extern "C"
6352   #endif
6353   char pow ();
8957 #ifdef FC_DUMMY_MAIN
8958 #ifndef FC_DUMMY_MAIN_EQ_F77
8959 #  ifdef __cplusplus
8960     extern "C"
8961 #  endif
8962   int FC_DUMMY_MAIN() { return 1; }
8963 #endif
8964 #endif
6354   int
6355   main ()
6356   {
# Line 8981 | Line 6370 | $as_echo "$ac_cv_lib_m_pow" >&6; }
6370   fi
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6372   $as_echo "$ac_cv_lib_m_pow" >&6; }
6373 < if test "x$ac_cv_lib_m_pow" = x""yes; then :
6373 > if test "x$ac_cv_lib_m_pow" = xyes; then :
6374    POW_LIB=-lm
6375   else
6376    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
# Line 8992 | Line 6381 | fi
6381  
6382   fi
6383  
6384 < for ac_func in floor getpagesize gettimeofday memset pow pstat_getdynamic pstat_getstatic select sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strstr strtol sysmp getsysinfo sysctl table
6384 > for ac_func in atexit floor pow select sqrt strcasecmp strchr strdup strncasecmp strstr strtol strtoull
6385   do :
6386    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6387   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6388 < eval as_val=\$$as_ac_var
9000 <   if test "x$as_val" = x""yes; then :
6388 > if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6389    cat >>confdefs.h <<_ACEOF
6390   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391   _ACEOF
# Line 9006 | Line 6394 | done
6394   done
6395  
6396  
9009 # special check for _system_configuration because AIX <4.3.2 do not
9010 # contain the `physmem' member.
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
9012 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h.  */
9015 #include <sys/systemcfg.h>
9016 #ifdef FC_DUMMY_MAIN
9017 #ifndef FC_DUMMY_MAIN_EQ_F77
9018 #  ifdef __cplusplus
9019     extern "C"
9020 #  endif
9021   int FC_DUMMY_MAIN() { return 1; }
9022 #endif
9023 #endif
9024 int
9025 main ()
9026 {
9027 double x = _system_configuration.physmem;
9028  ;
9029  return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_compile "$LINENO"; then :
9033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9034 $as_echo "yes" >&6; }
6397  
9036 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
9037
9038 else
9039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9043
9044
6398   case $debug in
6399    1)
6400       ;;
# Line 9051 | Line 6404 | case $debug in
6404  
6405  
6406  
9054 # Try to determine "good" native compiler flags if none specified on command
9055 # line
6407  
9057 if test "$ac_test_FFLAGS" != "set"; then
9058  FCFLAGS=""
9059  case "${host_cpu}-${host_os}" in
9060
9061  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
9062                    FCFLAGS="-O2"
9063                fi;;
9064   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
9065                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
9066                fi;;
9067   powerpc*-aix*)
9068        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
9069                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
9070                echo "*******************************************************"
9071                echo "*  You have AIX on an unknown powerpc system.  It is  *"
9072                echo "*  recommended that you use                           *"
9073                echo "*                                                     *"
9074                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
9075                echo "*                                 ^^^                 *"
9076                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
9077                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
9078                echo "*******************************************************"
9079        fi;;
9080   *darwin*)
9081        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
9082                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
9083        fi
9084        if test "$FC" = ifort; then
9085                FCFLAGS="-O2"
9086        fi
9087        if test "$FC" = gfortran; then
9088                FCFLAGS="-Os"
9089        fi;;
9090  esac
9091
9092  if test -z "$FCFLAGS"; then
9093        echo ""
9094        echo "*********************************************************"
9095        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
9096        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9097        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
9098        echo "*********************************************************"
9099        echo ""
9100        FCFLAGS="-O"
9101  fi
9102
9103
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9105 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9106 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
9107  $as_echo_n "(cached) " >&6
9108 else
9109
9110
9111 ac_ext=${ac_fc_srcext-f}
9112 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
9113 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
9114 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
9115
9116 echo 'program main' > conftest.$ac_ext
9117 echo 'end program main' >> conftest.$ac_ext
9118 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
9119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9120  (eval $ac_compile) 2>&5
9121  ac_status=$?
9122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9123  test $ac_status = 0; }; then
9124        ac_cv_ac_cv_guessed_f90flags=yes
9125 else
9126        ac_cv_ac_cv_guessed_f90flags=no
9127 fi
9128 rm -f conftest*
9129 ac_ext=c
9130 ac_cpp='$CPP $CPPFLAGS'
9131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9134
9135
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
9138 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
9139 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
9140        :
9141
9142 else
9143        :
9144
9145        echo ""
9146        echo "**********************************************************"
9147        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
9148        echo "* your compiler.                                        *"
9149        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9150        echo "*********************************************************"
9151        echo ""
9152        FCFLAGS=""
9153
9154 fi
9155
9156
9157 fi
9158
9159
9160
9161
9162
9163
9164
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU cc" >&5
6409   $as_echo_n "checking whether we are *really* using GNU cc... " >&6; }
6410 < if test "${ac_cv_prog_really_gcc+set}" = set; then :
6410 > if ${ac_cv_prog_really_gcc+:} false; then :
6411    $as_echo_n "(cached) " >&6
6412   else
6413  
# Line 9269 | Line 6512 | $as_echo_n "checking whether ${CC} accepts ${CFLAGS}..
6512  
6513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts ${CFLAGS}" >&5
6514   $as_echo_n "checking whether ${CC} accepts ${CFLAGS}... " >&6; }
6515 < if test "${ac_cv_ac_cv_guessed_cflags+set}" = set; then :
6515 > if ${ac_cv_ac_cv_guessed_cflags+:} false; then :
6516    $as_echo_n "(cached) " >&6
6517   else
6518    echo 'void f(){}' > conftest.c
# Line 9311 | Line 6554 | $as_echo_n "checking whether we are *really* using GNU
6554  
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are *really* using GNU c++" >&5
6556   $as_echo_n "checking whether we are *really* using GNU c++... " >&6; }
6557 < if test "${ac_cv_prog_really_gxx+set}" = set; then :
6557 > if ${ac_cv_prog_really_gxx+:} false; then :
6558    $as_echo_n "(cached) " >&6
6559   else
6560  
# Line 9407 | Line 6650 | $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS
6650  
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
6652   $as_echo_n "checking whether ${CXX} accepts ${CXXFLAGS}... " >&6; }
6653 < if test "${ac_cv_ac_cv_guessed_cxxflags+set}" = set; then :
6653 > if ${ac_cv_ac_cv_guessed_cxxflags+:} false; then :
6654    $as_echo_n "(cached) " >&6
6655   else
6656    echo 'void f(){}' > conftest.cpp
# Line 9476 | Line 6719 | $as_echo_n "checking for $ac_word... " >&6; }
6719   set dummy doxygen; ac_word=$2
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721   $as_echo_n "checking for $ac_word... " >&6; }
6722 < if test "${ac_cv_path_DOXYGEN+set}" = set; then :
6722 > if ${ac_cv_path_DOXYGEN+:} false; then :
6723    $as_echo_n "(cached) " >&6
6724   else
6725    case $DOXYGEN in
# Line 9514 | Line 6757 | fi
6757  
6758          if test "x$DOXYGEN" = x; then
6759                  if test "x$enable_doxygen" = xyes; then
6760 <                        as_fn_error "could not find doxygen" "$LINENO" 5
6760 >                        as_fn_error $? "could not find doxygen" "$LINENO" 5
6761                  fi
6762                  enable_doc=no
6763          else
# Line 9523 | Line 6766 | $as_echo_n "checking for $ac_word... " >&6; }
6766   set dummy dot; ac_word=$2
6767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768   $as_echo_n "checking for $ac_word... " >&6; }
6769 < if test "${ac_cv_path_DOT+set}" = set; then :
6769 > if ${ac_cv_path_DOT+:} false; then :
6770    $as_echo_n "(cached) " >&6
6771   else
6772    case $DOT in
# Line 9571 | Line 6814 | if test x$DOT = x; then
6814  
6815   if test x$DOT = x; then
6816          if test "x$enable_dot" = xyes; then
6817 <                as_fn_error "could not find dot" "$LINENO" 5
6817 >                as_fn_error $? "could not find dot" "$LINENO" 5
6818          fi
6819          enable_dot=no
6820   else
# Line 9593 | Line 6836 | fi
6836  
6837  
6838  
9596
9597
9598
6839   ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/integrators/Makefile src/applications/atom2md/Makefile scripts/filepp"
6840  
6841  
# Line 9663 | Line 6903 | if diff "$cache_file" confcache >/dev/null 2>&1; then
6903       :end' >>confcache
6904   if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6905    if test -w "$cache_file"; then
6906 <    test "x$cache_file" != "x/dev/null" &&
6906 >    if test "x$cache_file" != "x/dev/null"; then
6907        { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6908   $as_echo "$as_me: updating cache $cache_file" >&6;}
6909 <    cat confcache >$cache_file
6909 >      if test ! -f "$cache_file" || test -h "$cache_file"; then
6910 >        cat confcache >"$cache_file"
6911 >      else
6912 >        case $cache_file in #(
6913 >        */* | ?:*)
6914 >          mv -f confcache "$cache_file"$$ &&
6915 >          mv -f "$cache_file"$$ "$cache_file" ;; #(
6916 >        *)
6917 >          mv -f confcache "$cache_file" ;;
6918 >        esac
6919 >      fi
6920 >    fi
6921    else
6922      { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6923   $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
# Line 9682 | Line 6933 | ac_ltlibobjs=
6933  
6934   ac_libobjs=
6935   ac_ltlibobjs=
6936 + U=
6937   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6938    # 1. Remove the extension, and $U if already installed.
6939    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
# Line 9697 | Line 6949 | LTLIBOBJS=$ac_ltlibobjs
6949  
6950  
6951  
6952 < : ${CONFIG_STATUS=./config.status}
6952 > : "${CONFIG_STATUS=./config.status}"
6953   ac_write_fail=0
6954   ac_clean_files_save=$ac_clean_files
6955   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
# Line 9798 | Line 7050 | IFS=" ""       $as_nl"
7050   IFS=" ""        $as_nl"
7051  
7052   # Find who we are.  Look in the path if we contain no directory separator.
7053 + as_myself=
7054   case $0 in #((
7055    *[\\/]* ) as_myself=$0 ;;
7056    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
# Line 9843 | Line 7096 | export LANGUAGE
7096   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7097  
7098  
7099 < # as_fn_error ERROR [LINENO LOG_FD]
7100 < # ---------------------------------
7099 > # as_fn_error STATUS ERROR [LINENO LOG_FD]
7100 > # ----------------------------------------
7101   # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7102   # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7103 < # script with status $?, using 1 if that was 0.
7103 > # script with STATUS, using 1 if that was 0.
7104   as_fn_error ()
7105   {
7106 <  as_status=$?; test $as_status -eq 0 && as_status=1
7107 <  if test "$3"; then
7108 <    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 <    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7106 >  as_status=$1; test $as_status -eq 0 && as_status=1
7107 >  if test "$4"; then
7108 >    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7109 >    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7110    fi
7111 <  $as_echo "$as_me: error: $1" >&2
7111 >  $as_echo "$as_me: error: $2" >&2
7112    as_fn_exit $as_status
7113   } # as_fn_error
7114  
# Line 10051 | Line 7304 | $as_echo X"$as_dir" |
7304        test -d "$as_dir" && break
7305      done
7306      test -z "$as_dirs" || eval "mkdir $as_dirs"
7307 <  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7307 >  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7308  
7309  
7310   } # as_fn_mkdir_p
# Line 10104 | Line 7357 | ac_log="
7357   # report actual input values of CONFIG_FILES etc. instead of their
7358   # values after options handling.
7359   ac_log="
7360 < This file was extended by OpenMD $as_me 1.0, which was
7361 < generated by GNU Autoconf 2.65.  Invocation command line was
7360 > This file was extended by OpenMD $as_me 2.0, which was
7361 > generated by GNU Autoconf 2.68.  Invocation command line was
7362  
7363    CONFIG_FILES    = $CONFIG_FILES
7364    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 10166 | Line 7419 | ac_cs_version="\\
7419   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7420   ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7421   ac_cs_version="\\
7422 < OpenMD config.status 1.0
7423 < configured by $0, generated by GNU Autoconf 2.65,
7422 > OpenMD config.status 2.0
7423 > configured by $0, generated by GNU Autoconf 2.68,
7424    with options \\"\$ac_cs_config\\"
7425  
7426 < Copyright (C) 2009 Free Software Foundation, Inc.
7426 > Copyright (C) 2010 Free Software Foundation, Inc.
7427   This config.status script is free software; the Free Software Foundation
7428   gives unlimited permission to copy, distribute and modify it."
7429  
# Line 10186 | Line 7439 | do
7439   while test $# != 0
7440   do
7441    case $1 in
7442 <  --*=*)
7442 >  --*=?*)
7443      ac_option=`expr "X$1" : 'X\([^=]*\)='`
7444      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7445      ac_shift=:
7446      ;;
7447 +  --*=)
7448 +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7449 +    ac_optarg=
7450 +    ac_shift=:
7451 +    ;;
7452    *)
7453      ac_option=$1
7454      ac_optarg=$2
# Line 10212 | Line 7470 | do
7470      $ac_shift
7471      case $ac_optarg in
7472      *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 +    '') as_fn_error $? "missing file argument" ;;
7474      esac
7475      as_fn_append CONFIG_FILES " '$ac_optarg'"
7476      ac_need_defaults=false;;
# Line 10224 | Line 7483 | do
7483      ac_need_defaults=false;;
7484    --he | --h)
7485      # Conflict between --help and --header
7486 <    as_fn_error "ambiguous option: \`$1'
7486 >    as_fn_error $? "ambiguous option: \`$1'
7487   Try \`$0 --help' for more information.";;
7488    --help | --hel | -h )
7489      $as_echo "$ac_cs_usage"; exit ;;
# Line 10233 | Line 7492 | Try \`$0 --help' for more information.";;
7492      ac_cs_silent=: ;;
7493  
7494    # This is an error.
7495 <  -*) as_fn_error "unrecognized option: \`$1'
7495 >  -*) as_fn_error $? "unrecognized option: \`$1'
7496   Try \`$0 --help' for more information." ;;
7497  
7498    *) as_fn_append ac_config_targets " $1"
# Line 10290 | Line 7549 | do
7549      "src/applications/atom2md/Makefile") CONFIG_FILES="$CONFIG_FILES src/applications/atom2md/Makefile" ;;
7550      "scripts/filepp") CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
7551  
7552 <  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7552 >  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7553    esac
7554   done
7555  
# Line 10312 | Line 7571 | $debug ||
7571   # after its creation but before its name has been assigned to `$tmp'.
7572   $debug ||
7573   {
7574 <  tmp=
7574 >  tmp= ac_tmp=
7575    trap 'exit_status=$?
7576 <  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7576 >  : "${ac_tmp:=$tmp}"
7577 >  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7578   ' 0
7579    trap 'as_fn_exit 1' 1 2 13 15
7580   }
# Line 10322 | Line 7582 | $debug ||
7582  
7583   {
7584    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7585 <  test -n "$tmp" && test -d "$tmp"
7585 >  test -d "$tmp"
7586   }  ||
7587   {
7588    tmp=./conf$$-$RANDOM
7589    (umask 077 && mkdir "$tmp")
7590 < } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7590 > } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7591 > ac_tmp=$tmp
7592  
7593   # Set up the scripts for CONFIG_FILES section.
7594   # No need to generate them if there are no CONFIG_FILES.
# Line 10344 | Line 7605 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7605   fi
7606   ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7607   if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7608 <  ac_cs_awk_cr='\r'
7608 >  ac_cs_awk_cr='\\r'
7609   else
7610    ac_cs_awk_cr=$ac_cr
7611   fi
7612  
7613 < echo 'BEGIN {' >"$tmp/subs1.awk" &&
7613 > echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7614   _ACEOF
7615  
7616  
# Line 10358 | Line 7619 | _ACEOF
7619    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7620    echo "_ACEOF"
7621   } >conf$$subs.sh ||
7622 <  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7623 < ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7622 >  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7623 > ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7624   ac_delim='%!_!# '
7625   for ac_last_try in false false false false false :; do
7626    . ./conf$$subs.sh ||
7627 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7627 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7628  
7629    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7630    if test $ac_delim_n = $ac_delim_num; then
7631      break
7632    elif $ac_last_try; then
7633 <    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7633 >    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7634    else
7635      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7636    fi
# Line 10377 | Line 7638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7638   rm -f conf$$subs.sh
7639  
7640   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 < cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7641 > cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7642   _ACEOF
7643   sed -n '
7644   h
# Line 10425 | Line 7686 | _ACAWK
7686   rm -f conf$$subs.awk
7687   cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7688   _ACAWK
7689 < cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7689 > cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7690    for (key in S) S_is_set[key] = 1
7691    FS = ""
7692  
# Line 10457 | Line 7718 | else
7718    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7719   else
7720    cat
7721 < fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7722 <  || as_fn_error "could not setup config files machinery" "$LINENO" 5
7721 > fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7722 >  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7723   _ACEOF
7724  
7725 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
7726 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7725 > # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7726 > # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7727   # trailing colons and then remove the whole line if VPATH becomes empty
7728   # (actually we leave an empty line to preserve line numbers).
7729   if test "x$srcdir" = x.; then
7730 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7731 < s/:*\$(srcdir):*/:/
7732 < s/:*\${srcdir}:*/:/
7733 < s/:*@srcdir@:*/:/
7734 < s/^\([^=]*=[     ]*\):*/\1/
7730 >  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7731 > h
7732 > s///
7733 > s/^/:/
7734 > s/[      ]*$/:/
7735 > s/:\$(srcdir):/:/g
7736 > s/:\${srcdir}:/:/g
7737 > s/:@srcdir@:/:/g
7738 > s/^:*//
7739   s/:*$//
7740 + x
7741 + s/\(=[   ]*\).*/\1/
7742 + G
7743 + s/\n//
7744   s/^[^=]*=[       ]*$//
7745   }'
7746   fi
# Line 10483 | Line 7752 | if test -n "$CONFIG_HEADERS"; then
7752   # No need to generate them if there are no CONFIG_HEADERS.
7753   # This happens for instance with `./config.status Makefile'.
7754   if test -n "$CONFIG_HEADERS"; then
7755 < cat >"$tmp/defines.awk" <<\_ACAWK ||
7755 > cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7756   BEGIN {
7757   _ACEOF
7758  
# Line 10495 | Line 7764 | for ac_last_try in false false :; do
7764   # handling of long lines.
7765   ac_delim='%!_!# '
7766   for ac_last_try in false false :; do
7767 <  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7768 <  if test -z "$ac_t"; then
7767 >  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7768 >  if test -z "$ac_tt"; then
7769      break
7770    elif $ac_last_try; then
7771 <    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7771 >    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7772    else
7773      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7774    fi
# Line 10584 | Line 7853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7853   _ACAWK
7854   _ACEOF
7855   cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856 <  as_fn_error "could not setup config headers machinery" "$LINENO" 5
7856 >  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7857   fi # test -n "$CONFIG_HEADERS"
7858  
7859  
# Line 10597 | Line 7866 | do
7866    esac
7867    case $ac_mode$ac_tag in
7868    :[FHL]*:*);;
7869 <  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7869 >  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7870    :[FH]-) ac_tag=-:-;;
7871    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7872    esac
# Line 10616 | Line 7885 | do
7885      for ac_f
7886      do
7887        case $ac_f in
7888 <      -) ac_f="$tmp/stdin";;
7888 >      -) ac_f="$ac_tmp/stdin";;
7889        *) # Look for the file first in the build tree, then in the source tree
7890           # (if the path is not absolute).  The absolute path cannot be DOS-style,
7891           # because $ac_f cannot contain `:'.
# Line 10625 | Line 7894 | do
7894             [\\/$]*) false;;
7895             *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7896             esac ||
7897 <           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7897 >           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7898        esac
7899        case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7900        as_fn_append ac_file_inputs " '$ac_f'"
# Line 10651 | Line 7920 | $as_echo "$as_me: creating $ac_file" >&6;}
7920      esac
7921  
7922      case $ac_tag in
7923 <    *:-:* | *:-) cat >"$tmp/stdin" \
7924 <      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7923 >    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7924 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7925      esac
7926      ;;
7927    esac
# Line 10782 | Line 8051 | $ac_datarootdir_hack
8051   s&@INSTALL@&$ac_INSTALL&;t t
8052   $ac_datarootdir_hack
8053   "
8054 < eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8055 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8054 > eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8055 >  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8056  
8057   test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8058 <  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8059 <  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8058 >  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8059 >  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8060 >      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8062 < which seems to be undefined.  Please make sure it is defined." >&5
8062 > which seems to be undefined.  Please make sure it is defined" >&5
8063   $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8064 < which seems to be undefined.  Please make sure it is defined." >&2;}
8064 > which seems to be undefined.  Please make sure it is defined" >&2;}
8065  
8066 <  rm -f "$tmp/stdin"
8066 >  rm -f "$ac_tmp/stdin"
8067    case $ac_file in
8068 <  -) cat "$tmp/out" && rm -f "$tmp/out";;
8069 <  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8068 >  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8069 >  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8070    esac \
8071 <  || as_fn_error "could not create $ac_file" "$LINENO" 5
8071 >  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8072   ;;
8073    :H)
8074    #
# Line 10807 | Line 8077 | which seems to be undefined.  Please make sure it is d
8077    if test x"$ac_file" != x-; then
8078      {
8079        $as_echo "/* $configure_input  */" \
8080 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8081 <    } >"$tmp/config.h" \
8082 <      || as_fn_error "could not create $ac_file" "$LINENO" 5
8083 <    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8080 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8081 >    } >"$ac_tmp/config.h" \
8082 >      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8083 >    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8084        { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8085   $as_echo "$as_me: $ac_file is unchanged" >&6;}
8086      else
8087        rm -f "$ac_file"
8088 <      mv "$tmp/config.h" "$ac_file" \
8089 <        || as_fn_error "could not create $ac_file" "$LINENO" 5
8088 >      mv "$ac_tmp/config.h" "$ac_file" \
8089 >        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8090      fi
8091    else
8092      $as_echo "/* $configure_input  */" \
8093 <      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8094 <      || as_fn_error "could not create -" "$LINENO" 5
8093 >      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8094 >      || as_fn_error $? "could not create -" "$LINENO" 5
8095    fi
8096   ;;
8097  
# Line 10846 | Line 8116 | test $ac_write_fail = 0 ||
8116   ac_clean_files=$ac_clean_files_save
8117  
8118   test $ac_write_fail = 0 ||
8119 <  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8119 >  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8120  
8121  
8122   # configure is writing to config.log, and then calls config.status.
# Line 10867 | Line 8137 | if test "$no_create" != yes; then
8137    exec 5>>config.log
8138    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8139    # would make configure fail if this is the last instruction.
8140 <  $ac_cs_success || as_fn_exit $?
8140 >  $ac_cs_success || as_fn_exit 1
8141   fi
8142   if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines