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 1379 by gezelter, Thu Oct 22 14:09:13 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.64 for OOPSE 4.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
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
14   # gives unlimited permission to copy, distribute and modify it.
15   ## -------------------- ##
# Line 89 | 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 214 | 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 317 | 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 357 | 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 527 | Line 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537   as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538  
539  
540 < exec 7<&0 </dev/null 6>&1
540 > test -n "$DJDIR" || exec 7<&0 </dev/null
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 547 | Line 558 | MAKEFLAGS=
558   MAKEFLAGS=
559  
560   # Identity of this package.
561 < PACKAGE_NAME='OOPSE'
562 < PACKAGE_TARNAME='oopse'
563 < PACKAGE_VERSION='4.0'
564 < PACKAGE_STRING='OOPSE 4.0'
561 > PACKAGE_NAME='OpenMD'
562 > PACKAGE_TARNAME='openmd'
563 > PACKAGE_VERSION='2.0'
564 > PACKAGE_STRING='OpenMD 2.0'
565   PACKAGE_BUGREPORT='gezelter@nd.edu'
566   PACKAGE_URL=''
567  
568 < ac_unique_file="src/applications/oopse/oopse.cpp"
568 > ac_unique_file="src/applications/openmd/openmd.cpp"
569   ac_default_prefix="/usr/local"
570   # Factoring default headers for most tests.
571   ac_includes_default="\
# Line 594 | Line 605 | SUBDIRS
605  
606   ac_subst_vars='LTLIBOBJS
607   SUBDIRS
608 < OOPSE_HOME
609 < OOPSE
608 > OPENMD_HOME
609 > OPENMD
610   MKINSTALLDIRS
611   BATEXT
612   enable_latex_docs
# Line 621 | Line 632 | ZLIB_INC_DIR
632   ZLIB
633   ZLIB_LIB_DIR
634   ZLIB_INC_DIR
624 F90_MODULE_NAMES
625 F90MODINCSPEC
626 MODDIRFLAG
627 F90_WORK_FILES_ARG
628 MOD
629 FC_FUNC_
630 FC_FUNC
631 FCLIBS
632 PREPDEFFLAG
633 FCFLAGS_SRCEXT
634 FCFLAGS_F90
635 PS
635   AR
636   INSTALL_DATA
637   INSTALL_SCRIPT
# Line 646 | Line 645 | USE_MPI
645   GREP
646   CPP
647   USE_MPI
649 MPIFC
650 ac_ct_FC
651 FCFLAGS
652 FC
648   MPICC
649 + MPILIBS
650 + MPICXX
651 + LIBDL
652   ac_ct_CC
653   CFLAGS
654   CC
657 MPILIBS
658 MPICXX
655   OBJEXT
656   EXEEXT
657   ac_ct_CXX
# Line 663 | Line 659 | CXX
659   LDFLAGS
660   CXXFLAGS
661   CXX
666 ac_fc_path
667 ac_fc_set
668 ac_cxx_path
669 ac_cxx_set
670 ac_cc_path
671 ac_cc_set
662   USE_SINGLE_PRECISION
663   debug
664   PROGNAME
# Line 721 | Line 711 | enable_option_checking
711   ac_subst_files=''
712   ac_user_opts='
713   enable_option_checking
714 < enable_oopse_home
714 > enable_openmd_home
715   enable_debug
716   enable_single
717   enable_float
# Line 744 | Line 734 | CCC
734   LIBS
735   CPPFLAGS
736   CCC
747 MPICXX
737   CC
738   CFLAGS
739 + MPICXX
740   MPICC
751 FC
752 FCFLAGS
753 MPIFC
741   CPP
742   CXXCPP'
743  
# Line 815 | 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 861 | 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 887 | 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 1091 | 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 1107 | 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 1137 | 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 1146 | 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 1156 | 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 1164 | 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 1193 | 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 1207 | 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 1223 | 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 1264 | 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 1294 | 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 OOPSE 4.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 1308 | 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 1342 | Line 1330 | Fine tuning of the installation directories:
1330    --infodir=DIR           info documentation [DATAROOTDIR/info]
1331    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1332    --mandir=DIR            man documentation [DATAROOTDIR/man]
1333 <  --docdir=DIR            documentation root [DATAROOTDIR/doc/oopse]
1333 >  --docdir=DIR            documentation root [DATAROOTDIR/doc/openmd]
1334    --htmldir=DIR           html documentation [DOCDIR]
1335    --dvidir=DIR            dvi documentation [DOCDIR]
1336    --pdfdir=DIR            pdf documentation [DOCDIR]
# Line 1359 | 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 OOPSE 4.0:";;
1350 >     short | recursive ) echo "Configuration of OpenMD 2.0:";;
1351     esac
1352    cat <<\_ACEOF
1353  
# Line 1367 | Line 1355 | Optional Features:
1355    --disable-option-checking  ignore unrecognized --enable/--with options
1356    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358 <  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
1359 <  --enable-debug          Compile OOPSE in debug mode
1360 <  --enable-single         compile OOPSE in single precision
1358 >  --enable-openmd-home=DIR      define OpenMD home dir PREFIX/openmd
1359 >  --enable-debug          Compile OpenMD in debug mode
1360 >  --enable-single         compile OpenMD in single precision
1361    --enable-float          synonym for --enable-single
1362    --enable-doxygen        enable documentation generation with doxygen (auto)
1363    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
# Line 1397 | Line 1385 | Some influential environment variables:
1385    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386                nonstandard directory <lib dir>
1387    LIBS        libraries to pass to the linker, e.g. -l<library>
1388 <  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 >  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389                you have headers in a nonstandard directory <include dir>
1402  MPICXX      MPI C++ compiler command
1390    CC          C compiler command
1391    CFLAGS      C compiler flags
1392 +  MPICXX      MPI C++ compiler command
1393    MPICC       MPI C compiler command
1406  FC          Fortran compiler command
1407  FCFLAGS     Fortran compiler flags
1408  MPIFC       MPI Fortran compiler command
1394    CPP         C preprocessor
1395    CXXCPP      C++ preprocessor
1396  
# Line 1475 | 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 < OOPSE configure 4.0
1464 < generated by GNU Autoconf 2.64
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 1522 | 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;}
1511 <  return $ac_retval
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
1514 +
1515 + # ac_fn_c_try_compile LINENO
1516 + # --------------------------
1517 + # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 + ac_fn_c_try_compile ()
1519 + {
1520 +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 +  rm -f conftest.$ac_objext
1522 +  if { { ac_try="$ac_compile"
1523 + case "(($ac_try" in
1524 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 +  *) ac_try_echo=$ac_try;;
1526 + esac
1527 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 + $as_echo "$ac_try_echo"; } >&5
1529 +  (eval "$ac_compile") 2>conftest.err
1530 +  ac_status=$?
1531 +  if test -s conftest.err; then
1532 +    grep -v '^ *+' conftest.err >conftest.er1
1533 +    cat conftest.er1 >&5
1534 +    mv -f conftest.er1 conftest.err
1535 +  fi
1536 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 +  test $ac_status = 0; } && {
1538 +         test -z "$ac_c_werror_flag" ||
1539 +         test ! -s conftest.err
1540 +       } && test -s conftest.$ac_objext; then :
1541 +  ac_retval=0
1542 + else
1543 +  $as_echo "$as_me: failed program was:" >&5
1544 + sed 's/^/| /' conftest.$ac_ext >&5
1545  
1546 +        ac_retval=1
1547 + fi
1548 +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 +  as_fn_set_status $ac_retval
1550 +
1551 + } # ac_fn_c_try_compile
1552 +
1553   # ac_fn_cxx_try_link LINENO
1554   # -------------------------
1555   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1568 | 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;}
1595 <  return $ac_retval
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
1598  
# Line 1581 | 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 1636 | 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  
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  rm -f conftest.$ac_objext
1650  if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_compile") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } && {
1666         test -z "$ac_c_werror_flag" ||
1667         test ! -s conftest.err
1668       } && test -s conftest.$ac_objext; then :
1669  ac_retval=0
1670 else
1671  $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674        ac_retval=1
1675 fi
1676  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677  return $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1666   # ac_fn_c_try_link LINENO
1667   # -----------------------
1668   # Try to link conftest.$ac_ext, and return whether this succeeded.
# Line 1719 | 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;}
1708 <  return $ac_retval
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
1711  
# Line 1732 | 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 1787 | 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
1793
1794 # ac_fn_fc_try_compile LINENO
1795 # ---------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_fc_try_compile ()
1798 {
1799  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800  rm -f conftest.$ac_objext
1801  if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_compile") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } && {
1817         test -z "$ac_fc_werror_flag" ||
1818         test ! -s conftest.err
1819       } && test -s conftest.$ac_objext; then :
1820  ac_retval=0
1821 else
1822  $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1778  
1825        ac_retval=1
1826 fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  return $ac_retval
1829
1830 } # ac_fn_fc_try_compile
1831
1832 # ac_fn_fc_try_link LINENO
1833 # ------------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_fc_try_link ()
1836 {
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  rm -f conftest.$ac_objext conftest$ac_exeext
1839  if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_link") 2>conftest.err
1847  ac_status=$?
1848  if test -s conftest.err; then
1849    grep -v '^ *+' conftest.err >conftest.er1
1850    cat conftest.er1 >&5
1851    mv -f conftest.er1 conftest.err
1852  fi
1853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854  test $ac_status = 0; } && {
1855         test -z "$ac_fc_werror_flag" ||
1856         test ! -s conftest.err
1857       } && test -s conftest$ac_exeext && {
1858         test "$cross_compiling" = yes ||
1859         $as_test_x conftest$ac_exeext
1860       }; then :
1861  ac_retval=0
1862 else
1863  $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1865
1866        ac_retval=1
1867 fi
1868  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870  # interfere with the next link command; also delete a directory that is
1871  # left behind by Apple's compiler.  We do this before executing the actions.
1872  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874  return $ac_retval
1875
1876 } # ac_fn_fc_try_link
1877
1779   # ac_fn_c_try_cpp LINENO
1780   # ----------------------
1781   # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
# Line 1896 | 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 1907 | 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;}
1812 <  return $ac_retval
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
1815  
# Line 1920 | 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 1959 | 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 1982 | 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
1986 < ## ------------------------------ ##
1886 > ( $as_echo "## ------------------------------ ##
1887   ## Report this to gezelter@nd.edu ##
1888 < ## ------------------------------ ##
1989 < _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 2001 | 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 2042 | 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;}
1945 <  return $ac_retval
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
1948  
# Line 2056 | 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 2074 | 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 2099 | 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 2110 | 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;}
2013 <  return $ac_retval
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
2016  
# Line 2123 | 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 2162 | 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 2185 | 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
2189 < ## ------------------------------ ##
2087 > ( $as_echo "## ------------------------------ ##
2088   ## Report this to gezelter@nd.edu ##
2089 < ## ------------------------------ ##
2192 < _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 2204 | 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 2217 | 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
2227 #ifdef FC_DUMMY_MAIN
2228 #ifndef FC_DUMMY_MAIN_EQ_F77
2229 #  ifdef __cplusplus
2230     extern "C"
2231 #  endif
2232   int FC_DUMMY_MAIN() { return 1; }
2233 #endif
2234 #endif
2124   int
2125   main ()
2126   {
# Line 2245 | Line 2134 | $4
2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135   /* end confdefs.h.  */
2136   $4
2248 #ifdef FC_DUMMY_MAIN
2249 #ifndef FC_DUMMY_MAIN_EQ_F77
2250 #  ifdef __cplusplus
2251     extern "C"
2252 #  endif
2253   int FC_DUMMY_MAIN() { return 1; }
2254 #endif
2255 #endif
2137   int
2138   main ()
2139   {
# Line 2274 | 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 OOPSE $as_me 4.0, which was
2166 < generated by GNU Autoconf 2.64.  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 2392 | Line 2273 | trap 'exit_status=$?
2273    {
2274      echo
2275  
2276 <    cat <<\_ASBOX
2396 < ## ---------------- ##
2276 >    $as_echo "## ---------------- ##
2277   ## Cache variables. ##
2278 < ## ---------------- ##
2399 < _ASBOX
2278 > ## ---------------- ##"
2279      echo
2280      # The following way of writing the cache mishandles newlines in values,
2281   (
# Line 2430 | Line 2309 | $as_echo "$as_me: WARNING: cache variable $ac_var cont
2309   )
2310      echo
2311  
2312 <    cat <<\_ASBOX
2434 < ## ----------------- ##
2312 >    $as_echo "## ----------------- ##
2313   ## Output variables. ##
2314 < ## ----------------- ##
2437 < _ASBOX
2314 > ## ----------------- ##"
2315      echo
2316      for ac_var in $ac_subst_vars
2317      do
# Line 2447 | Line 2324 | _ASBOX
2324      echo
2325  
2326      if test -n "$ac_subst_files"; then
2327 <      cat <<\_ASBOX
2451 < ## ------------------- ##
2327 >      $as_echo "## ------------------- ##
2328   ## File substitutions. ##
2329 < ## ------------------- ##
2454 < _ASBOX
2329 > ## ------------------- ##"
2330        echo
2331        for ac_var in $ac_subst_files
2332        do
# Line 2465 | Line 2340 | _ASBOX
2340      fi
2341  
2342      if test -s confdefs.h; then
2343 <      cat <<\_ASBOX
2469 < ## ----------- ##
2343 >      $as_echo "## ----------- ##
2344   ## confdefs.h. ##
2345 < ## ----------- ##
2472 < _ASBOX
2345 > ## ----------- ##"
2346        echo
2347        cat confdefs.h
2348        echo
# Line 2524 | 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 2535 | Line 2413 | do
2413   for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414   do
2415    test "x$ac_site_file" = xNONE && continue
2416 <  if test -r "$ac_site_file"; then
2416 >  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
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  
2428   if test -r "$cache_file"; then
2429 <  # Some versions of bash will fail to source /dev/null (special
2430 <  # files actually), so we avoid doing that.
2431 <  if test -f "$cache_file"; then
2429 >  # Some versions of bash will fail to source /dev/null (special files
2430 >  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2431 >  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2432      { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2433   $as_echo "$as_me: loading cache $cache_file" >&6;}
2434      case $cache_file in
# Line 2615 | 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 2630 | 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 2653 | Line 2541 | ac_config_headers="$ac_config_headers src/config.h"
2541  
2542  
2543   ac_config_headers="$ac_config_headers src/config.h"
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2544  
2545  
2546  
# Line 2692 | Line 2567 | ac_config_headers="$ac_config_headers src/config.h"
2567  
2568  
2569  
2695
2696
2697
2698
2699
2570   #
2571   #
2572   #
# Line 2710 | Line 2580 | ac_config_headers="$ac_config_headers src/config.h"
2580  
2581  
2582  
2713 # AC_F90_MODULE_NAMES
2714 # -------------------
2715 #
2716 # Figure out how the Fortran 90 compiler constructs module file names
2717 #
2718 # AC_F90_MODULE_NAMES
2583  
2584  
2585  
# Line 2896 | 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 2934 | 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 2949 | 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 2969 | Line 2833 | case $host_os in *\ *) host_os=`echo "$host_os" | sed
2833  
2834  
2835   # set program name
2836 < PROGNAME="oopse"
2836 > PROGNAME="openmd"
2837  
2838  
2839  
2840  
2841   OBJEXT=".$OBJEXT"
2842  
2843 < OOPSE=oopse
2843 > OPENMD=openmd
2844  
2845   if test "x${prefix}" = "xNONE"
2846   then
2847 <  OOPSE_HOME=${ac_default_prefix}/oopse
2847 >  OPENMD_HOME=${ac_default_prefix}/openmd
2848   else
2849 <  OOPSE_HOME=${prefix}/oopse
2849 >  OPENMD_HOME=${prefix}/openmd
2850   fi
2851 < # Check whether --enable-oopse-home was given.
2852 < if test "${enable_oopse_home+set}" = set; then :
2853 <  enableval=$enable_oopse_home; OOPSE_HOME="${enableval}"
2851 > # Check whether --enable-openmd-home was given.
2852 > if test "${enable_openmd_home+set}" = set; then :
2853 >  enableval=$enable_openmd_home; OPENMD_HOME="${enableval}"
2854   fi
2855  
2856  
# Line 3024 | Line 2888 | $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2888   $as_echo "#define SINGLE_PRECISION 1" >>confdefs.h
2889  
2890          USE_SINGLE_PRECISION=yes
3027
3028 fi
3029
3030 if test x"$CC" != x; then
3031   for ac_prog in $CC
3032 do
3033  # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_ac_cc_set+set}" = set; then :
3038  $as_echo_n "(cached) " >&6
3039 else
3040  if test -n "$ac_cc_set"; then
3041  ac_cv_prog_ac_cc_set="$ac_cc_set" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046  IFS=$as_save_IFS
3047  test -z "$as_dir" && as_dir=.
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050    ac_cv_prog_ac_cc_set="$ac_prog"
3051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054 done
3055  done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_cc_set=$ac_cv_prog_ac_cc_set
3061 if test -n "$ac_cc_set"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_set" >&5
3063 $as_echo "$ac_cc_set" >&6; }
3064 else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070  test -n "$ac_cc_set" && break
3071 done
3072 test -n "$ac_cc_set" || ac_cc_set="no"
3073
3074   if test $ac_cc_set != no; then :
3075
3076     # Extract the first word of "$ac_cc_set", so it can be a program name with args.
3077 set dummy $ac_cc_set; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_path_ac_cc_path+set}" = set; then :
3081  $as_echo_n "(cached) " >&6
3082 else
3083  case $ac_cc_path in
3084  [\\/]* | ?:[\\/]*)
3085  ac_cv_path_ac_cc_path="$ac_cc_path" # Let the user override the test with a path.
3086  ;;
3087  *)
3088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_path_ac_cc_path="$as_dir/$ac_word$ac_exec_ext"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099 done
3100  done
3101 IFS=$as_save_IFS
3102
3103  test -z "$ac_cv_path_ac_cc_path" && ac_cv_path_ac_cc_path="no"
3104  ;;
3105 esac
3106 fi
3107 ac_cc_path=$ac_cv_path_ac_cc_path
3108 if test -n "$ac_cc_path"; then
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cc_path" >&5
3110 $as_echo "$ac_cc_path" >&6; }
3111 else
3112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 else
3118
3119     as_fn_error "Specified C compiler $CC doesn't seem to exist!" "$LINENO" 5
3120 fi
3121
3122   if test $ac_cc_path != no; then :
3123
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CC as C compiler" >&5
3125 $as_echo "$as_me: Will attempt to use $CC as C compiler" >&6;}
3126     MPICC=$CC
3127
3128 else
3129
3130     as_fn_error "Can't find path to user-specified C compiler $CC" "$LINENO" 5
3131 fi
3132 fi
3133
3134 if test x"$CXX" != x; then
3135   for ac_prog in $CXX
3136 do
3137  # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_ac_cxx_set+set}" = set; then :
3142  $as_echo_n "(cached) " >&6
3143 else
3144  if test -n "$ac_cxx_set"; then
3145  ac_cv_prog_ac_cxx_set="$ac_cxx_set" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152    for ac_exec_ext in '' $ac_executable_extensions; do
3153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154    ac_cv_prog_ac_cxx_set="$ac_prog"
3155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156    break 2
3157  fi
3158 done
3159  done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 ac_cxx_set=$ac_cv_prog_ac_cxx_set
3165 if test -n "$ac_cxx_set"; then
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_set" >&5
3167 $as_echo "$ac_cxx_set" >&6; }
3168 else
3169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174  test -n "$ac_cxx_set" && break
3175 done
3176 test -n "$ac_cxx_set" || ac_cxx_set="no"
3177
3178   if test $ac_cxx_set != no; then :
3179
3180     # Extract the first word of "$ac_cxx_set", so it can be a program name with args.
3181 set dummy $ac_cxx_set; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_path_ac_cxx_path+set}" = set; then :
3185  $as_echo_n "(cached) " >&6
3186 else
3187  case $ac_cxx_path in
3188  [\\/]* | ?:[\\/]*)
3189  ac_cv_path_ac_cxx_path="$ac_cxx_path" # Let the user override the test with a path.
3190  ;;
3191  *)
3192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197    for ac_exec_ext in '' $ac_executable_extensions; do
3198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199    ac_cv_path_ac_cxx_path="$as_dir/$ac_word$ac_exec_ext"
3200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203 done
3204  done
3205 IFS=$as_save_IFS
3206
3207  test -z "$ac_cv_path_ac_cxx_path" && ac_cv_path_ac_cxx_path="no"
3208  ;;
3209 esac
3210 fi
3211 ac_cxx_path=$ac_cv_path_ac_cxx_path
3212 if test -n "$ac_cxx_path"; then
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cxx_path" >&5
3214 $as_echo "$ac_cxx_path" >&6; }
3215 else
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 fi
3219
3220
3221 else
3222
3223     as_fn_error "Specified C++ compiler $CXX doesn't seem to exist!" "$LINENO" 5
3224 fi
3225
3226   if test $ac_cxx_path != no; then :
3227
3228     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $CXX as C++ compiler" >&5
3229 $as_echo "$as_me: Will attempt to use $CXX as C++ compiler" >&6;}
3230     MPICXX=$CXX
3231
3232 else
3233
3234     as_fn_error "Can't find path to user-specified C++ compiler $CXX" "$LINENO" 5
3235 fi
3236 fi
3237
3238 if test x"$FC" != x; then
3239   for ac_prog in $FC
3240 do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_fc_set+set}" = set; then :
3246  $as_echo_n "(cached) " >&6
3247 else
3248  if test -n "$ac_fc_set"; then
3249  ac_cv_prog_ac_fc_set="$ac_fc_set" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258    ac_cv_prog_ac_fc_set="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262 done
3263  done
3264 IFS=$as_save_IFS
3265
3266 fi
3267 fi
3268 ac_fc_set=$ac_cv_prog_ac_fc_set
3269 if test -n "$ac_fc_set"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_set" >&5
3271 $as_echo "$ac_fc_set" >&6; }
3272 else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
2891  
3277
3278  test -n "$ac_fc_set" && break
3279 done
3280 test -n "$ac_fc_set" || ac_fc_set="no"
3281
3282   if test $ac_fc_set != no; then :
3283
3284     # Extract the first word of "$ac_fc_set", so it can be a program name with args.
3285 set dummy $ac_fc_set; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_path_ac_fc_path+set}" = set; then :
3289  $as_echo_n "(cached) " >&6
3290 else
3291  case $ac_fc_path in
3292  [\\/]* | ?:[\\/]*)
3293  ac_cv_path_ac_fc_path="$ac_fc_path" # Let the user override the test with a path.
3294  ;;
3295  *)
3296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303    ac_cv_path_ac_fc_path="$as_dir/$ac_word$ac_exec_ext"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307 done
3308  done
3309 IFS=$as_save_IFS
3310
3311  test -z "$ac_cv_path_ac_fc_path" && ac_cv_path_ac_fc_path="no"
3312  ;;
3313 esac
2892   fi
3315 ac_fc_path=$ac_cv_path_ac_fc_path
3316 if test -n "$ac_fc_path"; then
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fc_path" >&5
3318 $as_echo "$ac_fc_path" >&6; }
3319 else
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 fi
2893  
3324
3325 else
3326
3327     as_fn_error "Specified Fortran compiler $FC doesn't seem to exist!" "$LINENO" 5
3328 fi
3329
3330   if test $ac_fc_path != no; then :
3331
3332     { $as_echo "$as_me:${as_lineno-$LINENO}: Will attempt to use $FC as Fortran compiler" >&5
3333 $as_echo "$as_me: Will attempt to use $FC as Fortran compiler" >&6;}
3334     MPIFC=$FC
3335
3336 else
3337
3338     as_fn_error "Can't find path to user-specified Fortran compiler $FC" "$LINENO" 5
3339 fi
3340 fi
3341
3342
2894   ac_ext=cpp
2895   ac_cpp='$CXXCPP $CPPFLAGS'
2896   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3348
3349 ac_ext=cpp
3350 ac_cpp='$CXXCPP $CPPFLAGS'
3351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2899   if test -z "$CXX"; then
2900    if test -n "$CCC"; then
2901      CXX=$CCC
2902    else
2903      if test -n "$ac_tool_prefix"; then
2904 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2904 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2905    do
2906      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
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 3400 | Line 2945 | if test -z "$CXX"; then
2945   fi
2946   if test -z "$CXX"; then
2947    ac_ct_CXX=$CXX
2948 <  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2948 >  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
2949   do
2950    # Extract the first word of "$ac_prog", so it can be a program name with args.
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 3476 | Line 3021 | $as_echo "$ac_try_echo"; } >&5
3021   ... rest of stderr output deleted ...
3022           10q' conftest.err >conftest.er1
3023      cat conftest.er1 >&5
3479    rm -f conftest.er1 conftest.err
3024    fi
3025 +  rm -f conftest.er1 conftest.err
3026    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027    test $ac_status = 0; }
3028   done
3029  
3030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031   /* end confdefs.h.  */
3032 < #include <stdio.h>
3032 >
3033   int
3034   main ()
3035   {
3491 FILE *f = fopen ("conftest.out", "w");
3492 return ferror (f) || fclose (f) != 0;
3036  
3037    ;
3038    return 0;
3039   }
3040   _ACEOF
3041   ac_clean_files_save=$ac_clean_files
3042 < ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3042 > ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3043   # Try to create an executable without -o first, disregard a.out.
3044   # It will help us diagnose broken compilers, and finding out an intuition
3045   # of exeext.
3046 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3047 < $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3046 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3047 > $as_echo_n "checking whether the C++ compiler works... " >&6; }
3048   ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3049  
3050   # The possible output files:
# Line 3563 | Line 3106 | fi
3106   else
3107    ac_file=''
3108   fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3109   if test -z "$ac_file"; then :
3110 <  $as_echo "$as_me: failed program was:" >&5
3110 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 > $as_echo "no" >&6; }
3112 > $as_echo "$as_me: failed program was:" >&5
3113   sed 's/^/| /' conftest.$ac_ext >&5
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
3119 < 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; }
3122   fi
3123 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3124 + $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3125 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3126 + $as_echo "$ac_file" >&6; }
3127   ac_exeext=$ac_cv_exeext
3128  
3129 < # Check that the compiler produces executables we can run.  If not, either
3581 < # the compiler is broken, or we cross compile.
3582 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3583 < $as_echo_n "checking whether the C++ compiler works... " >&6; }
3584 < # If not cross compiling, check that we can run a simple program.
3585 < if test "$cross_compiling" != yes; then
3586 <  if { ac_try='./$ac_file'
3587 <  { { case "(($ac_try" in
3588 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 <  *) ac_try_echo=$ac_try;;
3590 < esac
3591 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 < $as_echo "$ac_try_echo"; } >&5
3593 <  (eval "$ac_try") 2>&5
3594 <  ac_status=$?
3595 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 <  test $ac_status = 0; }; }; then
3597 <    cross_compiling=no
3598 <  else
3599 <    if test "$cross_compiling" = maybe; then
3600 <        cross_compiling=yes
3601 <    else
3602 <        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 < as_fn_error "cannot run C++ compiled programs.
3605 < If you meant to cross compile, use \`--host'.
3606 < See \`config.log' for more details." "$LINENO" 5; }
3607 <    fi
3608 <  fi
3609 < fi
3610 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 < $as_echo "yes" >&6; }
3612 <
3613 < rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3129 > rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3130   ac_clean_files=$ac_clean_files_save
3615 # Check that the compiler produces executables we can run.  If not, either
3616 # the compiler is broken, or we cross compile.
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3618 $as_echo_n "checking whether we are cross compiling... " >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620 $as_echo "$cross_compiling" >&6; }
3621
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3132   $as_echo_n "checking for suffix of executables... " >&6; }
3133   if { { ac_try="$ac_link"
# Line 3648 | 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$ac_cv_exeext
3163 > rm -f conftest conftest$ac_cv_exeext
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3165   $as_echo "$ac_cv_exeext" >&6; }
3166  
3167   rm -f conftest.$ac_ext
3168   EXEEXT=$ac_cv_exeext
3169   ac_exeext=$EXEEXT
3170 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 + /* end confdefs.h.  */
3172 + #include <stdio.h>
3173 + int
3174 + main ()
3175 + {
3176 + FILE *f = fopen ("conftest.out", "w");
3177 + return ferror (f) || fclose (f) != 0;
3178 +
3179 +  ;
3180 +  return 0;
3181 + }
3182 + _ACEOF
3183 + ac_clean_files="$ac_clean_files conftest.out"
3184 + # Check that the compiler produces executables we can run.  If not, either
3185 + # the compiler is broken, or we cross compile.
3186 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3187 + $as_echo_n "checking whether we are cross compiling... " >&6; }
3188 + if test "$cross_compiling" != yes; then
3189 +  { { ac_try="$ac_link"
3190 + case "(($ac_try" in
3191 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 +  *) ac_try_echo=$ac_try;;
3193 + esac
3194 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195 + $as_echo "$ac_try_echo"; } >&5
3196 +  (eval "$ac_link") 2>&5
3197 +  ac_status=$?
3198 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 +  test $ac_status = 0; }
3200 +  if { ac_try='./conftest$ac_cv_exeext'
3201 +  { { case "(($ac_try" in
3202 +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 +  *) ac_try_echo=$ac_try;;
3204 + esac
3205 + eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 + $as_echo "$ac_try_echo"; } >&5
3207 +  (eval "$ac_try") 2>&5
3208 +  ac_status=$?
3209 +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 +  test $ac_status = 0; }; }; then
3211 +    cross_compiling=no
3212 +  else
3213 +    if test "$cross_compiling" = maybe; then
3214 +        cross_compiling=yes
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.
3219 + If you meant to cross compile, use \`--host'.
3220 + See \`config.log' for more details" "$LINENO" 5; }
3221 +    fi
3222 +  fi
3223 + fi
3224 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3225 + $as_echo "$cross_compiling" >&6; }
3226 +
3227 + rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
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 3700 | 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 3711 | 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 3748 | 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 3824 | Line 3392 | fi
3392      CXXFLAGS=
3393    fi
3394   fi
3395 < ac_ext=cpp
3396 < ac_cpp='$CXXCPP $CPPFLAGS'
3397 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3395 > ac_ext=c
3396 > ac_cpp='$CPP $CPPFLAGS'
3397 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400  
3833
3834
3835
3836
3837
3838
3839        for ac_prog in openmpicxx openmpiCC openmpic++ mpic++ mpicxx mpiCC hcp mpxlC_r mpxlC mpCC cmpic++
3840 do
3841  # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_MPICXX+set}" = set; then :
3846  $as_echo_n "(cached) " >&6
3847 else
3848  if test -n "$MPICXX"; then
3849  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_exec_ext in '' $ac_executable_extensions; do
3857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858    ac_cv_prog_MPICXX="$ac_prog"
3859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860    break 2
3861  fi
3862 done
3863  done
3864 IFS=$as_save_IFS
3865
3866 fi
3867 fi
3868 MPICXX=$ac_cv_prog_MPICXX
3869 if test -n "$MPICXX"; then
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3871 $as_echo "$MPICXX" >&6; }
3872 else
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3875 fi
3876
3877
3878  test -n "$MPICXX" && break
3879 done
3880 test -n "$MPICXX" || MPICXX="$CXX"
3881
3882        ax_mpi_save_CXX="$CXX"
3883        CXX="$MPICXX"
3884
3885
3886
3887 if test x = x"$MPILIBS"; then
3888        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3889 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3890  MPILIBS=" "
3891 fi
3892
3893 fi
3894
3895 if test x = x"$MPILIBS"; then
3896        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
3897 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
3898 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
3899  $as_echo_n "(cached) " >&6
3900 else
3901  ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lmpi  $LIBS"
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 /* Override any GCC internal prototype to avoid an error.
3907   Use char because int might match the return type of a GCC
3908   builtin and then its argument prototype would still apply.  */
3909 #ifdef __cplusplus
3910 extern "C"
3911 #endif
3912 char MPI_Init ();
3913 int
3914 main ()
3915 {
3916 return MPI_Init ();
3917  ;
3918  return 0;
3919 }
3920 _ACEOF
3921 if ac_fn_cxx_try_link "$LINENO"; then :
3922  ac_cv_lib_mpi_MPI_Init=yes
3923 else
3924  ac_cv_lib_mpi_MPI_Init=no
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext \
3927    conftest$ac_exeext conftest.$ac_ext
3928 LIBS=$ac_check_lib_save_LIBS
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
3931 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
3932 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
3933  MPILIBS="-lmpi"
3934 fi
3935
3936 fi
3937 if test x = x"$MPILIBS"; then
3938        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
3939 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
3940 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
3941  $as_echo_n "(cached) " >&6
3942 else
3943  ac_check_lib_save_LIBS=$LIBS
3944 LIBS="-lmpich  $LIBS"
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 /* Override any GCC internal prototype to avoid an error.
3949   Use char because int might match the return type of a GCC
3950   builtin and then its argument prototype would still apply.  */
3951 #ifdef __cplusplus
3952 extern "C"
3953 #endif
3954 char MPI_Init ();
3955 int
3956 main ()
3957 {
3958 return MPI_Init ();
3959  ;
3960  return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_cxx_try_link "$LINENO"; then :
3964  ac_cv_lib_mpich_MPI_Init=yes
3965 else
3966  ac_cv_lib_mpich_MPI_Init=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext \
3969    conftest$ac_exeext conftest.$ac_ext
3970 LIBS=$ac_check_lib_save_LIBS
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
3973 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
3974 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
3975  MPILIBS="-lmpich"
3976 fi
3977
3978 fi
3979
3980 if test x != x"$MPILIBS"; then
3981        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
3982 $as_echo_n "checking for mpi.h... " >&6; }
3983        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h.  */
3985 #include <mpi.h>
3986 int
3987 main ()
3988 {
3989
3990  ;
3991  return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_cxx_try_compile "$LINENO"; then :
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998  MPILIBS=""
3999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 fi
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004
4005 CXX="$ax_mpi_save_CXX"
4006
4007
4008
4009 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4010 if test x = x"$MPILIBS"; then
4011        USE_MPI="no"
4012       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&5
4013 $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. oopse_MPI will not be built." >&2;}
4014        :
4015 else
4016        USE_MPI="yes"
4017        :
4018 fi
4019
3401   ac_ext=c
3402   ac_cpp='$CPP $CPPFLAGS'
3403   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406   if test -n "$ac_tool_prefix"; then
3407 <  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027 < set dummy ${ac_tool_prefix}gcc; ac_word=$2
4028 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 < $as_echo_n "checking for $ac_word... " >&6; }
4030 < if test "${ac_cv_prog_CC+set}" = set; then :
4031 <  $as_echo_n "(cached) " >&6
4032 < else
4033 <  if test -n "$CC"; then
4034 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4035 < else
4036 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 < for as_dir in $PATH
4038 < do
4039 <  IFS=$as_save_IFS
4040 <  test -z "$as_dir" && as_dir=.
4041 <    for ac_exec_ext in '' $ac_executable_extensions; do
4042 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 <    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4044 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 <    break 2
4046 <  fi
4047 < done
4048 <  done
4049 < IFS=$as_save_IFS
4050 <
4051 < fi
4052 < fi
4053 < CC=$ac_cv_prog_CC
4054 < if test -n "$CC"; then
4055 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 < $as_echo "$CC" >&6; }
4057 < else
4058 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 < $as_echo "no" >&6; }
4060 < fi
4061 <
4062 <
4063 < fi
4064 < if test -z "$ac_cv_prog_CC"; then
4065 <  ac_ct_CC=$CC
4066 <  # Extract the first word of "gcc", so it can be a program name with args.
4067 < set dummy gcc; ac_word=$2
4068 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 < $as_echo_n "checking for $ac_word... " >&6; }
4070 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071 <  $as_echo_n "(cached) " >&6
4072 < else
4073 <  if test -n "$ac_ct_CC"; then
4074 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 < else
4076 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 < for as_dir in $PATH
4078 < do
4079 <  IFS=$as_save_IFS
4080 <  test -z "$as_dir" && as_dir=.
4081 <    for ac_exec_ext in '' $ac_executable_extensions; do
4082 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 <    ac_cv_prog_ac_ct_CC="gcc"
4084 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 <    break 2
4086 <  fi
4087 < done
4088 <  done
4089 < IFS=$as_save_IFS
4090 <
4091 < fi
4092 < fi
4093 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094 < if test -n "$ac_ct_CC"; then
4095 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096 < $as_echo "$ac_ct_CC" >&6; }
4097 < else
4098 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 < $as_echo "no" >&6; }
4100 < fi
4101 <
4102 <  if test "x$ac_ct_CC" = x; then
4103 <    CC=""
4104 <  else
4105 <    case $cross_compiling:$ac_tool_warned in
4106 < yes:)
4107 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 < ac_tool_warned=yes ;;
4110 < esac
4111 <    CC=$ac_ct_CC
4112 <  fi
4113 < else
4114 <  CC="$ac_cv_prog_CC"
4115 < fi
4116 <
4117 < if test -z "$CC"; then
4118 <          if test -n "$ac_tool_prefix"; then
4119 <    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4120 < set dummy ${ac_tool_prefix}cc; ac_word=$2
4121 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 < $as_echo_n "checking for $ac_word... " >&6; }
4123 < if test "${ac_cv_prog_CC+set}" = set; then :
4124 <  $as_echo_n "(cached) " >&6
4125 < else
4126 <  if test -n "$CC"; then
4127 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4128 < else
4129 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 < for as_dir in $PATH
4131 < do
4132 <  IFS=$as_save_IFS
4133 <  test -z "$as_dir" && as_dir=.
4134 <    for ac_exec_ext in '' $ac_executable_extensions; do
4135 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 <    ac_cv_prog_CC="${ac_tool_prefix}cc"
4137 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 <    break 2
4139 <  fi
4140 < done
4141 <  done
4142 < IFS=$as_save_IFS
4143 <
4144 < fi
4145 < fi
4146 < CC=$ac_cv_prog_CC
4147 < if test -n "$CC"; then
4148 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 < $as_echo "$CC" >&6; }
4150 < else
4151 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 < $as_echo "no" >&6; }
4153 < fi
4154 <
4155 <
4156 <  fi
4157 < fi
4158 < if test -z "$CC"; then
4159 <  # Extract the first word of "cc", so it can be a program name with args.
4160 < set dummy cc; ac_word=$2
4161 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 < $as_echo_n "checking for $ac_word... " >&6; }
4163 < if test "${ac_cv_prog_CC+set}" = set; then :
4164 <  $as_echo_n "(cached) " >&6
4165 < else
4166 <  if test -n "$CC"; then
4167 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4168 < else
4169 <  ac_prog_rejected=no
4170 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 < for as_dir in $PATH
4172 < do
4173 <  IFS=$as_save_IFS
4174 <  test -z "$as_dir" && as_dir=.
4175 <    for ac_exec_ext in '' $ac_executable_extensions; do
4176 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 <    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 <       ac_prog_rejected=yes
4179 <       continue
4180 <     fi
4181 <    ac_cv_prog_CC="cc"
4182 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 <    break 2
4184 <  fi
4185 < done
4186 <  done
4187 < IFS=$as_save_IFS
4188 <
4189 < if test $ac_prog_rejected = yes; then
4190 <  # We found a bogon in the path, so make sure we never use it.
4191 <  set dummy $ac_cv_prog_CC
4192 <  shift
4193 <  if test $# != 0; then
4194 <    # We chose a different compiler from the bogus one.
4195 <    # However, it has the same basename, so the bogon will be chosen
4196 <    # first if we set CC to just the basename; use the full file name.
4197 <    shift
4198 <    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199 <  fi
4200 < fi
4201 < fi
4202 < fi
4203 < CC=$ac_cv_prog_CC
4204 < if test -n "$CC"; then
4205 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206 < $as_echo "$CC" >&6; }
4207 < else
4208 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 < $as_echo "no" >&6; }
4210 < fi
4211 <
4212 <
4213 < fi
4214 < if test -z "$CC"; then
4215 <  if test -n "$ac_tool_prefix"; then
4216 <  for ac_prog in cl.exe
3407 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3408    do
3409      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
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 4257 | Line 3448 | if test -z "$CC"; then
3448   fi
3449   if test -z "$CC"; then
3450    ac_ct_CC=$CC
3451 <  for ac_prog in cl.exe
3451 >  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
3452   do
3453    # Extract the first word of "$ac_prog", so it can be a program name with args.
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 4312 | Line 3503 | fi
3503    fi
3504   fi
3505  
4315 fi
3506  
4317
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 4339 | Line 3528 | $as_echo "$ac_try_echo"; } >&5
3528   ... rest of stderr output deleted ...
3529           10q' conftest.err >conftest.er1
3530      cat conftest.er1 >&5
4342    rm -f conftest.er1 conftest.err
3531    fi
3532 +  rm -f conftest.er1 conftest.err
3533    $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534    test $ac_status = 0; }
3535   done
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 4384 | 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 4462 | 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 4558 | Line 3747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748  
3749  
3750 < if test $USE_MPI != no; then :
3750 > save_CXX=$CXX
3751 > save_CC=$CC
3752 > save_LIBS=$LIBS
3753  
3754 < ac_ext=c
3755 < ac_cpp='$CPP $CPPFLAGS'
3756 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 +  ac_check_lib_save_LIBS=$LIBS
3767 + LIBS="-lc  $LIBS"
3768 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 + /* end confdefs.h.  */
3770  
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 +  ac_cv_lib_c_dlopen=no
3790 + fi
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 + { $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 +  { $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 +  ac_check_lib_save_LIBS=$LIBS
3806 + LIBS="-ldl  $LIBS"
3807 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 + /* end confdefs.h.  */
3809  
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_cxx_try_link "$LINENO"; then :
3826 +  ac_cv_lib_dl_dlopen=yes
3827 + else
3828 +  ac_cv_lib_dl_dlopen=no
3829 + fi
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_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
3839  
3840 + fi
3841  
3842 <        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
3842 >
3843 >
3844 >
3845 >
3846 >
3847 >
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_MPICC+set}" = set; then :
3854 > if ${ac_cv_prog_MPICXX+:} false; then :
3855    $as_echo_n "(cached) " >&6
3856   else
3857 <  if test -n "$MPICC"; then
3858 <  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
3857 >  if test -n "$MPICXX"; then
3858 >  ac_cv_prog_MPICXX="$MPICXX" # Let the user override the test.
3859   else
3860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861   for as_dir in $PATH
# Line 4590 | Line 3864 | do
3864    test -z "$as_dir" && as_dir=.
3865      for ac_exec_ext in '' $ac_executable_extensions; do
3866    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3867 <    ac_cv_prog_MPICC="$ac_prog"
3867 >    ac_cv_prog_MPICXX="$ac_prog"
3868      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869      break 2
3870    fi
# Line 4600 | Line 3874 | fi
3874  
3875   fi
3876   fi
3877 < MPICC=$ac_cv_prog_MPICC
3878 < if test -n "$MPICC"; then
3879 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
3880 < $as_echo "$MPICC" >&6; }
3877 > MPICXX=$ac_cv_prog_MPICXX
3878 > if test -n "$MPICXX"; then
3879 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICXX" >&5
3880 > $as_echo "$MPICXX" >&6; }
3881   else
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883   $as_echo "no" >&6; }
3884   fi
3885  
3886  
3887 <  test -n "$MPICC" && break
3887 >  test -n "$MPICXX" && break
3888   done
3889 < test -n "$MPICC" || MPICC="$CC"
3889 > test -n "$MPICXX" || MPICXX="$CXX"
3890  
3891 <        ax_mpi_save_CC="$CC"
3892 <        CC="$MPICC"
3891 >        ax_mpi_save_CXX="$CXX"
3892 >        CXX="$MPICXX"
3893  
3894  
3895  
3896   if test x = x"$MPILIBS"; then
3897 <        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 < if test "x$ac_cv_func_MPI_Init" = x""yes; then :
3897 >        ac_fn_cxx_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
3898 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
3899    MPILIBS=" "
3900   fi
3901  
# Line 4630 | 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 4653 | Line 3927 | _ACEOF
3927    return 0;
3928   }
3929   _ACEOF
3930 < if ac_fn_c_try_link "$LINENO"; then :
3930 > if ac_fn_cxx_try_link "$LINENO"; then :
3931    ac_cv_lib_mpi_MPI_Init=yes
3932   else
3933    ac_cv_lib_mpi_MPI_Init=no
# Line 4664 | 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 4672 | 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 4695 | Line 3969 | _ACEOF
3969    return 0;
3970   }
3971   _ACEOF
3972 < if ac_fn_c_try_link "$LINENO"; then :
3972 > if ac_fn_cxx_try_link "$LINENO"; then :
3973    ac_cv_lib_mpich_MPI_Init=yes
3974   else
3975    ac_cv_lib_mpich_MPI_Init=no
# Line 4706 | 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 4726 | Line 4000 | _ACEOF
4000    return 0;
4001   }
4002   _ACEOF
4003 < if ac_fn_c_try_compile "$LINENO"; then :
4003 > if ac_fn_cxx_try_compile "$LINENO"; then :
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005   $as_echo "yes" >&6; }
4006   else
# Line 4737 | Line 4011 | fi
4011   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012   fi
4013  
4014 < CC="$ax_mpi_save_CC"
4014 > CXX="$ax_mpi_save_CXX"
4015  
4016  
4017  
4018   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4019   if test x = x"$MPILIBS"; then
4020          USE_MPI="no"
4021 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&5
4022 < $as_echo "$as_me: WARNING: No suitable C MPI implementation found. oopse_MPI will not be built." >&2;}
4021 >       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&5
4022 > $as_echo "$as_me: WARNING: No suitable C++ MPI implementation found. openmd_MPI will not be built." >&2;}
4023          :
4024   else
4025          USE_MPI="yes"
# Line 4753 | Line 4027 | fi
4027   fi
4028  
4029  
4756 fi
4757 ac_ext=${ac_fc_srcext-f}
4758 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4759 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4761 if test -n "$ac_tool_prefix"; then
4762  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4763  do
4764    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_FC+set}" = set; then :
4769  $as_echo_n "(cached) " >&6
4770 else
4771  if test -n "$FC"; then
4772  ac_cv_prog_FC="$FC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777  IFS=$as_save_IFS
4778  test -z "$as_dir" && as_dir=.
4779    for ac_exec_ext in '' $ac_executable_extensions; do
4780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783    break 2
4784  fi
4785 done
4786  done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 FC=$ac_cv_prog_FC
4792 if test -n "$FC"; then
4793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4794 $as_echo "$FC" >&6; }
4795 else
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801    test -n "$FC" && break
4802  done
4803 fi
4804 if test -z "$FC"; then
4805  ac_ct_FC=$FC
4806  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
4807 do
4808  # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4813  $as_echo_n "(cached) " >&6
4814 else
4815  if test -n "$ac_ct_FC"; then
4816  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821  IFS=$as_save_IFS
4822  test -z "$as_dir" && as_dir=.
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825    ac_cv_prog_ac_ct_FC="$ac_prog"
4826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827    break 2
4828  fi
4829 done
4830  done
4831 IFS=$as_save_IFS
4832
4833 fi
4834 fi
4835 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4836 if test -n "$ac_ct_FC"; then
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4838 $as_echo "$ac_ct_FC" >&6; }
4839 else
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4842 fi
4843
4844
4845  test -n "$ac_ct_FC" && break
4846 done
4847
4848  if test "x$ac_ct_FC" = x; then
4849    FC=""
4850  else
4851    case $cross_compiling:$ac_tool_warned in
4852 yes:)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855 ac_tool_warned=yes ;;
4856 esac
4857    FC=$ac_ct_FC
4858  fi
4859 fi
4860
4861
4862 # Provide some information about the compiler.
4863 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4864 set X $ac_compile
4865 ac_compiler=$2
4866 for ac_option in --version -v -V -qversion; do
4867  { { ac_try="$ac_compiler $ac_option >&5"
4868 case "(($ac_try" in
4869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870  *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 $as_echo "$ac_try_echo"; } >&5
4874  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4875  ac_status=$?
4876  if test -s conftest.err; then
4877    sed '10a\
4878 ... rest of stderr output deleted ...
4879         10q' conftest.err >conftest.er1
4880    cat conftest.er1 >&5
4881    rm -f conftest.er1 conftest.err
4882  fi
4883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4884  test $ac_status = 0; }
4885 done
4886 rm -f a.out
4887
4888 # If we don't use `.F' as extension, the preprocessor is not run on the
4889 # input file.  (Note that this only needs to work for GNU compilers.)
4890 ac_save_ext=$ac_ext
4891 ac_ext=F
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4893 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4894 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4895  $as_echo_n "(cached) " >&6
4896 else
4897  cat > conftest.$ac_ext <<_ACEOF
4898      program main
4899 #ifndef __GNUC__
4900       choke me
4901 #endif
4902
4903      end
4904 _ACEOF
4905 if ac_fn_fc_try_compile "$LINENO"; then :
4906  ac_compiler_gnu=yes
4907 else
4908  ac_compiler_gnu=no
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4912
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4915 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4916 ac_ext=$ac_save_ext
4917 ac_test_FCFLAGS=${FCFLAGS+set}
4918 ac_save_FCFLAGS=$FCFLAGS
4919 FCFLAGS=
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4921 $as_echo_n "checking whether $FC accepts -g... " >&6; }
4922 if test "${ac_cv_prog_fc_g+set}" = set; then :
4923  $as_echo_n "(cached) " >&6
4924 else
4925  FCFLAGS=-g
4926 cat > conftest.$ac_ext <<_ACEOF
4927      program main
4928
4929      end
4930 _ACEOF
4931 if ac_fn_fc_try_compile "$LINENO"; then :
4932  ac_cv_prog_fc_g=yes
4933 else
4934  ac_cv_prog_fc_g=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4940 $as_echo "$ac_cv_prog_fc_g" >&6; }
4941 if test "$ac_test_FCFLAGS" = set; then
4942  FCFLAGS=$ac_save_FCFLAGS
4943 elif test $ac_cv_prog_fc_g = yes; then
4944  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4945    FCFLAGS="-g -O2"
4946  else
4947    FCFLAGS="-g"
4948  fi
4949 else
4950  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4951    FCFLAGS="-O2"
4952  else
4953    FCFLAGS=
4954  fi
4955 fi
4956
4957 ac_ext=${ac_fc_srcext-f}
4958 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4959 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4961
4962
4030   if test $USE_MPI != no; then :
4031  
4032 < ac_ext=${ac_fc_srcext-f}
4033 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4034 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4035 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4032 > ac_ext=c
4033 > ac_cpp='$CPP $CPPFLAGS'
4034 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037  
4038  
4039  
4040  
4041  
4042  
4043 <        for ac_prog in openmpif90 mpif90 mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpf90 cmpif90c
4043 >        for ac_prog in openmpicc mpicc hcc mpxlc_r mpxlc mpcc cmpicc
4044   do
4045    # Extract the first word of "$ac_prog", so it can be a program name with args.
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_MPIFC+set}" = set; then :
4049 > if ${ac_cv_prog_MPICC+:} false; then :
4050    $as_echo_n "(cached) " >&6
4051   else
4052 <  if test -n "$MPIFC"; then
4053 <  ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
4052 >  if test -n "$MPICC"; then
4053 >  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
4054   else
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056   for as_dir in $PATH
# Line 4991 | Line 4059 | do
4059    test -z "$as_dir" && as_dir=.
4060      for ac_exec_ext in '' $ac_executable_extensions; do
4061    if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 <    ac_cv_prog_MPIFC="$ac_prog"
4062 >    ac_cv_prog_MPICC="$ac_prog"
4063      $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064      break 2
4065    fi
# Line 5001 | Line 4069 | fi
4069  
4070   fi
4071   fi
4072 < MPIFC=$ac_cv_prog_MPIFC
4073 < if test -n "$MPIFC"; then
4074 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
4075 < $as_echo "$MPIFC" >&6; }
4072 > MPICC=$ac_cv_prog_MPICC
4073 > if test -n "$MPICC"; then
4074 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
4075 > $as_echo "$MPICC" >&6; }
4076   else
4077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078   $as_echo "no" >&6; }
4079   fi
4080  
4081  
4082 <  test -n "$MPIFC" && break
4082 >  test -n "$MPICC" && break
4083   done
4084 < test -n "$MPIFC" || MPIFC="$FC"
4084 > test -n "$MPICC" || MPICC="$CC"
4085  
4086 <        ax_mpi_save_FC="$FC"
4087 <        FC="$MPIFC"
4086 >        ax_mpi_save_CC="$CC"
4087 >        CC="$MPICC"
4088  
4089  
4090  
4091   if test x = x"$MPILIBS"; then
4092 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
4093 < $as_echo_n "checking for MPI_Init... " >&6; }
5026 <                        cat > conftest.$ac_ext <<_ACEOF
5027 <      program main
5028 <      call MPI_Init
5029 <      end
5030 < _ACEOF
5031 < if ac_fn_fc_try_link "$LINENO"; then :
4092 >        ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
4093 > if test "x$ac_cv_func_MPI_Init" = xyes; then :
4094    MPILIBS=" "
5033                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035 else
5036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
4095   fi
5039 rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041 fi
4096  
5043        if test x = x"$MPILIBS"; then
5044                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
5045 $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
5046 if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
5047  $as_echo_n "(cached) " >&6
5048 else
5049  ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lfmpi  $LIBS"
5051 cat > conftest.$ac_ext <<_ACEOF
5052      program main
5053      call MPI_Init
5054      end
5055 _ACEOF
5056 if ac_fn_fc_try_link "$LINENO"; then :
5057  ac_cv_lib_fmpi_MPI_Init=yes
5058 else
5059  ac_cv_lib_fmpi_MPI_Init=no
4097   fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
5066 $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
5067 if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
5068  MPILIBS="-lfmpi"
5069 fi
4098  
5071        fi
5072        if test x = x"$MPILIBS"; then
5073                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
5074 $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
5075 if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
5076  $as_echo_n "(cached) " >&6
5077 else
5078  ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lmpichf90  $LIBS"
5080 cat > conftest.$ac_ext <<_ACEOF
5081      program main
5082      call MPI_Init
5083      end
5084 _ACEOF
5085 if ac_fn_fc_try_link "$LINENO"; then :
5086  ac_cv_lib_mpichf90_MPI_Init=yes
5087 else
5088  ac_cv_lib_mpichf90_MPI_Init=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext \
5091    conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
5095 $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
5096 if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
5097  MPILIBS="-lmpichf90"
5098 fi
5099
5100        fi
5101
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
4106   LIBS="-lmpi  $LIBS"
4107 < cat > conftest.$ac_ext <<_ACEOF
4108 <      program main
4109 <      call MPI_Init
4110 <      end
4107 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 > /* end confdefs.h.  */
4109 >
4110 > /* Override any GCC internal prototype to avoid an error.
4111 >   Use char because int might match the return type of a GCC
4112 >   builtin and then its argument prototype would still apply.  */
4113 > #ifdef __cplusplus
4114 > extern "C"
4115 > #endif
4116 > char MPI_Init ();
4117 > int
4118 > main ()
4119 > {
4120 > return MPI_Init ();
4121 >  ;
4122 >  return 0;
4123 > }
4124   _ACEOF
4125 < if ac_fn_fc_try_link "$LINENO"; then :
4125 > if ac_fn_c_try_link "$LINENO"; then :
4126    ac_cv_lib_mpi_MPI_Init=yes
4127   else
4128    ac_cv_lib_mpi_MPI_Init=no
# Line 5123 | 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 5131 | 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
4148   LIBS="-lmpich  $LIBS"
4149 < cat > conftest.$ac_ext <<_ACEOF
4150 <      program main
4151 <      call MPI_Init
4152 <      end
4149 > cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 > /* end confdefs.h.  */
4151 >
4152 > /* Override any GCC internal prototype to avoid an error.
4153 >   Use char because int might match the return type of a GCC
4154 >   builtin and then its argument prototype would still apply.  */
4155 > #ifdef __cplusplus
4156 > extern "C"
4157 > #endif
4158 > char MPI_Init ();
4159 > int
4160 > main ()
4161 > {
4162 > return MPI_Init ();
4163 >  ;
4164 >  return 0;
4165 > }
4166   _ACEOF
4167 < if ac_fn_fc_try_link "$LINENO"; then :
4167 > if ac_fn_c_try_link "$LINENO"; then :
4168    ac_cv_lib_mpich_MPI_Init=yes
4169   else
4170    ac_cv_lib_mpich_MPI_Init=no
# Line 5152 | 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  
4182   fi
4183  
4184   if test x != x"$MPILIBS"; then
4185 <        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
4186 < $as_echo_n "checking for mpif.h... " >&6; }
4187 <        cat > conftest.$ac_ext <<_ACEOF
4188 <      program main
4189 <      include 'mpif.h'
4190 <      end
4185 >        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
4186 > $as_echo_n "checking for mpi.h... " >&6; }
4187 >        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 > /* end confdefs.h.  */
4189 > #include <mpi.h>
4190 > int
4191 > main ()
4192 > {
4193 >
4194 >  ;
4195 >  return 0;
4196 > }
4197   _ACEOF
4198 < if ac_fn_fc_try_compile "$LINENO"; then :
4198 > if ac_fn_c_try_compile "$LINENO"; then :
4199    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200   $as_echo "yes" >&6; }
4201   else
# Line 5177 | Line 4206 | fi
4206   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207   fi
4208  
4209 < FC="$ax_mpi_save_FC"
4209 > CC="$ax_mpi_save_CC"
4210  
4211  
4212  
4213   # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4214   if test x = x"$MPILIBS"; then
4215          USE_MPI="no"
4216 <       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&5
4217 < $as_echo "$as_me: WARNING: No suitable Fortran MPI implementation found. oopse_MPI will not be built." >&2;}
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;}
4218          :
4219   else
4220          USE_MPI="yes"
# Line 5198 | Line 4227 | if test $USE_MPI != no; then :
4227  
4228          CXX=$MPICXX
4229          CC=$MPICC
4230 <        FC=$MPIFC
4230 >        LIBS="$MPILIBS $LIBS"
4231  
4232 + else
4233 +
4234 +        CXX=$save_CXX
4235 +        CC=$save_CC
4236 +        LIBS=$save_LIBS
4237 +
4238 +
4239   fi
4240  
4241  
4242   # Checks for programs.
4243 < ac_ext=cpp
4244 < ac_cpp='$CXXCPP $CPPFLAGS'
4245 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4248 < if test -z "$CXX"; then
4249 <  if test -n "$CCC"; then
4250 <    CXX=$CCC
4251 <  else
4252 <    if test -n "$ac_tool_prefix"; then
4253 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4254 <  do
4255 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5220 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5221 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 < $as_echo_n "checking for $ac_word... " >&6; }
5223 < if test "${ac_cv_prog_CXX+set}" = set; then :
4243 > ac_ext=c
4244 > ac_cpp='$CPP $CPPFLAGS'
4245 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4249 > $as_echo_n "checking how to run the C preprocessor... " >&6; }
4250 > # On Suns, sometimes $CPP names a directory.
4251 > if test -n "$CPP" && test -d "$CPP"; then
4252 >  CPP=
4253 > fi
4254 > if test -z "$CPP"; then
4255 >  if ${ac_cv_prog_CPP+:} false; then :
4256    $as_echo_n "(cached) " >&6
4257   else
4258 <  if test -n "$CXX"; then
4259 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4260 < else
4261 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 < for as_dir in $PATH
4258 >      # Double quotes because CPP needs to be expanded
4259 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4260 >    do
4261 >      ac_preproc_ok=false
4262 > for ac_c_preproc_warn_flag in '' yes
4263   do
4264 <  IFS=$as_save_IFS
4265 <  test -z "$as_dir" && as_dir=.
4266 <    for ac_exec_ext in '' $ac_executable_extensions; do
4267 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 <    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4269 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 <    break 2
4271 <  fi
4272 < done
4273 <  done
4274 < IFS=$as_save_IFS
4264 >  # Use a header file that comes with gcc, so configuring glibc
4265 >  # with a fresh cross-compiler works.
4266 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4267 >  # <limits.h> exists even on freestanding compilers.
4268 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4269 >  # not just through cpp. "Syntax error" is here to catch this case.
4270 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 > /* end confdefs.h.  */
4272 > #ifdef __STDC__
4273 > # include <limits.h>
4274 > #else
4275 > # include <assert.h>
4276 > #endif
4277 >                     Syntax error
4278 > _ACEOF
4279 > if ac_fn_c_try_cpp "$LINENO"; then :
4280  
5244 fi
5245 fi
5246 CXX=$ac_cv_prog_CXX
5247 if test -n "$CXX"; then
5248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5249 $as_echo "$CXX" >&6; }
4281   else
4282 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 < $as_echo "no" >&6; }
4282 >  # Broken: fails on valid input.
4283 > continue
4284   fi
4285 + rm -f conftest.err conftest.i conftest.$ac_ext
4286  
4287 <
4288 <    test -n "$CXX" && break
4289 <  done
4290 < fi
4291 < if test -z "$CXX"; then
4292 <  ac_ct_CXX=$CXX
4293 <  for ac_prog in $CXX icpc pathCC pgCC c++ xlc++ xlC g++ CC
4294 < do
4295 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4296 < set dummy $ac_prog; ac_word=$2
4297 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 < $as_echo_n "checking for $ac_word... " >&6; }
4299 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4300 <  $as_echo_n "(cached) " >&6
4301 < else
4302 <  if test -n "$ac_ct_CXX"; then
4303 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4304 < else
4305 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 < for as_dir in $PATH
4307 < do
4308 <  IFS=$as_save_IFS
4309 <  test -z "$as_dir" && as_dir=.
4310 <    for ac_exec_ext in '' $ac_executable_extensions; do
4311 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 <    ac_cv_prog_ac_ct_CXX="$ac_prog"
4313 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 <    break 2
4315 <  fi
4316 < done
4317 <  done
4318 < IFS=$as_save_IFS
4319 <
4320 < fi
4321 < fi
4322 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4323 < if test -n "$ac_ct_CXX"; then
4324 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4325 < $as_echo "$ac_ct_CXX" >&6; }
4326 < else
4327 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 < $as_echo "no" >&6; }
4329 < fi
4330 <
4331 <
4332 <  test -n "$ac_ct_CXX" && break
4333 < done
4334 <
4335 <  if test "x$ac_ct_CXX" = x; then
4336 <    CXX="g++"
4337 <  else
4338 <    case $cross_compiling:$ac_tool_warned in
4339 < yes:)
4340 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 < ac_tool_warned=yes ;;
4343 < esac
4344 <    CXX=$ac_ct_CXX
4345 <  fi
4346 < fi
4347 <
4348 <  fi
4349 < fi
4350 < # Provide some information about the compiler.
4351 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4352 < set X $ac_compile
4353 < ac_compiler=$2
4354 < for ac_option in --version -v -V -qversion; do
4355 <  { { ac_try="$ac_compiler $ac_option >&5"
4356 < case "(($ac_try" in
4357 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 <  *) ac_try_echo=$ac_try;;
4359 < esac
4360 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 < $as_echo "$ac_try_echo"; } >&5
4362 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363 <  ac_status=$?
4364 <  if test -s conftest.err; then
4365 <    sed '10a\
4366 < ... rest of stderr output deleted ...
4367 <         10q' conftest.err >conftest.er1
4368 <    cat conftest.er1 >&5
4369 <    rm -f conftest.er1 conftest.err
4370 <  fi
4371 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 <  test $ac_status = 0; }
4373 < done
4374 <
4375 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4376 < $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4377 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4378 <  $as_echo_n "(cached) " >&6
4379 < else
4380 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 < /* end confdefs.h.  */
4382 <
4383 < int
4384 < main ()
4385 < {
4386 < #ifndef __GNUC__
4387 <       choke me
4388 < #endif
4389 <
4390 <  ;
4391 <  return 0;
4392 < }
4393 < _ACEOF
4394 < if ac_fn_cxx_try_compile "$LINENO"; then :
4395 <  ac_compiler_gnu=yes
4396 < else
4397 <  ac_compiler_gnu=no
4398 < fi
4399 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4401 <
4402 < fi
4403 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4404 < $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4405 < if test $ac_compiler_gnu = yes; then
4406 <  GXX=yes
4407 < else
4408 <  GXX=
4409 < fi
4410 < ac_test_CXXFLAGS=${CXXFLAGS+set}
4411 < ac_save_CXXFLAGS=$CXXFLAGS
4412 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4413 < $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4414 < if test "${ac_cv_prog_cxx_g+set}" = set; then :
4415 <  $as_echo_n "(cached) " >&6
4416 < else
4417 <  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4418 <   ac_cxx_werror_flag=yes
4419 <   ac_cv_prog_cxx_g=no
4420 <   CXXFLAGS="-g"
4421 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 < /* end confdefs.h.  */
4423 <
4424 < int
4425 < main ()
4426 < {
4427 <
4428 <  ;
4429 <  return 0;
4430 < }
4431 < _ACEOF
4432 < if ac_fn_cxx_try_compile "$LINENO"; then :
4433 <  ac_cv_prog_cxx_g=yes
4434 < else
4435 <  CXXFLAGS=""
4436 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 < /* end confdefs.h.  */
4438 <
4439 < int
4440 < main ()
4441 < {
4442 <
4443 <  ;
4444 <  return 0;
4445 < }
4446 < _ACEOF
4447 < if ac_fn_cxx_try_compile "$LINENO"; then :
4448 <
4449 < else
4450 <  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4451 <         CXXFLAGS="-g"
4452 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 < /* end confdefs.h.  */
4454 <
4455 < int
4456 < main ()
4457 < {
4458 <
4459 <  ;
4460 <  return 0;
4461 < }
4462 < _ACEOF
4463 < if ac_fn_cxx_try_compile "$LINENO"; then :
4464 <  ac_cv_prog_cxx_g=yes
4465 < fi
4466 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 < fi
4468 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 < fi
4470 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 <   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4472 < fi
4473 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4474 < $as_echo "$ac_cv_prog_cxx_g" >&6; }
4475 < if test "$ac_test_CXXFLAGS" = set; then
4476 <  CXXFLAGS=$ac_save_CXXFLAGS
4477 < elif test $ac_cv_prog_cxx_g = yes; then
4478 <  if test "$GXX" = yes; then
4479 <    CXXFLAGS="-g -O2"
4480 <  else
4481 <    CXXFLAGS="-g"
4482 <  fi
4483 < else
4484 <  if test "$GXX" = yes; then
4485 <    CXXFLAGS="-O2"
4486 <  else
4487 <    CXXFLAGS=
4488 <  fi
4489 < fi
4490 < ac_ext=${ac_fc_srcext-f}
4491 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4492 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4493 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4494 <
4495 < ac_ext=c
4496 < ac_cpp='$CPP $CPPFLAGS'
4497 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 < if test -n "$ac_tool_prefix"; then
4501 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4502 <  do
4503 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 < $as_echo_n "checking for $ac_word... " >&6; }
4507 < if test "${ac_cv_prog_CC+set}" = set; then :
4508 <  $as_echo_n "(cached) " >&6
4509 < else
4510 <  if test -n "$CC"; then
4511 <  ac_cv_prog_CC="$CC" # Let the user override the test.
4512 < else
4513 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 < for as_dir in $PATH
4515 < do
4516 <  IFS=$as_save_IFS
4517 <  test -z "$as_dir" && as_dir=.
4518 <    for ac_exec_ext in '' $ac_executable_extensions; do
4519 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 <    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4521 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 <    break 2
4523 <  fi
4524 < done
4525 <  done
4526 < IFS=$as_save_IFS
4527 <
4528 < fi
4529 < fi
4530 < CC=$ac_cv_prog_CC
4531 < if test -n "$CC"; then
4532 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4533 < $as_echo "$CC" >&6; }
4534 < else
4535 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 < $as_echo "no" >&6; }
4537 < fi
4538 <
4539 <
4540 <    test -n "$CC" && break
4541 <  done
4542 < fi
4543 < if test -z "$CC"; then
4544 <  ac_ct_CC=$CC
4545 <  for ac_prog in $CC icc pathcc pgcc cc xlc gcc
4546 < do
4547 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 < set dummy $ac_prog; ac_word=$2
4549 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 < $as_echo_n "checking for $ac_word... " >&6; }
4551 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4552 <  $as_echo_n "(cached) " >&6
4553 < else
4554 <  if test -n "$ac_ct_CC"; then
4555 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4556 < else
4557 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 < for as_dir in $PATH
4559 < do
4560 <  IFS=$as_save_IFS
4561 <  test -z "$as_dir" && as_dir=.
4562 <    for ac_exec_ext in '' $ac_executable_extensions; do
4563 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 <    ac_cv_prog_ac_ct_CC="$ac_prog"
4565 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 <    break 2
4567 <  fi
4568 < done
4569 <  done
4570 < IFS=$as_save_IFS
4571 <
4572 < fi
4573 < fi
4574 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
4575 < if test -n "$ac_ct_CC"; then
4576 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4577 < $as_echo "$ac_ct_CC" >&6; }
4578 < else
4579 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 < $as_echo "no" >&6; }
4581 < fi
4582 <
4583 <
4584 <  test -n "$ac_ct_CC" && break
4585 < done
4586 <
4587 <  if test "x$ac_ct_CC" = x; then
4588 <    CC=""
4589 <  else
4590 <    case $cross_compiling:$ac_tool_warned in
4591 < yes:)
4592 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 < ac_tool_warned=yes ;;
4595 < esac
4596 <    CC=$ac_ct_CC
4597 <  fi
4598 < fi
4599 <
4600 <
4601 < test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 < as_fn_error "no acceptable C compiler found in \$PATH
4604 < See \`config.log' for more details." "$LINENO" 5; }
4605 <
4606 < # Provide some information about the compiler.
4607 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4608 < set X $ac_compile
4609 < ac_compiler=$2
4610 < for ac_option in --version -v -V -qversion; do
4611 <  { { ac_try="$ac_compiler $ac_option >&5"
4612 < case "(($ac_try" in
4613 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 <  *) ac_try_echo=$ac_try;;
4615 < esac
4616 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 < $as_echo "$ac_try_echo"; } >&5
4618 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619 <  ac_status=$?
4620 <  if test -s conftest.err; then
4621 <    sed '10a\
4622 < ... rest of stderr output deleted ...
4623 <         10q' conftest.err >conftest.er1
4624 <    cat conftest.er1 >&5
4625 <    rm -f conftest.er1 conftest.err
4626 <  fi
4627 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 <  test $ac_status = 0; }
4629 < done
4630 <
4631 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4632 < $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4633 < if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4634 <  $as_echo_n "(cached) " >&6
4635 < else
4636 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 < /* end confdefs.h.  */
4638 <
4639 < int
4640 < main ()
4641 < {
4642 < #ifndef __GNUC__
4643 <       choke me
4644 < #endif
4645 <
4646 <  ;
4647 <  return 0;
4648 < }
4649 < _ACEOF
4650 < if ac_fn_c_try_compile "$LINENO"; then :
4651 <  ac_compiler_gnu=yes
4652 < else
4653 <  ac_compiler_gnu=no
4654 < fi
4655 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
4657 <
4658 < fi
4659 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4660 < $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4661 < if test $ac_compiler_gnu = yes; then
4662 <  GCC=yes
4663 < else
4664 <  GCC=
4665 < fi
4666 < ac_test_CFLAGS=${CFLAGS+set}
4667 < ac_save_CFLAGS=$CFLAGS
4668 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4669 < $as_echo_n "checking whether $CC accepts -g... " >&6; }
4670 < if test "${ac_cv_prog_cc_g+set}" = set; then :
4671 <  $as_echo_n "(cached) " >&6
4672 < else
4673 <  ac_save_c_werror_flag=$ac_c_werror_flag
4674 <   ac_c_werror_flag=yes
4675 <   ac_cv_prog_cc_g=no
4676 <   CFLAGS="-g"
4677 <   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 < /* end confdefs.h.  */
4679 <
4680 < int
4681 < main ()
4682 < {
4683 <
4684 <  ;
4685 <  return 0;
4686 < }
4687 < _ACEOF
4688 < if ac_fn_c_try_compile "$LINENO"; then :
4689 <  ac_cv_prog_cc_g=yes
4690 < else
4691 <  CFLAGS=""
4692 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 < /* end confdefs.h.  */
4694 <
4695 < int
4696 < main ()
4697 < {
4698 <
4699 <  ;
4700 <  return 0;
4701 < }
4702 < _ACEOF
4703 < if ac_fn_c_try_compile "$LINENO"; then :
4704 <
4705 < else
4706 <  ac_c_werror_flag=$ac_save_c_werror_flag
4707 <         CFLAGS="-g"
4708 <         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 < /* end confdefs.h.  */
4710 <
4711 < int
4712 < main ()
4713 < {
4714 <
4715 <  ;
4716 <  return 0;
4717 < }
4718 < _ACEOF
4719 < if ac_fn_c_try_compile "$LINENO"; then :
4720 <  ac_cv_prog_cc_g=yes
4721 < fi
4722 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 < fi
4724 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 < fi
4726 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 <   ac_c_werror_flag=$ac_save_c_werror_flag
4728 < fi
4729 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4730 < $as_echo "$ac_cv_prog_cc_g" >&6; }
4731 < if test "$ac_test_CFLAGS" = set; then
4732 <  CFLAGS=$ac_save_CFLAGS
4733 < elif test $ac_cv_prog_cc_g = yes; then
4734 <  if test "$GCC" = yes; then
4735 <    CFLAGS="-g -O2"
4736 <  else
4737 <    CFLAGS="-g"
4738 <  fi
4739 < else
4740 <  if test "$GCC" = yes; then
4741 <    CFLAGS="-O2"
4742 <  else
4743 <    CFLAGS=
4744 <  fi
4745 < fi
4746 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4747 < $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4748 < if test "${ac_cv_prog_cc_c89+set}" = set; then :
4749 <  $as_echo_n "(cached) " >&6
4750 < else
4751 <  ac_cv_prog_cc_c89=no
4752 < ac_save_CC=$CC
4753 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 < /* end confdefs.h.  */
4755 < #include <stdarg.h>
4756 < #include <stdio.h>
4757 < #include <sys/types.h>
4758 < #include <sys/stat.h>
4759 < /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4760 < struct buf { int x; };
4761 < FILE * (*rcsopen) (struct buf *, struct stat *, int);
4762 < static char *e (p, i)
4763 <     char **p;
4764 <     int i;
4765 < {
4766 <  return p[i];
4767 < }
4768 < static char *f (char * (*g) (char **, int), char **p, ...)
4769 < {
4770 <  char *s;
4771 <  va_list v;
4772 <  va_start (v,p);
4773 <  s = g (p, va_arg (v,int));
4774 <  va_end (v);
4775 <  return s;
4776 < }
4777 <
4778 < /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4779 <   function prototypes and stuff, but not '\xHH' hex character constants.
4780 <   These don't provoke an error unfortunately, instead are silently treated
4781 <   as 'x'.  The following induces an error, until -std is added to get
4782 <   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4783 <   array size at least.  It's necessary to write '\x00'==0 to get something
4784 <   that's true only with -std.  */
4785 < int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4786 <
4787 < /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4788 <   inside strings and character constants.  */
4789 < #define FOO(x) 'x'
4790 < int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4791 <
4792 < int test (int i, double x);
4793 < struct s1 {int (*f) (int a);};
4794 < struct s2 {int (*f) (double a);};
4795 < int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4796 < int argc;
4797 < char **argv;
4798 < int
4799 < main ()
4800 < {
4801 < return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4802 <  ;
4803 <  return 0;
4804 < }
4805 < _ACEOF
4806 < for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4807 <        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4808 < do
4809 <  CC="$ac_save_CC $ac_arg"
4810 <  if ac_fn_c_try_compile "$LINENO"; then :
4811 <  ac_cv_prog_cc_c89=$ac_arg
4812 < fi
4813 < rm -f core conftest.err conftest.$ac_objext
4814 <  test "x$ac_cv_prog_cc_c89" != "xno" && break
4815 < done
4816 < rm -f conftest.$ac_ext
4817 < CC=$ac_save_CC
4818 <
4819 < fi
4820 < # AC_CACHE_VAL
4821 < case "x$ac_cv_prog_cc_c89" in
4822 <  x)
4823 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4824 < $as_echo "none needed" >&6; } ;;
4825 <  xno)
4826 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4827 < $as_echo "unsupported" >&6; } ;;
4828 <  *)
4829 <    CC="$CC $ac_cv_prog_cc_c89"
4830 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4831 < $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4832 < esac
4833 < if test "x$ac_cv_prog_cc_c89" != xno; then :
4834 <
4835 < fi
4836 <
4837 < ac_ext=${ac_fc_srcext-f}
4838 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4839 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4840 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4841 <
4842 < ac_ext=${ac_fc_srcext-f}
4843 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4844 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4845 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4846 < if test -n "$ac_tool_prefix"; then
4847 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4848 <  do
4849 <    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4850 < set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4851 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 < $as_echo_n "checking for $ac_word... " >&6; }
4853 < if test "${ac_cv_prog_FC+set}" = set; then :
4854 <  $as_echo_n "(cached) " >&6
4855 < else
4856 <  if test -n "$FC"; then
4857 <  ac_cv_prog_FC="$FC" # Let the user override the test.
4858 < else
4859 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 < for as_dir in $PATH
4861 < do
4862 <  IFS=$as_save_IFS
4863 <  test -z "$as_dir" && as_dir=.
4864 <    for ac_exec_ext in '' $ac_executable_extensions; do
4865 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 <    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4867 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 <    break 2
4869 <  fi
4870 < done
4871 <  done
4872 < IFS=$as_save_IFS
4873 <
4874 < fi
4875 < fi
4876 < FC=$ac_cv_prog_FC
4877 < if test -n "$FC"; then
4878 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4879 < $as_echo "$FC" >&6; }
4880 < else
4881 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 < $as_echo "no" >&6; }
4883 < fi
4884 <
4885 <
4886 <    test -n "$FC" && break
4887 <  done
4888 < fi
4889 < if test -z "$FC"; then
4890 <  ac_ct_FC=$FC
4891 <  for ac_prog in $FC ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
4892 < do
4893 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 < set dummy $ac_prog; ac_word=$2
4895 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 < $as_echo_n "checking for $ac_word... " >&6; }
4897 < if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4898 <  $as_echo_n "(cached) " >&6
4899 < else
4900 <  if test -n "$ac_ct_FC"; then
4901 <  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4902 < else
4903 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 < for as_dir in $PATH
4905 < do
4906 <  IFS=$as_save_IFS
4907 <  test -z "$as_dir" && as_dir=.
4908 <    for ac_exec_ext in '' $ac_executable_extensions; do
4909 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 <    ac_cv_prog_ac_ct_FC="$ac_prog"
4911 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 <    break 2
4913 <  fi
4914 < done
4915 <  done
4916 < IFS=$as_save_IFS
4917 <
4918 < fi
4919 < fi
4920 < ac_ct_FC=$ac_cv_prog_ac_ct_FC
4921 < if test -n "$ac_ct_FC"; then
4922 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4923 < $as_echo "$ac_ct_FC" >&6; }
4924 < else
4925 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 < $as_echo "no" >&6; }
4927 < fi
4928 <
4929 <
4930 <  test -n "$ac_ct_FC" && break
4931 < done
4932 <
4933 <  if test "x$ac_ct_FC" = x; then
4934 <    FC=""
4935 <  else
4936 <    case $cross_compiling:$ac_tool_warned in
4937 < yes:)
4938 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4939 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4940 < ac_tool_warned=yes ;;
4941 < esac
4942 <    FC=$ac_ct_FC
4943 <  fi
4944 < fi
4945 <
4946 <
4947 < # Provide some information about the compiler.
4948 < $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4949 < set X $ac_compile
4950 < ac_compiler=$2
4951 < for ac_option in --version -v -V -qversion; do
4952 <  { { ac_try="$ac_compiler $ac_option >&5"
4953 < case "(($ac_try" in
4954 <  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 <  *) ac_try_echo=$ac_try;;
4956 < esac
4957 < eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4958 < $as_echo "$ac_try_echo"; } >&5
4959 <  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4960 <  ac_status=$?
4961 <  if test -s conftest.err; then
4962 <    sed '10a\
4963 < ... rest of stderr output deleted ...
4964 <         10q' conftest.err >conftest.er1
4965 <    cat conftest.er1 >&5
4966 <    rm -f conftest.er1 conftest.err
4967 <  fi
4968 <  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4969 <  test $ac_status = 0; }
4970 < done
4971 < rm -f a.out
4972 <
4973 < # If we don't use `.F' as extension, the preprocessor is not run on the
4974 < # input file.  (Note that this only needs to work for GNU compilers.)
4975 < ac_save_ext=$ac_ext
4976 < ac_ext=F
4977 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4978 < $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4979 < if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4980 <  $as_echo_n "(cached) " >&6
4981 < else
4982 <  cat > conftest.$ac_ext <<_ACEOF
4983 <      program main
5952 < #ifndef __GNUC__
5953 <       choke me
5954 < #endif
5955 <
5956 <      end
5957 < _ACEOF
5958 < if ac_fn_fc_try_compile "$LINENO"; then :
5959 <  ac_compiler_gnu=yes
5960 < else
5961 <  ac_compiler_gnu=no
5962 < fi
5963 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 < ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5965 <
5966 < fi
5967 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5968 < $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5969 < ac_ext=$ac_save_ext
5970 < ac_test_FCFLAGS=${FCFLAGS+set}
5971 < ac_save_FCFLAGS=$FCFLAGS
5972 < FCFLAGS=
5973 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5974 < $as_echo_n "checking whether $FC accepts -g... " >&6; }
5975 < if test "${ac_cv_prog_fc_g+set}" = set; then :
5976 <  $as_echo_n "(cached) " >&6
5977 < else
5978 <  FCFLAGS=-g
5979 < cat > conftest.$ac_ext <<_ACEOF
5980 <      program main
5981 <
5982 <      end
5983 < _ACEOF
5984 < if ac_fn_fc_try_compile "$LINENO"; then :
5985 <  ac_cv_prog_fc_g=yes
5986 < else
5987 <  ac_cv_prog_fc_g=no
5988 < fi
5989 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 <
5991 < fi
5992 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5993 < $as_echo "$ac_cv_prog_fc_g" >&6; }
5994 < if test "$ac_test_FCFLAGS" = set; then
5995 <  FCFLAGS=$ac_save_FCFLAGS
5996 < elif test $ac_cv_prog_fc_g = yes; then
5997 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5998 <    FCFLAGS="-g -O2"
5999 <  else
6000 <    FCFLAGS="-g"
6001 <  fi
6002 < else
6003 <  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
6004 <    FCFLAGS="-O2"
6005 <  else
6006 <    FCFLAGS=
6007 <  fi
6008 < fi
6009 <
6010 < ac_ext=${ac_fc_srcext-f}
6011 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6012 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6013 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6014 <
6015 < ac_ext=c
6016 < ac_cpp='$CPP $CPPFLAGS'
6017 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
6020 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6021 < $as_echo_n "checking how to run the C preprocessor... " >&6; }
6022 < # On Suns, sometimes $CPP names a directory.
6023 < if test -n "$CPP" && test -d "$CPP"; then
6024 <  CPP=
6025 < fi
6026 < if test -z "$CPP"; then
6027 <  if test "${ac_cv_prog_CPP+set}" = set; then :
6028 <  $as_echo_n "(cached) " >&6
6029 < else
6030 <      # Double quotes because CPP needs to be expanded
6031 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6032 <    do
6033 <      ac_preproc_ok=false
6034 < for ac_c_preproc_warn_flag in '' yes
6035 < do
6036 <  # Use a header file that comes with gcc, so configuring glibc
6037 <  # with a fresh cross-compiler works.
6038 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 <  # <limits.h> exists even on freestanding compilers.
6040 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6041 <  # not just through cpp. "Syntax error" is here to catch this case.
6042 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 < /* end confdefs.h.  */
6044 < #ifdef __STDC__
6045 < # include <limits.h>
6046 < #else
6047 < # include <assert.h>
6048 < #endif
6049 <                     Syntax error
6050 < _ACEOF
6051 < if ac_fn_c_try_cpp "$LINENO"; then :
6052 <
6053 < else
6054 <  # Broken: fails on valid input.
6055 < continue
6056 < fi
6057 < rm -f conftest.err conftest.$ac_ext
6058 <
6059 <  # OK, works on sane cases.  Now check whether nonexistent headers
6060 <  # can be detected and how.
6061 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 < /* end confdefs.h.  */
6063 < #include <ac_nonexistent.h>
6064 < _ACEOF
6065 < if ac_fn_c_try_cpp "$LINENO"; then :
6066 <  # Broken: success on invalid input.
6067 < continue
6068 < else
6069 <  # Passes both tests.
6070 < ac_preproc_ok=:
6071 < break
6072 < fi
6073 < rm -f conftest.err conftest.$ac_ext
6074 <
6075 < done
6076 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6077 < rm -f conftest.err conftest.$ac_ext
6078 < if $ac_preproc_ok; then :
6079 <  break
6080 < fi
6081 <
6082 <    done
6083 <    ac_cv_prog_CPP=$CPP
6084 <
6085 < fi
6086 <  CPP=$ac_cv_prog_CPP
6087 < else
6088 <  ac_cv_prog_CPP=$CPP
6089 < fi
6090 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6091 < $as_echo "$CPP" >&6; }
6092 < ac_preproc_ok=false
6093 < for ac_c_preproc_warn_flag in '' yes
6094 < do
6095 <  # Use a header file that comes with gcc, so configuring glibc
6096 <  # with a fresh cross-compiler works.
6097 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6098 <  # <limits.h> exists even on freestanding compilers.
6099 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6100 <  # not just through cpp. "Syntax error" is here to catch this case.
6101 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 < /* end confdefs.h.  */
6103 < #ifdef __STDC__
6104 < # include <limits.h>
6105 < #else
6106 < # include <assert.h>
6107 < #endif
6108 <                     Syntax error
6109 < _ACEOF
6110 < if ac_fn_c_try_cpp "$LINENO"; then :
6111 <
6112 < else
6113 <  # Broken: fails on valid input.
6114 < continue
6115 < fi
6116 < rm -f conftest.err conftest.$ac_ext
6117 <
6118 <  # OK, works on sane cases.  Now check whether nonexistent headers
6119 <  # can be detected and how.
6120 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 < /* end confdefs.h.  */
6122 < #include <ac_nonexistent.h>
6123 < _ACEOF
6124 < if ac_fn_c_try_cpp "$LINENO"; then :
6125 <  # Broken: success on invalid input.
6126 < continue
6127 < else
6128 <  # Passes both tests.
6129 < ac_preproc_ok=:
6130 < break
6131 < fi
6132 < rm -f conftest.err conftest.$ac_ext
6133 <
6134 < done
6135 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6136 < rm -f conftest.err conftest.$ac_ext
6137 < if $ac_preproc_ok; then :
6138 <
6139 < else
6140 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6141 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6142 < as_fn_error "C preprocessor \"$CPP\" fails sanity check
6143 < See \`config.log' for more details." "$LINENO" 5; }
6144 < fi
6145 <
6146 < ac_ext=${ac_fc_srcext-f}
6147 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6148 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6149 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6150 <
6151 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6152 < $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6153 < if test "${ac_cv_path_GREP+set}" = set; then :
6154 <  $as_echo_n "(cached) " >&6
6155 < else
6156 <  if test -z "$GREP"; then
6157 <  ac_path_GREP_found=false
6158 <  # Loop through the user's path and test for each of PROGNAME-LIST
6159 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6161 < do
6162 <  IFS=$as_save_IFS
6163 <  test -z "$as_dir" && as_dir=.
6164 <    for ac_prog in grep ggrep; do
6165 <    for ac_exec_ext in '' $ac_executable_extensions; do
6166 <      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6167 <      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6168 < # Check for GNU ac_path_GREP and select it if it is found.
6169 <  # Check for GNU $ac_path_GREP
6170 < case `"$ac_path_GREP" --version 2>&1` in
6171 < *GNU*)
6172 <  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6173 < *)
6174 <  ac_count=0
6175 <  $as_echo_n 0123456789 >"conftest.in"
6176 <  while :
6177 <  do
6178 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6179 <    mv "conftest.tmp" "conftest.in"
6180 <    cp "conftest.in" "conftest.nl"
6181 <    $as_echo 'GREP' >> "conftest.nl"
6182 <    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6183 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6184 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6185 <    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6186 <      # Best one so far, save it but keep looking for a better one
6187 <      ac_cv_path_GREP="$ac_path_GREP"
6188 <      ac_path_GREP_max=$ac_count
6189 <    fi
6190 <    # 10*(2^10) chars as input seems more than enough
6191 <    test $ac_count -gt 10 && break
6192 <  done
6193 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6194 < esac
6195 <
6196 <      $ac_path_GREP_found && break 3
6197 <    done
6198 <  done
6199 <  done
6200 < IFS=$as_save_IFS
6201 <  if test -z "$ac_cv_path_GREP"; then
6202 <    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6203 <  fi
6204 < else
6205 <  ac_cv_path_GREP=$GREP
6206 < fi
6207 <
6208 < fi
6209 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6210 < $as_echo "$ac_cv_path_GREP" >&6; }
6211 < GREP="$ac_cv_path_GREP"
6212 <
6213 <
6214 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6215 < $as_echo_n "checking for egrep... " >&6; }
6216 < if test "${ac_cv_path_EGREP+set}" = set; then :
6217 <  $as_echo_n "(cached) " >&6
6218 < else
6219 <  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6220 <   then ac_cv_path_EGREP="$GREP -E"
6221 <   else
6222 <     if test -z "$EGREP"; then
6223 <  ac_path_EGREP_found=false
6224 <  # Loop through the user's path and test for each of PROGNAME-LIST
6225 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 < for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6227 < do
6228 <  IFS=$as_save_IFS
6229 <  test -z "$as_dir" && as_dir=.
6230 <    for ac_prog in egrep; do
6231 <    for ac_exec_ext in '' $ac_executable_extensions; do
6232 <      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6233 <      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6234 < # Check for GNU ac_path_EGREP and select it if it is found.
6235 <  # Check for GNU $ac_path_EGREP
6236 < case `"$ac_path_EGREP" --version 2>&1` in
6237 < *GNU*)
6238 <  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6239 < *)
6240 <  ac_count=0
6241 <  $as_echo_n 0123456789 >"conftest.in"
6242 <  while :
6243 <  do
6244 <    cat "conftest.in" "conftest.in" >"conftest.tmp"
6245 <    mv "conftest.tmp" "conftest.in"
6246 <    cp "conftest.in" "conftest.nl"
6247 <    $as_echo 'EGREP' >> "conftest.nl"
6248 <    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6249 <    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6250 <    as_fn_arith $ac_count + 1 && ac_count=$as_val
6251 <    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6252 <      # Best one so far, save it but keep looking for a better one
6253 <      ac_cv_path_EGREP="$ac_path_EGREP"
6254 <      ac_path_EGREP_max=$ac_count
6255 <    fi
6256 <    # 10*(2^10) chars as input seems more than enough
6257 <    test $ac_count -gt 10 && break
6258 <  done
6259 <  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6260 < esac
6261 <
6262 <      $ac_path_EGREP_found && break 3
6263 <    done
6264 <  done
6265 <  done
6266 < IFS=$as_save_IFS
6267 <  if test -z "$ac_cv_path_EGREP"; then
6268 <    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6269 <  fi
6270 < else
6271 <  ac_cv_path_EGREP=$EGREP
6272 < fi
6273 <
6274 <   fi
6275 < fi
6276 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6277 < $as_echo "$ac_cv_path_EGREP" >&6; }
6278 < EGREP="$ac_cv_path_EGREP"
6279 <
6280 <
6281 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6282 < $as_echo_n "checking whether ln -s works... " >&6; }
6283 < LN_S=$as_ln_s
6284 < if test "$LN_S" = "ln -s"; then
6285 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 < $as_echo "yes" >&6; }
6287 < else
6288 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6289 < $as_echo "no, using $LN_S" >&6; }
6290 < fi
6291 <
6292 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6293 < $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6294 < set x ${MAKE-make}
6295 < ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6296 < if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6297 <  $as_echo_n "(cached) " >&6
6298 < else
6299 <  cat >conftest.make <<\_ACEOF
6300 < SHELL = /bin/sh
6301 < all:
6302 <        @echo '@@@%%%=$(MAKE)=@@@%%%'
6303 < _ACEOF
6304 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6305 < case `${MAKE-make} -f conftest.make 2>/dev/null` in
6306 <  *@@@%%%=?*=@@@%%%*)
6307 <    eval ac_cv_prog_make_${ac_make}_set=yes;;
6308 <  *)
6309 <    eval ac_cv_prog_make_${ac_make}_set=no;;
6310 < esac
6311 < rm -f conftest.make
6312 < fi
6313 < if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6314 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 < $as_echo "yes" >&6; }
6316 <  SET_MAKE=
6317 < else
6318 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 < $as_echo "no" >&6; }
6320 <  SET_MAKE="MAKE=${MAKE-make}"
6321 < fi
6322 <
6323 < if test -n "$ac_tool_prefix"; then
6324 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6325 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6326 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 < $as_echo_n "checking for $ac_word... " >&6; }
6328 < if test "${ac_cv_prog_RANLIB+set}" = set; then :
6329 <  $as_echo_n "(cached) " >&6
6330 < else
6331 <  if test -n "$RANLIB"; then
6332 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6333 < else
6334 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 < for as_dir in $PATH
6336 < do
6337 <  IFS=$as_save_IFS
6338 <  test -z "$as_dir" && as_dir=.
6339 <    for ac_exec_ext in '' $ac_executable_extensions; do
6340 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6342 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 <    break 2
6344 <  fi
6345 < done
6346 <  done
6347 < IFS=$as_save_IFS
6348 <
6349 < fi
6350 < fi
6351 < RANLIB=$ac_cv_prog_RANLIB
6352 < if test -n "$RANLIB"; then
6353 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6354 < $as_echo "$RANLIB" >&6; }
6355 < else
6356 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 < $as_echo "no" >&6; }
6358 < fi
6359 <
6360 <
6361 < fi
6362 < if test -z "$ac_cv_prog_RANLIB"; then
6363 <  ac_ct_RANLIB=$RANLIB
6364 <  # Extract the first word of "ranlib", so it can be a program name with args.
6365 < set dummy ranlib; ac_word=$2
6366 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 < $as_echo_n "checking for $ac_word... " >&6; }
6368 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6369 <  $as_echo_n "(cached) " >&6
6370 < else
6371 <  if test -n "$ac_ct_RANLIB"; then
6372 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6373 < else
6374 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 < for as_dir in $PATH
6376 < do
6377 <  IFS=$as_save_IFS
6378 <  test -z "$as_dir" && as_dir=.
6379 <    for ac_exec_ext in '' $ac_executable_extensions; do
6380 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
6382 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 <    break 2
6384 <  fi
6385 < done
6386 <  done
6387 < IFS=$as_save_IFS
6388 <
6389 < fi
6390 < fi
6391 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6392 < if test -n "$ac_ct_RANLIB"; then
6393 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6394 < $as_echo "$ac_ct_RANLIB" >&6; }
6395 < else
6396 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 < $as_echo "no" >&6; }
6398 < fi
6399 <
6400 <  if test "x$ac_ct_RANLIB" = x; then
6401 <    RANLIB=":"
6402 <  else
6403 <    case $cross_compiling:$ac_tool_warned in
6404 < yes:)
6405 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 < $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 < ac_tool_warned=yes ;;
6408 < esac
6409 <    RANLIB=$ac_ct_RANLIB
6410 <  fi
6411 < else
6412 <  RANLIB="$ac_cv_prog_RANLIB"
6413 < fi
6414 <
6415 <
6416 <   # Extract the first word of "perl", so it can be a program name with args.
6417 < set dummy perl; ac_word=$2
6418 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 < $as_echo_n "checking for $ac_word... " >&6; }
6420 < if test "${ac_cv_path_PERLINTERP+set}" = set; then :
6421 <  $as_echo_n "(cached) " >&6
6422 < else
6423 <  case $PERLINTERP in
6424 <  [\\/]* | ?:[\\/]*)
6425 <  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
6426 <  ;;
6427 <  *)
6428 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 < for as_dir in $PATH
6430 < do
6431 <  IFS=$as_save_IFS
6432 <  test -z "$as_dir" && as_dir=.
6433 <    for ac_exec_ext in '' $ac_executable_extensions; do
6434 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 <    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
6436 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 <    break 2
6438 <  fi
6439 < done
6440 <  done
6441 < IFS=$as_save_IFS
6442 <
6443 <  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
6444 <  ;;
6445 < esac
6446 < fi
6447 < PERLINTERP=$ac_cv_path_PERLINTERP
6448 < if test -n "$PERLINTERP"; then
6449 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
6450 < $as_echo "$PERLINTERP" >&6; }
6451 < else
6452 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 < $as_echo "no" >&6; }
6454 < fi
6455 <
6456 <
6457 <   ac_cv_path_perlinterp="$PERLINTERP"
6458 <   _sHpB='#!'
6459 <
6460 <
6461 < # Check whether --with-perl-shebang was given.
6462 < if test "${with_perl_shebang+set}" = set; then :
6463 <  withval=$with_perl_shebang; opt_perl_shebang="$withval"
6464 < else
6465 <                opt_perl_shebang="not_set"
6466 < fi
6467 <
6468 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether explicit instead of detected sharpbang is to be used" >&5
6469 < $as_echo_n "checking whether explicit instead of detected sharpbang is to be used... " >&6; }
6470 < if test "${ax_cv_opt_perl_shebang+set}" = set; then :
6471 <  $as_echo_n "(cached) " >&6
6472 < else
6473 <   case "$opt_perl_shebang" in
6474 <                      not_set  ) ax_cv_opt_perl_shebang=''
6475 <                               ;;
6476 <                         *     )
6477 <        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
6478 <                    esac
6479 <
6480 < fi
6481 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
6482 < $as_echo "$ax_cv_opt_perl_shebang" >&6; }
6483 <   if test "A$ax_cv_opt_perl_shebang" != "A"
6484 <     then
6485 <       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
6486 <       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6487 <              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
6488 < $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
6489 <
6490 < # Automatic detection of sharpbang formula starts here
6491 <     else
6492 <   _somian_shbangperl=`$PERLINTERP -V:startperl`
6493 <   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
6494 <   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel sharpbang invocation to start perl" >&5
6495 < $as_echo_n "checking for kernel sharpbang invocation to start perl... " >&6; }
6496 < if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then :
6497 <  $as_echo_n "(cached) " >&6
6498 < else
6499 <  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
6500 <        if test "x$_somian_kspb_perl" == x
6501 <          then _somian_ksbp_warn_empty='durnit'
6502 <          else
6503 <          case "A$_somian_kspb_perl" in
6504 <                 A#!*perl* )
6505 <           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
6506 <                        ;;
6507 <                     A*    )  _somian_ksbp_warn_defau='trouble'
6508 <                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
6509 <          esac
6510 <        fi
6511 <
6512 < fi
6513 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
6514 < $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
6515 < # The above prints Checking ... result message to user.
6516 <   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
6517 <
6518 <    if test A${_somian_ksbp_warn_empty+set} == Aset
6519 <      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
6520 < $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
6521 <    fi
6522 < # Inform user after printing result value
6523 <    if test A${_somian_ksbp_warn_defau+set} == Aset
6524 <      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
6525 < $as_echo "$as_me: Maybe Not good -" >&6;}
6526 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
6527 < $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
6528 <      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
6529 < $as_echo "$as_me: OK Good result - " >&6;}
6530 <           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
6531 < $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
6532 <    fi
6533 <  fi
6534 <
6535 < # Find a good install program.  We prefer a C program (faster),
6536 < # so one script is as good as another.  But avoid the broken or
6537 < # incompatible versions:
6538 < # SysV /etc/install, /usr/sbin/install
6539 < # SunOS /usr/etc/install
6540 < # IRIX /sbin/install
6541 < # AIX /bin/install
6542 < # AmigaOS /C/install, which installs bootblocks on floppy discs
6543 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6544 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6545 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6546 < # OS/2's system install, which has a completely different semantic
6547 < # ./install, which can be erroneously created by make from ./install.sh.
6548 < # Reject install programs that cannot install multiple files.
6549 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6550 < $as_echo_n "checking for a BSD-compatible install... " >&6; }
6551 < if test -z "$INSTALL"; then
6552 < if test "${ac_cv_path_install+set}" = set; then :
6553 <  $as_echo_n "(cached) " >&6
6554 < else
6555 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 < for as_dir in $PATH
6557 < do
6558 <  IFS=$as_save_IFS
6559 <  test -z "$as_dir" && as_dir=.
6560 <    # Account for people who put trailing slashes in PATH elements.
6561 < case $as_dir/ in #((
6562 <  ./ | .// | /[cC]/* | \
6563 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6564 <  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6565 <  /usr/ucb/* ) ;;
6566 <  *)
6567 <    # OSF1 and SCO ODT 3.0 have their own names for install.
6568 <    # Don't use installbsd from OSF since it installs stuff as root
6569 <    # by default.
6570 <    for ac_prog in ginstall scoinst install; do
6571 <      for ac_exec_ext in '' $ac_executable_extensions; do
6572 <        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6573 <          if test $ac_prog = install &&
6574 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6575 <            # AIX install.  It has an incompatible calling convention.
6576 <            :
6577 <          elif test $ac_prog = install &&
6578 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6579 <            # program-specific install script used by HP pwplus--don't use.
6580 <            :
6581 <          else
6582 <            rm -rf conftest.one conftest.two conftest.dir
6583 <            echo one > conftest.one
6584 <            echo two > conftest.two
6585 <            mkdir conftest.dir
6586 <            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6587 <              test -s conftest.one && test -s conftest.two &&
6588 <              test -s conftest.dir/conftest.one &&
6589 <              test -s conftest.dir/conftest.two
6590 <            then
6591 <              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6592 <              break 3
6593 <            fi
6594 <          fi
6595 <        fi
6596 <      done
6597 <    done
6598 <    ;;
6599 < esac
6600 <
6601 <  done
6602 < IFS=$as_save_IFS
6603 <
6604 < rm -rf conftest.one conftest.two conftest.dir
6605 <
6606 < fi
6607 <  if test "${ac_cv_path_install+set}" = set; then
6608 <    INSTALL=$ac_cv_path_install
6609 <  else
6610 <    # As a last resort, use the slow shell script.  Don't cache a
6611 <    # value for INSTALL within a source directory, because that will
6612 <    # break other packages using the cache if that directory is
6613 <    # removed, or if the value is a relative name.
6614 <    INSTALL=$ac_install_sh
6615 <  fi
6616 < fi
6617 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6618 < $as_echo "$INSTALL" >&6; }
6619 <
6620 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6621 < # It thinks the first close brace ends the variable substitution.
6622 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6623 <
6624 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6625 <
6626 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6627 <
6628 < case "x$INSTALL" in
6629 <   x/*) ;;
6630 <   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6631 < esac
6632 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6633 < # Extract the first word of "ar", so it can be a program name with args.
6634 < set dummy ar; ac_word=$2
6635 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 < $as_echo_n "checking for $ac_word... " >&6; }
6637 < if test "${ac_cv_prog_AR+set}" = set; then :
6638 <  $as_echo_n "(cached) " >&6
6639 < else
6640 <  if test -n "$AR"; then
6641 <  ac_cv_prog_AR="$AR" # Let the user override the test.
6642 < else
6643 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 < for as_dir in $PATH
6645 < do
6646 <  IFS=$as_save_IFS
6647 <  test -z "$as_dir" && as_dir=.
6648 <    for ac_exec_ext in '' $ac_executable_extensions; do
6649 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 <    ac_cv_prog_AR="ar"
6651 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 <    break 2
6653 <  fi
6654 < done
6655 <  done
6656 < IFS=$as_save_IFS
6657 <
6658 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
6659 < fi
6660 < fi
6661 < AR=$ac_cv_prog_AR
6662 < if test -n "$AR"; then
6663 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6664 < $as_echo "$AR" >&6; }
6665 < else
6666 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 < $as_echo "no" >&6; }
6668 < fi
6669 <
6670 <
6671 < if test "$AR" = "NONE"; then
6672 <  cat >confcache <<\_ACEOF
6673 < # This file is a shell script that caches the results of configure
6674 < # tests run on this system so they can be shared between configure
6675 < # scripts and configure runs, see configure's option --config-cache.
6676 < # It is not useful on other systems.  If it contains results you don't
6677 < # want to keep, you may remove or edit it.
6678 < #
6679 < # config.status only pays attention to the cache file if you give it
6680 < # the --recheck option to rerun configure.
6681 < #
6682 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
6683 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
6684 < # following values.
6685 <
6686 < _ACEOF
6687 <
6688 < # The following way of writing the cache mishandles newlines in values,
6689 < # but we know of no workaround that is simple, portable, and efficient.
6690 < # So, we kill variables containing newlines.
6691 < # Ultrix sh set writes to stderr and can't be redirected directly,
6692 < # and sets the high bit in the cache file unless we assign to the vars.
6693 < (
6694 <  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6695 <    eval ac_val=\$$ac_var
6696 <    case $ac_val in #(
6697 <    *${as_nl}*)
6698 <      case $ac_var in #(
6699 <      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6700 < $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6701 <      esac
6702 <      case $ac_var in #(
6703 <      _ | IFS | as_nl) ;; #(
6704 <      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6705 <      *) { eval $ac_var=; unset $ac_var;} ;;
6706 <      esac ;;
6707 <    esac
6708 <  done
6709 <
6710 <  (set) 2>&1 |
6711 <    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6712 <    *${as_nl}ac_space=\ *)
6713 <      # `set' does not quote correctly, so add quotes: double-quote
6714 <      # substitution turns \\\\ into \\, and sed turns \\ into \.
6715 <      sed -n \
6716 <        "s/'/'\\\\''/g;
6717 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6718 <      ;; #(
6719 <    *)
6720 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
6721 <      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6722 <      ;;
6723 <    esac |
6724 <    sort
6725 < ) |
6726 <  sed '
6727 <     /^ac_cv_env_/b end
6728 <     t clear
6729 <     :clear
6730 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6731 <     t end
6732 <     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6733 <     :end' >>confcache
6734 < if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6735 <  if test -w "$cache_file"; then
6736 <    test "x$cache_file" != "x/dev/null" &&
6737 <      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6738 < $as_echo "$as_me: updating cache $cache_file" >&6;}
6739 <    cat confcache >$cache_file
6740 <  else
6741 <    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6742 < $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6743 <  fi
6744 < fi
6745 < rm -f confcache
6746 <  exit 1
6747 < fi
6748 < # Extract the first word of "ps", so it can be a program name with args.
6749 < set dummy ps; ac_word=$2
6750 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 < $as_echo_n "checking for $ac_word... " >&6; }
6752 < if test "${ac_cv_path_PS+set}" = set; then :
6753 <  $as_echo_n "(cached) " >&6
6754 < else
6755 <  case $PS in
6756 <  [\\/]* | ?:[\\/]*)
6757 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
6758 <  ;;
6759 <  *)
6760 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 < for as_dir in $PATH
6762 < do
6763 <  IFS=$as_save_IFS
6764 <  test -z "$as_dir" && as_dir=.
6765 <    for ac_exec_ext in '' $ac_executable_extensions; do
6766 <  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767 <    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6768 <    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 <    break 2
6770 <  fi
6771 < done
6772 <  done
6773 < IFS=$as_save_IFS
6774 <
6775 <  ;;
6776 < esac
6777 < fi
6778 < PS=$ac_cv_path_PS
6779 < if test -n "$PS"; then
6780 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
6781 < $as_echo "$PS" >&6; }
6782 < else
6783 <  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 < $as_echo "no" >&6; }
6785 < fi
6786 <
6787 <
6788 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX or BSD ps syntax" >&5
6789 < $as_echo_n "checking for POSIX or BSD ps syntax... " >&6; }
6790 < if test "${ac_cv_prog_ps_syntax+set}" = set; then :
6791 <  $as_echo_n "(cached) " >&6
6792 < else
6793 <
6794 <        if $PS ax -o rss > /dev/null 2>&1; then
6795 <                ac_cv_prog_ps_ax=yes
6796 <        else
6797 <                ac_cv_prog_ps_ax=no
6798 <        fi
6799 <        if $PS -ef -o rss > /dev/null 2>&1; then
6800 <                ac_cv_prog_ps_ef=yes
6801 <        else
6802 <                ac_cv_prog_ps_ef=no
6803 <        fi
6804 <        if test "$ac_cv_prog_ps_ax" = yes; then
6805 <                ac_cv_prog_ps_syntax=BSD
6806 <        else
6807 <                if test "$ac_cv_prog_ps_ef" = yes; then
6808 <                        ac_cv_prog_ps_syntax=POSIX
6809 <                else
6810 <                        as_fn_error "Could not determine ps syntax" "$LINENO" 5
6811 <                fi
6812 <        fi
6813 <
6814 < fi
6815 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_ps_syntax" >&5
6816 < $as_echo "$ac_cv_prog_ps_syntax" >&6; }
6817 <
6818 < cat >>confdefs.h <<_ACEOF
6819 < #define PSCOMMAND $PS
6820 < _ACEOF
6821 <
6822 < if test "$ac_cv_prog_ps_syntax" = BSD; then
6823 <
6824 < $as_echo "#define PSTYPE_IS_BSD 1" >>confdefs.h
6825 <
6826 < else
6827 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
6828 <
6829 < $as_echo "#define PSTYPE_IS_POSIX 1" >>confdefs.h
6830 <
6831 <   else
6832 <       as_fn_error "Unknown ps syntax type!" "$LINENO" 5
6833 <   fi
6834 < fi
6835 <
6836 < ac_ext=${ac_fc_srcext-f}
6837 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6838 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6839 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6840 <
6841 < ac_ext=${ac_fc_srcext-f}
6842 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6843 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6844 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6845 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
6846 < $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
6847 < if test "${ac_cv_fc_srcext_F90+set}" = set; then :
6848 <  $as_echo_n "(cached) " >&6
6849 < else
6850 <  ac_ext=F90
6851 < ac_fcflags_srcext_save=$ac_fcflags_srcext
6852 < ac_fcflags_srcext=
6853 < ac_cv_fc_srcext_F90=unknown
6854 < for ac_flag in none -qsuffix=f=F90 -Tf; do
6855 <  test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
6856 <  cat > conftest.$ac_ext <<_ACEOF
6857 <      program main
6858 <
6859 <      end
6860 < _ACEOF
6861 < if ac_fn_fc_try_compile "$LINENO"; then :
6862 <  ac_cv_fc_srcext_F90=$ac_flag; break
6863 < fi
6864 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 < done
6866 < rm -f conftest.$ac_objext conftest.F90
6867 < ac_fcflags_srcext=$ac_fcflags_srcext_save
6868 <
6869 < fi
6870 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
6871 < $as_echo "$ac_cv_fc_srcext_F90" >&6; }
6872 < if test "x$ac_cv_fc_srcext_F90" = xunknown; then
6873 <  as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
6874 < else
6875 <  ac_fc_srcext=F90
6876 <  if test "x$ac_cv_fc_srcext_F90" = xnone; then
6877 <    ac_fcflags_srcext=""
6878 <    FCFLAGS_F90=""
6879 <  else
6880 <    ac_fcflags_srcext=$ac_cv_fc_srcext_F90
6881 <    FCFLAGS_F90=$ac_cv_fc_srcext_F90
6882 <  fi
6883 <
6884 <
6885 < fi
6886 < ac_ext=${ac_fc_srcext-f}
6887 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6888 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6889 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6890 <
6891 <
6892 <
6893 <
6894 <
6895 < # Try to determine native compiler flags that allow us to use F90 suffix
6896 < # for preprocessed f90 source.
6897 <
6898 < if test "$ac_test_PREPFLAG" != "set"; then
6899 <  PREPFLAG=""
6900 <  case "${host_cpu}-${host_os}" in
6901 <
6902 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
6903 <                    PREPFLAG="-fpp1 "
6904 <                fi;;
6905 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
6906 <                    PREPFLAG="-qsuffix=cpp=F90 "
6907 <                fi;;
6908 <  *darwin*)
6909 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
6910 <                PREPFLAG="-qsuffix=cpp=F90 "
6911 <        fi;;
6912 <  esac
6913 <
6914 <  if test -z "$PREPFLAG"; then
6915 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPFLAG\"" >&5
6916 < $as_echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
6917 <        PREPFLAG=""
6918 <  fi
6919 <
6920 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor flag works" >&5
6921 < $as_echo_n "checking to make sure F90 preprocessor flag works... " >&6; }
6922 <
6923 <  ac_ext=${ac_fc_srcext-f}
6924 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6925 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6926 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6927 <
6928 <  ac_save_ext=$ac_ext
6929 <  ac_ext=F90
6930 <  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
6931 <
6932 <  if test "$PREPFLAG"; then :
6933 <  FCFLAGS_SRCEXT="${PREPFLAG}"
6934 < fi
6935 <    cat > conftest.$ac_ext <<_ACEOF
6936 <
6937 <
6938 < program conftest
6939 <  integer :: i
6940 <  i = 1
6941 < end program conftest
6942 <
6943 < _ACEOF
6944 < if ac_fn_fc_try_compile "$LINENO"; then :
6945 <  prepflagworks=1
6946 < else
6947 <  prepflagworks=0
6948 < fi
6949 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 <
6951 <  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
6952 <  ac_ext=$ac_save_ext
6953 <  ac_ext=${ac_fc_srcext-f}
6954 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
6955 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
6956 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
6957 <
6958 <
6959 <  if test "$prepflagworks" = 1; then
6960 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6961 < $as_echo "yes" >&6; }
6962 <    FCFLAGS_SRCEXT="${PREPFLAG}"
6963 <
6964 <  else
6965 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 < $as_echo "no" >&6; }
6967 <    as_fn_error "Can't figure out working Fortran90 preprocessor flag" "$LINENO" 5
6968 <  fi
6969 < fi
6970 <
6971 <
6972 <
6973 <
6974 <
6975 < # Try to determine native compiler flags that allow us to use F90 suffix
6976 < # for preprocessed f90 source with -D type defines
6977 <
6978 < if test "$ac_test_PREPDEFFLAG" != "set"; then
6979 <  PREPDEFFLAG=""
6980 <  case "${host_cpu}-${host_os}" in
6981 <
6982 <  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
6983 <                    PREPDEFFLAG=" "
6984 <                fi;;
6985 <  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
6986 <                    PREPDEFFLAG="-WF,"
6987 <                fi;;
6988 <  *darwin*)
6989 <        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
6990 <                PREPDEFFLAG="-WF,"
6991 <        fi;;
6992 <  esac
6993 <
6994 <  if test -z "$PREPDEFFLAG"; then
6995 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Using empty PREPDEFFLAG\"" >&5
6996 < $as_echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
6997 <        PREPDEFFLAG=" "
6998 <  fi
6999 <
7000 <  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to make sure F90 preprocessor define flag works" >&5
7001 < $as_echo_n "checking to make sure F90 preprocessor define flag works... " >&6; }
7002 <
7003 <  ac_ext=${ac_fc_srcext-f}
7004 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7005 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7006 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7007 <
7008 <  ac_save_ext=$ac_ext
7009 <  ac_ext=F90
7010 <  ac_save_FCFLAGS=$FCFLAGS
7011 <
7012 <  if test "$PREPDEFFLAG"; then :
7013 <  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
7014 < fi
7015 <    cat > conftest.$ac_ext <<_ACEOF
7016 <
7017 <
7018 < program conftest
7019 <  integer :: i
7020 < #ifdef TEST
7021 <  i = 1
7022 < #else
7023 <  choke me
7024 < #endif
7025 < end program conftest
7026 <
7027 < _ACEOF
7028 < if ac_fn_fc_try_compile "$LINENO"; then :
7029 <  prepdefflagworks=1
7030 < else
7031 <  prepdefflagworks=0
7032 < fi
7033 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 <
7035 <  FCFLAGS=$ac_save_FCFLAGS
7036 <  ac_ext=$ac_save_ext
7037 <  ac_ext=${ac_fc_srcext-f}
7038 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7039 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7040 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7041 <
7042 <
7043 <  if test "$prepdefflagworks" = 1; then
7044 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7045 < $as_echo "yes" >&6; }
7046 <
7047 <  else
7048 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 < $as_echo "no" >&6; }
7050 <    as_fn_error "Can't figure out working Fortran90 preprocessor define flag" "$LINENO" 5
7051 <  fi
7052 < fi
7053 <
7054 < ac_ext=${ac_fc_srcext-f}
7055 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7056 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7057 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7058 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7059 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7060 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7061 <  $as_echo_n "(cached) " >&6
7062 < else
7063 <  cat > conftest.$ac_ext <<_ACEOF
7064 <      program main
7065 <
7066 <      end
7067 < _ACEOF
7068 < if ac_fn_fc_try_compile "$LINENO"; then :
7069 <  ac_cv_prog_fc_v=
7070 < # Try some options frequently used verbose output
7071 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7072 <  cat > conftest.$ac_ext <<_ACEOF
7073 <      program main
7074 <
7075 <      end
7076 < _ACEOF
7077 <
7078 < # Compile and link our simple test program by passing a flag (argument
7079 < # 1 to this macro) to the Fortran compiler in order to get
7080 < # "verbose" output that we can then parse for the Fortran linker
7081 < # flags.
7082 < ac_save_FCFLAGS=$FCFLAGS
7083 < FCFLAGS="$FCFLAGS $ac_verb"
7084 < eval "set x $ac_link"
7085 < shift
7086 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7087 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7088 < # LIBRARY_PATH; skip all such settings.
7089 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7090 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7091 < $as_echo "$ac_fc_v_output" >&5
7092 < FCFLAGS=$ac_save_FCFLAGS
7093 <
7094 < rm -rf conftest*
7095 <
7096 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7097 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7098 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7099 < ac_fc_v_output="`echo $ac_fc_v_output |
7100 <        grep 'LPATH is:' |
7101 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7102 <
7103 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7104 < #        that detects unbalanced quotes in FLIBS should be implemented
7105 < #        and (ugh) tested at some point.
7106 < case $ac_fc_v_output in
7107 <  # If we are using xlf then replace all the commas with spaces.
7108 <  *xlfentry*)
7109 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7110 <
7111 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7112 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7113 <  *mGLOB_options_string*)
7114 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7115 <
7116 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7117 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7118 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7119 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7120 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7121 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7122 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7123 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7124 <
7125 <  # If we are using Cray Fortran then delete quotes.
7126 <  *cft90*)
7127 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7128 < esac
7129 <
7130 <
7131 <  # look for -l* and *.a constructs in the output
7132 <  for ac_arg in $ac_fc_v_output; do
7133 <     case $ac_arg in
7134 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7135 <          ac_cv_prog_fc_v=$ac_verb
7136 <          break 2 ;;
7137 <     esac
7138 <  done
7139 < done
7140 < if test -z "$ac_cv_prog_fc_v"; then
7141 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7142 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7143 < fi
7144 < else
7145 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7146 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7147 < fi
7148 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 <
7150 < fi
7151 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7152 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7153 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7154 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7155 < if test "${ac_cv_fc_libs+set}" = set; then :
7156 <  $as_echo_n "(cached) " >&6
7157 < else
7158 <  if test "x$FCLIBS" != "x"; then
7159 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7160 < else
7161 <
7162 < cat > conftest.$ac_ext <<_ACEOF
7163 <      program main
7164 <
7165 <      end
7166 < _ACEOF
7167 <
7168 < # Compile and link our simple test program by passing a flag (argument
7169 < # 1 to this macro) to the Fortran compiler in order to get
7170 < # "verbose" output that we can then parse for the Fortran linker
7171 < # flags.
7172 < ac_save_FCFLAGS=$FCFLAGS
7173 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7174 < eval "set x $ac_link"
7175 < shift
7176 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7177 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7178 < # LIBRARY_PATH; skip all such settings.
7179 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7180 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7181 < $as_echo "$ac_fc_v_output" >&5
7182 < FCFLAGS=$ac_save_FCFLAGS
7183 <
7184 < rm -rf conftest*
7185 <
7186 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7187 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7188 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7189 < ac_fc_v_output="`echo $ac_fc_v_output |
7190 <        grep 'LPATH is:' |
7191 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7192 <
7193 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7194 < #        that detects unbalanced quotes in FLIBS should be implemented
7195 < #        and (ugh) tested at some point.
7196 < case $ac_fc_v_output in
7197 <  # If we are using xlf then replace all the commas with spaces.
7198 <  *xlfentry*)
7199 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7200 <
7201 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7202 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7203 <  *mGLOB_options_string*)
7204 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7205 <
7206 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7207 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7208 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7209 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7210 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7211 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7212 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7213 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7214 <
7215 <  # If we are using Cray Fortran then delete quotes.
7216 <  *cft90*)
7217 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7218 < esac
7219 <
7220 <
7221 <
7222 < ac_cv_fc_libs=
7223 <
7224 < # Save positional arguments (if any)
7225 < ac_save_positional="$@"
7226 <
7227 < set X $ac_fc_v_output
7228 < while test $# != 1; do
7229 <  shift
7230 <  ac_arg=$1
7231 <  case $ac_arg in
7232 <        [\\/]*.a | ?:[\\/]*.a)
7233 <            ac_exists=false
7234 <  for ac_i in $ac_cv_fc_libs; do
7235 <    if test x"$ac_arg" = x"$ac_i"; then
7236 <      ac_exists=true
7237 <      break
7238 <    fi
7239 <  done
7240 <
7241 <  if test x"$ac_exists" = xtrue; then :
7242 <
7243 < else
7244 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7245 < fi
7246 <          ;;
7247 <        -bI:*)
7248 <            ac_exists=false
7249 <  for ac_i in $ac_cv_fc_libs; do
7250 <    if test x"$ac_arg" = x"$ac_i"; then
7251 <      ac_exists=true
7252 <      break
7253 <    fi
7254 <  done
7255 <
7256 <  if test x"$ac_exists" = xtrue; then :
7257 <
7258 < else
7259 <  if test "$ac_compiler_gnu" = yes; then
7260 <  for ac_link_opt in $ac_arg; do
7261 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7262 <  done
7263 < else
7264 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7265 < fi
7266 < fi
7267 <          ;;
7268 <          # Ignore these flags.
7269 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7270 <          |-LANG:=* | -LIST:* | -LNO:*)
7271 <          ;;
7272 <        -lkernel32)
7273 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7274 <          ;;
7275 <        -[LRuYz])
7276 <          # These flags, when seen by themselves, take an argument.
7277 <          # We remove the space between option and argument and re-iterate
7278 <          # unless we find an empty arg or a new option (starting with -)
7279 <          case $2 in
7280 <             "" | -*);;
7281 <             *)
7282 <                ac_arg="$ac_arg$2"
7283 <                shift; shift
7284 <                set X $ac_arg "$@"
7285 <                ;;
7286 <          esac
7287 <          ;;
7288 <        -YP,*)
7289 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7290 <              ac_exists=false
7291 <  for ac_i in $ac_cv_fc_libs; do
7292 <    if test x"$ac_j" = x"$ac_i"; then
7293 <      ac_exists=true
7294 <      break
7295 <    fi
7296 <  done
7297 <
7298 <  if test x"$ac_exists" = xtrue; then :
7299 <
7300 < else
7301 <  ac_arg="$ac_arg $ac_j"
7302 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7303 < fi
7304 <          done
7305 <          ;;
7306 <        -[lLR]*)
7307 <            ac_exists=false
7308 <  for ac_i in $ac_cv_fc_libs; do
7309 <    if test x"$ac_arg" = x"$ac_i"; then
7310 <      ac_exists=true
7311 <      break
7312 <    fi
7313 <  done
7314 <
7315 <  if test x"$ac_exists" = xtrue; then :
7316 <
7317 < else
7318 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7319 < fi
7320 <          ;;
7321 <        -zallextract*| -zdefaultextract)
7322 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7323 <          ;;
7324 <          # Ignore everything else.
7325 <  esac
7326 < done
7327 < # restore positional arguments
7328 < set X $ac_save_positional; shift
7329 <
7330 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7331 < # then we insist that the "run path" must be an absolute path (i.e. it
7332 < # must begin with a "/").
7333 < case `(uname -sr) 2>/dev/null` in
7334 <   "SunOS 5"*)
7335 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7336 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7337 <      test "x$ac_ld_run_path" != x &&
7338 <        if test "$ac_compiler_gnu" = yes; then
7339 <  for ac_link_opt in $ac_ld_run_path; do
7340 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7341 <  done
7342 < else
7343 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7344 < fi
7345 <      ;;
7346 < esac
7347 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7348 <
7349 < fi
7350 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7351 < $as_echo "$ac_cv_fc_libs" >&6; }
7352 < FCLIBS="$ac_cv_fc_libs"
7353 <
7354 <
7355 < ac_ext=${ac_fc_srcext-f}
7356 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7357 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7358 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7359 <
7360 < ac_ext=${ac_fc_srcext-f}
7361 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7362 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7363 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7364 <
7365 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
7366 < $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
7367 < if test "${ac_cv_fc_dummy_main+set}" = set; then :
7368 <  $as_echo_n "(cached) " >&6
7369 < else
7370 <  ac_fc_dm_save_LIBS=$LIBS
7371 < LIBS="$LIBS $FCLIBS"
7372 < ac_fortran_dm_var=FC_DUMMY_MAIN
7373 < ac_ext=c
7374 < ac_cpp='$CPP $CPPFLAGS'
7375 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378 <
7379 < # First, try linking without a dummy main:
7380 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 < /* end confdefs.h.  */
7382 <
7383 < #ifdef FC_DUMMY_MAIN
7384 < #ifndef FC_DUMMY_MAIN_EQ_F77
7385 < #  ifdef __cplusplus
7386 <     extern "C"
7387 < #  endif
7388 <   int FC_DUMMY_MAIN() { return 1; }
7389 < #endif
7390 < #endif
7391 < int
7392 < main ()
7393 < {
7394 <
7395 <  ;
7396 <  return 0;
7397 < }
7398 < _ACEOF
7399 < if ac_fn_c_try_link "$LINENO"; then :
7400 <  ac_cv_fortran_dummy_main=none
7401 < else
7402 <  ac_cv_fortran_dummy_main=unknown
7403 < fi
7404 < rm -f core conftest.err conftest.$ac_objext \
7405 <    conftest$ac_exeext conftest.$ac_ext
7406 <
7407 < if test $ac_cv_fortran_dummy_main = unknown; then
7408 <   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
7409 <     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 < /* end confdefs.h.  */
7411 < #define $ac_fortran_dm_var $ac_func
7412 < #ifdef FC_DUMMY_MAIN
7413 < #ifndef FC_DUMMY_MAIN_EQ_F77
7414 < #  ifdef __cplusplus
7415 <     extern "C"
7416 < #  endif
7417 <   int FC_DUMMY_MAIN() { return 1; }
7418 < #endif
7419 < #endif
7420 < int
7421 < main ()
7422 < {
7423 <
7424 <  ;
7425 <  return 0;
7426 < }
7427 < _ACEOF
7428 < if ac_fn_c_try_link "$LINENO"; then :
7429 <  ac_cv_fortran_dummy_main=$ac_func; break
7430 < fi
7431 < rm -f core conftest.err conftest.$ac_objext \
7432 <    conftest$ac_exeext conftest.$ac_ext
7433 <   done
7434 < fi
7435 < ac_ext=${ac_fc_srcext-f}
7436 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7437 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7438 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7439 < ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
7440 < rm -rf conftest*
7441 < LIBS=$ac_fc_dm_save_LIBS
7442 <
7443 < fi
7444 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
7445 < $as_echo "$ac_cv_fc_dummy_main" >&6; }
7446 < FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
7447 < if test "$FC_DUMMY_MAIN" != unknown; then :
7448 <  if test $FC_DUMMY_MAIN != none; then
7449 <
7450 < cat >>confdefs.h <<_ACEOF
7451 < #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
7452 < _ACEOF
7453 <
7454 <  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
7455 <
7456 < $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
7457 <
7458 <  fi
7459 < fi
7460 < else
7461 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7462 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7463 < as_fn_error "linking to Fortran libraries from C fails
7464 < See \`config.log' for more details." "$LINENO" 5; }
7465 < fi
7466 <
7467 < ac_ext=${ac_fc_srcext-f}
7468 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7469 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7470 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7471 <
7472 < ac_ext=${ac_fc_srcext-f}
7473 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7474 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7475 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7476 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
7477 < $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
7478 < if test "${ac_cv_fc_mangling+set}" = set; then :
7479 <  $as_echo_n "(cached) " >&6
7480 < else
7481 <  cat > conftest.$ac_ext <<_ACEOF
7482 <      subroutine foobar()
7483 <      return
7484 <      end
7485 <      subroutine foo_bar()
7486 <      return
7487 <      end
7488 < _ACEOF
7489 < if ac_fn_fc_try_compile "$LINENO"; then :
7490 <  mv conftest.$ac_objext cfortran_test.$ac_objext
7491 <
7492 <  ac_save_LIBS=$LIBS
7493 <  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
7494 <
7495 <  ac_ext=c
7496 < ac_cpp='$CPP $CPPFLAGS'
7497 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500 <  ac_success=no
7501 <  for ac_foobar in foobar FOOBAR; do
7502 <    for ac_underscore in "" "_"; do
7503 <      ac_func="$ac_foobar$ac_underscore"
7504 <      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 < /* end confdefs.h.  */
7506 <
7507 < /* Override any GCC internal prototype to avoid an error.
7508 <   Use char because int might match the return type of a GCC
7509 <   builtin and then its argument prototype would still apply.  */
7510 < #ifdef __cplusplus
7511 < extern "C"
7512 < #endif
7513 < char $ac_func ();
7514 < #ifdef FC_DUMMY_MAIN
7515 < #ifndef FC_DUMMY_MAIN_EQ_F77
7516 < #  ifdef __cplusplus
7517 <     extern "C"
7518 < #  endif
7519 <   int FC_DUMMY_MAIN() { return 1; }
7520 < #endif
7521 < #endif
7522 < int
7523 < main ()
7524 < {
7525 < return $ac_func ();
7526 <  ;
7527 <  return 0;
7528 < }
7529 < _ACEOF
7530 < if ac_fn_c_try_link "$LINENO"; then :
7531 <  ac_success=yes; break 2
7532 < fi
7533 < rm -f core conftest.err conftest.$ac_objext \
7534 <    conftest$ac_exeext conftest.$ac_ext
7535 <    done
7536 <  done
7537 <  ac_ext=${ac_fc_srcext-f}
7538 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7539 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7540 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7541 <
7542 <  if test "$ac_success" = "yes"; then
7543 <     case $ac_foobar in
7544 <        foobar)
7545 <           ac_case=lower
7546 <           ac_foo_bar=foo_bar
7547 <           ;;
7548 <        FOOBAR)
7549 <           ac_case=upper
7550 <           ac_foo_bar=FOO_BAR
7551 <           ;;
7552 <     esac
7553 <
7554 <     ac_ext=c
7555 < ac_cpp='$CPP $CPPFLAGS'
7556 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559 <     ac_success_extra=no
7560 <     for ac_extra in "" "_"; do
7561 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
7562 <        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 < /* end confdefs.h.  */
7564 <
7565 < /* Override any GCC internal prototype to avoid an error.
7566 <   Use char because int might match the return type of a GCC
7567 <   builtin and then its argument prototype would still apply.  */
7568 < #ifdef __cplusplus
7569 < extern "C"
7570 < #endif
7571 < char $ac_func ();
7572 < #ifdef FC_DUMMY_MAIN
7573 < #ifndef FC_DUMMY_MAIN_EQ_F77
7574 < #  ifdef __cplusplus
7575 <     extern "C"
7576 < #  endif
7577 <   int FC_DUMMY_MAIN() { return 1; }
7578 < #endif
7579 < #endif
7580 < int
7581 < main ()
7582 < {
7583 < return $ac_func ();
7584 <  ;
7585 <  return 0;
7586 < }
7587 < _ACEOF
7588 < if ac_fn_c_try_link "$LINENO"; then :
7589 <  ac_success_extra=yes; break
7590 < fi
7591 < rm -f core conftest.err conftest.$ac_objext \
7592 <    conftest$ac_exeext conftest.$ac_ext
7593 <     done
7594 <     ac_ext=${ac_fc_srcext-f}
7595 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7596 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7597 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7598 <
7599 <     if test "$ac_success_extra" = "yes"; then
7600 <        ac_cv_fc_mangling="$ac_case case"
7601 <        if test -z "$ac_underscore"; then
7602 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
7603 <        else
7604 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
7605 <        fi
7606 <        if test -z "$ac_extra"; then
7607 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
7608 <        else
7609 <           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
7610 <        fi
7611 <      else
7612 <        ac_cv_fc_mangling="unknown"
7613 <      fi
7614 <  else
7615 <     ac_cv_fc_mangling="unknown"
7616 <  fi
7617 <
7618 <  LIBS=$ac_save_LIBS
7619 <  rm -rf conftest*
7620 <  rm -f cfortran_test*
7621 < else
7622 <  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7623 < $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7624 < as_fn_error "cannot compile a simple Fortran program
7625 < See \`config.log' for more details." "$LINENO" 5; }
7626 < fi
7627 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 <
7629 < fi
7630 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
7631 < $as_echo "$ac_cv_fc_mangling" >&6; }
7632 <
7633 < ac_ext=${ac_fc_srcext-f}
7634 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7635 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7636 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7637 <
7638 < ac_ext=${ac_fc_srcext-f}
7639 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7640 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7641 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7642 < case $ac_cv_fc_mangling in
7643 <  "lower case, no underscore, no extra underscore")
7644 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7645 <
7646 <          $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
7647 < ;;
7648 <  "lower case, no underscore, extra underscore")
7649 <          $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
7650 <
7651 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7652 < ;;
7653 <  "lower case, underscore, no extra underscore")
7654 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7655 <
7656 <          $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
7657 < ;;
7658 <  "lower case, underscore, extra underscore")
7659 <          $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
7660 <
7661 <          $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
7662 < ;;
7663 <  "upper case, no underscore, no extra underscore")
7664 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7665 <
7666 <          $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
7667 < ;;
7668 <  "upper case, no underscore, extra underscore")
7669 <          $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
7670 <
7671 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7672 < ;;
7673 <  "upper case, underscore, no extra underscore")
7674 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7675 <
7676 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
7677 < ;;
7678 <  "upper case, underscore, extra underscore")
7679 <          $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
7680 <
7681 <          $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
7682 < ;;
7683 <  *)
7684 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
7685 < $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
7686 <          ;;
7687 < esac
7688 <
7689 < ac_ext=${ac_fc_srcext-f}
7690 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7691 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7692 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7693 <
7694 <
7695 <
7696 < ac_ext=${ac_fc_srcext-f}
7697 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7698 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7699 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7700 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7701 < $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
7702 < if test "${ac_cv_prog_fc_v+set}" = set; then :
7703 <  $as_echo_n "(cached) " >&6
7704 < else
7705 <  cat > conftest.$ac_ext <<_ACEOF
7706 <      program main
7707 <
7708 <      end
7709 < _ACEOF
7710 < if ac_fn_fc_try_compile "$LINENO"; then :
7711 <  ac_cv_prog_fc_v=
7712 < # Try some options frequently used verbose output
7713 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7714 <  cat > conftest.$ac_ext <<_ACEOF
7715 <      program main
7716 <
7717 <      end
7718 < _ACEOF
7719 <
7720 < # Compile and link our simple test program by passing a flag (argument
7721 < # 1 to this macro) to the Fortran compiler in order to get
7722 < # "verbose" output that we can then parse for the Fortran linker
7723 < # flags.
7724 < ac_save_FCFLAGS=$FCFLAGS
7725 < FCFLAGS="$FCFLAGS $ac_verb"
7726 < eval "set x $ac_link"
7727 < shift
7728 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7729 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7730 < # LIBRARY_PATH; skip all such settings.
7731 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7732 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7733 < $as_echo "$ac_fc_v_output" >&5
7734 < FCFLAGS=$ac_save_FCFLAGS
7735 <
7736 < rm -rf conftest*
7737 <
7738 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7739 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7740 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7741 < ac_fc_v_output="`echo $ac_fc_v_output |
7742 <        grep 'LPATH is:' |
7743 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7744 <
7745 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7746 < #        that detects unbalanced quotes in FLIBS should be implemented
7747 < #        and (ugh) tested at some point.
7748 < case $ac_fc_v_output in
7749 <  # If we are using xlf then replace all the commas with spaces.
7750 <  *xlfentry*)
7751 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7752 <
7753 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7754 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7755 <  *mGLOB_options_string*)
7756 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7757 <
7758 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7759 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7760 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7761 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7762 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7763 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7764 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7765 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7766 <
7767 <  # If we are using Cray Fortran then delete quotes.
7768 <  *cft90*)
7769 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7770 < esac
7771 <
7772 <
7773 <  # look for -l* and *.a constructs in the output
7774 <  for ac_arg in $ac_fc_v_output; do
7775 <     case $ac_arg in
7776 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7777 <          ac_cv_prog_fc_v=$ac_verb
7778 <          break 2 ;;
7779 <     esac
7780 <  done
7781 < done
7782 < if test -z "$ac_cv_prog_fc_v"; then
7783 <   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7784 < $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7785 < fi
7786 < else
7787 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7788 < $as_echo "$as_me: WARNING: compilation failed" >&2;}
7789 < fi
7790 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 <
7792 < fi
7793 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7794 < $as_echo "$ac_cv_prog_fc_v" >&6; }
7795 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7796 < $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
7797 < if test "${ac_cv_fc_libs+set}" = set; then :
7798 <  $as_echo_n "(cached) " >&6
7799 < else
7800 <  if test "x$FCLIBS" != "x"; then
7801 <  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7802 < else
7803 <
7804 < cat > conftest.$ac_ext <<_ACEOF
7805 <      program main
7806 <
7807 <      end
7808 < _ACEOF
7809 <
7810 < # Compile and link our simple test program by passing a flag (argument
7811 < # 1 to this macro) to the Fortran compiler in order to get
7812 < # "verbose" output that we can then parse for the Fortran linker
7813 < # flags.
7814 < ac_save_FCFLAGS=$FCFLAGS
7815 < FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7816 < eval "set x $ac_link"
7817 < shift
7818 < $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
7819 < # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7820 < # LIBRARY_PATH; skip all such settings.
7821 < ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7822 <  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
7823 < $as_echo "$ac_fc_v_output" >&5
7824 < FCFLAGS=$ac_save_FCFLAGS
7825 <
7826 < rm -rf conftest*
7827 <
7828 < # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7829 < # /foo, /bar, and /baz are search directories for the Fortran linker.
7830 < # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7831 < ac_fc_v_output="`echo $ac_fc_v_output |
7832 <        grep 'LPATH is:' |
7833 <        sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7834 <
7835 < # FIXME: we keep getting bitten by quoted arguments; a more general fix
7836 < #        that detects unbalanced quotes in FLIBS should be implemented
7837 < #        and (ugh) tested at some point.
7838 < case $ac_fc_v_output in
7839 <  # If we are using xlf then replace all the commas with spaces.
7840 <  *xlfentry*)
7841 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
7842 <
7843 <  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7844 <  # $LIBS confuse us, and the libraries appear later in the output anyway).
7845 <  *mGLOB_options_string*)
7846 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7847 <
7848 <  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7849 <  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7850 <  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7851 <  *-cmdline\ * | *-ignore\ * | *-def\ *)
7852 <    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7853 <        s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7854 <        s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7855 <        s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7856 <
7857 <  # If we are using Cray Fortran then delete quotes.
7858 <  *cft90*)
7859 <    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7860 < esac
7861 <
7862 <
7863 <
7864 < ac_cv_fc_libs=
7865 <
7866 < # Save positional arguments (if any)
7867 < ac_save_positional="$@"
7868 <
7869 < set X $ac_fc_v_output
7870 < while test $# != 1; do
7871 <  shift
7872 <  ac_arg=$1
7873 <  case $ac_arg in
7874 <        [\\/]*.a | ?:[\\/]*.a)
7875 <            ac_exists=false
7876 <  for ac_i in $ac_cv_fc_libs; do
7877 <    if test x"$ac_arg" = x"$ac_i"; then
7878 <      ac_exists=true
7879 <      break
7880 <    fi
7881 <  done
7882 <
7883 <  if test x"$ac_exists" = xtrue; then :
7884 <
7885 < else
7886 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7887 < fi
7888 <          ;;
7889 <        -bI:*)
7890 <            ac_exists=false
7891 <  for ac_i in $ac_cv_fc_libs; do
7892 <    if test x"$ac_arg" = x"$ac_i"; then
7893 <      ac_exists=true
7894 <      break
7895 <    fi
7896 <  done
7897 <
7898 <  if test x"$ac_exists" = xtrue; then :
7899 <
7900 < else
7901 <  if test "$ac_compiler_gnu" = yes; then
7902 <  for ac_link_opt in $ac_arg; do
7903 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7904 <  done
7905 < else
7906 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7907 < fi
7908 < fi
7909 <          ;;
7910 <          # Ignore these flags.
7911 <        -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7912 <          |-LANG:=* | -LIST:* | -LNO:*)
7913 <          ;;
7914 <        -lkernel32)
7915 <          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7916 <          ;;
7917 <        -[LRuYz])
7918 <          # These flags, when seen by themselves, take an argument.
7919 <          # We remove the space between option and argument and re-iterate
7920 <          # unless we find an empty arg or a new option (starting with -)
7921 <          case $2 in
7922 <             "" | -*);;
7923 <             *)
7924 <                ac_arg="$ac_arg$2"
7925 <                shift; shift
7926 <                set X $ac_arg "$@"
7927 <                ;;
7928 <          esac
7929 <          ;;
7930 <        -YP,*)
7931 <          for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7932 <              ac_exists=false
7933 <  for ac_i in $ac_cv_fc_libs; do
7934 <    if test x"$ac_j" = x"$ac_i"; then
7935 <      ac_exists=true
7936 <      break
7937 <    fi
7938 <  done
7939 <
7940 <  if test x"$ac_exists" = xtrue; then :
7941 <
7942 < else
7943 <  ac_arg="$ac_arg $ac_j"
7944 <                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7945 < fi
7946 <          done
7947 <          ;;
7948 <        -[lLR]*)
7949 <            ac_exists=false
7950 <  for ac_i in $ac_cv_fc_libs; do
7951 <    if test x"$ac_arg" = x"$ac_i"; then
7952 <      ac_exists=true
7953 <      break
7954 <    fi
7955 <  done
7956 <
7957 <  if test x"$ac_exists" = xtrue; then :
7958 <
7959 < else
7960 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7961 < fi
7962 <          ;;
7963 <        -zallextract*| -zdefaultextract)
7964 <          ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7965 <          ;;
7966 <          # Ignore everything else.
7967 <  esac
7968 < done
7969 < # restore positional arguments
7970 < set X $ac_save_positional; shift
7971 <
7972 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7973 < # then we insist that the "run path" must be an absolute path (i.e. it
7974 < # must begin with a "/").
7975 < case `(uname -sr) 2>/dev/null` in
7976 <   "SunOS 5"*)
7977 <      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
7978 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7979 <      test "x$ac_ld_run_path" != x &&
7980 <        if test "$ac_compiler_gnu" = yes; then
7981 <  for ac_link_opt in $ac_ld_run_path; do
7982 <    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7983 <  done
7984 < else
7985 <  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7986 < fi
7987 <      ;;
7988 < esac
7989 < fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7990 <
7991 < fi
7992 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7993 < $as_echo "$ac_cv_fc_libs" >&6; }
7994 < FCLIBS="$ac_cv_fc_libs"
7995 <
7996 <
7997 < ac_ext=${ac_fc_srcext-f}
7998 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7999 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8000 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8001 <
8002 <
8003 <
8004 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module suffix" >&5
8005 < $as_echo_n "checking for module suffix... " >&6; }
8006 < rm -f conftest*
8007 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8008 < rm -f work*
8009 < cat >conftest.$ac_ext <<EOF
8010 <        module conftest
8011 <        integer n
8012 <        parameter (n=1)
8013 <        end module conftest
8014 < EOF
8015 < # SGI and absoft compilers generates module name in upper case!
8016 < testname="conftest"
8017 < modcase="lower"
8018 < if (eval $ac_compile) 2>/dev/null ; then
8019 <    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
8020 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
8021 <    if test -z "$MOD" ; then
8022 <        MOD=`ls CONFTEST* 2>/dev/null \
8023 <                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8024 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
8025 <        if test -n "$MOD" ; then
8026 <            testname="CONFTEST"
8027 <            modcase="upper"
8028 <        fi
8029 <    fi
8030 <    if test -z "$MOD" ; then
8031 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8032 < $as_echo "unknown" >&6; }
8033 <        # Use mod if we can't figure it out
8034 <        MOD="mod"
8035 <    else
8036 <        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOD" >&5
8037 < $as_echo "$MOD" >&6; }
8038 <    fi
8039 <    if test -s work.pcl ; then
8040 <        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler generates auxillery files!" >&5
8041 < $as_echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
8042 <    fi
8043 < else
8044 <    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8045 < $as_echo "unknown" >&6; }
8046 < fi
8047 <
8048 <
8049 <
8050 <
8051 <
8052 < # Check for module include path (some use -I, some (Solaris) use -M, some
8053 < # (absoft) use -p).
8054 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
8055 < # specified, work.pcl and work.pc are created.  However, if you specify
8056 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
8057 < # Use the module made above
8058 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for module directory path flag" >&5
8059 < $as_echo_n "checking for module directory path flag... " >&6; }
8060 < rm -f conftest*
8061 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
8062 < rm -f work*
8063 < cat >conftest.$ac_ext <<EOF
8064 <        module conftest
8065 <        integer n
8066 <        parameter (n=1)
8067 <        end module conftest
8068 < EOF
8069 < # SGI and absoft compilers generates module name in upper case!
8070 < testname="conftest"
8071 < if (eval $ac_compile) 2>/dev/null ; then
8072 <   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
8073 <   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
8074 <   if test -n "$mod" ; then
8075 <      testname="CONFTEST"
8076 <   fi
8077 <   madedir=0
8078 <   if test ! -d conf ; then mkdir conf ; madedir=1; fi
8079 <   cp $testname.$MOD conf
8080 <   rm -f conftest* CONFTEST*
8081 <   cat >conftest1.$ac_ext <<EOF
8082 <        program main
8083 <        use conftest
8084 <        print *, n
8085 <        end
8086 < EOF
8087 <   F90_WORK_FILES_ARG=""
8088 <   F90MODINCSPEC=""
8089 <   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
8090 <       MODDIRFLAG="-I"
8091 <       F90MODINCSPEC="-I<dir>"
8092 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I" >&5
8093 < $as_echo "-I" >&6; }
8094 <   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8095 <       MODDIRFLAG="-M"
8096 <       F90MODINCSPEC="-M<dir>"
8097 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -M" >&5
8098 < $as_echo "-M" >&6; }
8099 <   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
8100 <       MODDIRFLAG="-p"
8101 <       F90MODINCSPEC="-p<dir>"
8102 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: -p" >&5
8103 < $as_echo "-p" >&6; }
8104 <   elif test -s work.pc ; then
8105 <        cp work.pc conf/mpimod.pc
8106 <        echo "mpimod.pc" > conf/mpimod.pcl
8107 <        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
8108 <        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
8109 <            MODDIRFLAG='-cl,mpimod.pcl'
8110 <            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
8111 < $as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
8112 <            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
8113 <            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
8114 <
8115 <        else
8116 <            # The version of the Intel compiler that I have refuses to let
8117 <            # you put the "work catalog" list anywhere but the current
8118 <            # directory. For example, you cannot in
8119 <         :
8120 <        fi
8121 <   fi
8122 <   if test -z "MODDIRFLAG" ; then
8123 <       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
8124 < $as_echo "unknown" >&6; }
8125 <   fi
8126 <
8127 <
8128 <   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
8129 <   if test $madedir = 1 ; then rmdir conf ; fi
8130 < fi
8131 <
8132 <
8133 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module file names" >&5
8134 < $as_echo_n "checking for Fortran 90 module file names... " >&6; }
8135 < if test "${ac_cv_f90_module_names+set}" = set; then :
8136 <  $as_echo_n "(cached) " >&6
8137 < else
8138 <  ac_ext=${ac_fc_srcext-f}
8139 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8140 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8141 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8142 <
8143 < # carry out the test in a new directory, so that we don't miss anything
8144 < mkdir conftest
8145 < cd conftest
8146 < cat > conftest.$ac_ext <<_ACEOF
8147 < MODULE Bar
8148 < END MODULE Bar
8149 < _ACEOF
8150 < if ac_fn_fc_try_compile "$LINENO"; then :
8151 <  ac_cv_f90_module_names=
8152 < ac_file_list=*
8153 < for ac_file in $ac_file_list; do
8154 <   case $ac_file in
8155 <      # don't care for original source and object files
8156 <      conftest.$ac_ext | conftest.$ac_objext | conftest.err )
8157 <          :
8158 <          ;;
8159 <      # look for new files derived from the file name
8160 <      *conftest*)
8161 <          ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
8162 <            ac_exists=false
8163 <  for ac_i in $ac_cv_f90_module_names; do
8164 <    if test x"$ac_pat" = x"$ac_i"; then
8165 <      ac_exists=true
8166 <      break
8167 <    fi
8168 <  done
8169 <
8170 <  if test x"$ac_exists" = xtrue; then :
8171 <
8172 < else
8173 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8174 < fi
8175 <          ;;
8176 <      # look for new files derived from the module name,
8177 <      # with different case translation schemes
8178 <      *Bar*)
8179 <          ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
8180 <            ac_exists=false
8181 <  for ac_i in $ac_cv_f90_module_names; do
8182 <    if test x"$ac_pat" = x"$ac_i"; then
8183 <      ac_exists=true
8184 <      break
8185 <    fi
8186 <  done
8187 <
8188 <  if test x"$ac_exists" = xtrue; then :
8189 <
8190 < else
8191 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8192 < fi
8193 <          ;;
8194 <      *bar*)
8195 <          ac_pat=`echo $ac_file | sed s/bar/%module%/`
8196 <            ac_exists=false
8197 <  for ac_i in $ac_cv_f90_module_names; do
8198 <    if test x"$ac_pat" = x"$ac_i"; then
8199 <      ac_exists=true
8200 <      break
8201 <    fi
8202 <  done
8203 <
8204 <  if test x"$ac_exists" = xtrue; then :
8205 <
8206 < else
8207 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8208 < fi
8209 <          ;;
8210 <      *BAR*)
8211 <          ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
8212 <            ac_exists=false
8213 <  for ac_i in $ac_cv_f90_module_names; do
8214 <    if test x"$ac_pat" = x"$ac_i"; then
8215 <      ac_exists=true
8216 <      break
8217 <    fi
8218 <  done
8219 <
8220 <  if test x"$ac_exists" = xtrue; then :
8221 <
8222 < else
8223 <  ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
8224 < fi
8225 <          ;;
8226 <       # Other files - we have no idea how they are generated
8227 <       *)
8228 <          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Bogus file found: $ac_file" >&5
8229 < $as_echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
8230 <          ;;
8231 <   esac
8232 < done
8233 < if test "x$ac_cv_f90_module_names" = "x"; then
8234 <  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8235 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8236 < fi
8237 <
8238 < else
8239 <  ac_cv_f90_module_names=
8240 < { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't determine module file names" >&5
8241 < $as_echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
8242 < fi
8243 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 < cd ..
8245 < # cleanup
8246 < rm -rf conftest
8247 < ac_ext=${ac_fc_srcext-f}
8248 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8249 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8250 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8251 <
8252 < fi
8253 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f90_module_names" >&5
8254 < $as_echo "$ac_cv_f90_module_names" >&6; } # AC_CACHE_CHECK
8255 <
8256 < # We now generate a shell script that will help us to figure out the correct
8257 < # module file names, using the value of ac_cv_f90_module_names
8258 <
8259 < echo "Generating shell script modnam"
8260 <
8261 < cat > scripts/modnam << EOF
8262 < #! /bin/sh
8263 < # This script is auto-generated by configure
8264 < #
8265 < usage="\\
8266 < Usage: \$0 [FILES]
8267 <
8268 < [FILES] are Fortran 90 source files.
8269 < The output is a list of module file names that the Fortran 90 compiler
8270 < generates when compiling [FILES]."
8271 <
8272 < list=
8273 < empty=
8274 <
8275 < if test \$# -eq 0; then
8276 <   echo "\$usage"; exit 0
8277 < fi
8278 <
8279 < while test \$# != 0; do
8280 <
8281 <  file=\$1
8282 <  shift
8283 <
8284 < # strip suffix
8285 <  base=\`echo \$file | sed 's/[.][^.]*$//'\`
8286 <
8287 <  test ! -f \$file && continue
8288 <
8289 < # Look for module definitions and transform them to upper / lower case
8290 <  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/'\`
8291 <  upper=\`echo \$mods | tr a-z A-Z\`
8292 <  lower=\`echo \$mods | tr A-Z a-z\`
8293 <
8294 < # Here, the patterns for generating module file names were inserted by configure
8295 <  for trans in $ac_cv_f90_module_names; do
8296 <
8297 <    pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
8298 <    var=empty
8299 <    case \$pat in
8300 <       %MODULE%)
8301 <          var=upper ;;
8302 <       %Module%)
8303 <          var=mods ;;
8304 <       %module%)
8305 <          var=lower ;;
8306 <       %FILE%)
8307 <          test -n "\$mods" && var=base ;;
8308 <    esac
8309 <    new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
8310 <    list="\$list \$new"
8311 <  done
8312 < done
8313 <
8314 < echo \$list
8315 < # end of configure-generated script
8316 < EOF
8317 < chmod 755 scripts/modnam
8318 <
8319 < pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
8320 < F90_MODULE_NAMES=empty
8321 < case $pat in
8322 <       %MODULE%)
8323 <          F90_MODULE_NAMES=UPPER ;;
8324 <       %Module%)
8325 <          F90_MODULE_NAMES=Mixed ;;
8326 <       %module%)
8327 <          F90_MODULE_NAMES=lower ;;
8328 <       *)
8329 <          F90_MODULE_NAMES=unknown ;;
8330 < esac
8331 <
8332 < ac_ext=${ac_fc_srcext-f}
8333 < ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8334 < ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8335 < ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8336 <
8337 <
8338 < ac_ext=c
8339 < ac_cpp='$CPP $CPPFLAGS'
8340 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343 <
8344 <
8345 < { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
8346 < $as_echo_n "checking for asin in -lm... " >&6; }
8347 < if test "${ac_cv_lib_m_asin+set}" = set; then :
8348 <  $as_echo_n "(cached) " >&6
8349 < else
8350 <  ac_check_lib_save_LIBS=$LIBS
8351 < LIBS="-lm  $LIBS"
8352 < cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 < /* end confdefs.h.  */
8354 <
8355 < /* Override any GCC internal prototype to avoid an error.
8356 <   Use char because int might match the return type of a GCC
8357 <   builtin and then its argument prototype would still apply.  */
8358 < #ifdef __cplusplus
8359 < extern "C"
8360 < #endif
8361 < char asin ();
8362 < #ifdef FC_DUMMY_MAIN
8363 < #ifndef FC_DUMMY_MAIN_EQ_F77
8364 < #  ifdef __cplusplus
8365 <     extern "C"
8366 < #  endif
8367 <   int FC_DUMMY_MAIN() { return 1; }
8368 < #endif
8369 < #endif
8370 < int
8371 < main ()
8372 < {
8373 < return asin ();
8374 <  ;
8375 <  return 0;
8376 < }
8377 < _ACEOF
8378 < if ac_fn_c_try_link "$LINENO"; then :
8379 <  ac_cv_lib_m_asin=yes
8380 < else
8381 <  ac_cv_lib_m_asin=no
4287 >  # OK, works on sane cases.  Now check whether nonexistent headers
4288 >  # can be detected and how.
4289 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 > /* end confdefs.h.  */
4291 > #include <ac_nonexistent.h>
4292 > _ACEOF
4293 > if ac_fn_c_try_cpp "$LINENO"; then :
4294 >  # Broken: success on invalid input.
4295 > continue
4296 > else
4297 >  # Passes both tests.
4298 > ac_preproc_ok=:
4299 > break
4300 > fi
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.i conftest.err conftest.$ac_ext
4306 > if $ac_preproc_ok; then :
4307 >  break
4308 > fi
4309 >
4310 >    done
4311 >    ac_cv_prog_CPP=$CPP
4312 >
4313 > fi
4314 >  CPP=$ac_cv_prog_CPP
4315 > else
4316 >  ac_cv_prog_CPP=$CPP
4317 > fi
4318 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4319 > $as_echo "$CPP" >&6; }
4320 > ac_preproc_ok=false
4321 > for ac_c_preproc_warn_flag in '' yes
4322 > do
4323 >  # Use a header file that comes with gcc, so configuring glibc
4324 >  # with a fresh cross-compiler works.
4325 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 >  # <limits.h> exists even on freestanding compilers.
4327 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4328 >  # not just through cpp. "Syntax error" is here to catch this case.
4329 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 > /* end confdefs.h.  */
4331 > #ifdef __STDC__
4332 > # include <limits.h>
4333 > #else
4334 > # include <assert.h>
4335 > #endif
4336 >                     Syntax error
4337 > _ACEOF
4338 > if ac_fn_c_try_cpp "$LINENO"; then :
4339 >
4340 > else
4341 >  # Broken: fails on valid input.
4342 > continue
4343 > fi
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.
4348 >  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 > /* end confdefs.h.  */
4350 > #include <ac_nonexistent.h>
4351 > _ACEOF
4352 > if ac_fn_c_try_cpp "$LINENO"; then :
4353 >  # Broken: success on invalid input.
4354 > continue
4355 > else
4356 >  # Passes both tests.
4357 > ac_preproc_ok=:
4358 > break
4359 > fi
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.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; }
4372 > fi
4373 >
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 ${ac_cv_path_GREP+:} false; then :
4383 >  $as_echo_n "(cached) " >&6
4384 > else
4385 >  if test -z "$GREP"; then
4386 >  ac_path_GREP_found=false
4387 >  # Loop through the user's path and test for each of PROGNAME-LIST
4388 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 > do
4391 >  IFS=$as_save_IFS
4392 >  test -z "$as_dir" && as_dir=.
4393 >    for ac_prog in grep ggrep; do
4394 >    for ac_exec_ext in '' $ac_executable_extensions; do
4395 >      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4396 >      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4397 > # Check for GNU ac_path_GREP and select it if it is found.
4398 >  # Check for GNU $ac_path_GREP
4399 > case `"$ac_path_GREP" --version 2>&1` in
4400 > *GNU*)
4401 >  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4402 > *)
4403 >  ac_count=0
4404 >  $as_echo_n 0123456789 >"conftest.in"
4405 >  while :
4406 >  do
4407 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 >    mv "conftest.tmp" "conftest.in"
4409 >    cp "conftest.in" "conftest.nl"
4410 >    $as_echo 'GREP' >> "conftest.nl"
4411 >    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4414 >    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4415 >      # Best one so far, save it but keep looking for a better one
4416 >      ac_cv_path_GREP="$ac_path_GREP"
4417 >      ac_path_GREP_max=$ac_count
4418 >    fi
4419 >    # 10*(2^10) chars as input seems more than enough
4420 >    test $ac_count -gt 10 && break
4421 >  done
4422 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 > esac
4424 >
4425 >      $ac_path_GREP_found && break 3
4426 >    done
4427 >  done
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
4432 >  fi
4433 > else
4434 >  ac_cv_path_GREP=$GREP
4435 > fi
4436 >
4437 > fi
4438 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4439 > $as_echo "$ac_cv_path_GREP" >&6; }
4440 > GREP="$ac_cv_path_GREP"
4441 >
4442 >
4443 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4444 > $as_echo_n "checking for egrep... " >&6; }
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
4449 >   then ac_cv_path_EGREP="$GREP -E"
4450 >   else
4451 >     if test -z "$EGREP"; then
4452 >  ac_path_EGREP_found=false
4453 >  # Loop through the user's path and test for each of PROGNAME-LIST
4454 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 > for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4456 > do
4457 >  IFS=$as_save_IFS
4458 >  test -z "$as_dir" && as_dir=.
4459 >    for ac_prog in egrep; do
4460 >    for ac_exec_ext in '' $ac_executable_extensions; do
4461 >      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4462 >      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4463 > # Check for GNU ac_path_EGREP and select it if it is found.
4464 >  # Check for GNU $ac_path_EGREP
4465 > case `"$ac_path_EGREP" --version 2>&1` in
4466 > *GNU*)
4467 >  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4468 > *)
4469 >  ac_count=0
4470 >  $as_echo_n 0123456789 >"conftest.in"
4471 >  while :
4472 >  do
4473 >    cat "conftest.in" "conftest.in" >"conftest.tmp"
4474 >    mv "conftest.tmp" "conftest.in"
4475 >    cp "conftest.in" "conftest.nl"
4476 >    $as_echo 'EGREP' >> "conftest.nl"
4477 >    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4478 >    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4479 >    as_fn_arith $ac_count + 1 && ac_count=$as_val
4480 >    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4481 >      # Best one so far, save it but keep looking for a better one
4482 >      ac_cv_path_EGREP="$ac_path_EGREP"
4483 >      ac_path_EGREP_max=$ac_count
4484 >    fi
4485 >    # 10*(2^10) chars as input seems more than enough
4486 >    test $ac_count -gt 10 && break
4487 >  done
4488 >  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4489 > esac
4490 >
4491 >      $ac_path_EGREP_found && break 3
4492 >    done
4493 >  done
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
4498 >  fi
4499 > else
4500 >  ac_cv_path_EGREP=$EGREP
4501 > fi
4502 >
4503 >   fi
4504 > fi
4505 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4506 > $as_echo "$ac_cv_path_EGREP" >&6; }
4507 > EGREP="$ac_cv_path_EGREP"
4508 >
4509 >
4510 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4511 > $as_echo_n "checking whether ln -s works... " >&6; }
4512 > LN_S=$as_ln_s
4513 > if test "$LN_S" = "ln -s"; then
4514 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515 > $as_echo "yes" >&6; }
4516 > else
4517 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4518 > $as_echo "no, using $LN_S" >&6; }
4519 > fi
4520 >
4521 > { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
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 eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4526 >  $as_echo_n "(cached) " >&6
4527 > else
4528 >  cat >conftest.make <<\_ACEOF
4529 > SHELL = /bin/sh
4530 > all:
4531 >        @echo '@@@%%%=$(MAKE)=@@@%%%'
4532 > _ACEOF
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;;
4537 >  *)
4538 >    eval ac_cv_prog_make_${ac_make}_set=no;;
4539 > esac
4540 > rm -f conftest.make
4541 > fi
4542 > if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4543 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 > $as_echo "yes" >&6; }
4545 >  SET_MAKE=
4546 > else
4547 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 > $as_echo "no" >&6; }
4549 >  SET_MAKE="MAKE=${MAKE-make}"
4550 > fi
4551 >
4552 > if test -n "$ac_tool_prefix"; then
4553 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
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 ${ac_cv_prog_RANLIB+:} false; then :
4558 >  $as_echo_n "(cached) " >&6
4559 > else
4560 >  if test -n "$RANLIB"; then
4561 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4562 > else
4563 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 > for as_dir in $PATH
4565 > do
4566 >  IFS=$as_save_IFS
4567 >  test -z "$as_dir" && as_dir=.
4568 >    for ac_exec_ext in '' $ac_executable_extensions; do
4569 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 >    break 2
4573 >  fi
4574 > done
4575 >  done
4576 > IFS=$as_save_IFS
4577 >
4578 > fi
4579 > fi
4580 > RANLIB=$ac_cv_prog_RANLIB
4581 > if test -n "$RANLIB"; then
4582 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4583 > $as_echo "$RANLIB" >&6; }
4584 > else
4585 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 > $as_echo "no" >&6; }
4587 > fi
4588 >
4589 >
4590 > fi
4591 > if test -z "$ac_cv_prog_RANLIB"; then
4592 >  ac_ct_RANLIB=$RANLIB
4593 >  # Extract the first word of "ranlib", so it can be a program name with args.
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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4598 >  $as_echo_n "(cached) " >&6
4599 > else
4600 >  if test -n "$ac_ct_RANLIB"; then
4601 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4602 > else
4603 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 > for as_dir in $PATH
4605 > do
4606 >  IFS=$as_save_IFS
4607 >  test -z "$as_dir" && as_dir=.
4608 >    for ac_exec_ext in '' $ac_executable_extensions; do
4609 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
4611 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 >    break 2
4613 >  fi
4614 > done
4615 >  done
4616 > IFS=$as_save_IFS
4617 >
4618 > fi
4619 > fi
4620 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4621 > if test -n "$ac_ct_RANLIB"; then
4622 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4623 > $as_echo "$ac_ct_RANLIB" >&6; }
4624 > else
4625 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 > $as_echo "no" >&6; }
4627 > fi
4628 >
4629 >  if test "x$ac_ct_RANLIB" = x; then
4630 >    RANLIB=":"
4631 >  else
4632 >    case $cross_compiling:$ac_tool_warned in
4633 > yes:)
4634 > { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 > $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 > ac_tool_warned=yes ;;
4637 > esac
4638 >    RANLIB=$ac_ct_RANLIB
4639 >  fi
4640 > else
4641 >  RANLIB="$ac_cv_prog_RANLIB"
4642 > fi
4643 >
4644 >
4645 >   # Extract the first word of "perl", so it can be a program name with args.
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 ${ac_cv_path_PERLINTERP+:} false; then :
4650 >  $as_echo_n "(cached) " >&6
4651 > else
4652 >  case $PERLINTERP in
4653 >  [\\/]* | ?:[\\/]*)
4654 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
4655 >  ;;
4656 >  *)
4657 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 > for as_dir in $PATH
4659 > do
4660 >  IFS=$as_save_IFS
4661 >  test -z "$as_dir" && as_dir=.
4662 >    for ac_exec_ext in '' $ac_executable_extensions; do
4663 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
4665 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 >    break 2
4667 >  fi
4668 > done
4669 >  done
4670 > IFS=$as_save_IFS
4671 >
4672 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
4673 >  ;;
4674 > esac
4675 > fi
4676 > PERLINTERP=$ac_cv_path_PERLINTERP
4677 > if test -n "$PERLINTERP"; then
4678 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLINTERP" >&5
4679 > $as_echo "$PERLINTERP" >&6; }
4680 > else
4681 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 > $as_echo "no" >&6; }
4683 > fi
4684 >
4685 >
4686 >   ac_cv_path_perlinterp="$PERLINTERP"
4687 >   _sHpB='#!'
4688 >
4689 >
4690 > # Check whether --with-perl-shebang was given.
4691 > if test "${with_perl_shebang+set}" = set; then :
4692 >  withval=$with_perl_shebang; opt_perl_shebang="$withval"
4693 > else
4694 >                opt_perl_shebang="not_set"
4695 > fi
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 ${ax_cv_opt_perl_shebang+:} false; then :
4700 >  $as_echo_n "(cached) " >&6
4701 > else
4702 >   case "$opt_perl_shebang" in
4703 >                      not_set  ) ax_cv_opt_perl_shebang=''
4704 >                               ;;
4705 >                         *     )
4706 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
4707 >                    esac
4708 >
4709 > fi
4710 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_opt_perl_shebang" >&5
4711 > $as_echo "$ax_cv_opt_perl_shebang" >&6; }
4712 >   if test "A$ax_cv_opt_perl_shebang" != "A"
4713 >     then
4714 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
4715 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4716 >              { $as_echo "$as_me:${as_lineno-$LINENO}: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
4717 > $as_echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
4718 >
4719 > # Automatic detection of sharpbang formula starts here
4720 >     else
4721 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
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 ${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"`
4729 >        if test "x$_somian_kspb_perl" == x
4730 >          then _somian_ksbp_warn_empty='durnit'
4731 >          else
4732 >          case "A$_somian_kspb_perl" in
4733 >                 A#!*perl* )
4734 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
4735 >                        ;;
4736 >                     A*    )  _somian_ksbp_warn_defau='trouble'
4737 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
4738 >          esac
4739 >        fi
4740 >
4741 > fi
4742 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_kernshrpbang_perl" >&5
4743 > $as_echo "$ac_cv_sys_kernshrpbang_perl" >&6; }
4744 > # The above prints Checking ... result message to user.
4745 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
4746 >
4747 >    if test A${_somian_ksbp_warn_empty+set} == Aset
4748 >      then   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
4749 > $as_echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
4750 >    fi
4751 > # Inform user after printing result value
4752 >    if test A${_somian_ksbp_warn_defau+set} == Aset
4753 >      then { $as_echo "$as_me:${as_lineno-$LINENO}: Maybe Not good -" >&5
4754 > $as_echo "$as_me: Maybe Not good -" >&6;}
4755 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
4756 > $as_echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
4757 >      else { $as_echo "$as_me:${as_lineno-$LINENO}: OK Good result - " >&5
4758 > $as_echo "$as_me: OK Good result - " >&6;}
4759 >           { $as_echo "$as_me:${as_lineno-$LINENO}: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
4760 > $as_echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
4761 >    fi
4762 >  fi
4763 >
4764 > # Find a good install program.  We prefer a C program (faster),
4765 > # so one script is as good as another.  But avoid the broken or
4766 > # incompatible versions:
4767 > # SysV /etc/install, /usr/sbin/install
4768 > # SunOS /usr/etc/install
4769 > # IRIX /sbin/install
4770 > # AIX /bin/install
4771 > # AmigaOS /C/install, which installs bootblocks on floppy discs
4772 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4773 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4774 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4775 > # OS/2's system install, which has a completely different semantic
4776 > # ./install, which can be erroneously created by make from ./install.sh.
4777 > # Reject install programs that cannot install multiple files.
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 ${ac_cv_path_install+:} false; then :
4782 >  $as_echo_n "(cached) " >&6
4783 > else
4784 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 > for as_dir in $PATH
4786 > do
4787 >  IFS=$as_save_IFS
4788 >  test -z "$as_dir" && as_dir=.
4789 >    # Account for people who put trailing slashes in PATH elements.
4790 > case $as_dir/ in #((
4791 >  ./ | .// | /[cC]/* | \
4792 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793 >  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4794 >  /usr/ucb/* ) ;;
4795 >  *)
4796 >    # OSF1 and SCO ODT 3.0 have their own names for install.
4797 >    # Don't use installbsd from OSF since it installs stuff as root
4798 >    # by default.
4799 >    for ac_prog in ginstall scoinst install; do
4800 >      for ac_exec_ext in '' $ac_executable_extensions; do
4801 >        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4802 >          if test $ac_prog = install &&
4803 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4804 >            # AIX install.  It has an incompatible calling convention.
4805 >            :
4806 >          elif test $ac_prog = install &&
4807 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808 >            # program-specific install script used by HP pwplus--don't use.
4809 >            :
4810 >          else
4811 >            rm -rf conftest.one conftest.two conftest.dir
4812 >            echo one > conftest.one
4813 >            echo two > conftest.two
4814 >            mkdir conftest.dir
4815 >            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4816 >              test -s conftest.one && test -s conftest.two &&
4817 >              test -s conftest.dir/conftest.one &&
4818 >              test -s conftest.dir/conftest.two
4819 >            then
4820 >              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4821 >              break 3
4822 >            fi
4823 >          fi
4824 >        fi
4825 >      done
4826 >    done
4827 >    ;;
4828 > esac
4829 >
4830 >  done
4831 > IFS=$as_save_IFS
4832 >
4833 > rm -rf conftest.one conftest.two conftest.dir
4834 >
4835 > fi
4836 >  if test "${ac_cv_path_install+set}" = set; then
4837 >    INSTALL=$ac_cv_path_install
4838 >  else
4839 >    # As a last resort, use the slow shell script.  Don't cache a
4840 >    # value for INSTALL within a source directory, because that will
4841 >    # break other packages using the cache if that directory is
4842 >    # removed, or if the value is a relative name.
4843 >    INSTALL=$ac_install_sh
4844 >  fi
4845 > fi
4846 > { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4847 > $as_echo "$INSTALL" >&6; }
4848 >
4849 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4850 > # It thinks the first close brace ends the variable substitution.
4851 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4852 >
4853 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4854 >
4855 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4856 >
4857 > case "x$INSTALL" in
4858 >   x/*) ;;
4859 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
4860 > esac
4861 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f -m 755"
4862 > # Extract the first word of "ar", so it can be a program name with args.
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 ${ac_cv_prog_AR+:} false; then :
4867 >  $as_echo_n "(cached) " >&6
4868 > else
4869 >  if test -n "$AR"; then
4870 >  ac_cv_prog_AR="$AR" # Let the user override the test.
4871 > else
4872 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 > for as_dir in $PATH
4874 > do
4875 >  IFS=$as_save_IFS
4876 >  test -z "$as_dir" && as_dir=.
4877 >    for ac_exec_ext in '' $ac_executable_extensions; do
4878 >  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 >    ac_cv_prog_AR="ar"
4880 >    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 >    break 2
4882 >  fi
4883 > done
4884 >  done
4885 > IFS=$as_save_IFS
4886 >
4887 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4888 > fi
4889 > fi
4890 > AR=$ac_cv_prog_AR
4891 > if test -n "$AR"; then
4892 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4893 > $as_echo "$AR" >&6; }
4894 > else
4895 >  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 > $as_echo "no" >&6; }
4897 > fi
4898 >
4899 >
4900 > if test "$AR" = "NONE"; then
4901 >  cat >confcache <<\_ACEOF
4902 > # This file is a shell script that caches the results of configure
4903 > # tests run on this system so they can be shared between configure
4904 > # scripts and configure runs, see configure's option --config-cache.
4905 > # It is not useful on other systems.  If it contains results you don't
4906 > # want to keep, you may remove or edit it.
4907 > #
4908 > # config.status only pays attention to the cache file if you give it
4909 > # the --recheck option to rerun configure.
4910 > #
4911 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
4912 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
4913 > # following values.
4914 >
4915 > _ACEOF
4916 >
4917 > # The following way of writing the cache mishandles newlines in values,
4918 > # but we know of no workaround that is simple, portable, and efficient.
4919 > # So, we kill variables containing newlines.
4920 > # Ultrix sh set writes to stderr and can't be redirected directly,
4921 > # and sets the high bit in the cache file unless we assign to the vars.
4922 > (
4923 >  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4924 >    eval ac_val=\$$ac_var
4925 >    case $ac_val in #(
4926 >    *${as_nl}*)
4927 >      case $ac_var in #(
4928 >      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4929 > $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4930 >      esac
4931 >      case $ac_var in #(
4932 >      _ | IFS | as_nl) ;; #(
4933 >      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4934 >      *) { eval $ac_var=; unset $ac_var;} ;;
4935 >      esac ;;
4936 >    esac
4937 >  done
4938 >
4939 >  (set) 2>&1 |
4940 >    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4941 >    *${as_nl}ac_space=\ *)
4942 >      # `set' does not quote correctly, so add quotes: double-quote
4943 >      # substitution turns \\\\ into \\, and sed turns \\ into \.
4944 >      sed -n \
4945 >        "s/'/'\\\\''/g;
4946 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4947 >      ;; #(
4948 >    *)
4949 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
4950 >      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4951 >      ;;
4952 >    esac |
4953 >    sort
4954 > ) |
4955 >  sed '
4956 >     /^ac_cv_env_/b end
4957 >     t clear
4958 >     :clear
4959 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4960 >     t end
4961 >     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4962 >     :end' >>confcache
4963 > if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4964 >  if test -w "$cache_file"; then
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 >      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;}
4983 >  fi
4984   fi
4985 < rm -f core conftest.err conftest.$ac_objext \
4986 <    conftest$ac_exeext conftest.$ac_ext
8385 < LIBS=$ac_check_lib_save_LIBS
4985 > rm -f confcache
4986 >  exit 1
4987   fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
8388 $as_echo "$ac_cv_lib_m_asin" >&6; }
8389 if test "x$ac_cv_lib_m_asin" = x""yes; then :
8390  cat >>confdefs.h <<_ACEOF
8391 #define HAVE_LIBM 1
8392 _ACEOF
4988  
8394  LIBS="-lm $LIBS"
4989  
8396 else
8397  exit
8398 fi
8399
8400
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 8410 | Line 4999 | else
4999   #include <string.h>
5000   #include <float.h>
5001  
8413 #ifdef FC_DUMMY_MAIN
8414 #ifndef FC_DUMMY_MAIN_EQ_F77
8415 #  ifdef __cplusplus
8416     extern "C"
8417 #  endif
8418   int FC_DUMMY_MAIN() { return 1; }
8419 #endif
8420 #endif
5002   int
5003   main ()
5004   {
# Line 8525 | 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
8529 <   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 8581 | 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 8596 | Line 5176 | char inflateEnd ();
5176   extern "C"
5177   #endif
5178   char inflateEnd ();
8599 #ifdef FC_DUMMY_MAIN
8600 #ifndef FC_DUMMY_MAIN_EQ_F77
8601 #  ifdef __cplusplus
8602     extern "C"
8603 #  endif
8604   int FC_DUMMY_MAIN() { return 1; }
8605 #endif
8606 #endif
5179   int
5180   main ()
5181   {
# Line 8623 | 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 8667 | Line 5239 | $as_echo "failed" >&6; }
5239                  echo ""
5240                  echo "*********************************************************"
5241                  echo "* WARNING: Could not find a working zlib installation   *"
5242 <                echo "* If you need OOPSE to be able to deal with compressed  *"
5242 >                echo "* If you need OpenMD to be able to deal with compressed *"
5243                  echo "* trajectory dump files be sure to specify a valid zlib *"
5244                  echo "* installation with --with-zlib=DIR                     *"
5245                  echo "*                                                       *"
5246 <                echo "* OOPSE will still work without zlib installed.         *"
5246 >                echo "* OpenMD will still work without zlib installed.        *"
5247                  echo "*********************************************************"
5248                  echo ""
5249          fi
# Line 8721 | 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 8736 | Line 5308 | char fftw_execute ();
5308   extern "C"
5309   #endif
5310   char fftw_execute ();
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
5311   int
5312   main ()
5313   {
# Line 8763 | 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 8780 | 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 8795 | Line 5359 | char fftwnd_one ();
5359   extern "C"
5360   #endif
5361   char fftwnd_one ();
8798 #ifdef FC_DUMMY_MAIN
8799 #ifndef FC_DUMMY_MAIN_EQ_F77
8800 #  ifdef __cplusplus
8801     extern "C"
8802 #  endif
8803   int FC_DUMMY_MAIN() { return 1; }
8804 #endif
8805 #endif
5362   int
5363   main ()
5364   {
# Line 8822 | 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 8839 | 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 8854 | Line 5410 | char fftwnd_one ();
5410   extern "C"
5411   #endif
5412   char fftwnd_one ();
8857 #ifdef FC_DUMMY_MAIN
8858 #ifndef FC_DUMMY_MAIN_EQ_F77
8859 #  ifdef __cplusplus
8860     extern "C"
8861 #  endif
8862   int FC_DUMMY_MAIN() { return 1; }
8863 #endif
8864 #endif
5413   int
5414   main ()
5415   {
# Line 8881 | 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 8943 | Line 5491 | $as_echo "failed" >&6; }
5491              echo "* compute undulation spectra, be sure to specify a      *"
5492              echo "* valid fftw installation with --with-fftw=DIR          *"
5493              echo "*                                                       *"
5494 <            echo "* OOPSE will still work without fftw installed.         *"
5494 >            echo "* OpenMD will still work without fftw installed.        *"
5495              echo "*********************************************************"
5496              echo ""
5497            fi
# Line 8980 | 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 9004 | 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 9029 | Line 5577 | char qh_qhull ();
5577   extern "C"
5578   #endif
5579   char qh_qhull ();
9032 #ifdef FC_DUMMY_MAIN
9033 #ifndef FC_DUMMY_MAIN_EQ_F77
9034 #  ifdef __cplusplus
9035     extern "C"
9036 #  endif
9037   int FC_DUMMY_MAIN() { return 1; }
9038 #endif
9039 #endif
5580   int
5581   main ()
5582   {
# Line 9056 | 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"
# Line 9072 | 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"
9085           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 9090 | Line 5680 | $as_echo "$as_me: WARNING: Could not find a working qh
5680   $as_echo "$as_me: WARNING: " >&2;}
5681             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find a working qhull installation" >&5
5682   $as_echo "$as_me: WARNING: Could not find a working qhull installation" >&2;}
5683 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OOPSE to be able to deal with convex    " >&5
5684 < $as_echo "$as_me: WARNING: If you need OOPSE to be able to deal with convex    " >&2;}
5683 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you need OpenMD to be able to deal with convex    " >&5
5684 > $as_echo "$as_me: WARNING: If you need OpenMD to be able to deal with convex    " >&2;}
5685             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hulls be sure to specify a valid qhull installation " >&5
5686   $as_echo "$as_me: WARNING: hulls be sure to specify a valid qhull installation " >&2;}
5687             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: with --with-qhull=DIR                               " >&5
5688   $as_echo "$as_me: WARNING: with --with-qhull=DIR                               " >&2;}
5689             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5690   $as_echo "$as_me: WARNING: " >&2;}
5691 <           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OOPSE will still work without qhull installed.      " >&5
5692 < $as_echo "$as_me: WARNING: OOPSE will still work without qhull installed.      " >&2;}
5691 >           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenMD will still work without qhull installed.      " >&5
5692 > $as_echo "$as_me: WARNING: OpenMD will still work without qhull installed.      " >&2;}
5693             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
5694   $as_echo "$as_me: WARNING: " >&2;}
5695          fi
# Line 9118 | 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 9148 | 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 9164 | 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 9207 | 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 9223 | 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 9288 | 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 9296 | 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 9312 | Line 5902 | using namespace OpenBabel;
5902   using namespace std;
5903   using namespace OpenBabel;
5904  
9315 #ifdef FC_DUMMY_MAIN
9316 #ifndef FC_DUMMY_MAIN_EQ_F77
9317 #  ifdef __cplusplus
9318     extern "C"
9319 #  endif
9320   int FC_DUMMY_MAIN() { return 1; }
9321 #endif
9322 #endif
5905   int
5906   main ()
5907   {
# Line 9373 | Line 5955 | $as_echo "failed" >&6; }
5955                  echo ""
5956                  echo "*********************************************************"
5957                  echo "* WARNING: Could not find a working openbabel-2.x       *"
5958 <                echo "* installation If you need OOPSE to be able to convert  *"
5958 >                echo "* installation If you need OpenMD to be able to convert *"
5959                  echo "* xyz or pdb files you need to specify a valid          *"
5960                  echo "* openbabel-2.x installation with --with-openbabel=DIR  *"
5961                  echo "*                                                       *"
5962 <                echo "* OOPSE will still work without openbabel installed.    *"
5962 >                echo "* OpenMD will still work without openbabel installed.   *"
5963                  echo "*********************************************************"
5964                  echo ""
5965          fi
# Line 9390 | 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
9394 < $as_echo_n "checking for ANSI C header files... " >&6; }
9395 < if test "${ac_cv_header_stdc+set}" = set; then :
9396 <  $as_echo_n "(cached) " >&6
9397 < else
9398 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 < /* end confdefs.h.  */
9400 < #include <stdlib.h>
9401 < #include <stdarg.h>
9402 < #include <string.h>
9403 < #include <float.h>
9404 <
9405 < #ifdef FC_DUMMY_MAIN
9406 < #ifndef FC_DUMMY_MAIN_EQ_F77
9407 < #  ifdef __cplusplus
9408 <     extern "C"
9409 < #  endif
9410 <   int FC_DUMMY_MAIN() { return 1; }
9411 < #endif
9412 < #endif
9413 < int
9414 < main ()
9415 < {
9416 <
9417 <  ;
9418 <  return 0;
9419 < }
9420 < _ACEOF
9421 < if ac_fn_c_try_compile "$LINENO"; then :
9422 <  ac_cv_header_stdc=yes
9423 < else
9424 <  ac_cv_header_stdc=no
9425 < fi
9426 < rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427 <
9428 < if test $ac_cv_header_stdc = yes; then
9429 <  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9430 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 < /* end confdefs.h.  */
9432 < #include <string.h>
9433 <
9434 < _ACEOF
9435 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9436 <  $EGREP "memchr" >/dev/null 2>&1; then :
9437 <
9438 < else
9439 <  ac_cv_header_stdc=no
9440 < fi
9441 < rm -f conftest*
9442 <
9443 < fi
9444 <
9445 < if test $ac_cv_header_stdc = yes; then
9446 <  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9447 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 < /* end confdefs.h.  */
9449 < #include <stdlib.h>
9450 <
9451 < _ACEOF
9452 < if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9453 <  $EGREP "free" >/dev/null 2>&1; then :
9454 <
9455 < else
9456 <  ac_cv_header_stdc=no
9457 < fi
9458 < rm -f conftest*
9459 <
9460 < fi
9461 <
9462 < if test $ac_cv_header_stdc = yes; then
9463 <  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9464 <  if test "$cross_compiling" = yes; then :
9465 <  :
9466 < else
9467 <  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 < /* end confdefs.h.  */
9469 < #include <ctype.h>
9470 < #include <stdlib.h>
9471 < #if ((' ' & 0x0FF) == 0x020)
9472 < # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9473 < # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9474 < #else
9475 < # define ISLOWER(c) \
9476 <                   (('a' <= (c) && (c) <= 'i') \
9477 <                     || ('j' <= (c) && (c) <= 'r') \
9478 <                     || ('s' <= (c) && (c) <= 'z'))
9479 < # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9480 < #endif
9481 <
9482 < #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9483 < int
9484 < main ()
9485 < {
9486 <  int i;
9487 <  for (i = 0; i < 256; i++)
9488 <    if (XOR (islower (i), ISLOWER (i))
9489 <        || toupper (i) != TOUPPER (i))
9490 <      return 2;
9491 <  return 0;
9492 < }
9493 < _ACEOF
9494 < if ac_fn_c_try_run "$LINENO"; then :
9495 <
9496 < else
9497 <  ac_cv_header_stdc=no
9498 < fi
9499 < rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9500 <  conftest.$ac_objext conftest.beam conftest.$ac_ext
9501 < fi
9502 <
9503 < fi
9504 < fi
9505 < { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9506 < $as_echo "$ac_cv_header_stdc" >&6; }
9507 < if test $ac_cv_header_stdc = yes; then
9508 <
9509 < $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9510 <
9511 < fi
9512 <
9513 < 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
9518 <   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 9528 | 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 9560 | 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 9571 | 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];
9574 #       if defined __xlc__ || defined __GNUC__
9575         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9576            reported by James Lemley on 2005-10-05; see
9577            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9578            This test is not quite right, since xlc is allowed to
9579            reject this program, as the initializer for xlcbug is
9580            not one of the forms that C requires support for.
9581            However, doing the test right would require a runtime
9582            test, and that would make cross-compilation harder.
9583            Let us hope that IBM fixes the xlc bug, and also adds
9584            support for this kind of constant expression.  In the
9585            meantime, this test will reject xlc, which is OK, since
9586            our stdbool.h substitute should suffice.  We also test
9587            this with GCC, where it should work, to detect more
9588            quickly whether someone messes up the test in the
9589            future.  */
9590         char digs[] = "0123456789";
9591         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9592 #       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 9597 | Line 6039 | else
6039          _Bool q = true;
6040          _Bool *pq = &q;
6041  
9600 #ifdef FC_DUMMY_MAIN
9601 #ifndef FC_DUMMY_MAIN_EQ_F77
9602 #  ifdef __cplusplus
9603     extern "C"
9604 #  endif
9605   int FC_DUMMY_MAIN() { return 1; }
9606 #endif
9607 #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 9629 | 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 9641 | Line 6076 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6076   if test $ac_cv_header_stdbool_h = yes; then
6077  
6078   $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9644
9645 fi
6079  
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9648 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9649 if test "${ac_cv_c_const+set}" = set; then :
9650  $as_echo_n "(cached) " >&6
9651 else
9652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h.  */
9654
9655 #ifdef FC_DUMMY_MAIN
9656 #ifndef FC_DUMMY_MAIN_EQ_F77
9657 #  ifdef __cplusplus
9658     extern "C"
9659 #  endif
9660   int FC_DUMMY_MAIN() { return 1; }
9661 #endif
9662 #endif
9663 int
9664 main ()
9665 {
9666 /* FIXME: Include the comments suggested by Paul. */
9667 #ifndef __cplusplus
9668  /* Ultrix mips cc rejects this.  */
9669  typedef int charset[2];
9670  const charset cs;
9671  /* SunOS 4.1.1 cc rejects this.  */
9672  char const *const *pcpcc;
9673  char **ppc;
9674  /* NEC SVR4.0.2 mips cc rejects this.  */
9675  struct point {int x, y;};
9676  static struct point const zero = {0,0};
9677  /* AIX XL C 1.02.0.0 rejects this.
9678     It does not let you subtract one const X* pointer from another in
9679     an arm of an if-expression whose if-part is not a constant
9680     expression */
9681  const char *g = "string";
9682  pcpcc = &g + (g ? g-g : 0);
9683  /* HPUX 7.0 cc rejects these. */
9684  ++pcpcc;
9685  ppc = (char**) pcpcc;
9686  pcpcc = (char const *const *) ppc;
9687  { /* SCO 3.2v4 cc rejects this.  */
9688    char *t;
9689    char const *s = 0 ? (char *) 0 : (char const *) 0;
9690
9691    *t++ = 0;
9692    if (s) return 0;
9693  }
9694  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9695    int x[] = {25, 17};
9696    const int *foo = &x[0];
9697    ++foo;
9698  }
9699  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9700    typedef const int *iptr;
9701    iptr p = 0;
9702    ++p;
9703  }
9704  { /* AIX XL C 1.02.0.0 rejects this saying
9705       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9706    struct s { int j; const int *ap[3]; };
9707    struct s *b; b->j = 5;
9708  }
9709  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9710    const int foo = 10;
9711    if (!foo) return 0;
9712  }
9713  return !cs[0] && !zero.x;
9714 #endif
9715
9716  ;
9717  return 0;
9718 }
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"; then :
9721  ac_cv_c_const=yes
9722 else
9723  ac_cv_c_const=no
6080   fi
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9728 $as_echo "$ac_cv_c_const" >&6; }
9729 if test $ac_cv_c_const = no; then
6081  
9731 $as_echo "#define const /**/" >>confdefs.h
9732
9733 fi
9734
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 9775 | 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 9785 | Line 6132 | fi
6132  
6133   fi
6134  
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9789 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9790 if test "${ac_cv_header_time+set}" = set; then :
9791  $as_echo_n "(cached) " >&6
9792 else
9793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h.  */
9795 #include <sys/types.h>
9796 #include <sys/time.h>
9797 #include <time.h>
6135  
9799 #ifdef FC_DUMMY_MAIN
9800 #ifndef FC_DUMMY_MAIN_EQ_F77
9801 #  ifdef __cplusplus
9802     extern "C"
9803 #  endif
9804   int FC_DUMMY_MAIN() { return 1; }
9805 #endif
9806 #endif
9807 int
9808 main ()
9809 {
9810 if ((struct tm *) 0)
9811 return 0;
9812  ;
9813  return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_compile "$LINENO"; then :
9817  ac_cv_header_time=yes
9818 else
9819  ac_cv_header_time=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 fi
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9824 $as_echo "$ac_cv_header_time" >&6; }
9825 if test $ac_cv_header_time = yes; then
9826
9827 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9828
9829 fi
9830
9831
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 9844 | 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 9858 | Line 6162 | char *malloc ();
6162   char *malloc ();
6163   #endif
6164  
9861 #ifdef FC_DUMMY_MAIN
9862 #ifndef FC_DUMMY_MAIN_EQ_F77
9863 #  ifdef __cplusplus
9864     extern "C"
9865 #  endif
9866   int FC_DUMMY_MAIN() { return 1; }
9867 #endif
9868 #endif
6165   int
6166   main ()
6167   {
# Line 9908 | 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 9919 | 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 9933 | Line 6229 | char *realloc ();
6229   char *realloc ();
6230   #endif
6231  
9936 #ifdef FC_DUMMY_MAIN
9937 #ifndef FC_DUMMY_MAIN_EQ_F77
9938 #  ifdef __cplusplus
9939     extern "C"
9940 #  endif
9941   int FC_DUMMY_MAIN() { return 1; }
9942 #endif
9943 #endif
6232   int
6233   main ()
6234   {
# Line 9980 | Line 6268 | fi
6268   fi
6269  
6270  
9983 for ac_header in sys/select.h sys/socket.h
9984 do :
9985  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9986 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9987 eval as_val=\$$as_ac_Header
9988   if test "x$as_val" = x""yes; then :
9989  cat >>confdefs.h <<_ACEOF
9990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9991 _ACEOF
9992
9993 fi
9994
9995 done
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9998 $as_echo_n "checking types of arguments for select... " >&6; }
9999 if test "${ac_cv_func_select_args+set}" = set; then :
10000  $as_echo_n "(cached) " >&6
10001 else
10002  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10003 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10004  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h.  */
10007 $ac_includes_default
10008 #ifdef HAVE_SYS_SELECT_H
10009 # include <sys/select.h>
10010 #endif
10011 #ifdef HAVE_SYS_SOCKET_H
10012 # include <sys/socket.h>
10013 #endif
10014
10015 #ifdef FC_DUMMY_MAIN
10016 #ifndef FC_DUMMY_MAIN_EQ_F77
10017 #  ifdef __cplusplus
10018     extern "C"
10019 #  endif
10020   int FC_DUMMY_MAIN() { return 1; }
10021 #endif
10022 #endif
10023 int
10024 main ()
10025 {
10026 extern int select ($ac_arg1,
10027                                            $ac_arg234, $ac_arg234, $ac_arg234,
10028                                            $ac_arg5);
10029  ;
10030  return 0;
10031 }
10032 _ACEOF
10033 if ac_fn_c_try_compile "$LINENO"; then :
10034  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037  done
10038 done
10039 done
10040 # Provide a safe default value.
10041 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10042
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10045 $as_echo "$ac_cv_func_select_args" >&6; }
10046 ac_save_IFS=$IFS; IFS=','
10047 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10048 IFS=$ac_save_IFS
10049 shift
10050
10051 cat >>confdefs.h <<_ACEOF
10052 #define SELECT_TYPE_ARG1 $1
10053 _ACEOF
10054
10055
10056 cat >>confdefs.h <<_ACEOF
10057 #define SELECT_TYPE_ARG234 ($2)
10058 _ACEOF
10059
10060
10061 cat >>confdefs.h <<_ACEOF
10062 #define SELECT_TYPE_ARG5 ($3)
10063 _ACEOF
10064
10065 rm -f conftest*
10066
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 10125 | 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 10147 | Line 6351 | char pow ();
6351   extern "C"
6352   #endif
6353   char pow ();
10150 #ifdef FC_DUMMY_MAIN
10151 #ifndef FC_DUMMY_MAIN_EQ_F77
10152 #  ifdef __cplusplus
10153     extern "C"
10154 #  endif
10155   int FC_DUMMY_MAIN() { return 1; }
10156 #endif
10157 #endif
6354   int
6355   main ()
6356   {
# Line 10174 | 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 10185 | 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
10193 <   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 10199 | Line 6394 | done
6394   done
6395  
6396  
10202 # special check for _system_configuration because AIX <4.3.2 do not
10203 # contain the `physmem' member.
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
10205 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h.  */
10208 #include <sys/systemcfg.h>
10209 #ifdef FC_DUMMY_MAIN
10210 #ifndef FC_DUMMY_MAIN_EQ_F77
10211 #  ifdef __cplusplus
10212     extern "C"
10213 #  endif
10214   int FC_DUMMY_MAIN() { return 1; }
10215 #endif
10216 #endif
10217 int
10218 main ()
10219 {
10220 double x = _system_configuration.physmem;
10221  ;
10222  return 0;
10223 }
10224 _ACEOF
10225 if ac_fn_c_try_compile "$LINENO"; then :
10226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10227 $as_echo "yes" >&6; }
6397  
10229 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
10230
10231 else
10232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236
10237
6398   case $debug in
6399    1)
6400       ;;
# Line 10244 | Line 6404 | case $debug in
6404  
6405  
6406  
10247 # Try to determine "good" native compiler flags if none specified on command
10248 # line
6407  
10250 if test "$ac_test_FFLAGS" != "set"; then
10251  FCFLAGS=""
10252  case "${host_cpu}-${host_os}" in
10253
10254  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
10255                    FCFLAGS="-O2"
10256                fi;;
10257   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
10258                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
10259                fi;;
10260   powerpc*-aix*)
10261        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10262                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
10263                echo "*******************************************************"
10264                echo "*  You have AIX on an unknown powerpc system.  It is  *"
10265                echo "*  recommended that you use                           *"
10266                echo "*                                                     *"
10267                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
10268                echo "*                                 ^^^                 *"
10269                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
10270                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
10271                echo "*******************************************************"
10272        fi;;
10273   *darwin*)
10274        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
10275                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
10276        fi
10277        if test "$FC" = ifort; then
10278                FCFLAGS="-O2"
10279        fi
10280        if test "$FC" = gfortran; then
10281                FCFLAGS="-Os"
10282        fi;;
10283  esac
10284
10285  if test -z "$FCFLAGS"; then
10286        echo ""
10287        echo "*********************************************************"
10288        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
10289        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10290        echo "* (otherwise, a default of FCFLAGS=-O will be used)     *"
10291        echo "*********************************************************"
10292        echo ""
10293        FCFLAGS="-O"
10294  fi
10295
10296
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${FC} accepts ${FCFLAGS}" >&5
10298 $as_echo_n "checking whether ${FC} accepts ${FCFLAGS}... " >&6; }
10299 if test "${ac_cv_ac_cv_guessed_f90flags+set}" = set; then :
10300  $as_echo_n "(cached) " >&6
10301 else
10302
10303
10304 ac_ext=${ac_fc_srcext-f}
10305 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
10306 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
10307 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
10308
10309 echo 'program main' > conftest.$ac_ext
10310 echo 'end program main' >> conftest.$ac_ext
10311 ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
10312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10313  (eval $ac_compile) 2>&5
10314  ac_status=$?
10315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10316  test $ac_status = 0; }; then
10317        ac_cv_ac_cv_guessed_f90flags=yes
10318 else
10319        ac_cv_ac_cv_guessed_f90flags=no
10320 fi
10321 rm -f conftest*
10322 ac_ext=c
10323 ac_cpp='$CPP $CPPFLAGS'
10324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10327
10328
10329 fi
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ac_cv_guessed_f90flags" >&5
10331 $as_echo "$ac_cv_ac_cv_guessed_f90flags" >&6; }
10332 if test "$ac_cv_ac_cv_guessed_f90flags" = yes; then
10333        :
10334
10335 else
10336        :
10337
10338        echo ""
10339        echo "**********************************************************"
10340        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
10341        echo "* your compiler.                                        *"
10342        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
10343        echo "*********************************************************"
10344        echo ""
10345        FCFLAGS=""
10346
10347 fi
10348
10349
10350 fi
10351
10352
10353
10354
10355
10356
10357
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 10462 | 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 10504 | 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 10600 | 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 10669 | 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 10707 | 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 10716 | 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 10764 | 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 10786 | Line 6836 | fi
6836  
6837  
6838  
10789
10790
10791
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 10856 | 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 10875 | 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 10890 | 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 10991 | 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 11036 | 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 11244 | 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 11297 | 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 OOPSE $as_me 4.0, which was
7361 < generated by GNU Autoconf 2.64.  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 11337 | Line 7397 | Usage: $0 [OPTION]... [TAG]...
7397  
7398    -h, --help       print this help, then exit
7399    -V, --version    print version number and configuration settings, then exit
7400 +      --config     print configuration, then exit
7401    -q, --quiet, --silent
7402                     do not print progress messages
7403    -d, --debug      don't remove temporary files
# Line 11356 | Line 7417 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417  
7418   _ACEOF
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 < OOPSE config.status 4.0
7423 < configured by $0, generated by GNU Autoconf 2.64,
7424 <  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
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 11377 | 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 11395 | Line 7462 | do
7462      ac_cs_recheck=: ;;
7463    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7464      $as_echo "$ac_cs_version"; exit ;;
7465 +  --config | --confi | --conf | --con | --co | --c )
7466 +    $as_echo "$ac_cs_config"; exit ;;
7467    --debug | --debu | --deb | --de | --d | -d )
7468      debug=: ;;
7469    --file | --fil | --fi | --f )
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 11413 | 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 11422 | 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 11479 | 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 11501 | 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 11511 | 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 11533 | 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 11547 | 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 11566 | 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 11580 | Line 7652 | h
7652   t delim
7653   :nl
7654   h
7655 < s/\(.\{148\}\).*/\1/
7655 > s/\(.\{148\}\)..*/\1/
7656   t more1
7657   s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7658   p
# Line 11594 | Line 7666 | h
7666   t nl
7667   :delim
7668   h
7669 < s/\(.\{148\}\).*/\1/
7669 > s/\(.\{148\}\)..*/\1/
7670   t more2
7671   s/["\\]/\\&/g; s/^/"/; s/$/"/
7672   p
# Line 11614 | 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 11646 | 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 11672 | 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 11684 | 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 11773 | 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 11786 | 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 11805 | 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 11814 | 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 11840 | 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 11971 | 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 11996 | 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 12035 | 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 12056 | 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