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 1396 by gezelter, Sat Dec 5 02:57:05 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 < ac_ct_FC
657 < FCFLAGS
658 < FC
651 > LIBDL
652   ac_ct_CC
653   CFLAGS
654   CC
# Line 743 | Line 736 | CFLAGS
736   CCC
737   CC
738   CFLAGS
746 FC
747 FCFLAGS
739   MPICXX
740   MPICC
750 MPIFC
741   CPP
742   CXXCPP'
743  
# Line 812 | 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 858 | 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 884 | 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 1088 | 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 1104 | 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 1134 | 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 1143 | 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 1153 | 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 1161 | 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 1190 | 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 1204 | 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 1220 | 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 1261 | 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 1291 | 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 1305 | 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 1356 | 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 1398 | 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
1401  FC          Fortran compiler command
1402  FCFLAGS     Fortran compiler flags
1392    MPICXX      MPI C++ compiler command
1393    MPICC       MPI C compiler command
1405  MPIFC       MPI Fortran compiler command
1394    CPP         C preprocessor
1395    CXXCPP      C++ preprocessor
1396  
# Line 1472 | 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 1519 | 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 1557 | 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
1564
1565 # ac_fn_fc_try_compile LINENO
1566 # ---------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_fc_try_compile ()
1569 {
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext
1572  if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_compile") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588         test -z "$ac_fc_werror_flag" ||
1589         test ! -s conftest.err
1590       } && test -s conftest.$ac_objext; then :
1591  ac_retval=0
1592 else
1593  $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1552  
1596        ac_retval=1
1597 fi
1598  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599  as_fn_set_status $ac_retval
1600
1601 } # ac_fn_fc_try_compile
1602
1553   # ac_fn_cxx_try_link LINENO
1554   # -------------------------
1555   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1641 | 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 1654 | 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 1709 | 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 1754 | 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 1767 | 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 1822 | 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
1828
1829 # ac_fn_fc_try_link LINENO
1830 # ------------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_fc_try_link ()
1833 {
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  rm -f conftest.$ac_objext conftest$ac_exeext
1836  if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_link") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } && {
1852         test -z "$ac_fc_werror_flag" ||
1853         test ! -s conftest.err
1854       } && test -s conftest$ac_exeext && {
1855         test "$cross_compiling" = yes ||
1856         $as_test_x conftest$ac_exeext
1857       }; then :
1858  ac_retval=0
1859 else
1860  $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863        ac_retval=1
1864 fi
1865  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867  # interfere with the next link command; also delete a directory that is
1868  # left behind by Apple's compiler.  We do this before executing the actions.
1869  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871  as_fn_set_status $ac_retval
1778  
1873 } # ac_fn_fc_try_link
1874
1779   # ac_fn_c_try_cpp LINENO
1780   # ----------------------
1781   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1893 | 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 1904 | 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 1917 | 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 1956 | 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 1979 | 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
1983 < ## ------------------------------ ##
1886 > ( $as_echo "## ------------------------------ ##
1887   ## Report this to gezelter@nd.edu ##
1888 < ## ------------------------------ ##
1986 < _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 1998 | 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 2039 | 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 2053 | 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 2071 | 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 2096 | 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 2107 | 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 2120 | 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 2159 | 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 2182 | 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
2186 < ## ------------------------------ ##
2087 > ( $as_echo "## ------------------------------ ##
2088   ## Report this to gezelter@nd.edu ##
2089 < ## ------------------------------ ##
2189 < _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 2201 | 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 2214 | 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
2224 #ifdef FC_DUMMY_MAIN
2225 #ifndef FC_DUMMY_MAIN_EQ_F77
2226 #  ifdef __cplusplus
2227     extern "C"
2228 #  endif
2229   int FC_DUMMY_MAIN() { return 1; }
2230 #endif
2231 #endif
2124   int
2125   main ()
2126   {
# Line 2242 | Line 2134 | $4
2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135   /* end confdefs.h.  */
2136   $4
2245 #ifdef FC_DUMMY_MAIN
2246 #ifndef FC_DUMMY_MAIN_EQ_F77
2247 #  ifdef __cplusplus
2248     extern "C"
2249 #  endif
2250   int FC_DUMMY_MAIN() { return 1; }
2251 #endif
2252 #endif
2137   int
2138   main ()
2139   {
# Line 2271 | 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 2389 | Line 2273 | trap 'exit_status=$?
2273    {
2274      echo
2275  
2276 <    cat <<\_ASBOX
2393 < ## ---------------- ##
2276 >    $as_echo "## ---------------- ##
2277   ## Cache variables. ##
2278 < ## ---------------- ##
2396 < _ASBOX
2278 > ## ---------------- ##"
2279      echo
2280      # The following way of writing the cache mishandles newlines in values,
2281   (
# Line 2427 | Line 2309 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2309   )
2310      echo
2311  
2312 <    cat <<\_ASBOX
2431 < ## ----------------- ##
2312 >    $as_echo "## ----------------- ##
2313   ## Output variables. ##
2314 < ## ----------------- ##
2434 < _ASBOX
2314 > ## ----------------- ##"
2315      echo
2316      for ac_var in $ac_subst_vars
2317      do
# Line 2444 | Line 2324 | _ASBOX
2324      echo
2325  
2326      if test -n "$ac_subst_files"; then
2327 <      cat <<\_ASBOX
2448 < ## ------------------- ##
2327 >      $as_echo "## ------------------- ##
2328   ## File substitutions. ##
2329 < ## ------------------- ##
2451 < _ASBOX
2329 > ## ------------------- ##"
2330        echo
2331        for ac_var in $ac_subst_files
2332        do
# Line 2462 | Line 2340 | _ASBOX
2340      fi
2341  
2342      if test -s confdefs.h; then
2343 <      cat <<\_ASBOX
2466 < ## ----------- ##
2343 >      $as_echo "## ----------- ##
2344   ## confdefs.h. ##
2345 < ## ----------- ##
2469 < _ASBOX
2345 > ## ----------- ##"
2346        echo
2347        cat confdefs.h
2348        echo
# Line 2521 | 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 2536 | 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 2612 | 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 2627 | 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 2676 | Line 2567 | ac_config_headers="$ac_config_headers src/config.h"
2567  
2568  
2569  
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2570   #
2571   #
2572   #
# Line 2707 | Line 2580 | ac_config_headers="$ac_config_headers src/config.h"
2580  
2581  
2582  
2710 # AC_F90_MODULE_NAMES
2711 # -------------------
2712 #
2713 # Figure out how the Fortran 90 compiler constructs module file names
2714 #
2715 # AC_F90_MODULE_NAMES
2583  
2584  
2585  
# Line 2893 | 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 2931 | 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 2946 | 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 3040 | 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 3084 | 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 3247 | 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
3252 < 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 3291 | 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 3349 | 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 3362 | 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 3402 | 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 3413 | 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 3450 | 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 3544 | 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 3588 | 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 3640 | 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 3670 | 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 3707 | 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 3785 | 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 3746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3748  
3749 < ac_ext=${ac_fc_srcext-f}
3750 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
3751 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
3752 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3753 < if test -n "$ac_tool_prefix"; then
3754 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3755 <  do
3756 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3758 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 < $as_echo_n "checking for $ac_word... " >&6; }
3760 < if test "${ac_cv_prog_FC+set}" = set; then :
3749 >
3750 > save_CXX=$CXX
3751 > save_CC=$CC
3752 > save_LIBS=$LIBS
3753 >
3754 > ac_ext=cpp
3755 > ac_cpp='$CXXCPP $CPPFLAGS'
3756 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 >
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 ${ac_cv_lib_c_dlopen+:} false; then :
3764    $as_echo_n "(cached) " >&6
3765   else
3766 <  if test -n "$FC"; then
3767 <  ac_cv_prog_FC="$FC" # Let the user override the test.
3768 < else
3769 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 < for as_dir in $PATH
3902 < do
3903 <  IFS=$as_save_IFS
3904 <  test -z "$as_dir" && as_dir=.
3905 <    for ac_exec_ext in '' $ac_executable_extensions; do
3906 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
3908 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 <    break 2
3910 <  fi
3911 < done
3912 <  done
3913 < IFS=$as_save_IFS
3766 >  ac_check_lib_save_LIBS=$LIBS
3767 > LIBS="-lc  $LIBS"
3768 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 > /* end confdefs.h.  */
3770  
3771 < fi
3772 < fi
3773 < FC=$ac_cv_prog_FC
3774 < if test -n "$FC"; then
3775 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
3776 < $as_echo "$FC" >&6; }
3771 > /* Override any GCC internal prototype to avoid an error.
3772 >   Use char because int might match the return type of a GCC
3773 >   builtin and then its argument prototype would still apply.  */
3774 > #ifdef __cplusplus
3775 > extern "C"
3776 > #endif
3777 > char dlopen ();
3778 > int
3779 > main ()
3780 > {
3781 > return dlopen ();
3782 >  ;
3783 >  return 0;
3784 > }
3785 > _ACEOF
3786 > if ac_fn_cxx_try_link "$LINENO"; then :
3787 >  ac_cv_lib_c_dlopen=yes
3788   else
3789 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 < $as_echo "no" >&6; }
3789 >  ac_cv_lib_c_dlopen=no
3790   fi
3791 <
3792 <
3793 <    test -n "$FC" && break
3928 <  done
3791 > rm -f core conftest.err conftest.$ac_objext \
3792 >    conftest$ac_exeext conftest.$ac_ext
3793 > LIBS=$ac_check_lib_save_LIBS
3794   fi
3795 < if test -z "$FC"; then
3796 <  ac_ct_FC=$FC
3797 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
3798 < do
3934 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3935 < set dummy $ac_prog; ac_word=$2
3936 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 < $as_echo_n "checking for $ac_word... " >&6; }
3938 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
3939 <  $as_echo_n "(cached) " >&6
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" = xyes; then :
3798 >  LIBDL=""
3799   else
3800 <  if test -n "$ac_ct_FC"; then
3801 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
3802 < else
3944 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 < for as_dir in $PATH
3946 < do
3947 <  IFS=$as_save_IFS
3948 <  test -z "$as_dir" && as_dir=.
3949 <    for ac_exec_ext in '' $ac_executable_extensions; do
3950 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 <    ac_cv_prog_ac_ct_FC="$ac_prog"
3952 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 <    break 2
3954 <  fi
3955 < done
3956 <  done
3957 < IFS=$as_save_IFS
3958 <
3959 < fi
3960 < fi
3961 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
3962 < if test -n "$ac_ct_FC"; then
3963 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
3964 < $as_echo "$ac_ct_FC" >&6; }
3965 < else
3966 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 < $as_echo "no" >&6; }
3968 < fi
3969 <
3970 <
3971 <  test -n "$ac_ct_FC" && break
3972 < done
3973 <
3974 <  if test "x$ac_ct_FC" = x; then
3975 <    FC=""
3976 <  else
3977 <    case $cross_compiling:$ac_tool_warned in
3978 < yes:)
3979 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 < ac_tool_warned=yes ;;
3982 < esac
3983 <    FC=$ac_ct_FC
3984 <  fi
3985 < fi
3986 <
3987 <
3988 < # Provide some information about the compiler.
3989 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
3990 < set X $ac_compile
3991 < ac_compiler=$2
3992 < for ac_option in --version -v -V -qversion; do
3993 <  { { ac_try="$ac_compiler $ac_option >&5"
3994 < case "(($ac_try" in
3995 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 <  *) ac_try_echo=$ac_try;;
3997 < esac
3998 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 < $as_echo "$ac_try_echo"; } >&5
4000 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4001 <  ac_status=$?
4002 <  if test -s conftest.err; then
4003 <    sed '10a\
4004 < ... rest of stderr output deleted ...
4005 <         10q' conftest.err >conftest.er1
4006 <    cat conftest.er1 >&5
4007 <  fi
4008 <  rm -f conftest.er1 conftest.err
4009 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 <  test $ac_status = 0; }
4011 < done
4012 < rm -f a.out
4013 <
4014 < # If we don't use `.F' as extension, the preprocessor is not run on the
4015 < # input file.  (Note that this only needs to work for GNU compilers.)
4016 < ac_save_ext=$ac_ext
4017 < ac_ext=F
4018 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4019 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4020 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
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 ${ac_cv_lib_dl_dlopen+:} false; then :
3803    $as_echo_n "(cached) " >&6
3804   else
3805 <  cat > conftest.$ac_ext <<_ACEOF
3806 <      program main
3807 < #ifndef __GNUC__
3808 <       choke me
4027 < #endif
3805 >  ac_check_lib_save_LIBS=$LIBS
3806 > LIBS="-ldl  $LIBS"
3807 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 > /* end confdefs.h.  */
3809  
3810 <      end
3810 > /* Override any GCC internal prototype to avoid an error.
3811 >   Use char because int might match the return type of a GCC
3812 >   builtin and then its argument prototype would still apply.  */
3813 > #ifdef __cplusplus
3814 > extern "C"
3815 > #endif
3816 > char dlopen ();
3817 > int
3818 > main ()
3819 > {
3820 > return dlopen ();
3821 >  ;
3822 >  return 0;
3823 > }
3824   _ACEOF
3825 < if ac_fn_fc_try_compile "$LINENO"; then :
3826 <  ac_compiler_gnu=yes
3825 > if ac_fn_cxx_try_link "$LINENO"; then :
3826 >  ac_cv_lib_dl_dlopen=yes
3827   else
3828 <  ac_compiler_gnu=no
3828 >  ac_cv_lib_dl_dlopen=no
3829   fi
3830 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
3832 <
3830 > rm -f core conftest.err conftest.$ac_objext \
3831 >    conftest$ac_exeext conftest.$ac_ext
3832 > LIBS=$ac_check_lib_save_LIBS
3833   fi
3834 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
3835 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
3836 < ac_ext=$ac_save_ext
3837 < ac_test_FCFLAGS=${FCFLAGS+set}
4044 < ac_save_FCFLAGS=$FCFLAGS
4045 < FCFLAGS=
4046 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4047 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
4048 < if test "${ac_cv_prog_fc_g+set}" = set; then :
4049 <  $as_echo_n "(cached) " >&6
4050 < else
4051 <  FCFLAGS=-g
4052 < cat > conftest.$ac_ext <<_ACEOF
4053 <      program main
4054 <
4055 <      end
4056 < _ACEOF
4057 < if ac_fn_fc_try_compile "$LINENO"; then :
4058 <  ac_cv_prog_fc_g=yes
4059 < else
4060 <  ac_cv_prog_fc_g=no
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" = xyes; then :
3837 >  LIBDL="-ldl"
3838   fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839  
3840   fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4066 $as_echo "$ac_cv_prog_fc_g" >&6; }
4067 if test "$ac_test_FCFLAGS" = set; then
4068  FCFLAGS=$ac_save_FCFLAGS
4069 elif test $ac_cv_prog_fc_g = yes; then
4070  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4071    FCFLAGS="-g -O2"
4072  else
4073    FCFLAGS="-g"
4074  fi
4075 else
4076  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4077    FCFLAGS="-O2"
4078  else
4079    FCFLAGS=
4080  fi
4081 fi
3841  
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842  
3843  
4090 save_CXX=$CXX
4091 save_CC=$CC
4092 save_FC=$FC
4093 save_LIBS=$LIBS
3844  
4095 ac_ext=cpp
4096 ac_cpp='$CXXCPP $CPPFLAGS'
4097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3845  
3846  
3847  
4103
4104
4105
4106
3848          for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3849   do
3850    # Extract the first word of "$ac_prog", so it can be a program name with args.
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 4154 | 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 4163 | 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 4197 | 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 4205 | 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 4239 | 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 4305 | 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 4349 | 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 4358 | 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 4392 | 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 4400 | 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 4434 | 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 4474 | Line 4215 | $as_echo "$as_me: WARNING: No suitable C MPI implement
4215          USE_MPI="no"
4216         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&5
4217   $as_echo "$as_me: WARNING: No suitable C MPI implementation found. openmd_MPI will not be built." >&2;}
4477        :
4478 else
4479        USE_MPI="yes"
4480        :
4481 fi
4482
4483
4484 fi
4485
4486 if test $USE_MPI != no; then :
4487
4488 ac_ext=${ac_fc_srcext-f}
4489 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4490 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4491 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4492
4493
4494
4495
4496
4497
4498        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4499 do
4500  # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if test "${ac_cv_prog_MPIFC+set}" = set; then :
4505  $as_echo_n "(cached) " >&6
4506 else
4507  if test -n "$MPIFC"; then
4508  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513  IFS=$as_save_IFS
4514  test -z "$as_dir" && as_dir=.
4515    for ac_exec_ext in '' $ac_executable_extensions; do
4516  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517    ac_cv_prog_MPIFC="$ac_prog"
4518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519    break 2
4520  fi
4521 done
4522  done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 MPIFC=$ac_cv_prog_MPIFC
4528 if test -n "$MPIFC"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4530 $as_echo "$MPIFC" >&6; }
4531 else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537  test -n "$MPIFC" && break
4538 done
4539 test -n "$MPIFC" || MPIFC="$FC"
4540
4541        ax_mpi_save_FC="$FC"
4542        FC="$MPIFC"
4543
4544
4545
4546 if test x = x"$MPILIBS"; then
4547        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4548 $as_echo_n "checking for MPI_Init... " >&6; }
4549                        cat > conftest.$ac_ext <<_ACEOF
4550      program main
4551      call MPI_Init
4552      end
4553 _ACEOF
4554 if ac_fn_fc_try_link "$LINENO"; then :
4555  MPILIBS=" "
4556                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558 else
4559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext \
4563    conftest$ac_exeext conftest.$ac_ext
4564 fi
4565
4566        if test x = x"$MPILIBS"; then
4567                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
4568 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
4569 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
4570  $as_echo_n "(cached) " >&6
4571 else
4572  ac_check_lib_save_LIBS=$LIBS
4573 LIBS="-lfmpi  $LIBS"
4574 cat > conftest.$ac_ext <<_ACEOF
4575      program main
4576      call MPI_Init
4577      end
4578 _ACEOF
4579 if ac_fn_fc_try_link "$LINENO"; then :
4580  ac_cv_lib_fmpi_MPI_Init=yes
4581 else
4582  ac_cv_lib_fmpi_MPI_Init=no
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext \
4585    conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
4589 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
4590 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
4591  MPILIBS="-lfmpi"
4592 fi
4593
4594        fi
4595        if test x = x"$MPILIBS"; then
4596                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
4597 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
4598 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
4599  $as_echo_n "(cached) " >&6
4600 else
4601  ac_check_lib_save_LIBS=$LIBS
4602 LIBS="-lmpichf90  $LIBS"
4603 cat > conftest.$ac_ext <<_ACEOF
4604      program main
4605      call MPI_Init
4606      end
4607 _ACEOF
4608 if ac_fn_fc_try_link "$LINENO"; then :
4609  ac_cv_lib_mpichf90_MPI_Init=yes
4610 else
4611  ac_cv_lib_mpichf90_MPI_Init=no
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext \
4614    conftest$ac_exeext conftest.$ac_ext
4615 LIBS=$ac_check_lib_save_LIBS
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
4618 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
4619 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
4620  MPILIBS="-lmpichf90"
4621 fi
4622
4623        fi
4624
4625 if test x = x"$MPILIBS"; then
4626        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
4627 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
4628 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
4629  $as_echo_n "(cached) " >&6
4630 else
4631  ac_check_lib_save_LIBS=$LIBS
4632 LIBS="-lmpi  $LIBS"
4633 cat > conftest.$ac_ext <<_ACEOF
4634      program main
4635      call MPI_Init
4636      end
4637 _ACEOF
4638 if ac_fn_fc_try_link "$LINENO"; then :
4639  ac_cv_lib_mpi_MPI_Init=yes
4640 else
4641  ac_cv_lib_mpi_MPI_Init=no
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext \
4644    conftest$ac_exeext conftest.$ac_ext
4645 LIBS=$ac_check_lib_save_LIBS
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
4648 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
4649 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
4650  MPILIBS="-lmpi"
4651 fi
4652
4653 fi
4654 if test x = x"$MPILIBS"; then
4655        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
4656 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
4657 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
4658  $as_echo_n "(cached) " >&6
4659 else
4660  ac_check_lib_save_LIBS=$LIBS
4661 LIBS="-lmpich  $LIBS"
4662 cat > conftest.$ac_ext <<_ACEOF
4663      program main
4664      call MPI_Init
4665      end
4666 _ACEOF
4667 if ac_fn_fc_try_link "$LINENO"; then :
4668  ac_cv_lib_mpich_MPI_Init=yes
4669 else
4670  ac_cv_lib_mpich_MPI_Init=no
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext \
4673    conftest$ac_exeext conftest.$ac_ext
4674 LIBS=$ac_check_lib_save_LIBS
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
4677 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
4678 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
4679  MPILIBS="-lmpich"
4680 fi
4681
4682 fi
4683
4684 if test x != x"$MPILIBS"; then
4685        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4686 $as_echo_n "checking for mpif.h... " >&6; }
4687        cat > conftest.$ac_ext <<_ACEOF
4688      program main
4689      include 'mpif.h'
4690      end
4691 _ACEOF
4692 if ac_fn_fc_try_compile "$LINENO"; then :
4693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694 $as_echo "yes" >&6; }
4695 else
4696  MPILIBS=""
4697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 fi
4702
4703 FC="$ax_mpi_save_FC"
4704
4705
4706
4707 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4708 if test x = x"$MPILIBS"; then
4709        USE_MPI="no"
4710       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&5
4711 $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. openmd_MPI will not be built." >&2;}
4218          :
4219   else
4220          USE_MPI="yes"
# Line 4721 | Line 4227 | if test $USE_MPI != no; then :
4227  
4228          CXX=$MPICXX
4229          CC=$MPICC
4724        FC=$MPIFC
4230          LIBS="$MPILIBS $LIBS"
4231  
4232   else
4233  
4234          CXX=$save_CXX
4235          CC=$save_CC
4731        FC=$save_FC
4236          LIBS=$save_LIBS
4237  
4238  
# Line 4748 | 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 4778 | 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 4794 | 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 4837 | 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 4853 | 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 4923 | 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 4937 | 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 4989 | 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 5017 | 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 5025 | 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 5049 | 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 5089 | 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 5141 | 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 5191 | 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 5217 | 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 5273 | 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 5358 | 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 5457 | 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 5469 | Line 4985 | fi
4985   rm -f confcache
4986    exit 1
4987   fi
5472 # Extract the first word of "ps", so it can be a program name with args.
5473 set dummy ps; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_path_PS+set}" = set; then :
5477  $as_echo_n "(cached) " >&6
5478 else
5479  case $PS in
5480  [\\/]* | ?:[\\/]*)
5481  ac_cv_path_PS="$PS" # Let the user override the test with a path.
5482  ;;
5483  *)
5484  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487  IFS=$as_save_IFS
5488  test -z "$as_dir" && as_dir=.
5489    for ac_exec_ext in '' $ac_executable_extensions; do
5490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493    break 2
5494  fi
5495 done
5496  done
5497 IFS=$as_save_IFS
5498
5499  ;;
5500 esac
5501 fi
5502 PS=$ac_cv_path_PS
5503 if test -n "$PS"; then
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
5505 $as_echo "$PS" >&6; }
5506 else
5507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
5513 $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
5514 if test "${ac_cv_prog_ps_syntax+set}" = set; then :
5515  $as_echo_n "(cached) " >&6
5516 else
5517
5518        if $PS ax -o rss > /dev/null 2>&1; then
5519                ac_cv_prog_ps_ax=yes
5520        else
5521                ac_cv_prog_ps_ax=no
5522        fi
5523        if $PS -ef -o rss > /dev/null 2>&1; then
5524                ac_cv_prog_ps_ef=yes
5525        else
5526                ac_cv_prog_ps_ef=no
5527        fi
5528        if test "$ac_cv_prog_ps_ax" = yes; then
5529                ac_cv_prog_ps_syntax=BSD
5530        else
5531                if test "$ac_cv_prog_ps_ef" = yes; then
5532                        ac_cv_prog_ps_syntax=POSIX
5533                else
5534                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
5535                fi
5536        fi
5537
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
5540 $as_echo "$ac_cv_prog_ps_syntax" >&6; }
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define PSCOMMAND $PS
5544 _ACEOF
5545
5546 if test "$ac_cv_prog_ps_syntax" = BSD; then
5547
5548 $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
5549
5550 else
5551   if test "$ac_cv_prog_ps_syntax" = POSIX; then
5552
5553 $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
5554
5555   else
5556       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
5557   fi
5558 fi
5559
5560 ac_ext=${ac_fc_srcext-f}
5561 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5562 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5564
5565 ac_ext=${ac_fc_srcext-f}
5566 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5567 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
5570 $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
5571 if test "${ac_cv_fc_srcext_F90+set}" = set; then :
5572  $as_echo_n "(cached) " >&6
5573 else
5574  ac_ext=F90
5575 ac_fcflags_srcext_save=$ac_fcflags_srcext
5576 ac_fcflags_srcext=
5577 ac_cv_fc_srcext_F90=unknown
5578 for ac_flag in none -qsuffix=f=F90 -Tf; do
5579  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
5580  cat > conftest.$ac_ext <<_ACEOF
5581      program main
5582
5583      end
5584 _ACEOF
5585 if ac_fn_fc_try_compile "$LINENO"; then :
5586  ac_cv_fc_srcext_F90=$ac_flag; break
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 done
5590 rm -f conftest.$ac_objext conftest.F90
5591 ac_fcflags_srcext=$ac_fcflags_srcext_save
5592
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
5595 $as_echo "$ac_cv_fc_srcext_F90" >&6; }
5596 if test "x$ac_cv_fc_srcext_F90" = xunknown; then
5597  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
5598 else
5599  ac_fc_srcext=F90
5600  if test "x$ac_cv_fc_srcext_F90" = xnone; then
5601    ac_fcflags_srcext=""
5602    FCFLAGS_F90=""
5603  else
5604    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
5605    FCFLAGS_F90=$ac_cv_fc_srcext_F90
5606  fi
5607
5608
5609 fi
5610 ac_ext=${ac_fc_srcext-f}
5611 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5612 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5613 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5614
5615
5616
5617
5618
5619 # Try to determine native compiler flags that allow us to use F90 suffix
5620 # for preprocessed f90 source.
5621
5622 if test "$ac_test_PREPFLAG" != "set"; then
5623  PREPFLAG=""
5624  case "${host_cpu}-${host_os}" in
5625
5626  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5627                    PREPFLAG="-fpp1 "
5628                fi;;
5629  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5630                    PREPFLAG="-qsuffix=cpp=F90 "
5631                fi;;
5632  *darwin*)
5633        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5634                PREPFLAG="-qsuffix=cpp=F90 "
5635        fi;;
5636  esac
5637
5638  if test -z "$PREPFLAG"; then
5639        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
5640 $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
5641        PREPFLAG=""
5642  fi
5643
5644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
5645 $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
5646
5647  ac_ext=${ac_fc_srcext-f}
5648 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5649 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5650 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5651
5652  ac_save_ext=$ac_ext
5653  ac_ext=F90
5654  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
5655
5656  if test "$PREPFLAG"; then :
5657  FCFLAGS_SRCEXT="${PREPFLAG}"
5658 fi
5659    cat > conftest.$ac_ext <<_ACEOF
5660
5661
5662 program conftest
5663  integer :: i
5664  i = 1
5665 end program conftest
5666
5667 _ACEOF
5668 if ac_fn_fc_try_compile "$LINENO"; then :
5669  prepflagworks=1
5670 else
5671  prepflagworks=0
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674
5675  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
5676  ac_ext=$ac_save_ext
5677  ac_ext=${ac_fc_srcext-f}
5678 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5679 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5681
5682
5683  if test "$prepflagworks" = 1; then
5684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685 $as_echo "yes" >&6; }
5686    FCFLAGS_SRCEXT="${PREPFLAG}"
5687
5688  else
5689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 $as_echo "no" >&6; }
5691    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
5692  fi
5693 fi
5694
5695
5696
5697
5698
5699 # Try to determine native compiler flags that allow us to use F90 suffix
5700 # for preprocessed f90 source with -D type defines
5701
5702 if test "$ac_test_PREPDEFFLAG" != "set"; then
5703  PREPDEFFLAG=""
5704  case "${host_cpu}-${host_os}" in
5705
5706  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
5707                    PREPDEFFLAG=" "
5708                fi;;
5709  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
5710                    PREPDEFFLAG="-WF,"
5711                fi;;
5712  *darwin*)
5713        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
5714                PREPDEFFLAG="-WF,"
5715        fi;;
5716  esac
5717
5718  if test -z "$PREPDEFFLAG"; then
5719        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
5720 $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
5721        PREPDEFFLAG=" "
5722  fi
5723
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
5725 $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
5726
5727  ac_ext=${ac_fc_srcext-f}
5728 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5729 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5731
5732  ac_save_ext=$ac_ext
5733  ac_ext=F90
5734  ac_save_FCFLAGS=$FCFLAGS
5735
5736  if test "$PREPDEFFLAG"; then :
5737  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
5738 fi
5739    cat > conftest.$ac_ext <<_ACEOF
5740
5741
5742 program conftest
5743  integer :: i
5744 #ifdef TEST
5745  i = 1
5746 #else
5747  choke me
5748 #endif
5749 end program conftest
5750
5751 _ACEOF
5752 if ac_fn_fc_try_compile "$LINENO"; then :
5753  prepdefflagworks=1
5754 else
5755  prepdefflagworks=0
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758
5759  FCFLAGS=$ac_save_FCFLAGS
5760  ac_ext=$ac_save_ext
5761  ac_ext=${ac_fc_srcext-f}
5762 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5763 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5765
5766
5767  if test "$prepdefflagworks" = 1; then
5768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5769 $as_echo "yes" >&6; }
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 define flag" "$LINENO" 5
5775  fi
5776 fi
5777
5778 ac_ext=${ac_fc_srcext-f}
5779 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
5780 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
5783 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
5784 if test "${ac_cv_prog_fc_v+set}" = set; then :
5785  $as_echo_n "(cached) " >&6
5786 else
5787  cat > conftest.$ac_ext <<_ACEOF
5788      program main
5789
5790      end
5791 _ACEOF
5792 if ac_fn_fc_try_compile "$LINENO"; then :
5793  ac_cv_prog_fc_v=
5794 # Try some options frequently used verbose output
5795 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
5796  cat > conftest.$ac_ext <<_ACEOF
5797      program main
5798
5799      end
5800 _ACEOF
5801
5802 # Compile and link our simple test program by passing a flag (argument
5803 # 1 to this macro) to the Fortran compiler in order to get
5804 # "verbose" output that we can then parse for the Fortran linker
5805 # flags.
5806 ac_save_FCFLAGS=$FCFLAGS
5807 FCFLAGS="$FCFLAGS $ac_verb"
5808 eval "set x $ac_link"
5809 shift
5810 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5811 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5812 # LIBRARY_PATH; skip all such settings.
5813 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5814  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5815 $as_echo "$ac_fc_v_output" >&5
5816 FCFLAGS=$ac_save_FCFLAGS
5817
5818 rm -rf conftest*
5819
5820 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5821 # /foo, /bar, and /baz are search directories for the Fortran linker.
5822 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5823 ac_fc_v_output="`echo $ac_fc_v_output |
5824        grep 'LPATH is:' |
5825        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5826
5827 # FIXME: we keep getting bitten by quoted arguments; a more general fix
5828 #        that detects unbalanced quotes in FLIBS should be implemented
5829 #        and (ugh) tested at some point.
5830 case $ac_fc_v_output in
5831  # If we are using xlf then replace all the commas with spaces.
5832  *xlfentry*)
5833    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5834
5835  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5836  # $LIBS confuse us, and the libraries appear later in the output anyway).
5837  *mGLOB_options_string*)
5838    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5839
5840  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5841  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5842  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5843  *-cmdline\ * | *-ignore\ * | *-def\ *)
5844    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5845        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5846        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5847        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5848
5849  # If we are using Cray Fortran then delete quotes.
5850  *cft90*)
5851    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5852 esac
5853
5854
5855  # look for -l* and *.a constructs in the output
5856  for ac_arg in $ac_fc_v_output; do
5857     case $ac_arg in
5858        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
5859          ac_cv_prog_fc_v=$ac_verb
5860          break 2 ;;
5861     esac
5862  done
5863 done
5864 if test -z "$ac_cv_prog_fc_v"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
5866 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
5867 fi
5868 else
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
5870 $as_echo "$as_me: WARNING: compilation failed" >&2;}
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
5874 fi
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
5876 $as_echo "$ac_cv_prog_fc_v" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
5878 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
5879 if test "${ac_cv_fc_libs+set}" = set; then :
5880  $as_echo_n "(cached) " >&6
5881 else
5882  if test "x$FCLIBS" != "x"; then
5883  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
5884 else
5885
5886 cat > conftest.$ac_ext <<_ACEOF
5887      program main
5888
5889      end
5890 _ACEOF
5891
5892 # Compile and link our simple test program by passing a flag (argument
5893 # 1 to this macro) to the Fortran compiler in order to get
5894 # "verbose" output that we can then parse for the Fortran linker
5895 # flags.
5896 ac_save_FCFLAGS=$FCFLAGS
5897 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
5898 eval "set x $ac_link"
5899 shift
5900 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
5901 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
5902 # LIBRARY_PATH; skip all such settings.
5903 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
5904  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
5905 $as_echo "$ac_fc_v_output" >&5
5906 FCFLAGS=$ac_save_FCFLAGS
5907
5908 rm -rf conftest*
5909
5910 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
5911 # /foo, /bar, and /baz are search directories for the Fortran linker.
5912 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
5913 ac_fc_v_output="`echo $ac_fc_v_output |
5914        grep 'LPATH is:' |
5915        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
5916
5917 # FIXME: we keep getting bitten by quoted arguments; a more general fix
5918 #        that detects unbalanced quotes in FLIBS should be implemented
5919 #        and (ugh) tested at some point.
5920 case $ac_fc_v_output in
5921  # If we are using xlf then replace all the commas with spaces.
5922  *xlfentry*)
5923    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
5924
5925  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
5926  # $LIBS confuse us, and the libraries appear later in the output anyway).
5927  *mGLOB_options_string*)
5928    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
5929
5930  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
5931  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
5932  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
5933  *-cmdline\ * | *-ignore\ * | *-def\ *)
5934    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
5935        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
5936        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
5937        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
5938
5939  # If we are using Cray Fortran then delete quotes.
5940  *cft90*)
5941    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
5942 esac
5943
5944
5945
5946 ac_cv_fc_libs=
5947
5948 # Save positional arguments (if any)
5949 ac_save_positional="$@"
5950
5951 set X $ac_fc_v_output
5952 while test $# != 1; do
5953  shift
5954  ac_arg=$1
5955  case $ac_arg in
5956        [\\/]*.a | ?:[\\/]*.a)
5957            ac_exists=false
5958  for ac_i in $ac_cv_fc_libs; do
5959    if test x"$ac_arg" = x"$ac_i"; then
5960      ac_exists=true
5961      break
5962    fi
5963  done
5964
5965  if test x"$ac_exists" = xtrue; then :
5966
5967 else
5968  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5969 fi
5970          ;;
5971        -bI:*)
5972            ac_exists=false
5973  for ac_i in $ac_cv_fc_libs; do
5974    if test x"$ac_arg" = x"$ac_i"; then
5975      ac_exists=true
5976      break
5977    fi
5978  done
5979
5980  if test x"$ac_exists" = xtrue; then :
5981
5982 else
5983  if test "$ac_compiler_gnu" = yes; then
5984  for ac_link_opt in $ac_arg; do
5985    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5986  done
5987 else
5988  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5989 fi
5990 fi
5991          ;;
5992          # Ignore these flags.
5993        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
5994          |-LANG:=* | -LIST:* | -LNO:*)
5995          ;;
5996        -lkernel32)
5997          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5998          ;;
5999        -[LRuYz])
6000          # These flags, when seen by themselves, take an argument.
6001          # We remove the space between option and argument and re-iterate
6002          # unless we find an empty arg or a new option (starting with -)
6003          case $2 in
6004             "" | -*);;
6005             *)
6006                ac_arg="$ac_arg$2"
6007                shift; shift
6008                set X $ac_arg "$@"
6009                ;;
6010          esac
6011          ;;
6012        -YP,*)
6013          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6014              ac_exists=false
6015  for ac_i in $ac_cv_fc_libs; do
6016    if test x"$ac_j" = x"$ac_i"; then
6017      ac_exists=true
6018      break
6019    fi
6020  done
6021
6022  if test x"$ac_exists" = xtrue; then :
6023
6024 else
6025  ac_arg="$ac_arg $ac_j"
6026                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6027 fi
6028          done
6029          ;;
6030        -[lLR]*)
6031            ac_exists=false
6032  for ac_i in $ac_cv_fc_libs; do
6033    if test x"$ac_arg" = x"$ac_i"; then
6034      ac_exists=true
6035      break
6036    fi
6037  done
6038
6039  if test x"$ac_exists" = xtrue; then :
6040
6041 else
6042  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6043 fi
6044          ;;
6045        -zallextract*| -zdefaultextract)
6046          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6047          ;;
6048          # Ignore everything else.
6049  esac
6050 done
6051 # restore positional arguments
6052 set X $ac_save_positional; shift
6053
6054 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6055 # then we insist that the "run path" must be an absolute path (i.e. it
6056 # must begin with a "/").
6057 case `(uname -sr) 2>/dev/null` in
6058   "SunOS 5"*)
6059      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6060                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6061      test "x$ac_ld_run_path" != x &&
6062        if test "$ac_compiler_gnu" = yes; then
6063  for ac_link_opt in $ac_ld_run_path; do
6064    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6065  done
6066 else
6067  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6068 fi
6069      ;;
6070 esac
6071 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6072
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6075 $as_echo "$ac_cv_fc_libs" >&6; }
6076 FCLIBS="$ac_cv_fc_libs"
6077
6078
6079 ac_ext=${ac_fc_srcext-f}
6080 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6081 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6082 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6083
6084 ac_ext=${ac_fc_srcext-f}
6085 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6086 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
6090 $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
6091 if test "${ac_cv_fc_dummy_main+set}" = set; then :
6092  $as_echo_n "(cached) " >&6
6093 else
6094  ac_fc_dm_save_LIBS=$LIBS
6095 LIBS="$LIBS $FCLIBS"
6096 ac_fortran_dm_var=FC_DUMMY_MAIN
6097 ac_ext=c
6098 ac_cpp='$CPP $CPPFLAGS'
6099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6102
6103 # First, try linking without a dummy main:
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h.  */
6106
6107 #ifdef FC_DUMMY_MAIN
6108 #ifndef FC_DUMMY_MAIN_EQ_F77
6109 #  ifdef __cplusplus
6110     extern "C"
6111 #  endif
6112   int FC_DUMMY_MAIN() { return 1; }
6113 #endif
6114 #endif
6115 int
6116 main ()
6117 {
6118
6119  ;
6120  return 0;
6121 }
6122 _ACEOF
6123 if ac_fn_c_try_link "$LINENO"; then :
6124  ac_cv_fortran_dummy_main=none
6125 else
6126  ac_cv_fortran_dummy_main=unknown
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext \
6129    conftest$ac_exeext conftest.$ac_ext
6130
6131 if test $ac_cv_fortran_dummy_main = unknown; then
6132   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
6133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135 #define $ac_fortran_dm_var $ac_func
6136 #ifdef FC_DUMMY_MAIN
6137 #ifndef FC_DUMMY_MAIN_EQ_F77
6138 #  ifdef __cplusplus
6139     extern "C"
6140 #  endif
6141   int FC_DUMMY_MAIN() { return 1; }
6142 #endif
6143 #endif
6144 int
6145 main ()
6146 {
6147
6148  ;
6149  return 0;
6150 }
6151 _ACEOF
6152 if ac_fn_c_try_link "$LINENO"; then :
6153  ac_cv_fortran_dummy_main=$ac_func; break
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156    conftest$ac_exeext conftest.$ac_ext
6157   done
6158 fi
6159 ac_ext=${ac_fc_srcext-f}
6160 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6161 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6163 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
6164 rm -rf conftest*
6165 LIBS=$ac_fc_dm_save_LIBS
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
6169 $as_echo "$ac_cv_fc_dummy_main" >&6; }
6170 FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
6171 if test "$FC_DUMMY_MAIN" != unknown; then :
6172  if test $FC_DUMMY_MAIN != none; then
6173
6174 cat >>confdefs.h <<_ACEOF
6175 #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
6176 _ACEOF
6177
6178  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
6179
6180 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
6181
6182  fi
6183 fi
6184 else
6185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6187 as_fn_error "linking to Fortran libraries from C fails
6188 See \`config.log' for more details." "$LINENO" 5; }
6189 fi
6190
6191 ac_ext=${ac_fc_srcext-f}
6192 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6193 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6195
6196 ac_ext=${ac_fc_srcext-f}
6197 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6198 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
6201 $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
6202 if test "${ac_cv_fc_mangling+set}" = set; then :
6203  $as_echo_n "(cached) " >&6
6204 else
6205  cat > conftest.$ac_ext <<_ACEOF
6206      subroutine foobar()
6207      return
6208      end
6209      subroutine foo_bar()
6210      return
6211      end
6212 _ACEOF
6213 if ac_fn_fc_try_compile "$LINENO"; then :
6214  mv conftest.$ac_objext cfortran_test.$ac_objext
6215
6216  ac_save_LIBS=$LIBS
6217  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
6218
6219  ac_ext=c
6220 ac_cpp='$CPP $CPPFLAGS'
6221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224  ac_success=no
6225  for ac_foobar in foobar FOOBAR; do
6226    for ac_underscore in "" "_"; do
6227      ac_func="$ac_foobar$ac_underscore"
6228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h.  */
6230
6231 /* Override any GCC internal prototype to avoid an error.
6232   Use char because int might match the return type of a GCC
6233   builtin and then its argument prototype would still apply.  */
6234 #ifdef __cplusplus
6235 extern "C"
6236 #endif
6237 char $ac_func ();
6238 #ifdef FC_DUMMY_MAIN
6239 #ifndef FC_DUMMY_MAIN_EQ_F77
6240 #  ifdef __cplusplus
6241     extern "C"
6242 #  endif
6243   int FC_DUMMY_MAIN() { return 1; }
6244 #endif
6245 #endif
6246 int
6247 main ()
6248 {
6249 return $ac_func ();
6250  ;
6251  return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255  ac_success=yes; break 2
6256 fi
6257 rm -f core conftest.err conftest.$ac_objext \
6258    conftest$ac_exeext conftest.$ac_ext
6259    done
6260  done
6261  ac_ext=${ac_fc_srcext-f}
6262 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6263 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6265
6266  if test "$ac_success" = "yes"; then
6267     case $ac_foobar in
6268        foobar)
6269           ac_case=lower
6270           ac_foo_bar=foo_bar
6271           ;;
6272        FOOBAR)
6273           ac_case=upper
6274           ac_foo_bar=FOO_BAR
6275           ;;
6276     esac
6277
6278     ac_ext=c
6279 ac_cpp='$CPP $CPPFLAGS'
6280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283     ac_success_extra=no
6284     for ac_extra in "" "_"; do
6285        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
6286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h.  */
6288
6289 /* Override any GCC internal prototype to avoid an error.
6290   Use char because int might match the return type of a GCC
6291   builtin and then its argument prototype would still apply.  */
6292 #ifdef __cplusplus
6293 extern "C"
6294 #endif
6295 char $ac_func ();
6296 #ifdef FC_DUMMY_MAIN
6297 #ifndef FC_DUMMY_MAIN_EQ_F77
6298 #  ifdef __cplusplus
6299     extern "C"
6300 #  endif
6301   int FC_DUMMY_MAIN() { return 1; }
6302 #endif
6303 #endif
6304 int
6305 main ()
6306 {
6307 return $ac_func ();
6308  ;
6309  return 0;
6310 }
6311 _ACEOF
6312 if ac_fn_c_try_link "$LINENO"; then :
6313  ac_success_extra=yes; break
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext \
6316    conftest$ac_exeext conftest.$ac_ext
6317     done
6318     ac_ext=${ac_fc_srcext-f}
6319 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6320 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6322
6323     if test "$ac_success_extra" = "yes"; then
6324        ac_cv_fc_mangling="$ac_case case"
6325        if test -z "$ac_underscore"; then
6326           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
6327        else
6328           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
6329        fi
6330        if test -z "$ac_extra"; then
6331           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
6332        else
6333           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
6334        fi
6335      else
6336        ac_cv_fc_mangling="unknown"
6337      fi
6338  else
6339     ac_cv_fc_mangling="unknown"
6340  fi
6341
6342  LIBS=$ac_save_LIBS
6343  rm -rf conftest*
6344  rm -f cfortran_test*
6345 else
6346  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6348 as_fn_error "cannot compile a simple Fortran program
6349 See \`config.log' for more details." "$LINENO" 5; }
6350 fi
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
6355 $as_echo "$ac_cv_fc_mangling" >&6; }
6356
6357 ac_ext=${ac_fc_srcext-f}
6358 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6359 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6361
6362 ac_ext=${ac_fc_srcext-f}
6363 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6364 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6366 case $ac_cv_fc_mangling in
6367  "lower case, no underscore, no extra underscore")
6368          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6369
6370          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
6371 ;;
6372  "lower case, no underscore, extra underscore")
6373          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
6374
6375          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6376 ;;
6377  "lower case, underscore, no extra underscore")
6378          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6379
6380          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
6381 ;;
6382  "lower case, underscore, extra underscore")
6383          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
6384
6385          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
6386 ;;
6387  "upper case, no underscore, no extra underscore")
6388          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6389
6390          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
6391 ;;
6392  "upper case, no underscore, extra underscore")
6393          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
6394
6395          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6396 ;;
6397  "upper case, underscore, no extra underscore")
6398          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6399
6400          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
6401 ;;
6402  "upper case, underscore, extra underscore")
6403          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
6404
6405          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
6406 ;;
6407  *)
6408          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
6409 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
6410          ;;
6411 esac
6412
6413 ac_ext=${ac_fc_srcext-f}
6414 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6415 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6416 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6417
6418
6419
6420 ac_ext=${ac_fc_srcext-f}
6421 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6422 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6423 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
6425 $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
6426 if test "${ac_cv_prog_fc_v+set}" = set; then :
6427  $as_echo_n "(cached) " >&6
6428 else
6429  cat > conftest.$ac_ext <<_ACEOF
6430      program main
6431
6432      end
6433 _ACEOF
6434 if ac_fn_fc_try_compile "$LINENO"; then :
6435  ac_cv_prog_fc_v=
6436 # Try some options frequently used verbose output
6437 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
6438  cat > conftest.$ac_ext <<_ACEOF
6439      program main
6440
6441      end
6442 _ACEOF
6443
6444 # Compile and link our simple test program by passing a flag (argument
6445 # 1 to this macro) to the Fortran compiler in order to get
6446 # "verbose" output that we can then parse for the Fortran linker
6447 # flags.
6448 ac_save_FCFLAGS=$FCFLAGS
6449 FCFLAGS="$FCFLAGS $ac_verb"
6450 eval "set x $ac_link"
6451 shift
6452 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6453 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6454 # LIBRARY_PATH; skip all such settings.
6455 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6456  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6457 $as_echo "$ac_fc_v_output" >&5
6458 FCFLAGS=$ac_save_FCFLAGS
6459
6460 rm -rf conftest*
6461
6462 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6463 # /foo, /bar, and /baz are search directories for the Fortran linker.
6464 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6465 ac_fc_v_output="`echo $ac_fc_v_output |
6466        grep 'LPATH is:' |
6467        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6468
6469 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6470 #        that detects unbalanced quotes in FLIBS should be implemented
6471 #        and (ugh) tested at some point.
6472 case $ac_fc_v_output in
6473  # If we are using xlf then replace all the commas with spaces.
6474  *xlfentry*)
6475    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6476
6477  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6478  # $LIBS confuse us, and the libraries appear later in the output anyway).
6479  *mGLOB_options_string*)
6480    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6481
6482  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6483  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6484  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6485  *-cmdline\ * | *-ignore\ * | *-def\ *)
6486    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6487        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6488        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6489        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6490
6491  # If we are using Cray Fortran then delete quotes.
6492  *cft90*)
6493    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6494 esac
6495
6496
6497  # look for -l* and *.a constructs in the output
6498  for ac_arg in $ac_fc_v_output; do
6499     case $ac_arg in
6500        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
6501          ac_cv_prog_fc_v=$ac_verb
6502          break 2 ;;
6503     esac
6504  done
6505 done
6506 if test -z "$ac_cv_prog_fc_v"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
6508 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
6509 fi
6510 else
6511  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
6512 $as_echo "$as_me: WARNING: compilation failed" >&2;}
6513 fi
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
6518 $as_echo "$ac_cv_prog_fc_v" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
6520 $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
6521 if test "${ac_cv_fc_libs+set}" = set; then :
6522  $as_echo_n "(cached) " >&6
6523 else
6524  if test "x$FCLIBS" != "x"; then
6525  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
6526 else
6527
6528 cat > conftest.$ac_ext <<_ACEOF
6529      program main
6530
6531      end
6532 _ACEOF
6533
6534 # Compile and link our simple test program by passing a flag (argument
6535 # 1 to this macro) to the Fortran compiler in order to get
6536 # "verbose" output that we can then parse for the Fortran linker
6537 # flags.
6538 ac_save_FCFLAGS=$FCFLAGS
6539 FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
6540 eval "set x $ac_link"
6541 shift
6542 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
6543 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
6544 # LIBRARY_PATH; skip all such settings.
6545 ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
6546  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
6547 $as_echo "$ac_fc_v_output" >&5
6548 FCFLAGS=$ac_save_FCFLAGS
6549
6550 rm -rf conftest*
6551
6552 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
6553 # /foo, /bar, and /baz are search directories for the Fortran linker.
6554 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
6555 ac_fc_v_output="`echo $ac_fc_v_output |
6556        grep 'LPATH is:' |
6557        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
6558
6559 # FIXME: we keep getting bitten by quoted arguments; a more general fix
6560 #        that detects unbalanced quotes in FLIBS should be implemented
6561 #        and (ugh) tested at some point.
6562 case $ac_fc_v_output in
6563  # If we are using xlf then replace all the commas with spaces.
6564  *xlfentry*)
6565    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
6566
6567  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
6568  # $LIBS confuse us, and the libraries appear later in the output anyway).
6569  *mGLOB_options_string*)
6570    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
6571
6572  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
6573  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
6574  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
6575  *-cmdline\ * | *-ignore\ * | *-def\ *)
6576    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
6577        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
6578        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
6579        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
6580
6581  # If we are using Cray Fortran then delete quotes.
6582  *cft90*)
6583    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
6584 esac
6585
6586
6587
6588 ac_cv_fc_libs=
6589
6590 # Save positional arguments (if any)
6591 ac_save_positional="$@"
6592
6593 set X $ac_fc_v_output
6594 while test $# != 1; do
6595  shift
6596  ac_arg=$1
6597  case $ac_arg in
6598        [\\/]*.a | ?:[\\/]*.a)
6599            ac_exists=false
6600  for ac_i in $ac_cv_fc_libs; do
6601    if test x"$ac_arg" = x"$ac_i"; then
6602      ac_exists=true
6603      break
6604    fi
6605  done
6606
6607  if test x"$ac_exists" = xtrue; then :
6608
6609 else
6610  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6611 fi
6612          ;;
6613        -bI:*)
6614            ac_exists=false
6615  for ac_i in $ac_cv_fc_libs; do
6616    if test x"$ac_arg" = x"$ac_i"; then
6617      ac_exists=true
6618      break
6619    fi
6620  done
6621
6622  if test x"$ac_exists" = xtrue; then :
6623
6624 else
6625  if test "$ac_compiler_gnu" = yes; then
6626  for ac_link_opt in $ac_arg; do
6627    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6628  done
6629 else
6630  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6631 fi
6632 fi
6633          ;;
6634          # Ignore these flags.
6635        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
6636          |-LANG:=* | -LIST:* | -LNO:*)
6637          ;;
6638        -lkernel32)
6639          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6640          ;;
6641        -[LRuYz])
6642          # These flags, when seen by themselves, take an argument.
6643          # We remove the space between option and argument and re-iterate
6644          # unless we find an empty arg or a new option (starting with -)
6645          case $2 in
6646             "" | -*);;
6647             *)
6648                ac_arg="$ac_arg$2"
6649                shift; shift
6650                set X $ac_arg "$@"
6651                ;;
6652          esac
6653          ;;
6654        -YP,*)
6655          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
6656              ac_exists=false
6657  for ac_i in $ac_cv_fc_libs; do
6658    if test x"$ac_j" = x"$ac_i"; then
6659      ac_exists=true
6660      break
6661    fi
6662  done
6663
6664  if test x"$ac_exists" = xtrue; then :
6665
6666 else
6667  ac_arg="$ac_arg $ac_j"
6668                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
6669 fi
6670          done
6671          ;;
6672        -[lLR]*)
6673            ac_exists=false
6674  for ac_i in $ac_cv_fc_libs; do
6675    if test x"$ac_arg" = x"$ac_i"; then
6676      ac_exists=true
6677      break
6678    fi
6679  done
6680
6681  if test x"$ac_exists" = xtrue; then :
6682
6683 else
6684  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6685 fi
6686          ;;
6687        -zallextract*| -zdefaultextract)
6688          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
6689          ;;
6690          # Ignore everything else.
6691  esac
6692 done
6693 # restore positional arguments
6694 set X $ac_save_positional; shift
6695
6696 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
6697 # then we insist that the "run path" must be an absolute path (i.e. it
6698 # must begin with a "/").
6699 case `(uname -sr) 2>/dev/null` in
6700   "SunOS 5"*)
6701      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
6702                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
6703      test "x$ac_ld_run_path" != x &&
6704        if test "$ac_compiler_gnu" = yes; then
6705  for ac_link_opt in $ac_ld_run_path; do
6706    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
6707  done
6708 else
6709  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
6710 fi
6711      ;;
6712 esac
6713 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
6714
6715 fi
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
6717 $as_echo "$ac_cv_fc_libs" >&6; }
6718 FCLIBS="$ac_cv_fc_libs"
6719
6720
6721 ac_ext=${ac_fc_srcext-f}
6722 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6723 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6725
6726
6727
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
6729 $as_echo_n "checking for module suffix... " >&6; }
6730 rm -f conftest*
6731 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6732 rm -f work*
6733 cat >conftest.$ac_ext <<EOF
6734        module conftest
6735        integer n
6736        parameter (n=1)
6737        end module conftest
6738 EOF
6739 # SGI and absoft compilers generates module name in upper case!
6740 testname="conftest"
6741 modcase="lower"
6742 if (eval $ac_compile) 2>/dev/null ; then
6743    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
6744    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
6745    if test -z "$MOD" ; then
6746        MOD=`ls CONFTEST* 2>/dev/null \
6747                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
6748        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
6749        if test -n "$MOD" ; then
6750            testname="CONFTEST"
6751            modcase="upper"
6752        fi
6753    fi
6754    if test -z "$MOD" ; then
6755        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6756 $as_echo "unknown" >&6; }
6757        # Use mod if we can't figure it out
6758        MOD="mod"
6759    else
6760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
6761 $as_echo "$MOD" >&6; }
6762    fi
6763    if test -s work.pcl ; then
6764        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
6765 $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
6766    fi
6767 else
6768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6769 $as_echo "unknown" >&6; }
6770 fi
6771
6772
6773
6774
6775
6776 # Check for module include path (some use -I, some (Solaris) use -M, some
6777 # (absoft) use -p).
6778 # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
6779 # specified, work.pcl and work.pc are created.  However, if you specify
6780 # a file, it must contain a the name of a file ending in .pc .  Ugh!
6781 # Use the module made above
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
6783 $as_echo_n "checking for module directory path flag... " >&6; }
6784 rm -f conftest*
6785 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
6786 rm -f work*
6787 cat >conftest.$ac_ext <<EOF
6788        module conftest
6789        integer n
6790        parameter (n=1)
6791        end module conftest
6792 EOF
6793 # SGI and absoft compilers generates module name in upper case!
6794 testname="conftest"
6795 if (eval $ac_compile) 2>/dev/null ; then
6796   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
6797   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
6798   if test -n "$mod" ; then
6799      testname="CONFTEST"
6800   fi
6801   madedir=0
6802   if test ! -d conf ; then mkdir conf ; madedir=1; fi
6803   cp $testname.$MOD conf
6804   rm -f conftest* CONFTEST*
6805   cat >conftest1.$ac_ext <<EOF
6806        program main
6807        use conftest
6808        print *, n
6809        end
6810 EOF
6811   F90_WORK_FILES_ARG=""
6812   F90MODINCSPEC=""
6813   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
6814       MODDIRFLAG="-I"
6815       F90MODINCSPEC="-I<dir>"
6816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
6817 $as_echo "-I" >&6; }
6818   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6819       MODDIRFLAG="-M"
6820       F90MODINCSPEC="-M<dir>"
6821       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
6822 $as_echo "-M" >&6; }
6823   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
6824       MODDIRFLAG="-p"
6825       F90MODINCSPEC="-p<dir>"
6826       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
6827 $as_echo "-p" >&6; }
6828   elif test -s work.pc ; then
6829        cp work.pc conf/mpimod.pc
6830        echo "mpimod.pc" > conf/mpimod.pcl
6831        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
6832        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
6833            MODDIRFLAG='-cl,mpimod.pcl'
6834            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
6835 $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
6836            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
6837            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
6838
6839        else
6840            # The version of the Intel compiler that I have refuses to let
6841            # you put the "work catalog" list anywhere but the current
6842            # directory. For example, you cannot in
6843         :
6844        fi
6845   fi
6846   if test -z "MODDIRFLAG" ; then
6847       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
6848 $as_echo "unknown" >&6; }
6849   fi
6850
6851
6852   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
6853   if test $madedir = 1 ; then rmdir conf ; fi
6854 fi
6855
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
6858 $as_echo_n "checking for Fortran 90 module file names... " >&6; }
6859 if test "${ac_cv_f90_module_names+set}" = set; then :
6860  $as_echo_n "(cached) " >&6
6861 else
6862  ac_ext=${ac_fc_srcext-f}
6863 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6864 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6866
6867 # carry out the test in a new directory, so that we don't miss anything
6868 mkdir conftest
6869 cd conftest
6870 cat > conftest.$ac_ext <<_ACEOF
6871 MODULE Bar
6872 END MODULE Bar
6873 _ACEOF
6874 if ac_fn_fc_try_compile "$LINENO"; then :
6875  ac_cv_f90_module_names=
6876 ac_file_list=*
6877 for ac_file in $ac_file_list; do
6878   case $ac_file in
6879      # don't care for original source and object files
6880      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
6881          :
6882          ;;
6883      # look for new files derived from the file name
6884      *conftest*)
6885          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
6886            ac_exists=false
6887  for ac_i in $ac_cv_f90_module_names; do
6888    if test x"$ac_pat" = x"$ac_i"; then
6889      ac_exists=true
6890      break
6891    fi
6892  done
6893
6894  if test x"$ac_exists" = xtrue; then :
6895
6896 else
6897  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6898 fi
6899          ;;
6900      # look for new files derived from the module name,
6901      # with different case translation schemes
6902      *Bar*)
6903          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
6904            ac_exists=false
6905  for ac_i in $ac_cv_f90_module_names; do
6906    if test x"$ac_pat" = x"$ac_i"; then
6907      ac_exists=true
6908      break
6909    fi
6910  done
6911
6912  if test x"$ac_exists" = xtrue; then :
6913
6914 else
6915  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6916 fi
6917          ;;
6918      *bar*)
6919          ac_pat=`echo $ac_file | sed s/bar/%module%/`
6920            ac_exists=false
6921  for ac_i in $ac_cv_f90_module_names; do
6922    if test x"$ac_pat" = x"$ac_i"; then
6923      ac_exists=true
6924      break
6925    fi
6926  done
6927
6928  if test x"$ac_exists" = xtrue; then :
6929
6930 else
6931  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6932 fi
6933          ;;
6934      *BAR*)
6935          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
6936            ac_exists=false
6937  for ac_i in $ac_cv_f90_module_names; do
6938    if test x"$ac_pat" = x"$ac_i"; then
6939      ac_exists=true
6940      break
6941    fi
6942  done
6943
6944  if test x"$ac_exists" = xtrue; then :
6945
6946 else
6947  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
6948 fi
6949          ;;
6950       # Other files - we have no idea how they are generated
6951       *)
6952          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
6953 $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
6954          ;;
6955   esac
6956 done
6957 if test "x$ac_cv_f90_module_names" = "x"; then
6958  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
6959 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6960 fi
6961
6962 else
6963  ac_cv_f90_module_names=
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
6965 $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 cd ..
6969 # cleanup
6970 rm -rf conftest
6971 ac_ext=${ac_fc_srcext-f}
6972 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6973 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6975
6976 fi
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
6978 $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
6979
6980 # We now generate a shell script that will help us to figure out the correct
6981 # module file names, using the value of ac_cv_f90_module_names
6982
6983 echo "Generating shell script modnam"
6984
6985 cat > scripts/modnam << EOF
6986 #! /bin/sh
6987 # This script is auto-generated by configure
6988 #
6989 usage="\\
6990 Usage: \$0 [FILES]
6991
6992 [FILES] are Fortran 90 source files.
6993 The output is a list of module file names that the Fortran 90 compiler
6994 generates when compiling [FILES]."
6995
6996 list=
6997 empty=
6998
6999 if test \$# -eq 0; then
7000   echo "\$usage"; exit 0
7001 fi
7002
7003 while test \$# != 0; do
7004
7005  file=\$1
7006  shift
7007
7008 # strip suffix
7009  base=\`echo \$file | sed 's/[.][^.]*$//'\`
7010
7011  test ! -f \$file && continue
7012
7013 # Look for module definitions and transform them to upper / lower case
7014  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/'\`
7015  upper=\`echo \$mods | tr a-z A-Z\`
7016  lower=\`echo \$mods | tr A-Z a-z\`
7017
7018 # Here, the patterns for generating module file names were inserted by configure
7019  for trans in $ac_cv_f90_module_names; do
7020
7021    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
7022    var=empty
7023    case \$pat in
7024       %MODULE%)
7025          var=upper ;;
7026       %Module%)
7027          var=mods ;;
7028       %module%)
7029          var=lower ;;
7030       %FILE%)
7031          test -n "\$mods" && var=base ;;
7032    esac
7033    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
7034    list="\$list \$new"
7035  done
7036 done
7037
7038 echo \$list
7039 # end of configure-generated script
7040 EOF
7041 chmod 755 scripts/modnam
7042
7043 pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
7044 F90_MODULE_NAMES=empty
7045 case $pat in
7046       %MODULE%)
7047          F90_MODULE_NAMES=UPPER ;;
7048       %Module%)
7049          F90_MODULE_NAMES=Mixed ;;
7050       %module%)
7051          F90_MODULE_NAMES=lower ;;
7052       *)
7053          F90_MODULE_NAMES=unknown ;;
7054 esac
7055
7056 ac_ext=${ac_fc_srcext-f}
7057 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7058 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7059 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7060
7061
7062 ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988  
4989  
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
7070 $as_echo_n "checking for asin in -lm... " >&6; }
7071 if test "${ac_cv_lib_m_asin+set}" = set; then :
7072  $as_echo_n "(cached) " >&6
7073 else
7074  ac_check_lib_save_LIBS=$LIBS
7075 LIBS="-lm  $LIBS"
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078
7079 /* Override any GCC internal prototype to avoid an error.
7080   Use char because int might match the return type of a GCC
7081   builtin and then its argument prototype would still apply.  */
7082 #ifdef __cplusplus
7083 extern "C"
7084 #endif
7085 char asin ();
7086 #ifdef FC_DUMMY_MAIN
7087 #ifndef FC_DUMMY_MAIN_EQ_F77
7088 #  ifdef __cplusplus
7089     extern "C"
7090 #  endif
7091   int FC_DUMMY_MAIN() { return 1; }
7092 #endif
7093 #endif
7094 int
7095 main ()
7096 {
7097 return asin ();
7098  ;
7099  return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"; then :
7103  ac_cv_lib_m_asin=yes
7104 else
7105  ac_cv_lib_m_asin=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext \
7108    conftest$ac_exeext conftest.$ac_ext
7109 LIBS=$ac_check_lib_save_LIBS
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
7112 $as_echo "$ac_cv_lib_m_asin" >&6; }
7113 if test "x$ac_cv_lib_m_asin" = x""yes; then :
7114  cat >>confdefs.h <<_ACEOF
7115 #define HAVE_LIBM 1
7116 _ACEOF
7117
7118  LIBS="-lm $LIBS"
7119
7120 else
7121  exit
7122 fi
7123
7124
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 test "${ac_cv_header_stdc+set}" = set; then :
4992 > if ${ac_cv_header_stdc+:} false; then :
4993    $as_echo_n "(cached) " >&6
4994   else
4995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
# Line 7134 | Line 4999 | else
4999   #include <string.h>
5000   #include <float.h>
5001  
7137 #ifdef FC_DUMMY_MAIN
7138 #ifndef FC_DUMMY_MAIN_EQ_F77
7139 #  ifdef __cplusplus
7140     extern "C"
7141 #  endif
7142   int FC_DUMMY_MAIN() { return 1; }
7143 #endif
7144 #endif
5002   int
5003   main ()
5004   {
# Line 7249 | 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
7253 <   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 7305 | 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 7320 | Line 5176 | char inflateEnd ();
5176   extern "C"
5177   #endif
5178   char inflateEnd ();
7323 #ifdef FC_DUMMY_MAIN
7324 #ifndef FC_DUMMY_MAIN_EQ_F77
7325 #  ifdef __cplusplus
7326     extern "C"
7327 #  endif
7328   int FC_DUMMY_MAIN() { return 1; }
7329 #endif
7330 #endif
5179   int
5180   main ()
5181   {
# Line 7347 | 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 7445 | 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 7460 | Line 5308 | char fftw_execute ();
5308   extern "C"
5309   #endif
5310   char fftw_execute ();
7463 #ifdef FC_DUMMY_MAIN
7464 #ifndef FC_DUMMY_MAIN_EQ_F77
7465 #  ifdef __cplusplus
7466     extern "C"
7467 #  endif
7468   int FC_DUMMY_MAIN() { return 1; }
7469 #endif
7470 #endif
5311   int
5312   main ()
5313   {
# Line 7487 | 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 7504 | 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 7519 | Line 5359 | char fftwnd_one ();
5359   extern "C"
5360   #endif
5361   char fftwnd_one ();
7522 #ifdef FC_DUMMY_MAIN
7523 #ifndef FC_DUMMY_MAIN_EQ_F77
7524 #  ifdef __cplusplus
7525     extern "C"
7526 #  endif
7527   int FC_DUMMY_MAIN() { return 1; }
7528 #endif
7529 #endif
5362   int
5363   main ()
5364   {
# Line 7546 | 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 7563 | 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 7578 | Line 5410 | char fftwnd_one ();
5410   extern "C"
5411   #endif
5412   char fftwnd_one ();
7581 #ifdef FC_DUMMY_MAIN
7582 #ifndef FC_DUMMY_MAIN_EQ_F77
7583 #  ifdef __cplusplus
7584     extern "C"
7585 #  endif
7586   int FC_DUMMY_MAIN() { return 1; }
7587 #endif
7588 #endif
5413   int
5414   main ()
5415   {
# Line 7605 | 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 7704 | 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 7728 | 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 7753 | Line 5577 | char qh_qhull ();
5577   extern "C"
5578   #endif
5579   char qh_qhull ();
7756 #ifdef FC_DUMMY_MAIN
7757 #ifndef FC_DUMMY_MAIN_EQ_F77
7758 #  ifdef __cplusplus
7759     extern "C"
7760 #  endif
7761   int FC_DUMMY_MAIN() { return 1; }
7762 #endif
7763 #endif
5580   int
5581   main ()
5582   {
# Line 7780 | 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 7796 | 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"
7809           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 7842 | 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 7872 | 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 7888 | 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 7931 | 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 7947 | 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 8012 | 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 8020 | 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 8036 | Line 5902 | using namespace OpenBabel;
5902   using namespace std;
5903   using namespace OpenBabel;
5904  
8039 #ifdef FC_DUMMY_MAIN
8040 #ifndef FC_DUMMY_MAIN_EQ_F77
8041 #  ifdef __cplusplus
8042     extern "C"
8043 #  endif
8044   int FC_DUMMY_MAIN() { return 1; }
8045 #endif
8046 #endif
5905   int
5906   main ()
5907   {
# Line 8114 | 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
8118 < $as_echo_n "checking for ANSI C header files... " >&6; }
8119 < if test "${ac_cv_header_stdc+set}" = set; then :
8120 <  $as_echo_n "(cached) " >&6
8121 < else
8122 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 < /* end confdefs.h.  */
8124 < #include <stdlib.h>
8125 < #include <stdarg.h>
8126 < #include <string.h>
8127 < #include <float.h>
8128 <
8129 < #ifdef FC_DUMMY_MAIN
8130 < #ifndef FC_DUMMY_MAIN_EQ_F77
8131 < #  ifdef __cplusplus
8132 <     extern "C"
8133 < #  endif
8134 <   int FC_DUMMY_MAIN() { return 1; }
8135 < #endif
8136 < #endif
8137 < int
8138 < main ()
8139 < {
8140 <
8141 <  ;
8142 <  return 0;
8143 < }
8144 < _ACEOF
8145 < if ac_fn_c_try_compile "$LINENO"; then :
8146 <  ac_cv_header_stdc=yes
8147 < else
8148 <  ac_cv_header_stdc=no
8149 < fi
8150 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 <
8152 < if test $ac_cv_header_stdc = yes; then
8153 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8154 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 < /* end confdefs.h.  */
8156 < #include <string.h>
8157 <
8158 < _ACEOF
8159 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 <  $EGREP "memchr" >/dev/null 2>&1; then :
8161 <
8162 < else
8163 <  ac_cv_header_stdc=no
8164 < fi
8165 < rm -f conftest*
8166 <
8167 < fi
8168 <
8169 < if test $ac_cv_header_stdc = yes; then
8170 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8171 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 < /* end confdefs.h.  */
8173 < #include <stdlib.h>
8174 <
8175 < _ACEOF
8176 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177 <  $EGREP "free" >/dev/null 2>&1; then :
8178 <
8179 < else
8180 <  ac_cv_header_stdc=no
8181 < fi
8182 < rm -f conftest*
8183 <
8184 < fi
8185 <
8186 < if test $ac_cv_header_stdc = yes; then
8187 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8188 <  if test "$cross_compiling" = yes; then :
8189 <  :
8190 < else
8191 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 < /* end confdefs.h.  */
8193 < #include <ctype.h>
8194 < #include <stdlib.h>
8195 < #if ((' ' & 0x0FF) == 0x020)
8196 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8197 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8198 < #else
8199 < # define ISLOWER(c) \
8200 <                   (('a' <= (c) && (c) <= 'i') \
8201 <                     || ('j' <= (c) && (c) <= 'r') \
8202 <                     || ('s' <= (c) && (c) <= 'z'))
8203 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8204 < #endif
8205 <
8206 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8207 < int
8208 < main ()
8209 < {
8210 <  int i;
8211 <  for (i = 0; i < 256; i++)
8212 <    if (XOR (islower (i), ISLOWER (i))
8213 <        || toupper (i) != TOUPPER (i))
8214 <      return 2;
8215 <  return 0;
8216 < }
8217 < _ACEOF
8218 < if ac_fn_c_try_run "$LINENO"; then :
8219 <
8220 < else
8221 <  ac_cv_header_stdc=no
8222 < fi
8223 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8224 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
8225 < fi
8226 <
8227 < fi
8228 < fi
8229 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8230 < $as_echo "$ac_cv_header_stdc" >&6; }
8231 < if test $ac_cv_header_stdc = yes; then
8232 <
8233 < $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8234 <
8235 < fi
8236 <
8237 < 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
8242 <   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 8252 | 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 8284 | 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 8295 | 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];
8298 #       if defined __xlc__ || defined __GNUC__
8299         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8300            reported by James Lemley on 2005-10-05; see
8301            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8302            This test is not quite right, since xlc is allowed to
8303            reject this program, as the initializer for xlcbug is
8304            not one of the forms that C requires support for.
8305            However, doing the test right would require a runtime
8306            test, and that would make cross-compilation harder.
8307            Let us hope that IBM fixes the xlc bug, and also adds
8308            support for this kind of constant expression.  In the
8309            meantime, this test will reject xlc, which is OK, since
8310            our stdbool.h substitute should suffice.  We also test
8311            this with GCC, where it should work, to detect more
8312            quickly whether someone messes up the test in the
8313            future.  */
8314         char digs[] = "0123456789";
8315         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8316 #       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 8321 | Line 6039 | else
6039          _Bool q = true;
6040          _Bool *pq = &q;
6041  
8324 #ifdef FC_DUMMY_MAIN
8325 #ifndef FC_DUMMY_MAIN_EQ_F77
8326 #  ifdef __cplusplus
8327     extern "C"
8328 #  endif
8329   int FC_DUMMY_MAIN() { return 1; }
8330 #endif
8331 #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 8353 | 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 8368 | Line 6079 | fi
6079  
6080   fi
6081  
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8372 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8373 if test "${ac_cv_c_const+set}" = set; then :
8374  $as_echo_n "(cached) " >&6
8375 else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h.  */
8378
8379 #ifdef FC_DUMMY_MAIN
8380 #ifndef FC_DUMMY_MAIN_EQ_F77
8381 #  ifdef __cplusplus
8382     extern "C"
8383 #  endif
8384   int FC_DUMMY_MAIN() { return 1; }
8385 #endif
8386 #endif
8387 int
8388 main ()
8389 {
8390 /* FIXME: Include the comments suggested by Paul. */
8391 #ifndef __cplusplus
8392  /* Ultrix mips cc rejects this.  */
8393  typedef int charset[2];
8394  const charset cs;
8395  /* SunOS 4.1.1 cc rejects this.  */
8396  char const *const *pcpcc;
8397  char **ppc;
8398  /* NEC SVR4.0.2 mips cc rejects this.  */
8399  struct point {int x, y;};
8400  static struct point const zero = {0,0};
8401  /* AIX XL C 1.02.0.0 rejects this.
8402     It does not let you subtract one const X* pointer from another in
8403     an arm of an if-expression whose if-part is not a constant
8404     expression */
8405  const char *g = "string";
8406  pcpcc = &g + (g ? g-g : 0);
8407  /* HPUX 7.0 cc rejects these. */
8408  ++pcpcc;
8409  ppc = (char**) pcpcc;
8410  pcpcc = (char const *const *) ppc;
8411  { /* SCO 3.2v4 cc rejects this.  */
8412    char *t;
8413    char const *s = 0 ? (char *) 0 : (char const *) 0;
8414
8415    *t++ = 0;
8416    if (s) return 0;
8417  }
8418  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8419    int x[] = {25, 17};
8420    const int *foo = &x[0];
8421    ++foo;
8422  }
8423  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8424    typedef const int *iptr;
8425    iptr p = 0;
8426    ++p;
8427  }
8428  { /* AIX XL C 1.02.0.0 rejects this saying
8429       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8430    struct s { int j; const int *ap[3]; };
8431    struct s *b; b->j = 5;
8432  }
8433  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8434    const int foo = 10;
8435    if (!foo) return 0;
8436  }
8437  return !cs[0] && !zero.x;
8438 #endif
8439
8440  ;
8441  return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_compile "$LINENO"; then :
8445  ac_cv_c_const=yes
8446 else
8447  ac_cv_c_const=no
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8452 $as_echo "$ac_cv_c_const" >&6; }
8453 if test $ac_cv_c_const = no; then
8454
8455 $as_echo "#define const /**/" >>confdefs.h
8456
8457 fi
8458
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 8499 | 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 8509 | Line 6132 | fi
6132  
6133   fi
6134  
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8513 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8514 if test "${ac_cv_header_time+set}" = set; then :
8515  $as_echo_n "(cached) " >&6
8516 else
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h.  */
8519 #include <sys/types.h>
8520 #include <sys/time.h>
8521 #include <time.h>
6135  
8523 #ifdef FC_DUMMY_MAIN
8524 #ifndef FC_DUMMY_MAIN_EQ_F77
8525 #  ifdef __cplusplus
8526     extern "C"
8527 #  endif
8528   int FC_DUMMY_MAIN() { return 1; }
8529 #endif
8530 #endif
8531 int
8532 main ()
8533 {
8534 if ((struct tm *) 0)
8535 return 0;
8536  ;
8537  return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541  ac_cv_header_time=yes
8542 else
8543  ac_cv_header_time=no
8544 fi
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8548 $as_echo "$ac_cv_header_time" >&6; }
8549 if test $ac_cv_header_time = yes; then
8550
8551 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8552
8553 fi
8554
8555
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 8568 | 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 8582 | Line 6162 | char *malloc ();
6162   char *malloc ();
6163   #endif
6164  
8585 #ifdef FC_DUMMY_MAIN
8586 #ifndef FC_DUMMY_MAIN_EQ_F77
8587 #  ifdef __cplusplus
8588     extern "C"
8589 #  endif
8590   int FC_DUMMY_MAIN() { return 1; }
8591 #endif
8592 #endif
6165   int
6166   main ()
6167   {
# Line 8632 | 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 8643 | 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 8657 | Line 6229 | char *realloc ();
6229   char *realloc ();
6230   #endif
6231  
8660 #ifdef FC_DUMMY_MAIN
8661 #ifndef FC_DUMMY_MAIN_EQ_F77
8662 #  ifdef __cplusplus
8663     extern "C"
8664 #  endif
8665   int FC_DUMMY_MAIN() { return 1; }
8666 #endif
8667 #endif
6232   int
6233   main ()
6234   {
# Line 8704 | Line 6268 | fi
6268   fi
6269  
6270  
8707 for ac_header in sys/select.h sys/socket.h
8708 do :
8709  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8710 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8711 eval as_val=\$$as_ac_Header
8712   if test "x$as_val" = x""yes; then :
8713  cat >>confdefs.h <<_ACEOF
8714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8715 _ACEOF
8716
8717 fi
8718
8719 done
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
8722 $as_echo_n "checking types of arguments for select... " >&6; }
8723 if test "${ac_cv_func_select_args+set}" = set; then :
8724  $as_echo_n "(cached) " >&6
8725 else
8726  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8727 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8728  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h.  */
8731 $ac_includes_default
8732 #ifdef HAVE_SYS_SELECT_H
8733 # include <sys/select.h>
8734 #endif
8735 #ifdef HAVE_SYS_SOCKET_H
8736 # include <sys/socket.h>
8737 #endif
8738
8739 #ifdef FC_DUMMY_MAIN
8740 #ifndef FC_DUMMY_MAIN_EQ_F77
8741 #  ifdef __cplusplus
8742     extern "C"
8743 #  endif
8744   int FC_DUMMY_MAIN() { return 1; }
8745 #endif
8746 #endif
8747 int
8748 main ()
8749 {
8750 extern int select ($ac_arg1,
8751                                            $ac_arg234, $ac_arg234, $ac_arg234,
8752                                            $ac_arg5);
8753  ;
8754  return 0;
8755 }
8756 _ACEOF
8757 if ac_fn_c_try_compile "$LINENO"; then :
8758  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761  done
8762 done
8763 done
8764 # Provide a safe default value.
8765 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
8769 $as_echo "$ac_cv_func_select_args" >&6; }
8770 ac_save_IFS=$IFS; IFS=','
8771 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8772 IFS=$ac_save_IFS
8773 shift
8774
8775 cat >>confdefs.h <<_ACEOF
8776 #define SELECT_TYPE_ARG1 $1
8777 _ACEOF
8778
8779
8780 cat >>confdefs.h <<_ACEOF
8781 #define SELECT_TYPE_ARG234 ($2)
8782 _ACEOF
8783
8784
8785 cat >>confdefs.h <<_ACEOF
8786 #define SELECT_TYPE_ARG5 ($3)
8787 _ACEOF
8788
8789 rm -f conftest*
8790
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 8849 | 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 8871 | Line 6351 | char pow ();
6351   extern "C"
6352   #endif
6353   char pow ();
8874 #ifdef FC_DUMMY_MAIN
8875 #ifndef FC_DUMMY_MAIN_EQ_F77
8876 #  ifdef __cplusplus
8877     extern "C"
8878 #  endif
8879   int FC_DUMMY_MAIN() { return 1; }
8880 #endif
8881 #endif
6354   int
6355   main ()
6356   {
# Line 8898 | 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 8909 | 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
8917 <   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 8923 | Line 6394 | done
6394   done
6395  
6396  
8926 # special check for _system_configuration because AIX <4.3.2 do not
8927 # contain the `physmem' member.
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
8929 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h.  */
8932 #include <sys/systemcfg.h>
8933 #ifdef FC_DUMMY_MAIN
8934 #ifndef FC_DUMMY_MAIN_EQ_F77
8935 #  ifdef __cplusplus
8936     extern "C"
8937 #  endif
8938   int FC_DUMMY_MAIN() { return 1; }
8939 #endif
8940 #endif
8941 int
8942 main ()
8943 {
8944 double x = _system_configuration.physmem;
8945  ;
8946  return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_c_try_compile "$LINENO"; then :
8950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8951 $as_echo "yes" >&6; }
6397  
8953 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
8954
8955 else
8956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960
8961
6398   case $debug in
6399    1)
6400       ;;
# Line 8968 | Line 6404 | case $debug in
6404  
6405  
6406  
8971 # Try to determine "good" native compiler flags if none specified on command
8972 # line
6407  
8974 if test "$ac_test_FFLAGS" != "set"; then
8975  FCFLAGS=""
8976  case "${host_cpu}-${host_os}" in
8977
8978  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
8979                    FCFLAGS="-O2"
8980                fi;;
8981   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
8982                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8983                fi;;
8984   powerpc*-aix*)
8985        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
8986                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
8987                echo "*******************************************************"
8988                echo "*  You have AIX on an unknown powerpc system.  It is  *"
8989                echo "*  recommended that you use                           *"
8990                echo "*                                                     *"
8991                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
8992                echo "*                                 ^^^                 *"
8993                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
8994                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
8995                echo "*******************************************************"
8996        fi;;
8997   *darwin*)
8998        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
8999                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
9000        fi
9001        if test "$FC" = ifort; then
9002                FCFLAGS="-O2"
9003        fi
9004        if test "$FC" = gfortran; then
9005                FCFLAGS="-Os"
9006        fi;;
9007  esac
9008
9009  if test -z "$FCFLAGS"; then
9010        echo ""
9011        echo "*********************************************************"
9012        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
9013        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9014        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
9015        echo "*********************************************************"
9016        echo ""
9017        FCFLAGS="-O"
9018  fi
9019
9020
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
9022 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
9023 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
9024  $as_echo_n "(cached) " >&6
9025 else
9026
9027
9028 ac_ext=${ac_fc_srcext-f}
9029 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
9030 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
9032
9033 echo 'program main' > conftest.$ac_ext
9034 echo 'end program main' >> conftest.$ac_ext
9035 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
9036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9037  (eval $ac_compile) 2>&5
9038  ac_status=$?
9039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9040  test $ac_status = 0; }; then
9041        ac_cv_ac_cv_guessed_f90flags=yes
9042 else
9043        ac_cv_ac_cv_guessed_f90flags=no
9044 fi
9045 rm -f conftest*
9046 ac_ext=c
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051
9052
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
9055 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
9056 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
9057        :
9058
9059 else
9060        :
9061
9062        echo ""
9063        echo "**********************************************************"
9064        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
9065        echo "* your compiler.                                        *"
9066        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
9067        echo "*********************************************************"
9068        echo ""
9069        FCFLAGS=""
9070
9071 fi
9072
9073
9074 fi
9075
9076
9077
9078
9079
9080
9081
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 9186 | 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 9228 | 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 9324 | 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 9393 | 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 9431 | 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 9440 | 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 9488 | 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 9510 | Line 6836 | fi
6836  
6837  
6838  
9513
9514
9515
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 9580 | 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 9599 | 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 9614 | 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 9715 | 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 9760 | 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 9968 | 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 10021 | 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 10083 | 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 10103 | 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 10129 | 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 10141 | 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 10150 | 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 10207 | 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 10229 | 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 10239 | 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 10261 | 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 10275 | 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 10294 | 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 10342 | 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 10374 | 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 10400 | 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 10412 | 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 10501 | 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 10514 | 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 10533 | 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 10542 | 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 10568 | 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 10699 | 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 10724 | 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 10763 | 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 10784 | 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