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 345 by gezelter, Tue Feb 15 15:17:01 2005 UTC vs.
Revision 1137 by chuckv, Tue May 29 22:50:14 2007 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by Autoconf 2.50 for OOPSE 2.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 3.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10 + ## --------------------- ##
11 + ## M4sh Initialization.  ##
12 + ## --------------------- ##
13  
14   # Be Bourne compatible
15   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16    emulate sh
17    NULLCMD=:
18 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 +  # is contrary to our usage.  Disable this feature.
20 +  alias -g '${1+"$@"}'='"$@"'
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26 + # Support unset when possible.
27 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 +  as_unset=unset
29 + else
30 +  as_unset=false
31 + fi
32 +
33 +
34 + # Work around bugs in pre-3.0 UWIN ksh.
35 + $as_unset ENV MAIL MAILPATH
36 + PS1='$ '
37 + PS2='> '
38 + PS4='+ '
39 +
40 + # NLS nuisances.
41 + for as_var in \
42 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 +  LC_TELEPHONE LC_TIME
45 + do
46 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 +    eval $as_var=C; export $as_var
48 +  else
49 +    $as_unset $as_var
50 +  fi
51 + done
52 +
53 + # Required to use basename.
54 + if expr a : '\(a\)' >/dev/null 2>&1; then
55 +  as_expr=expr
56 + else
57 +  as_expr=false
58 + fi
59 +
60 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 +  as_basename=basename
62 + else
63 +  as_basename=false
64 + fi
65 +
66 +
67   # Name of the executable.
68 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
68 > as_me=`$as_basename "$0" ||
69 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 >         X"$0" : 'X\(//\)$' \| \
71 >         X"$0" : 'X\(/\)$' \| \
72 >         .     : '\(.\)' 2>/dev/null ||
73 > echo X/"$0" |
74 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
76 >          /^X\/\(\/\).*/{ s//\1/; q; }
77 >          s/.*/./; q'`
78  
79 +
80 + # PATH needs CR, and LINENO needs CR and PATH.
81 + # Avoid depending upon Character Ranges.
82 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 + as_cr_digits='0123456789'
86 + as_cr_alnum=$as_cr_Letters$as_cr_digits
87 +
88 + # The user is always right.
89 + if test "${PATH_SEPARATOR+set}" != set; then
90 +  echo "#! /bin/sh" >conf$$.sh
91 +  echo  "exit 0"   >>conf$$.sh
92 +  chmod +x conf$$.sh
93 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 +    PATH_SEPARATOR=';'
95 +  else
96 +    PATH_SEPARATOR=:
97 +  fi
98 +  rm -f conf$$.sh
99 + fi
100 +
101 +
102 +  as_lineno_1=$LINENO
103 +  as_lineno_2=$LINENO
104 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
106 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107 +  # Find who we are.  Look in the path if we contain no path at all
108 +  # relative or not.
109 +  case $0 in
110 +    *[\\/]* ) as_myself=$0 ;;
111 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 + for as_dir in $PATH
113 + do
114 +  IFS=$as_save_IFS
115 +  test -z "$as_dir" && as_dir=.
116 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 + done
118 +
119 +       ;;
120 +  esac
121 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 +  # in which case we are not to be found in the path.
123 +  if test "x$as_myself" = x; then
124 +    as_myself=$0
125 +  fi
126 +  if test ! -f "$as_myself"; then
127 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 +   { (exit 1); exit 1; }; }
129 +  fi
130 +  case $CONFIG_SHELL in
131 +  '')
132 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 + do
135 +  IFS=$as_save_IFS
136 +  test -z "$as_dir" && as_dir=.
137 +  for as_base in sh bash ksh sh5; do
138 +         case $as_dir in
139 +         /*)
140 +           if ("$as_dir/$as_base" -c '
141 +  as_lineno_1=$LINENO
142 +  as_lineno_2=$LINENO
143 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 +             CONFIG_SHELL=$as_dir/$as_base
149 +             export CONFIG_SHELL
150 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 +           fi;;
152 +         esac
153 +       done
154 + done
155 + ;;
156 +  esac
157 +
158 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 +  # uniformly replaced by the line number.  The first 'sed' inserts a
160 +  # line-number line before each line; the second 'sed' does the real
161 +  # work.  The second script uses 'N' to pair each line-number line
162 +  # with the numbered line, and appends trailing '-' during
163 +  # substitution so that $LINENO is not a special case at line end.
164 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 +  sed '=' <$as_myself |
167 +    sed '
168 +      N
169 +      s,$,-,
170 +      : loop
171 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 +      t loop
173 +      s,-$,,
174 +      s,^['$as_cr_digits']*\n,,
175 +    ' >$as_me.lineno &&
176 +  chmod +x $as_me.lineno ||
177 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 +   { (exit 1); exit 1; }; }
179 +
180 +  # Don't try to exec as it changes $[0], causing all sort of problems
181 +  # (the dirname of $[0] is not the place where we might find the
182 +  # original and so on.  Autoconf is especially sensible to this).
183 +  . ./$as_me.lineno
184 +  # Exit status is that of the last command.
185 +  exit
186 + }
187 +
188 +
189 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 +  *c*,-n*) ECHO_N= ECHO_C='
191 + ' ECHO_T='      ' ;;
192 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 + esac
195 +
196   if expr a : '\(a\)' >/dev/null 2>&1; then
197    as_expr=expr
198   else
# Line 44 | Line 217 | rm -f conf$$ conf$$.exe conf$$.file
217   fi
218   rm -f conf$$ conf$$.exe conf$$.file
219  
220 < as_executable_p="test -f"
221 <
49 < # Support unset when possible.
50 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 <  as_unset=unset
220 > if mkdir -p . 2>/dev/null; then
221 >  as_mkdir_p=:
222   else
223 <  as_unset=false
223 >  test -d ./-p && rmdir ./-p
224 >  as_mkdir_p=false
225   fi
226  
227 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
227 > as_executable_p="test -f"
228  
229 + # Sed expression to map a string onto a valid CPP name.
230 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 +
232 + # Sed expression to map a string onto a valid variable name.
233 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 +
235 +
236   # IFS
237   # We need space, tab and new line, in precisely that order.
238   as_nl='
# Line 70 | Line 240 | IFS="  $as_nl"
240   IFS="   $as_nl"
241  
242   # CDPATH.
243 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 > $as_unset CDPATH
244  
245 +
246   # Name of the host.
247   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248   # so uname gets run too.
# Line 83 | Line 254 | ac_default_prefix=/usr/local
254   # Initializations.
255   #
256   ac_default_prefix=/usr/local
257 + ac_config_libobj_dir=.
258   cross_compiling=no
259   subdirs=
260 < MFLAGS= MAKEFLAGS=
260 > MFLAGS=
261 > MAKEFLAGS=
262   SHELL=${CONFIG_SHELL-/bin/sh}
263  
264   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 266 | SHELL=${CONFIG_SHELL-/bin/sh}
266   # only ac_max_sed_lines should be used.
267   : ${ac_max_here_lines=38}
268  
269 < # Avoid depending upon Character Ranges.
270 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
271 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
272 < ac_cr_09='0123456789'
273 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
269 > # Identity of this package.
270 > PACKAGE_NAME='OOPSE'
271 > PACKAGE_TARNAME='oopse'
272 > PACKAGE_VERSION='3.0'
273 > PACKAGE_STRING='OOPSE 3.0'
274 > PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
276   ac_unique_file="src/applications/oopse/oopse.cpp"
277   ac_default_prefix="/usr/local"
278 + # Factoring default headers for most tests.
279 + ac_includes_default="\
280 + #include <stdio.h>
281 + #if HAVE_SYS_TYPES_H
282 + # include <sys/types.h>
283 + #endif
284 + #if HAVE_SYS_STAT_H
285 + # include <sys/stat.h>
286 + #endif
287 + #if STDC_HEADERS
288 + # include <stdlib.h>
289 + # include <stddef.h>
290 + #else
291 + # if HAVE_STDLIB_H
292 + #  include <stdlib.h>
293 + # endif
294 + #endif
295 + #if HAVE_STRING_H
296 + # if !STDC_HEADERS && HAVE_MEMORY_H
297 + #  include <memory.h>
298 + # endif
299 + # include <string.h>
300 + #endif
301 + #if HAVE_STRINGS_H
302 + # include <strings.h>
303 + #endif
304 + #if HAVE_INTTYPES_H
305 + # include <inttypes.h>
306 + #else
307 + # if HAVE_STDINT_H
308 + #  include <stdint.h>
309 + # endif
310 + #endif
311 + #if HAVE_UNISTD_H
312 + # include <unistd.h>
313 + #endif"
314  
315 + ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PROGNAME debug USE_SINGLE_PRECISION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC FC FCFLAGS ac_ct_FC CPP EGREP LN_S SET_MAKE RANLIB ac_ct_RANLIB PERLINTERP PERL_SHEBANG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR PS FCFLAGS_F90 FCFLAGS_SRCEXT PREPDEFFLAG FCLIBS FC_FUNC FC_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES ZLIB_INC_DIR ZLIB_LIB_DIR ZLIB FFTW_INC_DIR FFTW_LIB_DIR FFTW_LIBS LIBOBJS POW_LIB CXXCPP __func__ MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS LTLIBOBJS'
316 + ac_subst_files=''
317 +
318   # Initialize some variables set by options.
319   ac_init_help=
320   ac_init_version=false
# Line 143 | Line 352 | mandir='${prefix}/man'
352   oldincludedir='/usr/include'
353   infodir='${prefix}/info'
354   mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='2.0'
151 PACKAGE_STRING='OOPSE 2.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
355  
356   ac_prev=
357   for ac_option
# Line 196 | Line 398 | do
398    -disable-* | --disable-*)
399      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400      # Reject names that are not valid shell variable names.
401 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
401 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 407 | do
407    -enable-* | --enable-*)
408      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409      # Reject names that are not valid shell variable names.
410 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
410 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 485 | do
485      with_fp=no ;;
486  
487    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 <  | --no-cr | --no-c)
488 >  | --no-cr | --no-c | -n)
489      no_create=yes ;;
490  
491    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 589 | do
589    -with-* | --with-*)
590      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591      # Reject names that are not valid shell variable names.
592 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
592 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593        { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 602 | do
602    -without-* | --without-*)
603      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604      # Reject names that are not valid shell variable names.
605 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
605 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606        { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 634 | Try \`$0 --help' for more information." >&2
634    *=*)
635      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636      # Reject names that are not valid shell variable names.
637 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
637 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 644 | Try \`$0 --help' for more information." >&2
644    *)
645      # FIXME: should be removed in autoconf 3.0.
646      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
647 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650      ;;
# Line 457 | Line 659 | fi
659   fi
660  
661   # Be sure to have absolute paths.
662 + for ac_var in exec_prefix prefix
663 + do
664 +  eval ac_val=$`echo $ac_var`
665 +  case $ac_val in
666 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 +   { (exit 1); exit 1; }; };;
669 +  esac
670 + done
671 +
672 + # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
678      [\\/$]* | ?:[\\/]* ) ;;
679 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
679 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681    esac
682   done
683  
684   # There might be people who depend on the old broken behavior: `$host'
685   # used to hold the argument of --host etc.
686 + # FIXME: To remove some day.
687   build=$build_alias
688   host=$host_alias
689   target=$target_alias
690  
691 < # FIXME: should be removed in autoconf 3.0.
691 > # FIXME: To remove some day.
692   if test "x$host_alias" != x; then
693    if test "x$build_alias" = x; then
694      cross_compiling=maybe
# Line 492 | Line 704 | test "$silent" = yes && exec 6>/dev/null
704  
705   test "$silent" = yes && exec 6>/dev/null
706  
707 +
708   # Find the source files, if location was not specified.
709   if test -z "$srcdir"; then
710    ac_srcdir_defaulted=yes
711    # Try the directory containing this script, then its parent.
712 <  ac_prog=$0
713 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
714 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
713 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718 > echo X"$0" |
719 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 >          /^X\(\/\/\)$/{ s//\1/; q; }
722 >          /^X\(\/\).*/{ s//\1/; q; }
723 >          s/.*/./; q'`
724    srcdir=$ac_confdir
725    if test ! -r $srcdir/$ac_unique_file; then
726      srcdir=..
# Line 508 | Line 730 | if test ! -r $srcdir/$ac_unique_file; then
730   fi
731   if test ! -r $srcdir/$ac_unique_file; then
732    if test "$ac_srcdir_defaulted" = yes; then
733 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
733 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735    else
736 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
736 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738    fi
739   fi
740 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 +   { (exit 1); exit 1; }; }
743   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744   ac_env_build_alias_set=${build_alias+set}
745   ac_env_build_alias_value=$build_alias
# Line 528 | Line 753 | ac_cv_env_target_alias_value=$target_alias
753   ac_env_target_alias_value=$target_alias
754   ac_cv_env_target_alias_set=${target_alias+set}
755   ac_cv_env_target_alias_value=$target_alias
531 ac_env_CC_set=${CC+set}
532 ac_env_CC_value=$CC
533 ac_cv_env_CC_set=${CC+set}
534 ac_cv_env_CC_value=$CC
535 ac_env_CFLAGS_set=${CFLAGS+set}
536 ac_env_CFLAGS_value=$CFLAGS
537 ac_cv_env_CFLAGS_set=${CFLAGS+set}
538 ac_cv_env_CFLAGS_value=$CFLAGS
539 ac_env_LDFLAGS_set=${LDFLAGS+set}
540 ac_env_LDFLAGS_value=$LDFLAGS
541 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
542 ac_cv_env_LDFLAGS_value=$LDFLAGS
543 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
544 ac_env_CPPFLAGS_value=$CPPFLAGS
545 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
546 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756   ac_env_CXX_set=${CXX+set}
757   ac_env_CXX_value=$CXX
758   ac_cv_env_CXX_set=${CXX+set}
# Line 552 | Line 761 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761   ac_env_CXXFLAGS_value=$CXXFLAGS
762   ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
763   ac_cv_env_CXXFLAGS_value=$CXXFLAGS
764 < ac_env_F90_set=${F90+set}
765 < ac_env_F90_value=$F90
766 < ac_cv_env_F90_set=${F90+set}
767 < ac_cv_env_F90_value=$F90
768 < ac_env_F90FLAGS_set=${F90FLAGS+set}
769 < ac_env_F90FLAGS_value=$F90FLAGS
770 < ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
771 < ac_cv_env_F90FLAGS_value=$F90FLAGS
764 > ac_env_LDFLAGS_set=${LDFLAGS+set}
765 > ac_env_LDFLAGS_value=$LDFLAGS
766 > ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 > ac_cv_env_LDFLAGS_value=$LDFLAGS
768 > ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 > ac_env_CPPFLAGS_value=$CPPFLAGS
770 > ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 > ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 > ac_env_CC_set=${CC+set}
773 > ac_env_CC_value=$CC
774 > ac_cv_env_CC_set=${CC+set}
775 > ac_cv_env_CC_value=$CC
776 > ac_env_CFLAGS_set=${CFLAGS+set}
777 > ac_env_CFLAGS_value=$CFLAGS
778 > ac_cv_env_CFLAGS_set=${CFLAGS+set}
779 > ac_cv_env_CFLAGS_value=$CFLAGS
780 > ac_env_FC_set=${FC+set}
781 > ac_env_FC_value=$FC
782 > ac_cv_env_FC_set=${FC+set}
783 > ac_cv_env_FC_value=$FC
784 > ac_env_FCFLAGS_set=${FCFLAGS+set}
785 > ac_env_FCFLAGS_value=$FCFLAGS
786 > ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
787 > ac_cv_env_FCFLAGS_value=$FCFLAGS
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
791   ac_cv_env_CPP_value=$CPP
792 + ac_env_CXXCPP_set=${CXXCPP+set}
793 + ac_env_CXXCPP_value=$CXXCPP
794 + ac_cv_env_CXXCPP_set=${CXXCPP+set}
795 + ac_cv_env_CXXCPP_value=$CXXCPP
796  
797   #
798   # Report the --help message.
# Line 571 | Line 800 | if test "$ac_init_help" = "long"; then
800   if test "$ac_init_help" = "long"; then
801    # Omit some internal or obsolete options to make the list less imposing.
802    # This message is too long to be a string in the A/UX 3.1 sh.
803 <  cat <<EOF
804 < \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
803 >  cat <<_ACEOF
804 > \`configure' configures OOPSE 3.0 to adapt to many kinds of systems.
805  
806   Usage: $0 [OPTION]... [VAR=VALUE]...
807  
# Line 592 | Line 821 | Configuration:
821    -n, --no-create         do not create output files
822        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
823  
824 < EOF
824 > _ACEOF
825  
826 <  cat <<EOF
826 >  cat <<_ACEOF
827   Installation directories:
828    --prefix=PREFIX         install architecture-independent files in PREFIX
829 <                          [$ac_default_prefix]
829 >                          [$ac_default_prefix]
830    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
831 <                          [PREFIX]
831 >                          [PREFIX]
832  
833   By default, \`make install' will install all the files in
834   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 621 | Line 850 | Fine tuning of the installation directories:
850    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
851    --infodir=DIR          info documentation [PREFIX/info]
852    --mandir=DIR           man documentation [PREFIX/man]
853 < EOF
853 > _ACEOF
854  
855 <  cat <<\EOF
855 >  cat <<\_ACEOF
856  
857   System types:
858    --build=BUILD     configure for building on BUILD [guessed]
859 <  --host=HOST       build programs to run on HOST [BUILD]
860 < EOF
859 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
860 > _ACEOF
861   fi
862  
863   if test -n "$ac_init_help"; then
864    case $ac_init_help in
865 <     short | recursive ) echo "Configuration of OOPSE 2.0:";;
865 >     short | recursive ) echo "Configuration of OOPSE 3.0:";;
866     esac
867 <  cat <<\EOF
867 >  cat <<\_ACEOF
868  
869   Optional Features:
870    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
871    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
872 +  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
873    --enable-debug          Compile OOPSE in debug mode
874 +  --enable-single         compile OOPSE in single precision
875 +  --enable-float          synonym for --enable-single
876    --enable-doxygen        enable documentation generation with doxygen (auto)
877    --enable-dot            use 'dot' to generate graphs in doxygen (auto)
878    --enable-html-docs      enable HTML generation with doxygen (yes)
879    --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)
648  --enable-oopse-home=DIR      define oopse home dir PREFIX/oopse
880  
881   Optional Packages:
882    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
883    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
884 +  --with-perl-shebang     override what perl thinks is the way for the kernel
885 +                          to start it (seldom needed)
886 +  --with-zlib=DIR         root directory path of zlib installation (defaults
887 +                          to /usr/local or /usr if not found in /usr/local)
888 +  --with-fftw=DIR         root directory path of fftw installation (defaults
889 +                          to /usr/local or /usr if not found in /usr/local)
890    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
654  --with-sprng=<prefix>   compile with SPRNG installed in <prefix>
655                          [default=/usr/local]
656  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
891  
892   Some influential environment variables:
893 <  CC          C compiler command
894 <  CFLAGS      C compiler flags
893 >  CXX         C++ compiler command
894 >  CXXFLAGS    C++ compiler flags
895    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
896                nonstandard directory <lib dir>
897    CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
898                headers in a nonstandard directory <include dir>
899 <  CXX         C++ compiler command
900 <  CXXFLAGS    C++ compiler flags
901 <  F90         Fortran 90 compiler command
902 <  F90FLAGS    Fortran 90 compiler flags
899 >  CC          C compiler command
900 >  CFLAGS      C compiler flags
901 >  FC          Fortran compiler command
902 >  FCFLAGS     Fortran compiler flags
903    CPP         C preprocessor
904 +  CXXCPP      C++ preprocessor
905  
906   Use these variables to override the choices made by `configure' or to help
907   it to find libraries and programs with nonstandard names/locations.
908  
909   Report bugs to <gezelter@nd.edu>.
910 < EOF
910 > _ACEOF
911   fi
912  
913   if test "$ac_init_help" = "recursive"; then
914    # If there are subdirs, report their specific --help.
915    ac_popdir=`pwd`
916 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
917 <    cd $ac_subdir
918 <    # A "../" for each directory in /$ac_subdir.
684 <    ac_dots=`echo $ac_subdir |
685 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
916 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 >    test -d $ac_dir || continue
918 >    ac_builddir=.
919  
920 <    case $srcdir in
921 <    .) # No --srcdir option.  We are building in place.
922 <      ac_sub_srcdir=$srcdir ;;
923 <    [\\/]* | ?:[\\/]* ) # Absolute path.
924 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
925 <    *) # Relative path.
926 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
694 <    esac
920 > if test "$ac_dir" != .; then
921 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 >  # A "../" for each directory in $ac_dir_suffix.
923 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 > else
925 >  ac_dir_suffix= ac_top_builddir=
926 > fi
927  
928 + case $srcdir in
929 +  .)  # No --srcdir option.  We are building in place.
930 +    ac_srcdir=.
931 +    if test -z "$ac_top_builddir"; then
932 +       ac_top_srcdir=.
933 +    else
934 +       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 +    fi ;;
936 +  [\\/]* | ?:[\\/]* )  # Absolute path.
937 +    ac_srcdir=$srcdir$ac_dir_suffix;
938 +    ac_top_srcdir=$srcdir ;;
939 +  *) # Relative path.
940 +    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 +    ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 + esac
943 +
944 + # Do not use `cd foo && pwd` to compute absolute paths, because
945 + # the directories may not exist.
946 + case `pwd` in
947 + .) ac_abs_builddir="$ac_dir";;
948 + *)
949 +  case "$ac_dir" in
950 +  .) ac_abs_builddir=`pwd`;;
951 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 +  esac;;
954 + esac
955 + case $ac_abs_builddir in
956 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
957 + *)
958 +  case ${ac_top_builddir}. in
959 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
960 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 +  esac;;
963 + esac
964 + case $ac_abs_builddir in
965 + .) ac_abs_srcdir=$ac_srcdir;;
966 + *)
967 +  case $ac_srcdir in
968 +  .) ac_abs_srcdir=$ac_abs_builddir;;
969 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 +  esac;;
972 + esac
973 + case $ac_abs_builddir in
974 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
975 + *)
976 +  case $ac_top_srcdir in
977 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 +  esac;;
981 + esac
982 +
983 +    cd $ac_dir
984      # Check for guested configure; otherwise get Cygnus style configure.
985 <    if test -f $ac_sub_srcdir/configure.gnu; then
985 >    if test -f $ac_srcdir/configure.gnu; then
986        echo
987 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
988 <    elif test -f $ac_sub_srcdir/configure; then
987 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
988 >    elif test -f $ac_srcdir/configure; then
989        echo
990 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
991 <    elif test -f $ac_sub_srcdir/configure.ac ||
992 <           test -f $ac_sub_srcdir/configure.in; then
990 >      $SHELL $ac_srcdir/configure  --help=recursive
991 >    elif test -f $ac_srcdir/configure.ac ||
992 >           test -f $ac_srcdir/configure.in; then
993        echo
994        $ac_configure --help
995      else
996 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
996 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997      fi
998      cd $ac_popdir
999    done
# Line 713 | Line 1001 | if $ac_init_version; then
1001  
1002   test -n "$ac_init_help" && exit 0
1003   if $ac_init_version; then
1004 <  cat <<\EOF
1005 < OOPSE configure 2.0
1006 < generated by GNU Autoconf 2.50
1004 >  cat <<\_ACEOF
1005 > OOPSE configure 3.0
1006 > generated by GNU Autoconf 2.59
1007  
1008 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
721 < Free Software Foundation, Inc.
1008 > Copyright (C) 2003 Free Software Foundation, Inc.
1009   This configure script is free software; the Free Software Foundation
1010   gives unlimited permission to copy, distribute and modify it.
1011 < EOF
1011 > _ACEOF
1012    exit 0
1013   fi
1014   exec 5>config.log
1015 < cat >&5 <<EOF
1015 > cat >&5 <<_ACEOF
1016   This file contains any messages produced by compilers while
1017   running configure, to aid debugging if configure makes a mistake.
1018  
1019 < It was created by OOPSE $as_me 2.0, which was
1020 < generated by GNU Autoconf 2.50.  Invocation command line was
1019 > It was created by OOPSE $as_me 3.0, which was
1020 > generated by GNU Autoconf 2.59.  Invocation command line was
1021  
1022    $ $0 $@
1023  
1024 < EOF
1024 > _ACEOF
1025   {
1026   cat <<_ASUNAME
1027 < ## ---------- ##
1028 < ## Platform.  ##
1029 < ## ---------- ##
1027 > ## --------- ##
1028 > ## Platform. ##
1029 > ## --------- ##
1030  
1031   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1032   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 758 | Line 1045 | hostinfo               = `(hostinfo) 2>/dev/null      
1045   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1046   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1047  
761 PATH = $PATH
762
1048   _ASUNAME
1049 +
1050 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051 + for as_dir in $PATH
1052 + do
1053 +  IFS=$as_save_IFS
1054 +  test -z "$as_dir" && as_dir=.
1055 +  echo "PATH: $as_dir"
1056 + done
1057 +
1058   } >&5
1059  
1060 < cat >&5 <<EOF
767 < ## ------------ ##
768 < ## Core tests.  ##
769 < ## ------------ ##
1060 > cat >&5 <<_ACEOF
1061  
771 EOF
1062  
1063 + ## ----------- ##
1064 + ## Core tests. ##
1065 + ## ----------- ##
1066 +
1067 + _ACEOF
1068 +
1069 +
1070   # Keep a trace of the command line.
1071   # Strip out --no-create and --no-recursion so they do not pile up.
1072 + # Strip out --silent because we don't want to record it for future runs.
1073   # Also quote any args containing shell meta-characters.
1074 + # Make two passes to allow for proper duplicate-argument suppression.
1075   ac_configure_args=
1076 + ac_configure_args0=
1077 + ac_configure_args1=
1078   ac_sep=
1079 < for ac_arg
1079 > ac_must_keep_next=false
1080 > for ac_pass in 1 2
1081   do
1082 <  case $ac_arg in
1083 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 <  | --no-cr | --no-c) ;;
1085 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1087 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1089 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 <    ac_sep=" " ;;
1091 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1092 <     ac_sep=" " ;;
1093 <  esac
1094 <  # Get rid of the leading space.
1082 >  for ac_arg
1083 >  do
1084 >    case $ac_arg in
1085 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1086 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 >    | -silent | --silent | --silen | --sile | --sil)
1088 >      continue ;;
1089 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1090 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1091 >    esac
1092 >    case $ac_pass in
1093 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 >    2)
1095 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1096 >      if test $ac_must_keep_next = true; then
1097 >        ac_must_keep_next=false # Got value, back to normal.
1098 >      else
1099 >        case $ac_arg in
1100 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1101 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1102 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1103 >          | -with-* | --with-* | -without-* | --without-* | --x)
1104 >            case "$ac_configure_args0 " in
1105 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1106 >            esac
1107 >            ;;
1108 >          -* ) ac_must_keep_next=true ;;
1109 >        esac
1110 >      fi
1111 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1112 >      # Get rid of the leading space.
1113 >      ac_sep=" "
1114 >      ;;
1115 >    esac
1116 >  done
1117   done
1118 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1119 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120  
1121   # When interrupted or exit'd, cleanup temporary files, and complete
1122   # config.log.  We remove comments because anyway the quotes in there
1123   # would cause problems or look ugly.
1124 + # WARNING: Be sure not to use single quotes in there, as some shells,
1125 + # such as our DU 5.0 friend, will then `close' the trap.
1126   trap 'exit_status=$?
1127    # Save into config.log some information that might help in debugging.
1128 <  echo >&5
1129 <  echo "## ----------------- ##" >&5
1130 <  echo "## Cache variables.  ##" >&5
1131 <  echo "## ----------------- ##" >&5
1132 <  echo >&5
1133 <  # The following way of writing the cache mishandles newlines in values,
1128 >  {
1129 >    echo
1130 >
1131 >    cat <<\_ASBOX
1132 > ## ---------------- ##
1133 > ## Cache variables. ##
1134 > ## ---------------- ##
1135 > _ASBOX
1136 >    echo
1137 >    # The following way of writing the cache mishandles newlines in values,
1138   {
1139    (set) 2>&1 |
1140      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1141      *ac_space=\ *)
1142        sed -n \
1143 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1144 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1145        ;;
1146      *)
1147        sed -n \
1148 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149        ;;
1150      esac;
1151 < } >&5
1152 <  sed "/^$/d" confdefs.h >conftest.log
1153 <  if test -s conftest.log; then
1154 <    echo >&5
1155 <    echo "## ------------ ##" >&5
1156 <    echo "## confdefs.h.  ##" >&5
1157 <    echo "## ------------ ##" >&5
1158 <    echo >&5
1159 <    cat conftest.log >&5
1160 <  fi
1161 <  (echo; echo) >&5
1162 <  test "$ac_signal" != 0 &&
1163 <    echo "$as_me: caught signal $ac_signal" >&5
1164 <  echo "$as_me: exit $exit_status" >&5
1165 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1151 > }
1152 >    echo
1153 >
1154 >    cat <<\_ASBOX
1155 > ## ----------------- ##
1156 > ## Output variables. ##
1157 > ## ----------------- ##
1158 > _ASBOX
1159 >    echo
1160 >    for ac_var in $ac_subst_vars
1161 >    do
1162 >      eval ac_val=$`echo $ac_var`
1163 >      echo "$ac_var='"'"'$ac_val'"'"'"
1164 >    done | sort
1165 >    echo
1166 >
1167 >    if test -n "$ac_subst_files"; then
1168 >      cat <<\_ASBOX
1169 > ## ------------- ##
1170 > ## Output files. ##
1171 > ## ------------- ##
1172 > _ASBOX
1173 >      echo
1174 >      for ac_var in $ac_subst_files
1175 >      do
1176 >        eval ac_val=$`echo $ac_var`
1177 >        echo "$ac_var='"'"'$ac_val'"'"'"
1178 >      done | sort
1179 >      echo
1180 >    fi
1181 >
1182 >    if test -s confdefs.h; then
1183 >      cat <<\_ASBOX
1184 > ## ----------- ##
1185 > ## confdefs.h. ##
1186 > ## ----------- ##
1187 > _ASBOX
1188 >      echo
1189 >      sed "/^$/d" confdefs.h | sort
1190 >      echo
1191 >    fi
1192 >    test "$ac_signal" != 0 &&
1193 >      echo "$as_me: caught signal $ac_signal"
1194 >    echo "$as_me: exit $exit_status"
1195 >  } >&5
1196 >  rm -f core *.core &&
1197 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1198      exit $exit_status
1199       ' 0
1200   for ac_signal in 1 2 13 15; do
1201 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1201 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1202   done
1203   ac_signal=0
1204  
# Line 843 | Line 1207 | echo >confdefs.h
1207   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1208   echo >confdefs.h
1209  
1210 + # Predefined preprocessor variables.
1211 +
1212 + cat >>confdefs.h <<_ACEOF
1213 + #define PACKAGE_NAME "$PACKAGE_NAME"
1214 + _ACEOF
1215 +
1216 +
1217 + cat >>confdefs.h <<_ACEOF
1218 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219 + _ACEOF
1220 +
1221 +
1222 + cat >>confdefs.h <<_ACEOF
1223 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1224 + _ACEOF
1225 +
1226 +
1227 + cat >>confdefs.h <<_ACEOF
1228 + #define PACKAGE_STRING "$PACKAGE_STRING"
1229 + _ACEOF
1230 +
1231 +
1232 + cat >>confdefs.h <<_ACEOF
1233 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234 + _ACEOF
1235 +
1236 +
1237   # Let the site file select an alternate cache file if it wants to.
1238   # Prefer explicitly selected file to automatically selected ones.
1239   if test -z "$CONFIG_SITE"; then
# Line 854 | Line 1245 | for ac_site_file in $CONFIG_SITE; do
1245   fi
1246   for ac_site_file in $CONFIG_SITE; do
1247    if test -r "$ac_site_file"; then
1248 <    { echo "$as_me:857: loading site script $ac_site_file" >&5
1248 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1249   echo "$as_me: loading site script $ac_site_file" >&6;}
1250 <    cat "$ac_site_file" >&5
1250 >    sed 's/^/| /' "$ac_site_file" >&5
1251      . "$ac_site_file"
1252    fi
1253   done
# Line 865 | Line 1256 | if test -r "$cache_file"; then
1256    # Some versions of bash will fail to source /dev/null (special
1257    # files actually), so we avoid doing that.
1258    if test -f "$cache_file"; then
1259 <    { echo "$as_me:868: loading cache $cache_file" >&5
1259 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1260   echo "$as_me: loading cache $cache_file" >&6;}
1261      case $cache_file in
1262        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 873 | Line 1264 | else
1264      esac
1265    fi
1266   else
1267 <  { echo "$as_me:876: creating cache $cache_file" >&5
1267 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1268   echo "$as_me: creating cache $cache_file" >&6;}
1269    >$cache_file
1270   fi
1271  
1272   # Check that the precious variables saved in the cache have kept the same
1273   # value.
1274 < ac_suggest_removing_cache=false
1274 > ac_cache_corrupted=false
1275   for ac_var in `(set) 2>&1 |
1276 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1277    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1278    eval ac_new_set=\$ac_env_${ac_var}_set
1279    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1280    eval ac_new_val="\$ac_env_${ac_var}_value"
1281    case $ac_old_set,$ac_new_set in
1282      set,)
1283 <      { echo "$as_me:892: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1284 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1285 <      ac_suggest_removing_cache=: ;;
1283 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1284 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1285 >      ac_cache_corrupted=: ;;
1286      ,set)
1287 <      { echo "$as_me:896: WARNING: \`$ac_var' was not set in the previous run" >&5
1288 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1289 <      ac_suggest_removing_cache=: ;;
1287 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1288 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1289 >      ac_cache_corrupted=: ;;
1290      ,);;
1291      *)
1292        if test "x$ac_old_val" != "x$ac_new_val"; then
1293 <        { echo "$as_me:902: WARNING: \`$ac_var' has changed since the previous run:" >&5
1294 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1295 <        { echo "$as_me:904: WARNING:   former value:  $ac_old_val" >&5
1296 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1297 <        { echo "$as_me:906: WARNING:   current value: $ac_new_val" >&5
1298 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1299 <        ac_suggest_removing_cache=:
1293 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1294 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1295 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1296 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1297 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1298 > echo "$as_me:   current value: $ac_new_val" >&2;}
1299 >        ac_cache_corrupted=:
1300        fi;;
1301    esac
1302 +  # Pass precious variables to config.status.
1303 +  if test "$ac_new_set" = set; then
1304 +    case $ac_new_val in
1305 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 +    *) ac_arg=$ac_var=$ac_new_val ;;
1308 +    esac
1309 +    case " $ac_configure_args " in
1310 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1311 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1312 +    esac
1313 +  fi
1314   done
1315 < if $ac_suggest_removing_cache; then
1316 <  { echo "$as_me:913: WARNING: changes in the environment can compromise the build" >&5
1317 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1318 <  { echo "$as_me:915: WARNING: consider removing $cache_file and starting over" >&5
1319 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1315 > if $ac_cache_corrupted; then
1316 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1317 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1318 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1319 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1320 >   { (exit 1); exit 1; }; }
1321   fi
1322  
1323   ac_ext=c
# Line 922 | Line 1326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328  
925 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
926  *c*,-n*) ECHO_N= ECHO_C='
927 ' ECHO_T='      ' ;;
928  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
929  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
930 esac
931 echo "#! $SHELL" >conftest.sh
932 echo  "exit 0"   >>conftest.sh
933 chmod +x conftest.sh
934 if { (echo "$as_me:934: PATH=\".;.\"; conftest.sh") >&5
935  (PATH=".;."; conftest.sh) 2>&5
936  ac_status=$?
937  echo "$as_me:937: \$? = $ac_status" >&5
938  (exit $ac_status); }; then
939  ac_path_separator=';'
940 else
941  ac_path_separator=:
942 fi
943 PATH_SEPARATOR="$ac_path_separator"
944 rm -f conftest.sh
1329  
1330 +
1331 +
1332 +
1333 +
1334 +
1335 +
1336 +
1337 +
1338 +
1339 +
1340 +
1341 +
1342 +
1343 +
1344 +
1345 +
1346 +
1347 +
1348 +
1349 +
1350 +
1351 +
1352 +
1353 +
1354 +
1355   ac_aux_dir=
1356   for ac_dir in ac-tools $srcdir/ac-tools; do
1357    if test -f $ac_dir/install-sh; then
# Line 960 | Line 1369 | if test -z "$ac_aux_dir"; then
1369    fi
1370   done
1371   if test -z "$ac_aux_dir"; then
1372 <  { { echo "$as_me:963: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1372 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1373   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1374     { (exit 1); exit 1; }; }
1375   fi
# Line 968 | Line 1377 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1377   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1378   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1379  
971 # This file is part of Autoconf.                       -*- Autoconf -*-
972 # Programming languages support.
973 # Copyright 2000, 2001
974 # Free Software Foundation, Inc.
975 #
976 # This program is free software; you can redistribute it and/or modify
977 # it under the terms of the GNU General Public License as published by
978 # the Free Software Foundation; either version 2, or (at your option)
979 # any later version.
980 #
981 # This program is distributed in the hope that it will be useful,
982 # but WITHOUT ANY WARRANTY; without even the implied warranty of
983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
984 # GNU General Public License for more details.
985 #
986 # You should have received a copy of the GNU General Public License
987 # along with this program; if not, write to the Free Software
988 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
989 # 02111-1307, USA.
990 #
991 # As a special exception, the Free Software Foundation gives unlimited
992 # permission to copy, distribute and modify the configure scripts that
993 # are the output of Autoconf.  You need not follow the terms of the GNU
994 # General Public License when using or distributing such scripts, even
995 # though portions of the text of Autoconf appear in them.  The GNU
996 # General Public License (GPL) does govern all other use of the material
997 # that constitutes the Autoconf program.
998 #
999 # Certain portions of the Autoconf source text are designed to be copied
1000 # (in certain cases, depending on the input) into the output of
1001 # Autoconf.  We call these the "data" portions.  The rest of the Autoconf
1002 # source text consists of comments plus executable code that decides which
1003 # of the data portions to output in any given case.  We call these
1004 # comments and executable code the "non-data" portions.  Autoconf never
1005 # copies any of the non-data portions into its output.
1006 #
1007 # This special exception to the GPL applies to versions of Autoconf
1008 # released by the Free Software Foundation.  When you make and
1009 # distribute a modified version of Autoconf, you may extend this special
1010 # exception to the GPL to apply to your modified version as well, *unless*
1011 # your modified version has the potential to copy into its output some
1012 # of the text that was the non-data portion of the version that you started
1013 # with.  (In other words, unless your change moves or copies text from
1014 # the non-data portions to the data portions.)  If your modification has
1015 # such potential, you must delete any notice of this special exception
1016 # to the GPL from your modified version.
1017 #
1018 # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1019 # many others).
1380  
1381 < # Table of Contents:
1022 < #
1023 < # 1. Language selection
1024 < #    and routines to produce programs in a given language.
1025 < #  a. Fortran 77 (to be moved from aclang.m4)
1026 < #  b. Fortran 90
1027 < #  c. Fortran 95
1028 < #
1029 < # 2. Producing programs in a given language.
1030 < #  a. Fortran 77 (to be moved from aclang.m4)
1031 < #  b. Fortran 90
1032 < #  c. Fortran 95
1033 < #
1034 < # 3. Looking for a compiler
1035 < #    And possibly the associated preprocessor.
1036 < #  a. Fortran 77 (to be moved from aclang.m4)
1037 < #  b. Fortran 90
1038 < #  c. Fortran 95
1039 < #
1040 < # 4. Compilers' characteristics.
1041 < #  a. Fortran 77 (to be moved from aclang.m4)
1042 < #  b. Fortran 90
1043 < #  c. Fortran 95
1381 >          ac_config_headers="$ac_config_headers src/config.h"
1382  
1045 # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1046 # ---------------------------------------------------------------------------
1047 #
1048 # Processing the elements of a list is tedious in shell programming,
1049 # as lists tend to be implemented as space delimited strings.
1050 #
1051 # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1052 # if ELEMENT is a member of LIST, otherwise it executes
1053 # ACTION-IF-NOT-FOUND.
1054 # _AC_LIST_MEMBER_IF
1383  
1056 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1057 # -------------------------------------------------
1058 #
1059 # Specifying options to the compiler (whether it be the C, C++ or
1060 # Fortran 77 compiler) that are meant for the linker is compiler
1061 # dependent.  This macro lets you give options to the compiler that
1062 # are meant for the linker in a portable, compiler-independent way.
1063 #
1064 # This macro take two arguments, a list of linker options that the
1065 # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1066 # a shell variable (SHELL-VARIABLE).  The list of linker options are
1067 # appended to the shell variable in a compiler-dependent way.
1068 #
1069 # For example, if the selected language is C, then this:
1070 #
1071 #   _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1072 #
1073 # will expand into this if the selected C compiler is gcc:
1074 #
1075 #   foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1076 #
1077 # otherwise, it will expand into this:
1078 #
1079 #   foo_LDFLAGS"-R /usr/local/lib/foo"
1080 #
1081 # You are encouraged to add support for compilers that this macro
1082 # doesn't currently support.
1083 # FIXME: Get rid of this macro.
1084 # _AC_LINKER_OPTION
1384  
1086 ## ----------------------- ##
1087 ## 1. Language selection.  ##
1088 ## ----------------------- ##
1385  
1090 # ----------------------------- #
1091 # 1b. The Fortran 90 language.  #
1092 # ----------------------------- #
1386  
1094 # AC_LANG(Fortran 90)
1095 # -------------------
1387  
1097 # _AC_LANG_ABBREV(Fortran 90)
1098 # ---------------------------
1388  
1100 # ----------------------------- #
1101 # 1c. The Fortran 95 language.  #
1102 # ----------------------------- #
1389  
1104 # AC_LANG(Fortran 95)
1105 # -------------------
1390  
1107 # _AC_LANG_ABBREV(Fortran 95)
1108 # ---------------------------
1391  
1110 ## ---------------------- ##
1111 ## 2.Producing programs.  ##
1112 ## ---------------------- ##
1392  
1114 # ------------------------ #
1115 # 2b. Fortran 90 sources.  #
1116 # ------------------------ #
1393  
1118 # AC_LANG_SOURCE(Fortran 90)(BODY)
1119 # --------------------------------
1394  
1121 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1122 # -----------------------------------------------
1395  
1124 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1125 # --------------------------------------------
1396  
1127 # ------------------------ #
1128 # 2c. Fortran 95 sources.  #
1129 # ------------------------ #
1397  
1131 # AC_LANG_SOURCE(Fortran 95)(BODY)
1132 # --------------------------------
1398  
1134 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1135 # -----------------------------------------------
1399  
1137 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1138 # --------------------------------------------
1400  
1140 ## -------------------------------------------- ##
1141 ## 3. Looking for Compilers and Preprocessors.  ##
1142 ## -------------------------------------------- ##
1401  
1144 # ----------------------------- #
1145 # 3b. The Fortran 90 compiler.  #
1146 # ----------------------------- #
1402  
1148 # AC_LANG_PREPROC(Fortran 90)
1149 # ---------------------------
1150 # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1403  
1152 # AC_LANG_COMPILER(Fortran 90)
1153 # ----------------------------
1154 # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1155 # AC_REQUIRE'able.
1404  
1157 # AC_PROG_F90([COMPILERS...])
1158 # ---------------------------
1159 # COMPILERS is a space separated list of Fortran 90 compilers to search
1160 # for.
1161 #
1162 # Compilers are ordered by
1163 #  1. F90, F95
1164 #  2. Good/tested native compilers, bad/untested native compilers
1165 #
1166 # pgf90 is the Portland Group F90 compilers.
1167 # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1168 # lf95 is the Lahey-Fujitsu compiler.
1169 # epcf90 is the "Edinburgh Portable Compiler" F90.
1170 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1171 # AC_PROG_F90
1405  
1173 # ----------------------------- #
1174 # 3c. The Fortran 95 compiler.  #
1175 # ----------------------------- #
1406  
1177 # AC_LANG_PREPROC(Fortran 95)
1178 # ---------------------------
1179 # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1407  
1181 # AC_LANG_COMPILER(Fortran 95)
1182 # ----------------------------
1183 # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1184 # AC_REQUIRE'able.
1408  
1186 # AC_PROG_F95([COMPILERS...])
1187 # ---------------------------
1188 # COMPILERS is a space separated list of Fortran 95 compilers to search
1189 # for.
1190 #
1191 # Compilers are ordered by
1192 #  1. Good/tested native compilers, bad/untested native compilers
1193 #
1194 # xlf95 is the IBM (AIX) F95 compiler.
1195 # lf95 is the Lahey-Fujitsu compiler.
1196 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1197 # AC_PROG_F95
1409  
1199 ## ------------------------------- ##
1200 ## 4. Compilers' characteristics.  ##
1201 ## ------------------------------- ##
1410  
1203 # ---------------------------------------- #
1204 # 4b. Fortan 90 compiler characteristics.  #
1205 # ---------------------------------------- #
1411  
1207 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1208 # -------------------------------------------------
1209 # Link a trivial Fortran program, compiling with a verbose output FLAG
1210 # (which default value, $ac_cv_prog_f90_v, is computed by
1211 # _AC_PROG_F90_V), and return the output in $ac_f90_v_output.  This
1212 # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1213 # so that any link flags that are echoed by the compiler appear as
1214 # space-separated items.
1215 # _AC_PROG_F90_V_OUTPUT
1412  
1217 # _AC_PROG_F90_V
1218 # --------------
1219 #
1220 # Determine the flag that causes the Fortran 90 compiler to print
1221 # information of library and object files (normally -v)
1222 # Needed for AC_F90_LIBRARY_FLAGS
1223 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1224 # _AC_PROG_F90_V
1413  
1226 # AC_F90_LIBRARY_LDFLAGS
1227 # ----------------------
1228 #
1229 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1230 # intrinsic and run-time libraries that are required to successfully
1231 # link a Fortran 90 program or shared library.  The output variable
1232 # F90LIBS is set to these flags.
1233 #
1234 # This macro is intended to be used in those situations when it is
1235 # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1236 # program or shared library.
1237 #
1238 # For example, if object files from a C++ and Fortran 90 compiler must
1239 # be linked together, then the C++ compiler/linker must be used for
1240 # linking (since special C++-ish things need to happen at link time
1241 # like calling global constructors, instantiating templates, enabling
1242 # exception support, etc.).
1243 #
1244 # However, the Fortran 90 intrinsic and run-time libraries must be
1245 # linked in as well, but the C++ compiler/linker doesn't know how to
1246 # add these Fortran 90 libraries.  Hence, the macro
1247 # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1248 # libraries.
1249 #
1250 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1251 # AC_F90_LIBRARY_LDFLAGS
1414  
1253 # _AC_F90_NAME_MANGLING
1254 # ---------------------
1255 # Test for the name mangling scheme used by the Fortran 90 compiler.
1256 #
1257 # Sets ac_cv_f90_mangling. The value contains three fields, separated
1258 # by commas:
1259 #
1260 # lower case / upper case:
1261 #    case translation of the Fortan 90 symbols
1262 # underscore / no underscore:
1263 #    whether the compiler appends "_" to symbol names
1264 # extra underscore / no extra underscore:
1265 #    whether the compiler appends an extra "_" to symbol names already
1266 #    containing at least one underscore
1267 #
1268 # _AC_F90_NAME_MANGLING
1415  
1270 # The replacement is empty.
1416  
1272 # AC_F90_WRAPPERS
1273 # ---------------
1274 # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1275 # properly mangle the names of C identifiers, and C identifiers with
1276 # underscores, respectively, so that they match the name mangling
1277 # scheme used by the Fortran 90 compiler.
1278 # AC_F90_WRAPPERS
1417  
1280 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1281 # ------------------------------------
1282 # For a Fortran subroutine of given NAME, define a shell variable
1283 # $SHELLVAR to the Fortran 90 mangled name.  If the SHELLVAR
1284 # argument is not supplied, it defaults to NAME.
1285 # AC_F90_FUNC
1418  
1287 # ---------------------------------------- #
1288 # 4c. Fortan 95 compiler characteristics.  #
1289 # ---------------------------------------- #
1419  
1291 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1292 # -------------------------------------------------
1293 # Link a trivial Fortran program, compiling with a verbose output FLAG
1294 # (which default value, $ac_cv_prog_f95_v, is computed by
1295 # _AC_PROG_F95_V), and return the output in $ac_f95_v_output.  This
1296 # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1297 # so that any link flags that are echoed by the compiler appear as
1298 # space-separated items.
1299 # _AC_PROG_F95_V_OUTPUT
1420  
1301 # _AC_PROG_F95_V
1302 # --------------
1303 #
1304 # Determine the flag that causes the Fortran 95 compiler to print
1305 # information of library and object files (normally -v)
1306 # Needed for AC_F95_LIBRARY_FLAGS
1307 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1308 # _AC_PROG_F95_V
1421  
1310 # AC_F95_LIBRARY_LDFLAGS
1311 # ----------------------
1312 #
1313 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1314 # intrinsic and run-time libraries that are required to successfully
1315 # link a Fortran 95 program or shared library.  The output variable
1316 # F95LIBS is set to these flags.
1317 #
1318 # This macro is intended to be used in those situations when it is
1319 # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1320 # program or shared library.
1321 #
1322 # For example, if object files from a C++ and Fortran 95 compiler must
1323 # be linked together, then the C++ compiler/linker must be used for
1324 # linking (since special C++-ish things need to happen at link time
1325 # like calling global constructors, instantiating templates, enabling
1326 # exception support, etc.).
1327 #
1328 # However, the Fortran 95 intrinsic and run-time libraries must be
1329 # linked in as well, but the C++ compiler/linker doesn't know how to
1330 # add these Fortran 95 libraries.  Hence, the macro
1331 # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1332 # libraries.
1333 #
1334 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1335 # AC_F95_LIBRARY_LDFLAGS
1422  
1423 < # _AC_F95_NAME_MANGLING
1424 < # ---------------------
1425 < # Test for the name mangling scheme used by the Fortran 95 compiler.
1423 >
1424 >
1425 >
1426   #
1341 # Sets ac_cv_f95_mangling. The value contains three fields, separated
1342 # by commas:
1427   #
1344 # lower case / upper case:
1345 #    case translation of the Fortan 95 symbols
1346 # underscore / no underscore:
1347 #    whether the compiler appends "_" to symbol names
1348 # extra underscore / no extra underscore:
1349 #    whether the compiler appends an extra "_" to symbol names already
1350 #    containing at least one underscore
1428   #
1352 # _AC_F95_NAME_MANGLING
1429  
1354 # The replacement is empty.
1430  
1356 # AC_F95_WRAPPERS
1357 # ---------------
1358 # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1359 # properly mangle the names of C identifiers, and C identifiers with
1360 # underscores, respectively, so that they match the name mangling
1361 # scheme used by the Fortran 95 compiler.
1362 # AC_F95_WRAPPERS
1431  
1364 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1365 # ------------------------------------
1366 # For a Fortran subroutine of given NAME, define a shell variable
1367 # $SHELLVAR to the Fortran 95 mangled name.  If the SHELLVAR
1368 # argument is not supplied, it defaults to NAME.
1369 # AC_F95_FUNC
1432  
1433 +
1434 +
1435   # AC_F90_MODULE_NAMES
1436   # -------------------
1437   #
# Line 1375 | Line 1439 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1439   #
1440   # AC_F90_MODULE_NAMES
1441  
1378 # set program name
1379 PROGNAME="oopse"
1442  
1381 # there are two ways to do debugging.  One with the --enable-debug flag
1382 # and one using the DEBUG environment variable
1443  
1384 debug=0
1385 # Check whether --enable-debug or --disable-debug was given.
1386 if test "${enable_debug+set}" = set; then
1387  enableval="$enable_debug"
1388  debug=1
1389 fi;
1390 if test "${DEBUG}"; then
1444  
1392 cat >>confdefs.h <<\EOF
1393 #define debug 1
1394 EOF
1445  
1446 <  msg="$msg, debug mode"
1447 < fi
1446 >
1447 >
1448 >
1449 >
1450 >
1451 >
1452 >
1453 >
1454 >
1455 >
1456 >
1457 >
1458 >
1459 >
1460 >
1461 >
1462 >
1463 >
1464 >
1465 >
1466 >
1467 >
1468 >
1469 >
1470 >
1471 >
1472 >
1473 >
1474 >
1475 >
1476 >
1477 >
1478 >
1479 >
1480 >
1481 >
1482 >
1483 >
1484 >
1485 >
1486 >
1487 >
1488 >
1489 >
1490 >
1491 >
1492 >
1493 >
1494 >
1495 >
1496 >
1497 >
1498 >
1499 >
1500 >
1501 >
1502 >
1503 >
1504 >
1505 >
1506 >
1507 >
1508 >
1509 >
1510 >
1511 >
1512 >
1513 >
1514 >
1515 >
1516 >
1517 >
1518 >
1519 >
1520 >
1521 >
1522 >
1523 >
1524 >
1525 >
1526 >
1527  
1528 +
1529   # who am i
1530   # Make sure we can run config.sub.
1531   $ac_config_sub sun4 >/dev/null 2>&1 ||
1532 <  { { echo "$as_me:1402: error: cannot run $ac_config_sub" >&5
1532 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1533   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1534     { (exit 1); exit 1; }; }
1535  
1536 < echo "$as_me:1406: checking build system type" >&5
1536 > echo "$as_me:$LINENO: checking build system type" >&5
1537   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1538   if test "${ac_cv_build+set}" = set; then
1539    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1412 | Line 1542 | test -z "$ac_cv_build_alias" &&
1542   test -z "$ac_cv_build_alias" &&
1543    ac_cv_build_alias=`$ac_config_guess`
1544   test -z "$ac_cv_build_alias" &&
1545 <  { { echo "$as_me:1415: error: cannot guess build type; you must specify one" >&5
1545 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1546   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1547     { (exit 1); exit 1; }; }
1548   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1549 <  { { echo "$as_me:1419: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1550 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1549 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1550 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1551     { (exit 1); exit 1; }; }
1552  
1553   fi
1554 < echo "$as_me:1424: result: $ac_cv_build" >&5
1554 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1555   echo "${ECHO_T}$ac_cv_build" >&6
1556   build=$ac_cv_build
1557   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560  
1561 < echo "$as_me:1431: checking host system type" >&5
1561 >
1562 > echo "$as_me:$LINENO: checking host system type" >&5
1563   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1564   if test "${ac_cv_host+set}" = set; then
1565    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1437 | Line 1568 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568   test -z "$ac_cv_host_alias" &&
1569    ac_cv_host_alias=$ac_cv_build_alias
1570   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1571 <  { { echo "$as_me:1440: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1571 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1572   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1573     { (exit 1); exit 1; }; }
1574  
1575   fi
1576 < echo "$as_me:1445: result: $ac_cv_host" >&5
1576 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1577   echo "${ECHO_T}$ac_cv_host" >&6
1578   host=$ac_cv_host
1579   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582  
1583 < ac_ext=c
1584 < ac_cpp='$CPP $CPPFLAGS'
1585 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1586 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1587 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
1583 >
1584 >
1585 >
1586 >
1587 > # set program name
1588 > PROGNAME="oopse"
1589 >
1590 >
1591 >
1592 >
1593 > OBJEXT=".$OBJEXT"
1594 >
1595 > OOPSE=oopse
1596 >
1597 > if test "x${prefix}" = "xNONE"
1598 > then
1599 >  OOPSE_HOME=${ac_default_prefix}/oopse
1600 > else
1601 >  OOPSE_HOME=${prefix}/oopse
1602 > fi
1603 > # Check whether --enable-oopse-home or --disable-oopse-home was given.
1604 > if test "${enable_oopse_home+set}" = set; then
1605 >  enableval="$enable_oopse_home"
1606 >  OOPSE_HOME="${enableval}"
1607 > fi;
1608 >
1609 > # there are two ways to do debugging.  One with the --enable-debug flag
1610 > # and one using the DEBUG environment variable
1611 >
1612 > debug=0
1613 > # Check whether --enable-debug or --disable-debug was given.
1614 > if test "${enable_debug+set}" = set; then
1615 >  enableval="$enable_debug"
1616 >  debug=1
1617 > fi;
1618 > if test "${DEBUG}"; then
1619 >
1620 > cat >>confdefs.h <<\_ACEOF
1621 > #define debug 1
1622 > _ACEOF
1623 >
1624 >  msg="$msg, debug mode"
1625 > fi
1626 >
1627 >
1628 > # Check whether --enable-single or --disable-single was given.
1629 > if test "${enable_single+set}" = set; then
1630 >  enableval="$enable_single"
1631 >  ok=$enableval
1632 > else
1633 >  ok=no
1634 > fi;
1635 > # Check whether --enable-float or --disable-float was given.
1636 > if test "${enable_float+set}" = set; then
1637 >  enableval="$enable_float"
1638 >  ok=$enableval
1639 > fi;
1640 > if test "$ok" = "yes"; then
1641 >
1642 > cat >>confdefs.h <<\_ACEOF
1643 > #define SINGLE_PRECISION 1
1644 > _ACEOF
1645 >
1646 >        USE_SINGLE_PRECISION=yes
1647 >
1648 > fi
1649 >
1650 > # Checks for programs.
1651 > ac_ext=cc
1652 > ac_cpp='$CXXCPP $CPPFLAGS'
1653 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1654 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1655 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1656   if test -n "$ac_tool_prefix"; then
1657 <  for ac_prog in icc xlc gcc cc
1657 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1658    do
1659      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 < echo "$as_me:1462: checking for $ac_word" >&5
1661 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1662   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 < if test "${ac_cv_prog_CC+set}" = set; then
1663 > if test "${ac_cv_prog_CXX+set}" = set; then
1664    echo $ECHO_N "(cached) $ECHO_C" >&6
1665   else
1666 <  if test -n "$CC"; then
1667 <  ac_cv_prog_CC="$CC" # Let the user override the test.
1666 >  if test -n "$CXX"; then
1667 >  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1668   else
1669 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1670 < ac_dummy="$PATH"
1671 < for ac_dir in $ac_dummy; do
1672 <  IFS=$ac_save_IFS
1673 <  test -z "$ac_dir" && ac_dir=.
1674 <  $as_executable_p "$ac_dir/$ac_word" || continue
1675 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 < echo "$as_me:1477: found $ac_dir/$ac_word" >&5
1677 < break
1669 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 > for as_dir in $PATH
1671 > do
1672 >  IFS=$as_save_IFS
1673 >  test -z "$as_dir" && as_dir=.
1674 >  for ac_exec_ext in '' $ac_executable_extensions; do
1675 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1677 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 >    break 2
1679 >  fi
1680   done
1681 + done
1682  
1683   fi
1684   fi
1685 < CC=$ac_cv_prog_CC
1686 < if test -n "$CC"; then
1687 <  echo "$as_me:1485: result: $CC" >&5
1688 < echo "${ECHO_T}$CC" >&6
1685 > CXX=$ac_cv_prog_CXX
1686 > if test -n "$CXX"; then
1687 >  echo "$as_me:$LINENO: result: $CXX" >&5
1688 > echo "${ECHO_T}$CXX" >&6
1689   else
1690 <  echo "$as_me:1488: result: no" >&5
1690 >  echo "$as_me:$LINENO: result: no" >&5
1691   echo "${ECHO_T}no" >&6
1692   fi
1693  
1694 <    test -n "$CC" && break
1694 >    test -n "$CXX" && break
1695    done
1696   fi
1697 < if test -z "$CC"; then
1698 <  ac_ct_CC=$CC
1699 <  for ac_prog in icc xlc gcc cc
1697 > if test -z "$CXX"; then
1698 >  ac_ct_CXX=$CXX
1699 >  for ac_prog in $CCC mpicxx icpc pathCC pgCC c++ xlc++ xlC g++ CC
1700   do
1701    # Extract the first word of "$ac_prog", so it can be a program name with args.
1702   set dummy $ac_prog; ac_word=$2
1703 < echo "$as_me:1501: checking for $ac_word" >&5
1703 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1704   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 < if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 > if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1706    echo $ECHO_N "(cached) $ECHO_C" >&6
1707   else
1708 <  if test -n "$ac_ct_CC"; then
1709 <  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 >  if test -n "$ac_ct_CXX"; then
1709 >  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1710   else
1711 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1712 < ac_dummy="$PATH"
1713 < for ac_dir in $ac_dummy; do
1714 <  IFS=$ac_save_IFS
1715 <  test -z "$ac_dir" && ac_dir=.
1716 <  $as_executable_p "$ac_dir/$ac_word" || continue
1717 < ac_cv_prog_ac_ct_CC="$ac_prog"
1718 < echo "$as_me:1516: found $ac_dir/$ac_word" >&5
1719 < break
1711 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 > for as_dir in $PATH
1713 > do
1714 >  IFS=$as_save_IFS
1715 >  test -z "$as_dir" && as_dir=.
1716 >  for ac_exec_ext in '' $ac_executable_extensions; do
1717 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
1719 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 >    break 2
1721 >  fi
1722   done
1723 + done
1724  
1725   fi
1726   fi
1727 < ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728 < if test -n "$ac_ct_CC"; then
1729 <  echo "$as_me:1524: result: $ac_ct_CC" >&5
1730 < echo "${ECHO_T}$ac_ct_CC" >&6
1727 > ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1728 > if test -n "$ac_ct_CXX"; then
1729 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1730 > echo "${ECHO_T}$ac_ct_CXX" >&6
1731   else
1732 <  echo "$as_me:1527: result: no" >&5
1732 >  echo "$as_me:$LINENO: result: no" >&5
1733   echo "${ECHO_T}no" >&6
1734   fi
1735  
1736 <  test -n "$ac_ct_CC" && break
1736 >  test -n "$ac_ct_CXX" && break
1737   done
1738 + test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1739  
1740 <  CC=$ac_ct_CC
1740 >  CXX=$ac_ct_CXX
1741   fi
1742  
1537 test -z "$CC" && { { echo "$as_me:1537: error: no acceptable cc found in \$PATH" >&5
1538 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1539   { (exit 1); exit 1; }; }
1743  
1744 + # Provide some information about the compiler.
1745 + echo "$as_me:$LINENO:" \
1746 +     "checking for C++ compiler version" >&5
1747 + ac_compiler=`set X $ac_compile; echo $2`
1748 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 +  ac_status=$?
1751 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 +  (exit $ac_status); }
1753 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 +  ac_status=$?
1756 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 +  (exit $ac_status); }
1758 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 +  ac_status=$?
1761 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 +  (exit $ac_status); }
1763 +
1764   cat >conftest.$ac_ext <<_ACEOF
1765 < #line 1542 "configure"
1766 < #include "confdefs.h"
1765 > /* confdefs.h.  */
1766 > _ACEOF
1767 > cat confdefs.h >>conftest.$ac_ext
1768 > cat >>conftest.$ac_ext <<_ACEOF
1769 > /* end confdefs.h.  */
1770  
1771   int
1772   main ()
# Line 1551 | Line 1777 | ac_clean_files_save=$ac_clean_files
1777   }
1778   _ACEOF
1779   ac_clean_files_save=$ac_clean_files
1780 < ac_clean_files="$ac_clean_files a.out a.exe"
1780 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781   # Try to create an executable without -o first, disregard a.out.
1782 < # It will help us diagnose broken compiler, and finding out an intuition
1782 > # It will help us diagnose broken compilers, and finding out an intuition
1783   # of exeext.
1784 < echo "$as_me:1558: checking for C compiler default output" >&5
1785 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1784 > echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1785 > echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1786   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 < if { (eval echo "$as_me:1561: \"$ac_link_default\"") >&5
1787 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788    (eval $ac_link_default) 2>&5
1789    ac_status=$?
1790 <  echo "$as_me:1564: \$? = $ac_status" >&5
1790 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791    (exit $ac_status); }; then
1792 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1792 >  # Find the output, starting from the most likely.  This scheme is
1793 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 > # resort.
1795 >
1796 > # Be careful to initialize this variable, since it used to be cached.
1797 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 > ac_cv_exeext=
1799 > # b.out is created by i960 compilers.
1800 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 > do
1802 >  test -f "$ac_file" || continue
1803    case $ac_file in
1804 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1805 <    a.out ) # We found the default executable, but exeext='' is most
1806 <            # certainly right.
1807 <            break;;
1808 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1809 <          export ac_cv_exeext
1810 <          break;;
1811 <    * ) break;;
1804 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 >        ;;
1806 >    conftest.$ac_ext )
1807 >        # This is the source file.
1808 >        ;;
1809 >    [ab].out )
1810 >        # We found the default executable, but exeext='' is most
1811 >        # certainly right.
1812 >        break;;
1813 >    *.* )
1814 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 >        # but it would be cool to find out if it's true.  Does anybody
1817 >        # maintain Libtool? --akim.
1818 >        export ac_cv_exeext
1819 >        break;;
1820 >    * )
1821 >        break;;
1822    esac
1823   done
1824   else
1825    echo "$as_me: failed program was:" >&5
1826 < cat conftest.$ac_ext >&5
1827 < { { echo "$as_me:1581: error: C compiler cannot create executables" >&5
1828 < echo "$as_me: error: C compiler cannot create executables" >&2;}
1826 > sed 's/^/| /' conftest.$ac_ext >&5
1827 >
1828 > { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1829 > See \`config.log' for more details." >&5
1830 > echo "$as_me: error: C++ compiler cannot create executables
1831 > See \`config.log' for more details." >&2;}
1832     { (exit 77); exit 77; }; }
1833   fi
1834  
1835   ac_exeext=$ac_cv_exeext
1836 < echo "$as_me:1587: result: $ac_file" >&5
1836 > echo "$as_me:$LINENO: result: $ac_file" >&5
1837   echo "${ECHO_T}$ac_file" >&6
1838  
1839   # Check the compiler produces executables we can run.  If not, either
1840   # the compiler is broken, or we cross compile.
1841 < echo "$as_me:1592: checking whether the C compiler works" >&5
1842 < echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1841 > echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1842 > echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1843   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844   # If not cross compiling, check that we can run a simple program.
1845   if test "$cross_compiling" != yes; then
1846    if { ac_try='./$ac_file'
1847 <  { (eval echo "$as_me:1598: \"$ac_try\"") >&5
1847 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848    (eval $ac_try) 2>&5
1849    ac_status=$?
1850 <  echo "$as_me:1601: \$? = $ac_status" >&5
1850 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851    (exit $ac_status); }; }; then
1852      cross_compiling=no
1853    else
1854      if test "$cross_compiling" = maybe; then
1855          cross_compiling=yes
1856      else
1857 <        { { echo "$as_me:1608: error: cannot run C compiled programs.
1858 < If you meant to cross compile, use \`--host'." >&5
1859 < echo "$as_me: error: cannot run C compiled programs.
1860 < If you meant to cross compile, use \`--host'." >&2;}
1857 >        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1858 > If you meant to cross compile, use \`--host'.
1859 > See \`config.log' for more details." >&5
1860 > echo "$as_me: error: cannot run C++ compiled programs.
1861 > If you meant to cross compile, use \`--host'.
1862 > See \`config.log' for more details." >&2;}
1863     { (exit 1); exit 1; }; }
1864      fi
1865    fi
1866   fi
1867 < echo "$as_me:1616: result: yes" >&5
1867 > echo "$as_me:$LINENO: result: yes" >&5
1868   echo "${ECHO_T}yes" >&6
1869  
1870 < rm -f a.out a.exe conftest$ac_cv_exeext
1870 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871   ac_clean_files=$ac_clean_files_save
1872   # Check the compiler produces executables we can run.  If not, either
1873   # the compiler is broken, or we cross compile.
1874 < echo "$as_me:1623: checking whether we are cross compiling" >&5
1874 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 < echo "$as_me:1625: result: $cross_compiling" >&5
1876 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877   echo "${ECHO_T}$cross_compiling" >&6
1878  
1879 < echo "$as_me:1628: checking for executable suffix" >&5
1880 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1881 < if { (eval echo "$as_me:1630: \"$ac_link\"") >&5
1879 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882    (eval $ac_link) 2>&5
1883    ac_status=$?
1884 <  echo "$as_me:1633: \$? = $ac_status" >&5
1884 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885    (exit $ac_status); }; then
1886    # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1888   # work properly (i.e., refer to `conftest.exe'), while it won't with
1889   # `rm'.
1890 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1890 > for ac_file in conftest.exe conftest conftest.*; do
1891 >  test -f "$ac_file" || continue
1892    case $ac_file in
1893 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1893 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 <          export ac_cv_exeext
1896 <          break;;
1895 >          export ac_cv_exeext
1896 >          break;;
1897      * ) break;;
1898    esac
1899   done
1900   else
1901 <  { { echo "$as_me:1649: error: cannot compute EXEEXT: cannot compile and link" >&5
1902 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1901 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 > See \`config.log' for more details." >&5
1903 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 > See \`config.log' for more details." >&2;}
1905     { (exit 1); exit 1; }; }
1906   fi
1907  
1908   rm -f conftest$ac_cv_exeext
1909 < echo "$as_me:1655: result: $ac_cv_exeext" >&5
1909 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910   echo "${ECHO_T}$ac_cv_exeext" >&6
1911  
1912   rm -f conftest.$ac_ext
1913   EXEEXT=$ac_cv_exeext
1914   ac_exeext=$EXEEXT
1915 < echo "$as_me:1661: checking for object suffix" >&5
1916 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1915 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917   if test "${ac_cv_objext+set}" = set; then
1918    echo $ECHO_N "(cached) $ECHO_C" >&6
1919   else
1920    cat >conftest.$ac_ext <<_ACEOF
1921 < #line 1667 "configure"
1922 < #include "confdefs.h"
1921 > /* confdefs.h.  */
1922 > _ACEOF
1923 > cat confdefs.h >>conftest.$ac_ext
1924 > cat >>conftest.$ac_ext <<_ACEOF
1925 > /* end confdefs.h.  */
1926  
1927   int
1928   main ()
# Line 1676 | Line 1933 | rm -f conftest.o conftest.obj
1933   }
1934   _ACEOF
1935   rm -f conftest.o conftest.obj
1936 < if { (eval echo "$as_me:1679: \"$ac_compile\"") >&5
1936 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937    (eval $ac_compile) 2>&5
1938    ac_status=$?
1939 <  echo "$as_me:1682: \$? = $ac_status" >&5
1939 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940    (exit $ac_status); }; then
1941    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942    case $ac_file in
1943 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1943 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945         break;;
1946    esac
1947   done
1948   else
1949    echo "$as_me: failed program was:" >&5
1950 < cat conftest.$ac_ext >&5
1951 < { { echo "$as_me:1694: error: cannot compute OBJEXT: cannot compile" >&5
1952 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1950 > sed 's/^/| /' conftest.$ac_ext >&5
1951 >
1952 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 > See \`config.log' for more details." >&5
1954 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 > See \`config.log' for more details." >&2;}
1956     { (exit 1); exit 1; }; }
1957   fi
1958  
1959   rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960   fi
1961 < echo "$as_me:1701: result: $ac_cv_objext" >&5
1961 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962   echo "${ECHO_T}$ac_cv_objext" >&6
1963   OBJEXT=$ac_cv_objext
1964   ac_objext=$OBJEXT
1965 < echo "$as_me:1705: checking whether we are using the GNU C compiler" >&5
1966 < echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 < if test "${ac_cv_c_compiler_gnu+set}" = set; then
1965 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1966 > echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1967 > if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1968    echo $ECHO_N "(cached) $ECHO_C" >&6
1969   else
1970    cat >conftest.$ac_ext <<_ACEOF
1971 < #line 1711 "configure"
1972 < #include "confdefs.h"
1971 > /* confdefs.h.  */
1972 > _ACEOF
1973 > cat confdefs.h >>conftest.$ac_ext
1974 > cat >>conftest.$ac_ext <<_ACEOF
1975 > /* end confdefs.h.  */
1976  
1977   int
1978   main ()
# Line 1723 | Line 1986 | rm -f conftest.$ac_objext
1986   }
1987   _ACEOF
1988   rm -f conftest.$ac_objext
1989 < if { (eval echo "$as_me:1726: \"$ac_compile\"") >&5
1990 <  (eval $ac_compile) 2>&5
1989 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 >  (eval $ac_compile) 2>conftest.er1
1991    ac_status=$?
1992 <  echo "$as_me:1729: \$? = $ac_status" >&5
1992 >  grep -v '^ *+' conftest.er1 >conftest.err
1993 >  rm -f conftest.er1
1994 >  cat conftest.err >&5
1995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996    (exit $ac_status); } &&
1997 <         { ac_try='test -s conftest.$ac_objext'
1998 <  { (eval echo "$as_me:1732: \"$ac_try\"") >&5
1997 >         { ac_try='test -z "$ac_cxx_werror_flag"
1998 >                         || test ! -s conftest.err'
1999 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000    (eval $ac_try) 2>&5
2001    ac_status=$?
2002 <  echo "$as_me:1735: \$? = $ac_status" >&5
2002 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 >  (exit $ac_status); }; } &&
2004 >         { ac_try='test -s conftest.$ac_objext'
2005 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 >  (eval $ac_try) 2>&5
2007 >  ac_status=$?
2008 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009    (exit $ac_status); }; }; then
2010    ac_compiler_gnu=yes
2011   else
2012    echo "$as_me: failed program was:" >&5
2013 < cat conftest.$ac_ext >&5
2013 > sed 's/^/| /' conftest.$ac_ext >&5
2014 >
2015   ac_compiler_gnu=no
2016   fi
2017 < rm -f conftest.$ac_objext conftest.$ac_ext
2018 < ac_cv_c_compiler_gnu=$ac_compiler_gnu
2017 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 > ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2019  
2020   fi
2021 < echo "$as_me:1747: result: $ac_cv_c_compiler_gnu" >&5
2022 < echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 < GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 < ac_test_CFLAGS=${CFLAGS+set}
2025 < ac_save_CFLAGS=$CFLAGS
2026 < CFLAGS="-g"
2027 < echo "$as_me:1753: checking whether $CC accepts -g" >&5
2028 < echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 < if test "${ac_cv_prog_cc_g+set}" = set; then
2021 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2022 > echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2023 > GXX=`test $ac_compiler_gnu = yes && echo yes`
2024 > ac_test_CXXFLAGS=${CXXFLAGS+set}
2025 > ac_save_CXXFLAGS=$CXXFLAGS
2026 > CXXFLAGS="-g"
2027 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2028 > echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2029 > if test "${ac_cv_prog_cxx_g+set}" = set; then
2030    echo $ECHO_N "(cached) $ECHO_C" >&6
2031   else
2032    cat >conftest.$ac_ext <<_ACEOF
2033 < #line 1759 "configure"
2034 < #include "confdefs.h"
2033 > /* confdefs.h.  */
2034 > _ACEOF
2035 > cat confdefs.h >>conftest.$ac_ext
2036 > cat >>conftest.$ac_ext <<_ACEOF
2037 > /* end confdefs.h.  */
2038  
2039   int
2040   main ()
# Line 1768 | Line 2045 | rm -f conftest.$ac_objext
2045   }
2046   _ACEOF
2047   rm -f conftest.$ac_objext
2048 < if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
2049 <  (eval $ac_compile) 2>&5
2048 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 >  (eval $ac_compile) 2>conftest.er1
2050    ac_status=$?
2051 <  echo "$as_me:1774: \$? = $ac_status" >&5
2051 >  grep -v '^ *+' conftest.er1 >conftest.err
2052 >  rm -f conftest.er1
2053 >  cat conftest.err >&5
2054 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055    (exit $ac_status); } &&
2056 <         { ac_try='test -s conftest.$ac_objext'
2057 <  { (eval echo "$as_me:1777: \"$ac_try\"") >&5
2056 >         { ac_try='test -z "$ac_cxx_werror_flag"
2057 >                         || test ! -s conftest.err'
2058 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059    (eval $ac_try) 2>&5
2060    ac_status=$?
2061 <  echo "$as_me:1780: \$? = $ac_status" >&5
2061 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 >  (exit $ac_status); }; } &&
2063 >         { ac_try='test -s conftest.$ac_objext'
2064 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 >  (eval $ac_try) 2>&5
2066 >  ac_status=$?
2067 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068    (exit $ac_status); }; }; then
2069 <  ac_cv_prog_cc_g=yes
2069 >  ac_cv_prog_cxx_g=yes
2070   else
2071    echo "$as_me: failed program was:" >&5
2072 < cat conftest.$ac_ext >&5
2073 < ac_cv_prog_cc_g=no
2072 > sed 's/^/| /' conftest.$ac_ext >&5
2073 >
2074 > ac_cv_prog_cxx_g=no
2075   fi
2076 < rm -f conftest.$ac_objext conftest.$ac_ext
2076 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077   fi
2078 < echo "$as_me:1790: result: $ac_cv_prog_cc_g" >&5
2079 < echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080 < if test "$ac_test_CFLAGS" = set; then
2081 <  CFLAGS=$ac_save_CFLAGS
2082 < elif test $ac_cv_prog_cc_g = yes; then
2083 <  if test "$GCC" = yes; then
2084 <    CFLAGS="-g -O2"
2078 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2079 > echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2080 > if test "$ac_test_CXXFLAGS" = set; then
2081 >  CXXFLAGS=$ac_save_CXXFLAGS
2082 > elif test $ac_cv_prog_cxx_g = yes; then
2083 >  if test "$GXX" = yes; then
2084 >    CXXFLAGS="-g -O2"
2085    else
2086 <    CFLAGS="-g"
2086 >    CXXFLAGS="-g"
2087    fi
2088   else
2089 <  if test "$GCC" = yes; then
2090 <    CFLAGS="-O2"
2089 >  if test "$GXX" = yes; then
2090 >    CXXFLAGS="-O2"
2091    else
2092 <    CFLAGS=
2092 >    CXXFLAGS=
2093    fi
2094   fi
2095 < # Some people use a C++ compiler to compile C.  Since we use `exit',
2096 < # in C++ we need to declare it.  In case someone uses the same compiler
1809 < # for both compiling C and C++ we need to have the C++ compiler decide
1810 < # the declaration of exit, since it's the most demanding environment.
1811 < cat >conftest.$ac_ext <<_ACEOF
1812 < #ifndef __cplusplus
1813 <  choke me
1814 < #endif
1815 < _ACEOF
1816 < rm -f conftest.$ac_objext
1817 < if { (eval echo "$as_me:1817: \"$ac_compile\"") >&5
1818 <  (eval $ac_compile) 2>&5
1819 <  ac_status=$?
1820 <  echo "$as_me:1820: \$? = $ac_status" >&5
1821 <  (exit $ac_status); } &&
1822 <         { ac_try='test -s conftest.$ac_objext'
1823 <  { (eval echo "$as_me:1823: \"$ac_try\"") >&5
1824 <  (eval $ac_try) 2>&5
1825 <  ac_status=$?
1826 <  echo "$as_me:1826: \$? = $ac_status" >&5
1827 <  (exit $ac_status); }; }; then
1828 <  for ac_declaration in \
1829 <   ''\
1830 <   '#include <stdlib.h>' \
2095 > for ac_declaration in \
2096 >   '' \
2097     'extern "C" void std::exit (int) throw (); using std::exit;' \
2098     'extern "C" void std::exit (int); using std::exit;' \
2099     'extern "C" void exit (int) throw ();' \
# Line 1835 | Line 2101 | do
2101     'void exit (int);'
2102   do
2103    cat >conftest.$ac_ext <<_ACEOF
2104 < #line 1838 "configure"
2105 < #include "confdefs.h"
2106 < #include <stdlib.h>
2104 > /* confdefs.h.  */
2105 > _ACEOF
2106 > cat confdefs.h >>conftest.$ac_ext
2107 > cat >>conftest.$ac_ext <<_ACEOF
2108 > /* end confdefs.h.  */
2109   $ac_declaration
2110 + #include <stdlib.h>
2111   int
2112   main ()
2113   {
# Line 1848 | Line 2117 | rm -f conftest.$ac_objext
2117   }
2118   _ACEOF
2119   rm -f conftest.$ac_objext
2120 < if { (eval echo "$as_me:1851: \"$ac_compile\"") >&5
2121 <  (eval $ac_compile) 2>&5
2122 <  ac_status=$?
2123 <  echo "$as_me:1854: \$? = $ac_status" >&5
2120 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 >  (eval $ac_compile) 2>conftest.er1
2122 >  ac_status=$?
2123 >  grep -v '^ *+' conftest.er1 >conftest.err
2124 >  rm -f conftest.er1
2125 >  cat conftest.err >&5
2126 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127    (exit $ac_status); } &&
2128 <         { ac_try='test -s conftest.$ac_objext'
2129 <  { (eval echo "$as_me:1857: \"$ac_try\"") >&5
2128 >         { ac_try='test -z "$ac_cxx_werror_flag"
2129 >                         || test ! -s conftest.err'
2130 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131    (eval $ac_try) 2>&5
2132    ac_status=$?
2133 <  echo "$as_me:1860: \$? = $ac_status" >&5
2133 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 >  (exit $ac_status); }; } &&
2135 >         { ac_try='test -s conftest.$ac_objext'
2136 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 >  (eval $ac_try) 2>&5
2138 >  ac_status=$?
2139 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140    (exit $ac_status); }; }; then
2141    :
2142   else
2143    echo "$as_me: failed program was:" >&5
2144 < cat conftest.$ac_ext >&5
2144 > sed 's/^/| /' conftest.$ac_ext >&5
2145 >
2146   continue
2147   fi
2148 < rm -f conftest.$ac_objext conftest.$ac_ext
2148 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2149    cat >conftest.$ac_ext <<_ACEOF
2150 < #line 1870 "configure"
2151 < #include "confdefs.h"
2150 > /* confdefs.h.  */
2151 > _ACEOF
2152 > cat confdefs.h >>conftest.$ac_ext
2153 > cat >>conftest.$ac_ext <<_ACEOF
2154 > /* end confdefs.h.  */
2155   $ac_declaration
2156   int
2157   main ()
# Line 1879 | Line 2162 | rm -f conftest.$ac_objext
2162   }
2163   _ACEOF
2164   rm -f conftest.$ac_objext
2165 < if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5
2166 <  (eval $ac_compile) 2>&5
2165 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 >  (eval $ac_compile) 2>conftest.er1
2167    ac_status=$?
2168 <  echo "$as_me:1885: \$? = $ac_status" >&5
2168 >  grep -v '^ *+' conftest.er1 >conftest.err
2169 >  rm -f conftest.er1
2170 >  cat conftest.err >&5
2171 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172    (exit $ac_status); } &&
2173 <         { ac_try='test -s conftest.$ac_objext'
2174 <  { (eval echo "$as_me:1888: \"$ac_try\"") >&5
2173 >         { ac_try='test -z "$ac_cxx_werror_flag"
2174 >                         || test ! -s conftest.err'
2175 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176    (eval $ac_try) 2>&5
2177    ac_status=$?
2178 <  echo "$as_me:1891: \$? = $ac_status" >&5
2178 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 >  (exit $ac_status); }; } &&
2180 >         { ac_try='test -s conftest.$ac_objext'
2181 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 >  (eval $ac_try) 2>&5
2183 >  ac_status=$?
2184 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185    (exit $ac_status); }; }; then
2186    break
2187   else
2188    echo "$as_me: failed program was:" >&5
2189 < cat conftest.$ac_ext >&5
2189 > sed 's/^/| /' conftest.$ac_ext >&5
2190 >
2191   fi
2192 < rm -f conftest.$ac_objext conftest.$ac_ext
2192 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2193   done
2194 < echo '#ifdef __cplusplus' >>confdefs.h
2195 < echo $ac_declaration      >>confdefs.h
2196 < echo '#endif'             >>confdefs.h
2197 <
2198 < else
1905 <  echo "$as_me: failed program was:" >&5
1906 < cat conftest.$ac_ext >&5
2194 > rm -f conftest*
2195 > if test -n "$ac_declaration"; then
2196 >  echo '#ifdef __cplusplus' >>confdefs.h
2197 >  echo $ac_declaration      >>confdefs.h
2198 >  echo '#endif'             >>confdefs.h
2199   fi
2200 < rm -f conftest.$ac_objext conftest.$ac_ext
2200 >
2201   ac_ext=c
2202   ac_cpp='$CPP $CPPFLAGS'
2203   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206  
2207 < ac_ext=cc
2208 < ac_cpp='$CXXCPP $CPPFLAGS'
2209 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2207 > ac_ext=c
2208 > ac_cpp='$CPP $CPPFLAGS'
2209 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212   if test -n "$ac_tool_prefix"; then
2213 <  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2213 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2214    do
2215      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217 < echo "$as_me:1925: checking for $ac_word" >&5
2217 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2218   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 < if test "${ac_cv_prog_CXX+set}" = set; then
2219 > if test "${ac_cv_prog_CC+set}" = set; then
2220    echo $ECHO_N "(cached) $ECHO_C" >&6
2221   else
2222 <  if test -n "$CXX"; then
2223 <  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2222 >  if test -n "$CC"; then
2223 >  ac_cv_prog_CC="$CC" # Let the user override the test.
2224   else
2225 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2226 < ac_dummy="$PATH"
2227 < for ac_dir in $ac_dummy; do
2228 <  IFS=$ac_save_IFS
2229 <  test -z "$ac_dir" && ac_dir=.
2230 <  $as_executable_p "$ac_dir/$ac_word" || continue
2231 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2232 < echo "$as_me:1940: found $ac_dir/$ac_word" >&5
2233 < break
2225 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 > for as_dir in $PATH
2227 > do
2228 >  IFS=$as_save_IFS
2229 >  test -z "$as_dir" && as_dir=.
2230 >  for ac_exec_ext in '' $ac_executable_extensions; do
2231 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 >    break 2
2235 >  fi
2236   done
2237 + done
2238  
2239   fi
2240   fi
2241 < CXX=$ac_cv_prog_CXX
2242 < if test -n "$CXX"; then
2243 <  echo "$as_me:1948: result: $CXX" >&5
2244 < echo "${ECHO_T}$CXX" >&6
2241 > CC=$ac_cv_prog_CC
2242 > if test -n "$CC"; then
2243 >  echo "$as_me:$LINENO: result: $CC" >&5
2244 > echo "${ECHO_T}$CC" >&6
2245   else
2246 <  echo "$as_me:1951: result: no" >&5
2246 >  echo "$as_me:$LINENO: result: no" >&5
2247   echo "${ECHO_T}no" >&6
2248   fi
2249  
2250 <    test -n "$CXX" && break
2250 >    test -n "$CC" && break
2251    done
2252   fi
2253 < if test -z "$CXX"; then
2254 <  ac_ct_CXX=$CXX
2255 <  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2253 > if test -z "$CC"; then
2254 >  ac_ct_CC=$CC
2255 >  for ac_prog in mpicc icc pathcc pgcc cc xlc gcc
2256   do
2257    # Extract the first word of "$ac_prog", so it can be a program name with args.
2258   set dummy $ac_prog; ac_word=$2
2259 < echo "$as_me:1964: checking for $ac_word" >&5
2259 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2260   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 < if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2261 > if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262    echo $ECHO_N "(cached) $ECHO_C" >&6
2263   else
2264 <  if test -n "$ac_ct_CXX"; then
2265 <  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2264 >  if test -n "$ac_ct_CC"; then
2265 >  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2266   else
2267 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2268 < ac_dummy="$PATH"
2269 < for ac_dir in $ac_dummy; do
2270 <  IFS=$ac_save_IFS
2271 <  test -z "$ac_dir" && ac_dir=.
2272 <  $as_executable_p "$ac_dir/$ac_word" || continue
2273 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2274 < echo "$as_me:1979: found $ac_dir/$ac_word" >&5
2275 < break
2267 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 > for as_dir in $PATH
2269 > do
2270 >  IFS=$as_save_IFS
2271 >  test -z "$as_dir" && as_dir=.
2272 >  for ac_exec_ext in '' $ac_executable_extensions; do
2273 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 >    ac_cv_prog_ac_ct_CC="$ac_prog"
2275 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 >    break 2
2277 >  fi
2278   done
2279 + done
2280  
2281   fi
2282   fi
2283 < ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2284 < if test -n "$ac_ct_CXX"; then
2285 <  echo "$as_me:1987: result: $ac_ct_CXX" >&5
2286 < echo "${ECHO_T}$ac_ct_CXX" >&6
2283 > ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 > if test -n "$ac_ct_CC"; then
2285 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 > echo "${ECHO_T}$ac_ct_CC" >&6
2287   else
2288 <  echo "$as_me:1990: result: no" >&5
2288 >  echo "$as_me:$LINENO: result: no" >&5
2289   echo "${ECHO_T}no" >&6
2290   fi
2291  
2292 <  test -n "$ac_ct_CXX" && break
2292 >  test -n "$ac_ct_CC" && break
2293   done
1996 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2294  
2295 <  CXX=$ac_ct_CXX
2295 >  CC=$ac_ct_CC
2296   fi
2297  
2298 < echo "$as_me:2001: checking whether we are using the GNU C++ compiler" >&5
2299 < echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2300 < if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2298 >
2299 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2300 > See \`config.log' for more details." >&5
2301 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2302 > See \`config.log' for more details." >&2;}
2303 >   { (exit 1); exit 1; }; }
2304 >
2305 > # Provide some information about the compiler.
2306 > echo "$as_me:$LINENO:" \
2307 >     "checking for C compiler version" >&5
2308 > ac_compiler=`set X $ac_compile; echo $2`
2309 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2310 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2311 >  ac_status=$?
2312 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 >  (exit $ac_status); }
2314 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2315 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2316 >  ac_status=$?
2317 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 >  (exit $ac_status); }
2319 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2320 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2321 >  ac_status=$?
2322 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 >  (exit $ac_status); }
2324 >
2325 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2326 > echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2327 > if test "${ac_cv_c_compiler_gnu+set}" = set; then
2328    echo $ECHO_N "(cached) $ECHO_C" >&6
2329   else
2330    cat >conftest.$ac_ext <<_ACEOF
2331 < #line 2007 "configure"
2332 < #include "confdefs.h"
2331 > /* confdefs.h.  */
2332 > _ACEOF
2333 > cat confdefs.h >>conftest.$ac_ext
2334 > cat >>conftest.$ac_ext <<_ACEOF
2335 > /* end confdefs.h.  */
2336  
2337   int
2338   main ()
# Line 2019 | Line 2346 | rm -f conftest.$ac_objext
2346   }
2347   _ACEOF
2348   rm -f conftest.$ac_objext
2349 < if { (eval echo "$as_me:2022: \"$ac_compile\"") >&5
2350 <  (eval $ac_compile) 2>&5
2351 <  ac_status=$?
2352 <  echo "$as_me:2025: \$? = $ac_status" >&5
2349 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 >  (eval $ac_compile) 2>conftest.er1
2351 >  ac_status=$?
2352 >  grep -v '^ *+' conftest.er1 >conftest.err
2353 >  rm -f conftest.er1
2354 >  cat conftest.err >&5
2355 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356    (exit $ac_status); } &&
2357 <         { ac_try='test -s conftest.$ac_objext'
2358 <  { (eval echo "$as_me:2028: \"$ac_try\"") >&5
2357 >         { ac_try='test -z "$ac_c_werror_flag"
2358 >                         || test ! -s conftest.err'
2359 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360    (eval $ac_try) 2>&5
2361    ac_status=$?
2362 <  echo "$as_me:2031: \$? = $ac_status" >&5
2362 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 >  (exit $ac_status); }; } &&
2364 >         { ac_try='test -s conftest.$ac_objext'
2365 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 >  (eval $ac_try) 2>&5
2367 >  ac_status=$?
2368 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369    (exit $ac_status); }; }; then
2370    ac_compiler_gnu=yes
2371   else
2372    echo "$as_me: failed program was:" >&5
2373 < cat conftest.$ac_ext >&5
2373 > sed 's/^/| /' conftest.$ac_ext >&5
2374 >
2375   ac_compiler_gnu=no
2376   fi
2377 < rm -f conftest.$ac_objext conftest.$ac_ext
2378 < ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2377 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378 > ac_cv_c_compiler_gnu=$ac_compiler_gnu
2379  
2380   fi
2381 < echo "$as_me:2043: result: $ac_cv_cxx_compiler_gnu" >&5
2382 < echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2383 < GXX=`test $ac_compiler_gnu = yes && echo yes`
2384 < ac_test_CXXFLAGS=${CXXFLAGS+set}
2385 < ac_save_CXXFLAGS=$CXXFLAGS
2386 < CXXFLAGS="-g"
2387 < echo "$as_me:2049: checking whether $CXX accepts -g" >&5
2388 < echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2389 < if test "${ac_cv_prog_cxx_g+set}" = set; then
2381 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2382 > echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2383 > GCC=`test $ac_compiler_gnu = yes && echo yes`
2384 > ac_test_CFLAGS=${CFLAGS+set}
2385 > ac_save_CFLAGS=$CFLAGS
2386 > CFLAGS="-g"
2387 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2388 > echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2389 > if test "${ac_cv_prog_cc_g+set}" = set; then
2390    echo $ECHO_N "(cached) $ECHO_C" >&6
2391   else
2392    cat >conftest.$ac_ext <<_ACEOF
2393 < #line 2055 "configure"
2394 < #include "confdefs.h"
2393 > /* confdefs.h.  */
2394 > _ACEOF
2395 > cat confdefs.h >>conftest.$ac_ext
2396 > cat >>conftest.$ac_ext <<_ACEOF
2397 > /* end confdefs.h.  */
2398  
2399   int
2400   main ()
# Line 2064 | Line 2405 | rm -f conftest.$ac_objext
2405   }
2406   _ACEOF
2407   rm -f conftest.$ac_objext
2408 < if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5
2409 <  (eval $ac_compile) 2>&5
2408 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 >  (eval $ac_compile) 2>conftest.er1
2410    ac_status=$?
2411 <  echo "$as_me:2070: \$? = $ac_status" >&5
2411 >  grep -v '^ *+' conftest.er1 >conftest.err
2412 >  rm -f conftest.er1
2413 >  cat conftest.err >&5
2414 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415    (exit $ac_status); } &&
2416 <         { ac_try='test -s conftest.$ac_objext'
2417 <  { (eval echo "$as_me:2073: \"$ac_try\"") >&5
2416 >         { ac_try='test -z "$ac_c_werror_flag"
2417 >                         || test ! -s conftest.err'
2418 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419    (eval $ac_try) 2>&5
2420    ac_status=$?
2421 <  echo "$as_me:2076: \$? = $ac_status" >&5
2421 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 >  (exit $ac_status); }; } &&
2423 >         { ac_try='test -s conftest.$ac_objext'
2424 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 >  (eval $ac_try) 2>&5
2426 >  ac_status=$?
2427 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428    (exit $ac_status); }; }; then
2429 <  ac_cv_prog_cxx_g=yes
2429 >  ac_cv_prog_cc_g=yes
2430   else
2431    echo "$as_me: failed program was:" >&5
2432 < cat conftest.$ac_ext >&5
2433 < ac_cv_prog_cxx_g=no
2432 > sed 's/^/| /' conftest.$ac_ext >&5
2433 >
2434 > ac_cv_prog_cc_g=no
2435   fi
2436 < rm -f conftest.$ac_objext conftest.$ac_ext
2436 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437   fi
2438 < echo "$as_me:2086: result: $ac_cv_prog_cxx_g" >&5
2439 < echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2440 < if test "$ac_test_CXXFLAGS" = set; then
2441 <  CXXFLAGS=$ac_save_CXXFLAGS
2442 < elif test $ac_cv_prog_cxx_g = yes; then
2443 <  if test "$GXX" = yes; then
2444 <    CXXFLAGS="-g -O2"
2438 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 > echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2440 > if test "$ac_test_CFLAGS" = set; then
2441 >  CFLAGS=$ac_save_CFLAGS
2442 > elif test $ac_cv_prog_cc_g = yes; then
2443 >  if test "$GCC" = yes; then
2444 >    CFLAGS="-g -O2"
2445    else
2446 <    CXXFLAGS="-g"
2446 >    CFLAGS="-g"
2447    fi
2448   else
2449 <  if test "$GXX" = yes; then
2450 <    CXXFLAGS="-O2"
2449 >  if test "$GCC" = yes; then
2450 >    CFLAGS="-O2"
2451    else
2452 <    CXXFLAGS=
2452 >    CFLAGS=
2453    fi
2454   fi
2455 < for ac_declaration in \
2456 <   ''\
2457 <   '#include <stdlib.h>' \
2455 > echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2456 > echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2457 > if test "${ac_cv_prog_cc_stdc+set}" = set; then
2458 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2459 > else
2460 >  ac_cv_prog_cc_stdc=no
2461 > ac_save_CC=$CC
2462 > cat >conftest.$ac_ext <<_ACEOF
2463 > /* confdefs.h.  */
2464 > _ACEOF
2465 > cat confdefs.h >>conftest.$ac_ext
2466 > cat >>conftest.$ac_ext <<_ACEOF
2467 > /* end confdefs.h.  */
2468 > #include <stdarg.h>
2469 > #include <stdio.h>
2470 > #include <sys/types.h>
2471 > #include <sys/stat.h>
2472 > /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2473 > struct buf { int x; };
2474 > FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 > static char *e (p, i)
2476 >     char **p;
2477 >     int i;
2478 > {
2479 >  return p[i];
2480 > }
2481 > static char *f (char * (*g) (char **, int), char **p, ...)
2482 > {
2483 >  char *s;
2484 >  va_list v;
2485 >  va_start (v,p);
2486 >  s = g (p, va_arg (v,int));
2487 >  va_end (v);
2488 >  return s;
2489 > }
2490 >
2491 > /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2492 >   function prototypes and stuff, but not '\xHH' hex character constants.
2493 >   These don't provoke an error unfortunately, instead are silently treated
2494 >   as 'x'.  The following induces an error, until -std1 is added to get
2495 >   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2496 >   array size at least.  It's necessary to write '\x00'==0 to get something
2497 >   that's true only with -std1.  */
2498 > int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2499 >
2500 > int test (int i, double x);
2501 > struct s1 {int (*f) (int a);};
2502 > struct s2 {int (*f) (double a);};
2503 > int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2504 > int argc;
2505 > char **argv;
2506 > int
2507 > main ()
2508 > {
2509 > return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2510 >  ;
2511 >  return 0;
2512 > }
2513 > _ACEOF
2514 > # Don't try gcc -ansi; that turns off useful extensions and
2515 > # breaks some systems' header files.
2516 > # AIX                   -qlanglvl=ansi
2517 > # Ultrix and OSF/1      -std1
2518 > # HP-UX 10.20 and later -Ae
2519 > # HP-UX older versions  -Aa -D_HPUX_SOURCE
2520 > # SVR4                  -Xc -D__EXTENSIONS__
2521 > for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2522 > do
2523 >  CC="$ac_save_CC $ac_arg"
2524 >  rm -f conftest.$ac_objext
2525 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 >  (eval $ac_compile) 2>conftest.er1
2527 >  ac_status=$?
2528 >  grep -v '^ *+' conftest.er1 >conftest.err
2529 >  rm -f conftest.er1
2530 >  cat conftest.err >&5
2531 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 >  (exit $ac_status); } &&
2533 >         { ac_try='test -z "$ac_c_werror_flag"
2534 >                         || test ! -s conftest.err'
2535 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 >  (eval $ac_try) 2>&5
2537 >  ac_status=$?
2538 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 >  (exit $ac_status); }; } &&
2540 >         { ac_try='test -s conftest.$ac_objext'
2541 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 >  (eval $ac_try) 2>&5
2543 >  ac_status=$?
2544 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 >  (exit $ac_status); }; }; then
2546 >  ac_cv_prog_cc_stdc=$ac_arg
2547 > break
2548 > else
2549 >  echo "$as_me: failed program was:" >&5
2550 > sed 's/^/| /' conftest.$ac_ext >&5
2551 >
2552 > fi
2553 > rm -f conftest.err conftest.$ac_objext
2554 > done
2555 > rm -f conftest.$ac_ext conftest.$ac_objext
2556 > CC=$ac_save_CC
2557 >
2558 > fi
2559 >
2560 > case "x$ac_cv_prog_cc_stdc" in
2561 >  x|xno)
2562 >    echo "$as_me:$LINENO: result: none needed" >&5
2563 > echo "${ECHO_T}none needed" >&6 ;;
2564 >  *)
2565 >    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 > echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567 >    CC="$CC $ac_cv_prog_cc_stdc" ;;
2568 > esac
2569 >
2570 > # Some people use a C++ compiler to compile C.  Since we use `exit',
2571 > # in C++ we need to declare it.  In case someone uses the same compiler
2572 > # for both compiling C and C++ we need to have the C++ compiler decide
2573 > # the declaration of exit, since it's the most demanding environment.
2574 > cat >conftest.$ac_ext <<_ACEOF
2575 > #ifndef __cplusplus
2576 >  choke me
2577 > #endif
2578 > _ACEOF
2579 > rm -f conftest.$ac_objext
2580 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 >  (eval $ac_compile) 2>conftest.er1
2582 >  ac_status=$?
2583 >  grep -v '^ *+' conftest.er1 >conftest.err
2584 >  rm -f conftest.er1
2585 >  cat conftest.err >&5
2586 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 >  (exit $ac_status); } &&
2588 >         { ac_try='test -z "$ac_c_werror_flag"
2589 >                         || test ! -s conftest.err'
2590 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 >  (eval $ac_try) 2>&5
2592 >  ac_status=$?
2593 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 >  (exit $ac_status); }; } &&
2595 >         { ac_try='test -s conftest.$ac_objext'
2596 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 >  (eval $ac_try) 2>&5
2598 >  ac_status=$?
2599 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 >  (exit $ac_status); }; }; then
2601 >  for ac_declaration in \
2602 >   '' \
2603     'extern "C" void std::exit (int) throw (); using std::exit;' \
2604     'extern "C" void std::exit (int); using std::exit;' \
2605     'extern "C" void exit (int) throw ();' \
# Line 2110 | Line 2607 | do
2607     'void exit (int);'
2608   do
2609    cat >conftest.$ac_ext <<_ACEOF
2610 < #line 2113 "configure"
2611 < #include "confdefs.h"
2612 < #include <stdlib.h>
2610 > /* confdefs.h.  */
2611 > _ACEOF
2612 > cat confdefs.h >>conftest.$ac_ext
2613 > cat >>conftest.$ac_ext <<_ACEOF
2614 > /* end confdefs.h.  */
2615   $ac_declaration
2616 + #include <stdlib.h>
2617   int
2618   main ()
2619   {
# Line 2123 | Line 2623 | rm -f conftest.$ac_objext
2623   }
2624   _ACEOF
2625   rm -f conftest.$ac_objext
2626 < if { (eval echo "$as_me:2126: \"$ac_compile\"") >&5
2627 <  (eval $ac_compile) 2>&5
2626 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 >  (eval $ac_compile) 2>conftest.er1
2628    ac_status=$?
2629 <  echo "$as_me:2129: \$? = $ac_status" >&5
2629 >  grep -v '^ *+' conftest.er1 >conftest.err
2630 >  rm -f conftest.er1
2631 >  cat conftest.err >&5
2632 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633    (exit $ac_status); } &&
2634 <         { ac_try='test -s conftest.$ac_objext'
2635 <  { (eval echo "$as_me:2132: \"$ac_try\"") >&5
2634 >         { ac_try='test -z "$ac_c_werror_flag"
2635 >                         || test ! -s conftest.err'
2636 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637    (eval $ac_try) 2>&5
2638    ac_status=$?
2639 <  echo "$as_me:2135: \$? = $ac_status" >&5
2639 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 >  (exit $ac_status); }; } &&
2641 >         { ac_try='test -s conftest.$ac_objext'
2642 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 >  (eval $ac_try) 2>&5
2644 >  ac_status=$?
2645 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646    (exit $ac_status); }; }; then
2647    :
2648   else
2649    echo "$as_me: failed program was:" >&5
2650 < cat conftest.$ac_ext >&5
2650 > sed 's/^/| /' conftest.$ac_ext >&5
2651 >
2652   continue
2653   fi
2654 < rm -f conftest.$ac_objext conftest.$ac_ext
2654 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655    cat >conftest.$ac_ext <<_ACEOF
2656 < #line 2145 "configure"
2657 < #include "confdefs.h"
2656 > /* confdefs.h.  */
2657 > _ACEOF
2658 > cat confdefs.h >>conftest.$ac_ext
2659 > cat >>conftest.$ac_ext <<_ACEOF
2660 > /* end confdefs.h.  */
2661   $ac_declaration
2662   int
2663   main ()
# Line 2154 | Line 2668 | rm -f conftest.$ac_objext
2668   }
2669   _ACEOF
2670   rm -f conftest.$ac_objext
2671 < if { (eval echo "$as_me:2157: \"$ac_compile\"") >&5
2672 <  (eval $ac_compile) 2>&5
2671 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 >  (eval $ac_compile) 2>conftest.er1
2673    ac_status=$?
2674 <  echo "$as_me:2160: \$? = $ac_status" >&5
2674 >  grep -v '^ *+' conftest.er1 >conftest.err
2675 >  rm -f conftest.er1
2676 >  cat conftest.err >&5
2677 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678    (exit $ac_status); } &&
2679 <         { ac_try='test -s conftest.$ac_objext'
2680 <  { (eval echo "$as_me:2163: \"$ac_try\"") >&5
2679 >         { ac_try='test -z "$ac_c_werror_flag"
2680 >                         || test ! -s conftest.err'
2681 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682    (eval $ac_try) 2>&5
2683    ac_status=$?
2684 <  echo "$as_me:2166: \$? = $ac_status" >&5
2684 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 >  (exit $ac_status); }; } &&
2686 >         { ac_try='test -s conftest.$ac_objext'
2687 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 >  (eval $ac_try) 2>&5
2689 >  ac_status=$?
2690 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691    (exit $ac_status); }; }; then
2692    break
2693   else
2694    echo "$as_me: failed program was:" >&5
2695 < cat conftest.$ac_ext >&5
2695 > sed 's/^/| /' conftest.$ac_ext >&5
2696 >
2697   fi
2698 < rm -f conftest.$ac_objext conftest.$ac_ext
2698 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699   done
2700 < echo '#ifdef __cplusplus' >>confdefs.h
2701 < echo $ac_declaration      >>confdefs.h
2702 < echo '#endif'             >>confdefs.h
2700 > rm -f conftest*
2701 > if test -n "$ac_declaration"; then
2702 >  echo '#ifdef __cplusplus' >>confdefs.h
2703 >  echo $ac_declaration      >>confdefs.h
2704 >  echo '#endif'             >>confdefs.h
2705 > fi
2706  
2707 + else
2708 +  echo "$as_me: failed program was:" >&5
2709 + sed 's/^/| /' conftest.$ac_ext >&5
2710 +
2711 + fi
2712 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713   ac_ext=c
2714   ac_cpp='$CPP $CPPFLAGS'
2715   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718  
2719 < OOPSE_TEMPLATE_FLAGS=""
2720 < if test $ac_cv_cxx_compiler_gnu = no; then
2721 <  echo "$as_me:2187: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
2722 < echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
2189 <  echo 'void f(){}' > conftest.cc
2190 <  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
2191 <    echo "$as_me:2191: result: yes" >&5
2192 < echo "${ECHO_T}yes" >&6
2193 <    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
2194 <  else
2195 <    echo "$as_me:2195: result: no" >&5
2196 < echo "${ECHO_T}no" >&6
2197 <  fi
2198 <  rm -f conftest*
2199 <  echo "$as_me:2199: checking checking whether ${CXX} accepts -instances=static" >&5
2200 < echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
2201 <  echo 'void f(){}' > conftest.cc
2202 <  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
2203 <    echo "$as_me:2203: result: yes" >&5
2204 < echo "${ECHO_T}yes" >&6
2205 <    OOPSE_TEMPLATE_FLAGS="-instances=static"
2206 <  else
2207 <    echo "$as_me:2207: result: no" >&5
2208 < echo "${ECHO_T}no" >&6
2209 <  fi
2210 <  rm -f conftest*
2211 <  echo "$as_me:2211: checking checking whether ${CXX} accepts -pto" >&5
2212 < echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
2213 <  echo 'void f(){}' > conftest.cc
2214 <  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
2215 <    echo "$as_me:2215: result: yes" >&5
2216 < echo "${ECHO_T}yes" >&6
2217 <    OOPSE_TEMPLATE_FLAGS="-pto"
2218 <  else
2219 <    echo "$as_me:2219: result: no" >&5
2220 < echo "${ECHO_T}no" >&6
2221 <  fi
2222 <  rm -f conftest*
2223 <  echo "$as_me:2223: checking checking whether ${CXX} accepts -LANG:std" >&5
2224 < echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
2225 <  echo 'void f(){}' > conftest.cc
2226 <  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
2227 <    echo "$as_me:2227: result: yes" >&5
2228 < echo "${ECHO_T}yes" >&6
2229 <
2230 <    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
2231 <  else
2232 <    echo "$as_me:2232: result: no" >&5
2233 < echo "${ECHO_T}no" >&6
2234 <  fi
2235 < fi
2236 <
2237 < ac_ext=f90
2238 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2239 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2240 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2719 > ac_ext=${FC_SRCEXT-f}
2720 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
2721 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
2722 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
2723   if test -n "$ac_tool_prefix"; then
2724 <  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2724 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2725    do
2726      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2728 < echo "$as_me:2246: checking for $ac_word" >&5
2728 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2729   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2730 < if test "${ac_cv_prog_F90+set}" = set; then
2730 > if test "${ac_cv_prog_FC+set}" = set; then
2731    echo $ECHO_N "(cached) $ECHO_C" >&6
2732   else
2733 <  if test -n "$F90"; then
2734 <  ac_cv_prog_F90="$F90" # Let the user override the test.
2733 >  if test -n "$FC"; then
2734 >  ac_cv_prog_FC="$FC" # Let the user override the test.
2735   else
2736 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2737 < ac_dummy="$PATH"
2738 < for ac_dir in $ac_dummy; do
2739 <  IFS=$ac_save_IFS
2740 <  test -z "$ac_dir" && ac_dir=.
2741 <  $as_executable_p "$ac_dir/$ac_word" || continue
2742 < ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2743 < echo "$as_me:2261: found $ac_dir/$ac_word" >&5
2744 < break
2736 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 > for as_dir in $PATH
2738 > do
2739 >  IFS=$as_save_IFS
2740 >  test -z "$as_dir" && as_dir=.
2741 >  for ac_exec_ext in '' $ac_executable_extensions; do
2742 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 >    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
2744 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 >    break 2
2746 >  fi
2747   done
2748 + done
2749  
2750   fi
2751   fi
2752 < F90=$ac_cv_prog_F90
2753 < if test -n "$F90"; then
2754 <  echo "$as_me:2269: result: $F90" >&5
2755 < echo "${ECHO_T}$F90" >&6
2752 > FC=$ac_cv_prog_FC
2753 > if test -n "$FC"; then
2754 >  echo "$as_me:$LINENO: result: $FC" >&5
2755 > echo "${ECHO_T}$FC" >&6
2756   else
2757 <  echo "$as_me:2272: result: no" >&5
2757 >  echo "$as_me:$LINENO: result: no" >&5
2758   echo "${ECHO_T}no" >&6
2759   fi
2760  
2761 <    test -n "$F90" && break
2761 >    test -n "$FC" && break
2762    done
2763   fi
2764 < if test -z "$F90"; then
2765 <  ac_ct_F90=$F90
2766 <  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2764 > if test -z "$FC"; then
2765 >  ac_ct_FC=$FC
2766 >  for ac_prog in mpif90 ifort ifc pathf95 pgf95 xlf95 lf95 epcf90 pathf90 xlf90 f95 f90 gfortran g95 fort
2767   do
2768    # Extract the first word of "$ac_prog", so it can be a program name with args.
2769   set dummy $ac_prog; ac_word=$2
2770 < echo "$as_me:2285: checking for $ac_word" >&5
2770 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2771   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2772 < if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
2772 > if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
2773    echo $ECHO_N "(cached) $ECHO_C" >&6
2774   else
2775 <  if test -n "$ac_ct_F90"; then
2776 <  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
2775 >  if test -n "$ac_ct_FC"; then
2776 >  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
2777   else
2778 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2779 < ac_dummy="$PATH"
2780 < for ac_dir in $ac_dummy; do
2781 <  IFS=$ac_save_IFS
2782 <  test -z "$ac_dir" && ac_dir=.
2783 <  $as_executable_p "$ac_dir/$ac_word" || continue
2784 < ac_cv_prog_ac_ct_F90="$ac_prog"
2785 < echo "$as_me:2300: found $ac_dir/$ac_word" >&5
2786 < break
2778 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 > for as_dir in $PATH
2780 > do
2781 >  IFS=$as_save_IFS
2782 >  test -z "$as_dir" && as_dir=.
2783 >  for ac_exec_ext in '' $ac_executable_extensions; do
2784 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 >    ac_cv_prog_ac_ct_FC="$ac_prog"
2786 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 >    break 2
2788 >  fi
2789   done
2790 + done
2791  
2792   fi
2793   fi
2794 < ac_ct_F90=$ac_cv_prog_ac_ct_F90
2795 < if test -n "$ac_ct_F90"; then
2796 <  echo "$as_me:2308: result: $ac_ct_F90" >&5
2797 < echo "${ECHO_T}$ac_ct_F90" >&6
2794 > ac_ct_FC=$ac_cv_prog_ac_ct_FC
2795 > if test -n "$ac_ct_FC"; then
2796 >  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
2797 > echo "${ECHO_T}$ac_ct_FC" >&6
2798   else
2799 <  echo "$as_me:2311: result: no" >&5
2799 >  echo "$as_me:$LINENO: result: no" >&5
2800   echo "${ECHO_T}no" >&6
2801   fi
2802  
2803 <  test -n "$ac_ct_F90" && break
2803 >  test -n "$ac_ct_FC" && break
2804   done
2805  
2806 <  F90=$ac_ct_F90
2806 >  FC=$ac_ct_FC
2807   fi
2808  
2809 < # If we don't use `.F90' as extension, the preprocessor is not run on the
2810 < # input file.
2809 >
2810 > # Provide some information about the compiler.
2811 > echo "$as_me:2811:" \
2812 >     "checking for Fortran compiler version" >&5
2813 > ac_compiler=`set X $ac_compile; echo $2`
2814 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2815 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2816 >  ac_status=$?
2817 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 >  (exit $ac_status); }
2819 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2820 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2821 >  ac_status=$?
2822 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 >  (exit $ac_status); }
2824 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2825 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2826 >  ac_status=$?
2827 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 >  (exit $ac_status); }
2829 > rm -f a.out
2830 >
2831 > # If we don't use `.F' as extension, the preprocessor is not run on the
2832 > # input file.  (Note that this only needs to work for GNU compilers.)
2833   ac_save_ext=$ac_ext
2834 < ac_ext=F90
2835 < echo "$as_me:2325: checking whether we are using the GNU Fortran 90 compiler" >&5
2836 < echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
2837 < if test "${ac_cv_f90_compiler_gnu+set}" = set; then
2834 > ac_ext=F
2835 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
2836 > echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
2837 > if test "${ac_cv_fc_compiler_gnu+set}" = set; then
2838    echo $ECHO_N "(cached) $ECHO_C" >&6
2839   else
2840    cat >conftest.$ac_ext <<_ACEOF
2841 <
2332 < program main
2333 <
2841 >      program main
2842   #ifndef __GNUC__
2843         choke me
2844   #endif
2845  
2846 < end program main
2339 <
2846 >      end
2847   _ACEOF
2848   rm -f conftest.$ac_objext
2849 < if { (eval echo "$as_me:2342: \"$ac_compile\"") >&5
2850 <  (eval $ac_compile) 2>&5
2849 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 >  (eval $ac_compile) 2>conftest.er1
2851    ac_status=$?
2852 <  echo "$as_me:2345: \$? = $ac_status" >&5
2852 >  grep -v '^ *+' conftest.er1 >conftest.err
2853 >  rm -f conftest.er1
2854 >  cat conftest.err >&5
2855 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856    (exit $ac_status); } &&
2857 <         { ac_try='test -s conftest.$ac_objext'
2858 <  { (eval echo "$as_me:2348: \"$ac_try\"") >&5
2857 >         { ac_try='test -z "$ac_fc_werror_flag"
2858 >                         || test ! -s conftest.err'
2859 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860    (eval $ac_try) 2>&5
2861    ac_status=$?
2862 <  echo "$as_me:2351: \$? = $ac_status" >&5
2862 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 >  (exit $ac_status); }; } &&
2864 >         { ac_try='test -s conftest.$ac_objext'
2865 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 >  (eval $ac_try) 2>&5
2867 >  ac_status=$?
2868 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869    (exit $ac_status); }; }; then
2870    ac_compiler_gnu=yes
2871   else
2872    echo "$as_me: failed program was:" >&5
2873 < cat conftest.$ac_ext >&5
2873 > sed 's/^/| /' conftest.$ac_ext >&5
2874 >
2875   ac_compiler_gnu=no
2876   fi
2877 < rm -f conftest.$ac_objext conftest.$ac_ext
2878 < ac_cv_f90_compiler_gnu=$ac_compiler_gnu
2877 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2878 > ac_cv_fc_compiler_gnu=$ac_compiler_gnu
2879  
2880   fi
2881 < echo "$as_me:2363: result: $ac_cv_f90_compiler_gnu" >&5
2882 < echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
2881 > echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
2882 > echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
2883   ac_ext=$ac_save_ext
2884 < G95=`test $ac_compiler_gnu = yes && echo yes`
2885 < ac_ext=c
2886 < ac_cpp='$CPP $CPPFLAGS'
2887 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 > ac_test_FFLAGS=${FCFLAGS+set}
2885 > ac_save_FFLAGS=$FCFLAGS
2886 > FCFLAGS=
2887 > echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
2888 > echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
2889 > if test "${ac_cv_prog_fc_g+set}" = set; then
2890 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2891 > else
2892 >  FCFLAGS=-g
2893 > cat >conftest.$ac_ext <<_ACEOF
2894 >      program main
2895  
2896 < # Try to determine native compiler flags that allow us to use F90 suffix
2374 < # for preprocessed f90 source.
2375 <
2376 < if test "$ac_test_PREPFLAG" != "set"; then
2377 <  PREPFLAG=""
2378 <  case "${host_cpu}-${host_os}" in
2379 <
2380 <  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
2381 <                    PREPFLAG="-fpp1 "
2382 <                fi;;
2383 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
2384 <                    PREPFLAG="-qsuffix=cpp=F90 "
2385 <                fi;;
2386 <  *darwin*)
2387 <        if test "$F90" = f90 -o "$F90" = xlf90; then
2388 <                PREPFLAG="-qsuffix=cpp=F90 "
2389 <        fi;;
2390 <  esac
2391 <
2392 <  if test -z "$PREPFLAG"; then
2393 <        { echo "$as_me:2393: WARNING: \"Using empty PREPFLAG\"" >&5
2394 < echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
2395 <        PREPFLAG=""
2396 <  fi
2397 <
2398 <  echo "$as_me:2398: checking to make sure F90 preprocessor flag works" >&5
2399 < echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
2400 <
2401 <  ac_ext=f90
2402 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2403 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2405 <
2406 <  ac_save_ext=$ac_ext
2407 <  ac_ext=F90
2408 <  ac_save_F90FLAGS=$F90FLAGS
2409 <
2410 <  if test "$PREPFLAG"; then
2411 <  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
2412 < fi
2413 <
2414 <    cat >conftest.$ac_ext <<_ACEOF
2415 <
2416 < program main
2417 <
2418 <  integer :: i
2419 <  i = 1
2420 <
2421 < end program main
2422 <
2896 >      end
2897   _ACEOF
2898   rm -f conftest.$ac_objext
2899 < if { (eval echo "$as_me:2425: \"$ac_compile\"") >&5
2900 <  (eval $ac_compile) 2>&5
2899 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 >  (eval $ac_compile) 2>conftest.er1
2901    ac_status=$?
2902 <  echo "$as_me:2428: \$? = $ac_status" >&5
2902 >  grep -v '^ *+' conftest.er1 >conftest.err
2903 >  rm -f conftest.er1
2904 >  cat conftest.err >&5
2905 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906    (exit $ac_status); } &&
2907 <         { ac_try='test -s conftest.$ac_objext'
2908 <  { (eval echo "$as_me:2431: \"$ac_try\"") >&5
2907 >         { ac_try='test -z "$ac_fc_werror_flag"
2908 >                         || test ! -s conftest.err'
2909 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910    (eval $ac_try) 2>&5
2911    ac_status=$?
2912 <  echo "$as_me:2434: \$? = $ac_status" >&5
2912 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 >  (exit $ac_status); }; } &&
2914 >         { ac_try='test -s conftest.$ac_objext'
2915 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 >  (eval $ac_try) 2>&5
2917 >  ac_status=$?
2918 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919    (exit $ac_status); }; }; then
2920 <  prepflagworks=1
2920 >  ac_cv_prog_fc_g=yes
2921   else
2922    echo "$as_me: failed program was:" >&5
2923 < cat conftest.$ac_ext >&5
2924 < prepflagworks=0
2923 > sed 's/^/| /' conftest.$ac_ext >&5
2924 >
2925 > ac_cv_prog_fc_g=no
2926   fi
2927 < rm -f conftest.$ac_objext conftest.$ac_ext
2927 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928  
2929 <  F90FLAGS=$ac_save_F90FLAGS
2930 <  ac_ext=$ac_save_ext
2931 <  ac_ext=c
2929 > fi
2930 > echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
2931 > echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
2932 > if test "$ac_test_FFLAGS" = set; then
2933 >  FCFLAGS=$ac_save_FFLAGS
2934 > elif test $ac_cv_prog_fc_g = yes; then
2935 >  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
2936 >    FCFLAGS="-g -O2"
2937 >  else
2938 >    FCFLAGS="-g"
2939 >  fi
2940 > else
2941 >  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
2942 >    FCFLAGS="-O2"
2943 >  else
2944 >    FCFLAGS=
2945 >  fi
2946 > fi
2947 >
2948 > ac_ext=c
2949   ac_cpp='$CPP $CPPFLAGS'
2950   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953  
2954 <  if test "$prepflagworks" = 1; then
2955 <    echo "$as_me:2453: result: yes" >&5
2956 < echo "${ECHO_T}yes" >&6
2957 <
2954 > ac_ext=c
2955 > ac_cpp='$CPP $CPPFLAGS'
2956 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2960 > echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2961 > # On Suns, sometimes $CPP names a directory.
2962 > if test -n "$CPP" && test -d "$CPP"; then
2963 >  CPP=
2964 > fi
2965 > if test -z "$CPP"; then
2966 >  if test "${ac_cv_prog_CPP+set}" = set; then
2967 >  echo $ECHO_N "(cached) $ECHO_C" >&6
2968 > else
2969 >      # Double quotes because CPP needs to be expanded
2970 >    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2971 >    do
2972 >      ac_preproc_ok=false
2973 > for ac_c_preproc_warn_flag in '' yes
2974 > do
2975 >  # Use a header file that comes with gcc, so configuring glibc
2976 >  # with a fresh cross-compiler works.
2977 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 >  # <limits.h> exists even on freestanding compilers.
2979 >  # On the NeXT, cc -E runs the code through the compiler's parser,
2980 >  # not just through cpp. "Syntax error" is here to catch this case.
2981 >  cat >conftest.$ac_ext <<_ACEOF
2982 > /* confdefs.h.  */
2983 > _ACEOF
2984 > cat confdefs.h >>conftest.$ac_ext
2985 > cat >>conftest.$ac_ext <<_ACEOF
2986 > /* end confdefs.h.  */
2987 > #ifdef __STDC__
2988 > # include <limits.h>
2989 > #else
2990 > # include <assert.h>
2991 > #endif
2992 >                     Syntax error
2993 > _ACEOF
2994 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 >  ac_status=$?
2997 >  grep -v '^ *+' conftest.er1 >conftest.err
2998 >  rm -f conftest.er1
2999 >  cat conftest.err >&5
3000 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 >  (exit $ac_status); } >/dev/null; then
3002 >  if test -s conftest.err; then
3003 >    ac_cpp_err=$ac_c_preproc_warn_flag
3004 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005    else
3006 <    echo "$as_me:2457: result: no" >&5
2458 < echo "${ECHO_T}no" >&6
2459 <    { { echo "$as_me:2459: error: Can't figure out working Fortran90 preprocessor flag" >&5
2460 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
2461 <   { (exit 1); exit 1; }; }
3006 >    ac_cpp_err=
3007    fi
3008 + else
3009 +  ac_cpp_err=yes
3010   fi
3011 + if test -z "$ac_cpp_err"; then
3012 +  :
3013 + else
3014 +  echo "$as_me: failed program was:" >&5
3015 + sed 's/^/| /' conftest.$ac_ext >&5
3016  
3017 < # Try to determine native compiler flags that allow us to use F90 suffix
3018 < # for preprocessed f90 source with -D type defines
3017 >  # Broken: fails on valid input.
3018 > continue
3019 > fi
3020 > rm -f conftest.err conftest.$ac_ext
3021  
3022 < if test "$ac_test_PREPDEFFLAG" != "set"; then
3023 <  PREPDEFFLAG=""
3024 <  case "${host_cpu}-${host_os}" in
3025 <
3026 <  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3027 <                    PREPDEFFLAG=" "
3028 <                fi;;
3029 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3030 <                    PREPDEFFLAG="-WF,"
3031 <                fi;;
3032 <  *darwin*)
3033 <        if test "$F90" = f90 -o "$F90" = xlf90; then
3034 <                PREPDEFFLAG="-WF,"
3035 <        fi;;
3036 <  esac
3037 <
3038 <  if test -z "$PREPDEFFLAG"; then
3039 <        { echo "$as_me:2485: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3040 < echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3041 <        PREPDEFFLAG=" "
3022 >  # OK, works on sane cases.  Now check whether non-existent headers
3023 >  # can be detected and how.
3024 >  cat >conftest.$ac_ext <<_ACEOF
3025 > /* confdefs.h.  */
3026 > _ACEOF
3027 > cat confdefs.h >>conftest.$ac_ext
3028 > cat >>conftest.$ac_ext <<_ACEOF
3029 > /* end confdefs.h.  */
3030 > #include <ac_nonexistent.h>
3031 > _ACEOF
3032 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 >  ac_status=$?
3035 >  grep -v '^ *+' conftest.er1 >conftest.err
3036 >  rm -f conftest.er1
3037 >  cat conftest.err >&5
3038 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 >  (exit $ac_status); } >/dev/null; then
3040 >  if test -s conftest.err; then
3041 >    ac_cpp_err=$ac_c_preproc_warn_flag
3042 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3043 >  else
3044 >    ac_cpp_err=
3045    fi
3046 + else
3047 +  ac_cpp_err=yes
3048 + fi
3049 + if test -z "$ac_cpp_err"; then
3050 +  # Broken: success on invalid input.
3051 + continue
3052 + else
3053 +  echo "$as_me: failed program was:" >&5
3054 + sed 's/^/| /' conftest.$ac_ext >&5
3055  
3056 <  echo "$as_me:2490: checking to make sure F90 preprocessor define flag works" >&5
3057 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3056 >  # Passes both tests.
3057 > ac_preproc_ok=:
3058 > break
3059 > fi
3060 > rm -f conftest.err conftest.$ac_ext
3061  
3062 <  ac_ext=f90
3063 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3064 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3066 <
2498 <  ac_save_ext=$ac_ext
2499 <  ac_ext=F90
2500 <  ac_save_F90FLAGS=$F90FLAGS
2501 <
2502 <  if test "$PREPDEFFLAG"; then
2503 <  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3062 > done
3063 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 > rm -f conftest.err conftest.$ac_ext
3065 > if $ac_preproc_ok; then
3066 >  break
3067   fi
3068  
3069 <    cat >conftest.$ac_ext <<_ACEOF
3069 >    done
3070 >    ac_cv_prog_CPP=$CPP
3071  
3072 < program main
3073 <
3074 <  integer :: i
3075 < #ifdef TEST
3076 <  i = 1
3072 > fi
3073 >  CPP=$ac_cv_prog_CPP
3074 > else
3075 >  ac_cv_prog_CPP=$CPP
3076 > fi
3077 > echo "$as_me:$LINENO: result: $CPP" >&5
3078 > echo "${ECHO_T}$CPP" >&6
3079 > ac_preproc_ok=false
3080 > for ac_c_preproc_warn_flag in '' yes
3081 > do
3082 >  # Use a header file that comes with gcc, so configuring glibc
3083 >  # with a fresh cross-compiler works.
3084 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 >  # <limits.h> exists even on freestanding compilers.
3086 >  # On the NeXT, cc -E runs the code through the compiler's parser,
3087 >  # not just through cpp. "Syntax error" is here to catch this case.
3088 >  cat >conftest.$ac_ext <<_ACEOF
3089 > /* confdefs.h.  */
3090 > _ACEOF
3091 > cat confdefs.h >>conftest.$ac_ext
3092 > cat >>conftest.$ac_ext <<_ACEOF
3093 > /* end confdefs.h.  */
3094 > #ifdef __STDC__
3095 > # include <limits.h>
3096   #else
3097 <  choke me
3097 > # include <assert.h>
3098   #endif
3099 +                     Syntax error
3100 + _ACEOF
3101 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 +  ac_status=$?
3104 +  grep -v '^ *+' conftest.er1 >conftest.err
3105 +  rm -f conftest.er1
3106 +  cat conftest.err >&5
3107 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 +  (exit $ac_status); } >/dev/null; then
3109 +  if test -s conftest.err; then
3110 +    ac_cpp_err=$ac_c_preproc_warn_flag
3111 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112 +  else
3113 +    ac_cpp_err=
3114 +  fi
3115 + else
3116 +  ac_cpp_err=yes
3117 + fi
3118 + if test -z "$ac_cpp_err"; then
3119 +  :
3120 + else
3121 +  echo "$as_me: failed program was:" >&5
3122 + sed 's/^/| /' conftest.$ac_ext >&5
3123  
3124 < end program main
3124 >  # Broken: fails on valid input.
3125 > continue
3126 > fi
3127 > rm -f conftest.err conftest.$ac_ext
3128  
3129 +  # OK, works on sane cases.  Now check whether non-existent headers
3130 +  # can be detected and how.
3131 +  cat >conftest.$ac_ext <<_ACEOF
3132 + /* confdefs.h.  */
3133   _ACEOF
3134 < rm -f conftest.$ac_objext
3135 < if { (eval echo "$as_me:2521: \"$ac_compile\"") >&5
3136 <  (eval $ac_compile) 2>&5
3134 > cat confdefs.h >>conftest.$ac_ext
3135 > cat >>conftest.$ac_ext <<_ACEOF
3136 > /* end confdefs.h.  */
3137 > #include <ac_nonexistent.h>
3138 > _ACEOF
3139 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141    ac_status=$?
3142 <  echo "$as_me:2524: \$? = $ac_status" >&5
3143 <  (exit $ac_status); } &&
3144 <         { ac_try='test -s conftest.$ac_objext'
3145 <  { (eval echo "$as_me:2527: \"$ac_try\"") >&5
3146 <  (eval $ac_try) 2>&5
3147 <  ac_status=$?
3148 <  echo "$as_me:2530: \$? = $ac_status" >&5
3149 <  (exit $ac_status); }; }; then
3150 <  prepdefflagworks=1
3142 >  grep -v '^ *+' conftest.er1 >conftest.err
3143 >  rm -f conftest.er1
3144 >  cat conftest.err >&5
3145 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 >  (exit $ac_status); } >/dev/null; then
3147 >  if test -s conftest.err; then
3148 >    ac_cpp_err=$ac_c_preproc_warn_flag
3149 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 >  else
3151 >    ac_cpp_err=
3152 >  fi
3153   else
3154 +  ac_cpp_err=yes
3155 + fi
3156 + if test -z "$ac_cpp_err"; then
3157 +  # Broken: success on invalid input.
3158 + continue
3159 + else
3160    echo "$as_me: failed program was:" >&5
3161 < cat conftest.$ac_ext >&5
3162 < prepdefflagworks=0
3161 > sed 's/^/| /' conftest.$ac_ext >&5
3162 >
3163 >  # Passes both tests.
3164 > ac_preproc_ok=:
3165 > break
3166   fi
3167 < rm -f conftest.$ac_objext conftest.$ac_ext
3167 > rm -f conftest.err conftest.$ac_ext
3168  
3169 <  F90FLAGS=$ac_save_F90FLAGS
3170 <  ac_ext=$ac_save_ext
3171 <  ac_ext=c
3169 > done
3170 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3171 > rm -f conftest.err conftest.$ac_ext
3172 > if $ac_preproc_ok; then
3173 >  :
3174 > else
3175 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3176 > See \`config.log' for more details." >&5
3177 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3178 > See \`config.log' for more details." >&2;}
3179 >   { (exit 1); exit 1; }; }
3180 > fi
3181 >
3182 > ac_ext=c
3183   ac_cpp='$CPP $CPPFLAGS'
3184   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187  
3188 <  if test "$prepdefflagworks" = 1; then
3189 <    echo "$as_me:2549: result: yes" >&5
3190 < echo "${ECHO_T}yes" >&6
3191 <
3192 <  else
3193 <    echo "$as_me:2553: result: no" >&5
3194 < echo "${ECHO_T}no" >&6
3195 <    { { echo "$as_me:2555: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3196 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
2557 <   { (exit 1); exit 1; }; }
2558 <  fi
3188 > echo "$as_me:$LINENO: checking for egrep" >&5
3189 > echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 > if test "${ac_cv_prog_egrep+set}" = set; then
3191 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3192 > else
3193 >  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194 >    then ac_cv_prog_egrep='grep -E'
3195 >    else ac_cv_prog_egrep='egrep'
3196 >    fi
3197   fi
3198 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200 + EGREP=$ac_cv_prog_egrep
3201  
2561 ac_ext=f90
2562 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2563 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3202  
3203 < ac_ext=f90
3204 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3205 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3207 < echo "$as_me:2570: checking how to get verbose linking output from $F90" >&5
3208 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
2572 < if test "${ac_cv_prog_f90_v+set}" = set; then
2573 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3203 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
3204 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3205 > LN_S=$as_ln_s
3206 > if test "$LN_S" = "ln -s"; then
3207 >  echo "$as_me:$LINENO: result: yes" >&5
3208 > echo "${ECHO_T}yes" >&6
3209   else
3210 +  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3211 + echo "${ECHO_T}no, using $LN_S" >&6
3212 + fi
3213  
3214 < cat >conftest.$ac_ext <<_ACEOF
3215 <
3216 < program main
3217 <
3218 < end program main
3219 <
3220 < _ACEOF
3221 < rm -f conftest.$ac_objext
3222 < if { (eval echo "$as_me:2584: \"$ac_compile\"") >&5
3223 <  (eval $ac_compile) 2>&5
3224 <  ac_status=$?
3225 <  echo "$as_me:2587: \$? = $ac_status" >&5
3226 <  (exit $ac_status); } &&
3227 <         { ac_try='test -s conftest.$ac_objext'
3228 <  { (eval echo "$as_me:2590: \"$ac_try\"") >&5
3229 <  (eval $ac_try) 2>&5
3230 <  ac_status=$?
3231 <  echo "$as_me:2593: \$? = $ac_status" >&5
3232 <  (exit $ac_status); }; }; then
3233 <  ac_cv_prog_f90_v=
3234 < # Try some options frequently used verbose output
3235 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3236 <  ac_ext=f90
3237 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3238 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3214 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3215 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3216 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3217 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3218 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3219 > else
3220 >  cat >conftest.make <<\_ACEOF
3221 > all:
3222 >        @echo 'ac_maketemp="$(MAKE)"'
3223 > _ACEOF
3224 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3225 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3226 > if test -n "$ac_maketemp"; then
3227 >  eval ac_cv_prog_make_${ac_make}_set=yes
3228 > else
3229 >  eval ac_cv_prog_make_${ac_make}_set=no
3230 > fi
3231 > rm -f conftest.make
3232 > fi
3233 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3234 >  echo "$as_me:$LINENO: result: yes" >&5
3235 > echo "${ECHO_T}yes" >&6
3236 >  SET_MAKE=
3237 > else
3238 >  echo "$as_me:$LINENO: result: no" >&5
3239 > echo "${ECHO_T}no" >&6
3240 >  SET_MAKE="MAKE=${MAKE-make}"
3241 > fi
3242  
3243 < cat >conftest.$ac_ext <<_ACEOF
3243 > if test -n "$ac_tool_prefix"; then
3244 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3245 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3246 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 > if test "${ac_cv_prog_RANLIB+set}" = set; then
3249 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3250 > else
3251 >  if test -n "$RANLIB"; then
3252 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3253 > else
3254 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 > for as_dir in $PATH
3256 > do
3257 >  IFS=$as_save_IFS
3258 >  test -z "$as_dir" && as_dir=.
3259 >  for ac_exec_ext in '' $ac_executable_extensions; do
3260 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3262 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 >    break 2
3264 >  fi
3265 > done
3266 > done
3267  
3268 < program main
3268 > fi
3269 > fi
3270 > RANLIB=$ac_cv_prog_RANLIB
3271 > if test -n "$RANLIB"; then
3272 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
3273 > echo "${ECHO_T}$RANLIB" >&6
3274 > else
3275 >  echo "$as_me:$LINENO: result: no" >&5
3276 > echo "${ECHO_T}no" >&6
3277 > fi
3278  
3279 < end program main
3279 > fi
3280 > if test -z "$ac_cv_prog_RANLIB"; then
3281 >  ac_ct_RANLIB=$RANLIB
3282 >  # Extract the first word of "ranlib", so it can be a program name with args.
3283 > set dummy ranlib; ac_word=$2
3284 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3287 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3288 > else
3289 >  if test -n "$ac_ct_RANLIB"; then
3290 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3291 > else
3292 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 > for as_dir in $PATH
3294 > do
3295 >  IFS=$as_save_IFS
3296 >  test -z "$as_dir" && as_dir=.
3297 >  for ac_exec_ext in '' $ac_executable_extensions; do
3298 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
3300 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 >    break 2
3302 >  fi
3303 > done
3304 > done
3305  
3306 < _ACEOF
3306 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3307 > fi
3308 > fi
3309 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3310 > if test -n "$ac_ct_RANLIB"; then
3311 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3312 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
3313 > else
3314 >  echo "$as_me:$LINENO: result: no" >&5
3315 > echo "${ECHO_T}no" >&6
3316 > fi
3317  
3318 < # Compile and link our simple test program by passing a flag (argument
3319 < # 1 to this macro) to the Fortran 90 compiler in order to get
3320 < # "verbose" output that we can then parse for the Fortran 90 linker
3321 < # flags.
2615 < ac_save_F90FLAGS=$F90FLAGS
2616 < F90FLAGS="$F90FLAGS $ac_verb"
3318 >  RANLIB=$ac_ct_RANLIB
3319 > else
3320 >  RANLIB="$ac_cv_prog_RANLIB"
3321 > fi
3322  
2618 (eval echo $as_me:2618: \"$ac_link\") >&5
2619 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2620 echo "$ac_f90_v_output" >&5
2621 F90FLAGS=$ac_save_F90FLAGS
3323  
3324 < rm -f conftest.*
3325 < ac_ext=f90
3326 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3327 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3324 >   # Extract the first word of "perl", so it can be a program name with args.
3325 > set dummy perl; ac_word=$2
3326 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3327 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328 > if test "${ac_cv_path_PERLINTERP+set}" = set; then
3329 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3330 > else
3331 >  case $PERLINTERP in
3332 >  [\\/]* | ?:[\\/]*)
3333 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
3334 >  ;;
3335 >  *)
3336 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 > for as_dir in $PATH
3338 > do
3339 >  IFS=$as_save_IFS
3340 >  test -z "$as_dir" && as_dir=.
3341 >  for ac_exec_ext in '' $ac_executable_extensions; do
3342 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
3344 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 >    break 2
3346 >  fi
3347 > done
3348 > done
3349  
3350 < # If we are using xlf then replace all the commas with spaces.
3351 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3352 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3350 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
3351 >  ;;
3352 > esac
3353   fi
3354 + PERLINTERP=$ac_cv_path_PERLINTERP
3355  
3356 < # If we are using Cray Fortran then delete quotes.
3357 < # Use "\"" instead of '"' for font-lock-mode.
3358 < # FIXME: a more general fix for quoted arguments with spaces?
3359 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3360 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3356 > if test -n "$PERLINTERP"; then
3357 >  echo "$as_me:$LINENO: result: $PERLINTERP" >&5
3358 > echo "${ECHO_T}$PERLINTERP" >&6
3359 > else
3360 >  echo "$as_me:$LINENO: result: no" >&5
3361 > echo "${ECHO_T}no" >&6
3362 > fi
3363 >
3364 >   ac_cv_path_perlinterp="$PERLINTERP"
3365 >   _sHpB='#!'
3366 >
3367 >
3368 > # Check whether --with-perl-shebang or --without-perl-shebang was given.
3369 > if test "${with_perl_shebang+set}" = set; then
3370 >  withval="$with_perl_shebang"
3371 >  opt_perl_shebang="$withval"
3372 > else
3373 >                opt_perl_shebang="not_set"
3374 > fi;
3375 >   echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
3376 > echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
3377 > if test "${ax_cv_opt_perl_shebang+set}" = set; then
3378 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3379 > else
3380 >   case "$opt_perl_shebang" in
3381 >                      not_set  ) ax_cv_opt_perl_shebang=''
3382 >                               ;;
3383 >                         *     )
3384 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
3385 >                    esac
3386 >
3387 > fi
3388 > echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
3389 > echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
3390 >   if test "A$ax_cv_opt_perl_shebang" != "A"
3391 >     then
3392 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
3393 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
3394 >              { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
3395 > echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
3396 >
3397 > # Automatic detection of sharpbang formula starts here
3398 >     else
3399 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
3400 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
3401 >   echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
3402 > echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
3403 > if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
3404 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3405 > else
3406 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
3407 >        if test "x$_somian_kspb_perl" == x
3408 >          then _somian_ksbp_warn_empty='durnit'
3409 >          else
3410 >          case "A$_somian_kspb_perl" in
3411 >                 A#!*perl* )
3412 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
3413 >                        ;;
3414 >                     A*    )  _somian_ksbp_warn_defau='trouble'
3415 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
3416 >          esac
3417 >        fi
3418 >
3419 > fi
3420 > echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
3421 > echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
3422 > # The above prints Checking ... result message to user.
3423 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
3424 >
3425 >    if test A${_somian_ksbp_warn_empty+set} == Aset
3426 >      then   { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
3427 > echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
3428 >    fi
3429 > # Inform user after printing result value
3430 >    if test A${_somian_ksbp_warn_defau+set} == Aset
3431 >      then { echo "$as_me:$LINENO: Maybe Not good -" >&5
3432 > echo "$as_me: Maybe Not good -" >&6;}
3433 >           { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
3434 > echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
3435 >      else { echo "$as_me:$LINENO: OK Good result - " >&5
3436 > echo "$as_me: OK Good result - " >&6;}
3437 >           { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
3438 > echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
3439 >    fi
3440 >  fi
3441 >
3442 > # Find a good install program.  We prefer a C program (faster),
3443 > # so one script is as good as another.  But avoid the broken or
3444 > # incompatible versions:
3445 > # SysV /etc/install, /usr/sbin/install
3446 > # SunOS /usr/etc/install
3447 > # IRIX /sbin/install
3448 > # AIX /bin/install
3449 > # AmigaOS /C/install, which installs bootblocks on floppy discs
3450 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3451 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3452 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3453 > # OS/2's system install, which has a completely different semantic
3454 > # ./install, which can be erroneously created by make from ./install.sh.
3455 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3456 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3457 > if test -z "$INSTALL"; then
3458 > if test "${ac_cv_path_install+set}" = set; then
3459 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3460 > else
3461 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 > for as_dir in $PATH
3463 > do
3464 >  IFS=$as_save_IFS
3465 >  test -z "$as_dir" && as_dir=.
3466 >  # Account for people who put trailing slashes in PATH elements.
3467 > case $as_dir/ in
3468 >  ./ | .// | /cC/* | \
3469 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3470 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3471 >  /usr/ucb/* ) ;;
3472 >  *)
3473 >    # OSF1 and SCO ODT 3.0 have their own names for install.
3474 >    # Don't use installbsd from OSF since it installs stuff as root
3475 >    # by default.
3476 >    for ac_prog in ginstall scoinst install; do
3477 >      for ac_exec_ext in '' $ac_executable_extensions; do
3478 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3479 >          if test $ac_prog = install &&
3480 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3481 >            # AIX install.  It has an incompatible calling convention.
3482 >            :
3483 >          elif test $ac_prog = install &&
3484 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3485 >            # program-specific install script used by HP pwplus--don't use.
3486 >            :
3487 >          else
3488 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3489 >            break 3
3490 >          fi
3491 >        fi
3492 >      done
3493 >    done
3494 >    ;;
3495 > esac
3496 > done
3497 >
3498 >
3499 > fi
3500 >  if test "${ac_cv_path_install+set}" = set; then
3501 >    INSTALL=$ac_cv_path_install
3502 >  else
3503 >    # As a last resort, use the slow shell script.  We don't cache a
3504 >    # path for INSTALL within a source directory, because that will
3505 >    # break other packages using the cache if that directory is
3506 >    # removed, or if the path is relative.
3507 >    INSTALL=$ac_install_sh
3508 >  fi
3509 > fi
3510 > echo "$as_me:$LINENO: result: $INSTALL" >&5
3511 > echo "${ECHO_T}$INSTALL" >&6
3512 >
3513 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3514 > # It thinks the first close brace ends the variable substitution.
3515 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3516 >
3517 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3518 >
3519 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3520 >
3521 > case "x$INSTALL" in
3522 >   x/*) ;;
3523 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
3524 > esac
3525 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
3526 > # Extract the first word of "ar", so it can be a program name with args.
3527 > set dummy ar; ac_word=$2
3528 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 > if test "${ac_cv_prog_AR+set}" = set; then
3531 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3532 > else
3533 >  if test -n "$AR"; then
3534 >  ac_cv_prog_AR="$AR" # Let the user override the test.
3535 > else
3536 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 > for as_dir in $PATH
3538 > do
3539 >  IFS=$as_save_IFS
3540 >  test -z "$as_dir" && as_dir=.
3541 >  for ac_exec_ext in '' $ac_executable_extensions; do
3542 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 >    ac_cv_prog_AR="ar"
3544 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 >    break 2
3546 >  fi
3547 > done
3548 > done
3549 >
3550 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
3551 > fi
3552 > fi
3553 > AR=$ac_cv_prog_AR
3554 > if test -n "$AR"; then
3555 >  echo "$as_me:$LINENO: result: $AR" >&5
3556 > echo "${ECHO_T}$AR" >&6
3557 > else
3558 >  echo "$as_me:$LINENO: result: no" >&5
3559 > echo "${ECHO_T}no" >&6
3560 > fi
3561 >
3562 > if test "$AR" = "NONE"; then
3563 >  cat >confcache <<\_ACEOF
3564 > # This file is a shell script that caches the results of configure
3565 > # tests run on this system so they can be shared between configure
3566 > # scripts and configure runs, see configure's option --config-cache.
3567 > # It is not useful on other systems.  If it contains results you don't
3568 > # want to keep, you may remove or edit it.
3569 > #
3570 > # config.status only pays attention to the cache file if you give it
3571 > # the --recheck option to rerun configure.
3572 > #
3573 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
3574 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
3575 > # following values.
3576 >
3577 > _ACEOF
3578 >
3579 > # The following way of writing the cache mishandles newlines in values,
3580 > # but we know of no workaround that is simple, portable, and efficient.
3581 > # So, don't put newlines in cache variables' values.
3582 > # Ultrix sh set writes to stderr and can't be redirected directly,
3583 > # and sets the high bit in the cache file unless we assign to the vars.
3584 > {
3585 >  (set) 2>&1 |
3586 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3587 >    *ac_space=\ *)
3588 >      # `set' does not quote correctly, so add quotes (double-quote
3589 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
3590 >      sed -n \
3591 >        "s/'/'\\\\''/g;
3592 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3593 >      ;;
3594 >    *)
3595 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
3596 >      sed -n \
3597 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3598 >      ;;
3599 >    esac;
3600 > } |
3601 >  sed '
3602 >     t clear
3603 >     : clear
3604 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3605 >     t end
3606 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3607 >     : end' >>confcache
3608 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
3609 >  if test -w $cache_file; then
3610 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3611 >    cat confcache >$cache_file
3612 >  else
3613 >    echo "not updating unwritable cache $cache_file"
3614 >  fi
3615 > fi
3616 > rm -f confcache
3617 >  exit 1
3618 > fi
3619 > # Extract the first word of "ps", so it can be a program name with args.
3620 > set dummy ps; ac_word=$2
3621 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3622 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623 > if test "${ac_cv_path_PS+set}" = set; then
3624 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3625 > else
3626 >  case $PS in
3627 >  [\\/]* | ?:[\\/]*)
3628 >  ac_cv_path_PS="$PS" # Let the user override the test with a path.
3629 >  ;;
3630 >  *)
3631 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 > for as_dir in $PATH
3633 > do
3634 >  IFS=$as_save_IFS
3635 >  test -z "$as_dir" && as_dir=.
3636 >  for ac_exec_ext in '' $ac_executable_extensions; do
3637 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 >    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
3639 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 >    break 2
3641 >  fi
3642 > done
3643 > done
3644 >
3645 >  ;;
3646 > esac
3647 > fi
3648 > PS=$ac_cv_path_PS
3649 >
3650 > if test -n "$PS"; then
3651 >  echo "$as_me:$LINENO: result: $PS" >&5
3652 > echo "${ECHO_T}$PS" >&6
3653 > else
3654 >  echo "$as_me:$LINENO: result: no" >&5
3655 > echo "${ECHO_T}no" >&6
3656 > fi
3657 >
3658 > echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
3659 > echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
3660 > if test "${ac_cv_prog_ps_syntax+set}" = set; then
3661 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3662 > else
3663 >
3664 >        if $PS ax -o rss > /dev/null 2>&1; then
3665 >                ac_cv_prog_ps_ax=yes
3666 >        else
3667 >                ac_cv_prog_ps_ax=no
3668 >        fi
3669 >        if $PS -ef -o rss > /dev/null 2>&1; then
3670 >                ac_cv_prog_ps_ef=yes
3671 >        else
3672 >                ac_cv_prog_ps_ef=no
3673 >        fi
3674 >        if test "$ac_cv_prog_ps_ax" = yes; then
3675 >                ac_cv_prog_ps_syntax=BSD
3676 >        else
3677 >                if test "$ac_cv_prog_ps_ef" = yes; then
3678 >                        ac_cv_prog_ps_syntax=POSIX
3679 >                else
3680 >                        { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
3681 > echo "$as_me: error: Could not determine ps syntax" >&2;}
3682 >   { (exit 1); exit 1; }; }
3683 >                fi
3684 >        fi
3685 >
3686 > fi
3687 > echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
3688 > echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
3689 >
3690 > cat >>confdefs.h <<_ACEOF
3691 > #define PSCOMMAND $PS
3692 > _ACEOF
3693 >
3694 > if test "$ac_cv_prog_ps_syntax" = BSD; then
3695 >
3696 > cat >>confdefs.h <<\_ACEOF
3697 > #define PSTYPE_IS_BSD 1
3698 > _ACEOF
3699 >
3700 > else
3701 >   if test "$ac_cv_prog_ps_syntax" = POSIX; then
3702 >
3703 > cat >>confdefs.h <<\_ACEOF
3704 > #define PSTYPE_IS_POSIX 1
3705 > _ACEOF
3706 >
3707 >   else
3708 >       { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
3709 > echo "$as_me: error: Unknown ps syntax type!" >&2;}
3710 >   { (exit 1); exit 1; }; }
3711 >   fi
3712   fi
3713 +
3714 + ac_ext=${FC_SRCEXT-f}
3715 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3716 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
3717 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3718 +
3719 +
3720 + echo "$as_me:$LINENO: checking for Fortran flag to compile .F90 files" >&5
3721 + echo $ECHO_N "checking for Fortran flag to compile .F90 files... $ECHO_C" >&6
3722 + if test "${ac_cv_fc_srcext_F90+set}" = set; then
3723 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3724 + else
3725 +  ac_ext=F90
3726 + ac_fc_srcext_FCFLAGS_SRCEXT_save=$FCFLAGS_SRCEXT
3727 + FCFLAGS_SRCEXT=""
3728 + ac_cv_fc_srcext_F90=unknown
3729 + for ac_flag in none -qsuffix=f=F90 -Tf; do
3730 +  test "x$ac_flag" != xnone && FCFLAGS_SRCEXT="$ac_flag"
3731 +  cat >conftest.$ac_ext <<_ACEOF
3732 +      program main
3733 +
3734 +      end
3735 + _ACEOF
3736 + rm -f conftest.$ac_objext
3737 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 +  (eval $ac_compile) 2>conftest.er1
3739 +  ac_status=$?
3740 +  grep -v '^ *+' conftest.er1 >conftest.err
3741 +  rm -f conftest.er1
3742 +  cat conftest.err >&5
3743 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 +  (exit $ac_status); } &&
3745 +         { ac_try='test -z "$ac_fc_werror_flag"
3746 +                         || test ! -s conftest.err'
3747 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 +  (eval $ac_try) 2>&5
3749 +  ac_status=$?
3750 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 +  (exit $ac_status); }; } &&
3752 +         { ac_try='test -s conftest.$ac_objext'
3753 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 +  (eval $ac_try) 2>&5
3755 +  ac_status=$?
3756 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 +  (exit $ac_status); }; }; then
3758 +  ac_cv_fc_srcext_F90=$ac_flag; break
3759 + else
3760 +  echo "$as_me: failed program was:" >&5
3761 + sed 's/^/| /' conftest.$ac_ext >&5
3762 +
3763 + fi
3764 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 + done
3766 + rm -f conftest.$ac_objext conftest.F90
3767 + FCFLAGS_SRCEXT=$ac_fc_srcext_FCFLAGS_SRCEXT_save
3768 +
3769 + fi
3770 + echo "$as_me:$LINENO: result: $ac_cv_fc_srcext_F90" >&5
3771 + echo "${ECHO_T}$ac_cv_fc_srcext_F90" >&6
3772 + if test "x$ac_cv_fc_srcext_F90" = xunknown; then
3773 +  { { echo "$as_me:$LINENO: error: Fortran could not compile .F90 files" >&5
3774 + echo "$as_me: error: Fortran could not compile .F90 files" >&2;}
3775 +   { (exit 1); exit 1; }; }
3776 + else
3777 +  FC_SRCEXT=F90
3778 +  if test "x$ac_cv_fc_srcext_F90" = xnone; then
3779 +    FCFLAGS_SRCEXT=""
3780 +    FCFLAGS_F90=""
3781 +  else
3782 +    FCFLAGS_SRCEXT=$ac_cv_fc_srcext_F90
3783 +    FCFLAGS_F90=$ac_cv_fc_srcext_F90
3784 +  fi
3785 +
3786 +
3787 + fi
3788 +
3789 +
3790 +
3791 +
3792 +
3793 + # Try to determine native compiler flags that allow us to use F90 suffix
3794 + # for preprocessed f90 source.
3795 +
3796 + if test "$ac_test_PREPFLAG" != "set"; then
3797 +  PREPFLAG=""
3798 +  case "${host_cpu}-${host_os}" in
3799 +
3800 +  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
3801 +                    PREPFLAG="-fpp1 "
3802 +                fi;;
3803 +  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
3804 +                    PREPFLAG="-qsuffix=cpp=F90 "
3805 +                fi;;
3806 +  *darwin*)
3807 +        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
3808 +                PREPFLAG="-qsuffix=cpp=F90 "
3809 +        fi;;
3810 +  esac
3811 +
3812 +  if test -z "$PREPFLAG"; then
3813 +        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3814 + echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3815 +        PREPFLAG=""
3816 +  fi
3817 +
3818 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3819 + echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3820 +
3821 +
3822 +  ac_ext=${FC_SRCEXT-f}
3823 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3824 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
3825 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3826 +
3827 +  ac_save_ext=$ac_ext
3828 +  ac_ext=F90
3829 +  ac_save_FCFLAGS_SRCEXT=$FCFLAGS_SRCEXT
3830 +
3831 +  if test "$PREPFLAG"; then
3832 +  FCFLAGS_SRCEXT="${PREPFLAG}"
3833 + fi
3834 +
3835 +    cat >conftest.$ac_ext <<_ACEOF
3836 +
3837 +
3838 + program conftest
3839 +  integer :: i
3840 +  i = 1
3841 + end program conftest
3842 +
3843 + _ACEOF
3844 + rm -f conftest.$ac_objext
3845 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 +  (eval $ac_compile) 2>conftest.er1
3847 +  ac_status=$?
3848 +  grep -v '^ *+' conftest.er1 >conftest.err
3849 +  rm -f conftest.er1
3850 +  cat conftest.err >&5
3851 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 +  (exit $ac_status); } &&
3853 +         { ac_try='test -z "$ac_fc_werror_flag"
3854 +                         || test ! -s conftest.err'
3855 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 +  (eval $ac_try) 2>&5
3857 +  ac_status=$?
3858 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 +  (exit $ac_status); }; } &&
3860 +         { ac_try='test -s conftest.$ac_objext'
3861 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 +  (eval $ac_try) 2>&5
3863 +  ac_status=$?
3864 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 +  (exit $ac_status); }; }; then
3866 +  prepflagworks=1
3867 + else
3868 +  echo "$as_me: failed program was:" >&5
3869 + sed 's/^/| /' conftest.$ac_ext >&5
3870 +
3871 + prepflagworks=0
3872 + fi
3873 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3874 +
3875 +  FCFLAGS_SRCEXT=$ac_save_FCFLAGS_SRCEXT
3876 +  ac_ext=$ac_save_ext
3877 +  ac_ext=${FC_SRCEXT-f}
3878 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3879 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
3880 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3881 +
3882 +
3883 +  if test "$prepflagworks" = 1; then
3884 +    echo "$as_me:$LINENO: result: yes" >&5
3885 + echo "${ECHO_T}yes" >&6
3886 +    FCFLAGS_SRCEXT="${PREPFLAG}"
3887 +
3888 +  else
3889 +    echo "$as_me:$LINENO: result: no" >&5
3890 + echo "${ECHO_T}no" >&6
3891 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3892 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3893 +   { (exit 1); exit 1; }; }
3894 +  fi
3895 + fi
3896 +
3897 +
3898 +
3899 +
3900 +
3901 + # Try to determine native compiler flags that allow us to use F90 suffix
3902 + # for preprocessed f90 source with -D type defines
3903 +
3904 + if test "$ac_test_PREPDEFFLAG" != "set"; then
3905 +  PREPDEFFLAG=""
3906 +  case "${host_cpu}-${host_os}" in
3907 +
3908 +  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
3909 +                    PREPDEFFLAG=" "
3910 +                fi;;
3911 +  *aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
3912 +                    PREPDEFFLAG="-WF,"
3913 +                fi;;
3914 +  *darwin*)
3915 +        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
3916 +                PREPDEFFLAG="-WF,"
3917 +        fi;;
3918 +  esac
3919 +
3920 +  if test -z "$PREPDEFFLAG"; then
3921 +        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3922 + echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3923 +        PREPDEFFLAG=" "
3924 +  fi
3925 +
3926 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3927 + echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3928 +
3929 +
3930 +  ac_ext=${FC_SRCEXT-f}
3931 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3932 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
3933 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3934 +
3935 +  ac_save_ext=$ac_ext
3936 +  ac_ext=F90
3937 +  ac_save_FCFLAGS=$FCFLAGS
3938 +
3939 +  if test "$PREPDEFFLAG"; then
3940 +  FCFLAGS="${FCFLAGS} ${PREPDEFFLAG}-DTEST"
3941 + fi
3942 +
3943 +    cat >conftest.$ac_ext <<_ACEOF
3944 +
3945 +
3946 + program conftest
3947 +  integer :: i
3948 + #ifdef TEST
3949 +  i = 1
3950 + #else
3951 +  choke me
3952 + #endif
3953 + end program conftest
3954 +
3955 + _ACEOF
3956 + rm -f conftest.$ac_objext
3957 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3958 +  (eval $ac_compile) 2>conftest.er1
3959 +  ac_status=$?
3960 +  grep -v '^ *+' conftest.er1 >conftest.err
3961 +  rm -f conftest.er1
3962 +  cat conftest.err >&5
3963 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 +  (exit $ac_status); } &&
3965 +         { ac_try='test -z "$ac_fc_werror_flag"
3966 +                         || test ! -s conftest.err'
3967 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 +  (eval $ac_try) 2>&5
3969 +  ac_status=$?
3970 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 +  (exit $ac_status); }; } &&
3972 +         { ac_try='test -s conftest.$ac_objext'
3973 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 +  (eval $ac_try) 2>&5
3975 +  ac_status=$?
3976 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 +  (exit $ac_status); }; }; then
3978 +  prepdefflagworks=1
3979 + else
3980 +  echo "$as_me: failed program was:" >&5
3981 + sed 's/^/| /' conftest.$ac_ext >&5
3982 +
3983 + prepdefflagworks=0
3984 + fi
3985 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3986 +
3987 +  FCFLAGS=$ac_save_FCFLAGS
3988 +  ac_ext=$ac_save_ext
3989 +  ac_ext=${FC_SRCEXT-f}
3990 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
3991 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
3992 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
3993 +
3994 +
3995 +  if test "$prepdefflagworks" = 1; then
3996 +    echo "$as_me:$LINENO: result: yes" >&5
3997 + echo "${ECHO_T}yes" >&6
3998 +
3999 +  else
4000 +    echo "$as_me:$LINENO: result: no" >&5
4001 + echo "${ECHO_T}no" >&6
4002 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4003 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4004 +   { (exit 1); exit 1; }; }
4005 +  fi
4006 + fi
4007 +
4008 + ac_ext=${FC_SRCEXT-f}
4009 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4010 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4011 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4012 + echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
4013 + echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6
4014 + if test "${ac_cv_prog_fc_v+set}" = set; then
4015 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4016 + else
4017 +  cat >conftest.$ac_ext <<_ACEOF
4018 +      program main
4019 +
4020 +      end
4021 + _ACEOF
4022 + rm -f conftest.$ac_objext
4023 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4024 +  (eval $ac_compile) 2>conftest.er1
4025 +  ac_status=$?
4026 +  grep -v '^ *+' conftest.er1 >conftest.err
4027 +  rm -f conftest.er1
4028 +  cat conftest.err >&5
4029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 +  (exit $ac_status); } &&
4031 +         { ac_try='test -z "$ac_fc_werror_flag"
4032 +                         || test ! -s conftest.err'
4033 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 +  (eval $ac_try) 2>&5
4035 +  ac_status=$?
4036 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 +  (exit $ac_status); }; } &&
4038 +         { ac_try='test -s conftest.$ac_objext'
4039 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4040 +  (eval $ac_try) 2>&5
4041 +  ac_status=$?
4042 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 +  (exit $ac_status); }; }; then
4044 +  ac_cv_prog_fc_v=
4045 + # Try some options frequently used verbose output
4046 + for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4047 +  cat >conftest.$ac_ext <<_ACEOF
4048 +      program main
4049 +
4050 +      end
4051 + _ACEOF
4052 +
4053 + # Compile and link our simple test program by passing a flag (argument
4054 + # 1 to this macro) to the Fortran compiler in order to get
4055 + # "verbose" output that we can then parse for the Fortran linker
4056 + # flags.
4057 + ac_save_FFLAGS=$FCFLAGS
4058 + FCFLAGS="$FCFLAGS $ac_verb"
4059 + (eval echo $as_me:4059: \"$ac_link\") >&5
4060 + ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4061 + echo "$ac_fc_v_output" >&5
4062 + FCFLAGS=$ac_save_FFLAGS
4063 +
4064 + rm -f conftest*
4065 +
4066 + # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4067 + # /foo, /bar, and /baz are search directories for the Fortran linker.
4068 + # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4069 + ac_fc_v_output="`echo $ac_fc_v_output |
4070 +        grep 'LPATH is:' |
4071 +        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
4072 +
4073 + case $ac_fc_v_output in
4074 +  # If we are using xlf then replace all the commas with spaces.
4075 +  *xlfentry*)
4076 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4077 +
4078 +  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4079 +  # $LIBS confuse us, and the libraries appear later in the output anyway).
4080 +  *mGLOB_options_string*)
4081 +    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4082 +
4083 +  # If we are using Cray Fortran then delete quotes.
4084 +  # Use "\"" instead of '"' for font-lock-mode.
4085 +  # FIXME: a more general fix for quoted arguments with spaces?
4086 +  *cft90*)
4087 +    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
4088 + esac
4089 +
4090 +
4091    # look for -l* and *.a constructs in the output
4092 <  for ac_arg in $ac_f90_v_output; do
4092 >  for ac_arg in $ac_fc_v_output; do
4093       case $ac_arg in
4094          [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4095 <          ac_cv_prog_f90_v=$ac_verb
4095 >          ac_cv_prog_fc_v=$ac_verb
4096            break 2 ;;
4097       esac
4098    done
4099   done
4100 < if test -z "$ac_cv_prog_f90_v"; then
4101 <   { echo "$as_me:2650: WARNING: cannot determine how to obtain linking information from $F90" >&5
4102 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4100 > if test -z "$ac_cv_prog_fc_v"; then
4101 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
4102 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
4103   fi
4104   else
4105    echo "$as_me: failed program was:" >&5
4106 < cat conftest.$ac_ext >&5
4107 < { echo "$as_me:2656: WARNING: compilation failed" >&5
4106 > sed 's/^/| /' conftest.$ac_ext >&5
4107 >
4108 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4109   echo "$as_me: WARNING: compilation failed" >&2;}
4110   fi
4111 < rm -f conftest.$ac_objext conftest.$ac_ext
4111 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4112  
4113   fi
4114 < echo "$as_me:2662: result: $ac_cv_prog_f90_v" >&5
4115 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4116 < echo "$as_me:2664: checking for Fortran 90 libraries" >&5
4117 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4118 < if test "${ac_cv_flibs+set}" = set; then
4114 > echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
4115 > echo "${ECHO_T}$ac_cv_prog_fc_v" >&6
4116 > echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
4117 > echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6
4118 > if test "${ac_cv_fc_libs+set}" = set; then
4119    echo $ECHO_N "(cached) $ECHO_C" >&6
4120   else
4121 <  if test "x$F90LIBS" != "x"; then
4122 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4121 >  if test "x$FCLIBS" != "x"; then
4122 >  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4123   else
4124  
2673 ac_ext=f90
2674 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2675 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2677
4125   cat >conftest.$ac_ext <<_ACEOF
4126 +      program main
4127  
4128 < program main
2681 <
2682 < end program main
2683 <
4128 >      end
4129   _ACEOF
4130  
4131   # Compile and link our simple test program by passing a flag (argument
4132 < # 1 to this macro) to the Fortran 90 compiler in order to get
4133 < # "verbose" output that we can then parse for the Fortran 90 linker
4132 > # 1 to this macro) to the Fortran compiler in order to get
4133 > # "verbose" output that we can then parse for the Fortran linker
4134   # flags.
4135 < ac_save_F90FLAGS=$F90FLAGS
4136 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4135 > ac_save_FFLAGS=$FCFLAGS
4136 > FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4137 > (eval echo $as_me:4137: \"$ac_link\") >&5
4138 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4139 > echo "$ac_fc_v_output" >&5
4140 > FCFLAGS=$ac_save_FFLAGS
4141  
4142 < (eval echo $as_me:2693: \"$ac_link\") >&5
2694 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
2695 < echo "$ac_f90_v_output" >&5
2696 < F90FLAGS=$ac_save_F90FLAGS
4142 > rm -f conftest*
4143  
4144 < rm -f conftest.*
4145 < ac_ext=f90
4146 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4147 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4144 > # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4145 > # /foo, /bar, and /baz are search directories for the Fortran linker.
4146 > # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4147 > ac_fc_v_output="`echo $ac_fc_v_output |
4148 >        grep 'LPATH is:' |
4149 >        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
4150  
4151 < # If we are using xlf then replace all the commas with spaces.
4152 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4153 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4154 < fi
4151 > case $ac_fc_v_output in
4152 >  # If we are using xlf then replace all the commas with spaces.
4153 >  *xlfentry*)
4154 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4155  
4156 < # If we are using Cray Fortran then delete quotes.
4157 < # Use "\"" instead of '"' for font-lock-mode.
4158 < # FIXME: a more general fix for quoted arguments with spaces?
4159 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
2713 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
2714 < fi
4156 >  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4157 >  # $LIBS confuse us, and the libraries appear later in the output anyway).
4158 >  *mGLOB_options_string*)
4159 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4160  
4161 < ac_cv_f90libs=
4161 >  # If we are using Cray Fortran then delete quotes.
4162 >  # Use "\"" instead of '"' for font-lock-mode.
4163 >  # FIXME: a more general fix for quoted arguments with spaces?
4164 >  *cft90*)
4165 >    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
4166 > esac
4167  
4168 +
4169 +
4170 + ac_cv_fc_libs=
4171 +
4172   # Save positional arguments (if any)
4173   ac_save_positional="$@"
4174  
4175 < set X $ac_f90_v_output
4175 > set X $ac_fc_v_output
4176   while test $# != 1; do
4177    shift
4178    ac_arg=$1
4179    case $ac_arg in
4180          [\\/]*.a | ?:[\\/]*.a)
4181              ac_exists=false
4182 <  for ac_i in $ac_cv_f90libs; do
4182 >  for ac_i in $ac_cv_fc_libs; do
4183      if test x"$ac_arg" = x"$ac_i"; then
4184        ac_exists=true
4185        break
# Line 2735 | Line 4189 | else
4189    if test x"$ac_exists" = xtrue; then
4190    :
4191   else
4192 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4192 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4193   fi
4194  
4195            ;;
4196          -bI:*)
4197              ac_exists=false
4198 <  for ac_i in $ac_cv_f90libs; do
4198 >  for ac_i in $ac_cv_fc_libs; do
4199      if test x"$ac_arg" = x"$ac_i"; then
4200        ac_exists=true
4201        break
# Line 2753 | Line 4207 | else
4207   else
4208    if test "$ac_compiler_gnu" = yes; then
4209    for ac_link_opt in $ac_arg; do
4210 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4210 >    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4211    done
4212   else
4213 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4213 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4214   fi
4215   fi
4216  
4217            ;;
4218            # Ignore these flags.
4219 <        -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
4219 >        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4220            ;;
4221          -lkernel32)
4222 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4222 >          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4223            ;;
4224          -[LRuY])
4225            # These flags, when seen by themselves, take an argument.
4226            # We remove the space between option and argument and re-iterate
4227            # unless we find an empty arg or a new option (starting with -)
4228            case $2 in
4229 <             "" | -*);;
4230 <             *)
4229 >             "" | -*);;
4230 >             *)
4231                  ac_arg="$ac_arg$2"
2778
4232                  shift; shift
4233                  set X $ac_arg "$@"
4234                  ;;
# Line 2784 | Line 4237 | fi
4237          -YP,*)
4238            for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4239                ac_exists=false
4240 <  for ac_i in $ac_cv_f90libs; do
4240 >  for ac_i in $ac_cv_fc_libs; do
4241      if test x"$ac_j" = x"$ac_i"; then
4242        ac_exists=true
4243        break
# Line 2795 | Line 4248 | else
4248    :
4249   else
4250    ac_arg="$ac_arg $ac_j"
4251 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4251 >                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
4252   fi
4253  
4254            done
4255            ;;
4256          -[lLR]*)
4257              ac_exists=false
4258 <  for ac_i in $ac_cv_f90libs; do
4258 >  for ac_i in $ac_cv_fc_libs; do
4259      if test x"$ac_arg" = x"$ac_i"; then
4260        ac_exists=true
4261        break
# Line 2812 | Line 4265 | else
4265    if test x"$ac_exists" = xtrue; then
4266    :
4267   else
4268 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4268 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
4269   fi
4270  
4271            ;;
# Line 2827 | Line 4280 | case `(uname -sr) 2>/dev/null` in
4280   # must begin with a "/").
4281   case `(uname -sr) 2>/dev/null` in
4282     "SunOS 5"*)
4283 <      ac_ld_run_path=`echo $ac_f90_v_output |
4283 >      ac_ld_run_path=`echo $ac_fc_v_output |
4284                          sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4285        test "x$ac_ld_run_path" != x &&
2833
4286          if test "$ac_compiler_gnu" = yes; then
4287    for ac_link_opt in $ac_ld_run_path; do
4288 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4288 >    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
4289    done
4290   else
4291 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4291 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
4292   fi
4293        ;;
4294   esac
4295 < fi # test "x$F90LIBS" = "x"
4295 > fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4296  
4297   fi
4298 < echo "$as_me:2846: result: $ac_cv_flibs" >&5
4299 < echo "${ECHO_T}$ac_cv_flibs" >&6
4300 < F90LIBS="$ac_cv_f90libs"
4298 > echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
4299 > echo "${ECHO_T}$ac_cv_fc_libs" >&6
4300 > FCLIBS="$ac_cv_fc_libs"
4301  
2850 ac_ext=f90
2851 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2852 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4302  
4303 < echo "$as_me:2855: checking for Fortran 90 name-mangling scheme" >&5
4304 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4305 < if test "${ac_cv_f90_mangling+set}" = set; then
4303 > ac_ext=${FC_SRCEXT-f}
4304 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4305 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4306 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4307 >
4308 >
4309 > ac_ext=${FC_SRCEXT-f}
4310 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4311 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4312 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4313 >
4314 > echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4315 > echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4316 > if test "${ac_cv_fc_dummy_main+set}" = set; then
4317    echo $ECHO_N "(cached) $ECHO_C" >&6
4318   else
4319 <  ac_ext=f90
4320 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4321 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4323 < cat >conftest.$ac_ext <<_ACEOF
4324 < subroutine foobar()
4325 < return
4326 < end
4327 < subroutine foo_bar()
4328 < return
4329 < end
4319 >  ac_fc_dm_save_LIBS=$LIBS
4320 > LIBS="$LIBS $FCLIBS"
4321 > ac_fortran_dm_var=FC_DUMMY_MAIN
4322 > ac_ext=c
4323 > ac_cpp='$CPP $CPPFLAGS'
4324 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 >
4328 > # First, try linking without a dummy main:
4329 > cat >conftest.$ac_ext <<_ACEOF
4330 > /* confdefs.h.  */
4331   _ACEOF
4332 + cat confdefs.h >>conftest.$ac_ext
4333 + cat >>conftest.$ac_ext <<_ACEOF
4334 + /* end confdefs.h.  */
4335 +
4336 + #ifdef FC_DUMMY_MAIN
4337 + #ifndef FC_DUMMY_MAIN_EQ_F77
4338 + #  ifdef __cplusplus
4339 +     extern "C"
4340 + #  endif
4341 +   int FC_DUMMY_MAIN() { return 1; }
4342 + #endif
4343 + #endif
4344 + int
4345 + main ()
4346 + {
4347 +
4348 +  ;
4349 +  return 0;
4350 + }
4351 + _ACEOF
4352 + rm -f conftest.$ac_objext conftest$ac_exeext
4353 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 +  (eval $ac_link) 2>conftest.er1
4355 +  ac_status=$?
4356 +  grep -v '^ *+' conftest.er1 >conftest.err
4357 +  rm -f conftest.er1
4358 +  cat conftest.err >&5
4359 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 +  (exit $ac_status); } &&
4361 +         { ac_try='test -z "$ac_c_werror_flag"
4362 +                         || test ! -s conftest.err'
4363 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 +  (eval $ac_try) 2>&5
4365 +  ac_status=$?
4366 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 +  (exit $ac_status); }; } &&
4368 +         { ac_try='test -s conftest$ac_exeext'
4369 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 +  (eval $ac_try) 2>&5
4371 +  ac_status=$?
4372 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 +  (exit $ac_status); }; }; then
4374 +  ac_cv_fortran_dummy_main=none
4375 + else
4376 +  echo "$as_me: failed program was:" >&5
4377 + sed 's/^/| /' conftest.$ac_ext >&5
4378 +
4379 + ac_cv_fortran_dummy_main=unknown
4380 + fi
4381 + rm -f conftest.err conftest.$ac_objext \
4382 +      conftest$ac_exeext conftest.$ac_ext
4383 +
4384 + if test $ac_cv_fortran_dummy_main = unknown; then
4385 +   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4386 +     cat >conftest.$ac_ext <<_ACEOF
4387 + /* confdefs.h.  */
4388 + _ACEOF
4389 + cat confdefs.h >>conftest.$ac_ext
4390 + cat >>conftest.$ac_ext <<_ACEOF
4391 + /* end confdefs.h.  */
4392 + #define $ac_fortran_dm_var $ac_func
4393 + #ifdef FC_DUMMY_MAIN
4394 + #ifndef FC_DUMMY_MAIN_EQ_F77
4395 + #  ifdef __cplusplus
4396 +     extern "C"
4397 + #  endif
4398 +   int FC_DUMMY_MAIN() { return 1; }
4399 + #endif
4400 + #endif
4401 + int
4402 + main ()
4403 + {
4404 +
4405 +  ;
4406 +  return 0;
4407 + }
4408 + _ACEOF
4409 + rm -f conftest.$ac_objext conftest$ac_exeext
4410 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411 +  (eval $ac_link) 2>conftest.er1
4412 +  ac_status=$?
4413 +  grep -v '^ *+' conftest.er1 >conftest.err
4414 +  rm -f conftest.er1
4415 +  cat conftest.err >&5
4416 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 +  (exit $ac_status); } &&
4418 +         { ac_try='test -z "$ac_c_werror_flag"
4419 +                         || test ! -s conftest.err'
4420 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 +  (eval $ac_try) 2>&5
4422 +  ac_status=$?
4423 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 +  (exit $ac_status); }; } &&
4425 +         { ac_try='test -s conftest$ac_exeext'
4426 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 +  (eval $ac_try) 2>&5
4428 +  ac_status=$?
4429 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 +  (exit $ac_status); }; }; then
4431 +  ac_cv_fortran_dummy_main=$ac_func; break
4432 + else
4433 +  echo "$as_me: failed program was:" >&5
4434 + sed 's/^/| /' conftest.$ac_ext >&5
4435 +
4436 + fi
4437 + rm -f conftest.err conftest.$ac_objext \
4438 +      conftest$ac_exeext conftest.$ac_ext
4439 +   done
4440 + fi
4441 + ac_ext=${FC_SRCEXT-f}
4442 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4443 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4444 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4445 + ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
4446 + rm -f conftest*
4447 + LIBS=$ac_fc_dm_save_LIBS
4448 +
4449 + fi
4450 + echo "$as_me:$LINENO: result: $ac_cv_fc_dummy_main" >&5
4451 + echo "${ECHO_T}$ac_cv_fc_dummy_main" >&6
4452 + FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
4453 + if test "$FC_DUMMY_MAIN" != unknown; then
4454 +  if test $FC_DUMMY_MAIN != none; then
4455 +
4456 + cat >>confdefs.h <<_ACEOF
4457 + #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
4458 + _ACEOF
4459 +
4460 +  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4461 +
4462 + cat >>confdefs.h <<\_ACEOF
4463 + #define FC_DUMMY_MAIN_EQ_F77 1
4464 + _ACEOF
4465 +
4466 +  fi
4467 + fi
4468 + else
4469 +  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4470 + See \`config.log' for more details." >&5
4471 + echo "$as_me: error: linking to Fortran libraries from C fails
4472 + See \`config.log' for more details." >&2;}
4473 +   { (exit 1); exit 1; }; }
4474 + fi
4475 +
4476 +
4477 + ac_ext=${FC_SRCEXT-f}
4478 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4479 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4480 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4481 +
4482 + ac_ext=${FC_SRCEXT-f}
4483 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4484 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4485 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4486 + echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4487 + echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4488 + if test "${ac_cv_fc_mangling+set}" = set; then
4489 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4490 + else
4491 +  cat >conftest.$ac_ext <<_ACEOF
4492 +      subroutine foobar()
4493 +      return
4494 +      end
4495 +      subroutine foo_bar()
4496 +      return
4497 +      end
4498 + _ACEOF
4499   rm -f conftest.$ac_objext
4500 < if { (eval echo "$as_me:2873: \"$ac_compile\"") >&5
4501 <  (eval $ac_compile) 2>&5
4500 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 >  (eval $ac_compile) 2>conftest.er1
4502    ac_status=$?
4503 <  echo "$as_me:2876: \$? = $ac_status" >&5
4503 >  grep -v '^ *+' conftest.er1 >conftest.err
4504 >  rm -f conftest.er1
4505 >  cat conftest.err >&5
4506 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507    (exit $ac_status); } &&
4508 <         { ac_try='test -s conftest.$ac_objext'
4509 <  { (eval echo "$as_me:2879: \"$ac_try\"") >&5
4508 >         { ac_try='test -z "$ac_fc_werror_flag"
4509 >                         || test ! -s conftest.err'
4510 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511    (eval $ac_try) 2>&5
4512    ac_status=$?
4513 <  echo "$as_me:2882: \$? = $ac_status" >&5
4513 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 >  (exit $ac_status); }; } &&
4515 >         { ac_try='test -s conftest.$ac_objext'
4516 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 >  (eval $ac_try) 2>&5
4518 >  ac_status=$?
4519 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520    (exit $ac_status); }; }; then
4521 <  mv conftest.$ac_objext cf90_test.$ac_objext
4521 >  mv conftest.$ac_objext cfortran_test.$ac_objext
4522  
4523 +  ac_save_LIBS=$LIBS
4524 +  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
4525 +
4526    ac_ext=c
4527   ac_cpp='$CPP $CPPFLAGS'
4528   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891
2892  ac_save_LIBS=$LIBS
2893  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
2894
4531    ac_success=no
4532    for ac_foobar in foobar FOOBAR; do
4533      for ac_underscore in "" "_"; do
4534        ac_func="$ac_foobar$ac_underscore"
4535        cat >conftest.$ac_ext <<_ACEOF
4536 < #line 2900 "configure"
4537 < #include "confdefs.h"
4536 > /* confdefs.h.  */
4537 > _ACEOF
4538 > cat confdefs.h >>conftest.$ac_ext
4539 > cat >>conftest.$ac_ext <<_ACEOF
4540 > /* end confdefs.h.  */
4541  
4542   /* Override any gcc2 internal prototype to avoid an error.  */
4543   #ifdef __cplusplus
# Line 2907 | Line 4546 | char $ac_func ();
4546   /* We use char because int might match the return type of a gcc2
4547     builtin and then its argument prototype would still apply.  */
4548   char $ac_func ();
4549 + #ifdef FC_DUMMY_MAIN
4550 + #ifndef FC_DUMMY_MAIN_EQ_F77
4551 + #  ifdef __cplusplus
4552 +     extern "C"
4553 + #  endif
4554 +   int FC_DUMMY_MAIN() { return 1; }
4555 + #endif
4556 + #endif
4557   int
4558   main ()
4559   {
# Line 2916 | Line 4563 | rm -f conftest.$ac_objext conftest$ac_exeext
4563   }
4564   _ACEOF
4565   rm -f conftest.$ac_objext conftest$ac_exeext
4566 < if { (eval echo "$as_me:2919: \"$ac_link\"") >&5
4567 <  (eval $ac_link) 2>&5
4566 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 >  (eval $ac_link) 2>conftest.er1
4568    ac_status=$?
4569 <  echo "$as_me:2922: \$? = $ac_status" >&5
4569 >  grep -v '^ *+' conftest.er1 >conftest.err
4570 >  rm -f conftest.er1
4571 >  cat conftest.err >&5
4572 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573    (exit $ac_status); } &&
4574 <         { ac_try='test -s conftest$ac_exeext'
4575 <  { (eval echo "$as_me:2925: \"$ac_try\"") >&5
4574 >         { ac_try='test -z "$ac_c_werror_flag"
4575 >                         || test ! -s conftest.err'
4576 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577    (eval $ac_try) 2>&5
4578    ac_status=$?
4579 <  echo "$as_me:2928: \$? = $ac_status" >&5
4579 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 >  (exit $ac_status); }; } &&
4581 >         { ac_try='test -s conftest$ac_exeext'
4582 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 >  (eval $ac_try) 2>&5
4584 >  ac_status=$?
4585 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586    (exit $ac_status); }; }; then
4587    ac_success=yes; break 2
4588   else
4589    echo "$as_me: failed program was:" >&5
4590 < cat conftest.$ac_ext >&5
4590 > sed 's/^/| /' conftest.$ac_ext >&5
4591 >
4592   fi
4593 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4593 > rm -f conftest.err conftest.$ac_objext \
4594 >      conftest$ac_exeext conftest.$ac_ext
4595      done
4596    done
4597 +  ac_ext=${FC_SRCEXT-f}
4598 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4599 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4600 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4601  
4602    if test "$ac_success" = "yes"; then
4603       case $ac_foobar in
4604 <        foobar)
4605 <           ac_case=lower
4606 <           ac_foo_bar=foo_bar
4607 <           ;;
4608 <        FOOBAR)
4609 <           ac_case=upper
4610 <           ac_foo_bar=FOO_BAR
4611 <           ;;
4604 >        foobar)
4605 >           ac_case=lower
4606 >           ac_foo_bar=foo_bar
4607 >           ;;
4608 >        FOOBAR)
4609 >           ac_case=upper
4610 >           ac_foo_bar=FOO_BAR
4611 >           ;;
4612       esac
4613  
4614 +     ac_ext=c
4615 + ac_cpp='$CPP $CPPFLAGS'
4616 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619       ac_success_extra=no
4620       for ac_extra in "" "_"; do
4621 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4621 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4622 >        cat >conftest.$ac_ext <<_ACEOF
4623 > /* confdefs.h.  */
4624 > _ACEOF
4625 > cat confdefs.h >>conftest.$ac_ext
4626 > cat >>conftest.$ac_ext <<_ACEOF
4627 > /* end confdefs.h.  */
4628  
2955        cat >conftest.$ac_ext <<_ACEOF
2956 #line 2956 "configure"
2957 #include "confdefs.h"
2958
4629   /* Override any gcc2 internal prototype to avoid an error.  */
4630   #ifdef __cplusplus
4631   extern "C"
# Line 2963 | Line 4633 | char $ac_func ();
4633   /* We use char because int might match the return type of a gcc2
4634     builtin and then its argument prototype would still apply.  */
4635   char $ac_func ();
4636 + #ifdef FC_DUMMY_MAIN
4637 + #ifndef FC_DUMMY_MAIN_EQ_F77
4638 + #  ifdef __cplusplus
4639 +     extern "C"
4640 + #  endif
4641 +   int FC_DUMMY_MAIN() { return 1; }
4642 + #endif
4643 + #endif
4644   int
4645   main ()
4646   {
# Line 2972 | Line 4650 | rm -f conftest.$ac_objext conftest$ac_exeext
4650   }
4651   _ACEOF
4652   rm -f conftest.$ac_objext conftest$ac_exeext
4653 < if { (eval echo "$as_me:2975: \"$ac_link\"") >&5
4654 <  (eval $ac_link) 2>&5
4653 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 >  (eval $ac_link) 2>conftest.er1
4655    ac_status=$?
4656 <  echo "$as_me:2978: \$? = $ac_status" >&5
4656 >  grep -v '^ *+' conftest.er1 >conftest.err
4657 >  rm -f conftest.er1
4658 >  cat conftest.err >&5
4659 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660    (exit $ac_status); } &&
4661 <         { ac_try='test -s conftest$ac_exeext'
4662 <  { (eval echo "$as_me:2981: \"$ac_try\"") >&5
4661 >         { ac_try='test -z "$ac_c_werror_flag"
4662 >                         || test ! -s conftest.err'
4663 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664    (eval $ac_try) 2>&5
4665    ac_status=$?
4666 <  echo "$as_me:2984: \$? = $ac_status" >&5
4666 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 >  (exit $ac_status); }; } &&
4668 >         { ac_try='test -s conftest$ac_exeext'
4669 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 >  (eval $ac_try) 2>&5
4671 >  ac_status=$?
4672 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673    (exit $ac_status); }; }; then
4674    ac_success_extra=yes; break
4675   else
4676    echo "$as_me: failed program was:" >&5
4677 < cat conftest.$ac_ext >&5
4677 > sed 's/^/| /' conftest.$ac_ext >&5
4678 >
4679   fi
4680 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4680 > rm -f conftest.err conftest.$ac_objext \
4681 >      conftest$ac_exeext conftest.$ac_ext
4682       done
4683 +     ac_ext=${FC_SRCEXT-f}
4684 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4685 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4686 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4687  
4688       if test "$ac_success_extra" = "yes"; then
4689 <        ac_cv_f90_mangling="$ac_case case"
4689 >        ac_cv_fc_mangling="$ac_case case"
4690          if test -z "$ac_underscore"; then
4691 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4691 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
4692          else
4693 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3000 <
4693 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
4694          fi
4695          if test -z "$ac_extra"; then
4696 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4696 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
4697          else
4698 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4698 >           ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
4699          fi
4700        else
4701 <        ac_cv_f90_mangling="unknown"
4701 >        ac_cv_fc_mangling="unknown"
4702        fi
4703    else
4704 <     ac_cv_f90_mangling="unknown"
3012 <
4704 >     ac_cv_fc_mangling="unknown"
4705    fi
4706  
4707    LIBS=$ac_save_LIBS
4708 <  ac_ext=f90
3017 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3018 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3020 <  rm -f cf90_test* conftest*
4708 >  rm -f cfortran_test* conftest*
4709   else
4710    echo "$as_me: failed program was:" >&5
4711 < cat conftest.$ac_ext >&5
4711 > sed 's/^/| /' conftest.$ac_ext >&5
4712 >
4713 > { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4714 > See \`config.log' for more details." >&5
4715 > echo "$as_me: error: cannot compile a simple Fortran program
4716 > See \`config.log' for more details." >&2;}
4717 >   { (exit 1); exit 1; }; }
4718   fi
4719 < rm -f conftest.$ac_objext conftest.$ac_ext
3026 < ac_ext=f90
3027 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3028 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4719 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4720  
4721   fi
4722 < echo "$as_me:3032: result: $ac_cv_f90_mangling" >&5
4723 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4722 > echo "$as_me:$LINENO: result: $ac_cv_fc_mangling" >&5
4723 > echo "${ECHO_T}$ac_cv_fc_mangling" >&6
4724  
4725 < case $ac_cv_f90_mangling in
4725 > ac_ext=${FC_SRCEXT-f}
4726 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4727 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4728 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4729 >
4730 > ac_ext=${FC_SRCEXT-f}
4731 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4732 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4733 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4734 >
4735 >
4736 > case $ac_cv_fc_mangling in
4737    "lower case, no underscore, no extra underscore")
4738 <          cat >>confdefs.h <<\EOF
4739 < #define F90_FUNC(name,NAME) name
4740 < EOF
4738 >          cat >>confdefs.h <<\_ACEOF
4739 > #define FC_FUNC(name,NAME) name
4740 > _ACEOF
4741  
4742 <          cat >>confdefs.h <<\EOF
4743 < #define F90_FUNC_(name,NAME) name
4744 < EOF
4742 >          cat >>confdefs.h <<\_ACEOF
4743 > #define FC_FUNC_(name,NAME) name
4744 > _ACEOF
4745   ;;
4746    "lower case, no underscore, extra underscore")
4747 <          cat >>confdefs.h <<\EOF
4748 < #define F90_FUNC(name,NAME) name
4749 < EOF
4747 >          cat >>confdefs.h <<\_ACEOF
4748 > #define FC_FUNC(name,NAME) name
4749 > _ACEOF
4750  
4751 <          cat >>confdefs.h <<\EOF
4752 < #define F90_FUNC_(name,NAME) name ## _
4753 < EOF
4751 >          cat >>confdefs.h <<\_ACEOF
4752 > #define FC_FUNC_(name,NAME) name ## _
4753 > _ACEOF
4754   ;;
4755    "lower case, underscore, no extra underscore")
4756 <          cat >>confdefs.h <<\EOF
4757 < #define F90_FUNC(name,NAME) name ## _
4758 < EOF
4756 >          cat >>confdefs.h <<\_ACEOF
4757 > #define FC_FUNC(name,NAME) name ## _
4758 > _ACEOF
4759  
4760 <          cat >>confdefs.h <<\EOF
4761 < #define F90_FUNC_(name,NAME) name ## _
4762 < EOF
4760 >          cat >>confdefs.h <<\_ACEOF
4761 > #define FC_FUNC_(name,NAME) name ## _
4762 > _ACEOF
4763   ;;
4764    "lower case, underscore, extra underscore")
4765 <          cat >>confdefs.h <<\EOF
4766 < #define F90_FUNC(name,NAME) name ## _
4767 < EOF
4765 >          cat >>confdefs.h <<\_ACEOF
4766 > #define FC_FUNC(name,NAME) name ## _
4767 > _ACEOF
4768  
4769 <          cat >>confdefs.h <<\EOF
4770 < #define F90_FUNC_(name,NAME) name ## __
4771 < EOF
4769 >          cat >>confdefs.h <<\_ACEOF
4770 > #define FC_FUNC_(name,NAME) name ## __
4771 > _ACEOF
4772   ;;
4773    "upper case, no underscore, no extra underscore")
4774 <          cat >>confdefs.h <<\EOF
4775 < #define F90_FUNC(name,NAME) NAME
4776 < EOF
4774 >          cat >>confdefs.h <<\_ACEOF
4775 > #define FC_FUNC(name,NAME) NAME
4776 > _ACEOF
4777  
4778 <          cat >>confdefs.h <<\EOF
4779 < #define F90_FUNC_(name,NAME) NAME
4780 < EOF
4778 >          cat >>confdefs.h <<\_ACEOF
4779 > #define FC_FUNC_(name,NAME) NAME
4780 > _ACEOF
4781   ;;
4782    "upper case, no underscore, extra underscore")
4783 <          cat >>confdefs.h <<\EOF
4784 < #define F90_FUNC(name,NAME) NAME
4785 < EOF
4783 >          cat >>confdefs.h <<\_ACEOF
4784 > #define FC_FUNC(name,NAME) NAME
4785 > _ACEOF
4786  
4787 <          cat >>confdefs.h <<\EOF
4788 < #define F90_FUNC_(name,NAME) NAME ## _
4789 < EOF
4787 >          cat >>confdefs.h <<\_ACEOF
4788 > #define FC_FUNC_(name,NAME) NAME ## _
4789 > _ACEOF
4790   ;;
4791    "upper case, underscore, no extra underscore")
4792 <          cat >>confdefs.h <<\EOF
4793 < #define F90_FUNC(name,NAME) NAME ## _
4794 < EOF
4792 >          cat >>confdefs.h <<\_ACEOF
4793 > #define FC_FUNC(name,NAME) NAME ## _
4794 > _ACEOF
4795  
4796 <          cat >>confdefs.h <<\EOF
4797 < #define F90_FUNC_(name,NAME) NAME ## _
4798 < EOF
4796 >          cat >>confdefs.h <<\_ACEOF
4797 > #define FC_FUNC_(name,NAME) NAME ## _
4798 > _ACEOF
4799   ;;
4800    "upper case, underscore, extra underscore")
4801 <          cat >>confdefs.h <<\EOF
4802 < #define F90_FUNC(name,NAME) NAME ## _
4803 < EOF
4801 >          cat >>confdefs.h <<\_ACEOF
4802 > #define FC_FUNC(name,NAME) NAME ## _
4803 > _ACEOF
4804  
4805 <          cat >>confdefs.h <<\EOF
4806 < #define F90_FUNC_(name,NAME) NAME ## __
4807 < EOF
4805 >          cat >>confdefs.h <<\_ACEOF
4806 > #define FC_FUNC_(name,NAME) NAME ## __
4807 > _ACEOF
4808   ;;
4809    *)
4810 <          { echo "$as_me:3109: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4811 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4810 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4811 > echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4812            ;;
4813   esac
4814  
4815 < echo "$as_me:3114: checking for module suffix" >&5
4815 > ac_ext=${FC_SRCEXT-f}
4816 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4817 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4818 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4819 >
4820 >
4821 >
4822 > ac_ext=${FC_SRCEXT-f}
4823 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4824 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4825 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4826 > echo "$as_me:$LINENO: checking how to get verbose linking output from $FC" >&5
4827 > echo $ECHO_N "checking how to get verbose linking output from $FC... $ECHO_C" >&6
4828 > if test "${ac_cv_prog_fc_v+set}" = set; then
4829 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4830 > else
4831 >  cat >conftest.$ac_ext <<_ACEOF
4832 >      program main
4833 >
4834 >      end
4835 > _ACEOF
4836 > rm -f conftest.$ac_objext
4837 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 >  (eval $ac_compile) 2>conftest.er1
4839 >  ac_status=$?
4840 >  grep -v '^ *+' conftest.er1 >conftest.err
4841 >  rm -f conftest.er1
4842 >  cat conftest.err >&5
4843 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 >  (exit $ac_status); } &&
4845 >         { ac_try='test -z "$ac_fc_werror_flag"
4846 >                         || test ! -s conftest.err'
4847 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 >  (eval $ac_try) 2>&5
4849 >  ac_status=$?
4850 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 >  (exit $ac_status); }; } &&
4852 >         { ac_try='test -s conftest.$ac_objext'
4853 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 >  (eval $ac_try) 2>&5
4855 >  ac_status=$?
4856 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 >  (exit $ac_status); }; }; then
4858 >  ac_cv_prog_fc_v=
4859 > # Try some options frequently used verbose output
4860 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4861 >  cat >conftest.$ac_ext <<_ACEOF
4862 >      program main
4863 >
4864 >      end
4865 > _ACEOF
4866 >
4867 > # Compile and link our simple test program by passing a flag (argument
4868 > # 1 to this macro) to the Fortran compiler in order to get
4869 > # "verbose" output that we can then parse for the Fortran linker
4870 > # flags.
4871 > ac_save_FFLAGS=$FCFLAGS
4872 > FCFLAGS="$FCFLAGS $ac_verb"
4873 > (eval echo $as_me:4873: \"$ac_link\") >&5
4874 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4875 > echo "$ac_fc_v_output" >&5
4876 > FCFLAGS=$ac_save_FFLAGS
4877 >
4878 > rm -f conftest*
4879 >
4880 > # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4881 > # /foo, /bar, and /baz are search directories for the Fortran linker.
4882 > # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4883 > ac_fc_v_output="`echo $ac_fc_v_output |
4884 >        grep 'LPATH is:' |
4885 >        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
4886 >
4887 > case $ac_fc_v_output in
4888 >  # If we are using xlf then replace all the commas with spaces.
4889 >  *xlfentry*)
4890 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4891 >
4892 >  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4893 >  # $LIBS confuse us, and the libraries appear later in the output anyway).
4894 >  *mGLOB_options_string*)
4895 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4896 >
4897 >  # If we are using Cray Fortran then delete quotes.
4898 >  # Use "\"" instead of '"' for font-lock-mode.
4899 >  # FIXME: a more general fix for quoted arguments with spaces?
4900 >  *cft90*)
4901 >    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
4902 > esac
4903 >
4904 >
4905 >  # look for -l* and *.a constructs in the output
4906 >  for ac_arg in $ac_fc_v_output; do
4907 >     case $ac_arg in
4908 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4909 >          ac_cv_prog_fc_v=$ac_verb
4910 >          break 2 ;;
4911 >     esac
4912 >  done
4913 > done
4914 > if test -z "$ac_cv_prog_fc_v"; then
4915 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $FC" >&5
4916 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
4917 > fi
4918 > else
4919 >  echo "$as_me: failed program was:" >&5
4920 > sed 's/^/| /' conftest.$ac_ext >&5
4921 >
4922 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4923 > echo "$as_me: WARNING: compilation failed" >&2;}
4924 > fi
4925 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4926 >
4927 > fi
4928 > echo "$as_me:$LINENO: result: $ac_cv_prog_fc_v" >&5
4929 > echo "${ECHO_T}$ac_cv_prog_fc_v" >&6
4930 > echo "$as_me:$LINENO: checking for Fortran libraries of $FC" >&5
4931 > echo $ECHO_N "checking for Fortran libraries of $FC... $ECHO_C" >&6
4932 > if test "${ac_cv_fc_libs+set}" = set; then
4933 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4934 > else
4935 >  if test "x$FCLIBS" != "x"; then
4936 >  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
4937 > else
4938 >
4939 > cat >conftest.$ac_ext <<_ACEOF
4940 >      program main
4941 >
4942 >      end
4943 > _ACEOF
4944 >
4945 > # Compile and link our simple test program by passing a flag (argument
4946 > # 1 to this macro) to the Fortran compiler in order to get
4947 > # "verbose" output that we can then parse for the Fortran linker
4948 > # flags.
4949 > ac_save_FFLAGS=$FCFLAGS
4950 > FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
4951 > (eval echo $as_me:4951: \"$ac_link\") >&5
4952 > ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4953 > echo "$ac_fc_v_output" >&5
4954 > FCFLAGS=$ac_save_FFLAGS
4955 >
4956 > rm -f conftest*
4957 >
4958 > # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4959 > # /foo, /bar, and /baz are search directories for the Fortran linker.
4960 > # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4961 > ac_fc_v_output="`echo $ac_fc_v_output |
4962 >        grep 'LPATH is:' |
4963 >        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_fc_v_output"
4964 >
4965 > case $ac_fc_v_output in
4966 >  # If we are using xlf then replace all the commas with spaces.
4967 >  *xlfentry*)
4968 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
4969 >
4970 >  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4971 >  # $LIBS confuse us, and the libraries appear later in the output anyway).
4972 >  *mGLOB_options_string*)
4973 >    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4974 >
4975 >  # If we are using Cray Fortran then delete quotes.
4976 >  # Use "\"" instead of '"' for font-lock-mode.
4977 >  # FIXME: a more general fix for quoted arguments with spaces?
4978 >  *cft90*)
4979 >    ac_fc_v_output=`echo $ac_fc_v_output | sed "s/\"//g"` ;;
4980 > esac
4981 >
4982 >
4983 >
4984 > ac_cv_fc_libs=
4985 >
4986 > # Save positional arguments (if any)
4987 > ac_save_positional="$@"
4988 >
4989 > set X $ac_fc_v_output
4990 > while test $# != 1; do
4991 >  shift
4992 >  ac_arg=$1
4993 >  case $ac_arg in
4994 >        [\\/]*.a | ?:[\\/]*.a)
4995 >            ac_exists=false
4996 >  for ac_i in $ac_cv_fc_libs; do
4997 >    if test x"$ac_arg" = x"$ac_i"; then
4998 >      ac_exists=true
4999 >      break
5000 >    fi
5001 >  done
5002 >
5003 >  if test x"$ac_exists" = xtrue; then
5004 >  :
5005 > else
5006 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5007 > fi
5008 >
5009 >          ;;
5010 >        -bI:*)
5011 >            ac_exists=false
5012 >  for ac_i in $ac_cv_fc_libs; do
5013 >    if test x"$ac_arg" = x"$ac_i"; then
5014 >      ac_exists=true
5015 >      break
5016 >    fi
5017 >  done
5018 >
5019 >  if test x"$ac_exists" = xtrue; then
5020 >  :
5021 > else
5022 >  if test "$ac_compiler_gnu" = yes; then
5023 >  for ac_link_opt in $ac_arg; do
5024 >    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5025 >  done
5026 > else
5027 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5028 > fi
5029 > fi
5030 >
5031 >          ;;
5032 >          # Ignore these flags.
5033 >        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
5034 >          ;;
5035 >        -lkernel32)
5036 >          test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5037 >          ;;
5038 >        -[LRuY])
5039 >          # These flags, when seen by themselves, take an argument.
5040 >          # We remove the space between option and argument and re-iterate
5041 >          # unless we find an empty arg or a new option (starting with -)
5042 >          case $2 in
5043 >             "" | -*);;
5044 >             *)
5045 >                ac_arg="$ac_arg$2"
5046 >                shift; shift
5047 >                set X $ac_arg "$@"
5048 >                ;;
5049 >          esac
5050 >          ;;
5051 >        -YP,*)
5052 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5053 >              ac_exists=false
5054 >  for ac_i in $ac_cv_fc_libs; do
5055 >    if test x"$ac_j" = x"$ac_i"; then
5056 >      ac_exists=true
5057 >      break
5058 >    fi
5059 >  done
5060 >
5061 >  if test x"$ac_exists" = xtrue; then
5062 >  :
5063 > else
5064 >  ac_arg="$ac_arg $ac_j"
5065 >                               ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
5066 > fi
5067 >
5068 >          done
5069 >          ;;
5070 >        -[lLR]*)
5071 >            ac_exists=false
5072 >  for ac_i in $ac_cv_fc_libs; do
5073 >    if test x"$ac_arg" = x"$ac_i"; then
5074 >      ac_exists=true
5075 >      break
5076 >    fi
5077 >  done
5078 >
5079 >  if test x"$ac_exists" = xtrue; then
5080 >  :
5081 > else
5082 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
5083 > fi
5084 >
5085 >          ;;
5086 >          # Ignore everything else.
5087 >  esac
5088 > done
5089 > # restore positional arguments
5090 > set X $ac_save_positional; shift
5091 >
5092 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5093 > # then we insist that the "run path" must be an absolute path (i.e. it
5094 > # must begin with a "/").
5095 > case `(uname -sr) 2>/dev/null` in
5096 >   "SunOS 5"*)
5097 >      ac_ld_run_path=`echo $ac_fc_v_output |
5098 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5099 >      test "x$ac_ld_run_path" != x &&
5100 >        if test "$ac_compiler_gnu" = yes; then
5101 >  for ac_link_opt in $ac_ld_run_path; do
5102 >    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
5103 >  done
5104 > else
5105 >  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
5106 > fi
5107 >      ;;
5108 > esac
5109 > fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5110 >
5111 > fi
5112 > echo "$as_me:$LINENO: result: $ac_cv_fc_libs" >&5
5113 > echo "${ECHO_T}$ac_cv_fc_libs" >&6
5114 > FCLIBS="$ac_cv_fc_libs"
5115 >
5116 >
5117 > ac_ext=${FC_SRCEXT-f}
5118 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5119 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5120 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5121 >
5122 >
5123 >
5124 > echo "$as_me:$LINENO: checking for module suffix" >&5
5125   echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
5126   rm -f conftest*
5127   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5128   rm -f work*
5129 < cat >conftest.f90 <<EOF
5129 > cat >conftest.$ac_ext <<EOF
5130          module conftest
5131          integer n
5132          parameter (n=1)
# Line 3125 | Line 5135 | modcase="lower"
5135   # SGI and absoft compilers generates module name in upper case!
5136   testname="conftest"
5137   modcase="lower"
5138 < if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
5139 <    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
5138 > if (eval $ac_compile) 2>/dev/null ; then
5139 >    MOD=`ls conftest* | grep -v conftest.$ac_ext | grep -v conftest.o`
5140      MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5141      if test -z "$MOD" ; then
5142          MOD=`ls CONFTEST* 2>/dev/null \
5143 <                | grep -v CONFTEST.f | grep -v CONFTEST.o`
5143 >                | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
5144          MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5145          if test -n "$MOD" ; then
5146              testname="CONFTEST"
# Line 3138 | Line 5148 | if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
5148          fi
5149      fi
5150      if test -z "$MOD" ; then
5151 <        echo "$as_me:3141: result: unknown" >&5
5151 >        echo "$as_me:$LINENO: result: unknown" >&5
5152   echo "${ECHO_T}unknown" >&6
5153          # Use mod if we can't figure it out
5154          MOD="mod"
5155      else
5156 <        echo "$as_me:3146: result: $MOD" >&5
5156 >        echo "$as_me:$LINENO: result: $MOD" >&5
5157   echo "${ECHO_T}$MOD" >&6
5158      fi
5159      if test -s work.pcl ; then
5160 <        { echo "$as_me:3150: WARNING: Compiler generates auxillery files!" >&5
5160 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5161   echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5162      fi
5163   else
5164 <    echo "$as_me:3154: result: unknown" >&5
5164 >    echo "$as_me:$LINENO: result: unknown" >&5
5165   echo "${ECHO_T}unknown" >&6
5166   fi
5167  
5168 +
5169 +
5170 +
5171 +
5172   # Check for module include path (some use -I, some (Solaris) use -M, some
5173   # (absoft) use -p).
5174   # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
5175   # specified, work.pcl and work.pc are created.  However, if you specify
5176   # a file, it must contain a the name of a file ending in .pc .  Ugh!
5177   # Use the module made above
5178 < echo "$as_me:3164: checking for module directory path flag" >&5
5178 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
5179   echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
5180   rm -f conftest*
5181   # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5182   rm -f work*
5183 < cat >conftest.f90 <<EOF
5183 > cat >conftest.$ac_ext <<EOF
5184          module conftest
5185          integer n
5186          parameter (n=1)
# Line 3174 | Line 5188 | testname="conftest"
5188   EOF
5189   # SGI and absoft compilers generates module name in upper case!
5190   testname="conftest"
5191 < if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
5192 <   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
5191 > if (eval $ac_compile) 2>/dev/null ; then
5192 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.$ac_ext | grep -v CONFTEST.o`
5193     mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
5194     if test -n "$mod" ; then
5195        testname="CONFTEST"
# Line 3184 | Line 5198 | if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
5198     if test ! -d conf ; then mkdir conf ; madedir=1; fi
5199     cp $testname.$MOD conf
5200     rm -f conftest* CONFTEST*
5201 <   cat >conftest1.f90 <<EOF
5201 >   cat >conftest1.$ac_ext <<EOF
5202          program main
5203          use conftest
5204          print *, n
# Line 3192 | Line 5206 | EOF
5206   EOF
5207     F90_WORK_FILES_ARG=""
5208     F90MODINCSPEC=""
5209 <   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
5209 >   if $FC -c -Iconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext > conftest.out 2>&1 ; then
5210         MODDIRFLAG="-I"
5211         F90MODINCSPEC="-I<dir>"
5212 <       echo "$as_me:3198: result: -I" >&5
5212 >       echo "$as_me:$LINENO: result: -I" >&5
5213   echo "${ECHO_T}-I" >&6
5214 <   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
5214 >   elif $FC -c -Mconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
5215         MODDIRFLAG="-M"
5216         F90MODINCSPEC="-M<dir>"
5217 <       echo "$as_me:3203: result: -M" >&5
5217 >       echo "$as_me:$LINENO: result: -M" >&5
5218   echo "${ECHO_T}-M" >&6
5219 <   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
5219 >   elif $FC -c -pconf $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >> conftest.out 2>&1 ; then
5220         MODDIRFLAG="-p"
5221         F90MODINCSPEC="-p<dir>"
5222 <       echo "$as_me:3208: result: -p" >&5
5222 >       echo "$as_me:$LINENO: result: -p" >&5
5223   echo "${ECHO_T}-p" >&6
5224     elif test -s work.pc ; then
5225          cp work.pc conf/mpimod.pc
5226          echo "mpimod.pc" > conf/mpimod.pcl
5227          echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5228 <        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
5228 >        if $FC -c -cl,conf/mpimod.pcl $FCFLAGS $FCFLAGS_SRCEXT conftest1.$ac_ext >>conftest.out 2>&1 ; then
5229              MODDIRFLAG='-cl,mpimod.pcl'
5230 <            echo "$as_me:3216: result: -cl,filename where filename contains a list of files and directories" >&5
5230 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
5231   echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
5232              F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5233              F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
# Line 3226 | Line 5240 | echo "${ECHO_T}-cl,filename where filename contains a
5240          fi
5241     fi
5242     if test -z "MODDIRFLAG" ; then
5243 <       echo "$as_me:3229: result: unknown" >&5
5243 >       echo "$as_me:$LINENO: result: unknown" >&5
5244   echo "${ECHO_T}unknown" >&6
5245     fi
5246  
5247 +
5248     rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5249     if test $madedir = 1 ; then rmdir conf ; fi
5250   fi
5251  
5252 < echo "$as_me:3237: checking for Fortran 90 module file names" >&5
5252 >
5253 > echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
5254   echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
5255   if test "${ac_cv_f90_module_names+set}" = set; then
5256    echo $ECHO_N "(cached) $ECHO_C" >&6
5257   else
5258 <  ac_ext=f90
5259 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5260 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5258 >  ac_ext=${FC_SRCEXT-f}
5259 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5260 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5261 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5262  
5263   # carry out the test in a new directory, so that we don't miss anything
5264   mkdir conftest
# Line 3252 | Line 5268 | rm -f conftest.$ac_objext
5268   END MODULE Bar
5269   _ACEOF
5270   rm -f conftest.$ac_objext
5271 < if { (eval echo "$as_me:3255: \"$ac_compile\"") >&5
5272 <  (eval $ac_compile) 2>&5
5271 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5272 >  (eval $ac_compile) 2>conftest.er1
5273    ac_status=$?
5274 <  echo "$as_me:3258: \$? = $ac_status" >&5
5274 >  grep -v '^ *+' conftest.er1 >conftest.err
5275 >  rm -f conftest.er1
5276 >  cat conftest.err >&5
5277 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278    (exit $ac_status); } &&
5279 <         { ac_try='test -s conftest.$ac_objext'
5280 <  { (eval echo "$as_me:3261: \"$ac_try\"") >&5
5279 >         { ac_try='test -z "$ac_fc_werror_flag"
5280 >                         || test ! -s conftest.err'
5281 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282    (eval $ac_try) 2>&5
5283    ac_status=$?
5284 <  echo "$as_me:3264: \$? = $ac_status" >&5
5284 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 >  (exit $ac_status); }; } &&
5286 >         { ac_try='test -s conftest.$ac_objext'
5287 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 >  (eval $ac_try) 2>&5
5289 >  ac_status=$?
5290 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291    (exit $ac_status); }; }; then
5292    ac_cv_f90_module_names=
5293   ac_file_list=*
# Line 3344 | Line 5370 | fi
5370            ;;
5371         # Other files - we have no idea how they are generated
5372         *)
5373 <          { echo "$as_me:3347: WARNING: Bogus file found: $ac_file" >&5
5373 >          { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
5374   echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
5375            ;;
5376     esac
5377   done
5378   if test "x$ac_cv_f90_module_names" = "x"; then
5379 <  { echo "$as_me:3353: WARNING: Couldn't determine module file names" >&5
5379 >  { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
5380   echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
5381   fi
5382  
5383   else
5384    echo "$as_me: failed program was:" >&5
5385 < cat conftest.$ac_ext >&5
5385 > sed 's/^/| /' conftest.$ac_ext >&5
5386 >
5387   ac_cv_f90_module_names=
5388 < { echo "$as_me:3361: WARNING: Couldn't determine module file names" >&5
5388 > { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
5389   echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
5390   fi
5391 < rm -f conftest.$ac_objext conftest.$ac_ext
5391 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392   cd ..
5393   # cleanup
5394   rm -rf conftest
5395 < ac_ext=f90
5396 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5397 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5395 > ac_ext=${FC_SRCEXT-f}
5396 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
5397 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
5398 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
5399  
5400   fi
5401 < echo "$as_me:3374: result: $ac_cv_f90_module_names" >&5
5401 > echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
5402   echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
5403  
5404   # We now generate a shell script that will help us to figure out the correct
# Line 3456 | Line 5483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
5483   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485  
3459 ac_ext=c
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486  
5487   ac_ext=c
5488   ac_cpp='$CPP $CPPFLAGS'
5489   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492 < echo "$as_me:3470: checking how to run the C preprocessor" >&5
5493 < echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5494 < # On Suns, sometimes $CPP names a directory.
5495 < if test -n "$CPP" && test -d "$CPP"; then
5496 <  CPP=
5497 < fi
3476 < if test -z "$CPP"; then
3477 <  if test "${ac_cv_prog_CPP+set}" = set; then
5492 >
5493 >
5494 >
5495 > echo "$as_me:$LINENO: checking for asin in -lm" >&5
5496 > echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
5497 > if test "${ac_cv_lib_m_asin+set}" = set; then
5498    echo $ECHO_N "(cached) $ECHO_C" >&6
5499   else
5500 <      # Double quotes because CPP needs to be expanded
5501 <    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5502 <    do
5503 <      # break 2 since there is a loop in there.
3484 <      ac_preproc_ok=false
3485 < for ac_c_preproc_warn_flag in '' yes
3486 < do
3487 <  # Use a header file that comes with gcc, so configuring glibc
3488 <  # with a fresh cross-compiler works.
3489 <  # On the NeXT, cc -E runs the code through the compiler's parser,
3490 <  # not just through cpp. "Syntax error" is here to catch this case.
3491 <  cat >conftest.$ac_ext <<_ACEOF
3492 < #line 3492 "configure"
3493 < #include "confdefs.h"
3494 < #include <assert.h>
3495 <                     Syntax error
5500 >  ac_check_lib_save_LIBS=$LIBS
5501 > LIBS="-lm  $LIBS"
5502 > cat >conftest.$ac_ext <<_ACEOF
5503 > /* confdefs.h.  */
5504   _ACEOF
5505 < if { (eval echo "$as_me:3497: \"$ac_cpp conftest.$ac_ext\"") >&5
5506 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5505 > cat confdefs.h >>conftest.$ac_ext
5506 > cat >>conftest.$ac_ext <<_ACEOF
5507 > /* end confdefs.h.  */
5508 >
5509 > /* Override any gcc2 internal prototype to avoid an error.  */
5510 > #ifdef __cplusplus
5511 > extern "C"
5512 > #endif
5513 > /* We use char because int might match the return type of a gcc2
5514 >   builtin and then its argument prototype would still apply.  */
5515 > char asin ();
5516 > #ifdef FC_DUMMY_MAIN
5517 > #ifndef FC_DUMMY_MAIN_EQ_F77
5518 > #  ifdef __cplusplus
5519 >     extern "C"
5520 > #  endif
5521 >   int FC_DUMMY_MAIN() { return 1; }
5522 > #endif
5523 > #endif
5524 > int
5525 > main ()
5526 > {
5527 > asin ();
5528 >  ;
5529 >  return 0;
5530 > }
5531 > _ACEOF
5532 > rm -f conftest.$ac_objext conftest$ac_exeext
5533 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 >  (eval $ac_link) 2>conftest.er1
5535    ac_status=$?
5536 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5536 >  grep -v '^ *+' conftest.er1 >conftest.err
5537    rm -f conftest.er1
5538    cat conftest.err >&5
5539 <  echo "$as_me:3503: \$? = $ac_status" >&5
5540 <  (exit $ac_status); } >/dev/null; then
5541 <  if test -s conftest.err; then
5542 <    ac_cpp_err=$ac_c_preproc_warn_flag
5543 <  else
5544 <    ac_cpp_err=
5545 <  fi
5539 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 >  (exit $ac_status); } &&
5541 >         { ac_try='test -z "$ac_c_werror_flag"
5542 >                         || test ! -s conftest.err'
5543 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 >  (eval $ac_try) 2>&5
5545 >  ac_status=$?
5546 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 >  (exit $ac_status); }; } &&
5548 >         { ac_try='test -s conftest$ac_exeext'
5549 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 >  (eval $ac_try) 2>&5
5551 >  ac_status=$?
5552 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 >  (exit $ac_status); }; }; then
5554 >  ac_cv_lib_m_asin=yes
5555   else
5556 <  ac_cpp_err=yes
5556 >  echo "$as_me: failed program was:" >&5
5557 > sed 's/^/| /' conftest.$ac_ext >&5
5558 >
5559 > ac_cv_lib_m_asin=no
5560   fi
5561 < if test -z "$ac_cpp_err"; then
5562 <  :
5561 > rm -f conftest.err conftest.$ac_objext \
5562 >      conftest$ac_exeext conftest.$ac_ext
5563 > LIBS=$ac_check_lib_save_LIBS
5564 > fi
5565 > echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
5566 > echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
5567 > if test $ac_cv_lib_m_asin = yes; then
5568 >  cat >>confdefs.h <<_ACEOF
5569 > #define HAVE_LIBM 1
5570 > _ACEOF
5571 >
5572 >  LIBS="-lm $LIBS"
5573 >
5574   else
5575 <  echo "$as_me: failed program was:" >&5
3517 <  cat conftest.$ac_ext >&5
3518 <  # Broken: fails on valid input.
3519 < continue
5575 >  exit
5576   fi
3521 rm -f conftest.err conftest.$ac_ext
5577  
5578 <  # OK, works on sane cases.  Now check whether non-existent headers
5579 <  # can be detected and how.
5578 >
5579 > echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5580 > echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5581 > if test "${ac_cv_header_stdc+set}" = set; then
5582 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5583 > else
5584    cat >conftest.$ac_ext <<_ACEOF
5585 < #line 3526 "configure"
3527 < #include "confdefs.h"
3528 < #include <ac_nonexistent.h>
5585 > /* confdefs.h.  */
5586   _ACEOF
5587 < if { (eval echo "$as_me:3530: \"$ac_cpp conftest.$ac_ext\"") >&5
5588 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5587 > cat confdefs.h >>conftest.$ac_ext
5588 > cat >>conftest.$ac_ext <<_ACEOF
5589 > /* end confdefs.h.  */
5590 > #include <stdlib.h>
5591 > #include <stdarg.h>
5592 > #include <string.h>
5593 > #include <float.h>
5594 >
5595 > #ifdef FC_DUMMY_MAIN
5596 > #ifndef FC_DUMMY_MAIN_EQ_F77
5597 > #  ifdef __cplusplus
5598 >     extern "C"
5599 > #  endif
5600 >   int FC_DUMMY_MAIN() { return 1; }
5601 > #endif
5602 > #endif
5603 > int
5604 > main ()
5605 > {
5606 >
5607 >  ;
5608 >  return 0;
5609 > }
5610 > _ACEOF
5611 > rm -f conftest.$ac_objext
5612 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 >  (eval $ac_compile) 2>conftest.er1
5614    ac_status=$?
5615 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5615 >  grep -v '^ *+' conftest.er1 >conftest.err
5616    rm -f conftest.er1
5617    cat conftest.err >&5
5618 <  echo "$as_me:3536: \$? = $ac_status" >&5
5619 <  (exit $ac_status); } >/dev/null; then
5620 <  if test -s conftest.err; then
5621 <    ac_cpp_err=$ac_c_preproc_warn_flag
5622 <  else
5623 <    ac_cpp_err=
5624 <  fi
5618 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 >  (exit $ac_status); } &&
5620 >         { ac_try='test -z "$ac_c_werror_flag"
5621 >                         || test ! -s conftest.err'
5622 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623 >  (eval $ac_try) 2>&5
5624 >  ac_status=$?
5625 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 >  (exit $ac_status); }; } &&
5627 >         { ac_try='test -s conftest.$ac_objext'
5628 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 >  (eval $ac_try) 2>&5
5630 >  ac_status=$?
5631 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 >  (exit $ac_status); }; }; then
5633 >  ac_cv_header_stdc=yes
5634   else
3544  ac_cpp_err=yes
3545 fi
3546 if test -z "$ac_cpp_err"; then
3547  # Broken: success on invalid input.
3548 continue
3549 else
5635    echo "$as_me: failed program was:" >&5
5636 <  cat conftest.$ac_ext >&5
3552 <  # Passes both tests.
3553 < ac_preproc_ok=:
3554 < break
3555 < fi
3556 < rm -f conftest.err conftest.$ac_ext
5636 > sed 's/^/| /' conftest.$ac_ext >&5
5637  
5638 < done
3559 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3560 < rm -f conftest.err conftest.$ac_ext
3561 < if $ac_preproc_ok; then
3562 <  break 2
5638 > ac_cv_header_stdc=no
5639   fi
5640 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641  
5642 <    done
5643 <    ac_cv_prog_CPP=$CPP
5642 > if test $ac_cv_header_stdc = yes; then
5643 >  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5644 >  cat >conftest.$ac_ext <<_ACEOF
5645 > /* confdefs.h.  */
5646 > _ACEOF
5647 > cat confdefs.h >>conftest.$ac_ext
5648 > cat >>conftest.$ac_ext <<_ACEOF
5649 > /* end confdefs.h.  */
5650 > #include <string.h>
5651  
5652 < fi
5653 <  CPP=$ac_cv_prog_CPP
5652 > _ACEOF
5653 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654 >  $EGREP "memchr" >/dev/null 2>&1; then
5655 >  :
5656   else
5657 <  ac_cv_prog_CPP=$CPP
5657 >  ac_cv_header_stdc=no
5658   fi
5659 < echo "$as_me:3573: result: $CPP" >&5
5660 < echo "${ECHO_T}$CPP" >&6
5661 < ac_preproc_ok=false
5662 < for ac_c_preproc_warn_flag in '' yes
5663 < do
5664 <  # Use a header file that comes with gcc, so configuring glibc
3579 <  # with a fresh cross-compiler works.
3580 <  # On the NeXT, cc -E runs the code through the compiler's parser,
3581 <  # not just through cpp. "Syntax error" is here to catch this case.
5659 > rm -f conftest*
5660 >
5661 > fi
5662 >
5663 > if test $ac_cv_header_stdc = yes; then
5664 >  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5665    cat >conftest.$ac_ext <<_ACEOF
5666 < #line 3583 "configure"
3584 < #include "confdefs.h"
3585 < #include <assert.h>
3586 <                     Syntax error
5666 > /* confdefs.h.  */
5667   _ACEOF
5668 < if { (eval echo "$as_me:3588: \"$ac_cpp conftest.$ac_ext\"") >&5
5669 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670 <  ac_status=$?
5671 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5672 <  rm -f conftest.er1
5673 <  cat conftest.err >&5
5674 <  echo "$as_me:3594: \$? = $ac_status" >&5
5675 <  (exit $ac_status); } >/dev/null; then
3596 <  if test -s conftest.err; then
3597 <    ac_cpp_err=$ac_c_preproc_warn_flag
3598 <  else
3599 <    ac_cpp_err=
3600 <  fi
3601 < else
3602 <  ac_cpp_err=yes
3603 < fi
3604 < if test -z "$ac_cpp_err"; then
5668 > cat confdefs.h >>conftest.$ac_ext
5669 > cat >>conftest.$ac_ext <<_ACEOF
5670 > /* end confdefs.h.  */
5671 > #include <stdlib.h>
5672 >
5673 > _ACEOF
5674 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 >  $EGREP "free" >/dev/null 2>&1; then
5676    :
5677   else
5678 <  echo "$as_me: failed program was:" >&5
3608 <  cat conftest.$ac_ext >&5
3609 <  # Broken: fails on valid input.
3610 < continue
5678 >  ac_cv_header_stdc=no
5679   fi
5680 < rm -f conftest.err conftest.$ac_ext
5680 > rm -f conftest*
5681  
5682 <  # OK, works on sane cases.  Now check whether non-existent headers
5683 <  # can be detected and how.
5682 > fi
5683 >
5684 > if test $ac_cv_header_stdc = yes; then
5685 >  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5686 >  if test "$cross_compiling" = yes; then
5687 >  :
5688 > else
5689    cat >conftest.$ac_ext <<_ACEOF
5690 < #line 3617 "configure"
3618 < #include "confdefs.h"
3619 < #include <ac_nonexistent.h>
5690 > /* confdefs.h.  */
5691   _ACEOF
5692 < if { (eval echo "$as_me:3621: \"$ac_cpp conftest.$ac_ext\"") >&5
5693 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5692 > cat confdefs.h >>conftest.$ac_ext
5693 > cat >>conftest.$ac_ext <<_ACEOF
5694 > /* end confdefs.h.  */
5695 > #include <ctype.h>
5696 > #if ((' ' & 0x0FF) == 0x020)
5697 > # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 > # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 > #else
5700 > # define ISLOWER(c) \
5701 >                   (('a' <= (c) && (c) <= 'i') \
5702 >                     || ('j' <= (c) && (c) <= 'r') \
5703 >                     || ('s' <= (c) && (c) <= 'z'))
5704 > # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5705 > #endif
5706 >
5707 > #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5708 > int
5709 > main ()
5710 > {
5711 >  int i;
5712 >  for (i = 0; i < 256; i++)
5713 >    if (XOR (islower (i), ISLOWER (i))
5714 >        || toupper (i) != TOUPPER (i))
5715 >      exit(2);
5716 >  exit (0);
5717 > }
5718 > _ACEOF
5719 > rm -f conftest$ac_exeext
5720 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 >  (eval $ac_link) 2>&5
5722    ac_status=$?
5723 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5724 <  rm -f conftest.er1
5725 <  cat conftest.err >&5
5726 <  echo "$as_me:3627: \$? = $ac_status" >&5
5727 <  (exit $ac_status); } >/dev/null; then
5728 <  if test -s conftest.err; then
5729 <    ac_cpp_err=$ac_c_preproc_warn_flag
5730 <  else
3632 <    ac_cpp_err=
3633 <  fi
5723 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5725 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 >  (eval $ac_try) 2>&5
5727 >  ac_status=$?
5728 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 >  (exit $ac_status); }; }; then
5730 >  :
5731   else
5732 <  ac_cpp_err=yes
5733 < fi
5734 < if test -z "$ac_cpp_err"; then
3638 <  # Broken: success on invalid input.
3639 < continue
3640 < else
3641 <  echo "$as_me: failed program was:" >&5
3642 <  cat conftest.$ac_ext >&5
3643 <  # Passes both tests.
3644 < ac_preproc_ok=:
3645 < break
3646 < fi
3647 < rm -f conftest.err conftest.$ac_ext
5732 >  echo "$as_me: program exited with status $ac_status" >&5
5733 > echo "$as_me: failed program was:" >&5
5734 > sed 's/^/| /' conftest.$ac_ext >&5
5735  
5736 + ( exit $ac_status )
5737 + ac_cv_header_stdc=no
5738 + fi
5739 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5740 + fi
5741 + fi
5742 + fi
5743 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5744 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
5745 + if test $ac_cv_header_stdc = yes; then
5746 +
5747 + cat >>confdefs.h <<\_ACEOF
5748 + #define STDC_HEADERS 1
5749 + _ACEOF
5750 +
5751 + fi
5752 +
5753 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5754 +
5755 +
5756 +
5757 +
5758 +
5759 +
5760 +
5761 +
5762 +
5763 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5764 +                  inttypes.h stdint.h unistd.h
5765 + do
5766 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767 + echo "$as_me:$LINENO: checking for $ac_header" >&5
5768 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5769 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
5770 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5771 + else
5772 +  cat >conftest.$ac_ext <<_ACEOF
5773 + /* confdefs.h.  */
5774 + _ACEOF
5775 + cat confdefs.h >>conftest.$ac_ext
5776 + cat >>conftest.$ac_ext <<_ACEOF
5777 + /* end confdefs.h.  */
5778 + $ac_includes_default
5779 +
5780 + #include <$ac_header>
5781 + _ACEOF
5782 + rm -f conftest.$ac_objext
5783 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 +  (eval $ac_compile) 2>conftest.er1
5785 +  ac_status=$?
5786 +  grep -v '^ *+' conftest.er1 >conftest.err
5787 +  rm -f conftest.er1
5788 +  cat conftest.err >&5
5789 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 +  (exit $ac_status); } &&
5791 +         { ac_try='test -z "$ac_c_werror_flag"
5792 +                         || test ! -s conftest.err'
5793 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 +  (eval $ac_try) 2>&5
5795 +  ac_status=$?
5796 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 +  (exit $ac_status); }; } &&
5798 +         { ac_try='test -s conftest.$ac_objext'
5799 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 +  (eval $ac_try) 2>&5
5801 +  ac_status=$?
5802 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 +  (exit $ac_status); }; }; then
5804 +  eval "$as_ac_Header=yes"
5805 + else
5806 +  echo "$as_me: failed program was:" >&5
5807 + sed 's/^/| /' conftest.$ac_ext >&5
5808 +
5809 + eval "$as_ac_Header=no"
5810 + fi
5811 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812 + fi
5813 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5814 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5815 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
5816 +  cat >>confdefs.h <<_ACEOF
5817 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 + _ACEOF
5819 +
5820 + fi
5821 +
5822   done
5823 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5824 < rm -f conftest.err conftest.$ac_ext
5825 < if $ac_preproc_ok; then
5826 <  :
5823 >
5824 >
5825 > #
5826 > # Handle user hints
5827 > #
5828 >
5829 > # Check whether --with-zlib or --without-zlib was given.
5830 > if test "${with_zlib+set}" = set; then
5831 >  withval="$with_zlib"
5832 >  zlib_dir="$withval"
5833   else
5834 <  { { echo "$as_me:3655: error: C preprocessor \"$CPP\" fails sanity check" >&5
5835 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5836 <   { (exit 1); exit 1; }; }
5834 >                zlib_dir="not_set"
5835 > fi;
5836 > if test "$zlib_dir" != "no"; then
5837 >
5838 > if test "$zlib_dir" != "not_set" ; then
5839 >  if test -d "$zlib_dir"
5840 >  then
5841 >    ZLIB_HOME="$zlib_dir"
5842 >  else
5843 >    { echo "$as_me:$LINENO: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&5
5844 > echo "$as_me: WARNING: Sorry, $zlib_dir does not exist, checking usual places" >&2;}
5845 >  fi
5846   fi
5847  
5848 < ac_ext=c
5848 > ZLIB_HOME=/usr/local
5849 > if test ! -f "${ZLIB_HOME}/include/zlib.h"
5850 > then
5851 >        ZLIB_HOME=/usr
5852 > fi
5853 >
5854 > #
5855 > # Locate zlib, if wanted
5856 > #
5857 > if test -n "${ZLIB_HOME}"
5858 > then
5859 >        ZLIB_OLD_LDFLAGS=$LDFLAGS
5860 >        ZLIB_OLD_CPPFLAGS=$LDFLAGS
5861 >        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5862 >        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5863 >
5864 >
5865 >        ac_ext=c
5866   ac_cpp='$CPP $CPPFLAGS'
5867   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870  
5871 < for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
5872 < do
5873 < ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3669 < echo "$as_me:3669: checking for $ac_header" >&5
3670 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3671 < if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5871 >        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5872 > echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5873 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5874    echo $ECHO_N "(cached) $ECHO_C" >&6
5875   else
5876 <  cat >conftest.$ac_ext <<_ACEOF
5877 < #line 3675 "configure"
5878 < #include "confdefs.h"
5879 < #include <$ac_header>
5876 >  ac_check_lib_save_LIBS=$LIBS
5877 > LIBS="-lz  $LIBS"
5878 > cat >conftest.$ac_ext <<_ACEOF
5879 > /* confdefs.h.  */
5880   _ACEOF
5881 < if { (eval echo "$as_me:3679: \"$ac_cpp conftest.$ac_ext\"") >&5
5881 > cat confdefs.h >>conftest.$ac_ext
5882 > cat >>conftest.$ac_ext <<_ACEOF
5883 > /* end confdefs.h.  */
5884 >
5885 > /* Override any gcc2 internal prototype to avoid an error.  */
5886 > #ifdef __cplusplus
5887 > extern "C"
5888 > #endif
5889 > /* We use char because int might match the return type of a gcc2
5890 >   builtin and then its argument prototype would still apply.  */
5891 > char inflateEnd ();
5892 > #ifdef FC_DUMMY_MAIN
5893 > #ifndef FC_DUMMY_MAIN_EQ_F77
5894 > #  ifdef __cplusplus
5895 >     extern "C"
5896 > #  endif
5897 >   int FC_DUMMY_MAIN() { return 1; }
5898 > #endif
5899 > #endif
5900 > int
5901 > main ()
5902 > {
5903 > inflateEnd ();
5904 >  ;
5905 >  return 0;
5906 > }
5907 > _ACEOF
5908 > rm -f conftest.$ac_objext conftest$ac_exeext
5909 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 >  (eval $ac_link) 2>conftest.er1
5911 >  ac_status=$?
5912 >  grep -v '^ *+' conftest.er1 >conftest.err
5913 >  rm -f conftest.er1
5914 >  cat conftest.err >&5
5915 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 >  (exit $ac_status); } &&
5917 >         { ac_try='test -z "$ac_c_werror_flag"
5918 >                         || test ! -s conftest.err'
5919 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 >  (eval $ac_try) 2>&5
5921 >  ac_status=$?
5922 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 >  (exit $ac_status); }; } &&
5924 >         { ac_try='test -s conftest$ac_exeext'
5925 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 >  (eval $ac_try) 2>&5
5927 >  ac_status=$?
5928 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 >  (exit $ac_status); }; }; then
5930 >  ac_cv_lib_z_inflateEnd=yes
5931 > else
5932 >  echo "$as_me: failed program was:" >&5
5933 > sed 's/^/| /' conftest.$ac_ext >&5
5934 >
5935 > ac_cv_lib_z_inflateEnd=no
5936 > fi
5937 > rm -f conftest.err conftest.$ac_objext \
5938 >      conftest$ac_exeext conftest.$ac_ext
5939 > LIBS=$ac_check_lib_save_LIBS
5940 > fi
5941 > echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5942 > echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5943 > if test $ac_cv_lib_z_inflateEnd = yes; then
5944 >  zlib_cv_libz=yes
5945 > else
5946 >  zlib_cv_libz=no
5947 > fi
5948 >
5949 >        if test "${ac_cv_header_zlib_h+set}" = set; then
5950 >  echo "$as_me:$LINENO: checking for zlib.h" >&5
5951 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5952 > if test "${ac_cv_header_zlib_h+set}" = set; then
5953 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5954 > fi
5955 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5956 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5957 > else
5958 >  # Is the header compilable?
5959 > echo "$as_me:$LINENO: checking zlib.h usability" >&5
5960 > echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5961 > cat >conftest.$ac_ext <<_ACEOF
5962 > /* confdefs.h.  */
5963 > _ACEOF
5964 > cat confdefs.h >>conftest.$ac_ext
5965 > cat >>conftest.$ac_ext <<_ACEOF
5966 > /* end confdefs.h.  */
5967 > $ac_includes_default
5968 > #include <zlib.h>
5969 > _ACEOF
5970 > rm -f conftest.$ac_objext
5971 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 >  (eval $ac_compile) 2>conftest.er1
5973 >  ac_status=$?
5974 >  grep -v '^ *+' conftest.er1 >conftest.err
5975 >  rm -f conftest.er1
5976 >  cat conftest.err >&5
5977 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 >  (exit $ac_status); } &&
5979 >         { ac_try='test -z "$ac_c_werror_flag"
5980 >                         || test ! -s conftest.err'
5981 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 >  (eval $ac_try) 2>&5
5983 >  ac_status=$?
5984 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 >  (exit $ac_status); }; } &&
5986 >         { ac_try='test -s conftest.$ac_objext'
5987 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 >  (eval $ac_try) 2>&5
5989 >  ac_status=$?
5990 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 >  (exit $ac_status); }; }; then
5992 >  ac_header_compiler=yes
5993 > else
5994 >  echo "$as_me: failed program was:" >&5
5995 > sed 's/^/| /' conftest.$ac_ext >&5
5996 >
5997 > ac_header_compiler=no
5998 > fi
5999 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6000 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6001 > echo "${ECHO_T}$ac_header_compiler" >&6
6002 >
6003 > # Is the header present?
6004 > echo "$as_me:$LINENO: checking zlib.h presence" >&5
6005 > echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
6006 > cat >conftest.$ac_ext <<_ACEOF
6007 > /* confdefs.h.  */
6008 > _ACEOF
6009 > cat confdefs.h >>conftest.$ac_ext
6010 > cat >>conftest.$ac_ext <<_ACEOF
6011 > /* end confdefs.h.  */
6012 > #include <zlib.h>
6013 > _ACEOF
6014 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6015    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6016    ac_status=$?
6017 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6017 >  grep -v '^ *+' conftest.er1 >conftest.err
6018    rm -f conftest.er1
6019    cat conftest.err >&5
6020 <  echo "$as_me:3685: \$? = $ac_status" >&5
6020 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021    (exit $ac_status); } >/dev/null; then
6022    if test -s conftest.err; then
6023      ac_cpp_err=$ac_c_preproc_warn_flag
6024 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6025    else
6026      ac_cpp_err=
6027    fi
# Line 3693 | Line 6029 | if test -z "$ac_cpp_err"; then
6029    ac_cpp_err=yes
6030   fi
6031   if test -z "$ac_cpp_err"; then
6032 <  eval "$ac_ac_Header=yes"
6032 >  ac_header_preproc=yes
6033   else
6034    echo "$as_me: failed program was:" >&5
6035 <  cat conftest.$ac_ext >&5
6036 <  eval "$ac_ac_Header=no"
6035 > sed 's/^/| /' conftest.$ac_ext >&5
6036 >
6037 >  ac_header_preproc=no
6038   fi
6039   rm -f conftest.err conftest.$ac_ext
6040 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6041 + echo "${ECHO_T}$ac_header_preproc" >&6
6042 +
6043 + # So?  What about this header?
6044 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6045 +  yes:no: )
6046 +    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6047 + echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6048 +    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
6049 + echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
6050 +    ac_header_preproc=yes
6051 +    ;;
6052 +  no:yes:* )
6053 +    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
6054 + echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
6055 +    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
6056 + echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
6057 +    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
6058 + echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
6059 +    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
6060 + echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6061 +    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
6062 + echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
6063 +    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
6064 + echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
6065 +    (
6066 +      cat <<\_ASBOX
6067 + ## ------------------------------ ##
6068 + ## Report this to gezelter@nd.edu ##
6069 + ## ------------------------------ ##
6070 + _ASBOX
6071 +    ) |
6072 +      sed "s/^/$as_me: WARNING:     /" >&2
6073 +    ;;
6074 + esac
6075 + echo "$as_me:$LINENO: checking for zlib.h" >&5
6076 + echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
6077 + if test "${ac_cv_header_zlib_h+set}" = set; then
6078 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6079 + else
6080 +  ac_cv_header_zlib_h=$ac_header_preproc
6081   fi
6082 < echo "$as_me:3704: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6083 < echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3706 < if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3707 <  cat >>confdefs.h <<EOF
3708 < #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3709 < EOF
6082 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6083 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
6084  
6085   fi
6086 < done
6086 > if test $ac_cv_header_zlib_h = yes; then
6087 >  zlib_cv_zlib_h=yes
6088 > else
6089 >  zlib_cv_zlib_h=no
6090 > fi
6091  
6092 < for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
6093 < do
6094 < ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6095 < echo "$as_me:3717: checking for $ac_func" >&5
6096 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6097 < if eval "test \"\${$ac_ac_var+set}\" = set"; then
6092 >
6093 >        ac_ext=c
6094 > ac_cpp='$CPP $CPPFLAGS'
6095 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 >
6099 >
6100 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"; then
6101 >
6102 > cat >>confdefs.h <<\_ACEOF
6103 > #define HAVE_ZLIB_H 1
6104 > _ACEOF
6105 >
6106 >
6107 > cat >>confdefs.h <<\_ACEOF
6108 > #define HAVE_LIBZ 1
6109 > _ACEOF
6110 >
6111 >                ZLIB_INC_DIR="${ZLIB_HOME}/include"
6112 >                ZLIB_LIB_DIR="${ZLIB_HOME}/lib"
6113 >                ZLIB="-lz"
6114 >        else
6115 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
6116 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
6117 >                ZLIB_INC_DIR=
6118 >                ZLIB_LIB_DIR=
6119 >                ZLIB=
6120 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
6121 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
6122 >                echo "$as_me:$LINENO: result: failed" >&5
6123 > echo "${ECHO_T}failed" >&6
6124 >                echo ""
6125 >                echo "*********************************************************"
6126 >                echo "* WARNING: Could not find a working zlib installation   *"
6127 >                echo "* If you need OOPSE to be able to deal with compressed  *"
6128 >                echo "* trajectory dump files be sure to specify a valid zlib *"
6129 >                echo "* installation with --with-zlib=DIR                     *"
6130 >                echo "*                                                       *"
6131 >                echo "* OOPSE will still work without zlib installed.         *"
6132 >                echo "*********************************************************"
6133 >                echo ""
6134 >        fi
6135 >
6136 >
6137 >
6138 > fi
6139 > fi
6140 >
6141 > #
6142 > # Handle user hints
6143 > #
6144 >
6145 > # Check whether --with-fftw or --without-fftw was given.
6146 > if test "${with_fftw+set}" = set; then
6147 >  withval="$with_fftw"
6148 >  fftw_dir="$withval"
6149 > else
6150 >             fftw_dir="not_set"
6151 > fi;
6152 > if test "$fftw_dir" != "no"; then
6153 >  if test "$fftw_dir" != "not_set" ; then
6154 >    if test -d "$fftw_dir"; then
6155 >      FFTW_HOME="$fftw_dir"
6156 >    else
6157 >      { echo "$as_me:$LINENO: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&5
6158 > echo "$as_me: WARNING: Sorry, $fftw_dir does not exist, checking usual places" >&2;}
6159 >      FFTW_HOME=/usr/local
6160 >      if test ! -f "${FFTW_HOME}/include/fftw3.h" -o -f "${FFTW_HOME}/include/fftw.h" -o  -f "${FFTW_HOME}/include/dfftw.h"; then
6161 >        FFTW_HOME=/usr
6162 >      fi
6163 >    fi
6164 >    #
6165 >    # Locate fftw, if wanted
6166 >    #
6167 >    if test -n "${FFTW_HOME}"; then
6168 >      FFTW_OLD_LDFLAGS=$LDFLAGS
6169 >      FFTW_OLD_CPPFLAGS=$LDFLAGS
6170 >      LDFLAGS="$LDFLAGS -L${FFTW_HOME}/lib"
6171 >      CPPFLAGS="$CPPFLAGS -I${FFTW_HOME}/include"
6172 >
6173 >
6174 >      ac_ext=c
6175 > ac_cpp='$CPP $CPPFLAGS'
6176 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179 >
6180 >      echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
6181 > echo $ECHO_N "checking for fftw_execute in -lfftw3... $ECHO_C" >&6
6182 > if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
6183    echo $ECHO_N "(cached) $ECHO_C" >&6
6184   else
6185 <  cat >conftest.$ac_ext <<_ACEOF
6186 < #line 3723 "configure"
6187 < #include "confdefs.h"
6188 < /* System header to define __stub macros and hopefully few prototypes,
6189 <    which can conflict with char $ac_func (); below.  */
6190 < #include <assert.h>
6185 >  ac_check_lib_save_LIBS=$LIBS
6186 > LIBS="-lfftw3  $LIBS"
6187 > cat >conftest.$ac_ext <<_ACEOF
6188 > /* confdefs.h.  */
6189 > _ACEOF
6190 > cat confdefs.h >>conftest.$ac_ext
6191 > cat >>conftest.$ac_ext <<_ACEOF
6192 > /* end confdefs.h.  */
6193 >
6194   /* Override any gcc2 internal prototype to avoid an error.  */
6195   #ifdef __cplusplus
6196   extern "C"
6197   #endif
6198   /* We use char because int might match the return type of a gcc2
6199     builtin and then its argument prototype would still apply.  */
6200 < char $ac_func ();
6201 < char (*f) ();
6202 <
6200 > char fftw_execute ();
6201 > #ifdef FC_DUMMY_MAIN
6202 > #ifndef FC_DUMMY_MAIN_EQ_F77
6203 > #  ifdef __cplusplus
6204 >     extern "C"
6205 > #  endif
6206 >   int FC_DUMMY_MAIN() { return 1; }
6207 > #endif
6208 > #endif
6209   int
6210   main ()
6211   {
6212 < /* The GNU C library defines this for functions which it implements
3741 <    to always fail with ENOSYS.  Some functions are actually named
3742 <    something starting with __ and the normal name is an alias.  */
3743 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3744 < choke me
3745 < #else
3746 < f = $ac_func;
3747 < #endif
3748 <
6212 > fftw_execute ();
6213    ;
6214    return 0;
6215   }
6216   _ACEOF
6217   rm -f conftest.$ac_objext conftest$ac_exeext
6218 < if { (eval echo "$as_me:3754: \"$ac_link\"") >&5
6219 <  (eval $ac_link) 2>&5
6218 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6219 >  (eval $ac_link) 2>conftest.er1
6220    ac_status=$?
6221 <  echo "$as_me:3757: \$? = $ac_status" >&5
6221 >  grep -v '^ *+' conftest.er1 >conftest.err
6222 >  rm -f conftest.er1
6223 >  cat conftest.err >&5
6224 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225    (exit $ac_status); } &&
6226 <         { ac_try='test -s conftest$ac_exeext'
6227 <  { (eval echo "$as_me:3760: \"$ac_try\"") >&5
6226 >         { ac_try='test -z "$ac_c_werror_flag"
6227 >                         || test ! -s conftest.err'
6228 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229    (eval $ac_try) 2>&5
6230    ac_status=$?
6231 <  echo "$as_me:3763: \$? = $ac_status" >&5
6231 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 >  (exit $ac_status); }; } &&
6233 >         { ac_try='test -s conftest$ac_exeext'
6234 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 >  (eval $ac_try) 2>&5
6236 >  ac_status=$?
6237 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238    (exit $ac_status); }; }; then
6239 <  eval "$ac_ac_var=yes"
6239 >  ac_cv_lib_fftw3_fftw_execute=yes
6240   else
6241    echo "$as_me: failed program was:" >&5
6242 < cat conftest.$ac_ext >&5
6243 < eval "$ac_ac_var=no"
6242 > sed 's/^/| /' conftest.$ac_ext >&5
6243 >
6244 > ac_cv_lib_fftw3_fftw_execute=no
6245   fi
6246 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246 > rm -f conftest.err conftest.$ac_objext \
6247 >      conftest$ac_exeext conftest.$ac_ext
6248 > LIBS=$ac_check_lib_save_LIBS
6249   fi
6250 < echo "$as_me:3773: result: `eval echo '${'$ac_ac_var'}'`" >&5
6251 < echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6252 < if test `eval echo '${'$ac_ac_var'}'` = yes; then
6253 <  cat >>confdefs.h <<EOF
6254 < #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6255 < EOF
3779 <
6250 > echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
6251 > echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_execute" >&6
6252 > if test $ac_cv_lib_fftw3_fftw_execute = yes; then
6253 >  fftw_cv_libfftw3=yes
6254 > else
6255 >  fftw_cv_libfftw3=no
6256   fi
3781 done
6257  
6258 < # special check for _system_configuration because AIX <4.3.2 do not
6259 < # contain the `physmem' member.
6260 < echo "$as_me:3785: checking for external symbol _system_configuration" >&5
6261 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6258 >      if test "${ac_cv_header_fftw3_h+set}" = set; then
6259 >  echo "$as_me:$LINENO: checking for fftw3.h" >&5
6260 > echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6261 > if test "${ac_cv_header_fftw3_h+set}" = set; then
6262 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6263 > fi
6264 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6265 > echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6266 > else
6267 >  # Is the header compilable?
6268 > echo "$as_me:$LINENO: checking fftw3.h usability" >&5
6269 > echo $ECHO_N "checking fftw3.h usability... $ECHO_C" >&6
6270   cat >conftest.$ac_ext <<_ACEOF
6271 < #line 3788 "configure"
3789 < #include "confdefs.h"
3790 < #include <sys/systemcfg.h>
3791 < int
3792 < main ()
3793 < {
3794 < double x = _system_configuration.physmem;
3795 <  ;
3796 <  return 0;
3797 < }
6271 > /* confdefs.h.  */
6272   _ACEOF
6273 + cat confdefs.h >>conftest.$ac_ext
6274 + cat >>conftest.$ac_ext <<_ACEOF
6275 + /* end confdefs.h.  */
6276 + $ac_includes_default
6277 + #include <fftw3.h>
6278 + _ACEOF
6279   rm -f conftest.$ac_objext
6280 < if { (eval echo "$as_me:3800: \"$ac_compile\"") >&5
6281 <  (eval $ac_compile) 2>&5
6280 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 >  (eval $ac_compile) 2>conftest.er1
6282    ac_status=$?
6283 <  echo "$as_me:3803: \$? = $ac_status" >&5
6283 >  grep -v '^ *+' conftest.er1 >conftest.err
6284 >  rm -f conftest.er1
6285 >  cat conftest.err >&5
6286 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287    (exit $ac_status); } &&
6288 <         { ac_try='test -s conftest.$ac_objext'
6289 <  { (eval echo "$as_me:3806: \"$ac_try\"") >&5
6288 >         { ac_try='test -z "$ac_c_werror_flag"
6289 >                         || test ! -s conftest.err'
6290 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291    (eval $ac_try) 2>&5
6292    ac_status=$?
6293 <  echo "$as_me:3809: \$? = $ac_status" >&5
6293 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 >  (exit $ac_status); }; } &&
6295 >         { ac_try='test -s conftest.$ac_objext'
6296 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 >  (eval $ac_try) 2>&5
6298 >  ac_status=$?
6299 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300    (exit $ac_status); }; }; then
6301 <  echo "$as_me:3811: result: yes" >&5
3812 < echo "${ECHO_T}yes" >&6
3813 <
3814 < cat >>confdefs.h <<\EOF
3815 < #define HAVE__SYSTEM_CONFIGURATION 1
3816 < EOF
3817 <
6301 >  ac_header_compiler=yes
6302   else
6303    echo "$as_me: failed program was:" >&5
6304 < cat conftest.$ac_ext >&5
6305 < echo "$as_me:3821: result: no" >&5
6306 < echo "${ECHO_T}no" >&6
6304 > sed 's/^/| /' conftest.$ac_ext >&5
6305 >
6306 > ac_header_compiler=no
6307   fi
6308 < rm -f conftest.$ac_objext conftest.$ac_ext
6308 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6310 > echo "${ECHO_T}$ac_header_compiler" >&6
6311  
6312 <  # clean out junk possibly left behind by a previous configuration
6313 <  rm -f src/getopt.h
6314 <  # Check for getopt_long support
6315 <
6316 < for ac_header in getopt.h
3831 < do
3832 < ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3833 < echo "$as_me:3833: checking for $ac_header" >&5
3834 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3835 < if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3836 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3837 < else
3838 <  cat >conftest.$ac_ext <<_ACEOF
3839 < #line 3839 "configure"
3840 < #include "confdefs.h"
3841 < #include <$ac_header>
6312 > # Is the header present?
6313 > echo "$as_me:$LINENO: checking fftw3.h presence" >&5
6314 > echo $ECHO_N "checking fftw3.h presence... $ECHO_C" >&6
6315 > cat >conftest.$ac_ext <<_ACEOF
6316 > /* confdefs.h.  */
6317   _ACEOF
6318 < if { (eval echo "$as_me:3843: \"$ac_cpp conftest.$ac_ext\"") >&5
6318 > cat confdefs.h >>conftest.$ac_ext
6319 > cat >>conftest.$ac_ext <<_ACEOF
6320 > /* end confdefs.h.  */
6321 > #include <fftw3.h>
6322 > _ACEOF
6323 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6324    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6325    ac_status=$?
6326 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6326 >  grep -v '^ *+' conftest.er1 >conftest.err
6327    rm -f conftest.er1
6328    cat conftest.err >&5
6329 <  echo "$as_me:3849: \$? = $ac_status" >&5
6329 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330    (exit $ac_status); } >/dev/null; then
6331    if test -s conftest.err; then
6332      ac_cpp_err=$ac_c_preproc_warn_flag
6333 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6334    else
6335      ac_cpp_err=
6336    fi
# Line 3857 | Line 6338 | if test -z "$ac_cpp_err"; then
6338    ac_cpp_err=yes
6339   fi
6340   if test -z "$ac_cpp_err"; then
6341 <  eval "$ac_ac_Header=yes"
6341 >  ac_header_preproc=yes
6342   else
6343    echo "$as_me: failed program was:" >&5
6344 <  cat conftest.$ac_ext >&5
6345 <  eval "$ac_ac_Header=no"
6344 > sed 's/^/| /' conftest.$ac_ext >&5
6345 >
6346 >  ac_header_preproc=no
6347   fi
6348   rm -f conftest.err conftest.$ac_ext
6349 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6350 + echo "${ECHO_T}$ac_header_preproc" >&6
6351 +
6352 + # So?  What about this header?
6353 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6354 +  yes:no: )
6355 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
6356 + echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6357 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
6358 + echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
6359 +    ac_header_preproc=yes
6360 +    ;;
6361 +  no:yes:* )
6362 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
6363 + echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
6364 +    { echo "$as_me:$LINENO: WARNING: fftw3.h:     check for missing prerequisite headers?" >&5
6365 + echo "$as_me: WARNING: fftw3.h:     check for missing prerequisite headers?" >&2;}
6366 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
6367 + echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
6368 +    { echo "$as_me:$LINENO: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&5
6369 + echo "$as_me: WARNING: fftw3.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6370 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
6371 + echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
6372 +    { echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
6373 + echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
6374 +    (
6375 +      cat <<\_ASBOX
6376 + ## ------------------------------ ##
6377 + ## Report this to gezelter@nd.edu ##
6378 + ## ------------------------------ ##
6379 + _ASBOX
6380 +    ) |
6381 +      sed "s/^/$as_me: WARNING:     /" >&2
6382 +    ;;
6383 + esac
6384 + echo "$as_me:$LINENO: checking for fftw3.h" >&5
6385 + echo $ECHO_N "checking for fftw3.h... $ECHO_C" >&6
6386 + if test "${ac_cv_header_fftw3_h+set}" = set; then
6387 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6388 + else
6389 +  ac_cv_header_fftw3_h=$ac_header_preproc
6390   fi
6391 < echo "$as_me:3868: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6392 < echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3870 < if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3871 <  cat >>confdefs.h <<EOF
3872 < #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3873 < EOF
6391 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
6392 > echo "${ECHO_T}$ac_cv_header_fftw3_h" >&6
6393  
6394   fi
6395 < done
6395 > if test $ac_cv_header_fftw3_h = yes; then
6396 >  fftw_cv_fftw3_h=yes
6397 > else
6398 >  fftw_cv_fftw3_h=no
6399 > fi
6400  
6401 < for ac_func in getopt_long
6402 < do
6403 < ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6404 < echo "$as_me:3881: checking for $ac_func" >&5
6405 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3883 < if eval "test \"\${$ac_ac_var+set}\" = set"; then
6401 >
6402 >      if test "$fftw_cv_libfftw3" = "no" -o "$fftw_cv_fftw3_h" = "no"; then
6403 >        echo "$as_me:$LINENO: checking for fftwnd_one in -lfftw" >&5
6404 > echo $ECHO_N "checking for fftwnd_one in -lfftw... $ECHO_C" >&6
6405 > if test "${ac_cv_lib_fftw_fftwnd_one+set}" = set; then
6406    echo $ECHO_N "(cached) $ECHO_C" >&6
6407   else
6408 <  cat >conftest.$ac_ext <<_ACEOF
6409 < #line 3887 "configure"
6410 < #include "confdefs.h"
6411 < /* System header to define __stub macros and hopefully few prototypes,
6412 <    which can conflict with char $ac_func (); below.  */
6413 < #include <assert.h>
6408 >  ac_check_lib_save_LIBS=$LIBS
6409 > LIBS="-lfftw  $LIBS"
6410 > cat >conftest.$ac_ext <<_ACEOF
6411 > /* confdefs.h.  */
6412 > _ACEOF
6413 > cat confdefs.h >>conftest.$ac_ext
6414 > cat >>conftest.$ac_ext <<_ACEOF
6415 > /* end confdefs.h.  */
6416 >
6417   /* Override any gcc2 internal prototype to avoid an error.  */
6418   #ifdef __cplusplus
6419   extern "C"
6420   #endif
6421   /* We use char because int might match the return type of a gcc2
6422     builtin and then its argument prototype would still apply.  */
6423 < char $ac_func ();
6424 < char (*f) ();
6425 <
6423 > char fftwnd_one ();
6424 > #ifdef FC_DUMMY_MAIN
6425 > #ifndef FC_DUMMY_MAIN_EQ_F77
6426 > #  ifdef __cplusplus
6427 >     extern "C"
6428 > #  endif
6429 >   int FC_DUMMY_MAIN() { return 1; }
6430 > #endif
6431 > #endif
6432   int
6433   main ()
6434   {
6435 < /* The GNU C library defines this for functions which it implements
3905 <    to always fail with ENOSYS.  Some functions are actually named
3906 <    something starting with __ and the normal name is an alias.  */
3907 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3908 < choke me
3909 < #else
3910 < f = $ac_func;
3911 < #endif
3912 <
6435 > fftwnd_one ();
6436    ;
6437    return 0;
6438   }
6439   _ACEOF
6440   rm -f conftest.$ac_objext conftest$ac_exeext
6441 < if { (eval echo "$as_me:3918: \"$ac_link\"") >&5
6442 <  (eval $ac_link) 2>&5
6441 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 >  (eval $ac_link) 2>conftest.er1
6443    ac_status=$?
6444 <  echo "$as_me:3921: \$? = $ac_status" >&5
6444 >  grep -v '^ *+' conftest.er1 >conftest.err
6445 >  rm -f conftest.er1
6446 >  cat conftest.err >&5
6447 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448    (exit $ac_status); } &&
6449 <         { ac_try='test -s conftest$ac_exeext'
6450 <  { (eval echo "$as_me:3924: \"$ac_try\"") >&5
6451 <  (eval $ac_try) 2>&5
6452 <  ac_status=$?
6453 <  echo "$as_me:3927: \$? = $ac_status" >&5
6454 <  (exit $ac_status); }; }; then
6455 <  eval "$ac_ac_var=yes"
6456 < else
6457 <  echo "$as_me: failed program was:" >&5
6458 < cat conftest.$ac_ext >&5
6459 < eval "$ac_ac_var=no"
6460 < fi
6461 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6462 < fi
6463 < echo "$as_me:3937: result: `eval echo '${'$ac_ac_var'}'`" >&5
6464 < echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6465 < if test `eval echo '${'$ac_ac_var'}'` = yes; then
6466 <  cat >>confdefs.h <<EOF
6467 < #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6468 < EOF
6469 <
6449 >         { ac_try='test -z "$ac_c_werror_flag"
6450 >                         || test ! -s conftest.err'
6451 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 >  (eval $ac_try) 2>&5
6453 >  ac_status=$?
6454 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 >  (exit $ac_status); }; } &&
6456 >         { ac_try='test -s conftest$ac_exeext'
6457 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 >  (eval $ac_try) 2>&5
6459 >  ac_status=$?
6460 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 >  (exit $ac_status); }; }; then
6462 >  ac_cv_lib_fftw_fftwnd_one=yes
6463 > else
6464 >  echo "$as_me: failed program was:" >&5
6465 > sed 's/^/| /' conftest.$ac_ext >&5
6466 >
6467 > ac_cv_lib_fftw_fftwnd_one=no
6468 > fi
6469 > rm -f conftest.err conftest.$ac_objext \
6470 >      conftest$ac_exeext conftest.$ac_ext
6471 > LIBS=$ac_check_lib_save_LIBS
6472 > fi
6473 > echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftwnd_one" >&5
6474 > echo "${ECHO_T}$ac_cv_lib_fftw_fftwnd_one" >&6
6475 > if test $ac_cv_lib_fftw_fftwnd_one = yes; then
6476 >  fftw_cv_libfftw=yes
6477 > else
6478 >  fftw_cv_libfftw=no
6479 > fi
6480 >
6481 >        if test "${ac_cv_header_fftw_h+set}" = set; then
6482 >  echo "$as_me:$LINENO: checking for fftw.h" >&5
6483 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6484 > if test "${ac_cv_header_fftw_h+set}" = set; then
6485 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6486 > fi
6487 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6488 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6489 > else
6490 >  # Is the header compilable?
6491 > echo "$as_me:$LINENO: checking fftw.h usability" >&5
6492 > echo $ECHO_N "checking fftw.h usability... $ECHO_C" >&6
6493 > cat >conftest.$ac_ext <<_ACEOF
6494 > /* confdefs.h.  */
6495 > _ACEOF
6496 > cat confdefs.h >>conftest.$ac_ext
6497 > cat >>conftest.$ac_ext <<_ACEOF
6498 > /* end confdefs.h.  */
6499 > $ac_includes_default
6500 > #include <fftw.h>
6501 > _ACEOF
6502 > rm -f conftest.$ac_objext
6503 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 >  (eval $ac_compile) 2>conftest.er1
6505 >  ac_status=$?
6506 >  grep -v '^ *+' conftest.er1 >conftest.err
6507 >  rm -f conftest.er1
6508 >  cat conftest.err >&5
6509 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 >  (exit $ac_status); } &&
6511 >         { ac_try='test -z "$ac_c_werror_flag"
6512 >                         || test ! -s conftest.err'
6513 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 >  (eval $ac_try) 2>&5
6515 >  ac_status=$?
6516 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 >  (exit $ac_status); }; } &&
6518 >         { ac_try='test -s conftest.$ac_objext'
6519 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 >  (eval $ac_try) 2>&5
6521 >  ac_status=$?
6522 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 >  (exit $ac_status); }; }; then
6524 >  ac_header_compiler=yes
6525 > else
6526 >  echo "$as_me: failed program was:" >&5
6527 > sed 's/^/| /' conftest.$ac_ext >&5
6528 >
6529 > ac_header_compiler=no
6530 > fi
6531 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6532 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6533 > echo "${ECHO_T}$ac_header_compiler" >&6
6534 >
6535 > # Is the header present?
6536 > echo "$as_me:$LINENO: checking fftw.h presence" >&5
6537 > echo $ECHO_N "checking fftw.h presence... $ECHO_C" >&6
6538 > cat >conftest.$ac_ext <<_ACEOF
6539 > /* confdefs.h.  */
6540 > _ACEOF
6541 > cat confdefs.h >>conftest.$ac_ext
6542 > cat >>conftest.$ac_ext <<_ACEOF
6543 > /* end confdefs.h.  */
6544 > #include <fftw.h>
6545 > _ACEOF
6546 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6547 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6548 >  ac_status=$?
6549 >  grep -v '^ *+' conftest.er1 >conftest.err
6550 >  rm -f conftest.er1
6551 >  cat conftest.err >&5
6552 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 >  (exit $ac_status); } >/dev/null; then
6554 >  if test -s conftest.err; then
6555 >    ac_cpp_err=$ac_c_preproc_warn_flag
6556 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6557 >  else
6558 >    ac_cpp_err=
6559 >  fi
6560 > else
6561 >  ac_cpp_err=yes
6562 > fi
6563 > if test -z "$ac_cpp_err"; then
6564 >  ac_header_preproc=yes
6565 > else
6566 >  echo "$as_me: failed program was:" >&5
6567 > sed 's/^/| /' conftest.$ac_ext >&5
6568 >
6569 >  ac_header_preproc=no
6570 > fi
6571 > rm -f conftest.err conftest.$ac_ext
6572 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6573 > echo "${ECHO_T}$ac_header_preproc" >&6
6574 >
6575 > # So?  What about this header?
6576 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6577 >  yes:no: )
6578 >    { echo "$as_me:$LINENO: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6579 > echo "$as_me: WARNING: fftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6580 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the compiler's result" >&5
6581 > echo "$as_me: WARNING: fftw.h: proceeding with the compiler's result" >&2;}
6582 >    ac_header_preproc=yes
6583 >    ;;
6584 >  no:yes:* )
6585 >    { echo "$as_me:$LINENO: WARNING: fftw.h: present but cannot be compiled" >&5
6586 > echo "$as_me: WARNING: fftw.h: present but cannot be compiled" >&2;}
6587 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     check for missing prerequisite headers?" >&5
6588 > echo "$as_me: WARNING: fftw.h:     check for missing prerequisite headers?" >&2;}
6589 >    { echo "$as_me:$LINENO: WARNING: fftw.h: see the Autoconf documentation" >&5
6590 > echo "$as_me: WARNING: fftw.h: see the Autoconf documentation" >&2;}
6591 >    { echo "$as_me:$LINENO: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6592 > echo "$as_me: WARNING: fftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6593 >    { echo "$as_me:$LINENO: WARNING: fftw.h: proceeding with the preprocessor's result" >&5
6594 > echo "$as_me: WARNING: fftw.h: proceeding with the preprocessor's result" >&2;}
6595 >    { echo "$as_me:$LINENO: WARNING: fftw.h: in the future, the compiler will take precedence" >&5
6596 > echo "$as_me: WARNING: fftw.h: in the future, the compiler will take precedence" >&2;}
6597 >    (
6598 >      cat <<\_ASBOX
6599 > ## ------------------------------ ##
6600 > ## Report this to gezelter@nd.edu ##
6601 > ## ------------------------------ ##
6602 > _ASBOX
6603 >    ) |
6604 >      sed "s/^/$as_me: WARNING:     /" >&2
6605 >    ;;
6606 > esac
6607 > echo "$as_me:$LINENO: checking for fftw.h" >&5
6608 > echo $ECHO_N "checking for fftw.h... $ECHO_C" >&6
6609 > if test "${ac_cv_header_fftw_h+set}" = set; then
6610 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6611 > else
6612 >  ac_cv_header_fftw_h=$ac_header_preproc
6613 > fi
6614 > echo "$as_me:$LINENO: result: $ac_cv_header_fftw_h" >&5
6615 > echo "${ECHO_T}$ac_cv_header_fftw_h" >&6
6616 >
6617 > fi
6618 > if test $ac_cv_header_fftw_h = yes; then
6619 >  fftw_cv_fftw_h=yes
6620 > else
6621 >  fftw_cv_fftw_h=no
6622 > fi
6623 >
6624 >
6625 >        if test "$fftw_cv_libfftw" = "no" -o "$fftw_cv_fftw_h" = "no"; then
6626 >          echo "$as_me:$LINENO: checking for fftwnd_one in -ldfftw" >&5
6627 > echo $ECHO_N "checking for fftwnd_one in -ldfftw... $ECHO_C" >&6
6628 > if test "${ac_cv_lib_dfftw_fftwnd_one+set}" = set; then
6629 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6630 > else
6631 >  ac_check_lib_save_LIBS=$LIBS
6632 > LIBS="-ldfftw  $LIBS"
6633 > cat >conftest.$ac_ext <<_ACEOF
6634 > /* confdefs.h.  */
6635 > _ACEOF
6636 > cat confdefs.h >>conftest.$ac_ext
6637 > cat >>conftest.$ac_ext <<_ACEOF
6638 > /* end confdefs.h.  */
6639 >
6640 > /* Override any gcc2 internal prototype to avoid an error.  */
6641 > #ifdef __cplusplus
6642 > extern "C"
6643 > #endif
6644 > /* We use char because int might match the return type of a gcc2
6645 >   builtin and then its argument prototype would still apply.  */
6646 > char fftwnd_one ();
6647 > #ifdef FC_DUMMY_MAIN
6648 > #ifndef FC_DUMMY_MAIN_EQ_F77
6649 > #  ifdef __cplusplus
6650 >     extern "C"
6651 > #  endif
6652 >   int FC_DUMMY_MAIN() { return 1; }
6653 > #endif
6654 > #endif
6655 > int
6656 > main ()
6657 > {
6658 > fftwnd_one ();
6659 >  ;
6660 >  return 0;
6661 > }
6662 > _ACEOF
6663 > rm -f conftest.$ac_objext conftest$ac_exeext
6664 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665 >  (eval $ac_link) 2>conftest.er1
6666 >  ac_status=$?
6667 >  grep -v '^ *+' conftest.er1 >conftest.err
6668 >  rm -f conftest.er1
6669 >  cat conftest.err >&5
6670 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 >  (exit $ac_status); } &&
6672 >         { ac_try='test -z "$ac_c_werror_flag"
6673 >                         || test ! -s conftest.err'
6674 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 >  (eval $ac_try) 2>&5
6676 >  ac_status=$?
6677 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 >  (exit $ac_status); }; } &&
6679 >         { ac_try='test -s conftest$ac_exeext'
6680 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 >  (eval $ac_try) 2>&5
6682 >  ac_status=$?
6683 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 >  (exit $ac_status); }; }; then
6685 >  ac_cv_lib_dfftw_fftwnd_one=yes
6686 > else
6687 >  echo "$as_me: failed program was:" >&5
6688 > sed 's/^/| /' conftest.$ac_ext >&5
6689 >
6690 > ac_cv_lib_dfftw_fftwnd_one=no
6691 > fi
6692 > rm -f conftest.err conftest.$ac_objext \
6693 >      conftest$ac_exeext conftest.$ac_ext
6694 > LIBS=$ac_check_lib_save_LIBS
6695 > fi
6696 > echo "$as_me:$LINENO: result: $ac_cv_lib_dfftw_fftwnd_one" >&5
6697 > echo "${ECHO_T}$ac_cv_lib_dfftw_fftwnd_one" >&6
6698 > if test $ac_cv_lib_dfftw_fftwnd_one = yes; then
6699 >  fftw_cv_libdfftw=yes
6700 > else
6701 >  fftw_cv_libdfftw=no
6702 > fi
6703 >
6704 >          if test "${ac_cv_header_dfftw_h+set}" = set; then
6705 >  echo "$as_me:$LINENO: checking for dfftw.h" >&5
6706 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6707 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6708 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6709 > fi
6710 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6711 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6712 > else
6713 >  # Is the header compilable?
6714 > echo "$as_me:$LINENO: checking dfftw.h usability" >&5
6715 > echo $ECHO_N "checking dfftw.h usability... $ECHO_C" >&6
6716 > cat >conftest.$ac_ext <<_ACEOF
6717 > /* confdefs.h.  */
6718 > _ACEOF
6719 > cat confdefs.h >>conftest.$ac_ext
6720 > cat >>conftest.$ac_ext <<_ACEOF
6721 > /* end confdefs.h.  */
6722 > $ac_includes_default
6723 > #include <dfftw.h>
6724 > _ACEOF
6725 > rm -f conftest.$ac_objext
6726 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727 >  (eval $ac_compile) 2>conftest.er1
6728 >  ac_status=$?
6729 >  grep -v '^ *+' conftest.er1 >conftest.err
6730 >  rm -f conftest.er1
6731 >  cat conftest.err >&5
6732 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 >  (exit $ac_status); } &&
6734 >         { ac_try='test -z "$ac_c_werror_flag"
6735 >                         || test ! -s conftest.err'
6736 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 >  (eval $ac_try) 2>&5
6738 >  ac_status=$?
6739 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 >  (exit $ac_status); }; } &&
6741 >         { ac_try='test -s conftest.$ac_objext'
6742 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 >  (eval $ac_try) 2>&5
6744 >  ac_status=$?
6745 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 >  (exit $ac_status); }; }; then
6747 >  ac_header_compiler=yes
6748 > else
6749 >  echo "$as_me: failed program was:" >&5
6750 > sed 's/^/| /' conftest.$ac_ext >&5
6751 >
6752 > ac_header_compiler=no
6753 > fi
6754 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6755 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6756 > echo "${ECHO_T}$ac_header_compiler" >&6
6757 >
6758 > # Is the header present?
6759 > echo "$as_me:$LINENO: checking dfftw.h presence" >&5
6760 > echo $ECHO_N "checking dfftw.h presence... $ECHO_C" >&6
6761 > cat >conftest.$ac_ext <<_ACEOF
6762 > /* confdefs.h.  */
6763 > _ACEOF
6764 > cat confdefs.h >>conftest.$ac_ext
6765 > cat >>conftest.$ac_ext <<_ACEOF
6766 > /* end confdefs.h.  */
6767 > #include <dfftw.h>
6768 > _ACEOF
6769 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6770 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6771 >  ac_status=$?
6772 >  grep -v '^ *+' conftest.er1 >conftest.err
6773 >  rm -f conftest.er1
6774 >  cat conftest.err >&5
6775 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 >  (exit $ac_status); } >/dev/null; then
6777 >  if test -s conftest.err; then
6778 >    ac_cpp_err=$ac_c_preproc_warn_flag
6779 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6780 >  else
6781 >    ac_cpp_err=
6782 >  fi
6783 > else
6784 >  ac_cpp_err=yes
6785 > fi
6786 > if test -z "$ac_cpp_err"; then
6787 >  ac_header_preproc=yes
6788 > else
6789 >  echo "$as_me: failed program was:" >&5
6790 > sed 's/^/| /' conftest.$ac_ext >&5
6791 >
6792 >  ac_header_preproc=no
6793 > fi
6794 > rm -f conftest.err conftest.$ac_ext
6795 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796 > echo "${ECHO_T}$ac_header_preproc" >&6
6797 >
6798 > # So?  What about this header?
6799 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6800 >  yes:no: )
6801 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&5
6802 > echo "$as_me: WARNING: dfftw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the compiler's result" >&5
6804 > echo "$as_me: WARNING: dfftw.h: proceeding with the compiler's result" >&2;}
6805 >    ac_header_preproc=yes
6806 >    ;;
6807 >  no:yes:* )
6808 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: present but cannot be compiled" >&5
6809 > echo "$as_me: WARNING: dfftw.h: present but cannot be compiled" >&2;}
6810 >    { echo "$as_me:$LINENO: WARNING: dfftw.h:     check for missing prerequisite headers?" >&5
6811 > echo "$as_me: WARNING: dfftw.h:     check for missing prerequisite headers?" >&2;}
6812 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: see the Autoconf documentation" >&5
6813 > echo "$as_me: WARNING: dfftw.h: see the Autoconf documentation" >&2;}
6814 >    { echo "$as_me:$LINENO: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&5
6815 > echo "$as_me: WARNING: dfftw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6816 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: proceeding with the preprocessor's result" >&5
6817 > echo "$as_me: WARNING: dfftw.h: proceeding with the preprocessor's result" >&2;}
6818 >    { echo "$as_me:$LINENO: WARNING: dfftw.h: in the future, the compiler will take precedence" >&5
6819 > echo "$as_me: WARNING: dfftw.h: in the future, the compiler will take precedence" >&2;}
6820 >    (
6821 >      cat <<\_ASBOX
6822 > ## ------------------------------ ##
6823 > ## Report this to gezelter@nd.edu ##
6824 > ## ------------------------------ ##
6825 > _ASBOX
6826 >    ) |
6827 >      sed "s/^/$as_me: WARNING:     /" >&2
6828 >    ;;
6829 > esac
6830 > echo "$as_me:$LINENO: checking for dfftw.h" >&5
6831 > echo $ECHO_N "checking for dfftw.h... $ECHO_C" >&6
6832 > if test "${ac_cv_header_dfftw_h+set}" = set; then
6833 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6834 > else
6835 >  ac_cv_header_dfftw_h=$ac_header_preproc
6836 > fi
6837 > echo "$as_me:$LINENO: result: $ac_cv_header_dfftw_h" >&5
6838 > echo "${ECHO_T}$ac_cv_header_dfftw_h" >&6
6839 >
6840 > fi
6841 > if test $ac_cv_header_dfftw_h = yes; then
6842 >  fftw_cv_dfftw_h=yes
6843 > else
6844 >  fftw_cv_dfftw_h=no
6845 > fi
6846 >
6847 >
6848 >        fi
6849 >      fi
6850 >      ac_ext=c
6851 > ac_cpp='$CPP $CPPFLAGS'
6852 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6855 >
6856 >      if test "$fftw_cv_libfftw3" = "yes" -a "$fftw_cv_fftw3_h" = "yes"; then
6857 >
6858 > cat >>confdefs.h <<\_ACEOF
6859 > #define HAVE_FFTW3_H 1
6860 > _ACEOF
6861 >
6862 >        FFTW_INC_DIR="${FFTW_HOME}/include"
6863 >        FFTW_LIB_DIR="${FFTW_HOME}/lib"
6864 >        FFTW_LIBS="-lfftw3"
6865 >      else
6866 >        if test "$fftw_cv_libfftw" = "yes" -a "$fftw_cv_fftw_h" = "yes"; then
6867 >
6868 > cat >>confdefs.h <<\_ACEOF
6869 > #define HAVE_FFTW_H 1
6870 > _ACEOF
6871 >
6872 >          FFTW_INC_DIR="${FFTW_HOME}/include"
6873 >          FFTW_LIB_DIR="${FFTW_HOME}/lib"
6874 >          FFTW_LIBS="-lfftw"
6875 >        else
6876 >          if test "$fftw_cv_libdfftw" = "yes" -a "$fftw_cv_dfftw_h" = "yes"; then
6877 >
6878 > cat >>confdefs.h <<\_ACEOF
6879 > #define HAVE_DFFTW_H 1
6880 > _ACEOF
6881 >
6882 >            FFTW_INC_DIR="${FFTW_HOME}/include"
6883 >            FFTW_LIB_DIR="${FFTW_HOME}/lib"
6884 >            FFTW_LIBS="-ldfftw"
6885 >          else
6886 >            echo "$as_me:$LINENO: checking fftw in ${FFTW_HOME}" >&5
6887 > echo $ECHO_N "checking fftw in ${FFTW_HOME}... $ECHO_C" >&6
6888 >            FFTW_INC_DIR=
6889 >            FFTW_LIB_DIR=
6890 >            FFTW_LIBS=
6891 >            LDFLAGS="$FFTW_OLD_LDFLAGS"
6892 >            CPPFLAGS="$FFTW_OLD_CPPFLAGS"
6893 >            echo "$as_me:$LINENO: result: failed" >&5
6894 > echo "${ECHO_T}failed" >&6
6895 >            echo ""
6896 >            echo "*********************************************************"
6897 >            echo "* WARNING: Could not find a working FFTW installation   *"
6898 >            echo "* If you need the staticProps program to be able to     *"
6899 >            echo "* compute undulation spectra, be sure to specify a      *"
6900 >            echo "* valid fftw installation with --with-fftw=DIR          *"
6901 >            echo "*                                                       *"
6902 >            echo "* OOPSE will still work without fftw installed.         *"
6903 >            echo "*********************************************************"
6904 >            echo ""
6905 >          fi
6906 >        fi
6907 >      fi
6908 >
6909 >
6910 >
6911 >    fi
6912 >  fi
6913 > fi
6914 >
6915 >
6916 >
6917 > # Checks for header files.
6918 > echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6919 > echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6920 > if test "${ac_cv_header_stdc+set}" = set; then
6921 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6922 > else
6923 >  cat >conftest.$ac_ext <<_ACEOF
6924 > /* confdefs.h.  */
6925 > _ACEOF
6926 > cat confdefs.h >>conftest.$ac_ext
6927 > cat >>conftest.$ac_ext <<_ACEOF
6928 > /* end confdefs.h.  */
6929 > #include <stdlib.h>
6930 > #include <stdarg.h>
6931 > #include <string.h>
6932 > #include <float.h>
6933 >
6934 > #ifdef FC_DUMMY_MAIN
6935 > #ifndef FC_DUMMY_MAIN_EQ_F77
6936 > #  ifdef __cplusplus
6937 >     extern "C"
6938 > #  endif
6939 >   int FC_DUMMY_MAIN() { return 1; }
6940 > #endif
6941 > #endif
6942 > int
6943 > main ()
6944 > {
6945 >
6946 >  ;
6947 >  return 0;
6948 > }
6949 > _ACEOF
6950 > rm -f conftest.$ac_objext
6951 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 >  (eval $ac_compile) 2>conftest.er1
6953 >  ac_status=$?
6954 >  grep -v '^ *+' conftest.er1 >conftest.err
6955 >  rm -f conftest.er1
6956 >  cat conftest.err >&5
6957 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 >  (exit $ac_status); } &&
6959 >         { ac_try='test -z "$ac_c_werror_flag"
6960 >                         || test ! -s conftest.err'
6961 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 >  (eval $ac_try) 2>&5
6963 >  ac_status=$?
6964 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 >  (exit $ac_status); }; } &&
6966 >         { ac_try='test -s conftest.$ac_objext'
6967 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 >  (eval $ac_try) 2>&5
6969 >  ac_status=$?
6970 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 >  (exit $ac_status); }; }; then
6972 >  ac_cv_header_stdc=yes
6973 > else
6974 >  echo "$as_me: failed program was:" >&5
6975 > sed 's/^/| /' conftest.$ac_ext >&5
6976 >
6977 > ac_cv_header_stdc=no
6978 > fi
6979 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 >
6981 > if test $ac_cv_header_stdc = yes; then
6982 >  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6983 >  cat >conftest.$ac_ext <<_ACEOF
6984 > /* confdefs.h.  */
6985 > _ACEOF
6986 > cat confdefs.h >>conftest.$ac_ext
6987 > cat >>conftest.$ac_ext <<_ACEOF
6988 > /* end confdefs.h.  */
6989 > #include <string.h>
6990 >
6991 > _ACEOF
6992 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6993 >  $EGREP "memchr" >/dev/null 2>&1; then
6994 >  :
6995 > else
6996 >  ac_cv_header_stdc=no
6997 > fi
6998 > rm -f conftest*
6999 >
7000 > fi
7001 >
7002 > if test $ac_cv_header_stdc = yes; then
7003 >  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7004 >  cat >conftest.$ac_ext <<_ACEOF
7005 > /* confdefs.h.  */
7006 > _ACEOF
7007 > cat confdefs.h >>conftest.$ac_ext
7008 > cat >>conftest.$ac_ext <<_ACEOF
7009 > /* end confdefs.h.  */
7010 > #include <stdlib.h>
7011 >
7012 > _ACEOF
7013 > if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7014 >  $EGREP "free" >/dev/null 2>&1; then
7015 >  :
7016 > else
7017 >  ac_cv_header_stdc=no
7018 > fi
7019 > rm -f conftest*
7020 >
7021 > fi
7022 >
7023 > if test $ac_cv_header_stdc = yes; then
7024 >  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7025 >  if test "$cross_compiling" = yes; then
7026 >  :
7027 > else
7028 >  cat >conftest.$ac_ext <<_ACEOF
7029 > /* confdefs.h.  */
7030 > _ACEOF
7031 > cat confdefs.h >>conftest.$ac_ext
7032 > cat >>conftest.$ac_ext <<_ACEOF
7033 > /* end confdefs.h.  */
7034 > #include <ctype.h>
7035 > #if ((' ' & 0x0FF) == 0x020)
7036 > # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7037 > # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7038 > #else
7039 > # define ISLOWER(c) \
7040 >                   (('a' <= (c) && (c) <= 'i') \
7041 >                     || ('j' <= (c) && (c) <= 'r') \
7042 >                     || ('s' <= (c) && (c) <= 'z'))
7043 > # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7044 > #endif
7045 >
7046 > #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7047 > int
7048 > main ()
7049 > {
7050 >  int i;
7051 >  for (i = 0; i < 256; i++)
7052 >    if (XOR (islower (i), ISLOWER (i))
7053 >        || toupper (i) != TOUPPER (i))
7054 >      exit(2);
7055 >  exit (0);
7056 > }
7057 > _ACEOF
7058 > rm -f conftest$ac_exeext
7059 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7060 >  (eval $ac_link) 2>&5
7061 >  ac_status=$?
7062 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7064 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 >  (eval $ac_try) 2>&5
7066 >  ac_status=$?
7067 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 >  (exit $ac_status); }; }; then
7069 >  :
7070 > else
7071 >  echo "$as_me: program exited with status $ac_status" >&5
7072 > echo "$as_me: failed program was:" >&5
7073 > sed 's/^/| /' conftest.$ac_ext >&5
7074 >
7075 > ( exit $ac_status )
7076 > ac_cv_header_stdc=no
7077 > fi
7078 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7079 > fi
7080 > fi
7081 > fi
7082 > echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7083 > echo "${ECHO_T}$ac_cv_header_stdc" >&6
7084 > if test $ac_cv_header_stdc = yes; then
7085 >
7086 > cat >>confdefs.h <<\_ACEOF
7087 > #define STDC_HEADERS 1
7088 > _ACEOF
7089 >
7090 > fi
7091 >
7092 >
7093 >
7094 >
7095 >
7096 >
7097 >
7098 >
7099 >
7100 >
7101 >
7102 >
7103 >
7104 >
7105 >
7106 >
7107 >
7108 >
7109 >
7110 >
7111 >
7112 >
7113 >
7114 >
7115 >
7116 >
7117 > for ac_header in conio.h dlfcn.h fstream.h iostream.h libintl.h limits.h machine/hal_sysinfo.h math.h stddef.h stdio.h stdlib.h string.h strings.h strstream.h sys/param.h sys/pstat.h sys/sysmp.h sys/sysctl.h sys/sysinfo.h sys/systemcfg.h sys/table.h sys/time.h time.h unistd.h zlib.h
7118 > do
7119 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7121 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
7122 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7123 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7124 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7125 > fi
7126 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128 > else
7129 >  # Is the header compilable?
7130 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
7131 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7132 > cat >conftest.$ac_ext <<_ACEOF
7133 > /* confdefs.h.  */
7134 > _ACEOF
7135 > cat confdefs.h >>conftest.$ac_ext
7136 > cat >>conftest.$ac_ext <<_ACEOF
7137 > /* end confdefs.h.  */
7138 > $ac_includes_default
7139 > #include <$ac_header>
7140 > _ACEOF
7141 > rm -f conftest.$ac_objext
7142 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 >  (eval $ac_compile) 2>conftest.er1
7144 >  ac_status=$?
7145 >  grep -v '^ *+' conftest.er1 >conftest.err
7146 >  rm -f conftest.er1
7147 >  cat conftest.err >&5
7148 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 >  (exit $ac_status); } &&
7150 >         { ac_try='test -z "$ac_c_werror_flag"
7151 >                         || test ! -s conftest.err'
7152 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 >  (eval $ac_try) 2>&5
7154 >  ac_status=$?
7155 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 >  (exit $ac_status); }; } &&
7157 >         { ac_try='test -s conftest.$ac_objext'
7158 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 >  (eval $ac_try) 2>&5
7160 >  ac_status=$?
7161 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 >  (exit $ac_status); }; }; then
7163 >  ac_header_compiler=yes
7164 > else
7165 >  echo "$as_me: failed program was:" >&5
7166 > sed 's/^/| /' conftest.$ac_ext >&5
7167 >
7168 > ac_header_compiler=no
7169 > fi
7170 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7172 > echo "${ECHO_T}$ac_header_compiler" >&6
7173 >
7174 > # Is the header present?
7175 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
7176 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7177 > cat >conftest.$ac_ext <<_ACEOF
7178 > /* confdefs.h.  */
7179 > _ACEOF
7180 > cat confdefs.h >>conftest.$ac_ext
7181 > cat >>conftest.$ac_ext <<_ACEOF
7182 > /* end confdefs.h.  */
7183 > #include <$ac_header>
7184 > _ACEOF
7185 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7186 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7187 >  ac_status=$?
7188 >  grep -v '^ *+' conftest.er1 >conftest.err
7189 >  rm -f conftest.er1
7190 >  cat conftest.err >&5
7191 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 >  (exit $ac_status); } >/dev/null; then
7193 >  if test -s conftest.err; then
7194 >    ac_cpp_err=$ac_c_preproc_warn_flag
7195 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7196 >  else
7197 >    ac_cpp_err=
7198 >  fi
7199 > else
7200 >  ac_cpp_err=yes
7201 > fi
7202 > if test -z "$ac_cpp_err"; then
7203 >  ac_header_preproc=yes
7204 > else
7205 >  echo "$as_me: failed program was:" >&5
7206 > sed 's/^/| /' conftest.$ac_ext >&5
7207 >
7208 >  ac_header_preproc=no
7209 > fi
7210 > rm -f conftest.err conftest.$ac_ext
7211 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 > echo "${ECHO_T}$ac_header_preproc" >&6
7213 >
7214 > # So?  What about this header?
7215 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7216 >  yes:no: )
7217 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221 >    ac_header_preproc=yes
7222 >    ;;
7223 >  no:yes:* )
7224 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7227 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7228 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7231 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7232 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236 >    (
7237 >      cat <<\_ASBOX
7238 > ## ------------------------------ ##
7239 > ## Report this to gezelter@nd.edu ##
7240 > ## ------------------------------ ##
7241 > _ASBOX
7242 >    ) |
7243 >      sed "s/^/$as_me: WARNING:     /" >&2
7244 >    ;;
7245 > esac
7246 > echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7250 > else
7251 >  eval "$as_ac_Header=\$ac_header_preproc"
7252 > fi
7253 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7254 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7255 >
7256 > fi
7257 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
7258 >  cat >>confdefs.h <<_ACEOF
7259 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7260 > _ACEOF
7261 >
7262 > fi
7263 >
7264 > done
7265 >
7266 >
7267 > # Checks for typedefs, structures, and compiler characteristics.
7268 > echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7269 > echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7270 > if test "${ac_cv_header_stdbool_h+set}" = set; then
7271 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7272 > else
7273 >  cat >conftest.$ac_ext <<_ACEOF
7274 > /* confdefs.h.  */
7275 > _ACEOF
7276 > cat confdefs.h >>conftest.$ac_ext
7277 > cat >>conftest.$ac_ext <<_ACEOF
7278 > /* end confdefs.h.  */
7279 >
7280 > #include <stdbool.h>
7281 > #ifndef bool
7282 > # error bool is not defined
7283 > #endif
7284 > #ifndef false
7285 > # error false is not defined
7286 > #endif
7287 > #if false
7288 > # error false is not 0
7289 > #endif
7290 > #ifndef true
7291 > # error true is not defined
7292 > #endif
7293 > #if true != 1
7294 > # error true is not 1
7295 > #endif
7296 > #ifndef __bool_true_false_are_defined
7297 > # error __bool_true_false_are_defined is not defined
7298 > #endif
7299 >
7300 >        struct s { _Bool s: 1; _Bool t; } s;
7301 >
7302 >        char a[true == 1 ? 1 : -1];
7303 >        char b[false == 0 ? 1 : -1];
7304 >        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7305 >        char d[(bool) -0.5 == true ? 1 : -1];
7306 >        bool e = &s;
7307 >        char f[(_Bool) -0.0 == false ? 1 : -1];
7308 >        char g[true];
7309 >        char h[sizeof (_Bool)];
7310 >        char i[sizeof s.t];
7311 >
7312 > #ifdef FC_DUMMY_MAIN
7313 > #ifndef FC_DUMMY_MAIN_EQ_F77
7314 > #  ifdef __cplusplus
7315 >     extern "C"
7316 > #  endif
7317 >   int FC_DUMMY_MAIN() { return 1; }
7318 > #endif
7319 > #endif
7320 > int
7321 > main ()
7322 > {
7323 > return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7324 >  ;
7325 >  return 0;
7326 > }
7327 > _ACEOF
7328 > rm -f conftest.$ac_objext
7329 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 >  (eval $ac_compile) 2>conftest.er1
7331 >  ac_status=$?
7332 >  grep -v '^ *+' conftest.er1 >conftest.err
7333 >  rm -f conftest.er1
7334 >  cat conftest.err >&5
7335 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 >  (exit $ac_status); } &&
7337 >         { ac_try='test -z "$ac_c_werror_flag"
7338 >                         || test ! -s conftest.err'
7339 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 >  (eval $ac_try) 2>&5
7341 >  ac_status=$?
7342 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 >  (exit $ac_status); }; } &&
7344 >         { ac_try='test -s conftest.$ac_objext'
7345 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 >  (eval $ac_try) 2>&5
7347 >  ac_status=$?
7348 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 >  (exit $ac_status); }; }; then
7350 >  ac_cv_header_stdbool_h=yes
7351 > else
7352 >  echo "$as_me: failed program was:" >&5
7353 > sed 's/^/| /' conftest.$ac_ext >&5
7354 >
7355 > ac_cv_header_stdbool_h=no
7356 > fi
7357 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7358 > fi
7359 > echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7360 > echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7361 > echo "$as_me:$LINENO: checking for _Bool" >&5
7362 > echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7363 > if test "${ac_cv_type__Bool+set}" = set; then
7364 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7365 > else
7366 >  cat >conftest.$ac_ext <<_ACEOF
7367 > /* confdefs.h.  */
7368 > _ACEOF
7369 > cat confdefs.h >>conftest.$ac_ext
7370 > cat >>conftest.$ac_ext <<_ACEOF
7371 > /* end confdefs.h.  */
7372 > $ac_includes_default
7373 > #ifdef FC_DUMMY_MAIN
7374 > #ifndef FC_DUMMY_MAIN_EQ_F77
7375 > #  ifdef __cplusplus
7376 >     extern "C"
7377 > #  endif
7378 >   int FC_DUMMY_MAIN() { return 1; }
7379 > #endif
7380 > #endif
7381 > int
7382 > main ()
7383 > {
7384 > if ((_Bool *) 0)
7385 >  return 0;
7386 > if (sizeof (_Bool))
7387 >  return 0;
7388 >  ;
7389 >  return 0;
7390 > }
7391 > _ACEOF
7392 > rm -f conftest.$ac_objext
7393 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 >  (eval $ac_compile) 2>conftest.er1
7395 >  ac_status=$?
7396 >  grep -v '^ *+' conftest.er1 >conftest.err
7397 >  rm -f conftest.er1
7398 >  cat conftest.err >&5
7399 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 >  (exit $ac_status); } &&
7401 >         { ac_try='test -z "$ac_c_werror_flag"
7402 >                         || test ! -s conftest.err'
7403 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 >  (eval $ac_try) 2>&5
7405 >  ac_status=$?
7406 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 >  (exit $ac_status); }; } &&
7408 >         { ac_try='test -s conftest.$ac_objext'
7409 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 >  (eval $ac_try) 2>&5
7411 >  ac_status=$?
7412 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 >  (exit $ac_status); }; }; then
7414 >  ac_cv_type__Bool=yes
7415 > else
7416 >  echo "$as_me: failed program was:" >&5
7417 > sed 's/^/| /' conftest.$ac_ext >&5
7418 >
7419 > ac_cv_type__Bool=no
7420 > fi
7421 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7422 > fi
7423 > echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7424 > echo "${ECHO_T}$ac_cv_type__Bool" >&6
7425 > if test $ac_cv_type__Bool = yes; then
7426 >
7427 > cat >>confdefs.h <<_ACEOF
7428 > #define HAVE__BOOL 1
7429 > _ACEOF
7430 >
7431 >
7432 > fi
7433 >
7434 > if test $ac_cv_header_stdbool_h = yes; then
7435 >
7436 > cat >>confdefs.h <<\_ACEOF
7437 > #define HAVE_STDBOOL_H 1
7438 > _ACEOF
7439 >
7440 > fi
7441 >
7442 > echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7443 > echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7444 > if test "${ac_cv_c_const+set}" = set; then
7445 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7446 > else
7447 >  cat >conftest.$ac_ext <<_ACEOF
7448 > /* confdefs.h.  */
7449 > _ACEOF
7450 > cat confdefs.h >>conftest.$ac_ext
7451 > cat >>conftest.$ac_ext <<_ACEOF
7452 > /* end confdefs.h.  */
7453 >
7454 > #ifdef FC_DUMMY_MAIN
7455 > #ifndef FC_DUMMY_MAIN_EQ_F77
7456 > #  ifdef __cplusplus
7457 >     extern "C"
7458 > #  endif
7459 >   int FC_DUMMY_MAIN() { return 1; }
7460 > #endif
7461 > #endif
7462 > int
7463 > main ()
7464 > {
7465 > /* FIXME: Include the comments suggested by Paul. */
7466 > #ifndef __cplusplus
7467 >  /* Ultrix mips cc rejects this.  */
7468 >  typedef int charset[2];
7469 >  const charset x;
7470 >  /* SunOS 4.1.1 cc rejects this.  */
7471 >  char const *const *ccp;
7472 >  char **p;
7473 >  /* NEC SVR4.0.2 mips cc rejects this.  */
7474 >  struct point {int x, y;};
7475 >  static struct point const zero = {0,0};
7476 >  /* AIX XL C 1.02.0.0 rejects this.
7477 >     It does not let you subtract one const X* pointer from another in
7478 >     an arm of an if-expression whose if-part is not a constant
7479 >     expression */
7480 >  const char *g = "string";
7481 >  ccp = &g + (g ? g-g : 0);
7482 >  /* HPUX 7.0 cc rejects these. */
7483 >  ++ccp;
7484 >  p = (char**) ccp;
7485 >  ccp = (char const *const *) p;
7486 >  { /* SCO 3.2v4 cc rejects this.  */
7487 >    char *t;
7488 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
7489 >
7490 >    *t++ = 0;
7491 >  }
7492 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7493 >    int x[] = {25, 17};
7494 >    const int *foo = &x[0];
7495 >    ++foo;
7496 >  }
7497 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7498 >    typedef const int *iptr;
7499 >    iptr p = 0;
7500 >    ++p;
7501 >  }
7502 >  { /* AIX XL C 1.02.0.0 rejects this saying
7503 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7504 >    struct s { int j; const int *ap[3]; };
7505 >    struct s *b; b->j = 5;
7506 >  }
7507 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7508 >    const int foo = 10;
7509 >  }
7510 > #endif
7511 >
7512 >  ;
7513 >  return 0;
7514 > }
7515 > _ACEOF
7516 > rm -f conftest.$ac_objext
7517 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518 >  (eval $ac_compile) 2>conftest.er1
7519 >  ac_status=$?
7520 >  grep -v '^ *+' conftest.er1 >conftest.err
7521 >  rm -f conftest.er1
7522 >  cat conftest.err >&5
7523 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 >  (exit $ac_status); } &&
7525 >         { ac_try='test -z "$ac_c_werror_flag"
7526 >                         || test ! -s conftest.err'
7527 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 >  (eval $ac_try) 2>&5
7529 >  ac_status=$?
7530 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 >  (exit $ac_status); }; } &&
7532 >         { ac_try='test -s conftest.$ac_objext'
7533 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 >  (eval $ac_try) 2>&5
7535 >  ac_status=$?
7536 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 >  (exit $ac_status); }; }; then
7538 >  ac_cv_c_const=yes
7539 > else
7540 >  echo "$as_me: failed program was:" >&5
7541 > sed 's/^/| /' conftest.$ac_ext >&5
7542 >
7543 > ac_cv_c_const=no
7544 > fi
7545 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546 > fi
7547 > echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7548 > echo "${ECHO_T}$ac_cv_c_const" >&6
7549 > if test $ac_cv_c_const = no; then
7550 >
7551 > cat >>confdefs.h <<\_ACEOF
7552 > #define const
7553 > _ACEOF
7554 >
7555 > fi
7556 >
7557 > echo "$as_me:$LINENO: checking for inline" >&5
7558 > echo $ECHO_N "checking for inline... $ECHO_C" >&6
7559 > if test "${ac_cv_c_inline+set}" = set; then
7560 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7561 > else
7562 >  ac_cv_c_inline=no
7563 > for ac_kw in inline __inline__ __inline; do
7564 >  cat >conftest.$ac_ext <<_ACEOF
7565 > /* confdefs.h.  */
7566 > _ACEOF
7567 > cat confdefs.h >>conftest.$ac_ext
7568 > cat >>conftest.$ac_ext <<_ACEOF
7569 > /* end confdefs.h.  */
7570 > #ifndef __cplusplus
7571 > typedef int foo_t;
7572 > static $ac_kw foo_t static_foo () {return 0; }
7573 > $ac_kw foo_t foo () {return 0; }
7574 > #endif
7575 >
7576 > _ACEOF
7577 > rm -f conftest.$ac_objext
7578 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7579 >  (eval $ac_compile) 2>conftest.er1
7580 >  ac_status=$?
7581 >  grep -v '^ *+' conftest.er1 >conftest.err
7582 >  rm -f conftest.er1
7583 >  cat conftest.err >&5
7584 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 >  (exit $ac_status); } &&
7586 >         { ac_try='test -z "$ac_c_werror_flag"
7587 >                         || test ! -s conftest.err'
7588 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 >  (eval $ac_try) 2>&5
7590 >  ac_status=$?
7591 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 >  (exit $ac_status); }; } &&
7593 >         { ac_try='test -s conftest.$ac_objext'
7594 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 >  (eval $ac_try) 2>&5
7596 >  ac_status=$?
7597 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 >  (exit $ac_status); }; }; then
7599 >  ac_cv_c_inline=$ac_kw; break
7600 > else
7601 >  echo "$as_me: failed program was:" >&5
7602 > sed 's/^/| /' conftest.$ac_ext >&5
7603 >
7604 > fi
7605 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606 > done
7607 >
7608 > fi
7609 > echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7610 > echo "${ECHO_T}$ac_cv_c_inline" >&6
7611 >
7612 >
7613 > case $ac_cv_c_inline in
7614 >  inline | yes) ;;
7615 >  *)
7616 >    case $ac_cv_c_inline in
7617 >      no) ac_val=;;
7618 >      *) ac_val=$ac_cv_c_inline;;
7619 >    esac
7620 >    cat >>confdefs.h <<_ACEOF
7621 > #ifndef __cplusplus
7622 > #define inline $ac_val
7623 > #endif
7624 > _ACEOF
7625 >    ;;
7626 > esac
7627 >
7628 > echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7629 > echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
7630 > if test "${ac_cv_c_restrict+set}" = set; then
7631 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7632 > else
7633 >  ac_cv_c_restrict=no
7634 >   # Try the official restrict keyword, then gcc's __restrict, and
7635 >   # the less common variants.
7636 >   for ac_kw in restrict __restrict __restrict__ _Restrict; do
7637 >     cat >conftest.$ac_ext <<_ACEOF
7638 > /* confdefs.h.  */
7639 > _ACEOF
7640 > cat confdefs.h >>conftest.$ac_ext
7641 > cat >>conftest.$ac_ext <<_ACEOF
7642 > /* end confdefs.h.  */
7643 > float * $ac_kw x;
7644 > _ACEOF
7645 > rm -f conftest.$ac_objext
7646 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 >  (eval $ac_compile) 2>conftest.er1
7648 >  ac_status=$?
7649 >  grep -v '^ *+' conftest.er1 >conftest.err
7650 >  rm -f conftest.er1
7651 >  cat conftest.err >&5
7652 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 >  (exit $ac_status); } &&
7654 >         { ac_try='test -z "$ac_c_werror_flag"
7655 >                         || test ! -s conftest.err'
7656 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 >  (eval $ac_try) 2>&5
7658 >  ac_status=$?
7659 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 >  (exit $ac_status); }; } &&
7661 >         { ac_try='test -s conftest.$ac_objext'
7662 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 >  (eval $ac_try) 2>&5
7664 >  ac_status=$?
7665 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 >  (exit $ac_status); }; }; then
7667 >  ac_cv_c_restrict=$ac_kw; break
7668 > else
7669 >  echo "$as_me: failed program was:" >&5
7670 > sed 's/^/| /' conftest.$ac_ext >&5
7671 >
7672 > fi
7673 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7674 >   done
7675 >
7676 > fi
7677 > echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7678 > echo "${ECHO_T}$ac_cv_c_restrict" >&6
7679 > case $ac_cv_c_restrict in
7680 >   restrict) ;;
7681 >   no)
7682 > cat >>confdefs.h <<\_ACEOF
7683 > #define restrict
7684 > _ACEOF
7685 > ;;
7686 >   *)  cat >>confdefs.h <<_ACEOF
7687 > #define restrict $ac_cv_c_restrict
7688 > _ACEOF
7689 > ;;
7690 > esac
7691 >
7692 > echo "$as_me:$LINENO: checking for size_t" >&5
7693 > echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7694 > if test "${ac_cv_type_size_t+set}" = set; then
7695 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7696 > else
7697 >  cat >conftest.$ac_ext <<_ACEOF
7698 > /* confdefs.h.  */
7699 > _ACEOF
7700 > cat confdefs.h >>conftest.$ac_ext
7701 > cat >>conftest.$ac_ext <<_ACEOF
7702 > /* end confdefs.h.  */
7703 > $ac_includes_default
7704 > #ifdef FC_DUMMY_MAIN
7705 > #ifndef FC_DUMMY_MAIN_EQ_F77
7706 > #  ifdef __cplusplus
7707 >     extern "C"
7708 > #  endif
7709 >   int FC_DUMMY_MAIN() { return 1; }
7710 > #endif
7711 > #endif
7712 > int
7713 > main ()
7714 > {
7715 > if ((size_t *) 0)
7716 >  return 0;
7717 > if (sizeof (size_t))
7718 >  return 0;
7719 >  ;
7720 >  return 0;
7721 > }
7722 > _ACEOF
7723 > rm -f conftest.$ac_objext
7724 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 >  (eval $ac_compile) 2>conftest.er1
7726 >  ac_status=$?
7727 >  grep -v '^ *+' conftest.er1 >conftest.err
7728 >  rm -f conftest.er1
7729 >  cat conftest.err >&5
7730 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 >  (exit $ac_status); } &&
7732 >         { ac_try='test -z "$ac_c_werror_flag"
7733 >                         || test ! -s conftest.err'
7734 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 >  (eval $ac_try) 2>&5
7736 >  ac_status=$?
7737 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 >  (exit $ac_status); }; } &&
7739 >         { ac_try='test -s conftest.$ac_objext'
7740 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 >  (eval $ac_try) 2>&5
7742 >  ac_status=$?
7743 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 >  (exit $ac_status); }; }; then
7745 >  ac_cv_type_size_t=yes
7746 > else
7747 >  echo "$as_me: failed program was:" >&5
7748 > sed 's/^/| /' conftest.$ac_ext >&5
7749 >
7750 > ac_cv_type_size_t=no
7751 > fi
7752 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7753 > fi
7754 > echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7755 > echo "${ECHO_T}$ac_cv_type_size_t" >&6
7756 > if test $ac_cv_type_size_t = yes; then
7757 >  :
7758 > else
7759 >
7760 > cat >>confdefs.h <<_ACEOF
7761 > #define size_t unsigned
7762 > _ACEOF
7763 >
7764 > fi
7765 >
7766 > echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7767 > echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7768 > if test "${ac_cv_header_time+set}" = set; then
7769 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7770 > else
7771 >  cat >conftest.$ac_ext <<_ACEOF
7772 > /* confdefs.h.  */
7773 > _ACEOF
7774 > cat confdefs.h >>conftest.$ac_ext
7775 > cat >>conftest.$ac_ext <<_ACEOF
7776 > /* end confdefs.h.  */
7777 > #include <sys/types.h>
7778 > #include <sys/time.h>
7779 > #include <time.h>
7780 >
7781 > #ifdef FC_DUMMY_MAIN
7782 > #ifndef FC_DUMMY_MAIN_EQ_F77
7783 > #  ifdef __cplusplus
7784 >     extern "C"
7785 > #  endif
7786 >   int FC_DUMMY_MAIN() { return 1; }
7787 > #endif
7788 > #endif
7789 > int
7790 > main ()
7791 > {
7792 > if ((struct tm *) 0)
7793 > return 0;
7794 >  ;
7795 >  return 0;
7796 > }
7797 > _ACEOF
7798 > rm -f conftest.$ac_objext
7799 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7800 >  (eval $ac_compile) 2>conftest.er1
7801 >  ac_status=$?
7802 >  grep -v '^ *+' conftest.er1 >conftest.err
7803 >  rm -f conftest.er1
7804 >  cat conftest.err >&5
7805 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 >  (exit $ac_status); } &&
7807 >         { ac_try='test -z "$ac_c_werror_flag"
7808 >                         || test ! -s conftest.err'
7809 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 >  (eval $ac_try) 2>&5
7811 >  ac_status=$?
7812 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 >  (exit $ac_status); }; } &&
7814 >         { ac_try='test -s conftest.$ac_objext'
7815 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 >  (eval $ac_try) 2>&5
7817 >  ac_status=$?
7818 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 >  (exit $ac_status); }; }; then
7820 >  ac_cv_header_time=yes
7821 > else
7822 >  echo "$as_me: failed program was:" >&5
7823 > sed 's/^/| /' conftest.$ac_ext >&5
7824 >
7825 > ac_cv_header_time=no
7826 > fi
7827 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7828 > fi
7829 > echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7830 > echo "${ECHO_T}$ac_cv_header_time" >&6
7831 > if test $ac_cv_header_time = yes; then
7832 >
7833 > cat >>confdefs.h <<\_ACEOF
7834 > #define TIME_WITH_SYS_TIME 1
7835 > _ACEOF
7836 >
7837 > fi
7838 >
7839 > echo "$as_me:$LINENO: checking for clock_t" >&5
7840 > echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
7841 > if test "${ac_cv_type_clock_t+set}" = set; then
7842 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7843 > else
7844 >  cat >conftest.$ac_ext <<_ACEOF
7845 > /* confdefs.h.  */
7846 > _ACEOF
7847 > cat confdefs.h >>conftest.$ac_ext
7848 > cat >>conftest.$ac_ext <<_ACEOF
7849 > /* end confdefs.h.  */
7850 > $ac_includes_default
7851 > #ifdef FC_DUMMY_MAIN
7852 > #ifndef FC_DUMMY_MAIN_EQ_F77
7853 > #  ifdef __cplusplus
7854 >     extern "C"
7855 > #  endif
7856 >   int FC_DUMMY_MAIN() { return 1; }
7857 > #endif
7858 > #endif
7859 > int
7860 > main ()
7861 > {
7862 > if ((clock_t *) 0)
7863 >  return 0;
7864 > if (sizeof (clock_t))
7865 >  return 0;
7866 >  ;
7867 >  return 0;
7868 > }
7869 > _ACEOF
7870 > rm -f conftest.$ac_objext
7871 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 >  (eval $ac_compile) 2>conftest.er1
7873 >  ac_status=$?
7874 >  grep -v '^ *+' conftest.er1 >conftest.err
7875 >  rm -f conftest.er1
7876 >  cat conftest.err >&5
7877 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 >  (exit $ac_status); } &&
7879 >         { ac_try='test -z "$ac_c_werror_flag"
7880 >                         || test ! -s conftest.err'
7881 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 >  (eval $ac_try) 2>&5
7883 >  ac_status=$?
7884 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 >  (exit $ac_status); }; } &&
7886 >         { ac_try='test -s conftest.$ac_objext'
7887 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 >  (eval $ac_try) 2>&5
7889 >  ac_status=$?
7890 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 >  (exit $ac_status); }; }; then
7892 >  ac_cv_type_clock_t=yes
7893 > else
7894 >  echo "$as_me: failed program was:" >&5
7895 > sed 's/^/| /' conftest.$ac_ext >&5
7896 >
7897 > ac_cv_type_clock_t=no
7898 > fi
7899 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900 > fi
7901 > echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
7902 > echo "${ECHO_T}$ac_cv_type_clock_t" >&6
7903 > if test $ac_cv_type_clock_t = yes; then
7904 >
7905 > cat >>confdefs.h <<_ACEOF
7906 > #define HAVE_CLOCK_T 1
7907 > _ACEOF
7908 >
7909 >
7910 > fi
7911 >
7912 > echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7913 > echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7914 > if test "${ac_cv_c_const+set}" = set; then
7915 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7916 > else
7917 >  cat >conftest.$ac_ext <<_ACEOF
7918 > /* confdefs.h.  */
7919 > _ACEOF
7920 > cat confdefs.h >>conftest.$ac_ext
7921 > cat >>conftest.$ac_ext <<_ACEOF
7922 > /* end confdefs.h.  */
7923 >
7924 > #ifdef FC_DUMMY_MAIN
7925 > #ifndef FC_DUMMY_MAIN_EQ_F77
7926 > #  ifdef __cplusplus
7927 >     extern "C"
7928 > #  endif
7929 >   int FC_DUMMY_MAIN() { return 1; }
7930 > #endif
7931 > #endif
7932 > int
7933 > main ()
7934 > {
7935 > /* FIXME: Include the comments suggested by Paul. */
7936 > #ifndef __cplusplus
7937 >  /* Ultrix mips cc rejects this.  */
7938 >  typedef int charset[2];
7939 >  const charset x;
7940 >  /* SunOS 4.1.1 cc rejects this.  */
7941 >  char const *const *ccp;
7942 >  char **p;
7943 >  /* NEC SVR4.0.2 mips cc rejects this.  */
7944 >  struct point {int x, y;};
7945 >  static struct point const zero = {0,0};
7946 >  /* AIX XL C 1.02.0.0 rejects this.
7947 >     It does not let you subtract one const X* pointer from another in
7948 >     an arm of an if-expression whose if-part is not a constant
7949 >     expression */
7950 >  const char *g = "string";
7951 >  ccp = &g + (g ? g-g : 0);
7952 >  /* HPUX 7.0 cc rejects these. */
7953 >  ++ccp;
7954 >  p = (char**) ccp;
7955 >  ccp = (char const *const *) p;
7956 >  { /* SCO 3.2v4 cc rejects this.  */
7957 >    char *t;
7958 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
7959 >
7960 >    *t++ = 0;
7961 >  }
7962 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7963 >    int x[] = {25, 17};
7964 >    const int *foo = &x[0];
7965 >    ++foo;
7966 >  }
7967 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7968 >    typedef const int *iptr;
7969 >    iptr p = 0;
7970 >    ++p;
7971 >  }
7972 >  { /* AIX XL C 1.02.0.0 rejects this saying
7973 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7974 >    struct s { int j; const int *ap[3]; };
7975 >    struct s *b; b->j = 5;
7976 >  }
7977 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7978 >    const int foo = 10;
7979 >  }
7980 > #endif
7981 >
7982 >  ;
7983 >  return 0;
7984 > }
7985 > _ACEOF
7986 > rm -f conftest.$ac_objext
7987 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7988 >  (eval $ac_compile) 2>conftest.er1
7989 >  ac_status=$?
7990 >  grep -v '^ *+' conftest.er1 >conftest.err
7991 >  rm -f conftest.er1
7992 >  cat conftest.err >&5
7993 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 >  (exit $ac_status); } &&
7995 >         { ac_try='test -z "$ac_c_werror_flag"
7996 >                         || test ! -s conftest.err'
7997 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 >  (eval $ac_try) 2>&5
7999 >  ac_status=$?
8000 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 >  (exit $ac_status); }; } &&
8002 >         { ac_try='test -s conftest.$ac_objext'
8003 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 >  (eval $ac_try) 2>&5
8005 >  ac_status=$?
8006 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 >  (exit $ac_status); }; }; then
8008 >  ac_cv_c_const=yes
8009 > else
8010 >  echo "$as_me: failed program was:" >&5
8011 > sed 's/^/| /' conftest.$ac_ext >&5
8012 >
8013 > ac_cv_c_const=no
8014 > fi
8015 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8016 > fi
8017 > echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8018 > echo "${ECHO_T}$ac_cv_c_const" >&6
8019 > if test $ac_cv_c_const = no; then
8020 >
8021 > cat >>confdefs.h <<\_ACEOF
8022 > #define const
8023 > _ACEOF
8024 >
8025 > fi
8026 >
8027 > echo "$as_me:$LINENO: checking for inline" >&5
8028 > echo $ECHO_N "checking for inline... $ECHO_C" >&6
8029 > if test "${ac_cv_c_inline+set}" = set; then
8030 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8031 > else
8032 >  ac_cv_c_inline=no
8033 > for ac_kw in inline __inline__ __inline; do
8034 >  cat >conftest.$ac_ext <<_ACEOF
8035 > /* confdefs.h.  */
8036 > _ACEOF
8037 > cat confdefs.h >>conftest.$ac_ext
8038 > cat >>conftest.$ac_ext <<_ACEOF
8039 > /* end confdefs.h.  */
8040 > #ifndef __cplusplus
8041 > typedef int foo_t;
8042 > static $ac_kw foo_t static_foo () {return 0; }
8043 > $ac_kw foo_t foo () {return 0; }
8044 > #endif
8045 >
8046 > _ACEOF
8047 > rm -f conftest.$ac_objext
8048 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8049 >  (eval $ac_compile) 2>conftest.er1
8050 >  ac_status=$?
8051 >  grep -v '^ *+' conftest.er1 >conftest.err
8052 >  rm -f conftest.er1
8053 >  cat conftest.err >&5
8054 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 >  (exit $ac_status); } &&
8056 >         { ac_try='test -z "$ac_c_werror_flag"
8057 >                         || test ! -s conftest.err'
8058 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 >  (eval $ac_try) 2>&5
8060 >  ac_status=$?
8061 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 >  (exit $ac_status); }; } &&
8063 >         { ac_try='test -s conftest.$ac_objext'
8064 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 >  (eval $ac_try) 2>&5
8066 >  ac_status=$?
8067 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 >  (exit $ac_status); }; }; then
8069 >  ac_cv_c_inline=$ac_kw; break
8070 > else
8071 >  echo "$as_me: failed program was:" >&5
8072 > sed 's/^/| /' conftest.$ac_ext >&5
8073 >
8074 > fi
8075 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8076 > done
8077 >
8078 > fi
8079 > echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8080 > echo "${ECHO_T}$ac_cv_c_inline" >&6
8081 >
8082 >
8083 > case $ac_cv_c_inline in
8084 >  inline | yes) ;;
8085 >  *)
8086 >    case $ac_cv_c_inline in
8087 >      no) ac_val=;;
8088 >      *) ac_val=$ac_cv_c_inline;;
8089 >    esac
8090 >    cat >>confdefs.h <<_ACEOF
8091 > #ifndef __cplusplus
8092 > #define inline $ac_val
8093 > #endif
8094 > _ACEOF
8095 >    ;;
8096 > esac
8097 >
8098 >
8099 > # Checks for library functions.
8100 >
8101 > for ac_header in stdlib.h
8102 > do
8103 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8105 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
8106 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8107 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8109 > fi
8110 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8111 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8112 > else
8113 >  # Is the header compilable?
8114 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
8115 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8116 > cat >conftest.$ac_ext <<_ACEOF
8117 > /* confdefs.h.  */
8118 > _ACEOF
8119 > cat confdefs.h >>conftest.$ac_ext
8120 > cat >>conftest.$ac_ext <<_ACEOF
8121 > /* end confdefs.h.  */
8122 > $ac_includes_default
8123 > #include <$ac_header>
8124 > _ACEOF
8125 > rm -f conftest.$ac_objext
8126 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 >  (eval $ac_compile) 2>conftest.er1
8128 >  ac_status=$?
8129 >  grep -v '^ *+' conftest.er1 >conftest.err
8130 >  rm -f conftest.er1
8131 >  cat conftest.err >&5
8132 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 >  (exit $ac_status); } &&
8134 >         { ac_try='test -z "$ac_c_werror_flag"
8135 >                         || test ! -s conftest.err'
8136 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 >  (eval $ac_try) 2>&5
8138 >  ac_status=$?
8139 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 >  (exit $ac_status); }; } &&
8141 >         { ac_try='test -s conftest.$ac_objext'
8142 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 >  (eval $ac_try) 2>&5
8144 >  ac_status=$?
8145 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 >  (exit $ac_status); }; }; then
8147 >  ac_header_compiler=yes
8148 > else
8149 >  echo "$as_me: failed program was:" >&5
8150 > sed 's/^/| /' conftest.$ac_ext >&5
8151 >
8152 > ac_header_compiler=no
8153 > fi
8154 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8156 > echo "${ECHO_T}$ac_header_compiler" >&6
8157 >
8158 > # Is the header present?
8159 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
8160 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8161 > cat >conftest.$ac_ext <<_ACEOF
8162 > /* confdefs.h.  */
8163 > _ACEOF
8164 > cat confdefs.h >>conftest.$ac_ext
8165 > cat >>conftest.$ac_ext <<_ACEOF
8166 > /* end confdefs.h.  */
8167 > #include <$ac_header>
8168 > _ACEOF
8169 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8170 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171 >  ac_status=$?
8172 >  grep -v '^ *+' conftest.er1 >conftest.err
8173 >  rm -f conftest.er1
8174 >  cat conftest.err >&5
8175 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 >  (exit $ac_status); } >/dev/null; then
8177 >  if test -s conftest.err; then
8178 >    ac_cpp_err=$ac_c_preproc_warn_flag
8179 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8180 >  else
8181 >    ac_cpp_err=
8182 >  fi
8183 > else
8184 >  ac_cpp_err=yes
8185 > fi
8186 > if test -z "$ac_cpp_err"; then
8187 >  ac_header_preproc=yes
8188 > else
8189 >  echo "$as_me: failed program was:" >&5
8190 > sed 's/^/| /' conftest.$ac_ext >&5
8191 >
8192 >  ac_header_preproc=no
8193 > fi
8194 > rm -f conftest.err conftest.$ac_ext
8195 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8196 > echo "${ECHO_T}$ac_header_preproc" >&6
8197 >
8198 > # So?  What about this header?
8199 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8200 >  yes:no: )
8201 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8202 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8203 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8204 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8205 >    ac_header_preproc=yes
8206 >    ;;
8207 >  no:yes:* )
8208 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8209 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8210 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8211 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8212 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8213 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8214 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8215 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8216 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8217 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8218 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8219 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8220 >    (
8221 >      cat <<\_ASBOX
8222 > ## ------------------------------ ##
8223 > ## Report this to gezelter@nd.edu ##
8224 > ## ------------------------------ ##
8225 > _ASBOX
8226 >    ) |
8227 >      sed "s/^/$as_me: WARNING:     /" >&2
8228 >    ;;
8229 > esac
8230 > echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8233 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8234 > else
8235 >  eval "$as_ac_Header=\$ac_header_preproc"
8236 > fi
8237 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8238 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8239 >
8240 > fi
8241 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
8242 >  cat >>confdefs.h <<_ACEOF
8243 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8244 > _ACEOF
8245 >
8246 > fi
8247 >
8248 > done
8249 >
8250 > echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8251 > echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8252 > if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8253 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8254 > else
8255 >  if test "$cross_compiling" = yes; then
8256 >  ac_cv_func_malloc_0_nonnull=no
8257 > else
8258 >  cat >conftest.$ac_ext <<_ACEOF
8259 > /* confdefs.h.  */
8260 > _ACEOF
8261 > cat confdefs.h >>conftest.$ac_ext
8262 > cat >>conftest.$ac_ext <<_ACEOF
8263 > /* end confdefs.h.  */
8264 > #if STDC_HEADERS || HAVE_STDLIB_H
8265 > # include <stdlib.h>
8266 > #else
8267 > char *malloc ();
8268 > #endif
8269 >
8270 > #ifdef FC_DUMMY_MAIN
8271 > #ifndef FC_DUMMY_MAIN_EQ_F77
8272 > #  ifdef __cplusplus
8273 >     extern "C"
8274 > #  endif
8275 >   int FC_DUMMY_MAIN() { return 1; }
8276 > #endif
8277 > #endif
8278 > int
8279 > main ()
8280 > {
8281 > exit (malloc (0) ? 0 : 1);
8282 >  ;
8283 >  return 0;
8284 > }
8285 > _ACEOF
8286 > rm -f conftest$ac_exeext
8287 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288 >  (eval $ac_link) 2>&5
8289 >  ac_status=$?
8290 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8292 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 >  (eval $ac_try) 2>&5
8294 >  ac_status=$?
8295 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 >  (exit $ac_status); }; }; then
8297 >  ac_cv_func_malloc_0_nonnull=yes
8298 > else
8299 >  echo "$as_me: program exited with status $ac_status" >&5
8300 > echo "$as_me: failed program was:" >&5
8301 > sed 's/^/| /' conftest.$ac_ext >&5
8302 >
8303 > ( exit $ac_status )
8304 > ac_cv_func_malloc_0_nonnull=no
8305 > fi
8306 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8307 > fi
8308 > fi
8309 > echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8310 > echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8311 > if test $ac_cv_func_malloc_0_nonnull = yes; then
8312 >
8313 > cat >>confdefs.h <<\_ACEOF
8314 > #define HAVE_MALLOC 1
8315 > _ACEOF
8316 >
8317 > else
8318 >  cat >>confdefs.h <<\_ACEOF
8319 > #define HAVE_MALLOC 0
8320 > _ACEOF
8321 >
8322 >   case $LIBOBJS in
8323 >    "malloc.$ac_objext"   | \
8324 >  *" malloc.$ac_objext"   | \
8325 >    "malloc.$ac_objext "* | \
8326 >  *" malloc.$ac_objext "* ) ;;
8327 >  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8328 > esac
8329 >
8330 >
8331 > cat >>confdefs.h <<\_ACEOF
8332 > #define malloc rpl_malloc
8333 > _ACEOF
8334 >
8335 > fi
8336 >
8337 >
8338 >
8339 > echo "$as_me:$LINENO: checking for working memcmp" >&5
8340 > echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8341 > if test "${ac_cv_func_memcmp_working+set}" = set; then
8342 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8343 > else
8344 >  if test "$cross_compiling" = yes; then
8345 >  ac_cv_func_memcmp_working=no
8346 > else
8347 >  cat >conftest.$ac_ext <<_ACEOF
8348 > /* confdefs.h.  */
8349 > _ACEOF
8350 > cat confdefs.h >>conftest.$ac_ext
8351 > cat >>conftest.$ac_ext <<_ACEOF
8352 > /* end confdefs.h.  */
8353 > $ac_includes_default
8354 > #ifdef FC_DUMMY_MAIN
8355 > #ifndef FC_DUMMY_MAIN_EQ_F77
8356 > #  ifdef __cplusplus
8357 >     extern "C"
8358 > #  endif
8359 >   int FC_DUMMY_MAIN() { return 1; }
8360 > #endif
8361 > #endif
8362 > int
8363 > main ()
8364 > {
8365 >
8366 >  /* Some versions of memcmp are not 8-bit clean.  */
8367 >  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8368 >  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8369 >    exit (1);
8370 >
8371 >  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8372 >     or more and with at least one buffer not starting on a 4-byte boundary.
8373 >     William Lewis provided this test program.   */
8374 >  {
8375 >    char foo[21];
8376 >    char bar[21];
8377 >    int i;
8378 >    for (i = 0; i < 4; i++)
8379 >      {
8380 >        char *a = foo + i;
8381 >        char *b = bar + i;
8382 >        strcpy (a, "--------01111111");
8383 >        strcpy (b, "--------10000000");
8384 >        if (memcmp (a, b, 16) >= 0)
8385 >          exit (1);
8386 >      }
8387 >    exit (0);
8388 >  }
8389 >
8390 >  ;
8391 >  return 0;
8392 > }
8393 > _ACEOF
8394 > rm -f conftest$ac_exeext
8395 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 >  (eval $ac_link) 2>&5
8397 >  ac_status=$?
8398 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8400 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 >  (eval $ac_try) 2>&5
8402 >  ac_status=$?
8403 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 >  (exit $ac_status); }; }; then
8405 >  ac_cv_func_memcmp_working=yes
8406 > else
8407 >  echo "$as_me: program exited with status $ac_status" >&5
8408 > echo "$as_me: failed program was:" >&5
8409 > sed 's/^/| /' conftest.$ac_ext >&5
8410 >
8411 > ( exit $ac_status )
8412 > ac_cv_func_memcmp_working=no
8413 > fi
8414 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8415 > fi
8416 > fi
8417 > echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8418 > echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8419 > test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
8420 >    "memcmp.$ac_objext"   | \
8421 >  *" memcmp.$ac_objext"   | \
8422 >    "memcmp.$ac_objext "* | \
8423 >  *" memcmp.$ac_objext "* ) ;;
8424 >  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
8425 > esac
8426 >
8427 >
8428 >
8429 > for ac_header in stdlib.h
8430 > do
8431 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8432 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8433 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
8434 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8435 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8437 > fi
8438 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8439 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8440 > else
8441 >  # Is the header compilable?
8442 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
8443 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8444 > cat >conftest.$ac_ext <<_ACEOF
8445 > /* confdefs.h.  */
8446 > _ACEOF
8447 > cat confdefs.h >>conftest.$ac_ext
8448 > cat >>conftest.$ac_ext <<_ACEOF
8449 > /* end confdefs.h.  */
8450 > $ac_includes_default
8451 > #include <$ac_header>
8452 > _ACEOF
8453 > rm -f conftest.$ac_objext
8454 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 >  (eval $ac_compile) 2>conftest.er1
8456 >  ac_status=$?
8457 >  grep -v '^ *+' conftest.er1 >conftest.err
8458 >  rm -f conftest.er1
8459 >  cat conftest.err >&5
8460 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 >  (exit $ac_status); } &&
8462 >         { ac_try='test -z "$ac_c_werror_flag"
8463 >                         || test ! -s conftest.err'
8464 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 >  (eval $ac_try) 2>&5
8466 >  ac_status=$?
8467 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 >  (exit $ac_status); }; } &&
8469 >         { ac_try='test -s conftest.$ac_objext'
8470 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 >  (eval $ac_try) 2>&5
8472 >  ac_status=$?
8473 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 >  (exit $ac_status); }; }; then
8475 >  ac_header_compiler=yes
8476 > else
8477 >  echo "$as_me: failed program was:" >&5
8478 > sed 's/^/| /' conftest.$ac_ext >&5
8479 >
8480 > ac_header_compiler=no
8481 > fi
8482 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8483 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 > echo "${ECHO_T}$ac_header_compiler" >&6
8485 >
8486 > # Is the header present?
8487 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8489 > cat >conftest.$ac_ext <<_ACEOF
8490 > /* confdefs.h.  */
8491 > _ACEOF
8492 > cat confdefs.h >>conftest.$ac_ext
8493 > cat >>conftest.$ac_ext <<_ACEOF
8494 > /* end confdefs.h.  */
8495 > #include <$ac_header>
8496 > _ACEOF
8497 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 >  ac_status=$?
8500 >  grep -v '^ *+' conftest.er1 >conftest.err
8501 >  rm -f conftest.er1
8502 >  cat conftest.err >&5
8503 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 >  (exit $ac_status); } >/dev/null; then
8505 >  if test -s conftest.err; then
8506 >    ac_cpp_err=$ac_c_preproc_warn_flag
8507 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8508 >  else
8509 >    ac_cpp_err=
8510 >  fi
8511 > else
8512 >  ac_cpp_err=yes
8513 > fi
8514 > if test -z "$ac_cpp_err"; then
8515 >  ac_header_preproc=yes
8516 > else
8517 >  echo "$as_me: failed program was:" >&5
8518 > sed 's/^/| /' conftest.$ac_ext >&5
8519 >
8520 >  ac_header_preproc=no
8521 > fi
8522 > rm -f conftest.err conftest.$ac_ext
8523 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8524 > echo "${ECHO_T}$ac_header_preproc" >&6
8525 >
8526 > # So?  What about this header?
8527 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8528 >  yes:no: )
8529 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8530 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8531 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8532 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8533 >    ac_header_preproc=yes
8534 >    ;;
8535 >  no:yes:* )
8536 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8537 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8538 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8539 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8540 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8541 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8542 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8543 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8544 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8545 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8546 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8547 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8548 >    (
8549 >      cat <<\_ASBOX
8550 > ## ------------------------------ ##
8551 > ## Report this to gezelter@nd.edu ##
8552 > ## ------------------------------ ##
8553 > _ASBOX
8554 >    ) |
8555 >      sed "s/^/$as_me: WARNING:     /" >&2
8556 >    ;;
8557 > esac
8558 > echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8562 > else
8563 >  eval "$as_ac_Header=\$ac_header_preproc"
8564 > fi
8565 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8566 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8567 >
8568 > fi
8569 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570 >  cat >>confdefs.h <<_ACEOF
8571 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 > _ACEOF
8573 >
8574 > fi
8575 >
8576 > done
8577 >
8578 > echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
8579 > echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
8580 > if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
8581 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8582 > else
8583 >  if test "$cross_compiling" = yes; then
8584 >  ac_cv_func_realloc_0_nonnull=no
8585 > else
8586 >  cat >conftest.$ac_ext <<_ACEOF
8587 > /* confdefs.h.  */
8588 > _ACEOF
8589 > cat confdefs.h >>conftest.$ac_ext
8590 > cat >>conftest.$ac_ext <<_ACEOF
8591 > /* end confdefs.h.  */
8592 > #if STDC_HEADERS || HAVE_STDLIB_H
8593 > # include <stdlib.h>
8594 > #else
8595 > char *realloc ();
8596 > #endif
8597 >
8598 > #ifdef FC_DUMMY_MAIN
8599 > #ifndef FC_DUMMY_MAIN_EQ_F77
8600 > #  ifdef __cplusplus
8601 >     extern "C"
8602 > #  endif
8603 >   int FC_DUMMY_MAIN() { return 1; }
8604 > #endif
8605 > #endif
8606 > int
8607 > main ()
8608 > {
8609 > exit (realloc (0, 0) ? 0 : 1);
8610 >  ;
8611 >  return 0;
8612 > }
8613 > _ACEOF
8614 > rm -f conftest$ac_exeext
8615 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 >  (eval $ac_link) 2>&5
8617 >  ac_status=$?
8618 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8620 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 >  (eval $ac_try) 2>&5
8622 >  ac_status=$?
8623 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 >  (exit $ac_status); }; }; then
8625 >  ac_cv_func_realloc_0_nonnull=yes
8626 > else
8627 >  echo "$as_me: program exited with status $ac_status" >&5
8628 > echo "$as_me: failed program was:" >&5
8629 > sed 's/^/| /' conftest.$ac_ext >&5
8630 >
8631 > ( exit $ac_status )
8632 > ac_cv_func_realloc_0_nonnull=no
8633 > fi
8634 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635 > fi
8636 > fi
8637 > echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
8638 > echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
8639 > if test $ac_cv_func_realloc_0_nonnull = yes; then
8640 >
8641 > cat >>confdefs.h <<\_ACEOF
8642 > #define HAVE_REALLOC 1
8643 > _ACEOF
8644 >
8645 > else
8646 >  cat >>confdefs.h <<\_ACEOF
8647 > #define HAVE_REALLOC 0
8648 > _ACEOF
8649 >
8650 >   case $LIBOBJS in
8651 >    "realloc.$ac_objext"   | \
8652 >  *" realloc.$ac_objext"   | \
8653 >    "realloc.$ac_objext "* | \
8654 >  *" realloc.$ac_objext "* ) ;;
8655 >  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
8656 > esac
8657 >
8658 >
8659 > cat >>confdefs.h <<\_ACEOF
8660 > #define realloc rpl_realloc
8661 > _ACEOF
8662 >
8663 > fi
8664 >
8665 >
8666 >
8667 >
8668 >
8669 > for ac_header in sys/select.h sys/socket.h
8670 > do
8671 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8672 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8673 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8675 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8676 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8677 > fi
8678 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8679 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8680 > else
8681 >  # Is the header compilable?
8682 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
8683 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8684 > cat >conftest.$ac_ext <<_ACEOF
8685 > /* confdefs.h.  */
8686 > _ACEOF
8687 > cat confdefs.h >>conftest.$ac_ext
8688 > cat >>conftest.$ac_ext <<_ACEOF
8689 > /* end confdefs.h.  */
8690 > $ac_includes_default
8691 > #include <$ac_header>
8692 > _ACEOF
8693 > rm -f conftest.$ac_objext
8694 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 >  (eval $ac_compile) 2>conftest.er1
8696 >  ac_status=$?
8697 >  grep -v '^ *+' conftest.er1 >conftest.err
8698 >  rm -f conftest.er1
8699 >  cat conftest.err >&5
8700 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 >  (exit $ac_status); } &&
8702 >         { ac_try='test -z "$ac_c_werror_flag"
8703 >                         || test ! -s conftest.err'
8704 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 >  (eval $ac_try) 2>&5
8706 >  ac_status=$?
8707 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 >  (exit $ac_status); }; } &&
8709 >         { ac_try='test -s conftest.$ac_objext'
8710 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 >  (eval $ac_try) 2>&5
8712 >  ac_status=$?
8713 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 >  (exit $ac_status); }; }; then
8715 >  ac_header_compiler=yes
8716 > else
8717 >  echo "$as_me: failed program was:" >&5
8718 > sed 's/^/| /' conftest.$ac_ext >&5
8719 >
8720 > ac_header_compiler=no
8721 > fi
8722 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8723 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8724 > echo "${ECHO_T}$ac_header_compiler" >&6
8725 >
8726 > # Is the header present?
8727 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
8728 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8729 > cat >conftest.$ac_ext <<_ACEOF
8730 > /* confdefs.h.  */
8731 > _ACEOF
8732 > cat confdefs.h >>conftest.$ac_ext
8733 > cat >>conftest.$ac_ext <<_ACEOF
8734 > /* end confdefs.h.  */
8735 > #include <$ac_header>
8736 > _ACEOF
8737 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8738 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8739 >  ac_status=$?
8740 >  grep -v '^ *+' conftest.er1 >conftest.err
8741 >  rm -f conftest.er1
8742 >  cat conftest.err >&5
8743 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 >  (exit $ac_status); } >/dev/null; then
8745 >  if test -s conftest.err; then
8746 >    ac_cpp_err=$ac_c_preproc_warn_flag
8747 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8748 >  else
8749 >    ac_cpp_err=
8750 >  fi
8751 > else
8752 >  ac_cpp_err=yes
8753 > fi
8754 > if test -z "$ac_cpp_err"; then
8755 >  ac_header_preproc=yes
8756 > else
8757 >  echo "$as_me: failed program was:" >&5
8758 > sed 's/^/| /' conftest.$ac_ext >&5
8759 >
8760 >  ac_header_preproc=no
8761 > fi
8762 > rm -f conftest.err conftest.$ac_ext
8763 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8764 > echo "${ECHO_T}$ac_header_preproc" >&6
8765 >
8766 > # So?  What about this header?
8767 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8768 >  yes:no: )
8769 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8770 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8771 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8772 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8773 >    ac_header_preproc=yes
8774 >    ;;
8775 >  no:yes:* )
8776 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8777 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8778 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8779 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8780 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8781 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8782 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8783 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8784 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8785 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8786 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8787 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8788 >    (
8789 >      cat <<\_ASBOX
8790 > ## ------------------------------ ##
8791 > ## Report this to gezelter@nd.edu ##
8792 > ## ------------------------------ ##
8793 > _ASBOX
8794 >    ) |
8795 >      sed "s/^/$as_me: WARNING:     /" >&2
8796 >    ;;
8797 > esac
8798 > echo "$as_me:$LINENO: checking for $ac_header" >&5
8799 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8800 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
8801 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8802 > else
8803 >  eval "$as_ac_Header=\$ac_header_preproc"
8804 > fi
8805 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8806 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8807 >
8808 > fi
8809 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
8810 >  cat >>confdefs.h <<_ACEOF
8811 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8812 > _ACEOF
8813 >
8814 > fi
8815 >
8816 > done
8817 >
8818 > echo "$as_me:$LINENO: checking types of arguments for select" >&5
8819 > echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
8820 > if test "${ac_cv_func_select_args+set}" = set; then
8821 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8822 > else
8823 >  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8824 > for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
8825 >  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8826 >   cat >conftest.$ac_ext <<_ACEOF
8827 > /* confdefs.h.  */
8828 > _ACEOF
8829 > cat confdefs.h >>conftest.$ac_ext
8830 > cat >>conftest.$ac_ext <<_ACEOF
8831 > /* end confdefs.h.  */
8832 > $ac_includes_default
8833 > #if HAVE_SYS_SELECT_H
8834 > # include <sys/select.h>
8835 > #endif
8836 > #if HAVE_SYS_SOCKET_H
8837 > # include <sys/socket.h>
8838 > #endif
8839 >
8840 > #ifdef FC_DUMMY_MAIN
8841 > #ifndef FC_DUMMY_MAIN_EQ_F77
8842 > #  ifdef __cplusplus
8843 >     extern "C"
8844 > #  endif
8845 >   int FC_DUMMY_MAIN() { return 1; }
8846 > #endif
8847 > #endif
8848 > int
8849 > main ()
8850 > {
8851 > extern int select ($ac_arg1,
8852 >                                            $ac_arg234, $ac_arg234, $ac_arg234,
8853 >                                            $ac_arg5);
8854 >  ;
8855 >  return 0;
8856 > }
8857 > _ACEOF
8858 > rm -f conftest.$ac_objext
8859 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8860 >  (eval $ac_compile) 2>conftest.er1
8861 >  ac_status=$?
8862 >  grep -v '^ *+' conftest.er1 >conftest.err
8863 >  rm -f conftest.er1
8864 >  cat conftest.err >&5
8865 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 >  (exit $ac_status); } &&
8867 >         { ac_try='test -z "$ac_c_werror_flag"
8868 >                         || test ! -s conftest.err'
8869 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 >  (eval $ac_try) 2>&5
8871 >  ac_status=$?
8872 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 >  (exit $ac_status); }; } &&
8874 >         { ac_try='test -s conftest.$ac_objext'
8875 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 >  (eval $ac_try) 2>&5
8877 >  ac_status=$?
8878 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 >  (exit $ac_status); }; }; then
8880 >  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8881 > else
8882 >  echo "$as_me: failed program was:" >&5
8883 > sed 's/^/| /' conftest.$ac_ext >&5
8884 >
8885 > fi
8886 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8887 >  done
8888 > done
8889 > done
8890 > # Provide a safe default value.
8891 > : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8892 >
8893 > fi
8894 > echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
8895 > echo "${ECHO_T}$ac_cv_func_select_args" >&6
8896 > ac_save_IFS=$IFS; IFS=','
8897 > set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8898 > IFS=$ac_save_IFS
8899 > shift
8900 >
8901 > cat >>confdefs.h <<_ACEOF
8902 > #define SELECT_TYPE_ARG1 $1
8903 > _ACEOF
8904 >
8905 >
8906 > cat >>confdefs.h <<_ACEOF
8907 > #define SELECT_TYPE_ARG234 ($2)
8908 > _ACEOF
8909 >
8910 >
8911 > cat >>confdefs.h <<_ACEOF
8912 > #define SELECT_TYPE_ARG5 ($3)
8913 > _ACEOF
8914 >
8915 > rm -f conftest*
8916 >
8917 >
8918 > for ac_func in strftime
8919 > do
8920 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8921 > echo "$as_me:$LINENO: checking for $ac_func" >&5
8922 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8923 > if eval "test \"\${$as_ac_var+set}\" = set"; then
8924 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8925 > else
8926 >  cat >conftest.$ac_ext <<_ACEOF
8927 > /* confdefs.h.  */
8928 > _ACEOF
8929 > cat confdefs.h >>conftest.$ac_ext
8930 > cat >>conftest.$ac_ext <<_ACEOF
8931 > /* end confdefs.h.  */
8932 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8933 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8934 > #define $ac_func innocuous_$ac_func
8935 >
8936 > /* System header to define __stub macros and hopefully few prototypes,
8937 >    which can conflict with char $ac_func (); below.
8938 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8939 >    <limits.h> exists even on freestanding compilers.  */
8940 >
8941 > #ifdef __STDC__
8942 > # include <limits.h>
8943 > #else
8944 > # include <assert.h>
8945 > #endif
8946 >
8947 > #undef $ac_func
8948 >
8949 > /* Override any gcc2 internal prototype to avoid an error.  */
8950 > #ifdef __cplusplus
8951 > extern "C"
8952 > {
8953 > #endif
8954 > /* We use char because int might match the return type of a gcc2
8955 >   builtin and then its argument prototype would still apply.  */
8956 > char $ac_func ();
8957 > /* The GNU C library defines this for functions which it implements
8958 >    to always fail with ENOSYS.  Some functions are actually named
8959 >    something starting with __ and the normal name is an alias.  */
8960 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8961 > choke me
8962 > #else
8963 > char (*f) () = $ac_func;
8964 > #endif
8965 > #ifdef __cplusplus
8966 > }
8967 > #endif
8968 >
8969 > #ifdef FC_DUMMY_MAIN
8970 > #ifndef FC_DUMMY_MAIN_EQ_F77
8971 > #  ifdef __cplusplus
8972 >     extern "C"
8973 > #  endif
8974 >   int FC_DUMMY_MAIN() { return 1; }
8975 > #endif
8976 > #endif
8977 > int
8978 > main ()
8979 > {
8980 > return f != $ac_func;
8981 >  ;
8982 >  return 0;
8983 > }
8984 > _ACEOF
8985 > rm -f conftest.$ac_objext conftest$ac_exeext
8986 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987 >  (eval $ac_link) 2>conftest.er1
8988 >  ac_status=$?
8989 >  grep -v '^ *+' conftest.er1 >conftest.err
8990 >  rm -f conftest.er1
8991 >  cat conftest.err >&5
8992 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 >  (exit $ac_status); } &&
8994 >         { ac_try='test -z "$ac_c_werror_flag"
8995 >                         || test ! -s conftest.err'
8996 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 >  (eval $ac_try) 2>&5
8998 >  ac_status=$?
8999 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 >  (exit $ac_status); }; } &&
9001 >         { ac_try='test -s conftest$ac_exeext'
9002 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 >  (eval $ac_try) 2>&5
9004 >  ac_status=$?
9005 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 >  (exit $ac_status); }; }; then
9007 >  eval "$as_ac_var=yes"
9008 > else
9009 >  echo "$as_me: failed program was:" >&5
9010 > sed 's/^/| /' conftest.$ac_ext >&5
9011 >
9012 > eval "$as_ac_var=no"
9013 > fi
9014 > rm -f conftest.err conftest.$ac_objext \
9015 >      conftest$ac_exeext conftest.$ac_ext
9016 > fi
9017 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9018 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9019 > if test `eval echo '${'$as_ac_var'}'` = yes; then
9020 >  cat >>confdefs.h <<_ACEOF
9021 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9022 > _ACEOF
9023 >
9024 > else
9025 >  # strftime is in -lintl on SCO UNIX.
9026 > echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9027 > echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9028 > if test "${ac_cv_lib_intl_strftime+set}" = set; then
9029 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9030 > else
9031 >  ac_check_lib_save_LIBS=$LIBS
9032 > LIBS="-lintl  $LIBS"
9033 > cat >conftest.$ac_ext <<_ACEOF
9034 > /* confdefs.h.  */
9035 > _ACEOF
9036 > cat confdefs.h >>conftest.$ac_ext
9037 > cat >>conftest.$ac_ext <<_ACEOF
9038 > /* end confdefs.h.  */
9039 >
9040 > /* Override any gcc2 internal prototype to avoid an error.  */
9041 > #ifdef __cplusplus
9042 > extern "C"
9043 > #endif
9044 > /* We use char because int might match the return type of a gcc2
9045 >   builtin and then its argument prototype would still apply.  */
9046 > char strftime ();
9047 > #ifdef FC_DUMMY_MAIN
9048 > #ifndef FC_DUMMY_MAIN_EQ_F77
9049 > #  ifdef __cplusplus
9050 >     extern "C"
9051 > #  endif
9052 >   int FC_DUMMY_MAIN() { return 1; }
9053 > #endif
9054 > #endif
9055 > int
9056 > main ()
9057 > {
9058 > strftime ();
9059 >  ;
9060 >  return 0;
9061 > }
9062 > _ACEOF
9063 > rm -f conftest.$ac_objext conftest$ac_exeext
9064 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 >  (eval $ac_link) 2>conftest.er1
9066 >  ac_status=$?
9067 >  grep -v '^ *+' conftest.er1 >conftest.err
9068 >  rm -f conftest.er1
9069 >  cat conftest.err >&5
9070 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 >  (exit $ac_status); } &&
9072 >         { ac_try='test -z "$ac_c_werror_flag"
9073 >                         || test ! -s conftest.err'
9074 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 >  (eval $ac_try) 2>&5
9076 >  ac_status=$?
9077 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 >  (exit $ac_status); }; } &&
9079 >         { ac_try='test -s conftest$ac_exeext'
9080 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 >  (eval $ac_try) 2>&5
9082 >  ac_status=$?
9083 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 >  (exit $ac_status); }; }; then
9085 >  ac_cv_lib_intl_strftime=yes
9086 > else
9087 >  echo "$as_me: failed program was:" >&5
9088 > sed 's/^/| /' conftest.$ac_ext >&5
9089 >
9090 > ac_cv_lib_intl_strftime=no
9091 > fi
9092 > rm -f conftest.err conftest.$ac_objext \
9093 >      conftest$ac_exeext conftest.$ac_ext
9094 > LIBS=$ac_check_lib_save_LIBS
9095 > fi
9096 > echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9097 > echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9098 > if test $ac_cv_lib_intl_strftime = yes; then
9099 >  cat >>confdefs.h <<\_ACEOF
9100 > #define HAVE_STRFTIME 1
9101 > _ACEOF
9102 >
9103 > LIBS="-lintl $LIBS"
9104 > fi
9105 >
9106 > fi
9107 > done
9108 >
9109 > echo "$as_me:$LINENO: checking for working strtod" >&5
9110 > echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
9111 > if test "${ac_cv_func_strtod+set}" = set; then
9112 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9113 > else
9114 >  if test "$cross_compiling" = yes; then
9115 >  ac_cv_func_strtod=no
9116 > else
9117 >  cat >conftest.$ac_ext <<_ACEOF
9118 > /* confdefs.h.  */
9119 > _ACEOF
9120 > cat confdefs.h >>conftest.$ac_ext
9121 > cat >>conftest.$ac_ext <<_ACEOF
9122 > /* end confdefs.h.  */
9123 >
9124 > double strtod ();
9125 > int
9126 > main()
9127 > {
9128 >  {
9129 >    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
9130 >    char *string = " +69";
9131 >    char *term;
9132 >    double value;
9133 >    value = strtod (string, &term);
9134 >    if (value != 69 || term != (string + 4))
9135 >      exit (1);
9136 >  }
9137 >
9138 >  {
9139 >    /* Under Solaris 2.4, strtod returns the wrong value for the
9140 >       terminating character under some conditions.  */
9141 >    char *string = "NaN";
9142 >    char *term;
9143 >    strtod (string, &term);
9144 >    if (term != string && *(term - 1) == 0)
9145 >      exit (1);
9146 >  }
9147 >  exit (0);
9148 > }
9149 >
9150 > _ACEOF
9151 > rm -f conftest$ac_exeext
9152 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 >  (eval $ac_link) 2>&5
9154 >  ac_status=$?
9155 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 >  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9157 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 >  (eval $ac_try) 2>&5
9159 >  ac_status=$?
9160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 >  (exit $ac_status); }; }; then
9162 >  ac_cv_func_strtod=yes
9163 > else
9164 >  echo "$as_me: program exited with status $ac_status" >&5
9165 > echo "$as_me: failed program was:" >&5
9166 > sed 's/^/| /' conftest.$ac_ext >&5
9167 >
9168 > ( exit $ac_status )
9169 > ac_cv_func_strtod=no
9170 > fi
9171 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9172 > fi
9173 > fi
9174 > echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
9175 > echo "${ECHO_T}$ac_cv_func_strtod" >&6
9176 > if test $ac_cv_func_strtod = no; then
9177 >  case $LIBOBJS in
9178 >    "strtod.$ac_objext"   | \
9179 >  *" strtod.$ac_objext"   | \
9180 >    "strtod.$ac_objext "* | \
9181 >  *" strtod.$ac_objext "* ) ;;
9182 >  *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
9183 > esac
9184 >
9185 > echo "$as_me:$LINENO: checking for pow" >&5
9186 > echo $ECHO_N "checking for pow... $ECHO_C" >&6
9187 > if test "${ac_cv_func_pow+set}" = set; then
9188 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9189 > else
9190 >  cat >conftest.$ac_ext <<_ACEOF
9191 > /* confdefs.h.  */
9192 > _ACEOF
9193 > cat confdefs.h >>conftest.$ac_ext
9194 > cat >>conftest.$ac_ext <<_ACEOF
9195 > /* end confdefs.h.  */
9196 > /* Define pow to an innocuous variant, in case <limits.h> declares pow.
9197 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9198 > #define pow innocuous_pow
9199 >
9200 > /* System header to define __stub macros and hopefully few prototypes,
9201 >    which can conflict with char pow (); below.
9202 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 >    <limits.h> exists even on freestanding compilers.  */
9204 >
9205 > #ifdef __STDC__
9206 > # include <limits.h>
9207 > #else
9208 > # include <assert.h>
9209 > #endif
9210 >
9211 > #undef pow
9212 >
9213 > /* Override any gcc2 internal prototype to avoid an error.  */
9214 > #ifdef __cplusplus
9215 > extern "C"
9216 > {
9217 > #endif
9218 > /* We use char because int might match the return type of a gcc2
9219 >   builtin and then its argument prototype would still apply.  */
9220 > char pow ();
9221 > /* The GNU C library defines this for functions which it implements
9222 >    to always fail with ENOSYS.  Some functions are actually named
9223 >    something starting with __ and the normal name is an alias.  */
9224 > #if defined (__stub_pow) || defined (__stub___pow)
9225 > choke me
9226 > #else
9227 > char (*f) () = pow;
9228 > #endif
9229 > #ifdef __cplusplus
9230 > }
9231 > #endif
9232 >
9233 > #ifdef FC_DUMMY_MAIN
9234 > #ifndef FC_DUMMY_MAIN_EQ_F77
9235 > #  ifdef __cplusplus
9236 >     extern "C"
9237 > #  endif
9238 >   int FC_DUMMY_MAIN() { return 1; }
9239 > #endif
9240 > #endif
9241 > int
9242 > main ()
9243 > {
9244 > return f != pow;
9245 >  ;
9246 >  return 0;
9247 > }
9248 > _ACEOF
9249 > rm -f conftest.$ac_objext conftest$ac_exeext
9250 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9251 >  (eval $ac_link) 2>conftest.er1
9252 >  ac_status=$?
9253 >  grep -v '^ *+' conftest.er1 >conftest.err
9254 >  rm -f conftest.er1
9255 >  cat conftest.err >&5
9256 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 >  (exit $ac_status); } &&
9258 >         { ac_try='test -z "$ac_c_werror_flag"
9259 >                         || test ! -s conftest.err'
9260 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 >  (eval $ac_try) 2>&5
9262 >  ac_status=$?
9263 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 >  (exit $ac_status); }; } &&
9265 >         { ac_try='test -s conftest$ac_exeext'
9266 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 >  (eval $ac_try) 2>&5
9268 >  ac_status=$?
9269 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 >  (exit $ac_status); }; }; then
9271 >  ac_cv_func_pow=yes
9272 > else
9273 >  echo "$as_me: failed program was:" >&5
9274 > sed 's/^/| /' conftest.$ac_ext >&5
9275 >
9276 > ac_cv_func_pow=no
9277 > fi
9278 > rm -f conftest.err conftest.$ac_objext \
9279 >      conftest$ac_exeext conftest.$ac_ext
9280 > fi
9281 > echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
9282 > echo "${ECHO_T}$ac_cv_func_pow" >&6
9283 >
9284 > if test $ac_cv_func_pow = no; then
9285 >  echo "$as_me:$LINENO: checking for pow in -lm" >&5
9286 > echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
9287 > if test "${ac_cv_lib_m_pow+set}" = set; then
9288 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9289 > else
9290 >  ac_check_lib_save_LIBS=$LIBS
9291 > LIBS="-lm  $LIBS"
9292 > cat >conftest.$ac_ext <<_ACEOF
9293 > /* confdefs.h.  */
9294 > _ACEOF
9295 > cat confdefs.h >>conftest.$ac_ext
9296 > cat >>conftest.$ac_ext <<_ACEOF
9297 > /* end confdefs.h.  */
9298 >
9299 > /* Override any gcc2 internal prototype to avoid an error.  */
9300 > #ifdef __cplusplus
9301 > extern "C"
9302 > #endif
9303 > /* We use char because int might match the return type of a gcc2
9304 >   builtin and then its argument prototype would still apply.  */
9305 > char pow ();
9306 > #ifdef FC_DUMMY_MAIN
9307 > #ifndef FC_DUMMY_MAIN_EQ_F77
9308 > #  ifdef __cplusplus
9309 >     extern "C"
9310 > #  endif
9311 >   int FC_DUMMY_MAIN() { return 1; }
9312 > #endif
9313 > #endif
9314 > int
9315 > main ()
9316 > {
9317 > pow ();
9318 >  ;
9319 >  return 0;
9320 > }
9321 > _ACEOF
9322 > rm -f conftest.$ac_objext conftest$ac_exeext
9323 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 >  (eval $ac_link) 2>conftest.er1
9325 >  ac_status=$?
9326 >  grep -v '^ *+' conftest.er1 >conftest.err
9327 >  rm -f conftest.er1
9328 >  cat conftest.err >&5
9329 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 >  (exit $ac_status); } &&
9331 >         { ac_try='test -z "$ac_c_werror_flag"
9332 >                         || test ! -s conftest.err'
9333 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 >  (eval $ac_try) 2>&5
9335 >  ac_status=$?
9336 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 >  (exit $ac_status); }; } &&
9338 >         { ac_try='test -s conftest$ac_exeext'
9339 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 >  (eval $ac_try) 2>&5
9341 >  ac_status=$?
9342 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 >  (exit $ac_status); }; }; then
9344 >  ac_cv_lib_m_pow=yes
9345 > else
9346 >  echo "$as_me: failed program was:" >&5
9347 > sed 's/^/| /' conftest.$ac_ext >&5
9348 >
9349 > ac_cv_lib_m_pow=no
9350 > fi
9351 > rm -f conftest.err conftest.$ac_objext \
9352 >      conftest$ac_exeext conftest.$ac_ext
9353 > LIBS=$ac_check_lib_save_LIBS
9354 > fi
9355 > echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9356 > echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
9357 > if test $ac_cv_lib_m_pow = yes; then
9358 >  POW_LIB=-lm
9359 > else
9360 >  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
9361 > echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
9362 > fi
9363 >
9364 > fi
9365 >
9366 > fi
9367 >
9368 >
9369 >
9370 >
9371 >
9372 >
9373 >
9374 >
9375 >
9376 >
9377 >
9378 >
9379 >
9380 >
9381 >
9382 >
9383 >
9384 >
9385 >
9386 >
9387 >
9388 >
9389 >
9390 >
9391 >
9392 >
9393 >
9394 >
9395 > for ac_func in floor getpagesize gettimeofday memchr memmove memset pow pstat_getdynamic pstat_getstatic rint select snprintf sranddev sqrt strcasecmp strchr strdup stricmp strncasecmp strnicmp strrchr strstr strtol sysmp getsysinfo sysctl table
9396 > do
9397 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9398 > echo "$as_me:$LINENO: checking for $ac_func" >&5
9399 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9400 > if eval "test \"\${$as_ac_var+set}\" = set"; then
9401 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9402 > else
9403 >  cat >conftest.$ac_ext <<_ACEOF
9404 > /* confdefs.h.  */
9405 > _ACEOF
9406 > cat confdefs.h >>conftest.$ac_ext
9407 > cat >>conftest.$ac_ext <<_ACEOF
9408 > /* end confdefs.h.  */
9409 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9410 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9411 > #define $ac_func innocuous_$ac_func
9412 >
9413 > /* System header to define __stub macros and hopefully few prototypes,
9414 >    which can conflict with char $ac_func (); below.
9415 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9416 >    <limits.h> exists even on freestanding compilers.  */
9417 >
9418 > #ifdef __STDC__
9419 > # include <limits.h>
9420 > #else
9421 > # include <assert.h>
9422 > #endif
9423 >
9424 > #undef $ac_func
9425 >
9426 > /* Override any gcc2 internal prototype to avoid an error.  */
9427 > #ifdef __cplusplus
9428 > extern "C"
9429 > {
9430 > #endif
9431 > /* We use char because int might match the return type of a gcc2
9432 >   builtin and then its argument prototype would still apply.  */
9433 > char $ac_func ();
9434 > /* The GNU C library defines this for functions which it implements
9435 >    to always fail with ENOSYS.  Some functions are actually named
9436 >    something starting with __ and the normal name is an alias.  */
9437 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9438 > choke me
9439 > #else
9440 > char (*f) () = $ac_func;
9441 > #endif
9442 > #ifdef __cplusplus
9443 > }
9444 > #endif
9445 >
9446 > #ifdef FC_DUMMY_MAIN
9447 > #ifndef FC_DUMMY_MAIN_EQ_F77
9448 > #  ifdef __cplusplus
9449 >     extern "C"
9450 > #  endif
9451 >   int FC_DUMMY_MAIN() { return 1; }
9452 > #endif
9453 > #endif
9454 > int
9455 > main ()
9456 > {
9457 > return f != $ac_func;
9458 >  ;
9459 >  return 0;
9460 > }
9461 > _ACEOF
9462 > rm -f conftest.$ac_objext conftest$ac_exeext
9463 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 >  (eval $ac_link) 2>conftest.er1
9465 >  ac_status=$?
9466 >  grep -v '^ *+' conftest.er1 >conftest.err
9467 >  rm -f conftest.er1
9468 >  cat conftest.err >&5
9469 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 >  (exit $ac_status); } &&
9471 >         { ac_try='test -z "$ac_c_werror_flag"
9472 >                         || test ! -s conftest.err'
9473 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 >  (eval $ac_try) 2>&5
9475 >  ac_status=$?
9476 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 >  (exit $ac_status); }; } &&
9478 >         { ac_try='test -s conftest$ac_exeext'
9479 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 >  (eval $ac_try) 2>&5
9481 >  ac_status=$?
9482 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 >  (exit $ac_status); }; }; then
9484 >  eval "$as_ac_var=yes"
9485 > else
9486 >  echo "$as_me: failed program was:" >&5
9487 > sed 's/^/| /' conftest.$ac_ext >&5
9488 >
9489 > eval "$as_ac_var=no"
9490 > fi
9491 > rm -f conftest.err conftest.$ac_objext \
9492 >      conftest$ac_exeext conftest.$ac_ext
9493 > fi
9494 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9495 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9496 > if test `eval echo '${'$as_ac_var'}'` = yes; then
9497 >  cat >>confdefs.h <<_ACEOF
9498 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9499 > _ACEOF
9500 >
9501 > fi
9502 > done
9503 >
9504 >
9505 > # special check for _system_configuration because AIX <4.3.2 do not
9506 > # contain the `physmem' member.
9507 > echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
9508 > echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
9509 > cat >conftest.$ac_ext <<_ACEOF
9510 > /* confdefs.h.  */
9511 > _ACEOF
9512 > cat confdefs.h >>conftest.$ac_ext
9513 > cat >>conftest.$ac_ext <<_ACEOF
9514 > /* end confdefs.h.  */
9515 > #include <sys/systemcfg.h>
9516 > #ifdef FC_DUMMY_MAIN
9517 > #ifndef FC_DUMMY_MAIN_EQ_F77
9518 > #  ifdef __cplusplus
9519 >     extern "C"
9520 > #  endif
9521 >   int FC_DUMMY_MAIN() { return 1; }
9522 > #endif
9523 > #endif
9524 > int
9525 > main ()
9526 > {
9527 > double x = _system_configuration.physmem;
9528 >  ;
9529 >  return 0;
9530 > }
9531 > _ACEOF
9532 > rm -f conftest.$ac_objext
9533 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9534 >  (eval $ac_compile) 2>conftest.er1
9535 >  ac_status=$?
9536 >  grep -v '^ *+' conftest.er1 >conftest.err
9537 >  rm -f conftest.er1
9538 >  cat conftest.err >&5
9539 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 >  (exit $ac_status); } &&
9541 >         { ac_try='test -z "$ac_c_werror_flag"
9542 >                         || test ! -s conftest.err'
9543 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 >  (eval $ac_try) 2>&5
9545 >  ac_status=$?
9546 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 >  (exit $ac_status); }; } &&
9548 >         { ac_try='test -s conftest.$ac_objext'
9549 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 >  (eval $ac_try) 2>&5
9551 >  ac_status=$?
9552 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 >  (exit $ac_status); }; }; then
9554 >  echo "$as_me:$LINENO: result: yes" >&5
9555 > echo "${ECHO_T}yes" >&6
9556 >
9557 > cat >>confdefs.h <<\_ACEOF
9558 > #define HAVE__SYSTEM_CONFIGURATION 1
9559 > _ACEOF
9560 >
9561 > else
9562 >  echo "$as_me: failed program was:" >&5
9563 > sed 's/^/| /' conftest.$ac_ext >&5
9564 >
9565 > echo "$as_me:$LINENO: result: no" >&5
9566 > echo "${ECHO_T}no" >&6
9567 > fi
9568 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9569 >
9570 >  # clean out junk possibly left behind by a previous configuration
9571 >  rm -f src/getopt.h
9572 >  # Check for getopt_long support
9573 >
9574 > for ac_header in getopt.h
9575 > do
9576 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9577 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
9578 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
9579 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9580 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
9581 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9582 > fi
9583 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9584 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9585 > else
9586 >  # Is the header compilable?
9587 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
9588 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9589 > cat >conftest.$ac_ext <<_ACEOF
9590 > /* confdefs.h.  */
9591 > _ACEOF
9592 > cat confdefs.h >>conftest.$ac_ext
9593 > cat >>conftest.$ac_ext <<_ACEOF
9594 > /* end confdefs.h.  */
9595 > $ac_includes_default
9596 > #include <$ac_header>
9597 > _ACEOF
9598 > rm -f conftest.$ac_objext
9599 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 >  (eval $ac_compile) 2>conftest.er1
9601 >  ac_status=$?
9602 >  grep -v '^ *+' conftest.er1 >conftest.err
9603 >  rm -f conftest.er1
9604 >  cat conftest.err >&5
9605 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 >  (exit $ac_status); } &&
9607 >         { ac_try='test -z "$ac_c_werror_flag"
9608 >                         || test ! -s conftest.err'
9609 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 >  (eval $ac_try) 2>&5
9611 >  ac_status=$?
9612 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 >  (exit $ac_status); }; } &&
9614 >         { ac_try='test -s conftest.$ac_objext'
9615 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 >  (eval $ac_try) 2>&5
9617 >  ac_status=$?
9618 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 >  (exit $ac_status); }; }; then
9620 >  ac_header_compiler=yes
9621 > else
9622 >  echo "$as_me: failed program was:" >&5
9623 > sed 's/^/| /' conftest.$ac_ext >&5
9624 >
9625 > ac_header_compiler=no
9626 > fi
9627 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9628 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9629 > echo "${ECHO_T}$ac_header_compiler" >&6
9630 >
9631 > # Is the header present?
9632 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
9633 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9634 > cat >conftest.$ac_ext <<_ACEOF
9635 > /* confdefs.h.  */
9636 > _ACEOF
9637 > cat confdefs.h >>conftest.$ac_ext
9638 > cat >>conftest.$ac_ext <<_ACEOF
9639 > /* end confdefs.h.  */
9640 > #include <$ac_header>
9641 > _ACEOF
9642 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9644 >  ac_status=$?
9645 >  grep -v '^ *+' conftest.er1 >conftest.err
9646 >  rm -f conftest.er1
9647 >  cat conftest.err >&5
9648 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 >  (exit $ac_status); } >/dev/null; then
9650 >  if test -s conftest.err; then
9651 >    ac_cpp_err=$ac_c_preproc_warn_flag
9652 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9653 >  else
9654 >    ac_cpp_err=
9655 >  fi
9656 > else
9657 >  ac_cpp_err=yes
9658 > fi
9659 > if test -z "$ac_cpp_err"; then
9660 >  ac_header_preproc=yes
9661 > else
9662 >  echo "$as_me: failed program was:" >&5
9663 > sed 's/^/| /' conftest.$ac_ext >&5
9664 >
9665 >  ac_header_preproc=no
9666 > fi
9667 > rm -f conftest.err conftest.$ac_ext
9668 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9669 > echo "${ECHO_T}$ac_header_preproc" >&6
9670 >
9671 > # So?  What about this header?
9672 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9673 >  yes:no: )
9674 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9675 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9676 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9677 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9678 >    ac_header_preproc=yes
9679 >    ;;
9680 >  no:yes:* )
9681 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9682 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9683 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9684 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9685 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9686 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9687 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9688 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9689 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9690 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9691 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9692 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9693 >    (
9694 >      cat <<\_ASBOX
9695 > ## ------------------------------ ##
9696 > ## Report this to gezelter@nd.edu ##
9697 > ## ------------------------------ ##
9698 > _ASBOX
9699 >    ) |
9700 >      sed "s/^/$as_me: WARNING:     /" >&2
9701 >    ;;
9702 > esac
9703 > echo "$as_me:$LINENO: checking for $ac_header" >&5
9704 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9705 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
9706 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9707 > else
9708 >  eval "$as_ac_Header=\$ac_header_preproc"
9709 > fi
9710 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9711 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9712 >
9713 > fi
9714 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
9715 >  cat >>confdefs.h <<_ACEOF
9716 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9717 > _ACEOF
9718 >
9719 > fi
9720 >
9721 > done
9722 >
9723 >
9724 > for ac_func in getopt_long
9725 > do
9726 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9727 > echo "$as_me:$LINENO: checking for $ac_func" >&5
9728 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9729 > if eval "test \"\${$as_ac_var+set}\" = set"; then
9730 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9731 > else
9732 >  cat >conftest.$ac_ext <<_ACEOF
9733 > /* confdefs.h.  */
9734 > _ACEOF
9735 > cat confdefs.h >>conftest.$ac_ext
9736 > cat >>conftest.$ac_ext <<_ACEOF
9737 > /* end confdefs.h.  */
9738 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9739 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9740 > #define $ac_func innocuous_$ac_func
9741 >
9742 > /* System header to define __stub macros and hopefully few prototypes,
9743 >    which can conflict with char $ac_func (); below.
9744 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745 >    <limits.h> exists even on freestanding compilers.  */
9746 >
9747 > #ifdef __STDC__
9748 > # include <limits.h>
9749 > #else
9750 > # include <assert.h>
9751 > #endif
9752 >
9753 > #undef $ac_func
9754 >
9755 > /* Override any gcc2 internal prototype to avoid an error.  */
9756 > #ifdef __cplusplus
9757 > extern "C"
9758 > {
9759 > #endif
9760 > /* We use char because int might match the return type of a gcc2
9761 >   builtin and then its argument prototype would still apply.  */
9762 > char $ac_func ();
9763 > /* The GNU C library defines this for functions which it implements
9764 >    to always fail with ENOSYS.  Some functions are actually named
9765 >    something starting with __ and the normal name is an alias.  */
9766 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 > choke me
9768 > #else
9769 > char (*f) () = $ac_func;
9770 > #endif
9771 > #ifdef __cplusplus
9772 > }
9773 > #endif
9774 >
9775 > #ifdef FC_DUMMY_MAIN
9776 > #ifndef FC_DUMMY_MAIN_EQ_F77
9777 > #  ifdef __cplusplus
9778 >     extern "C"
9779 > #  endif
9780 >   int FC_DUMMY_MAIN() { return 1; }
9781 > #endif
9782 > #endif
9783 > int
9784 > main ()
9785 > {
9786 > return f != $ac_func;
9787 >  ;
9788 >  return 0;
9789 > }
9790 > _ACEOF
9791 > rm -f conftest.$ac_objext conftest$ac_exeext
9792 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9793 >  (eval $ac_link) 2>conftest.er1
9794 >  ac_status=$?
9795 >  grep -v '^ *+' conftest.er1 >conftest.err
9796 >  rm -f conftest.er1
9797 >  cat conftest.err >&5
9798 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 >  (exit $ac_status); } &&
9800 >         { ac_try='test -z "$ac_c_werror_flag"
9801 >                         || test ! -s conftest.err'
9802 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 >  (eval $ac_try) 2>&5
9804 >  ac_status=$?
9805 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 >  (exit $ac_status); }; } &&
9807 >         { ac_try='test -s conftest$ac_exeext'
9808 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 >  (eval $ac_try) 2>&5
9810 >  ac_status=$?
9811 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 >  (exit $ac_status); }; }; then
9813 >  eval "$as_ac_var=yes"
9814 > else
9815 >  echo "$as_me: failed program was:" >&5
9816 > sed 's/^/| /' conftest.$ac_ext >&5
9817 >
9818 > eval "$as_ac_var=no"
9819 > fi
9820 > rm -f conftest.err conftest.$ac_objext \
9821 >      conftest$ac_exeext conftest.$ac_ext
9822 > fi
9823 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9824 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9825 > if test `eval echo '${'$as_ac_var'}'` = yes; then
9826 >  cat >>confdefs.h <<_ACEOF
9827 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9828 > _ACEOF
9829 >
9830 > else
9831 >  # FreeBSD has a gnugetopt library for this
9832 >    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
9833 > echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
9834 > if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
9835 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9836 > else
9837 >  ac_check_lib_save_LIBS=$LIBS
9838 > LIBS="-lgnugetopt  $LIBS"
9839 > cat >conftest.$ac_ext <<_ACEOF
9840 > /* confdefs.h.  */
9841 > _ACEOF
9842 > cat confdefs.h >>conftest.$ac_ext
9843 > cat >>conftest.$ac_ext <<_ACEOF
9844 > /* end confdefs.h.  */
9845 >
9846 > /* Override any gcc2 internal prototype to avoid an error.  */
9847 > #ifdef __cplusplus
9848 > extern "C"
9849 > #endif
9850 > /* We use char because int might match the return type of a gcc2
9851 >   builtin and then its argument prototype would still apply.  */
9852 > char getopt_long ();
9853 > #ifdef FC_DUMMY_MAIN
9854 > #ifndef FC_DUMMY_MAIN_EQ_F77
9855 > #  ifdef __cplusplus
9856 >     extern "C"
9857 > #  endif
9858 >   int FC_DUMMY_MAIN() { return 1; }
9859 > #endif
9860 > #endif
9861 > int
9862 > main ()
9863 > {
9864 > getopt_long ();
9865 >  ;
9866 >  return 0;
9867 > }
9868 > _ACEOF
9869 > rm -f conftest.$ac_objext conftest$ac_exeext
9870 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 >  (eval $ac_link) 2>conftest.er1
9872 >  ac_status=$?
9873 >  grep -v '^ *+' conftest.er1 >conftest.err
9874 >  rm -f conftest.er1
9875 >  cat conftest.err >&5
9876 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 >  (exit $ac_status); } &&
9878 >         { ac_try='test -z "$ac_c_werror_flag"
9879 >                         || test ! -s conftest.err'
9880 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 >  (eval $ac_try) 2>&5
9882 >  ac_status=$?
9883 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 >  (exit $ac_status); }; } &&
9885 >         { ac_try='test -s conftest$ac_exeext'
9886 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 >  (eval $ac_try) 2>&5
9888 >  ac_status=$?
9889 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 >  (exit $ac_status); }; }; then
9891 >  ac_cv_lib_gnugetopt_getopt_long=yes
9892 > else
9893 >  echo "$as_me: failed program was:" >&5
9894 > sed 's/^/| /' conftest.$ac_ext >&5
9895 >
9896 > ac_cv_lib_gnugetopt_getopt_long=no
9897 > fi
9898 > rm -f conftest.err conftest.$ac_objext \
9899 >      conftest$ac_exeext conftest.$ac_ext
9900 > LIBS=$ac_check_lib_save_LIBS
9901 > fi
9902 > echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
9903 > echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
9904 > if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
9905 >  cat >>confdefs.h <<\_ACEOF
9906 > #define HAVE_GETOPT_LONG 1
9907 > _ACEOF
9908 >
9909 > else
9910 >  # use the GNU replacement
9911 >      case $LIBOBJS in
9912 >    "getopt.$ac_objext"   | \
9913 >  *" getopt.$ac_objext"   | \
9914 >    "getopt.$ac_objext "* | \
9915 >  *" getopt.$ac_objext "* ) ;;
9916 >  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
9917 > esac
9918 >
9919 >      case $LIBOBJS in
9920 >    "getopt1.$ac_objext"   | \
9921 >  *" getopt1.$ac_objext"   | \
9922 >    "getopt1.$ac_objext "* | \
9923 >  *" getopt1.$ac_objext "* ) ;;
9924 >  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
9925 > esac
9926 >
9927 >                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
9928 >
9929 > fi
9930 >
9931 > fi
9932 > done
9933 >
9934 >
9935 > ac_ext=cc
9936 > ac_cpp='$CXXCPP $CPPFLAGS'
9937 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9938 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9939 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9940 >
9941 >
9942 > echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
9943 > echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
9944 > if test "${ac_cv_cxx_namespaces+set}" = set; then
9945 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9946 > else
9947 >
9948 >
9949 > ac_ext=cc
9950 > ac_cpp='$CXXCPP $CPPFLAGS'
9951 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9952 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9953 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9954 >
9955 > cat >conftest.$ac_ext <<_ACEOF
9956 > /* confdefs.h.  */
9957 > _ACEOF
9958 > cat confdefs.h >>conftest.$ac_ext
9959 > cat >>conftest.$ac_ext <<_ACEOF
9960 > /* end confdefs.h.  */
9961 > namespace Outer { namespace Inner { int i = 0; }}
9962 > #ifdef FC_DUMMY_MAIN
9963 > #ifndef FC_DUMMY_MAIN_EQ_F77
9964 > #  ifdef __cplusplus
9965 >     extern "C"
9966 > #  endif
9967 >   int FC_DUMMY_MAIN() { return 1; }
9968 > #endif
9969 > #endif
9970 > int
9971 > main ()
9972 > {
9973 > using namespace Outer::Inner; return i;
9974 >  ;
9975 >  return 0;
9976 > }
9977 > _ACEOF
9978 > rm -f conftest.$ac_objext
9979 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980 >  (eval $ac_compile) 2>conftest.er1
9981 >  ac_status=$?
9982 >  grep -v '^ *+' conftest.er1 >conftest.err
9983 >  rm -f conftest.er1
9984 >  cat conftest.err >&5
9985 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 >  (exit $ac_status); } &&
9987 >         { ac_try='test -z "$ac_cxx_werror_flag"
9988 >                         || test ! -s conftest.err'
9989 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 >  (eval $ac_try) 2>&5
9991 >  ac_status=$?
9992 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 >  (exit $ac_status); }; } &&
9994 >         { ac_try='test -s conftest.$ac_objext'
9995 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 >  (eval $ac_try) 2>&5
9997 >  ac_status=$?
9998 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 >  (exit $ac_status); }; }; then
10000 >  ac_cv_cxx_namespaces=yes
10001 > else
10002 >  echo "$as_me: failed program was:" >&5
10003 > sed 's/^/| /' conftest.$ac_ext >&5
10004 >
10005 > ac_cv_cxx_namespaces=no
10006 > fi
10007 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10008 > ac_ext=cc
10009 > ac_cpp='$CXXCPP $CPPFLAGS'
10010 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10013 >
10014 >
10015 > fi
10016 > echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
10017 > echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
10018 > if test "$ac_cv_cxx_namespaces" = yes; then
10019 >
10020 > cat >>confdefs.h <<\_ACEOF
10021 > #define HAVE_NAMESPACES
10022 > _ACEOF
10023 >
10024 > fi
10025 >
10026 > ac_ext=cc
10027 > ac_cpp='$CXXCPP $CPPFLAGS'
10028 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10029 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10030 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10031 > echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10032 > echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10033 > if test -z "$CXXCPP"; then
10034 >  if test "${ac_cv_prog_CXXCPP+set}" = set; then
10035 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10036 > else
10037 >      # Double quotes because CXXCPP needs to be expanded
10038 >    for CXXCPP in "$CXX -E" "/lib/cpp"
10039 >    do
10040 >      ac_preproc_ok=false
10041 > for ac_cxx_preproc_warn_flag in '' yes
10042 > do
10043 >  # Use a header file that comes with gcc, so configuring glibc
10044 >  # with a fresh cross-compiler works.
10045 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10046 >  # <limits.h> exists even on freestanding compilers.
10047 >  # On the NeXT, cc -E runs the code through the compiler's parser,
10048 >  # not just through cpp. "Syntax error" is here to catch this case.
10049 >  cat >conftest.$ac_ext <<_ACEOF
10050 > /* confdefs.h.  */
10051 > _ACEOF
10052 > cat confdefs.h >>conftest.$ac_ext
10053 > cat >>conftest.$ac_ext <<_ACEOF
10054 > /* end confdefs.h.  */
10055 > #ifdef __STDC__
10056 > # include <limits.h>
10057 > #else
10058 > # include <assert.h>
10059 > #endif
10060 >                     Syntax error
10061 > _ACEOF
10062 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10063 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10064 >  ac_status=$?
10065 >  grep -v '^ *+' conftest.er1 >conftest.err
10066 >  rm -f conftest.er1
10067 >  cat conftest.err >&5
10068 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 >  (exit $ac_status); } >/dev/null; then
10070 >  if test -s conftest.err; then
10071 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10072 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10073 >  else
10074 >    ac_cpp_err=
10075 >  fi
10076 > else
10077 >  ac_cpp_err=yes
10078 > fi
10079 > if test -z "$ac_cpp_err"; then
10080 >  :
10081 > else
10082 >  echo "$as_me: failed program was:" >&5
10083 > sed 's/^/| /' conftest.$ac_ext >&5
10084 >
10085 >  # Broken: fails on valid input.
10086 > continue
10087 > fi
10088 > rm -f conftest.err conftest.$ac_ext
10089 >
10090 >  # OK, works on sane cases.  Now check whether non-existent headers
10091 >  # can be detected and how.
10092 >  cat >conftest.$ac_ext <<_ACEOF
10093 > /* confdefs.h.  */
10094 > _ACEOF
10095 > cat confdefs.h >>conftest.$ac_ext
10096 > cat >>conftest.$ac_ext <<_ACEOF
10097 > /* end confdefs.h.  */
10098 > #include <ac_nonexistent.h>
10099 > _ACEOF
10100 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10101 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10102 >  ac_status=$?
10103 >  grep -v '^ *+' conftest.er1 >conftest.err
10104 >  rm -f conftest.er1
10105 >  cat conftest.err >&5
10106 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 >  (exit $ac_status); } >/dev/null; then
10108 >  if test -s conftest.err; then
10109 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10110 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10111 >  else
10112 >    ac_cpp_err=
10113 >  fi
10114 > else
10115 >  ac_cpp_err=yes
10116 > fi
10117 > if test -z "$ac_cpp_err"; then
10118 >  # Broken: success on invalid input.
10119 > continue
10120 > else
10121 >  echo "$as_me: failed program was:" >&5
10122 > sed 's/^/| /' conftest.$ac_ext >&5
10123 >
10124 >  # Passes both tests.
10125 > ac_preproc_ok=:
10126 > break
10127 > fi
10128 > rm -f conftest.err conftest.$ac_ext
10129 >
10130 > done
10131 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10132 > rm -f conftest.err conftest.$ac_ext
10133 > if $ac_preproc_ok; then
10134 >  break
10135 > fi
10136 >
10137 >    done
10138 >    ac_cv_prog_CXXCPP=$CXXCPP
10139 >
10140 > fi
10141 >  CXXCPP=$ac_cv_prog_CXXCPP
10142 > else
10143 >  ac_cv_prog_CXXCPP=$CXXCPP
10144 > fi
10145 > echo "$as_me:$LINENO: result: $CXXCPP" >&5
10146 > echo "${ECHO_T}$CXXCPP" >&6
10147 > ac_preproc_ok=false
10148 > for ac_cxx_preproc_warn_flag in '' yes
10149 > do
10150 >  # Use a header file that comes with gcc, so configuring glibc
10151 >  # with a fresh cross-compiler works.
10152 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10153 >  # <limits.h> exists even on freestanding compilers.
10154 >  # On the NeXT, cc -E runs the code through the compiler's parser,
10155 >  # not just through cpp. "Syntax error" is here to catch this case.
10156 >  cat >conftest.$ac_ext <<_ACEOF
10157 > /* confdefs.h.  */
10158 > _ACEOF
10159 > cat confdefs.h >>conftest.$ac_ext
10160 > cat >>conftest.$ac_ext <<_ACEOF
10161 > /* end confdefs.h.  */
10162 > #ifdef __STDC__
10163 > # include <limits.h>
10164 > #else
10165 > # include <assert.h>
10166 > #endif
10167 >                     Syntax error
10168 > _ACEOF
10169 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10170 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10171 >  ac_status=$?
10172 >  grep -v '^ *+' conftest.er1 >conftest.err
10173 >  rm -f conftest.er1
10174 >  cat conftest.err >&5
10175 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 >  (exit $ac_status); } >/dev/null; then
10177 >  if test -s conftest.err; then
10178 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10179 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10180 >  else
10181 >    ac_cpp_err=
10182 >  fi
10183 > else
10184 >  ac_cpp_err=yes
10185 > fi
10186 > if test -z "$ac_cpp_err"; then
10187 >  :
10188 > else
10189 >  echo "$as_me: failed program was:" >&5
10190 > sed 's/^/| /' conftest.$ac_ext >&5
10191 >
10192 >  # Broken: fails on valid input.
10193 > continue
10194 > fi
10195 > rm -f conftest.err conftest.$ac_ext
10196 >
10197 >  # OK, works on sane cases.  Now check whether non-existent headers
10198 >  # can be detected and how.
10199 >  cat >conftest.$ac_ext <<_ACEOF
10200 > /* confdefs.h.  */
10201 > _ACEOF
10202 > cat confdefs.h >>conftest.$ac_ext
10203 > cat >>conftest.$ac_ext <<_ACEOF
10204 > /* end confdefs.h.  */
10205 > #include <ac_nonexistent.h>
10206 > _ACEOF
10207 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10208 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10209 >  ac_status=$?
10210 >  grep -v '^ *+' conftest.er1 >conftest.err
10211 >  rm -f conftest.er1
10212 >  cat conftest.err >&5
10213 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 >  (exit $ac_status); } >/dev/null; then
10215 >  if test -s conftest.err; then
10216 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10217 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10218 >  else
10219 >    ac_cpp_err=
10220 >  fi
10221 > else
10222 >  ac_cpp_err=yes
10223 > fi
10224 > if test -z "$ac_cpp_err"; then
10225 >  # Broken: success on invalid input.
10226 > continue
10227 > else
10228 >  echo "$as_me: failed program was:" >&5
10229 > sed 's/^/| /' conftest.$ac_ext >&5
10230 >
10231 >  # Passes both tests.
10232 > ac_preproc_ok=:
10233 > break
10234 > fi
10235 > rm -f conftest.err conftest.$ac_ext
10236 >
10237 > done
10238 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10239 > rm -f conftest.err conftest.$ac_ext
10240 > if $ac_preproc_ok; then
10241 >  :
10242 > else
10243 >  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10244 > See \`config.log' for more details." >&5
10245 > echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10246 > See \`config.log' for more details." >&2;}
10247 >   { (exit 1); exit 1; }; }
10248 > fi
10249 >
10250 > ac_ext=cc
10251 > ac_cpp='$CXXCPP $CPPFLAGS'
10252 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10253 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10254 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10255 >
10256 >
10257 > echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
10258 > echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
10259 > if test "${ac_cv_cxx_have_stl+set}" = set; then
10260 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10261 > else
10262 >
10263 >
10264 >
10265 > ac_ext=cc
10266 > ac_cpp='$CXXCPP $CPPFLAGS'
10267 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10268 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10269 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10270 >
10271 > cat >conftest.$ac_ext <<_ACEOF
10272 > /* confdefs.h.  */
10273 > _ACEOF
10274 > cat confdefs.h >>conftest.$ac_ext
10275 > cat >>conftest.$ac_ext <<_ACEOF
10276 > /* end confdefs.h.  */
10277 > #include <list>
10278 > #include <deque>
10279 > #ifdef HAVE_NAMESPACES
10280 > using namespace std;
10281 > #endif
10282 > #ifdef FC_DUMMY_MAIN
10283 > #ifndef FC_DUMMY_MAIN_EQ_F77
10284 > #  ifdef __cplusplus
10285 >     extern "C"
10286 > #  endif
10287 >   int FC_DUMMY_MAIN() { return 1; }
10288 > #endif
10289 > #endif
10290 > int
10291 > main ()
10292 > {
10293 > list<int> x; x.push_back(5);
10294 > list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
10295 >  ;
10296 >  return 0;
10297 > }
10298 > _ACEOF
10299 > rm -f conftest.$ac_objext
10300 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 >  (eval $ac_compile) 2>conftest.er1
10302 >  ac_status=$?
10303 >  grep -v '^ *+' conftest.er1 >conftest.err
10304 >  rm -f conftest.er1
10305 >  cat conftest.err >&5
10306 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 >  (exit $ac_status); } &&
10308 >         { ac_try='test -z "$ac_cxx_werror_flag"
10309 >                         || test ! -s conftest.err'
10310 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 >  (eval $ac_try) 2>&5
10312 >  ac_status=$?
10313 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 >  (exit $ac_status); }; } &&
10315 >         { ac_try='test -s conftest.$ac_objext'
10316 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 >  (eval $ac_try) 2>&5
10318 >  ac_status=$?
10319 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 >  (exit $ac_status); }; }; then
10321 >  ac_cv_cxx_have_stl=yes
10322 > else
10323 >  echo "$as_me: failed program was:" >&5
10324 > sed 's/^/| /' conftest.$ac_ext >&5
10325 >
10326 > ac_cv_cxx_have_stl=no
10327 > fi
10328 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10329 > ac_ext=cc
10330 > ac_cpp='$CXXCPP $CPPFLAGS'
10331 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10334 >
10335 >
10336 > fi
10337 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
10338 > echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
10339 > if test "$ac_cv_cxx_have_stl" = yes; then
10340 >
10341 > cat >>confdefs.h <<\_ACEOF
10342 > #define HAVE_STL
10343 > _ACEOF
10344 >
10345 > fi
10346 >
10347 >
10348 >
10349 >  if test "${ac_cv_header_iostream+set}" = set; then
10350 >  echo "$as_me:$LINENO: checking for iostream" >&5
10351 > echo $ECHO_N "checking for iostream... $ECHO_C" >&6
10352 > if test "${ac_cv_header_iostream+set}" = set; then
10353 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10354 > fi
10355 > echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
10356 > echo "${ECHO_T}$ac_cv_header_iostream" >&6
10357 > else
10358 >  # Is the header compilable?
10359 > echo "$as_me:$LINENO: checking iostream usability" >&5
10360 > echo $ECHO_N "checking iostream usability... $ECHO_C" >&6
10361 > cat >conftest.$ac_ext <<_ACEOF
10362 > /* confdefs.h.  */
10363 > _ACEOF
10364 > cat confdefs.h >>conftest.$ac_ext
10365 > cat >>conftest.$ac_ext <<_ACEOF
10366 > /* end confdefs.h.  */
10367 > $ac_includes_default
10368 > #include <iostream>
10369 > _ACEOF
10370 > rm -f conftest.$ac_objext
10371 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372 >  (eval $ac_compile) 2>conftest.er1
10373 >  ac_status=$?
10374 >  grep -v '^ *+' conftest.er1 >conftest.err
10375 >  rm -f conftest.er1
10376 >  cat conftest.err >&5
10377 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 >  (exit $ac_status); } &&
10379 >         { ac_try='test -z "$ac_cxx_werror_flag"
10380 >                         || test ! -s conftest.err'
10381 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 >  (eval $ac_try) 2>&5
10383 >  ac_status=$?
10384 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 >  (exit $ac_status); }; } &&
10386 >         { ac_try='test -s conftest.$ac_objext'
10387 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 >  (eval $ac_try) 2>&5
10389 >  ac_status=$?
10390 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 >  (exit $ac_status); }; }; then
10392 >  ac_header_compiler=yes
10393 > else
10394 >  echo "$as_me: failed program was:" >&5
10395 > sed 's/^/| /' conftest.$ac_ext >&5
10396 >
10397 > ac_header_compiler=no
10398 > fi
10399 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10400 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10401 > echo "${ECHO_T}$ac_header_compiler" >&6
10402 >
10403 > # Is the header present?
10404 > echo "$as_me:$LINENO: checking iostream presence" >&5
10405 > echo $ECHO_N "checking iostream presence... $ECHO_C" >&6
10406 > cat >conftest.$ac_ext <<_ACEOF
10407 > /* confdefs.h.  */
10408 > _ACEOF
10409 > cat confdefs.h >>conftest.$ac_ext
10410 > cat >>conftest.$ac_ext <<_ACEOF
10411 > /* end confdefs.h.  */
10412 > #include <iostream>
10413 > _ACEOF
10414 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10415 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10416 >  ac_status=$?
10417 >  grep -v '^ *+' conftest.er1 >conftest.err
10418 >  rm -f conftest.er1
10419 >  cat conftest.err >&5
10420 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 >  (exit $ac_status); } >/dev/null; then
10422 >  if test -s conftest.err; then
10423 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10424 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10425 >  else
10426 >    ac_cpp_err=
10427 >  fi
10428 > else
10429 >  ac_cpp_err=yes
10430 > fi
10431 > if test -z "$ac_cpp_err"; then
10432 >  ac_header_preproc=yes
10433 > else
10434 >  echo "$as_me: failed program was:" >&5
10435 > sed 's/^/| /' conftest.$ac_ext >&5
10436 >
10437 >  ac_header_preproc=no
10438 > fi
10439 > rm -f conftest.err conftest.$ac_ext
10440 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10441 > echo "${ECHO_T}$ac_header_preproc" >&6
10442 >
10443 > # So?  What about this header?
10444 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10445 >  yes:no: )
10446 >    { echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5
10447 > echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;}
10448 >    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5
10449 > echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;}
10450 >    ac_header_preproc=yes
10451 >    ;;
10452 >  no:yes:* )
10453 >    { echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5
10454 > echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;}
10455 >    { echo "$as_me:$LINENO: WARNING: iostream:     check for missing prerequisite headers?" >&5
10456 > echo "$as_me: WARNING: iostream:     check for missing prerequisite headers?" >&2;}
10457 >    { echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5
10458 > echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;}
10459 >    { echo "$as_me:$LINENO: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&5
10460 > echo "$as_me: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&2;}
10461 >    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5
10462 > echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;}
10463 >    { echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5
10464 > echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;}
10465 >    (
10466 >      cat <<\_ASBOX
10467 > ## ------------------------------ ##
10468 > ## Report this to gezelter@nd.edu ##
10469 > ## ------------------------------ ##
10470 > _ASBOX
10471 >    ) |
10472 >      sed "s/^/$as_me: WARNING:     /" >&2
10473 >    ;;
10474 > esac
10475 > echo "$as_me:$LINENO: checking for iostream" >&5
10476 > echo $ECHO_N "checking for iostream... $ECHO_C" >&6
10477 > if test "${ac_cv_header_iostream+set}" = set; then
10478 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10479 > else
10480 >  ac_cv_header_iostream=$ac_header_preproc
10481 > fi
10482 > echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
10483 > echo "${ECHO_T}$ac_cv_header_iostream" >&6
10484 >
10485 > fi
10486 > if test $ac_cv_header_iostream = yes; then
10487 >
10488 >
10489 > cat >>confdefs.h <<\_ACEOF
10490 > #define HAVE_IOSTREAM 1
10491 > _ACEOF
10492 >
10493 >
10494 > else
10495 >
10496 >
10497 > for ac_header in iostream.h
10498 > do
10499 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10500 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10501 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
10502 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10503 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10504 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10505 > fi
10506 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10507 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10508 > else
10509 >  # Is the header compilable?
10510 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
10511 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10512 > cat >conftest.$ac_ext <<_ACEOF
10513 > /* confdefs.h.  */
10514 > _ACEOF
10515 > cat confdefs.h >>conftest.$ac_ext
10516 > cat >>conftest.$ac_ext <<_ACEOF
10517 > /* end confdefs.h.  */
10518 > $ac_includes_default
10519 > #include <$ac_header>
10520 > _ACEOF
10521 > rm -f conftest.$ac_objext
10522 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10523 >  (eval $ac_compile) 2>conftest.er1
10524 >  ac_status=$?
10525 >  grep -v '^ *+' conftest.er1 >conftest.err
10526 >  rm -f conftest.er1
10527 >  cat conftest.err >&5
10528 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 >  (exit $ac_status); } &&
10530 >         { ac_try='test -z "$ac_cxx_werror_flag"
10531 >                         || test ! -s conftest.err'
10532 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 >  (eval $ac_try) 2>&5
10534 >  ac_status=$?
10535 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 >  (exit $ac_status); }; } &&
10537 >         { ac_try='test -s conftest.$ac_objext'
10538 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 >  (eval $ac_try) 2>&5
10540 >  ac_status=$?
10541 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 >  (exit $ac_status); }; }; then
10543 >  ac_header_compiler=yes
10544 > else
10545 >  echo "$as_me: failed program was:" >&5
10546 > sed 's/^/| /' conftest.$ac_ext >&5
10547 >
10548 > ac_header_compiler=no
10549 > fi
10550 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10551 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552 > echo "${ECHO_T}$ac_header_compiler" >&6
10553 >
10554 > # Is the header present?
10555 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
10556 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10557 > cat >conftest.$ac_ext <<_ACEOF
10558 > /* confdefs.h.  */
10559 > _ACEOF
10560 > cat confdefs.h >>conftest.$ac_ext
10561 > cat >>conftest.$ac_ext <<_ACEOF
10562 > /* end confdefs.h.  */
10563 > #include <$ac_header>
10564 > _ACEOF
10565 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10566 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10567 >  ac_status=$?
10568 >  grep -v '^ *+' conftest.er1 >conftest.err
10569 >  rm -f conftest.er1
10570 >  cat conftest.err >&5
10571 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 >  (exit $ac_status); } >/dev/null; then
10573 >  if test -s conftest.err; then
10574 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10575 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10576 >  else
10577 >    ac_cpp_err=
10578 >  fi
10579 > else
10580 >  ac_cpp_err=yes
10581 > fi
10582 > if test -z "$ac_cpp_err"; then
10583 >  ac_header_preproc=yes
10584 > else
10585 >  echo "$as_me: failed program was:" >&5
10586 > sed 's/^/| /' conftest.$ac_ext >&5
10587 >
10588 >  ac_header_preproc=no
10589 > fi
10590 > rm -f conftest.err conftest.$ac_ext
10591 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10592 > echo "${ECHO_T}$ac_header_preproc" >&6
10593 >
10594 > # So?  What about this header?
10595 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10596 >  yes:no: )
10597 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10598 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10599 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10600 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10601 >    ac_header_preproc=yes
10602 >    ;;
10603 >  no:yes:* )
10604 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10605 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10606 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10607 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10608 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10609 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10610 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10611 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10612 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10613 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10614 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10615 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10616 >    (
10617 >      cat <<\_ASBOX
10618 > ## ------------------------------ ##
10619 > ## Report this to gezelter@nd.edu ##
10620 > ## ------------------------------ ##
10621 > _ASBOX
10622 >    ) |
10623 >      sed "s/^/$as_me: WARNING:     /" >&2
10624 >    ;;
10625 > esac
10626 > echo "$as_me:$LINENO: checking for $ac_header" >&5
10627 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10628 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10629 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10630 > else
10631 >  eval "$as_ac_Header=\$ac_header_preproc"
10632 > fi
10633 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10634 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10635 >
10636 > fi
10637 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
10638 >  cat >>confdefs.h <<_ACEOF
10639 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10640 > _ACEOF
10641 >
10642 > fi
10643 >
10644 > done
10645 >
10646 >
10647 > fi
10648 >
10649 >
10650 >
10651 >
10652 >  if test "${ac_cv_header_iomanip+set}" = set; then
10653 >  echo "$as_me:$LINENO: checking for iomanip" >&5
10654 > echo $ECHO_N "checking for iomanip... $ECHO_C" >&6
10655 > if test "${ac_cv_header_iomanip+set}" = set; then
10656 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10657 > fi
10658 > echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
10659 > echo "${ECHO_T}$ac_cv_header_iomanip" >&6
10660 > else
10661 >  # Is the header compilable?
10662 > echo "$as_me:$LINENO: checking iomanip usability" >&5
10663 > echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6
10664 > cat >conftest.$ac_ext <<_ACEOF
10665 > /* confdefs.h.  */
10666 > _ACEOF
10667 > cat confdefs.h >>conftest.$ac_ext
10668 > cat >>conftest.$ac_ext <<_ACEOF
10669 > /* end confdefs.h.  */
10670 > $ac_includes_default
10671 > #include <iomanip>
10672 > _ACEOF
10673 > rm -f conftest.$ac_objext
10674 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10675 >  (eval $ac_compile) 2>conftest.er1
10676 >  ac_status=$?
10677 >  grep -v '^ *+' conftest.er1 >conftest.err
10678 >  rm -f conftest.er1
10679 >  cat conftest.err >&5
10680 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 >  (exit $ac_status); } &&
10682 >         { ac_try='test -z "$ac_cxx_werror_flag"
10683 >                         || test ! -s conftest.err'
10684 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 >  (eval $ac_try) 2>&5
10686 >  ac_status=$?
10687 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 >  (exit $ac_status); }; } &&
10689 >         { ac_try='test -s conftest.$ac_objext'
10690 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 >  (eval $ac_try) 2>&5
10692 >  ac_status=$?
10693 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 >  (exit $ac_status); }; }; then
10695 >  ac_header_compiler=yes
10696 > else
10697 >  echo "$as_me: failed program was:" >&5
10698 > sed 's/^/| /' conftest.$ac_ext >&5
10699 >
10700 > ac_header_compiler=no
10701 > fi
10702 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10703 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10704 > echo "${ECHO_T}$ac_header_compiler" >&6
10705 >
10706 > # Is the header present?
10707 > echo "$as_me:$LINENO: checking iomanip presence" >&5
10708 > echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6
10709 > cat >conftest.$ac_ext <<_ACEOF
10710 > /* confdefs.h.  */
10711 > _ACEOF
10712 > cat confdefs.h >>conftest.$ac_ext
10713 > cat >>conftest.$ac_ext <<_ACEOF
10714 > /* end confdefs.h.  */
10715 > #include <iomanip>
10716 > _ACEOF
10717 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10718 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10719 >  ac_status=$?
10720 >  grep -v '^ *+' conftest.er1 >conftest.err
10721 >  rm -f conftest.er1
10722 >  cat conftest.err >&5
10723 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 >  (exit $ac_status); } >/dev/null; then
10725 >  if test -s conftest.err; then
10726 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10727 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10728 >  else
10729 >    ac_cpp_err=
10730 >  fi
10731 > else
10732 >  ac_cpp_err=yes
10733 > fi
10734 > if test -z "$ac_cpp_err"; then
10735 >  ac_header_preproc=yes
10736 > else
10737 >  echo "$as_me: failed program was:" >&5
10738 > sed 's/^/| /' conftest.$ac_ext >&5
10739 >
10740 >  ac_header_preproc=no
10741 > fi
10742 > rm -f conftest.err conftest.$ac_ext
10743 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10744 > echo "${ECHO_T}$ac_header_preproc" >&6
10745 >
10746 > # So?  What about this header?
10747 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10748 >  yes:no: )
10749 >    { echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5
10750 > echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;}
10751 >    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5
10752 > echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;}
10753 >    ac_header_preproc=yes
10754 >    ;;
10755 >  no:yes:* )
10756 >    { echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5
10757 > echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;}
10758 >    { echo "$as_me:$LINENO: WARNING: iomanip:     check for missing prerequisite headers?" >&5
10759 > echo "$as_me: WARNING: iomanip:     check for missing prerequisite headers?" >&2;}
10760 >    { echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5
10761 > echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;}
10762 >    { echo "$as_me:$LINENO: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&5
10763 > echo "$as_me: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&2;}
10764 >    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5
10765 > echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;}
10766 >    { echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5
10767 > echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;}
10768 >    (
10769 >      cat <<\_ASBOX
10770 > ## ------------------------------ ##
10771 > ## Report this to gezelter@nd.edu ##
10772 > ## ------------------------------ ##
10773 > _ASBOX
10774 >    ) |
10775 >      sed "s/^/$as_me: WARNING:     /" >&2
10776 >    ;;
10777 > esac
10778 > echo "$as_me:$LINENO: checking for iomanip" >&5
10779 > echo $ECHO_N "checking for iomanip... $ECHO_C" >&6
10780 > if test "${ac_cv_header_iomanip+set}" = set; then
10781 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10782 > else
10783 >  ac_cv_header_iomanip=$ac_header_preproc
10784 > fi
10785 > echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
10786 > echo "${ECHO_T}$ac_cv_header_iomanip" >&6
10787 >
10788 > fi
10789 > if test $ac_cv_header_iomanip = yes; then
10790 >
10791 >
10792 > cat >>confdefs.h <<\_ACEOF
10793 > #define HAVE_IOMANIP 1
10794 > _ACEOF
10795 >
10796 >
10797 > else
10798 >
10799 >
10800 > for ac_header in iomanip.h
10801 > do
10802 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10804 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10807 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10808 > fi
10809 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10810 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10811 > else
10812 >  # Is the header compilable?
10813 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
10814 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10815 > cat >conftest.$ac_ext <<_ACEOF
10816 > /* confdefs.h.  */
10817 > _ACEOF
10818 > cat confdefs.h >>conftest.$ac_ext
10819 > cat >>conftest.$ac_ext <<_ACEOF
10820 > /* end confdefs.h.  */
10821 > $ac_includes_default
10822 > #include <$ac_header>
10823 > _ACEOF
10824 > rm -f conftest.$ac_objext
10825 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 >  (eval $ac_compile) 2>conftest.er1
10827 >  ac_status=$?
10828 >  grep -v '^ *+' conftest.er1 >conftest.err
10829 >  rm -f conftest.er1
10830 >  cat conftest.err >&5
10831 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 >  (exit $ac_status); } &&
10833 >         { ac_try='test -z "$ac_cxx_werror_flag"
10834 >                         || test ! -s conftest.err'
10835 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 >  (eval $ac_try) 2>&5
10837 >  ac_status=$?
10838 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 >  (exit $ac_status); }; } &&
10840 >         { ac_try='test -s conftest.$ac_objext'
10841 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 >  (eval $ac_try) 2>&5
10843 >  ac_status=$?
10844 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 >  (exit $ac_status); }; }; then
10846 >  ac_header_compiler=yes
10847 > else
10848 >  echo "$as_me: failed program was:" >&5
10849 > sed 's/^/| /' conftest.$ac_ext >&5
10850 >
10851 > ac_header_compiler=no
10852 > fi
10853 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10855 > echo "${ECHO_T}$ac_header_compiler" >&6
10856 >
10857 > # Is the header present?
10858 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
10859 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10860 > cat >conftest.$ac_ext <<_ACEOF
10861 > /* confdefs.h.  */
10862 > _ACEOF
10863 > cat confdefs.h >>conftest.$ac_ext
10864 > cat >>conftest.$ac_ext <<_ACEOF
10865 > /* end confdefs.h.  */
10866 > #include <$ac_header>
10867 > _ACEOF
10868 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10870 >  ac_status=$?
10871 >  grep -v '^ *+' conftest.er1 >conftest.err
10872 >  rm -f conftest.er1
10873 >  cat conftest.err >&5
10874 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 >  (exit $ac_status); } >/dev/null; then
10876 >  if test -s conftest.err; then
10877 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10878 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10879 >  else
10880 >    ac_cpp_err=
10881 >  fi
10882 > else
10883 >  ac_cpp_err=yes
10884 > fi
10885 > if test -z "$ac_cpp_err"; then
10886 >  ac_header_preproc=yes
10887 > else
10888 >  echo "$as_me: failed program was:" >&5
10889 > sed 's/^/| /' conftest.$ac_ext >&5
10890 >
10891 >  ac_header_preproc=no
10892 > fi
10893 > rm -f conftest.err conftest.$ac_ext
10894 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895 > echo "${ECHO_T}$ac_header_preproc" >&6
10896 >
10897 > # So?  What about this header?
10898 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10899 >  yes:no: )
10900 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904 >    ac_header_preproc=yes
10905 >    ;;
10906 >  no:yes:* )
10907 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10910 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10911 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10914 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10915 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10919 >    (
10920 >      cat <<\_ASBOX
10921 > ## ------------------------------ ##
10922 > ## Report this to gezelter@nd.edu ##
10923 > ## ------------------------------ ##
10924 > _ASBOX
10925 >    ) |
10926 >      sed "s/^/$as_me: WARNING:     /" >&2
10927 >    ;;
10928 > esac
10929 > echo "$as_me:$LINENO: checking for $ac_header" >&5
10930 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10931 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10932 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10933 > else
10934 >  eval "$as_ac_Header=\$ac_header_preproc"
10935 > fi
10936 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10937 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10938 >
10939 > fi
10940 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
10941 >  cat >>confdefs.h <<_ACEOF
10942 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943 > _ACEOF
10944 >
10945 > fi
10946 >
10947 > done
10948 >
10949 >
10950 > fi
10951 >
10952 >
10953 >
10954 >
10955 > for ac_header in cmath
10956 > do
10957 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10958 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10959 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
10960 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10961 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
10962 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10963 > fi
10964 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10966 > else
10967 >  # Is the header compilable?
10968 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
10969 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10970 > cat >conftest.$ac_ext <<_ACEOF
10971 > /* confdefs.h.  */
10972 > _ACEOF
10973 > cat confdefs.h >>conftest.$ac_ext
10974 > cat >>conftest.$ac_ext <<_ACEOF
10975 > /* end confdefs.h.  */
10976 > $ac_includes_default
10977 > #include <$ac_header>
10978 > _ACEOF
10979 > rm -f conftest.$ac_objext
10980 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10981 >  (eval $ac_compile) 2>conftest.er1
10982 >  ac_status=$?
10983 >  grep -v '^ *+' conftest.er1 >conftest.err
10984 >  rm -f conftest.er1
10985 >  cat conftest.err >&5
10986 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 >  (exit $ac_status); } &&
10988 >         { ac_try='test -z "$ac_cxx_werror_flag"
10989 >                         || test ! -s conftest.err'
10990 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 >  (eval $ac_try) 2>&5
10992 >  ac_status=$?
10993 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 >  (exit $ac_status); }; } &&
10995 >         { ac_try='test -s conftest.$ac_objext'
10996 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 >  (eval $ac_try) 2>&5
10998 >  ac_status=$?
10999 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 >  (exit $ac_status); }; }; then
11001 >  ac_header_compiler=yes
11002 > else
11003 >  echo "$as_me: failed program was:" >&5
11004 > sed 's/^/| /' conftest.$ac_ext >&5
11005 >
11006 > ac_header_compiler=no
11007 > fi
11008 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11009 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11010 > echo "${ECHO_T}$ac_header_compiler" >&6
11011 >
11012 > # Is the header present?
11013 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
11014 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11015 > cat >conftest.$ac_ext <<_ACEOF
11016 > /* confdefs.h.  */
11017 > _ACEOF
11018 > cat confdefs.h >>conftest.$ac_ext
11019 > cat >>conftest.$ac_ext <<_ACEOF
11020 > /* end confdefs.h.  */
11021 > #include <$ac_header>
11022 > _ACEOF
11023 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11024 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11025 >  ac_status=$?
11026 >  grep -v '^ *+' conftest.er1 >conftest.err
11027 >  rm -f conftest.er1
11028 >  cat conftest.err >&5
11029 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 >  (exit $ac_status); } >/dev/null; then
11031 >  if test -s conftest.err; then
11032 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
11033 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11034 >  else
11035 >    ac_cpp_err=
11036 >  fi
11037 > else
11038 >  ac_cpp_err=yes
11039 > fi
11040 > if test -z "$ac_cpp_err"; then
11041 >  ac_header_preproc=yes
11042 > else
11043 >  echo "$as_me: failed program was:" >&5
11044 > sed 's/^/| /' conftest.$ac_ext >&5
11045 >
11046 >  ac_header_preproc=no
11047 > fi
11048 > rm -f conftest.err conftest.$ac_ext
11049 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11050 > echo "${ECHO_T}$ac_header_preproc" >&6
11051 >
11052 > # So?  What about this header?
11053 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11054 >  yes:no: )
11055 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11056 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11057 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11058 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11059 >    ac_header_preproc=yes
11060 >    ;;
11061 >  no:yes:* )
11062 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11063 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11064 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11065 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11066 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11067 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11068 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11069 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11070 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11071 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11072 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11073 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11074 >    (
11075 >      cat <<\_ASBOX
11076 > ## ------------------------------ ##
11077 > ## Report this to gezelter@nd.edu ##
11078 > ## ------------------------------ ##
11079 > _ASBOX
11080 >    ) |
11081 >      sed "s/^/$as_me: WARNING:     /" >&2
11082 >    ;;
11083 > esac
11084 > echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11086 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
11087 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11088 > else
11089 >  eval "$as_ac_Header=\$ac_header_preproc"
11090 > fi
11091 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11092 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11093 >
11094 > fi
11095 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
11096 >  cat >>confdefs.h <<_ACEOF
11097 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11098 > _ACEOF
11099 >
11100 > fi
11101 >
11102 > done
11103 >
11104 >
11105 >
11106 >
11107 >  echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5
11108 > echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6
11109 > if test "${ac_cv_cxx_have_std_iostream+set}" = set; then
11110 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11111 > else
11112 >
11113 >      ac_cv_cxx_have_std_iostream=no
11114 >      ac_cv_cxx_need_use_std_iostream=no
11115 >      if test "x$ac_cv_cxx_namespaces" = xyes; then
11116 >
11117 >
11118 >        ac_ext=cc
11119 > ac_cpp='$CXXCPP $CPPFLAGS'
11120 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11121 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11122 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11123 >
11124 >        cat >conftest.$ac_ext <<_ACEOF
11125 > /* confdefs.h.  */
11126 > _ACEOF
11127 > cat confdefs.h >>conftest.$ac_ext
11128 > cat >>conftest.$ac_ext <<_ACEOF
11129 > /* end confdefs.h.  */
11130 >
11131 > #ifdef HAVE_IOSTREAM
11132 > #include <iostream>
11133 > #else
11134 > #include <iostream.h>
11135 > #endif
11136 >
11137 > #ifdef FC_DUMMY_MAIN
11138 > #ifndef FC_DUMMY_MAIN_EQ_F77
11139 > #  ifdef __cplusplus
11140 >     extern "C"
11141 > #  endif
11142 >   int FC_DUMMY_MAIN() { return 1; }
11143 > #endif
11144 > #endif
11145 > int
11146 > main ()
11147 > {
11148 > std::cout<<"Hello World"<<std::endl;return 0;
11149 >  ;
11150 >  return 0;
11151 > }
11152 > _ACEOF
11153 > rm -f conftest.$ac_objext
11154 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 >  (eval $ac_compile) 2>conftest.er1
11156 >  ac_status=$?
11157 >  grep -v '^ *+' conftest.er1 >conftest.err
11158 >  rm -f conftest.er1
11159 >  cat conftest.err >&5
11160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 >  (exit $ac_status); } &&
11162 >         { ac_try='test -z "$ac_cxx_werror_flag"
11163 >                         || test ! -s conftest.err'
11164 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 >  (eval $ac_try) 2>&5
11166 >  ac_status=$?
11167 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 >  (exit $ac_status); }; } &&
11169 >         { ac_try='test -s conftest.$ac_objext'
11170 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 >  (eval $ac_try) 2>&5
11172 >  ac_status=$?
11173 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 >  (exit $ac_status); }; }; then
11175 >  ac_cv_cxx_have_std_iostream=yes
11176 > else
11177 >  echo "$as_me: failed program was:" >&5
11178 > sed 's/^/| /' conftest.$ac_ext >&5
11179 >
11180 > fi
11181 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182 >        cat >conftest.$ac_ext <<_ACEOF
11183 > /* confdefs.h.  */
11184 > _ACEOF
11185 > cat confdefs.h >>conftest.$ac_ext
11186 > cat >>conftest.$ac_ext <<_ACEOF
11187 > /* end confdefs.h.  */
11188 >
11189 > #define __USE_STD_IOSTREAM 1
11190 > #ifdef HAVE_IOSTREAM
11191 > #include <iostream>
11192 > #else
11193 > #include <iostream.h>
11194 > #endif
11195 >
11196 > #ifdef FC_DUMMY_MAIN
11197 > #ifndef FC_DUMMY_MAIN_EQ_F77
11198 > #  ifdef __cplusplus
11199 >     extern "C"
11200 > #  endif
11201 >   int FC_DUMMY_MAIN() { return 1; }
11202 > #endif
11203 > #endif
11204 > int
11205 > main ()
11206 > {
11207 > std::cout<<"Hello World"<<std::endl;return 0;
11208 >  ;
11209 >  return 0;
11210 > }
11211 > _ACEOF
11212 > rm -f conftest.$ac_objext
11213 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11214 >  (eval $ac_compile) 2>conftest.er1
11215 >  ac_status=$?
11216 >  grep -v '^ *+' conftest.er1 >conftest.err
11217 >  rm -f conftest.er1
11218 >  cat conftest.err >&5
11219 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 >  (exit $ac_status); } &&
11221 >         { ac_try='test -z "$ac_cxx_werror_flag"
11222 >                         || test ! -s conftest.err'
11223 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 >  (eval $ac_try) 2>&5
11225 >  ac_status=$?
11226 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 >  (exit $ac_status); }; } &&
11228 >         { ac_try='test -s conftest.$ac_objext'
11229 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 >  (eval $ac_try) 2>&5
11231 >  ac_status=$?
11232 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 >  (exit $ac_status); }; }; then
11234 >  ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes
11235 > else
11236 >  echo "$as_me: failed program was:" >&5
11237 > sed 's/^/| /' conftest.$ac_ext >&5
11238 >
11239 > fi
11240 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11241 >        ac_ext=cc
11242 > ac_cpp='$CXXCPP $CPPFLAGS'
11243 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11246 >
11247 >      fi
11248 >
11249 > fi
11250 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5
11251 > echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6
11252 >  if test "$ac_cv_cxx_have_std_iostream" = yes; then
11253 >
11254 > cat >>confdefs.h <<\_ACEOF
11255 > #define HAVE_STD_IOSTREAM 1
11256 > _ACEOF
11257 >
11258 >  fi
11259 >  if test "$ac_cv_cxx_need_use_std_iostream" = yes; then
11260 >
11261 > cat >>confdefs.h <<\_ACEOF
11262 > #define __USE_STD_IOSTREAM 1
11263 > _ACEOF
11264 >
11265 >  fi
11266 >
11267 >
11268 >
11269 >
11270 >  echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5
11271 > echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6
11272 > if test "${ac_cv_cxx_have_std_stl+set}" = set; then
11273 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11274 > else
11275 >
11276 >      ac_cv_cxx_have_std_stl=no
11277 >      if test "x$ac_cv_cxx_namespaces" = xyes; then
11278 >
11279 >
11280 >        ac_ext=cc
11281 > ac_cpp='$CXXCPP $CPPFLAGS'
11282 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11283 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11284 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11285 >
11286 >        cat >conftest.$ac_ext <<_ACEOF
11287 > /* confdefs.h.  */
11288 > _ACEOF
11289 > cat confdefs.h >>conftest.$ac_ext
11290 > cat >>conftest.$ac_ext <<_ACEOF
11291 > /* end confdefs.h.  */
11292 > #include <list>
11293 >
11294 > #ifdef FC_DUMMY_MAIN
11295 > #ifndef FC_DUMMY_MAIN_EQ_F77
11296 > #  ifdef __cplusplus
11297 >     extern "C"
11298 > #  endif
11299 >   int FC_DUMMY_MAIN() { return 1; }
11300 > #endif
11301 > #endif
11302 > int
11303 > main ()
11304 > {
11305 > std::list<int> foo;return 0;
11306 >  ;
11307 >  return 0;
11308 > }
11309 > _ACEOF
11310 > rm -f conftest.$ac_objext
11311 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312 >  (eval $ac_compile) 2>conftest.er1
11313 >  ac_status=$?
11314 >  grep -v '^ *+' conftest.er1 >conftest.err
11315 >  rm -f conftest.er1
11316 >  cat conftest.err >&5
11317 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 >  (exit $ac_status); } &&
11319 >         { ac_try='test -z "$ac_cxx_werror_flag"
11320 >                         || test ! -s conftest.err'
11321 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 >  (eval $ac_try) 2>&5
11323 >  ac_status=$?
11324 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 >  (exit $ac_status); }; } &&
11326 >         { ac_try='test -s conftest.$ac_objext'
11327 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 >  (eval $ac_try) 2>&5
11329 >  ac_status=$?
11330 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 >  (exit $ac_status); }; }; then
11332 >  ac_cv_cxx_have_std_stl=yes
11333 > else
11334 >  echo "$as_me: failed program was:" >&5
11335 > sed 's/^/| /' conftest.$ac_ext >&5
11336 >
11337 > fi
11338 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11339 >        ac_ext=cc
11340 > ac_cpp='$CXXCPP $CPPFLAGS'
11341 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11344 >
11345 >      fi
11346 >
11347 > fi
11348 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5
11349 > echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6
11350 >  if test "$ac_cv_cxx_have_std_stl" = yes; then
11351 >
11352 > cat >>confdefs.h <<\_ACEOF
11353 > #define HAVE_STD_STL 1
11354 > _ACEOF
11355 >
11356 >  fi
11357 >
11358 >
11359 >
11360 >  echo "$as_me:$LINENO: checking for fstream::attach()" >&5
11361 > echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6
11362 > if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then
11363 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11364 > else
11365 >
11366 >    ac_cv_cxx_have_fstream_attach=no
11367 >
11368 >
11369 >    ac_ext=cc
11370 > ac_cpp='$CXXCPP $CPPFLAGS'
11371 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11372 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11373 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11374 >
11375 >    cat >conftest.$ac_ext <<_ACEOF
11376 > /* confdefs.h.  */
11377 > _ACEOF
11378 > cat confdefs.h >>conftest.$ac_ext
11379 > cat >>conftest.$ac_ext <<_ACEOF
11380 > /* end confdefs.h.  */
11381 >
11382 > #ifdef HAVE_IOSTREAM
11383 > #include <fstream>
11384 > #else
11385 > #include <fstream.h>
11386 > #endif
11387 > #ifdef HAVE_STD_IOSTREAM
11388 > using namespace std;
11389 > #endif
11390 >
11391 > #ifdef FC_DUMMY_MAIN
11392 > #ifndef FC_DUMMY_MAIN_EQ_F77
11393 > #  ifdef __cplusplus
11394 >     extern "C"
11395 > #  endif
11396 >   int FC_DUMMY_MAIN() { return 1; }
11397 > #endif
11398 > #endif
11399 > int
11400 > main ()
11401 > {
11402 > int fd=0;ofstream s;s.attach(fd);
11403 >  ;
11404 >  return 0;
11405 > }
11406 > _ACEOF
11407 > rm -f conftest.$ac_objext
11408 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409 >  (eval $ac_compile) 2>conftest.er1
11410 >  ac_status=$?
11411 >  grep -v '^ *+' conftest.er1 >conftest.err
11412 >  rm -f conftest.er1
11413 >  cat conftest.err >&5
11414 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 >  (exit $ac_status); } &&
11416 >         { ac_try='test -z "$ac_cxx_werror_flag"
11417 >                         || test ! -s conftest.err'
11418 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 >  (eval $ac_try) 2>&5
11420 >  ac_status=$?
11421 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 >  (exit $ac_status); }; } &&
11423 >         { ac_try='test -s conftest.$ac_objext'
11424 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 >  (eval $ac_try) 2>&5
11426 >  ac_status=$?
11427 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 >  (exit $ac_status); }; }; then
11429 >  ac_cv_cxx_have_fstream_attach=yes
11430 > else
11431 >  echo "$as_me: failed program was:" >&5
11432 > sed 's/^/| /' conftest.$ac_ext >&5
11433 >
11434 > fi
11435 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436 >    ac_ext=cc
11437 > ac_cpp='$CXXCPP $CPPFLAGS'
11438 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11441 >
11442 >
11443 > fi
11444 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5
11445 > echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6
11446 >  if test "$ac_cv_cxx_have_fstream_attach" = yes; then
11447 >
11448 > cat >>confdefs.h <<\_ACEOF
11449 > #define HAVE_FSTREAM_ATTACH 1
11450 > _ACEOF
11451 >
11452 >  fi
11453 >
11454 >
11455 >
11456 >  echo "$as_me:$LINENO: checking for fstream::open()" >&5
11457 > echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6
11458 > if test "${ac_cv_cxx_have_fstream_open+set}" = set; then
11459 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11460 > else
11461 >
11462 >    ac_cv_cxx_have_fstream_open=no
11463 >    ac_cv_cxx_fstream_open_prot=no
11464 >
11465 >
11466 >    ac_ext=cc
11467 > ac_cpp='$CXXCPP $CPPFLAGS'
11468 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11469 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11470 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11471 >
11472 >    # Try with 2 parameters
11473 >    cat >conftest.$ac_ext <<_ACEOF
11474 > /* confdefs.h.  */
11475 > _ACEOF
11476 > cat confdefs.h >>conftest.$ac_ext
11477 > cat >>conftest.$ac_ext <<_ACEOF
11478 > /* end confdefs.h.  */
11479 >
11480 > #ifdef HAVE_IOSTREAM
11481 > #include <fstream>
11482 > #else
11483 > #include <fstream.h>
11484 > #endif
11485 > #ifdef HAVE_STD_IOSTREAM
11486 > using namespace std;
11487 > #endif
11488 >
11489 > #ifdef FC_DUMMY_MAIN
11490 > #ifndef FC_DUMMY_MAIN_EQ_F77
11491 > #  ifdef __cplusplus
11492 >     extern "C"
11493 > #  endif
11494 >   int FC_DUMMY_MAIN() { return 1; }
11495 > #endif
11496 > #endif
11497 > int
11498 > main ()
11499 > {
11500 > ofstream s;s.open("conftest.txt",ios::out|ios::trunc);
11501 >  ;
11502 >  return 0;
11503 > }
11504 > _ACEOF
11505 > rm -f conftest.$ac_objext
11506 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 >  (eval $ac_compile) 2>conftest.er1
11508 >  ac_status=$?
11509 >  grep -v '^ *+' conftest.er1 >conftest.err
11510 >  rm -f conftest.er1
11511 >  cat conftest.err >&5
11512 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 >  (exit $ac_status); } &&
11514 >         { ac_try='test -z "$ac_cxx_werror_flag"
11515 >                         || test ! -s conftest.err'
11516 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 >  (eval $ac_try) 2>&5
11518 >  ac_status=$?
11519 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 >  (exit $ac_status); }; } &&
11521 >         { ac_try='test -s conftest.$ac_objext'
11522 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 >  (eval $ac_try) 2>&5
11524 >  ac_status=$?
11525 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 >  (exit $ac_status); }; }; then
11527 >  ac_cv_cxx_have_fstream_open=yes
11528 > else
11529 >  echo "$as_me: failed program was:" >&5
11530 > sed 's/^/| /' conftest.$ac_ext >&5
11531 >
11532 > fi
11533 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 >    # Try with mode parameter
11535 >    cat >conftest.$ac_ext <<_ACEOF
11536 > /* confdefs.h.  */
11537 > _ACEOF
11538 > cat confdefs.h >>conftest.$ac_ext
11539 > cat >>conftest.$ac_ext <<_ACEOF
11540 > /* end confdefs.h.  */
11541 >
11542 > #ifdef HAVE_IOSTREAM
11543 > #include <fstream>
11544 > #else
11545 > #include <fstream.h>
11546 > #endif
11547 > #ifdef HAVE_STD_IOSTREAM
11548 > using namespace std;
11549 > #endif
11550 >
11551 > #ifdef FC_DUMMY_MAIN
11552 > #ifndef FC_DUMMY_MAIN_EQ_F77
11553 > #  ifdef __cplusplus
11554 >     extern "C"
11555 > #  endif
11556 >   int FC_DUMMY_MAIN() { return 1; }
11557 > #endif
11558 > #endif
11559 > int
11560 > main ()
11561 > {
11562 > ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666);
11563 >  ;
11564 >  return 0;
11565 > }
11566 > _ACEOF
11567 > rm -f conftest.$ac_objext
11568 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11569 >  (eval $ac_compile) 2>conftest.er1
11570 >  ac_status=$?
11571 >  grep -v '^ *+' conftest.er1 >conftest.err
11572 >  rm -f conftest.er1
11573 >  cat conftest.err >&5
11574 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 >  (exit $ac_status); } &&
11576 >         { ac_try='test -z "$ac_cxx_werror_flag"
11577 >                         || test ! -s conftest.err'
11578 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 >  (eval $ac_try) 2>&5
11580 >  ac_status=$?
11581 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 >  (exit $ac_status); }; } &&
11583 >         { ac_try='test -s conftest.$ac_objext'
11584 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 >  (eval $ac_try) 2>&5
11586 >  ac_status=$?
11587 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 >  (exit $ac_status); }; }; then
11589 >  ac_cv_cxx_fstream_open_prot=yes
11590 > else
11591 >  echo "$as_me: failed program was:" >&5
11592 > sed 's/^/| /' conftest.$ac_ext >&5
11593 >
11594 > fi
11595 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11596 >    ac_ext=cc
11597 > ac_cpp='$CXXCPP $CPPFLAGS'
11598 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11599 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11600 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11601 >
11602 >
11603 > fi
11604 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5
11605 > echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6
11606 >  if test "$ac_cv_cxx_have_fstream_open" = yes; then
11607 >
11608 > cat >>confdefs.h <<\_ACEOF
11609 > #define HAVE_FSTREAM_OPEN 1
11610 > _ACEOF
11611 >
11612 >  fi
11613 >  if test "$ac_cv_cxx_fstream_open_prot" = yes; then
11614 >
11615 > cat >>confdefs.h <<\_ACEOF
11616 > #define FSTREAM_OPEN_PROT 1
11617 > _ACEOF
11618 >
11619 >  fi
11620 >
11621 >
11622 >
11623 >
11624 >
11625 >
11626 >
11627 > for ac_header in ctype.h iostream fstream sstream strstream
11628 > do
11629 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
11631 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11633 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
11634 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11635 > fi
11636 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11637 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11638 > else
11639 >  # Is the header compilable?
11640 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11642 > cat >conftest.$ac_ext <<_ACEOF
11643 > /* confdefs.h.  */
11644 > _ACEOF
11645 > cat confdefs.h >>conftest.$ac_ext
11646 > cat >>conftest.$ac_ext <<_ACEOF
11647 > /* end confdefs.h.  */
11648 > $ac_includes_default
11649 > #include <$ac_header>
11650 > _ACEOF
11651 > rm -f conftest.$ac_objext
11652 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 >  (eval $ac_compile) 2>conftest.er1
11654 >  ac_status=$?
11655 >  grep -v '^ *+' conftest.er1 >conftest.err
11656 >  rm -f conftest.er1
11657 >  cat conftest.err >&5
11658 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 >  (exit $ac_status); } &&
11660 >         { ac_try='test -z "$ac_cxx_werror_flag"
11661 >                         || test ! -s conftest.err'
11662 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 >  (eval $ac_try) 2>&5
11664 >  ac_status=$?
11665 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 >  (exit $ac_status); }; } &&
11667 >         { ac_try='test -s conftest.$ac_objext'
11668 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 >  (eval $ac_try) 2>&5
11670 >  ac_status=$?
11671 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 >  (exit $ac_status); }; }; then
11673 >  ac_header_compiler=yes
11674 > else
11675 >  echo "$as_me: failed program was:" >&5
11676 > sed 's/^/| /' conftest.$ac_ext >&5
11677 >
11678 > ac_header_compiler=no
11679 > fi
11680 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11681 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11682 > echo "${ECHO_T}$ac_header_compiler" >&6
11683 >
11684 > # Is the header present?
11685 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
11686 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11687 > cat >conftest.$ac_ext <<_ACEOF
11688 > /* confdefs.h.  */
11689 > _ACEOF
11690 > cat confdefs.h >>conftest.$ac_ext
11691 > cat >>conftest.$ac_ext <<_ACEOF
11692 > /* end confdefs.h.  */
11693 > #include <$ac_header>
11694 > _ACEOF
11695 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11696 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11697 >  ac_status=$?
11698 >  grep -v '^ *+' conftest.er1 >conftest.err
11699 >  rm -f conftest.er1
11700 >  cat conftest.err >&5
11701 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 >  (exit $ac_status); } >/dev/null; then
11703 >  if test -s conftest.err; then
11704 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
11705 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11706 >  else
11707 >    ac_cpp_err=
11708 >  fi
11709 > else
11710 >  ac_cpp_err=yes
11711 > fi
11712 > if test -z "$ac_cpp_err"; then
11713 >  ac_header_preproc=yes
11714 > else
11715 >  echo "$as_me: failed program was:" >&5
11716 > sed 's/^/| /' conftest.$ac_ext >&5
11717 >
11718 >  ac_header_preproc=no
11719 > fi
11720 > rm -f conftest.err conftest.$ac_ext
11721 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11722 > echo "${ECHO_T}$ac_header_preproc" >&6
11723 >
11724 > # So?  What about this header?
11725 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11726 >  yes:no: )
11727 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11728 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11729 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11730 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11731 >    ac_header_preproc=yes
11732 >    ;;
11733 >  no:yes:* )
11734 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11737 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11738 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11739 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11740 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11741 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11742 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11743 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11744 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11745 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11746 >    (
11747 >      cat <<\_ASBOX
11748 > ## ------------------------------ ##
11749 > ## Report this to gezelter@nd.edu ##
11750 > ## ------------------------------ ##
11751 > _ASBOX
11752 >    ) |
11753 >      sed "s/^/$as_me: WARNING:     /" >&2
11754 >    ;;
11755 > esac
11756 > echo "$as_me:$LINENO: checking for $ac_header" >&5
11757 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11758 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
11759 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11760 > else
11761 >  eval "$as_ac_Header=\$ac_header_preproc"
11762 > fi
11763 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11764 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11765 >
11766 > fi
11767 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
11768 >  cat >>confdefs.h <<_ACEOF
11769 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11770 > _ACEOF
11771 >
11772 > fi
11773 >
11774 > done
11775 >
11776 > # AC_CPP_FUNC
11777 > # ------------------ #
11778 > # Checks to see if ANSI C99 CPP variable __func__ works.
11779 > # If not, perhaps __FUNCTION__ works instead.
11780 > # If not, we'll just define __func__ to "".
11781 > # AC_CPP_FUNC
11782 >
11783 >
11784 > echo "$as_me:$LINENO: checking for an ANSI C99-conforming __func__" >&5
11785 > echo $ECHO_N "checking for an ANSI C99-conforming __func__... $ECHO_C" >&6
11786 > if test "${ac_cv_cpp_func+set}" = set; then
11787 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11788 > else
11789 >  cat >conftest.$ac_ext <<_ACEOF
11790 > /* confdefs.h.  */
11791 > _ACEOF
11792 > cat confdefs.h >>conftest.$ac_ext
11793 > cat >>conftest.$ac_ext <<_ACEOF
11794 > /* end confdefs.h.  */
11795 >
11796 > #ifdef FC_DUMMY_MAIN
11797 > #ifndef FC_DUMMY_MAIN_EQ_F77
11798 > #  ifdef __cplusplus
11799 >     extern "C"
11800 > #  endif
11801 >   int FC_DUMMY_MAIN() { return 1; }
11802 > #endif
11803 > #endif
11804 > int
11805 > main ()
11806 > {
11807 > const char *foo = __func__;
11808 >  ;
11809 >  return 0;
11810 > }
11811 > _ACEOF
11812 > rm -f conftest.$ac_objext
11813 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 >  (eval $ac_compile) 2>conftest.er1
11815 >  ac_status=$?
11816 >  grep -v '^ *+' conftest.er1 >conftest.err
11817 >  rm -f conftest.er1
11818 >  cat conftest.err >&5
11819 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 >  (exit $ac_status); } &&
11821 >         { ac_try='test -z "$ac_cxx_werror_flag"
11822 >                         || test ! -s conftest.err'
11823 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 >  (eval $ac_try) 2>&5
11825 >  ac_status=$?
11826 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 >  (exit $ac_status); }; } &&
11828 >         { ac_try='test -s conftest.$ac_objext'
11829 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 >  (eval $ac_try) 2>&5
11831 >  ac_status=$?
11832 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 >  (exit $ac_status); }; }; then
11834 >  ac_cv_cpp_func=yes
11835 > else
11836 >  echo "$as_me: failed program was:" >&5
11837 > sed 's/^/| /' conftest.$ac_ext >&5
11838 >
11839 > cat >conftest.$ac_ext <<_ACEOF
11840 > /* confdefs.h.  */
11841 > _ACEOF
11842 > cat confdefs.h >>conftest.$ac_ext
11843 > cat >>conftest.$ac_ext <<_ACEOF
11844 > /* end confdefs.h.  */
11845 >
11846 > #ifdef FC_DUMMY_MAIN
11847 > #ifndef FC_DUMMY_MAIN_EQ_F77
11848 > #  ifdef __cplusplus
11849 >     extern "C"
11850 > #  endif
11851 >   int FC_DUMMY_MAIN() { return 1; }
11852 > #endif
11853 > #endif
11854 > int
11855 > main ()
11856 > {
11857 > const char *foo = __FUNCTION__;
11858 >  ;
11859 >  return 0;
11860 > }
11861 > _ACEOF
11862 > rm -f conftest.$ac_objext
11863 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864 >  (eval $ac_compile) 2>conftest.er1
11865 >  ac_status=$?
11866 >  grep -v '^ *+' conftest.er1 >conftest.err
11867 >  rm -f conftest.er1
11868 >  cat conftest.err >&5
11869 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 >  (exit $ac_status); } &&
11871 >         { ac_try='test -z "$ac_cxx_werror_flag"
11872 >                         || test ! -s conftest.err'
11873 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 >  (eval $ac_try) 2>&5
11875 >  ac_status=$?
11876 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 >  (exit $ac_status); }; } &&
11878 >         { ac_try='test -s conftest.$ac_objext'
11879 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 >  (eval $ac_try) 2>&5
11881 >  ac_status=$?
11882 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 >  (exit $ac_status); }; }; then
11884 >  ac_cv_cpp_func=__FUNCTION__
11885 > else
11886 >  echo "$as_me: failed program was:" >&5
11887 > sed 's/^/| /' conftest.$ac_ext >&5
11888 >
11889 > ac_cv_cpp_func=no
11890 > fi
11891 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11892 > fi
11893 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11894 > fi
11895 > echo "$as_me:$LINENO: result: $ac_cv_cpp_func" >&5
11896 > echo "${ECHO_T}$ac_cv_cpp_func" >&6
11897 > if test $ac_cv_cpp_func = __FUNCTION__; then
11898 >
11899 > cat >>confdefs.h <<\_ACEOF
11900 > #define __func__ __FUNCTION__
11901 > _ACEOF
11902 >
11903 > elif test $ac_cv_cpp_func = no; then
11904 >
11905 > cat >>confdefs.h <<\_ACEOF
11906 > #define __func__ ""
11907 > _ACEOF
11908 >
11909 > fi
11910 >
11911 >
11912 >
11913 >
11914 >
11915 > case $debug in
11916 >  1)
11917 >     ;;
11918 >  *)
11919 >
11920 >
11921 >
11922 >
11923 > # Try to determine "good" native compiler flags if none specified on command
11924 > # line
11925 >
11926 > if test "$ac_test_FFLAGS" != "set"; then
11927 >  FCFLAGS=""
11928 >  case "${host_cpu}-${host_os}" in
11929 >
11930 >  *linux*) if test "$FC" = ifc -o "$FC" = ifort; then
11931 >                    FCFLAGS="-O3 -ip -no-prec-div"
11932 >                fi;;
11933 >   rs6000*-aix*)  if test "$FC" = xlf90 -o "$FC" = f90 -o "$FC" = xlf95; then
11934 >                    FCFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
11935 >                fi;;
11936 >   powerpc*-aix*)
11937 >        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
11938 >                FCFLAGS="-O3 -qarch=ppc -qansialias -w"
11939 >                echo "*******************************************************"
11940 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
11941 >                echo "*  recommended that you use                           *"
11942 >                echo "*                                                     *"
11943 >                echo "*   FCFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
11944 >                echo "*                                 ^^^                 *"
11945 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
11946 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
11947 >                echo "*******************************************************"
11948 >        fi;;
11949 >   *darwin*)
11950 >        if test "$FC" = f90 -o "$FC" = xlf90 -o "$FC" = xlf95; then
11951 >                FCFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
11952 >        fi
11953 >        if test "$FC" = ifort; then
11954 >                FCFLAGS="-O3 -ip -no-prec-dev -mdynamic-no-pic"
11955 >        fi;;
11956 >  esac
11957 >
11958 >  if test -n "$CPU_FLAGS"; then
11959 >        FCFLAGS="$FCFLAGS $CPU_FLAGS"
11960 >  fi
11961 >
11962 >  if test -z "$FCFLAGS"; then
11963 >        echo ""
11964 >        echo "*********************************************************"
11965 >        echo "* WARNING: Don't know the best FCFLAGS for this system  *"
11966 >        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
11967 >        echo "* (otherwise, a default of FCFLAGS=-O3 will be used)    *"
11968 >        echo "*********************************************************"
11969 >        echo ""
11970 >        FCFLAGS="-O3"
11971 >  fi
11972 >
11973 >
11974 > echo "$as_me:$LINENO: checking whether ${FC} accepts ${FCFLAGS}" >&5
11975 > echo $ECHO_N "checking whether ${FC} accepts ${FCFLAGS}... $ECHO_C" >&6
11976 > if test "${ac_guessed_f90flags+set}" = set; then
11977 >  echo $ECHO_N "(cached) $ECHO_C" >&6
11978 > else
11979 >
11980 >
11981 >
11982 > ac_ext=${FC_SRCEXT-f}
11983 > ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
11984 > ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
11985 > ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11986 >
11987 > echo 'program main' > conftest.$ac_ext
11988 > echo 'end program main' >> conftest.$ac_ext
11989 > ac_compile='${FC} -c ${FCFLAGS} $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext 1>&5'
11990 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 >  (eval $ac_compile) 2>&5
11992 >  ac_status=$?
11993 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 >  (exit $ac_status); }; then
11995 >        ac_guessed_f90flags=yes
11996   else
11997 <  # FreeBSD has a gnugetopt library for this
11998 <    echo "$as_me:3946: checking for getopt_long in -lgnugetopt" >&5
11999 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
12000 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
12001 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12002 < else
12003 <  ac_check_lib_save_LIBS=$LIBS
12004 < LIBS="-lgnugetopt  $LIBS"
3953 < cat >conftest.$ac_ext <<_ACEOF
3954 < #line 3954 "configure"
3955 < #include "confdefs.h"
11997 >        ac_guessed_f90flags=no
11998 > fi
11999 > rm -f conftest*
12000 > ac_ext=cc
12001 > ac_cpp='$CXXCPP $CPPFLAGS'
12002 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12005  
12006 < /* Override any gcc2 internal prototype to avoid an error.  */
3958 < #ifdef __cplusplus
3959 < extern "C"
3960 < #endif
3961 < /* We use char because int might match the return type of a gcc2
3962 <   builtin and then its argument prototype would still apply.  */
3963 < char getopt_long ();
3964 < int
3965 < main ()
3966 < {
3967 < getopt_long ();
3968 <  ;
3969 <  return 0;
3970 < }
3971 < _ACEOF
3972 < rm -f conftest.$ac_objext conftest$ac_exeext
3973 < if { (eval echo "$as_me:3973: \"$ac_link\"") >&5
3974 <  (eval $ac_link) 2>&5
3975 <  ac_status=$?
3976 <  echo "$as_me:3976: \$? = $ac_status" >&5
3977 <  (exit $ac_status); } &&
3978 <         { ac_try='test -s conftest$ac_exeext'
3979 <  { (eval echo "$as_me:3979: \"$ac_try\"") >&5
3980 <  (eval $ac_try) 2>&5
3981 <  ac_status=$?
3982 <  echo "$as_me:3982: \$? = $ac_status" >&5
3983 <  (exit $ac_status); }; }; then
3984 <  ac_cv_lib_gnugetopt_getopt_long=yes
3985 < else
3986 <  echo "$as_me: failed program was:" >&5
3987 < cat conftest.$ac_ext >&5
3988 < ac_cv_lib_gnugetopt_getopt_long=no
12006 >
12007   fi
12008 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12009 < LIBS=$ac_check_lib_save_LIBS
12010 < fi
12011 < echo "$as_me:3993: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
3994 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
3995 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
3996 <  cat >>confdefs.h <<\EOF
3997 < #define HAVE_GETOPT_LONG 1
3998 < EOF
12008 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
12009 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
12010 > if test "$ac_guessed_f90flags" = yes; then
12011 >        :
12012  
12013   else
12014 <  # use the GNU replacement
4002 <      LIBOBJS="$LIBOBJS getopt.$ac_objext"
4003 <      LIBOBJS="$LIBOBJS getopt1.$ac_objext"
4004 <      ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
12014 >        :
12015  
12016 +        echo ""
12017 +        echo "**********************************************************"
12018 +        echo "* WARNING: The guessed FCFLAGS don't seem to work with  *"
12019 +        echo "* your compiler.                                        *"
12020 +        echo "* Use  make FCFLAGS=..., or edit the top level Makefile *"
12021 +        echo "*********************************************************"
12022 +        echo ""
12023 +        FCFLAGS=""
12024 +
12025   fi
12026  
12027 +
12028   fi
4009 done
12029  
4011 case $debug in
4012  1)
4013     ;;
4014  *)
12030  
12031 < echo "$as_me:4016: checking whether we are *really* using GNU cc" >&5
12031 >
12032 >
12033 >
12034 >
12035 >
12036 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
12037   echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
12038   if test "${ac_cv_prog_really_gcc+set}" = set; then
12039    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4021 | Line 12041 | cat > conftest.c <<EOF
12041  
12042   cat > conftest.c <<EOF
12043   #ifdef __GNUC__
12044 <  #ifndef __INTEL_COMPILER
12044 >  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
12045 >     no;
12046 >  #else
12047       yes;
12048    #endif
12049   #endif
12050   EOF
12051   if { ac_try='${CC-cc} -E conftest.c'
12052 <  { (eval echo "$as_me:4030: \"$ac_try\"") >&5
12052 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053    (eval $ac_try) 2>&5
12054    ac_status=$?
12055 <  echo "$as_me:4033: \$? = $ac_status" >&5
12055 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12057    ac_cv_prog_really_gcc=yes
12058   else
# Line 4038 | Line 12060 | fi
12060   fi
12061  
12062   fi
12063 < echo "$as_me:4041: result: $ac_cv_prog_really_gcc" >&5
12063 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
12064   echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
12065   if test "$ac_cv_prog_really_gcc" = yes; then
12066          :
# Line 4048 | Line 12070 | fi
12070  
12071   fi
12072  
12073 +
12074   # Try to determine "good" native compiler flags if none specified on command
12075   # line
12076   if test "$ac_test_CFLAGS" != "set"; then
# Line 4058 | Line 12081 | if test "$ac_test_CFLAGS" != "set"; then
12081                      CFLAGS="-O"
12082                  fi;;
12083    sparc-solaris2*) if test "$CC" = cc; then
12084 <                    CFLAGS="-native -fast -xO5 -dalign"
12084 >                    CFLAGS="-O -dalign"
12085                   fi;;
12086  
12087    alpha*-osf*)  if test "$CC" = cc; then
# Line 4088 | Line 12111 | if test "$ac_test_CFLAGS" != "set"; then
12111     *darwin*)
12112          if test "$CC" = xlc -o "$CC" = cc; then
12113                  CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12114 +        fi
12115 +        if test "$CC" = icc; then
12116 +                CFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12117          fi;;
12118    esac
12119  
# Line 4100 | Line 12126 | if test "$ac_test_CFLAGS" != "set"; then
12126    if test $ac_cv_prog_really_gcc = yes; then
12127      # -malign-double for x86 systems
12128  
12129 < echo "$as_me:4103: checking whether ${CC-cc} accepts -malign-double" >&5
12130 < echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
12129 >
12130 > echo "$as_me:$LINENO: checking whether ${CC} accepts -malign-double" >&5
12131 > echo $ECHO_N "checking whether ${CC} accepts -malign-double... $ECHO_C" >&6
12132   if test "${ac_align_double+set}" = set; then
12133    echo $ECHO_N "(cached) $ECHO_C" >&6
12134   else
12135    echo 'void f(){}' > conftest.c
12136 < if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
12136 > if test -z "`${CC} -malign-double -c conftest.c 2>&1`"; then
12137          ac_align_double=yes
12138   else
12139          ac_align_double=no
# Line 4114 | Line 12141 | fi
12141   rm -f conftest*
12142  
12143   fi
12144 < echo "$as_me:4117: result: $ac_align_double" >&5
12144 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
12145   echo "${ECHO_T}$ac_align_double" >&6
12146   if test "$ac_align_double" = yes; then
12147          :
# Line 4126 | Line 12153 | fi
12153  
12154      # -fstrict-aliasing for gcc-2.95+
12155  
12156 < echo "$as_me:4129: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
12157 < echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
12156 >
12157 > echo "$as_me:$LINENO: checking whether ${CC} accepts -fstrict-aliasing" >&5
12158 > echo $ECHO_N "checking whether ${CC} accepts -fstrict-aliasing... $ECHO_C" >&6
12159   if test "${ac_fstrict_aliasing+set}" = set; then
12160    echo $ECHO_N "(cached) $ECHO_C" >&6
12161   else
12162    echo 'void f(){}' > conftest.c
12163 < if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
12163 > if test -z "`${CC} -fstrict-aliasing -c conftest.c 2>&1`"; then
12164          ac_fstrict_aliasing=yes
12165   else
12166          ac_fstrict_aliasing=no
# Line 4140 | Line 12168 | fi
12168   rm -f conftest*
12169  
12170   fi
12171 < echo "$as_me:4143: result: $ac_fstrict_aliasing" >&5
12171 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
12172   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
12173   if test "$ac_fstrict_aliasing" = yes; then
12174          :
# Line 4157 | Line 12185 | fi
12185                    case "${host_cpu}" in
12186            i586*)
12187  
12188 < echo "$as_me:4160: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
12189 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
12188 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentium" >&5
12189 > echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentium... $ECHO_C" >&6
12190   if test "${ac_cpu_pentium+set}" = set; then
12191    echo $ECHO_N "(cached) $ECHO_C" >&6
12192   else
12193    echo 'void f(){}' > conftest.c
12194 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
12194 > if test -z "`${CC} -mcpu=pentium -c conftest.c 2>&1`"; then
12195          ac_cpu_pentium=yes
12196   else
12197          ac_cpu_pentium=no
# Line 4171 | Line 12199 | fi
12199   rm -f conftest*
12200  
12201   fi
12202 < echo "$as_me:4174: result: $ac_cpu_pentium" >&5
12202 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
12203   echo "${ECHO_T}$ac_cpu_pentium" >&6
12204   if test "$ac_cpu_pentium" = yes; then
12205          :
# Line 4179 | Line 12207 | else
12207   else
12208          :
12209  
12210 < echo "$as_me:4182: checking whether ${CC-cc} accepts -mpentium" >&5
12211 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
12210 >
12211 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentium" >&5
12212 > echo $ECHO_N "checking whether ${CC} accepts -mpentium... $ECHO_C" >&6
12213   if test "${ac_pentium+set}" = set; then
12214    echo $ECHO_N "(cached) $ECHO_C" >&6
12215   else
12216    echo 'void f(){}' > conftest.c
12217 < if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
12217 > if test -z "`${CC} -mpentium -c conftest.c 2>&1`"; then
12218          ac_pentium=yes
12219   else
12220          ac_pentium=no
# Line 4193 | Line 12222 | fi
12222   rm -f conftest*
12223  
12224   fi
12225 < echo "$as_me:4196: result: $ac_pentium" >&5
12225 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
12226   echo "${ECHO_T}$ac_pentium" >&6
12227   if test "$ac_pentium" = yes; then
12228          :
# Line 4208 | Line 12237 | fi
12237                    ;;
12238            i686*)
12239  
12240 < echo "$as_me:4211: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
12241 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
12240 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=pentiumpro" >&5
12241 > echo $ECHO_N "checking whether ${CC} accepts -mcpu=pentiumpro... $ECHO_C" >&6
12242   if test "${ac_cpu_pentiumpro+set}" = set; then
12243    echo $ECHO_N "(cached) $ECHO_C" >&6
12244   else
12245    echo 'void f(){}' > conftest.c
12246 < if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
12246 > if test -z "`${CC} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
12247          ac_cpu_pentiumpro=yes
12248   else
12249          ac_cpu_pentiumpro=no
# Line 4222 | Line 12251 | fi
12251   rm -f conftest*
12252  
12253   fi
12254 < echo "$as_me:4225: result: $ac_cpu_pentiumpro" >&5
12254 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
12255   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
12256   if test "$ac_cpu_pentiumpro" = yes; then
12257          :
# Line 4230 | Line 12259 | else
12259   else
12260          :
12261  
12262 < echo "$as_me:4233: checking whether ${CC-cc} accepts -mpentiumpro" >&5
12263 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
12262 >
12263 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mpentiumpro" >&5
12264 > echo $ECHO_N "checking whether ${CC} accepts -mpentiumpro... $ECHO_C" >&6
12265   if test "${ac_pentiumpro+set}" = set; then
12266    echo $ECHO_N "(cached) $ECHO_C" >&6
12267   else
12268    echo 'void f(){}' > conftest.c
12269 < if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
12269 > if test -z "`${CC} -mpentiumpro -c conftest.c 2>&1`"; then
12270          ac_pentiumpro=yes
12271   else
12272          ac_pentiumpro=no
# Line 4244 | Line 12274 | fi
12274   rm -f conftest*
12275  
12276   fi
12277 < echo "$as_me:4247: result: $ac_pentiumpro" >&5
12277 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
12278   echo "${ECHO_T}$ac_pentiumpro" >&6
12279   if test "$ac_pentiumpro" = yes; then
12280          :
# Line 4262 | Line 12292 | fi
12292                  is60x=`echo $cputype | egrep "^600-9e?$"`
12293                  if test -n "$is60x"; then
12294  
12295 < echo "$as_me:4265: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
12296 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
12295 >
12296 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=$cputype" >&5
12297 > echo $ECHO_N "checking whether ${CC} accepts -mcpu=$cputype... $ECHO_C" >&6
12298   if test "${ac_m_cpu_60x+set}" = set; then
12299    echo $ECHO_N "(cached) $ECHO_C" >&6
12300   else
12301    echo 'void f(){}' > conftest.c
12302 < if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
12302 > if test -z "`${CC} -mcpu=$cputype -c conftest.c 2>&1`"; then
12303          ac_m_cpu_60x=yes
12304   else
12305          ac_m_cpu_60x=no
# Line 4276 | Line 12307 | fi
12307   rm -f conftest*
12308  
12309   fi
12310 < echo "$as_me:4279: result: $ac_m_cpu_60x" >&5
12310 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
12311   echo "${ECHO_T}$ac_m_cpu_60x" >&6
12312   if test "$ac_m_cpu_60x" = yes; then
12313          :
# Line 4288 | Line 12319 | fi
12319  
12320                  elif test "$cputype" = 750; then
12321  
12322 < echo "$as_me:4291: checking whether we are using gcc 2.95 or later" >&5
12322 >
12323 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
12324   echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
12325   if test "${ac_cv_prog_gcc_2_95+set}" = set; then
12326    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4302 | Line 12334 | if { ac_try='${CC-cc} -E conftest.c'
12334   #endif
12335   EOF
12336   if { ac_try='${CC-cc} -E conftest.c'
12337 <  { (eval echo "$as_me:4305: \"$ac_try\"") >&5
12337 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338    (eval $ac_try) 2>&5
12339    ac_status=$?
12340 <  echo "$as_me:4308: \$? = $ac_status" >&5
12340 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12342    ac_cv_prog_gcc_2_95=yes
12343   else
# Line 4313 | Line 12345 | fi
12345   fi
12346  
12347   fi
12348 < echo "$as_me:4316: result: $ac_cv_prog_gcc_2_95" >&5
12348 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
12349   echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
12350   if test "$ac_cv_prog_gcc_2_95" = yes; then
12351          :
12352  
12353 < echo "$as_me:4321: checking whether ${CC-cc} accepts -mcpu=750" >&5
12354 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
12353 >
12354 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=750" >&5
12355 > echo $ECHO_N "checking whether ${CC} accepts -mcpu=750... $ECHO_C" >&6
12356   if test "${ac_m_cpu_750+set}" = set; then
12357    echo $ECHO_N "(cached) $ECHO_C" >&6
12358   else
12359    echo 'void f(){}' > conftest.c
12360 < if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
12360 > if test -z "`${CC} -mcpu=750 -c conftest.c 2>&1`"; then
12361          ac_m_cpu_750=yes
12362   else
12363          ac_m_cpu_750=no
# Line 4332 | Line 12365 | fi
12365   rm -f conftest*
12366  
12367   fi
12368 < echo "$as_me:4335: result: $ac_m_cpu_750" >&5
12368 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
12369   echo "${ECHO_T}$ac_m_cpu_750" >&6
12370   if test "$ac_m_cpu_750" = yes; then
12371          :
# Line 4350 | Line 12383 | fi
12383                  fi
12384                  if test -z "$CPU_FLAGS"; then
12385  
12386 < echo "$as_me:4353: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
12387 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
12386 >
12387 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mcpu=powerpc" >&5
12388 > echo $ECHO_N "checking whether ${CC} accepts -mcpu=powerpc... $ECHO_C" >&6
12389   if test "${ac_m_cpu_powerpc+set}" = set; then
12390    echo $ECHO_N "(cached) $ECHO_C" >&6
12391   else
12392    echo 'void f(){}' > conftest.c
12393 < if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
12393 > if test -z "`${CC} -mcpu=powerpc -c conftest.c 2>&1`"; then
12394          ac_m_cpu_powerpc=yes
12395   else
12396          ac_m_cpu_powerpc=no
# Line 4364 | Line 12398 | fi
12398   rm -f conftest*
12399  
12400   fi
12401 < echo "$as_me:4367: result: $ac_m_cpu_powerpc" >&5
12401 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
12402   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
12403   if test "$ac_m_cpu_powerpc" = yes; then
12404          :
# Line 4377 | Line 12411 | fi
12411                  fi
12412                  if test -z "$CPU_FLAGS"; then
12413  
12414 < echo "$as_me:4380: checking whether ${CC-cc} accepts -mpowerpc" >&5
12415 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
12414 >
12415 > echo "$as_me:$LINENO: checking whether ${CC} accepts -mpowerpc" >&5
12416 > echo $ECHO_N "checking whether ${CC} accepts -mpowerpc... $ECHO_C" >&6
12417   if test "${ac_m_powerpc+set}" = set; then
12418    echo $ECHO_N "(cached) $ECHO_C" >&6
12419   else
12420    echo 'void f(){}' > conftest.c
12421 < if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
12421 > if test -z "`${CC} -mpowerpc -c conftest.c 2>&1`"; then
12422          ac_m_powerpc=yes
12423   else
12424          ac_m_powerpc=no
# Line 4391 | Line 12426 | fi
12426   rm -f conftest*
12427  
12428   fi
12429 < echo "$as_me:4394: result: $ac_m_powerpc" >&5
12429 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
12430   echo "${ECHO_T}$ac_m_powerpc" >&6
12431   if test "$ac_m_powerpc" = yes; then
12432          :
# Line 4420 | Line 12455 | fi
12455          CFLAGS="-O3"
12456    fi
12457  
12458 < echo "$as_me:4423: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
12459 < echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
12458 >
12459 >
12460 > echo "$as_me:$LINENO: checking whether ${CC} accepts ${CFLAGS}" >&5
12461 > echo $ECHO_N "checking whether ${CC} accepts ${CFLAGS}... $ECHO_C" >&6
12462   if test "${ac_guessed_cflags+set}" = set; then
12463    echo $ECHO_N "(cached) $ECHO_C" >&6
12464   else
12465    echo 'void f(){}' > conftest.c
12466 < if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
12466 > if test -z "`${CC} ${CFLAGS} -c conftest.c 2>&1`"; then
12467          ac_guessed_cflags=yes
12468   else
12469          ac_guessed_cflags=no
# Line 4434 | Line 12471 | fi
12471   rm -f conftest*
12472  
12473   fi
12474 < echo "$as_me:4437: result: $ac_guessed_cflags" >&5
12474 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
12475   echo "${ECHO_T}$ac_guessed_cflags" >&6
12476   if test "$ac_guessed_cflags" = yes; then
12477          :
# Line 4453 | Line 12490 | fi
12490  
12491   fi
12492  
12493 +
12494   fi
12495  
12496 < echo "$as_me:4458: checking whether we are *really* using GNU c++" >&5
12496 >
12497 >
12498 >
12499 >
12500 >
12501 >
12502 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
12503   echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
12504   if test "${ac_cv_prog_really_gxx+set}" = set; then
12505    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4463 | Line 12507 | cat > conftest.cpp <<EOF
12507  
12508   cat > conftest.cpp <<EOF
12509   #ifdef __GNUC__
12510 <  #ifndef __INTEL_COMPILER
12510 >  #if defined(__INTEL_COMPILER) || defined(__PATHCC__)
12511 >     no;
12512 >  #else
12513       yes;
12514    #endif
12515   #endif
12516   EOF
12517   if { ac_try='${CXX-c++} -E conftest.cpp'
12518 <  { (eval echo "$as_me:4472: \"$ac_try\"") >&5
12518 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519    (eval $ac_try) 2>&5
12520    ac_status=$?
12521 <  echo "$as_me:4475: \$? = $ac_status" >&5
12521 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12523    ac_cv_prog_really_gxx=yes
12524   else
# Line 4480 | Line 12526 | fi
12526   fi
12527  
12528   fi
12529 < echo "$as_me:4483: result: $ac_cv_prog_really_gxx" >&5
12529 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
12530   echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
12531   if test "$ac_cv_prog_really_gxx" = yes; then
12532          :
# Line 4490 | Line 12536 | fi
12536  
12537   fi
12538  
12539 +
12540   # Try to determine "good" native compiler flags if none specified on command
12541   # line
12542   if test "$ac_test_CXXFLAGS" != "set"; then
# Line 4500 | Line 12547 | if test "$ac_test_CXXFLAGS" != "set"; then
12547                      CXXFLAGS="-O"
12548                  fi;;
12549    sparc-solaris2*) if test "$CXX" = CC; then
12550 <                    CXXFLAGS="-native -fast -xO5 -dalign"
12550 >                    CXXFLAGS="-features=extensions -O -dalign"
12551                   fi;;
12552     rs6000*-aix*)  if test "$CXX" = xlC; then
12553                      CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
# Line 4521 | Line 12568 | if test "$ac_test_CXXFLAGS" != "set"; then
12568     *darwin*)
12569          if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
12570                  CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
12571 +        fi
12572 +        if test "$CXX" = icpc; then
12573 +                CXXFLAGS="-O3 -ip -no-prec-div -mdynamic-no-pic"
12574          fi;;
12575    esac
12576  
# Line 4533 | Line 12583 | if test "$ac_test_CXXFLAGS" != "set"; then
12583    if test $ac_cv_prog_really_gxx = yes; then
12584      # -malign-double for x86 systems
12585  
12586 < echo "$as_me:4536: checking whether ${CXX-c++} accepts -malign-double" >&5
12587 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
12586 >
12587 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -malign-double" >&5
12588 > echo $ECHO_N "checking whether ${CXX} accepts -malign-double... $ECHO_C" >&6
12589   if test "${ac_align_double+set}" = set; then
12590    echo $ECHO_N "(cached) $ECHO_C" >&6
12591   else
12592    echo 'void f(){}' > conftest.cpp
12593 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
12593 > if test -z "`${CXX} -malign-double -c conftest.cpp 2>&1`"; then
12594          ac_align_double=yes
12595   else
12596          ac_align_double=no
# Line 4547 | Line 12598 | fi
12598   rm -f conftest*
12599  
12600   fi
12601 < echo "$as_me:4550: result: $ac_align_double" >&5
12601 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
12602   echo "${ECHO_T}$ac_align_double" >&6
12603   if test "$ac_align_double" = yes; then
12604          :
# Line 4559 | Line 12610 | fi
12610  
12611      # -fstrict-aliasing for gcc-2.95+
12612  
12613 < echo "$as_me:4562: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
12614 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
12613 >
12614 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -fstrict-aliasing" >&5
12615 > echo $ECHO_N "checking whether ${CXX} accepts -fstrict-aliasing... $ECHO_C" >&6
12616   if test "${ac_fstrict_aliasing+set}" = set; then
12617    echo $ECHO_N "(cached) $ECHO_C" >&6
12618   else
12619    echo 'void f(){}' > conftest.cpp
12620 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
12620 > if test -z "`${CXX} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
12621          ac_fstrict_aliasing=yes
12622   else
12623          ac_fstrict_aliasing=no
# Line 4573 | Line 12625 | fi
12625   rm -f conftest*
12626  
12627   fi
12628 < echo "$as_me:4576: result: $ac_fstrict_aliasing" >&5
12628 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
12629   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
12630   if test "$ac_fstrict_aliasing" = yes; then
12631          :
# Line 4590 | Line 12642 | fi
12642                    case "${host_cpu}" in
12643            i586*)
12644  
12645 < echo "$as_me:4593: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
12646 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
12645 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentium" >&5
12646 > echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentium... $ECHO_C" >&6
12647   if test "${ac_cpu_pentium+set}" = set; then
12648    echo $ECHO_N "(cached) $ECHO_C" >&6
12649   else
12650    echo 'void f(){}' > conftest.cpp
12651 < if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
12651 > if test -z "`${CXX} -mcpu=pentium -c conftest.cpp 2>&1`"; then
12652          ac_cpu_pentium=yes
12653   else
12654          ac_cpu_pentium=no
# Line 4604 | Line 12656 | fi
12656   rm -f conftest*
12657  
12658   fi
12659 < echo "$as_me:4607: result: $ac_cpu_pentium" >&5
12659 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
12660   echo "${ECHO_T}$ac_cpu_pentium" >&6
12661   if test "$ac_cpu_pentium" = yes; then
12662          :
# Line 4612 | Line 12664 | else
12664   else
12665          :
12666  
12667 < echo "$as_me:4615: checking whether ${CXX-c++} accepts -mpentium" >&5
12668 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
12667 >
12668 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentium" >&5
12669 > echo $ECHO_N "checking whether ${CXX} accepts -mpentium... $ECHO_C" >&6
12670   if test "${ac_pentium+set}" = set; then
12671    echo $ECHO_N "(cached) $ECHO_C" >&6
12672   else
12673    echo 'void f(){}' > conftest.cpp
12674 < if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
12674 > if test -z "`${CXX} -mpentium -c conftest.cpp 2>&1`"; then
12675          ac_pentium=yes
12676   else
12677          ac_pentium=no
# Line 4626 | Line 12679 | fi
12679   rm -f conftest*
12680  
12681   fi
12682 < echo "$as_me:4629: result: $ac_pentium" >&5
12682 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
12683   echo "${ECHO_T}$ac_pentium" >&6
12684   if test "$ac_pentium" = yes; then
12685          :
# Line 4641 | Line 12694 | fi
12694                    ;;
12695            i686*)
12696  
12697 < echo "$as_me:4644: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
12698 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
12697 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=pentiumpro" >&5
12698 > echo $ECHO_N "checking whether ${CXX} accepts -mcpu=pentiumpro... $ECHO_C" >&6
12699   if test "${ac_cpu_pentiumpro+set}" = set; then
12700    echo $ECHO_N "(cached) $ECHO_C" >&6
12701   else
12702    echo 'void f(){}' > conftest.cpp
12703 < if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
12703 > if test -z "`${CXX} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
12704          ac_cpu_pentiumpro=yes
12705   else
12706          ac_cpu_pentiumpro=no
# Line 4655 | Line 12708 | fi
12708   rm -f conftest*
12709  
12710   fi
12711 < echo "$as_me:4658: result: $ac_cpu_pentiumpro" >&5
12711 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
12712   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
12713   if test "$ac_cpu_pentiumpro" = yes; then
12714          :
# Line 4663 | Line 12716 | else
12716   else
12717          :
12718  
12719 < echo "$as_me:4666: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
12720 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
12719 >
12720 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpentiumpro" >&5
12721 > echo $ECHO_N "checking whether ${CXX} accepts -mpentiumpro... $ECHO_C" >&6
12722   if test "${ac_pentiumpro+set}" = set; then
12723    echo $ECHO_N "(cached) $ECHO_C" >&6
12724   else
12725    echo 'void f(){}' > conftest.cpp
12726 < if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
12726 > if test -z "`${CXX} -mpentiumpro -c conftest.cpp 2>&1`"; then
12727          ac_pentiumpro=yes
12728   else
12729          ac_pentiumpro=no
# Line 4677 | Line 12731 | fi
12731   rm -f conftest*
12732  
12733   fi
12734 < echo "$as_me:4680: result: $ac_pentiumpro" >&5
12734 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
12735   echo "${ECHO_T}$ac_pentiumpro" >&6
12736   if test "$ac_pentiumpro" = yes; then
12737          :
# Line 4695 | Line 12749 | fi
12749                  is60x=`echo $cputype | egrep "^600-9e?$"`
12750                  if test -n "$is60x"; then
12751  
12752 < echo "$as_me:4698: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
12753 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
12752 >
12753 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=$cputype" >&5
12754 > echo $ECHO_N "checking whether ${CXX} accepts -mcpu=$cputype... $ECHO_C" >&6
12755   if test "${ac_m_cpu_60x+set}" = set; then
12756    echo $ECHO_N "(cached) $ECHO_C" >&6
12757   else
12758    echo 'void f(){}' > conftest.cpp
12759 < if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
12759 > if test -z "`${CXX} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
12760          ac_m_cpu_60x=yes
12761   else
12762          ac_m_cpu_60x=no
# Line 4709 | Line 12764 | fi
12764   rm -f conftest*
12765  
12766   fi
12767 < echo "$as_me:4712: result: $ac_m_cpu_60x" >&5
12767 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
12768   echo "${ECHO_T}$ac_m_cpu_60x" >&6
12769   if test "$ac_m_cpu_60x" = yes; then
12770          :
# Line 4721 | Line 12776 | fi
12776  
12777                  elif test "$cputype" = 750; then
12778  
12779 < echo "$as_me:4724: checking whether we are using g++ 2.95 or later" >&5
12779 >
12780 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
12781   echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
12782   if test "${ac_cv_prog_gxx_2_95+set}" = set; then
12783    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 4735 | Line 12791 | if { ac_try='${CXX-c++} -E conftest.cpp'
12791   #endif
12792   EOF
12793   if { ac_try='${CXX-c++} -E conftest.cpp'
12794 <  { (eval echo "$as_me:4738: \"$ac_try\"") >&5
12794 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795    (eval $ac_try) 2>&5
12796    ac_status=$?
12797 <  echo "$as_me:4741: \$? = $ac_status" >&5
12797 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
12799    ac_cv_prog_gxx_2_95=yes
12800   else
# Line 4746 | Line 12802 | fi
12802   fi
12803  
12804   fi
12805 < echo "$as_me:4749: result: $ac_cv_prog_gxx_2_95" >&5
12805 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
12806   echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
12807   if test "$ac_cv_prog_gxx_2_95" = yes; then
12808          :
12809  
12810 < echo "$as_me:4754: checking whether ${CXX-c++} accepts -mcpu=750" >&5
12811 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
12810 >
12811 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=750" >&5
12812 > echo $ECHO_N "checking whether ${CXX} accepts -mcpu=750... $ECHO_C" >&6
12813   if test "${ac_m_cpu_750+set}" = set; then
12814    echo $ECHO_N "(cached) $ECHO_C" >&6
12815   else
12816    echo 'void f(){}' > conftest.cpp
12817 < if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
12817 > if test -z "`${CXX} -mcpu=750 -c conftest.cpp 2>&1`"; then
12818          ac_m_cpu_750=yes
12819   else
12820          ac_m_cpu_750=no
# Line 4765 | Line 12822 | fi
12822   rm -f conftest*
12823  
12824   fi
12825 < echo "$as_me:4768: result: $ac_m_cpu_750" >&5
12825 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
12826   echo "${ECHO_T}$ac_m_cpu_750" >&6
12827   if test "$ac_m_cpu_750" = yes; then
12828          :
# Line 4783 | Line 12840 | fi
12840                  fi
12841                  if test -z "$CPU_FLAGS"; then
12842  
12843 < echo "$as_me:4786: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
12844 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
12843 >
12844 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mcpu=powerpc" >&5
12845 > echo $ECHO_N "checking whether ${CXX} accepts -mcpu=powerpc... $ECHO_C" >&6
12846   if test "${ac_m_cpu_powerpc+set}" = set; then
12847    echo $ECHO_N "(cached) $ECHO_C" >&6
12848   else
12849    echo 'void f(){}' > conftest.cpp
12850 < if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
12850 > if test -z "`${CXX} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
12851          ac_m_cpu_powerpc=yes
12852   else
12853          ac_m_cpu_powerpc=no
# Line 4797 | Line 12855 | fi
12855   rm -f conftest*
12856  
12857   fi
12858 < echo "$as_me:4800: result: $ac_m_cpu_powerpc" >&5
12858 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
12859   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
12860   if test "$ac_m_cpu_powerpc" = yes; then
12861          :
# Line 4810 | Line 12868 | fi
12868                  fi
12869                  if test -z "$CPU_FLAGS"; then
12870  
12871 < echo "$as_me:4813: checking whether ${CXX-c++} accepts -mpowerpc" >&5
12872 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
12871 >
12872 > echo "$as_me:$LINENO: checking whether ${CXX} accepts -mpowerpc" >&5
12873 > echo $ECHO_N "checking whether ${CXX} accepts -mpowerpc... $ECHO_C" >&6
12874   if test "${ac_m_powerpc+set}" = set; then
12875    echo $ECHO_N "(cached) $ECHO_C" >&6
12876   else
12877    echo 'void f(){}' > conftest.cpp
12878 < if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
12878 > if test -z "`${CXX} -mpowerpc -c conftest.cpp 2>&1`"; then
12879          ac_m_powerpc=yes
12880   else
12881          ac_m_powerpc=no
# Line 4824 | Line 12883 | fi
12883   rm -f conftest*
12884  
12885   fi
12886 < echo "$as_me:4827: result: $ac_m_powerpc" >&5
12886 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
12887   echo "${ECHO_T}$ac_m_powerpc" >&6
12888   if test "$ac_m_powerpc" = yes; then
12889          :
# Line 4848 | Line 12907 | fi
12907          echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
12908          echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
12909          echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4851        echo "**********************************************************"
4852        echo ""
4853        CXXFLAGS="-O3"
4854  fi
4855
4856 echo "$as_me:4856: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4857 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4858 if test "${ac_guessed_cxxflags+set}" = set; then
4859  echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861  echo 'void f(){}' > conftest.cpp
4862 if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4863        ac_guessed_cxxflags=yes
4864 else
4865        ac_guessed_cxxflags=no
4866 fi
4867 rm -f conftest*
4868
4869 fi
4870 echo "$as_me:4870: result: $ac_guessed_cxxflags" >&5
4871 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4872 if test "$ac_guessed_cxxflags" = yes; then
4873        :
4874
4875 else
4876        :
4877
4878        echo ""
4879        echo "**********************************************************"
4880        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4881        echo "* your compiler.                                         *"
4882        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4883        echo "**********************************************************"
4884        echo ""
4885        CXXFLAGS=""
4886
4887 fi
4888
4889 fi
4890
4891 # Try to determine "good" native compiler flags if none specified on command
4892 # line
4893
4894 if test x"$F90FLAGS" = x ; then
4895  F90FLAGS=""
4896  case "${host_cpu}-${host_os}" in
4897
4898  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
4899                    F90FLAGS="-O"
4900                fi;;
4901   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4902                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4903                fi;;
4904   powerpc*-aix*)
4905        if test "$F90" = f90 -o "$F90" = xlf90; then
4906                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4907                echo "*******************************************************"
4908                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4909                echo "*  recommended that you use                           *"
4910                echo "*                                                     *"
4911                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4912                echo "*                                 ^^^                 *"
4913                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4914                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4915                echo "*******************************************************"
4916        fi;;
4917   *darwin*)
4918        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
4919                F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
4920        fi;;
4921  esac
4922
4923  if test -n "$CPU_FLAGS"; then
4924        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4925  fi
4926
4927  if test -z "$F90FLAGS"; then
4928        echo ""
12910          echo "**********************************************************"
4930        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4931        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4932        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4933        echo "**********************************************************"
12911          echo ""
12912 <        F90FLAGS="-O3"
12913 <  fi
4937 <
4938 < echo "$as_me:4938: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4939 < echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4940 < if test "${ac_guessed_f90flags+set}" = set; then
4941 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4942 < else
4943 <
4944 < ac_ext=f90
4945 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4946 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4948 <
4949 < echo 'program main' > conftest.$ac_ext
4950 < echo 'end program main' >> conftest.$ac_ext
4951 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4952 < if { (eval echo "$as_me:4952: \"$ac_compile\"") >&5
4953 <  (eval $ac_compile) 2>&5
4954 <  ac_status=$?
4955 <  echo "$as_me:4955: \$? = $ac_status" >&5
4956 <  (exit $ac_status); }; then
4957 <        ac_guessed_f90flags=yes
4958 < else
4959 <        ac_guessed_f90flags=no
4960 < fi
4961 < rm -f conftest*
4962 < ac_ext=c
4963 < ac_cpp='$CPP $CPPFLAGS'
4964 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 <
4968 < fi
4969 < echo "$as_me:4969: result: $ac_guessed_f90flags" >&5
4970 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
4971 < if test "$ac_guessed_f90flags" = yes; then
4972 <        :
4973 <
4974 < else
4975 <        :
4976 <
4977 <        echo ""
4978 <        echo "**********************************************************"
4979 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
4980 <        echo "* your compiler.                                         *"
4981 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4982 <        echo "**********************************************************"
4983 <        echo ""
4984 <        F90FLAGS=""
4985 <
4986 < fi
4987 <
4988 < fi
4989 <
4990 <     ;;
4991 < esac
4992 <
4993 < # Find a good install program.  We prefer a C program (faster),
4994 < # so one script is as good as another.  But avoid the broken or
4995 < # incompatible versions:
4996 < # SysV /etc/install, /usr/sbin/install
4997 < # SunOS /usr/etc/install
4998 < # IRIX /sbin/install
4999 < # AIX /bin/install
5000 < # AmigaOS /C/install, which installs bootblocks on floppy discs
5001 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5002 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5003 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5004 < # ./install, which can be erroneously created by make from ./install.sh.
5005 < echo "$as_me:5005: checking for a BSD compatible install" >&5
5006 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5007 < if test -z "$INSTALL"; then
5008 < if test "${ac_cv_path_install+set}" = set; then
5009 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5010 < else
5011 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
5012 <  for ac_dir in $PATH; do
5013 <    IFS=$ac_save_IFS
5014 <    # Account for people who put trailing slashes in PATH elements.
5015 <    case $ac_dir/ in
5016 <    / | ./ | .// | /cC/* \
5017 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5018 <    | /usr/ucb/* ) ;;
5019 <    *)
5020 <      # OSF1 and SCO ODT 3.0 have their own names for install.
5021 <      # Don't use installbsd from OSF since it installs stuff as root
5022 <      # by default.
5023 <      for ac_prog in ginstall scoinst install; do
5024 <        if $as_executable_p "$ac_dir/$ac_prog"; then
5025 <          if test $ac_prog = install &&
5026 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5027 <            # AIX install.  It has an incompatible calling convention.
5028 <            :
5029 <          elif test $ac_prog = install &&
5030 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5031 <            # program-specific install script used by HP pwplus--don't use.
5032 <            :
5033 <          else
5034 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
5035 <            break 2
5036 <          fi
5037 <        fi
5038 <      done
5039 <      ;;
5040 <    esac
5041 <  done
5042 <
5043 < fi
5044 <  if test "${ac_cv_path_install+set}" = set; then
5045 <    INSTALL=$ac_cv_path_install
5046 <  else
5047 <    # As a last resort, use the slow shell script.  We don't cache a
5048 <    # path for INSTALL within a source directory, because that will
5049 <    # break other packages using the cache if that directory is
5050 <    # removed, or if the path is relative.
5051 <    INSTALL=$ac_install_sh
5052 <  fi
5053 < fi
5054 < echo "$as_me:5054: result: $INSTALL" >&5
5055 < echo "${ECHO_T}$INSTALL" >&6
5056 <
5057 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5058 < # It thinks the first close brace ends the variable substitution.
5059 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5060 <
5061 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5062 <
5063 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5064 <
5065 < echo "$as_me:5065: checking whether ln -s works" >&5
5066 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5067 < LN_S=$as_ln_s
5068 < if test "$LN_S" = "ln -s"; then
5069 <  echo "$as_me:5069: result: yes" >&5
5070 < echo "${ECHO_T}yes" >&6
5071 < else
5072 <  echo "$as_me:5072: result: no, using $LN_S" >&5
5073 < echo "${ECHO_T}no, using $LN_S" >&6
5074 < fi
5075 <
5076 < echo "$as_me:5076: checking whether ${MAKE-make} sets \${MAKE}" >&5
5077 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5078 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5079 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5080 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5081 < else
5082 <  cat >conftest.make <<\EOF
5083 < all:
5084 <        @echo 'ac_maketemp="${MAKE}"'
5085 < EOF
5086 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5087 < eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5088 < if test -n "$ac_maketemp"; then
5089 <  eval ac_cv_prog_make_${ac_make}_set=yes
5090 < else
5091 <  eval ac_cv_prog_make_${ac_make}_set=no
5092 < fi
5093 < rm -f conftest.make
5094 < fi
5095 < if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5096 <  echo "$as_me:5096: result: yes" >&5
5097 < echo "${ECHO_T}yes" >&6
5098 <  SET_MAKE=
5099 < else
5100 <  echo "$as_me:5100: result: no" >&5
5101 < echo "${ECHO_T}no" >&6
5102 <  SET_MAKE="MAKE=${MAKE-make}"
5103 < fi
5104 <
5105 < if test -n "$ac_tool_prefix"; then
5106 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5107 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5108 < echo "$as_me:5108: checking for $ac_word" >&5
5109 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110 < if test "${ac_cv_prog_RANLIB+set}" = set; then
5111 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5112 < else
5113 <  if test -n "$RANLIB"; then
5114 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5115 < else
5116 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5117 < ac_dummy="$PATH"
5118 < for ac_dir in $ac_dummy; do
5119 <  IFS=$ac_save_IFS
5120 <  test -z "$ac_dir" && ac_dir=.
5121 <  $as_executable_p "$ac_dir/$ac_word" || continue
5122 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5123 < echo "$as_me:5123: found $ac_dir/$ac_word" >&5
5124 < break
5125 < done
5126 <
5127 < fi
5128 < fi
5129 < RANLIB=$ac_cv_prog_RANLIB
5130 < if test -n "$RANLIB"; then
5131 <  echo "$as_me:5131: result: $RANLIB" >&5
5132 < echo "${ECHO_T}$RANLIB" >&6
5133 < else
5134 <  echo "$as_me:5134: result: no" >&5
5135 < echo "${ECHO_T}no" >&6
5136 < fi
5137 <
5138 < fi
5139 < if test -z "$ac_cv_prog_RANLIB"; then
5140 <  ac_ct_RANLIB=$RANLIB
5141 <  # Extract the first word of "ranlib", so it can be a program name with args.
5142 < set dummy ranlib; ac_word=$2
5143 < echo "$as_me:5143: checking for $ac_word" >&5
5144 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5146 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5147 < else
5148 <  if test -n "$ac_ct_RANLIB"; then
5149 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5150 < else
5151 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5152 < ac_dummy="$PATH"
5153 < for ac_dir in $ac_dummy; do
5154 <  IFS=$ac_save_IFS
5155 <  test -z "$ac_dir" && ac_dir=.
5156 <  $as_executable_p "$ac_dir/$ac_word" || continue
5157 < ac_cv_prog_ac_ct_RANLIB="ranlib"
5158 < echo "$as_me:5158: found $ac_dir/$ac_word" >&5
5159 < break
5160 < done
5161 <
5162 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5163 < fi
5164 < fi
5165 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166 < if test -n "$ac_ct_RANLIB"; then
5167 <  echo "$as_me:5167: result: $ac_ct_RANLIB" >&5
5168 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
5169 < else
5170 <  echo "$as_me:5170: result: no" >&5
5171 < echo "${ECHO_T}no" >&6
5172 < fi
5173 <
5174 <  RANLIB=$ac_ct_RANLIB
5175 < else
5176 <  RANLIB="$ac_cv_prog_RANLIB"
5177 < fi
5178 <
5179 < for ac_prog in 'bison -y' byacc
5180 < do
5181 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 < set dummy $ac_prog; ac_word=$2
5183 < echo "$as_me:5183: checking for $ac_word" >&5
5184 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 < if test "${ac_cv_prog_YACC+set}" = set; then
5186 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5187 < else
5188 <  if test -n "$YACC"; then
5189 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5190 < else
5191 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5192 < ac_dummy="$PATH"
5193 < for ac_dir in $ac_dummy; do
5194 <  IFS=$ac_save_IFS
5195 <  test -z "$ac_dir" && ac_dir=.
5196 <  $as_executable_p "$ac_dir/$ac_word" || continue
5197 < ac_cv_prog_YACC="$ac_prog"
5198 < echo "$as_me:5198: found $ac_dir/$ac_word" >&5
5199 < break
5200 < done
5201 <
5202 < fi
5203 < fi
5204 < YACC=$ac_cv_prog_YACC
5205 < if test -n "$YACC"; then
5206 <  echo "$as_me:5206: result: $YACC" >&5
5207 < echo "${ECHO_T}$YACC" >&6
5208 < else
5209 <  echo "$as_me:5209: result: no" >&5
5210 < echo "${ECHO_T}no" >&6
5211 < fi
5212 <
5213 <  test -n "$YACC" && break
5214 < done
5215 < test -n "$YACC" || YACC="yacc"
5216 <
5217 < for ac_prog in flex lex
5218 < do
5219 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 < set dummy $ac_prog; ac_word=$2
5221 < echo "$as_me:5221: checking for $ac_word" >&5
5222 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223 < if test "${ac_cv_prog_LEX+set}" = set; then
5224 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5225 < else
5226 <  if test -n "$LEX"; then
5227 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5228 < else
5229 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5230 < ac_dummy="$PATH"
5231 < for ac_dir in $ac_dummy; do
5232 <  IFS=$ac_save_IFS
5233 <  test -z "$ac_dir" && ac_dir=.
5234 <  $as_executable_p "$ac_dir/$ac_word" || continue
5235 < ac_cv_prog_LEX="$ac_prog"
5236 < echo "$as_me:5236: found $ac_dir/$ac_word" >&5
5237 < break
5238 < done
5239 <
5240 < fi
5241 < fi
5242 < LEX=$ac_cv_prog_LEX
5243 < if test -n "$LEX"; then
5244 <  echo "$as_me:5244: result: $LEX" >&5
5245 < echo "${ECHO_T}$LEX" >&6
5246 < else
5247 <  echo "$as_me:5247: result: no" >&5
5248 < echo "${ECHO_T}no" >&6
5249 < fi
5250 <
5251 <  test -n "$LEX" && break
5252 < done
5253 < test -n "$LEX" || LEX=":"
5254 <
5255 < if test -z "$LEXLIB"
5256 < then
5257 <  echo "$as_me:5257: checking for yywrap in -lfl" >&5
5258 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5259 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5260 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5261 < else
5262 <  ac_check_lib_save_LIBS=$LIBS
5263 < LIBS="-lfl  $LIBS"
5264 < cat >conftest.$ac_ext <<_ACEOF
5265 < #line 5265 "configure"
5266 < #include "confdefs.h"
5267 <
5268 < /* Override any gcc2 internal prototype to avoid an error.  */
5269 < #ifdef __cplusplus
5270 < extern "C"
5271 < #endif
5272 < /* We use char because int might match the return type of a gcc2
5273 <   builtin and then its argument prototype would still apply.  */
5274 < char yywrap ();
5275 < int
5276 < main ()
5277 < {
5278 < yywrap ();
5279 <  ;
5280 <  return 0;
5281 < }
5282 < _ACEOF
5283 < rm -f conftest.$ac_objext conftest$ac_exeext
5284 < if { (eval echo "$as_me:5284: \"$ac_link\"") >&5
5285 <  (eval $ac_link) 2>&5
5286 <  ac_status=$?
5287 <  echo "$as_me:5287: \$? = $ac_status" >&5
5288 <  (exit $ac_status); } &&
5289 <         { ac_try='test -s conftest$ac_exeext'
5290 <  { (eval echo "$as_me:5290: \"$ac_try\"") >&5
5291 <  (eval $ac_try) 2>&5
5292 <  ac_status=$?
5293 <  echo "$as_me:5293: \$? = $ac_status" >&5
5294 <  (exit $ac_status); }; }; then
5295 <  ac_cv_lib_fl_yywrap=yes
5296 < else
5297 <  echo "$as_me: failed program was:" >&5
5298 < cat conftest.$ac_ext >&5
5299 < ac_cv_lib_fl_yywrap=no
5300 < fi
5301 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 < LIBS=$ac_check_lib_save_LIBS
5303 < fi
5304 < echo "$as_me:5304: result: $ac_cv_lib_fl_yywrap" >&5
5305 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5306 < if test $ac_cv_lib_fl_yywrap = yes; then
5307 <  LEXLIB="-lfl"
5308 < else
5309 <  echo "$as_me:5309: checking for yywrap in -ll" >&5
5310 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5311 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
5312 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5313 < else
5314 <  ac_check_lib_save_LIBS=$LIBS
5315 < LIBS="-ll  $LIBS"
5316 < cat >conftest.$ac_ext <<_ACEOF
5317 < #line 5317 "configure"
5318 < #include "confdefs.h"
5319 <
5320 < /* Override any gcc2 internal prototype to avoid an error.  */
5321 < #ifdef __cplusplus
5322 < extern "C"
5323 < #endif
5324 < /* We use char because int might match the return type of a gcc2
5325 <   builtin and then its argument prototype would still apply.  */
5326 < char yywrap ();
5327 < int
5328 < main ()
5329 < {
5330 < yywrap ();
5331 <  ;
5332 <  return 0;
5333 < }
5334 < _ACEOF
5335 < rm -f conftest.$ac_objext conftest$ac_exeext
5336 < if { (eval echo "$as_me:5336: \"$ac_link\"") >&5
5337 <  (eval $ac_link) 2>&5
5338 <  ac_status=$?
5339 <  echo "$as_me:5339: \$? = $ac_status" >&5
5340 <  (exit $ac_status); } &&
5341 <         { ac_try='test -s conftest$ac_exeext'
5342 <  { (eval echo "$as_me:5342: \"$ac_try\"") >&5
5343 <  (eval $ac_try) 2>&5
5344 <  ac_status=$?
5345 <  echo "$as_me:5345: \$? = $ac_status" >&5
5346 <  (exit $ac_status); }; }; then
5347 <  ac_cv_lib_l_yywrap=yes
5348 < else
5349 <  echo "$as_me: failed program was:" >&5
5350 < cat conftest.$ac_ext >&5
5351 < ac_cv_lib_l_yywrap=no
5352 < fi
5353 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354 < LIBS=$ac_check_lib_save_LIBS
5355 < fi
5356 < echo "$as_me:5356: result: $ac_cv_lib_l_yywrap" >&5
5357 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5358 < if test $ac_cv_lib_l_yywrap = yes; then
5359 <  LEXLIB="-ll"
5360 < fi
5361 <
5362 < fi
5363 <
5364 < fi
5365 <
5366 < if test "x$LEX" != "x:"; then
5367 <  echo "$as_me:5367: checking lex output file root" >&5
5368 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5369 < if test "${ac_cv_prog_lex_root+set}" = set; then
5370 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5371 < else
5372 <  # The minimal lex program is just a single line: %%.  But some broken lexes
5373 < # (Solaris, I think it was) want two %% lines, so accommodate them.
5374 < echo '%%
5375 < %%' | $LEX
5376 < if test -f lex.yy.c; then
5377 <  ac_cv_prog_lex_root=lex.yy
5378 < elif test -f lexyy.c; then
5379 <  ac_cv_prog_lex_root=lexyy
5380 < else
5381 <  { { echo "$as_me:5381: error: cannot find output from $LEX; giving up" >&5
5382 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5383 <   { (exit 1); exit 1; }; }
5384 < fi
5385 < fi
5386 < echo "$as_me:5386: result: $ac_cv_prog_lex_root" >&5
5387 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5388 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5389 <
5390 < echo "$as_me:5390: checking whether yytext is a pointer" >&5
5391 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5392 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5393 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5394 < else
5395 <  # POSIX says lex can declare yytext either as a pointer or an array; the
5396 < # default is implementation-dependent. Figure out which it is, since
5397 < # not all implementations provide the %pointer and %array declarations.
5398 < ac_cv_prog_lex_yytext_pointer=no
5399 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5400 < ac_save_LIBS=$LIBS
5401 < LIBS="$LIBS $LEXLIB"
5402 < cat >conftest.$ac_ext <<_ACEOF
5403 < `cat $LEX_OUTPUT_ROOT.c`
5404 < _ACEOF
5405 < rm -f conftest.$ac_objext conftest$ac_exeext
5406 < if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
5407 <  (eval $ac_link) 2>&5
5408 <  ac_status=$?
5409 <  echo "$as_me:5409: \$? = $ac_status" >&5
5410 <  (exit $ac_status); } &&
5411 <         { ac_try='test -s conftest$ac_exeext'
5412 <  { (eval echo "$as_me:5412: \"$ac_try\"") >&5
5413 <  (eval $ac_try) 2>&5
5414 <  ac_status=$?
5415 <  echo "$as_me:5415: \$? = $ac_status" >&5
5416 <  (exit $ac_status); }; }; then
5417 <  ac_cv_prog_lex_yytext_pointer=yes
5418 < else
5419 <  echo "$as_me: failed program was:" >&5
5420 < cat conftest.$ac_ext >&5
5421 < fi
5422 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5423 < LIBS=$ac_save_LIBS
5424 < rm -f "${LEX_OUTPUT_ROOT}.c"
5425 <
5426 < fi
5427 < echo "$as_me:5427: result: $ac_cv_prog_lex_yytext_pointer" >&5
5428 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5429 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
5430 <
5431 < cat >>confdefs.h <<\EOF
5432 < #define YYTEXT_POINTER 1
5433 < EOF
5434 <
5435 < fi
5436 <
5437 < fi
5438 < # Extract the first word of "ar", so it can be a program name with args.
5439 < set dummy ar; ac_word=$2
5440 < echo "$as_me:5440: checking for $ac_word" >&5
5441 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5442 < if test "${ac_cv_prog_AR+set}" = set; then
5443 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5444 < else
5445 <  if test -n "$AR"; then
5446 <  ac_cv_prog_AR="$AR" # Let the user override the test.
5447 < else
5448 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5449 < ac_dummy="$PATH"
5450 < for ac_dir in $ac_dummy; do
5451 <  IFS=$ac_save_IFS
5452 <  test -z "$ac_dir" && ac_dir=.
5453 <  $as_executable_p "$ac_dir/$ac_word" || continue
5454 < ac_cv_prog_AR="ar"
5455 < echo "$as_me:5455: found $ac_dir/$ac_word" >&5
5456 < break
5457 < done
5458 <
5459 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5460 < fi
5461 < fi
5462 < AR=$ac_cv_prog_AR
5463 < if test -n "$AR"; then
5464 <  echo "$as_me:5464: result: $AR" >&5
5465 < echo "${ECHO_T}$AR" >&6
5466 < else
5467 <  echo "$as_me:5467: result: no" >&5
5468 < echo "${ECHO_T}no" >&6
5469 < fi
5470 <
5471 < if test "$AR" = "NONE"; then
5472 <  { { echo "$as_me:5472: error: --> Can't find \`ar'!" >&5
5473 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5474 <   { (exit 1); exit 1; }; }
5475 <  cat >confcache <<\_ACEOF
5476 < # This file is a shell script that caches the results of configure
5477 < # tests run on this system so they can be shared between configure
5478 < # scripts and configure runs, see configure's option --config-cache.
5479 < # It is not useful on other systems.  If it contains results you don't
5480 < # want to keep, you may remove or edit it.
5481 < #
5482 < # config.status only pays attention to the cache file if you give it
5483 < # the --recheck option to rerun configure.
5484 < #
5485 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
5486 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
5487 < # following values.
5488 <
5489 < _ACEOF
5490 <
5491 < # The following way of writing the cache mishandles newlines in values,
5492 < # but we know of no workaround that is simple, portable, and efficient.
5493 < # So, don't put newlines in cache variables' values.
5494 < # Ultrix sh set writes to stderr and can't be redirected directly,
5495 < # and sets the high bit in the cache file unless we assign to the vars.
5496 < {
5497 <  (set) 2>&1 |
5498 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5499 <    *ac_space=\ *)
5500 <      # `set' does not quote correctly, so add quotes (double-quote
5501 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
5502 <      sed -n \
5503 <        "s/'/'\\\\''/g;
5504 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5505 <      ;;
5506 <    *)
5507 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
5508 <      sed -n \
5509 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5510 <      ;;
5511 <    esac;
5512 < } |
5513 <  sed '
5514 <     t clear
5515 <     : clear
5516 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5517 <     t end
5518 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5519 <     : end' >>confcache
5520 < if cmp -s $cache_file confcache; then :; else
5521 <  if test -w $cache_file; then
5522 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5523 <    cat confcache >$cache_file
5524 <  else
5525 <    echo "not updating unwritable cache $cache_file"
5526 <  fi
5527 < fi
5528 < rm -f confcache
5529 <  exit 1
5530 < fi
12912 >        CXXFLAGS="-O3"
12913 >  fi
12914  
12915 < # Extract the first word of "ps", so it can be a program name with args.
12916 < set dummy ps; ac_word=$2
12917 < echo "$as_me:5534: checking for $ac_word" >&5
12918 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12919 < if test "${ac_cv_path_PS+set}" = set; then
12915 >
12916 >
12917 > echo "$as_me:$LINENO: checking whether ${CXX} accepts ${CXXFLAGS}" >&5
12918 > echo $ECHO_N "checking whether ${CXX} accepts ${CXXFLAGS}... $ECHO_C" >&6
12919 > if test "${ac_guessed_cxxflags+set}" = set; then
12920    echo $ECHO_N "(cached) $ECHO_C" >&6
12921   else
12922 <  case $PS in
12923 <  [\\/]* | ?:[\\/]*)
12924 <  ac_cv_path_PS="$PS" # Let the user override the test with a path.
12925 <  ;;
12926 <  *)
5544 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5545 < ac_dummy="$PATH"
5546 < for ac_dir in $ac_dummy; do
5547 <  IFS=$ac_save_IFS
5548 <  test -z "$ac_dir" && ac_dir=.
5549 <  if $as_executable_p "$ac_dir/$ac_word"; then
5550 <   ac_cv_path_PS="$ac_dir/$ac_word"
5551 <   echo "$as_me:5551: found $ac_dir/$ac_word" >&5
5552 <   break
12922 >  echo 'void f(){}' > conftest.cpp
12923 > if test -z "`${CXX} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
12924 >        ac_guessed_cxxflags=yes
12925 > else
12926 >        ac_guessed_cxxflags=no
12927   fi
12928 < done
12928 > rm -f conftest*
12929  
5556  ;;
5557 esac
12930   fi
12931 < PS=$ac_cv_path_PS
12931 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
12932 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
12933 > if test "$ac_guessed_cxxflags" = yes; then
12934 >        :
12935  
5561 if test -n "$PS"; then
5562  echo "$as_me:5562: result: $PS" >&5
5563 echo "${ECHO_T}$PS" >&6
12936   else
12937 <  echo "$as_me:5565: result: no" >&5
5566 < echo "${ECHO_T}no" >&6
5567 < fi
12937 >        :
12938  
12939 < echo "$as_me:5569: checking for POSIX or BSD ps syntax" >&5
12940 < echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
12941 < if test "${ac_cv_prog_ps_syntax+set}" = set; then
12942 <  echo $ECHO_N "(cached) $ECHO_C" >&6
12943 < else
12939 >        echo ""
12940 >        echo "**********************************************************"
12941 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
12942 >        echo "* your compiler.                                         *"
12943 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
12944 >        echo "**********************************************************"
12945 >        echo ""
12946 >        CXXFLAGS=""
12947  
12948 <        if $PS ax -o rss > /dev/null 2>&1; then
5576 <                ac_cv_prog_ps_ax=yes
5577 <        else
5578 <                ac_cv_prog_ps_ax=no
5579 <        fi
5580 <        if $PS -ef -o rss > /dev/null 2>&1; then
5581 <                ac_cv_prog_ps_ef=yes
5582 <        else
5583 <                ac_cv_prog_ps_ef=no
5584 <        fi
5585 <        if test "$ac_cv_prog_ps_ax" = yes; then
5586 <                ac_cv_prog_ps_syntax=BSD
5587 <        else
5588 <                if test "$ac_cv_prog_ps_ef" = yes; then
5589 <                        ac_cv_prog_ps_syntax=POSIX
5590 <                else
5591 <                        { { echo "$as_me:5591: error: Could not determine ps syntax" >&5
5592 < echo "$as_me: error: Could not determine ps syntax" >&2;}
5593 <   { (exit 1); exit 1; }; }
5594 <                fi
5595 <        fi
12948 > fi
12949  
12950 +
12951   fi
5598 echo "$as_me:5598: result: $ac_cv_prog_ps_syntax" >&5
5599 echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
12952  
12953 < cat >>confdefs.h <<EOF
12954 < #define PSCOMMAND $PS
5603 < EOF
12953 >     ;;
12954 > esac
12955  
5605 if test "$ac_cv_prog_ps_syntax" = BSD; then
5606  cat >>confdefs.h <<\EOF
5607 #define PSTYPE_IS_BSD 1
5608 EOF
12956  
12957 < else
12958 <   if test "$ac_cv_prog_ps_syntax" = POSIX; then
12959 <       cat >>confdefs.h <<\EOF
5613 < #define PSTYPE_IS_POSIX 1
5614 < EOF
12957 > cat >>confdefs.h <<\_ACEOF
12958 > #define OBAPI
12959 > _ACEOF
12960  
5616   else
5617       { { echo "$as_me:5617: error: Unknown ps syntax type!" >&5
5618 echo "$as_me: error: Unknown ps syntax type!" >&2;}
5619   { (exit 1); exit 1; }; }
5620   fi
5621 fi
12961  
12962 +
12963 +
12964   # Check whether --with-mpi or --without-mpi was given.
12965   if test "${with_mpi+set}" = set; then
12966    withval="$with_mpi"
# Line 5638 | Line 12979 | if test "$USE_MPI" = "yes"; then
12979   fi
12980   if test "$USE_MPI" = "yes"; then
12981  
12982 +
12983   # Set variables...
12984   MPI_LIB_DIR="$MPI/lib"
12985   MPI_INC_DIR="$MPI/include"
12986  
12987 < echo "$as_me:5645: checking for mpi.h" >&5
12987 >
12988 >
12989 > ac_ext=c
12990 > ac_cpp='$CPP $CPPFLAGS'
12991 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994 >
12995 > echo "$as_me:$LINENO: checking for mpi.h" >&5
12996   echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
12997   have_mpi_h=0
12998 < echo '#include <mpi.h>' > conftest.cc
12999 < if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
13000 <        echo "$as_me:5650: result: yes" >&5
12998 > rm -f conftest*
12999 > echo '#include <mpi.h>' > conftest.c
13000 > if ${CC} -I${MPI_INC_DIR} -c conftest.c 2>&1 ; then
13001 >        echo "$as_me:$LINENO: result: yes" >&5
13002   echo "${ECHO_T}yes" >&6
13003          have_mpi_h=1
13004   else
13005 <        echo "$as_me:5654: result: no! Check MPI include paths" >&5
13005 >        if test -s conftest.out ; then
13006 >                cat conftest.out >> config.log
13007 >        fi
13008 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
13009   echo "${ECHO_T}no! Check MPI include paths" >&6
13010          USE_MPI="no"
13011   fi
13012   rm -f conftest*
13013   if test "$have_mpi_h" = 1; then
13014  
13015 < cat >>confdefs.h <<\EOF
13015 > cat >>confdefs.h <<\_ACEOF
13016   #define HAVE_MPI_H 1
13017 < EOF
13017 > _ACEOF
13018  
13019   fi
13020  
13021 < echo "$as_me:5667: checking whether mpif.h is usable" >&5
13021 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
13022   echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
13023 +
13024 +
13025 + ac_ext=${FC_SRCEXT-f}
13026 + ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
13027 + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
13028 + ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13029 +
13030 + ac_save_ext=$ac_ext
13031 + ac_ext=F90
13032 + ac_save_FCFLAGS=$FCFLAGS
13033   have_mpif_h=0
13034   rm -f conftest*
13035 < cat >conftest.f90 <<EOF
13035 > cat >conftest.$ac_ext <<EOF
13036   program main
13037     include 'mpif.h'
13038   end
13039   EOF
13040 < if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
13041 <        echo "$as_me:5677: result: yes" >&5
13040 > if $FC -I$MPI_INC_DIR -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext > conftest.out 2>&1 ; then
13041 >        echo "$as_me:$LINENO: result: yes" >&5
13042   echo "${ECHO_T}yes" >&6
13043          MPI_F90_INC="$MPI_INC_DIR"
13044          have_mpif_h=1
# Line 5682 | Line 13046 | else
13046          if test -s conftest.out ; then
13047                  cat conftest.out >> config.log
13048          fi
13049 <        echo "$as_me:5685: result: no! Check MPI include paths" >&5
13049 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
13050   echo "${ECHO_T}no! Check MPI include paths" >&6
13051          USE_MPI="no"
13052   fi
# Line 5690 | Line 13054 | if test "$have_mpif_h" = 1; then
13054  
13055   if test "$have_mpif_h" = 1; then
13056  
13057 < cat >>confdefs.h <<\EOF
13057 > cat >>confdefs.h <<\_ACEOF
13058   #define HAVE_MPIF_H 1
13059 < EOF
13059 > _ACEOF
13060  
13061   fi
13062 + FCFLAGS=$ac_save_FCFLAGS
13063 + ac_ext=$ac_save_ext
13064 + ac_ext=c
13065 + ac_cpp='$CPP $CPPFLAGS'
13066 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
13069  
13070 +
13071   ac_ext=c
13072   ac_cpp='$CPP $CPPFLAGS'
13073   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5703 | Line 13075 | ac_save_LDFLAGS=$LDFLAGS
13075   ac_compiler_gnu=$ac_cv_c_compiler_gnu
13076  
13077   ac_save_LDFLAGS=$LDFLAGS
13078 < LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
13078 > LDFLAGS="-L${MPI_LIB_DIR} ${LDFLAGS} "
13079  
13080   if test x = x"$MPI_LIB"; then
13081 <        echo "$as_me:5709: checking for MPI_Init in -lmpich" >&5
13081 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
13082   echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13083   if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13084    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5714 | Line 13086 | cat >conftest.$ac_ext <<_ACEOF
13086    ac_check_lib_save_LIBS=$LIBS
13087   LIBS="-lmpich  $LIBS"
13088   cat >conftest.$ac_ext <<_ACEOF
13089 < #line 5717 "configure"
13090 < #include "confdefs.h"
13089 > /* confdefs.h.  */
13090 > _ACEOF
13091 > cat confdefs.h >>conftest.$ac_ext
13092 > cat >>conftest.$ac_ext <<_ACEOF
13093 > /* end confdefs.h.  */
13094  
13095   /* Override any gcc2 internal prototype to avoid an error.  */
13096   #ifdef __cplusplus
# Line 5724 | Line 13099 | char MPI_Init ();
13099   /* We use char because int might match the return type of a gcc2
13100     builtin and then its argument prototype would still apply.  */
13101   char MPI_Init ();
13102 + #ifdef FC_DUMMY_MAIN
13103 + #ifndef FC_DUMMY_MAIN_EQ_F77
13104 + #  ifdef __cplusplus
13105 +     extern "C"
13106 + #  endif
13107 +   int FC_DUMMY_MAIN() { return 1; }
13108 + #endif
13109 + #endif
13110   int
13111   main ()
13112   {
# Line 5733 | Line 13116 | rm -f conftest.$ac_objext conftest$ac_exeext
13116   }
13117   _ACEOF
13118   rm -f conftest.$ac_objext conftest$ac_exeext
13119 < if { (eval echo "$as_me:5736: \"$ac_link\"") >&5
13120 <  (eval $ac_link) 2>&5
13119 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 >  (eval $ac_link) 2>conftest.er1
13121    ac_status=$?
13122 <  echo "$as_me:5739: \$? = $ac_status" >&5
13122 >  grep -v '^ *+' conftest.er1 >conftest.err
13123 >  rm -f conftest.er1
13124 >  cat conftest.err >&5
13125 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126    (exit $ac_status); } &&
13127 <         { ac_try='test -s conftest$ac_exeext'
13128 <  { (eval echo "$as_me:5742: \"$ac_try\"") >&5
13127 >         { ac_try='test -z "$ac_c_werror_flag"
13128 >                         || test ! -s conftest.err'
13129 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130    (eval $ac_try) 2>&5
13131    ac_status=$?
13132 <  echo "$as_me:5745: \$? = $ac_status" >&5
13132 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 >  (exit $ac_status); }; } &&
13134 >         { ac_try='test -s conftest$ac_exeext'
13135 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 >  (eval $ac_try) 2>&5
13137 >  ac_status=$?
13138 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139    (exit $ac_status); }; }; then
13140    ac_cv_lib_mpich_MPI_Init=yes
13141   else
13142    echo "$as_me: failed program was:" >&5
13143 < cat conftest.$ac_ext >&5
13143 > sed 's/^/| /' conftest.$ac_ext >&5
13144 >
13145   ac_cv_lib_mpich_MPI_Init=no
13146   fi
13147 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13147 > rm -f conftest.err conftest.$ac_objext \
13148 >      conftest$ac_exeext conftest.$ac_ext
13149   LIBS=$ac_check_lib_save_LIBS
13150   fi
13151 < echo "$as_me:5756: result: $ac_cv_lib_mpich_MPI_Init" >&5
13151 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
13152   echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13153   if test $ac_cv_lib_mpich_MPI_Init = yes; then
13154    MPI_LIB="-lmpich"
13155   fi
13156  
13157   fi
13158 + $as_unset ac_cv_lib_mpich_MPI_Init
13159   if test x = x"$MPI_LIB"; then
13160 <        echo "$as_me:5764: checking for MPI_Init in -lmpi" >&5
13161 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13162 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13160 >        echo "$as_me:$LINENO: checking for MPI_Init in -lpmpich" >&5
13161 > echo $ECHO_N "checking for MPI_Init in -lpmpich... $ECHO_C" >&6
13162 > if test "${ac_cv_lib_pmpich_MPI_Init+set}" = set; then
13163    echo $ECHO_N "(cached) $ECHO_C" >&6
13164   else
13165    ac_check_lib_save_LIBS=$LIBS
13166 < LIBS="-lmpi  $LIBS"
13166 > LIBS="-lpmpich -lmpich -lpmpich -lmpich $LIBS"
13167   cat >conftest.$ac_ext <<_ACEOF
13168 < #line 5772 "configure"
13169 < #include "confdefs.h"
13168 > /* confdefs.h.  */
13169 > _ACEOF
13170 > cat confdefs.h >>conftest.$ac_ext
13171 > cat >>conftest.$ac_ext <<_ACEOF
13172 > /* end confdefs.h.  */
13173  
13174   /* Override any gcc2 internal prototype to avoid an error.  */
13175   #ifdef __cplusplus
# Line 5779 | Line 13178 | char MPI_Init ();
13178   /* We use char because int might match the return type of a gcc2
13179     builtin and then its argument prototype would still apply.  */
13180   char MPI_Init ();
13181 + #ifdef FC_DUMMY_MAIN
13182 + #ifndef FC_DUMMY_MAIN_EQ_F77
13183 + #  ifdef __cplusplus
13184 +     extern "C"
13185 + #  endif
13186 +   int FC_DUMMY_MAIN() { return 1; }
13187 + #endif
13188 + #endif
13189   int
13190   main ()
13191   {
# Line 5788 | Line 13195 | rm -f conftest.$ac_objext conftest$ac_exeext
13195   }
13196   _ACEOF
13197   rm -f conftest.$ac_objext conftest$ac_exeext
13198 < if { (eval echo "$as_me:5791: \"$ac_link\"") >&5
13199 <  (eval $ac_link) 2>&5
13198 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 >  (eval $ac_link) 2>conftest.er1
13200    ac_status=$?
13201 <  echo "$as_me:5794: \$? = $ac_status" >&5
13201 >  grep -v '^ *+' conftest.er1 >conftest.err
13202 >  rm -f conftest.er1
13203 >  cat conftest.err >&5
13204 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205    (exit $ac_status); } &&
13206 <         { ac_try='test -s conftest$ac_exeext'
13207 <  { (eval echo "$as_me:5797: \"$ac_try\"") >&5
13206 >         { ac_try='test -z "$ac_c_werror_flag"
13207 >                         || test ! -s conftest.err'
13208 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 >  (eval $ac_try) 2>&5
13210 >  ac_status=$?
13211 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 >  (exit $ac_status); }; } &&
13213 >         { ac_try='test -s conftest$ac_exeext'
13214 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215    (eval $ac_try) 2>&5
13216    ac_status=$?
13217 <  echo "$as_me:5800: \$? = $ac_status" >&5
13217 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218    (exit $ac_status); }; }; then
13219 <  ac_cv_lib_mpi_MPI_Init=yes
13219 >  ac_cv_lib_pmpich_MPI_Init=yes
13220   else
13221    echo "$as_me: failed program was:" >&5
13222 < cat conftest.$ac_ext >&5
13223 < ac_cv_lib_mpi_MPI_Init=no
13222 > sed 's/^/| /' conftest.$ac_ext >&5
13223 >
13224 > ac_cv_lib_pmpich_MPI_Init=no
13225   fi
13226 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13226 > rm -f conftest.err conftest.$ac_objext \
13227 >      conftest$ac_exeext conftest.$ac_ext
13228   LIBS=$ac_check_lib_save_LIBS
13229   fi
13230 < echo "$as_me:5811: result: $ac_cv_lib_mpi_MPI_Init" >&5
13231 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13232 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
13233 <  MPI_LIB="-lmpi"
13230 > echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_MPI_Init" >&5
13231 > echo "${ECHO_T}$ac_cv_lib_pmpich_MPI_Init" >&6
13232 > if test $ac_cv_lib_pmpich_MPI_Init = yes; then
13233 >  MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"
13234   fi
13235  
13236   fi
5818 $as_unset ac_cv_lib_mpi_MPI_Init
13237   if test x = x"$MPI_LIB"; then
13238 <        echo "$as_me:5820: checking for MPI_Init in -lmpi" >&5
13238 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13239   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13240   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13241    echo $ECHO_N "(cached) $ECHO_C" >&6
13242   else
13243    ac_check_lib_save_LIBS=$LIBS
13244 < LIBS="-lmpi "-llam" $LIBS"
13244 > LIBS="-lmpi  $LIBS"
13245   cat >conftest.$ac_ext <<_ACEOF
13246 < #line 5828 "configure"
13247 < #include "confdefs.h"
13246 > /* confdefs.h.  */
13247 > _ACEOF
13248 > cat confdefs.h >>conftest.$ac_ext
13249 > cat >>conftest.$ac_ext <<_ACEOF
13250 > /* end confdefs.h.  */
13251  
13252   /* Override any gcc2 internal prototype to avoid an error.  */
13253   #ifdef __cplusplus
# Line 5835 | Line 13256 | char MPI_Init ();
13256   /* We use char because int might match the return type of a gcc2
13257     builtin and then its argument prototype would still apply.  */
13258   char MPI_Init ();
13259 + #ifdef FC_DUMMY_MAIN
13260 + #ifndef FC_DUMMY_MAIN_EQ_F77
13261 + #  ifdef __cplusplus
13262 +     extern "C"
13263 + #  endif
13264 +   int FC_DUMMY_MAIN() { return 1; }
13265 + #endif
13266 + #endif
13267   int
13268   main ()
13269   {
# Line 5844 | Line 13273 | rm -f conftest.$ac_objext conftest$ac_exeext
13273   }
13274   _ACEOF
13275   rm -f conftest.$ac_objext conftest$ac_exeext
13276 < if { (eval echo "$as_me:5847: \"$ac_link\"") >&5
13277 <  (eval $ac_link) 2>&5
13276 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13277 >  (eval $ac_link) 2>conftest.er1
13278    ac_status=$?
13279 <  echo "$as_me:5850: \$? = $ac_status" >&5
13279 >  grep -v '^ *+' conftest.er1 >conftest.err
13280 >  rm -f conftest.er1
13281 >  cat conftest.err >&5
13282 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283    (exit $ac_status); } &&
13284 <         { ac_try='test -s conftest$ac_exeext'
13285 <  { (eval echo "$as_me:5853: \"$ac_try\"") >&5
13284 >         { ac_try='test -z "$ac_c_werror_flag"
13285 >                         || test ! -s conftest.err'
13286 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287    (eval $ac_try) 2>&5
13288    ac_status=$?
13289 <  echo "$as_me:5856: \$? = $ac_status" >&5
13289 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 >  (exit $ac_status); }; } &&
13291 >         { ac_try='test -s conftest$ac_exeext'
13292 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 >  (eval $ac_try) 2>&5
13294 >  ac_status=$?
13295 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296    (exit $ac_status); }; }; then
13297    ac_cv_lib_mpi_MPI_Init=yes
13298   else
13299    echo "$as_me: failed program was:" >&5
13300 < cat conftest.$ac_ext >&5
13300 > sed 's/^/| /' conftest.$ac_ext >&5
13301 >
13302   ac_cv_lib_mpi_MPI_Init=no
13303   fi
13304 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13304 > rm -f conftest.err conftest.$ac_objext \
13305 >      conftest$ac_exeext conftest.$ac_ext
13306   LIBS=$ac_check_lib_save_LIBS
13307   fi
13308 < echo "$as_me:5867: result: $ac_cv_lib_mpi_MPI_Init" >&5
13308 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13309   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13310   if test $ac_cv_lib_mpi_MPI_Init = yes; then
13311 <  MPI_LIB="-lmpi -llam"
13311 >  MPI_LIB="-lmpi"
13312   fi
13313  
13314   fi
13315 < $as_unset ac_cv_lib_mpich_MPI_Init
13315 > $as_unset ac_cv_lib_mpi_MPI_Init
13316   if test x = x"$MPI_LIB"; then
13317 <        echo "$as_me:5876: checking for MPI_Init in -lmpich" >&5
13318 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
13319 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
13317 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13318 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13319 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13320    echo $ECHO_N "(cached) $ECHO_C" >&6
13321   else
13322    ac_check_lib_save_LIBS=$LIBS
13323 < LIBS="-lmpich "-lpmpich" $LIBS"
13323 > LIBS="-lmpi -llam $LIBS"
13324   cat >conftest.$ac_ext <<_ACEOF
13325 < #line 5884 "configure"
13326 < #include "confdefs.h"
13325 > /* confdefs.h.  */
13326 > _ACEOF
13327 > cat confdefs.h >>conftest.$ac_ext
13328 > cat >>conftest.$ac_ext <<_ACEOF
13329 > /* end confdefs.h.  */
13330  
13331   /* Override any gcc2 internal prototype to avoid an error.  */
13332   #ifdef __cplusplus
# Line 5891 | Line 13335 | char MPI_Init ();
13335   /* We use char because int might match the return type of a gcc2
13336     builtin and then its argument prototype would still apply.  */
13337   char MPI_Init ();
13338 + #ifdef FC_DUMMY_MAIN
13339 + #ifndef FC_DUMMY_MAIN_EQ_F77
13340 + #  ifdef __cplusplus
13341 +     extern "C"
13342 + #  endif
13343 +   int FC_DUMMY_MAIN() { return 1; }
13344 + #endif
13345 + #endif
13346   int
13347   main ()
13348   {
# Line 5900 | Line 13352 | rm -f conftest.$ac_objext conftest$ac_exeext
13352   }
13353   _ACEOF
13354   rm -f conftest.$ac_objext conftest$ac_exeext
13355 < if { (eval echo "$as_me:5903: \"$ac_link\"") >&5
13356 <  (eval $ac_link) 2>&5
13355 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13356 >  (eval $ac_link) 2>conftest.er1
13357    ac_status=$?
13358 <  echo "$as_me:5906: \$? = $ac_status" >&5
13358 >  grep -v '^ *+' conftest.er1 >conftest.err
13359 >  rm -f conftest.er1
13360 >  cat conftest.err >&5
13361 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362    (exit $ac_status); } &&
13363 <         { ac_try='test -s conftest$ac_exeext'
13364 <  { (eval echo "$as_me:5909: \"$ac_try\"") >&5
13363 >         { ac_try='test -z "$ac_c_werror_flag"
13364 >                         || test ! -s conftest.err'
13365 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366    (eval $ac_try) 2>&5
13367    ac_status=$?
13368 <  echo "$as_me:5912: \$? = $ac_status" >&5
13368 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 >  (exit $ac_status); }; } &&
13370 >         { ac_try='test -s conftest$ac_exeext'
13371 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 >  (eval $ac_try) 2>&5
13373 >  ac_status=$?
13374 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375    (exit $ac_status); }; }; then
13376 <  ac_cv_lib_mpich_MPI_Init=yes
13376 >  ac_cv_lib_mpi_MPI_Init=yes
13377   else
13378    echo "$as_me: failed program was:" >&5
13379 < cat conftest.$ac_ext >&5
13380 < ac_cv_lib_mpich_MPI_Init=no
13379 > sed 's/^/| /' conftest.$ac_ext >&5
13380 >
13381 > ac_cv_lib_mpi_MPI_Init=no
13382   fi
13383 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13383 > rm -f conftest.err conftest.$ac_objext \
13384 >      conftest$ac_exeext conftest.$ac_ext
13385   LIBS=$ac_check_lib_save_LIBS
13386   fi
13387 < echo "$as_me:5923: result: $ac_cv_lib_mpich_MPI_Init" >&5
13388 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
13389 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
13390 <  MPI_LIB="-lmpich -lpmpich"
13387 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13388 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13389 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
13390 >  MPI_LIB="-lmpi -llam"
13391   fi
13392  
13393   fi
5930
13394   $as_unset ac_cv_lib_mpi_MPI_Init
13395   if test x = x"$MPI_LIB"; then
13396 < echo "$as_me:5933: checking for MPI_Init in -lmpi" >&5
13396 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
13397   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
13398   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
13399    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5938 | Line 13401 | cat >conftest.$ac_ext <<_ACEOF
13401    ac_check_lib_save_LIBS=$LIBS
13402   LIBS="-lmpi -llam -lpthread $LIBS"
13403   cat >conftest.$ac_ext <<_ACEOF
13404 < #line 5941 "configure"
13405 < #include "confdefs.h"
13404 > /* confdefs.h.  */
13405 > _ACEOF
13406 > cat confdefs.h >>conftest.$ac_ext
13407 > cat >>conftest.$ac_ext <<_ACEOF
13408 > /* end confdefs.h.  */
13409  
13410   /* Override any gcc2 internal prototype to avoid an error.  */
13411   #ifdef __cplusplus
# Line 5948 | Line 13414 | char MPI_Init ();
13414   /* We use char because int might match the return type of a gcc2
13415     builtin and then its argument prototype would still apply.  */
13416   char MPI_Init ();
13417 + #ifdef FC_DUMMY_MAIN
13418 + #ifndef FC_DUMMY_MAIN_EQ_F77
13419 + #  ifdef __cplusplus
13420 +     extern "C"
13421 + #  endif
13422 +   int FC_DUMMY_MAIN() { return 1; }
13423 + #endif
13424 + #endif
13425   int
13426   main ()
13427   {
# Line 5957 | Line 13431 | rm -f conftest.$ac_objext conftest$ac_exeext
13431   }
13432   _ACEOF
13433   rm -f conftest.$ac_objext conftest$ac_exeext
13434 < if { (eval echo "$as_me:5960: \"$ac_link\"") >&5
13435 <  (eval $ac_link) 2>&5
13434 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 >  (eval $ac_link) 2>conftest.er1
13436    ac_status=$?
13437 <  echo "$as_me:5963: \$? = $ac_status" >&5
13437 >  grep -v '^ *+' conftest.er1 >conftest.err
13438 >  rm -f conftest.er1
13439 >  cat conftest.err >&5
13440 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441    (exit $ac_status); } &&
13442 <         { ac_try='test -s conftest$ac_exeext'
13443 <  { (eval echo "$as_me:5966: \"$ac_try\"") >&5
13442 >         { ac_try='test -z "$ac_c_werror_flag"
13443 >                         || test ! -s conftest.err'
13444 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445    (eval $ac_try) 2>&5
13446    ac_status=$?
13447 <  echo "$as_me:5969: \$? = $ac_status" >&5
13447 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 >  (exit $ac_status); }; } &&
13449 >         { ac_try='test -s conftest$ac_exeext'
13450 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 >  (eval $ac_try) 2>&5
13452 >  ac_status=$?
13453 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454    (exit $ac_status); }; }; then
13455    ac_cv_lib_mpi_MPI_Init=yes
13456   else
13457    echo "$as_me: failed program was:" >&5
13458 < cat conftest.$ac_ext >&5
13458 > sed 's/^/| /' conftest.$ac_ext >&5
13459 >
13460   ac_cv_lib_mpi_MPI_Init=no
13461   fi
13462 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13462 > rm -f conftest.err conftest.$ac_objext \
13463 >      conftest$ac_exeext conftest.$ac_ext
13464   LIBS=$ac_check_lib_save_LIBS
13465   fi
13466 < echo "$as_me:5980: result: $ac_cv_lib_mpi_MPI_Init" >&5
13466 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
13467   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
13468   if test $ac_cv_lib_mpi_MPI_Init = yes; then
13469    MPI_LIB="-lmpi -llam -lpthread"
13470   else
13471  
13472 <             { { echo "$as_me:5986: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
13472 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
13473   echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
13474     { (exit 1); exit 1; }; }
13475               USE_MPI="no"
# Line 5992 | Line 13478 | fi
13478  
13479   fi
13480  
13481 < echo "$as_me:5995: checking for MPI Fortran library" >&5
13481 >
13482 >
13483 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
13484   echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
13485   MPI_F90_LIB=""
13486   if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
# Line 6002 | Line 13490 | fi
13490   else
13491                          MPI_F90_LIB="  "
13492   fi
13493 < echo "$as_me:6005: result: found $MPI_F90_LIB" >&5
13493 > echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
13494   echo "${ECHO_T}found $MPI_F90_LIB" >&6
13495  
6008 fi
13496  
6010 # Check whether --with-sprng or --without-sprng was given.
6011 if test "${with_sprng+set}" = set; then
6012  withval="$with_sprng"
6013  with_sprng=$withval
6014 else
6015  with_sprng="/usr/local"
6016 fi;
6017
6018 case "x$with_sprng" in
6019        xyes | "x")  USE_SPRNG=yes;;
6020        xno) USE_SPRNG=no ;;
6021        *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
6022 esac
6023 if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
6024        SPRNG="/usr/local"
13497   fi
6026 if test "$USE_SPRNG" = "yes"; then
13498  
6028 # Set variables...
6029 SPRNG_LIB_DIR="$SPRNG/lib"
6030 SPRNG_INC_DIR="$SPRNG/include"
13499  
6032 echo "$as_me:6032: checking for sprng.h" >&5
6033 echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6034 have_sprng_h=0
6035 echo '#include <sprng.h>' > conftest.cc
6036 if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then
6037        echo "$as_me:6037: result: yes" >&5
6038 echo "${ECHO_T}yes" >&6
6039        have_sprng_h=1
6040 else
6041        echo "$as_me:6041: result: no! Check SPRNG include path!" >&5
6042 echo "${ECHO_T}no! Check SPRNG include path!" >&6
6043        USE_SPRNG="no"
6044 fi
6045 rm -f conftest*
6046 if test "$have_sprng_h" = 1; then
13500  
6048 cat >>confdefs.h <<\EOF
6049 #define HAVE_SPRNG_H 1
6050 EOF
13501  
6052 fi
6053
6054 ac_ext=c
6055 ac_cpp='$CPP $CPPFLAGS'
6056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059
6060 ac_save_LDFLAGS=$LDFLAGS
6061 LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} "
6062
6063 echo "$as_me:6063: checking for init_rng in -lsprng" >&5
6064 echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6065 if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6066  echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068  ac_check_lib_save_LIBS=$LIBS
6069 LIBS="-lsprng  $LIBS"
6070 cat >conftest.$ac_ext <<_ACEOF
6071 #line 6071 "configure"
6072 #include "confdefs.h"
6073
6074 /* Override any gcc2 internal prototype to avoid an error.  */
6075 #ifdef __cplusplus
6076 extern "C"
6077 #endif
6078 /* We use char because int might match the return type of a gcc2
6079   builtin and then its argument prototype would still apply.  */
6080 char init_rng ();
6081 int
6082 main ()
6083 {
6084 init_rng ();
6085  ;
6086  return 0;
6087 }
6088 _ACEOF
6089 rm -f conftest.$ac_objext conftest$ac_exeext
6090 if { (eval echo "$as_me:6090: \"$ac_link\"") >&5
6091  (eval $ac_link) 2>&5
6092  ac_status=$?
6093  echo "$as_me:6093: \$? = $ac_status" >&5
6094  (exit $ac_status); } &&
6095         { ac_try='test -s conftest$ac_exeext'
6096  { (eval echo "$as_me:6096: \"$ac_try\"") >&5
6097  (eval $ac_try) 2>&5
6098  ac_status=$?
6099  echo "$as_me:6099: \$? = $ac_status" >&5
6100  (exit $ac_status); }; }; then
6101  ac_cv_lib_sprng_init_rng=yes
6102 else
6103  echo "$as_me: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6105 ac_cv_lib_sprng_init_rng=no
6106 fi
6107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6108 LIBS=$ac_check_lib_save_LIBS
6109 fi
6110 echo "$as_me:6110: result: $ac_cv_lib_sprng_init_rng" >&5
6111 echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6112 if test $ac_cv_lib_sprng_init_rng = yes; then
6113  SPRNG_LIB="-lsprng"
6114 else
6115
6116             { { echo "$as_me:6116: error: Didn't find libsprng; check path for SPRNG package first..." >&5
6117 echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;}
6118   { (exit 1); exit 1; }; }
6119             USE_SPRNG="no"
6120
6121 fi
6122
6123 if test "$USE_SPRNG" = "no"; then
6124  { { echo "$as_me:6124: error: No working SPRNG library found" >&5
6125 echo "$as_me: error: No working SPRNG library found" >&2;}
6126   { (exit 1); exit 1; }; }
6127 fi
6128
6129 fi
6130
6131 echo "$as_me:6131: checking if MKL is wanted" >&5
6132 echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6133
6134 # Check whether --with-mkl or --without-mkl was given.
6135 if test "${with_mkl+set}" = set; then
6136  withval="$with_mkl"
6137     echo "$as_me:6137: result: yes" >&5
6138 echo "${ECHO_T}yes" >&6
6139    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
6140        mkldir="$dir"
6141        if test -f "$dir/include/mkl.h"; then
6142            found_mkl="yes";
6143            break;
6144        fi
6145    done
6146    if test x_$found_mkl != x_yes; then
6147        { { echo "$as_me:6147: error: Cannot find MKL includes" >&5
6148 echo "$as_me: error: Cannot find MKL includes" >&2;}
6149   { (exit 1); exit 1; }; }
6150    else
6151        printf "MKL includes found in $mkldir/include\n";
6152    fi
6153
6154  ac_ext=c
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159
6160  ac_save_CPPFLAGS=$CPPFLAGS
6161  CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6162  ac_save_LDFLAGS=$LDFLAGS
6163  LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6164  echo "$as_me:6164: checking for mkl.h" >&5
6165 echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6166 if test "${ac_cv_header_mkl_h+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169  cat >conftest.$ac_ext <<_ACEOF
6170 #line 6170 "configure"
6171 #include "confdefs.h"
6172 #include <mkl.h>
6173 _ACEOF
6174 if { (eval echo "$as_me:6174: \"$ac_cpp conftest.$ac_ext\"") >&5
6175  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176  ac_status=$?
6177  egrep -v '^ *\+' conftest.er1 >conftest.err
6178  rm -f conftest.er1
6179  cat conftest.err >&5
6180  echo "$as_me:6180: \$? = $ac_status" >&5
6181  (exit $ac_status); } >/dev/null; then
6182  if test -s conftest.err; then
6183    ac_cpp_err=$ac_c_preproc_warn_flag
6184  else
6185    ac_cpp_err=
6186  fi
6187 else
6188  ac_cpp_err=yes
6189 fi
6190 if test -z "$ac_cpp_err"; then
6191  ac_cv_header_mkl_h=yes
6192 else
6193  echo "$as_me: failed program was:" >&5
6194  cat conftest.$ac_ext >&5
6195  ac_cv_header_mkl_h=no
6196 fi
6197 rm -f conftest.err conftest.$ac_ext
6198 fi
6199 echo "$as_me:6199: result: $ac_cv_header_mkl_h" >&5
6200 echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6201 if test $ac_cv_header_mkl_h = yes; then
6202
6203    echo "$as_me:6203: checking for vslNewStream in -lmkl" >&5
6204 echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6205 if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6206  echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208  ac_check_lib_save_LIBS=$LIBS
6209 LIBS="-lmkl  $LIBS"
6210 cat >conftest.$ac_ext <<_ACEOF
6211 #line 6211 "configure"
6212 #include "confdefs.h"
6213
6214 /* Override any gcc2 internal prototype to avoid an error.  */
6215 #ifdef __cplusplus
6216 extern "C"
6217 #endif
6218 /* We use char because int might match the return type of a gcc2
6219   builtin and then its argument prototype would still apply.  */
6220 char vslNewStream ();
6221 int
6222 main ()
6223 {
6224 vslNewStream ();
6225  ;
6226  return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:6230: \"$ac_link\"") >&5
6231  (eval $ac_link) 2>&5
6232  ac_status=$?
6233  echo "$as_me:6233: \$? = $ac_status" >&5
6234  (exit $ac_status); } &&
6235         { ac_try='test -s conftest$ac_exeext'
6236  { (eval echo "$as_me:6236: \"$ac_try\"") >&5
6237  (eval $ac_try) 2>&5
6238  ac_status=$?
6239  echo "$as_me:6239: \$? = $ac_status" >&5
6240  (exit $ac_status); }; }; then
6241  ac_cv_lib_mkl_vslNewStream=yes
6242 else
6243  echo "$as_me: failed program was:" >&5
6244 cat conftest.$ac_ext >&5
6245 ac_cv_lib_mkl_vslNewStream=no
6246 fi
6247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6248 LIBS=$ac_check_lib_save_LIBS
6249 fi
6250 echo "$as_me:6250: result: $ac_cv_lib_mkl_vslNewStream" >&5
6251 echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6252 if test $ac_cv_lib_mkl_vslNewStream = yes; then
6253  MKL_LIBDIR="${mkldir}/lib/32",
6254                     MKL_LIB="-lmkl -lvml -lguide",
6255                     HAVE_MKL="yes"
6256 fi
6257
6258 else
6259  MKL_INC="-I${mkldir}/include"
6260 fi
6261
6262  CPPFLAGS=$ac_save_CPPFLAGS
6263  LDFLAGS=$ac_save_LDFLAGS
6264  ac_ext=c
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269
6270  if test x_$HAVE_MKL != x_yes; then
6271        { { echo "$as_me:6271: error: Can't build with MKL" >&5
6272 echo "$as_me: error: Can't build with MKL" >&2;}
6273   { (exit 1); exit 1; }; }
6274  fi
6275
6276 else
6277
6278    echo "$as_me:6278: result: no" >&5
6279 echo "${ECHO_T}no" >&6
6280
6281 fi;
6282
13502   # Check whether --enable-doxygen or --disable-doxygen was given.
13503   if test "${enable_doxygen+set}" = set; then
13504    enableval="$enable_doxygen"
# Line 6309 | Line 13528 | set dummy doxygen; ac_word=$2
13528   else
13529          # Extract the first word of "doxygen", so it can be a program name with args.
13530   set dummy doxygen; ac_word=$2
13531 < echo "$as_me:6312: checking for $ac_word" >&5
13531 > echo "$as_me:$LINENO: checking for $ac_word" >&5
13532   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13533   if test "${ac_cv_path_DOXYGEN+set}" = set; then
13534    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6319 | Line 13538 | else
13538    ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13539    ;;
13540    *)
13541 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
13542 < ac_dummy="$PATH"
13543 < for ac_dir in $ac_dummy; do
13544 <  IFS=$ac_save_IFS
13545 <  test -z "$ac_dir" && ac_dir=.
13546 <  if $as_executable_p "$ac_dir/$ac_word"; then
13547 <   ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
13548 <   echo "$as_me:6329: found $ac_dir/$ac_word" >&5
13549 <   break
13550 < fi
13541 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 > for as_dir in $PATH
13543 > do
13544 >  IFS=$as_save_IFS
13545 >  test -z "$as_dir" && as_dir=.
13546 >  for ac_exec_ext in '' $ac_executable_extensions; do
13547 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13548 >    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13549 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13550 >    break 2
13551 >  fi
13552   done
13553 + done
13554  
13555    ;;
13556   esac
# Line 6337 | Line 13558 | if test -n "$DOXYGEN"; then
13558   DOXYGEN=$ac_cv_path_DOXYGEN
13559  
13560   if test -n "$DOXYGEN"; then
13561 <  echo "$as_me:6340: result: $DOXYGEN" >&5
13561 >  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13562   echo "${ECHO_T}$DOXYGEN" >&6
13563   else
13564 <  echo "$as_me:6343: result: no" >&5
13564 >  echo "$as_me:$LINENO: result: no" >&5
13565   echo "${ECHO_T}no" >&6
13566   fi
13567  
13568          if test "x$DOXYGEN" = x; then
13569                  if test "x$enable_doxygen" = xyes; then
13570 <                        { { echo "$as_me:6349: error: could not find doxygen" >&5
13570 >                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
13571   echo "$as_me: error: could not find doxygen" >&2;}
13572     { (exit 1); exit 1; }; }
13573                  fi
# Line 6355 | Line 13576 | set dummy dot; ac_word=$2
13576                  enable_doc=yes
13577                  # Extract the first word of "dot", so it can be a program name with args.
13578   set dummy dot; ac_word=$2
13579 < echo "$as_me:6358: checking for $ac_word" >&5
13579 > echo "$as_me:$LINENO: checking for $ac_word" >&5
13580   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13581   if test "${ac_cv_path_DOT+set}" = set; then
13582    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 6365 | Line 13586 | else
13586    ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13587    ;;
13588    *)
13589 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
13590 < ac_dummy="$PATH"
13591 < for ac_dir in $ac_dummy; do
13592 <  IFS=$ac_save_IFS
13593 <  test -z "$ac_dir" && ac_dir=.
13594 <  if $as_executable_p "$ac_dir/$ac_word"; then
13595 <   ac_cv_path_DOT="$ac_dir/$ac_word"
13596 <   echo "$as_me:6375: found $ac_dir/$ac_word" >&5
13597 <   break
13598 < fi
13589 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590 > for as_dir in $PATH
13591 > do
13592 >  IFS=$as_save_IFS
13593 >  test -z "$as_dir" && as_dir=.
13594 >  for ac_exec_ext in '' $ac_executable_extensions; do
13595 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13596 >    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13597 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13598 >    break 2
13599 >  fi
13600   done
13601 + done
13602  
13603    ;;
13604   esac
# Line 6383 | Line 13606 | if test -n "$DOT"; then
13606   DOT=$ac_cv_path_DOT
13607  
13608   if test -n "$DOT"; then
13609 <  echo "$as_me:6386: result: $DOT" >&5
13609 >  echo "$as_me:$LINENO: result: $DOT" >&5
13610   echo "${ECHO_T}$DOT" >&6
13611   else
13612 <  echo "$as_me:6389: result: no" >&5
13612 >  echo "$as_me:$LINENO: result: no" >&5
13613   echo "${ECHO_T}no" >&6
13614   fi
13615  
# Line 6399 | Line 13622 | fi
13622    DOC=0
13623   fi
13624  
13625 +
13626   if test x$DOT = x; then
13627          if test "x$enable_dot" = xyes; then
13628 <                { { echo "$as_me:6404: error: could not find dot" >&5
13628 >                { { echo "$as_me:$LINENO: error: could not find dot" >&5
13629   echo "$as_me: error: could not find dot" >&2;}
13630     { (exit 1); exit 1; }; }
13631          fi
# Line 6410 | Line 13634 | fi
13634          enable_dot=yes
13635   fi
13636  
6413 OBJEXT=".$OBJEXT"
13637  
6415 OOPSE=oopse
13638  
6417 if test "x${prefix}" = "xNONE"
6418 then
6419  OOPSE_HOME=${ac_default_prefix}/oopse
6420 else
6421  OOPSE_HOME=${prefix}/oopse
6422 fi
6423 # Check whether --enable-oopse-home or --disable-oopse-home was given.
6424 if test "${enable_oopse_home+set}" = set; then
6425  enableval="$enable_oopse_home"
6426  OOPSE_HOME="${enableval}"
6427 fi;
13639  
6429 case "x$INSTALL" in
6430   x/*) ;;
6431   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
6432 esac
13640  
6434 MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
13641  
6436 CFLAGS=${CFLAGS-""}
6437 CXXFLAGS=${CXXFLAGS-""}
6438 CPPFLAGS=${CPPFLAGS-""}
6439 FFLAGS=${FFLAGS-""}
6440 F90FLAGS=${F90FLAGS-""}
6441 LDFLAGS=${LDFLAGS-""}
6442 DEBUG=${DEBUG-"-g"}
13642  
6444 case $debug in
6445  1)
6446     FFLAGS="$DEBUG $FFLAGS"
6447     F90FLAGS="$DEBUG $F90FLAGS"
6448     ;;
6449  *)
6450     ;;
6451 esac
13643  
6453 ac_config_headers="$ac_config_headers src/config.h"
13644  
6455 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile"
13645  
13646 +
13647 +
13648 +
13649 +
13650 +
13651 +
13652 +
13653 +
13654 +
13655 +                                                  ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/math/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
13656 +
13657 +
13658   cat >confcache <<\_ACEOF
13659   # This file is a shell script that caches the results of configure
13660   # tests run on this system so they can be shared between configure
# Line 6464 | Line 13665 | cat >confcache <<\_ACEOF
13665   # config.status only pays attention to the cache file if you give it
13666   # the --recheck option to rerun configure.
13667   #
13668 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
13668 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
13669   # loading this file, other *unset* `ac_cv_foo' will be assigned the
13670   # following values.
13671  
# Line 6482 | Line 13683 | _ACEOF
13683        # `set' does not quote correctly, so add quotes (double-quote
13684        # substitution turns \\\\ into \\, and sed turns \\ into \).
13685        sed -n \
13686 <        "s/'/'\\\\''/g;
13687 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13686 >        "s/'/'\\\\''/g;
13687 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13688        ;;
13689      *)
13690        # `set' quotes correctly as required by POSIX, so do not add quotes.
13691        sed -n \
13692 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13692 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13693        ;;
13694      esac;
13695   } |
# Line 6499 | Line 13700 | _ACEOF
13700       t end
13701       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13702       : end' >>confcache
13703 < if cmp -s $cache_file confcache; then :; else
13703 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
13704    if test -w $cache_file; then
13705      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13706      cat confcache >$cache_file
# Line 6512 | Line 13713 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}
13713   test "x$prefix" = xNONE && prefix=$ac_default_prefix
13714   # Let make expand exec_prefix.
13715   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13716 +
13717 + # VPATH may cause trouble with some makes, so we remove $(srcdir),
13718 + # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13719 + # trailing colons and then remove the whole line if VPATH becomes empty
13720 + # (actually we leave an empty line to preserve line numbers).
13721 + if test "x$srcdir" = x.; then
13722 +  ac_vpsub='/^[  ]*VPATH[        ]*=/{
13723 + s/:*\$(srcdir):*/:/;
13724 + s/:*\${srcdir}:*/:/;
13725 + s/:*@srcdir@:*/:/;
13726 + s/^\([^=]*=[     ]*\):*/\1/;
13727 + s/:*$//;
13728 + s/^[^=]*=[       ]*$//;
13729 + }'
13730 + fi
13731 +
13732 + DEFS=-DHAVE_CONFIG_H
13733 +
13734 + ac_libobjs=
13735 + ac_ltlibobjs=
13736 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13737 +  # 1. Remove the extension, and $U if already installed.
13738 +  ac_i=`echo "$ac_i" |
13739 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13740 +  # 2. Add them.
13741 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13742 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13743 + done
13744 + LIBOBJS=$ac_libobjs
13745 +
13746 + LTLIBOBJS=$ac_ltlibobjs
13747 +
13748 +
13749 +
13750 + : ${CONFIG_STATUS=./config.status}
13751 + ac_clean_files_save=$ac_clean_files
13752 + ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13753 + { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13754 + echo "$as_me: creating $CONFIG_STATUS" >&6;}
13755 + cat >$CONFIG_STATUS <<_ACEOF
13756 + #! $SHELL
13757 + # Generated by $as_me.
13758 + # Run this file to recreate the current configuration.
13759 + # Compiler output produced by configure, useful for debugging
13760 + # configure, is in config.log if it exists.
13761 +
13762 + debug=false
13763 + ac_cs_recheck=false
13764 + ac_cs_silent=false
13765 + SHELL=\${CONFIG_SHELL-$SHELL}
13766 + _ACEOF
13767 +
13768 + cat >>$CONFIG_STATUS <<\_ACEOF
13769 + ## --------------------- ##
13770 + ## M4sh Initialization.  ##
13771 + ## --------------------- ##
13772 +
13773 + # Be Bourne compatible
13774 + if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13775 +  emulate sh
13776 +  NULLCMD=:
13777 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13778 +  # is contrary to our usage.  Disable this feature.
13779 +  alias -g '${1+"$@"}'='"$@"'
13780 + elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13781 +  set -o posix
13782 + fi
13783 + DUALCASE=1; export DUALCASE # for MKS sh
13784 +
13785 + # Support unset when possible.
13786 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13787 +  as_unset=unset
13788 + else
13789 +  as_unset=false
13790 + fi
13791 +
13792 +
13793 + # Work around bugs in pre-3.0 UWIN ksh.
13794 + $as_unset ENV MAIL MAILPATH
13795 + PS1='$ '
13796 + PS2='> '
13797 + PS4='+ '
13798 +
13799 + # NLS nuisances.
13800 + for as_var in \
13801 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13802 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13803 +  LC_TELEPHONE LC_TIME
13804 + do
13805 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13806 +    eval $as_var=C; export $as_var
13807 +  else
13808 +    $as_unset $as_var
13809 +  fi
13810 + done
13811 +
13812 + # Required to use basename.
13813 + if expr a : '\(a\)' >/dev/null 2>&1; then
13814 +  as_expr=expr
13815 + else
13816 +  as_expr=false
13817 + fi
13818 +
13819 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13820 +  as_basename=basename
13821 + else
13822 +  as_basename=false
13823 + fi
13824 +
13825 +
13826 + # Name of the executable.
13827 + as_me=`$as_basename "$0" ||
13828 + $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13829 +         X"$0" : 'X\(//\)$' \| \
13830 +         X"$0" : 'X\(/\)$' \| \
13831 +         .     : '\(.\)' 2>/dev/null ||
13832 + echo X/"$0" |
13833 +    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13834 +          /^X\/\(\/\/\)$/{ s//\1/; q; }
13835 +          /^X\/\(\/\).*/{ s//\1/; q; }
13836 +          s/.*/./; q'`
13837  
6516 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6517 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6518 # trailing colons and then remove the whole line if VPATH becomes empty
6519 # (actually we leave an empty line to preserve line numbers).
6520 if test "x$srcdir" = x.; then
6521  ac_vpsub='/^[         ]*VPATH[        ]*=/{
6522 s/:*\$(srcdir):*/:/;
6523 s/:*\${srcdir}:*/:/;
6524 s/:*@srcdir@:*/:/;
6525 s/^\([^=]*=[    ]*\):*/\1/;
6526 s/:*$//;
6527 s/^[^=]*=[      ]*$//;
6528 }'
6529 fi
13838  
13839 < DEFS=-DHAVE_CONFIG_H
13839 > # PATH needs CR, and LINENO needs CR and PATH.
13840 > # Avoid depending upon Character Ranges.
13841 > as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13842 > as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13843 > as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13844 > as_cr_digits='0123456789'
13845 > as_cr_alnum=$as_cr_Letters$as_cr_digits
13846  
13847 < : ${CONFIG_STATUS=./config.status}
13848 < ac_clean_files_save=$ac_clean_files
13849 < ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13850 < { echo "$as_me:6536: creating $CONFIG_STATUS" >&5
13851 < echo "$as_me: creating $CONFIG_STATUS" >&6;}
13852 < cat >$CONFIG_STATUS <<_ACEOF
13853 < #! $SHELL
13854 < # Generated automatically by configure.
13855 < # Run this file to recreate the current configuration.
13856 < # Compiler output produced by configure, useful for debugging
13857 < # configure, is in config.log if it exists.
13847 > # The user is always right.
13848 > if test "${PATH_SEPARATOR+set}" != set; then
13849 >  echo "#! /bin/sh" >conf$$.sh
13850 >  echo  "exit 0"   >>conf$$.sh
13851 >  chmod +x conf$$.sh
13852 >  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13853 >    PATH_SEPARATOR=';'
13854 >  else
13855 >    PATH_SEPARATOR=:
13856 >  fi
13857 >  rm -f conf$$.sh
13858 > fi
13859  
6545 debug=false
6546 SHELL=\${CONFIG_SHELL-$SHELL}
6547 ac_cs_invocation="\$0 \$@"
13860  
13861 < _ACEOF
13861 >  as_lineno_1=$LINENO
13862 >  as_lineno_2=$LINENO
13863 >  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13864 >  test "x$as_lineno_1" != "x$as_lineno_2" &&
13865 >  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13866 >  # Find who we are.  Look in the path if we contain no path at all
13867 >  # relative or not.
13868 >  case $0 in
13869 >    *[\\/]* ) as_myself=$0 ;;
13870 >    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 > for as_dir in $PATH
13872 > do
13873 >  IFS=$as_save_IFS
13874 >  test -z "$as_dir" && as_dir=.
13875 >  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13876 > done
13877  
13878 < cat >>$CONFIG_STATUS <<\_ACEOF
13879 < # Be Bourne compatible
13880 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13881 <  emulate sh
13882 <  NULLCMD=:
13883 < elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13884 <  set -o posix
13885 < fi
13878 >       ;;
13879 >  esac
13880 >  # We did not find ourselves, most probably we were run as `sh COMMAND'
13881 >  # in which case we are not to be found in the path.
13882 >  if test "x$as_myself" = x; then
13883 >    as_myself=$0
13884 >  fi
13885 >  if test ! -f "$as_myself"; then
13886 >    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13887 > echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13888 >   { (exit 1); exit 1; }; }
13889 >  fi
13890 >  case $CONFIG_SHELL in
13891 >  '')
13892 >    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893 > for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13894 > do
13895 >  IFS=$as_save_IFS
13896 >  test -z "$as_dir" && as_dir=.
13897 >  for as_base in sh bash ksh sh5; do
13898 >         case $as_dir in
13899 >         /*)
13900 >           if ("$as_dir/$as_base" -c '
13901 >  as_lineno_1=$LINENO
13902 >  as_lineno_2=$LINENO
13903 >  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13904 >  test "x$as_lineno_1" != "x$as_lineno_2" &&
13905 >  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13906 >             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13907 >             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13908 >             CONFIG_SHELL=$as_dir/$as_base
13909 >             export CONFIG_SHELL
13910 >             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13911 >           fi;;
13912 >         esac
13913 >       done
13914 > done
13915 > ;;
13916 >  esac
13917  
13918 < # Name of the executable.
13919 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
13918 >  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13919 >  # uniformly replaced by the line number.  The first 'sed' inserts a
13920 >  # line-number line before each line; the second 'sed' does the real
13921 >  # work.  The second script uses 'N' to pair each line-number line
13922 >  # with the numbered line, and appends trailing '-' during
13923 >  # substitution so that $LINENO is not a special case at line end.
13924 >  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13925 >  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13926 >  sed '=' <$as_myself |
13927 >    sed '
13928 >      N
13929 >      s,$,-,
13930 >      : loop
13931 >      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13932 >      t loop
13933 >      s,-$,,
13934 >      s,^['$as_cr_digits']*\n,,
13935 >    ' >$as_me.lineno &&
13936 >  chmod +x $as_me.lineno ||
13937 >    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13938 > echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13939 >   { (exit 1); exit 1; }; }
13940  
13941 +  # Don't try to exec as it changes $[0], causing all sort of problems
13942 +  # (the dirname of $[0] is not the place where we might find the
13943 +  # original and so on.  Autoconf is especially sensible to this).
13944 +  . ./$as_me.lineno
13945 +  # Exit status is that of the last command.
13946 +  exit
13947 + }
13948 +
13949 +
13950 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13951 +  *c*,-n*) ECHO_N= ECHO_C='
13952 + ' ECHO_T='      ' ;;
13953 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13954 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13955 + esac
13956 +
13957   if expr a : '\(a\)' >/dev/null 2>&1; then
13958    as_expr=expr
13959   else
# Line 6584 | Line 13978 | rm -f conf$$ conf$$.exe conf$$.file
13978   fi
13979   rm -f conf$$ conf$$.exe conf$$.file
13980  
13981 < as_executable_p="test -f"
13982 <
6589 < # Support unset when possible.
6590 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6591 <  as_unset=unset
13981 > if mkdir -p . 2>/dev/null; then
13982 >  as_mkdir_p=:
13983   else
13984 <  as_unset=false
13984 >  test -d ./-p && rmdir ./-p
13985 >  as_mkdir_p=false
13986   fi
13987  
13988 < # NLS nuisances.
6597 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6598 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6599 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6600 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6601 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6602 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6603 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6604 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
13988 > as_executable_p="test -f"
13989  
13990 + # Sed expression to map a string onto a valid CPP name.
13991 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13992 +
13993 + # Sed expression to map a string onto a valid variable name.
13994 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13995 +
13996 +
13997   # IFS
13998   # We need space, tab and new line, in precisely that order.
13999   as_nl='
# Line 6610 | Line 14001 | IFS="  $as_nl"
14001   IFS="   $as_nl"
14002  
14003   # CDPATH.
14004 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
14004 > $as_unset CDPATH
14005  
14006   exec 6>&1
14007  
14008 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
14009 + # report actual input values of CONFIG_FILES etc. instead of their
14010 + # values after options handling.  Logging --version etc. is OK.
14011 + exec 5>>config.log
14012 + {
14013 +  echo
14014 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14015 + ## Running $as_me. ##
14016 + _ASBOX
14017 + } >&5
14018 + cat >&5 <<_CSEOF
14019 +
14020 + This file was extended by OOPSE $as_me 3.0, which was
14021 + generated by GNU Autoconf 2.59.  Invocation command line was
14022 +
14023 +  CONFIG_FILES    = $CONFIG_FILES
14024 +  CONFIG_HEADERS  = $CONFIG_HEADERS
14025 +  CONFIG_LINKS    = $CONFIG_LINKS
14026 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
14027 +  $ $0 $@
14028 +
14029 + _CSEOF
14030 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14031 + echo >&5
14032   _ACEOF
14033  
14034   # Files that config.status was made for.
# Line 6633 | Line 14048 | fi
14048    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14049   fi
14050  
14051 < cat >>$CONFIG_STATUS <<\EOF
14051 > cat >>$CONFIG_STATUS <<\_ACEOF
14052  
14053   ac_cs_usage="\
14054   \`$as_me' instantiates files from templates according to the
# Line 6643 | Line 14058 | Usage: $0 [OPTIONS] [FILE]...
14058  
14059    -h, --help       print this help, then exit
14060    -V, --version    print version number, then exit
14061 +  -q, --quiet      do not print progress messages
14062    -d, --debug      don't remove temporary files
14063        --recheck    update $as_me by reconfiguring in the same conditions
14064    --file=FILE[:TEMPLATE]
14065 <                   instantiate the configuration file FILE
14065 >                   instantiate the configuration file FILE
14066    --header=FILE[:TEMPLATE]
14067 <                   instantiate the configuration header FILE
14067 >                   instantiate the configuration header FILE
14068  
14069   Configuration files:
14070   $config_files
# Line 6660 | Line 14076 | Report bugs to <bug-autoconf@gnu.org>."
14076   $config_links
14077  
14078   Report bugs to <bug-autoconf@gnu.org>."
14079 < EOF
14079 > _ACEOF
14080  
14081 < cat >>$CONFIG_STATUS <<EOF
14081 > cat >>$CONFIG_STATUS <<_ACEOF
14082   ac_cs_version="\\
14083 < OOPSE config.status 2.0
14084 < configured by $0, generated by GNU Autoconf 2.50,
14083 > OOPSE config.status 3.0
14084 > configured by $0, generated by GNU Autoconf 2.59,
14085    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14086  
14087 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6672 < Free Software Foundation, Inc.
14087 > Copyright (C) 2003 Free Software Foundation, Inc.
14088   This config.status script is free software; the Free Software Foundation
14089   gives unlimited permission to copy, distribute and modify it."
14090   srcdir=$srcdir
14091   INSTALL="$INSTALL"
14092 < EOF
14092 > _ACEOF
14093  
14094 < cat >>$CONFIG_STATUS <<\EOF
14094 > cat >>$CONFIG_STATUS <<\_ACEOF
14095   # If no file are specified by the user, then we need to provide default
14096   # value.  By we need to know if files were specified by the user.
14097   ac_need_defaults=:
# Line 6686 | Line 14101 | do
14101    --*=*)
14102      ac_option=`expr "x$1" : 'x\([^=]*\)='`
14103      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14104 <    shift
6690 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6691 <    shift
14104 >    ac_shift=:
14105      ;;
14106 <  -*);;
14106 >  -*)
14107 >    ac_option=$1
14108 >    ac_optarg=$2
14109 >    ac_shift=shift
14110 >    ;;
14111    *) # This is not an option, so the user has probably given explicit
14112       # arguments.
14113 +     ac_option=$1
14114       ac_need_defaults=false;;
14115    esac
14116  
14117 <  case $1 in
14117 >  case $ac_option in
14118    # Handling of the options.
14119 < EOF
14120 < cat >>$CONFIG_STATUS <<EOF
14119 > _ACEOF
14120 > cat >>$CONFIG_STATUS <<\_ACEOF
14121    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14122 <    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6705 <    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6706 < EOF
6707 < cat >>$CONFIG_STATUS <<\EOF
14122 >    ac_cs_recheck=: ;;
14123    --version | --vers* | -V )
14124      echo "$ac_cs_version"; exit 0 ;;
14125    --he | --h)
14126      # Conflict between --help and --header
14127 <    { { echo "$as_me:6712: error: ambiguous option: $1
14127 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
14128   Try \`$0 --help' for more information." >&5
14129   echo "$as_me: error: ambiguous option: $1
14130   Try \`$0 --help' for more information." >&2;}
# Line 6719 | Line 14134 | Try \`$0 --help' for more information." >&2;}
14134    --debug | --d* | -d )
14135      debug=: ;;
14136    --file | --fil | --fi | --f )
14137 <    shift
14138 <    CONFIG_FILES="$CONFIG_FILES $1"
14137 >    $ac_shift
14138 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14139      ac_need_defaults=false;;
14140    --header | --heade | --head | --hea )
14141 <    shift
14142 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
14141 >    $ac_shift
14142 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14143      ac_need_defaults=false;;
14144 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14145 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14146 +    ac_cs_silent=: ;;
14147  
6730  # Handling of arguments.
6731  'make/Makefile' ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
6732  'src/utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
6733  'src/getopt.h' ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
6734  'src/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
6735
14148    # This is an error.
14149 <  -*) { { echo "$as_me:6737: error: unrecognized option: $1
14149 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14150   Try \`$0 --help' for more information." >&5
14151   echo "$as_me: error: unrecognized option: $1
14152   Try \`$0 --help' for more information." >&2;}
14153     { (exit 1); exit 1; }; } ;;
14154 <  *) { { echo "$as_me:6742: error: invalid argument: $1" >&5
14155 < echo "$as_me: error: invalid argument: $1" >&2;}
14156 <   { (exit 1); exit 1; }; };;
14154 >
14155 >  *) ac_config_targets="$ac_config_targets $1" ;;
14156 >
14157    esac
14158    shift
14159   done
14160  
14161 < exec 5>>config.log
6750 < cat >&5 << _ACEOF
14161 > ac_configure_extra_args=
14162  
14163 < ## ----------------------- ##
14164 < ## Running config.status.  ##
14165 < ## ----------------------- ##
14163 > if $ac_cs_silent; then
14164 >  exec 6>/dev/null
14165 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
14166 > fi
14167  
14168 < This file was extended by $as_me (OOPSE 2.0) 2.50, executed with
14169 <  > $ac_cs_invocation
14170 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
14168 > _ACEOF
14169 > cat >>$CONFIG_STATUS <<_ACEOF
14170 > if \$ac_cs_recheck; then
14171 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14172 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14173 > fi
14174  
14175   _ACEOF
6761 EOF
14176  
14177 < cat >>$CONFIG_STATUS <<\EOF
14177 >
14178 >
14179 >
14180 >
14181 > cat >>$CONFIG_STATUS <<\_ACEOF
14182 > for ac_config_target in $ac_config_targets
14183 > do
14184 >  case "$ac_config_target" in
14185 >  # Handling of arguments.
14186 >  "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
14187 >  "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14188 >  "src/math/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/math/Makefile" ;;
14189 >  "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
14190 >  "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
14191 >  "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
14192 >  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14193 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14194 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14195 >   { (exit 1); exit 1; }; };;
14196 >  esac
14197 > done
14198 >
14199   # If the user did not use the arguments to specify the items to instantiate,
14200   # then the envvar interface is used.  Set only those that are not.
14201   # We use the long form for the default assignment because of an extremely
# Line 6771 | Line 14206 | fi
14206    test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14207   fi
14208  
14209 + # Have a temporary directory for convenience.  Make it in the build tree
14210 + # simply because there is no reason to put it here, and in addition,
14211 + # creating and moving files from /tmp can sometimes cause problems.
14212   # Create a temporary directory, and hook for its removal unless debugging.
14213   $debug ||
14214   {
14215    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14216 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
14216 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
14217   }
14218  
14219   # Create a (secure) tmp directory for tmp files.
14220 < : ${TMPDIR=/tmp}
14220 >
14221   {
14222 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14222 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14223    test -n "$tmp" && test -d "$tmp"
14224   }  ||
14225   {
14226 <  tmp=$TMPDIR/cs$$-$RANDOM
14226 >  tmp=./confstat$$-$RANDOM
14227    (umask 077 && mkdir $tmp)
14228   } ||
14229   {
14230 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14230 >   echo "$me: cannot create a temporary directory in ." >&2
14231     { (exit 1); exit 1; }
14232   }
14233  
14234 < EOF
14234 > _ACEOF
14235  
14236 < cat >>$CONFIG_STATUS <<EOF
14236 > cat >>$CONFIG_STATUS <<_ACEOF
14237  
14238   #
14239   # CONFIG_FILES section.
# Line 6808 | Line 14246 | s,@SHELL@,$SHELL,;t t
14246    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14247     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14248   s,@SHELL@,$SHELL,;t t
14249 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14250 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14251 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14252 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14253 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14254 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14255   s,@exec_prefix@,$exec_prefix,;t t
14256   s,@prefix@,$prefix,;t t
14257   s,@program_transform_name@,$program_transform_name,;t t
# Line 6823 | Line 14267 | s,@mandir@,$mandir,;t t
14267   s,@oldincludedir@,$oldincludedir,;t t
14268   s,@infodir@,$infodir,;t t
14269   s,@mandir@,$mandir,;t t
14270 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14271 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14272 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14273 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6830 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14270 > s,@build_alias@,$build_alias,;t t
14271 > s,@host_alias@,$host_alias,;t t
14272 > s,@target_alias@,$target_alias,;t t
14273 > s,@DEFS@,$DEFS,;t t
14274   s,@ECHO_C@,$ECHO_C,;t t
14275   s,@ECHO_N@,$ECHO_N,;t t
14276   s,@ECHO_T@,$ECHO_T,;t t
6834 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6835 s,@DEFS@,$DEFS,;t t
14277   s,@LIBS@,$LIBS,;t t
6837 s,@PROGNAME@,$PROGNAME,;t t
6838 s,@debug@,$debug,;t t
14278   s,@build@,$build,;t t
14279   s,@build_cpu@,$build_cpu,;t t
14280   s,@build_vendor@,$build_vendor,;t t
# Line 6844 | Line 14283 | s,@host_os@,$host_os,;t t
14283   s,@host_cpu@,$host_cpu,;t t
14284   s,@host_vendor@,$host_vendor,;t t
14285   s,@host_os@,$host_os,;t t
14286 < s,@CC@,$CC,;t t
14287 < s,@CFLAGS@,$CFLAGS,;t t
14286 > s,@PROGNAME@,$PROGNAME,;t t
14287 > s,@debug@,$debug,;t t
14288 > s,@USE_SINGLE_PRECISION@,$USE_SINGLE_PRECISION,;t t
14289 > s,@CXX@,$CXX,;t t
14290 > s,@CXXFLAGS@,$CXXFLAGS,;t t
14291   s,@LDFLAGS@,$LDFLAGS,;t t
14292   s,@CPPFLAGS@,$CPPFLAGS,;t t
14293 < s,@ac_ct_CC@,$ac_ct_CC,;t t
14293 > s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14294   s,@EXEEXT@,$EXEEXT,;t t
14295   s,@OBJEXT@,$OBJEXT,;t t
14296 < s,@CXX@,$CXX,;t t
14297 < s,@CXXFLAGS@,$CXXFLAGS,;t t
14298 < s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14299 < s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
14300 < s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
14301 < s,@F90@,$F90,;t t
6860 < s,@F90FLAGS@,$F90FLAGS,;t t
6861 < s,@ac_ct_F90@,$ac_ct_F90,;t t
6862 < s,@PREPFLAG@,$PREPFLAG,;t t
6863 < s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
6864 < s,@F90LIBS@,$F90LIBS,;t t
6865 < s,@F90_FUNC@,$F90_FUNC,;t t
6866 < s,@F90_FUNC_@,$F90_FUNC_,;t t
6867 < s,@MOD@,$MOD,;t t
6868 < s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
6869 < s,@MODDIRFLAG@,$MODDIRFLAG,;t t
6870 < s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
6871 < s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
14296 > s,@CC@,$CC,;t t
14297 > s,@CFLAGS@,$CFLAGS,;t t
14298 > s,@ac_ct_CC@,$ac_ct_CC,;t t
14299 > s,@FC@,$FC,;t t
14300 > s,@FCFLAGS@,$FCFLAGS,;t t
14301 > s,@ac_ct_FC@,$ac_ct_FC,;t t
14302   s,@CPP@,$CPP,;t t
14303 < s,@LIBOBJS@,$LIBOBJS,;t t
6874 < s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6875 < s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6876 < s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14303 > s,@EGREP@,$EGREP,;t t
14304   s,@LN_S@,$LN_S,;t t
14305   s,@SET_MAKE@,$SET_MAKE,;t t
14306   s,@RANLIB@,$RANLIB,;t t
14307   s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14308 < s,@YACC@,$YACC,;t t
14309 < s,@LEX@,$LEX,;t t
14310 < s,@LEXLIB@,$LEXLIB,;t t
14311 < s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14308 > s,@PERLINTERP@,$PERLINTERP,;t t
14309 > s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
14310 > s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14311 > s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14312 > s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14313   s,@AR@,$AR,;t t
14314   s,@PS@,$PS,;t t
14315 + s,@FCFLAGS_F90@,$FCFLAGS_F90,;t t
14316 + s,@FCFLAGS_SRCEXT@,$FCFLAGS_SRCEXT,;t t
14317 + s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
14318 + s,@FCLIBS@,$FCLIBS,;t t
14319 + s,@FC_FUNC@,$FC_FUNC,;t t
14320 + s,@FC_FUNC_@,$FC_FUNC_,;t t
14321 + s,@MOD@,$MOD,;t t
14322 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
14323 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
14324 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
14325 + s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
14326 + s,@ZLIB_INC_DIR@,$ZLIB_INC_DIR,;t t
14327 + s,@ZLIB_LIB_DIR@,$ZLIB_LIB_DIR,;t t
14328 + s,@ZLIB@,$ZLIB,;t t
14329 + s,@FFTW_INC_DIR@,$FFTW_INC_DIR,;t t
14330 + s,@FFTW_LIB_DIR@,$FFTW_LIB_DIR,;t t
14331 + s,@FFTW_LIBS@,$FFTW_LIBS,;t t
14332 + s,@LIBOBJS@,$LIBOBJS,;t t
14333 + s,@POW_LIB@,$POW_LIB,;t t
14334 + s,@CXXCPP@,$CXXCPP,;t t
14335 + s,@__func__@,$__func__,;t t
14336   s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
14337   s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
14338   s,@MPI_F90_INC@,$MPI_F90_INC,;t t
14339   s,@MPI_LIB@,$MPI_LIB,;t t
14340   s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
14341   s,@USE_MPI@,$USE_MPI,;t t
6893 s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t
6894 s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t
6895 s,@SPRNG_LIB@,$SPRNG_LIB,;t t
6896 s,@USE_SPRNG@,$USE_SPRNG,;t t
6897 s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
6898 s,@MKL_LIB@,$MKL_LIB,;t t
6899 s,@MKL_INC@,$MKL_INC,;t t
6900 s,@HAVE_MKL@,$HAVE_MKL,;t t
14342   s,@DOXYGEN@,$DOXYGEN,;t t
14343   s,@DOT@,$DOT,;t t
14344   s,@DOC@,$DOC,;t t
# Line 6909 | Line 14350 | s,@SUBDIRS@,$SUBDIRS,;t t
14350   s,@OOPSE@,$OOPSE,;t t
14351   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
14352   s,@SUBDIRS@,$SUBDIRS,;t t
14353 < s,@FFLAGS@,$FFLAGS,;t t
14353 > s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14354   CEOF
14355  
14356 < EOF
14356 > _ACEOF
14357  
14358 <  cat >>$CONFIG_STATUS <<\EOF
14358 >  cat >>$CONFIG_STATUS <<\_ACEOF
14359    # Split the substitutions into bite-sized pieces for seds with
14360    # small command number limits, like on Digital OSF/1 and HP-UX.
14361    ac_max_sed_lines=48
# Line 6939 | Line 14380 | EOF
14380        (echo ':t
14381    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14382        if test -z "$ac_sed_cmds"; then
14383 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14383 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14384        else
14385 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14385 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14386        fi
14387        ac_sed_frag=`expr $ac_sed_frag + 1`
14388        ac_beg=$ac_end
# Line 6953 | Line 14394 | fi # test -n "$CONFIG_FILES"
14394    fi
14395   fi # test -n "$CONFIG_FILES"
14396  
14397 < EOF
14398 < cat >>$CONFIG_STATUS <<\EOF
14397 > _ACEOF
14398 > cat >>$CONFIG_STATUS <<\_ACEOF
14399   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14400    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14401    case $ac_file in
14402    - | *:- | *:-:* ) # input from stdin
14403 <        cat >$tmp/stdin
14404 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14405 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14403 >        cat >$tmp/stdin
14404 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14405 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14406    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14407 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14407 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14408    * )   ac_file_in=$ac_file.in ;;
14409    esac
14410  
14411    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14412 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14413 <         X"$ac_file" : 'X\(//\)[^/]' \| \
14414 <         X"$ac_file" : 'X\(//\)$' \| \
14415 <         X"$ac_file" : 'X\(/\)' \| \
14416 <         .     : '\(.\)' 2>/dev/null ||
14412 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14413 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14414 >         X"$ac_file" : 'X\(//\)[^/]' \| \
14415 >         X"$ac_file" : 'X\(//\)$' \| \
14416 >         X"$ac_file" : 'X\(/\)' \| \
14417 >         .     : '\(.\)' 2>/dev/null ||
14418   echo X"$ac_file" |
14419      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14420            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14421            /^X\(\/\/\)$/{ s//\1/; q; }
14422            /^X\(\/\).*/{ s//\1/; q; }
14423            s/.*/./; q'`
14424 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14425 <    { case "$ac_dir" in
6984 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6985 <  *)                      as_incr_dir=.;;
6986 < esac
6987 < as_dummy="$ac_dir"
6988 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6989 <  case $as_mkdir_dir in
6990 <    # Skip DOS drivespec
6991 <    ?:) as_incr_dir=$as_mkdir_dir ;;
6992 <    *)
6993 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
6994 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6995 <    ;;
6996 <  esac
6997 < done; }
6998 <
6999 <    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7000 <    # A "../" for each directory in $ac_dir_suffix.
7001 <    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
14424 >  { if $as_mkdir_p; then
14425 >    mkdir -p "$ac_dir"
14426    else
14427 <    ac_dir_suffix= ac_dots=
14428 <  fi
14427 >    as_dir="$ac_dir"
14428 >    as_dirs=
14429 >    while test ! -d "$as_dir"; do
14430 >      as_dirs="$as_dir $as_dirs"
14431 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14432 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14433 >         X"$as_dir" : 'X\(//\)[^/]' \| \
14434 >         X"$as_dir" : 'X\(//\)$' \| \
14435 >         X"$as_dir" : 'X\(/\)' \| \
14436 >         .     : '\(.\)' 2>/dev/null ||
14437 > echo X"$as_dir" |
14438 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14439 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14440 >          /^X\(\/\/\)$/{ s//\1/; q; }
14441 >          /^X\(\/\).*/{ s//\1/; q; }
14442 >          s/.*/./; q'`
14443 >    done
14444 >    test ! -n "$as_dirs" || mkdir $as_dirs
14445 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14446 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14447 >   { (exit 1); exit 1; }; }; }
14448  
14449 <  case $srcdir in
14450 <  .)  ac_srcdir=.
14451 <      if test -z "$ac_dots"; then
14452 <         ac_top_srcdir=.
14453 <      else
14454 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14455 <      fi ;;
14456 <  [\\/]* | ?:[\\/]* )
14457 <      ac_srcdir=$srcdir$ac_dir_suffix;
14458 <      ac_top_srcdir=$srcdir ;;
14449 >  ac_builddir=.
14450 >
14451 > if test "$ac_dir" != .; then
14452 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14453 >  # A "../" for each directory in $ac_dir_suffix.
14454 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14455 > else
14456 >  ac_dir_suffix= ac_top_builddir=
14457 > fi
14458 >
14459 > case $srcdir in
14460 >  .)  # No --srcdir option.  We are building in place.
14461 >    ac_srcdir=.
14462 >    if test -z "$ac_top_builddir"; then
14463 >       ac_top_srcdir=.
14464 >    else
14465 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14466 >    fi ;;
14467 >  [\\/]* | ?:[\\/]* )  # Absolute path.
14468 >    ac_srcdir=$srcdir$ac_dir_suffix;
14469 >    ac_top_srcdir=$srcdir ;;
14470    *) # Relative path.
14471 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14472 <    ac_top_srcdir=$ac_dots$srcdir ;;
14473 <  esac
14471 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14472 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14473 > esac
14474  
14475 + # Do not use `cd foo && pwd` to compute absolute paths, because
14476 + # the directories may not exist.
14477 + case `pwd` in
14478 + .) ac_abs_builddir="$ac_dir";;
14479 + *)
14480 +  case "$ac_dir" in
14481 +  .) ac_abs_builddir=`pwd`;;
14482 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14483 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
14484 +  esac;;
14485 + esac
14486 + case $ac_abs_builddir in
14487 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
14488 + *)
14489 +  case ${ac_top_builddir}. in
14490 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
14491 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14492 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14493 +  esac;;
14494 + esac
14495 + case $ac_abs_builddir in
14496 + .) ac_abs_srcdir=$ac_srcdir;;
14497 + *)
14498 +  case $ac_srcdir in
14499 +  .) ac_abs_srcdir=$ac_abs_builddir;;
14500 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14501 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14502 +  esac;;
14503 + esac
14504 + case $ac_abs_builddir in
14505 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
14506 + *)
14507 +  case $ac_top_srcdir in
14508 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14509 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14510 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14511 +  esac;;
14512 + esac
14513 +
14514 +
14515    case $INSTALL in
14516    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14517 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
14517 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14518    esac
14519  
14520    if test x"$ac_file" != x-; then
14521 <    { echo "$as_me:7027: creating $ac_file" >&5
14521 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
14522   echo "$as_me: creating $ac_file" >&6;}
14523      rm -f "$ac_file"
14524    fi
14525    # Let's still pretend it is `configure' which instantiates (i.e., don't
14526    # use $as_me), people would be surprised to read:
14527 <  #    /* config.h.  Generated automatically by config.status.  */
14528 <  configure_input="Generated automatically from `echo $ac_file_in |
14529 <                                                 sed 's,.*/,,'` by configure."
14527 >  #    /* config.h.  Generated by config.status.  */
14528 >  if test x"$ac_file" = x-; then
14529 >    configure_input=
14530 >  else
14531 >    configure_input="$ac_file.  "
14532 >  fi
14533 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
14534 >                                     sed 's,.*/,,'` by configure."
14535  
14536    # First look for the input files in the build tree, otherwise in the
14537    # src tree.
# Line 7041 | Line 14540 | echo "$as_me: creating $ac_file" >&6;}
14540        case $f in
14541        -) echo $tmp/stdin ;;
14542        [\\/$]*)
14543 <         # Absolute (can't be DOS-style, as IFS=:)
14544 <         test -f "$f" || { { echo "$as_me:7045: error: cannot find input file: $f" >&5
14543 >         # Absolute (can't be DOS-style, as IFS=:)
14544 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14545   echo "$as_me: error: cannot find input file: $f" >&2;}
14546     { (exit 1); exit 1; }; }
14547 <         echo $f;;
14547 >         echo "$f";;
14548        *) # Relative
14549 <         if test -f "$f"; then
14550 <           # Build tree
14551 <           echo $f
14552 <         elif test -f "$srcdir/$f"; then
14553 <           # Source tree
14554 <           echo $srcdir/$f
14555 <         else
14556 <           # /dev/null tree
14557 <           { { echo "$as_me:7058: error: cannot find input file: $f" >&5
14549 >         if test -f "$f"; then
14550 >           # Build tree
14551 >           echo "$f"
14552 >         elif test -f "$srcdir/$f"; then
14553 >           # Source tree
14554 >           echo "$srcdir/$f"
14555 >         else
14556 >           # /dev/null tree
14557 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14558   echo "$as_me: error: cannot find input file: $f" >&2;}
14559     { (exit 1); exit 1; }; }
14560 <         fi;;
14560 >         fi;;
14561        esac
14562      done` || { (exit 1); exit 1; }
14563 < EOF
14564 < cat >>$CONFIG_STATUS <<EOF
14563 > _ACEOF
14564 > cat >>$CONFIG_STATUS <<_ACEOF
14565    sed "$ac_vpsub
14566   $extrasub
14567 < EOF
14568 < cat >>$CONFIG_STATUS <<\EOF
14567 > _ACEOF
14568 > cat >>$CONFIG_STATUS <<\_ACEOF
14569   :t
14570   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14571   s,@configure_input@,$configure_input,;t t
14572   s,@srcdir@,$ac_srcdir,;t t
14573 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
14574   s,@top_srcdir@,$ac_top_srcdir,;t t
14575 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14576 + s,@builddir@,$ac_builddir,;t t
14577 + s,@abs_builddir@,$ac_abs_builddir,;t t
14578 + s,@top_builddir@,$ac_top_builddir,;t t
14579 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14580   s,@INSTALL@,$ac_INSTALL,;t t
14581   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14582    rm -f $tmp/stdin
# Line 7082 | Line 14587 | s,@INSTALL@,$ac_INSTALL,;t t
14587      rm -f $tmp/out
14588    fi
14589  
14590 +  # Run the commands associated with the file.
14591 +  case $ac_file in
14592 +    make/Makefile ) chmod 0755 scripts/* ;;
14593 +    src/utils/Makefile ) chmod 0755 scripts/* ;;
14594 +    src/math/Makefile ) chmod 0755 scripts/* ;;
14595 +    src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
14596 +    scripts/filepp ) chmod 0755 scripts/* ;;
14597 +  esac
14598   done
14599 < EOF
14600 < cat >>$CONFIG_STATUS <<\EOF
14599 > _ACEOF
14600 > cat >>$CONFIG_STATUS <<\_ACEOF
14601  
14602   #
14603   # CONFIG_HEADER section.
# Line 7094 | Line 14607 | cat >>$CONFIG_STATUS <<\EOF
14607   # NAME is the cpp macro being defined and VALUE is the value it is being given.
14608   #
14609   # ac_d sets the value in "#define NAME VALUE" lines.
14610 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14611 < ac_dB='[        ].*$,\1#\2'
14610 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14611 > ac_dB='[         ].*$,\1#\2'
14612   ac_dC=' '
14613   ac_dD=',;t'
14614   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14615 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14615 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14616   ac_uB='$,\1#\2define\3'
14617   ac_uC=' '
14618   ac_uD=',;t'
# Line 7108 | Line 14621 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
14621    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14622    case $ac_file in
14623    - | *:- | *:-:* ) # input from stdin
14624 <        cat >$tmp/stdin
14625 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14626 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14624 >        cat >$tmp/stdin
14625 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14626 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14627    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14628 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14628 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14629    * )   ac_file_in=$ac_file.in ;;
14630    esac
14631  
14632 <  test x"$ac_file" != x- && { echo "$as_me:7119: creating $ac_file" >&5
14632 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14633   echo "$as_me: creating $ac_file" >&6;}
14634  
14635    # First look for the input files in the build tree, otherwise in the
# Line 7126 | Line 14639 | echo "$as_me: creating $ac_file" >&6;}
14639        case $f in
14640        -) echo $tmp/stdin ;;
14641        [\\/$]*)
14642 <         # Absolute (can't be DOS-style, as IFS=:)
14643 <         test -f "$f" || { { echo "$as_me:7130: error: cannot find input file: $f" >&5
14642 >         # Absolute (can't be DOS-style, as IFS=:)
14643 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14644   echo "$as_me: error: cannot find input file: $f" >&2;}
14645     { (exit 1); exit 1; }; }
14646 <         echo $f;;
14646 >         # Do quote $f, to prevent DOS paths from being IFS'd.
14647 >         echo "$f";;
14648        *) # Relative
14649 <         if test -f "$f"; then
14650 <           # Build tree
14651 <           echo $f
14652 <         elif test -f "$srcdir/$f"; then
14653 <           # Source tree
14654 <           echo $srcdir/$f
14655 <         else
14656 <           # /dev/null tree
14657 <           { { echo "$as_me:7143: error: cannot find input file: $f" >&5
14649 >         if test -f "$f"; then
14650 >           # Build tree
14651 >           echo "$f"
14652 >         elif test -f "$srcdir/$f"; then
14653 >           # Source tree
14654 >           echo "$srcdir/$f"
14655 >         else
14656 >           # /dev/null tree
14657 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14658   echo "$as_me: error: cannot find input file: $f" >&2;}
14659     { (exit 1); exit 1; }; }
14660 <         fi;;
14660 >         fi;;
14661        esac
14662      done` || { (exit 1); exit 1; }
14663    # Remove the trailing spaces.
14664 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14664 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14665  
14666 < EOF
14666 > _ACEOF
14667  
14668   # Transform confdefs.h into two sed scripts, `conftest.defines' and
14669   # `conftest.undefs', that substitutes the proper values into
# Line 7165 | Line 14679 | rm -f conftest.defines conftest.undefs
14679   # `end' is used to avoid that the second main sed command (meant for
14680   # 0-ary CPP macros) applies to n-ary macro definitions.
14681   # See the Autoconf documentation for `clear'.
14682 < cat >confdef2sed.sed <<\EOF
14682 > cat >confdef2sed.sed <<\_ACEOF
14683   s/[\\&,]/\\&/g
14684   s,[\\$`],\\&,g
14685   t clear
14686   : clear
14687 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
14687 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14688   t end
14689 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14689 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14690   : end
14691 < EOF
14691 > _ACEOF
14692   # If some macros were called several times there might be several times
14693   # the same #defines, which is useless.  Nevertheless, we may not want to
14694   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 7185 | Line 14699 | rm -f confdef2sed.sed
14699   # This sed command replaces #undef with comments.  This is necessary, for
14700   # example, in the case of _POSIX_SOURCE, which is predefined and required
14701   # on some systems where configure will not decide to define it.
14702 < cat >>conftest.undefs <<\EOF
14703 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14704 < EOF
14702 > cat >>conftest.undefs <<\_ACEOF
14703 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14704 > _ACEOF
14705  
14706   # Break up conftest.defines because some shells have a limit on the size
14707   # of here documents, and old seds have small limits too (100 cmds).
14708   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14709 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14709 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14710   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14711   echo '  :' >>$CONFIG_STATUS
14712   rm -f conftest.tail
# Line 7201 | Line 14715 | do
14715    # Write a limited-size here document to $tmp/defines.sed.
14716    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14717    # Speed up: don't consider the non `#define' lines.
14718 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
14718 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14719    # Work around the forget-to-reset-the-flag bug.
14720    echo 't clr' >>$CONFIG_STATUS
14721    echo ': clr' >>$CONFIG_STATUS
# Line 7216 | Line 14730 | rm -f conftest.defines
14730    mv conftest.tail conftest.defines
14731   done
14732   rm -f conftest.defines
14733 < echo '  fi # egrep' >>$CONFIG_STATUS
14733 > echo '  fi # grep' >>$CONFIG_STATUS
14734   echo >>$CONFIG_STATUS
14735  
14736   # Break up conftest.undefs because some shells have a limit on the size
# Line 7228 | Line 14742 | do
14742    # Write a limited-size here document to $tmp/undefs.sed.
14743    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14744    # Speed up: don't consider the non `#undef'
14745 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14745 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14746    # Work around the forget-to-reset-the-flag bug.
14747    echo 't clr' >>$CONFIG_STATUS
14748    echo ': clr' >>$CONFIG_STATUS
# Line 7244 | Line 14758 | rm -f conftest.undefs
14758   done
14759   rm -f conftest.undefs
14760  
14761 < cat >>$CONFIG_STATUS <<\EOF
14761 > cat >>$CONFIG_STATUS <<\_ACEOF
14762    # Let's still pretend it is `configure' which instantiates (i.e., don't
14763    # use $as_me), people would be surprised to read:
14764 <  #    /* config.h.  Generated automatically by config.status.  */
14764 >  #    /* config.h.  Generated by config.status.  */
14765    if test x"$ac_file" = x-; then
14766 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
14766 >    echo "/* Generated by configure.  */" >$tmp/config.h
14767    else
14768 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
14768 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14769    fi
14770    cat $tmp/in >>$tmp/config.h
14771    rm -f $tmp/in
14772    if test x"$ac_file" != x-; then
14773 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14774 <      { echo "$as_me:7260: $ac_file is unchanged" >&5
14773 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14774 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14775   echo "$as_me: $ac_file is unchanged" >&6;}
14776      else
14777 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14778 <         X"$ac_file" : 'X\(//\)[^/]' \| \
14779 <         X"$ac_file" : 'X\(//\)$' \| \
14780 <         X"$ac_file" : 'X\(/\)' \| \
14781 <         .     : '\(.\)' 2>/dev/null ||
14777 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14778 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14779 >         X"$ac_file" : 'X\(//\)[^/]' \| \
14780 >         X"$ac_file" : 'X\(//\)$' \| \
14781 >         X"$ac_file" : 'X\(/\)' \| \
14782 >         .     : '\(.\)' 2>/dev/null ||
14783   echo X"$ac_file" |
14784      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14785            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14786            /^X\(\/\/\)$/{ s//\1/; q; }
14787            /^X\(\/\).*/{ s//\1/; q; }
14788            s/.*/./; q'`
14789 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14790 <        { case "$ac_dir" in
14791 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14792 <  *)                      as_incr_dir=.;;
14793 < esac
14794 < as_dummy="$ac_dir"
14795 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14796 <  case $as_mkdir_dir in
14797 <    # Skip DOS drivespec
14798 <    ?:) as_incr_dir=$as_mkdir_dir ;;
14799 <    *)
14800 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
14801 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14802 <    ;;
14803 <  esac
14804 < done; }
14789 >      { if $as_mkdir_p; then
14790 >    mkdir -p "$ac_dir"
14791 >  else
14792 >    as_dir="$ac_dir"
14793 >    as_dirs=
14794 >    while test ! -d "$as_dir"; do
14795 >      as_dirs="$as_dir $as_dirs"
14796 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14797 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14798 >         X"$as_dir" : 'X\(//\)[^/]' \| \
14799 >         X"$as_dir" : 'X\(//\)$' \| \
14800 >         X"$as_dir" : 'X\(/\)' \| \
14801 >         .     : '\(.\)' 2>/dev/null ||
14802 > echo X"$as_dir" |
14803 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14804 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14805 >          /^X\(\/\/\)$/{ s//\1/; q; }
14806 >          /^X\(\/\).*/{ s//\1/; q; }
14807 >          s/.*/./; q'`
14808 >    done
14809 >    test ! -n "$as_dirs" || mkdir $as_dirs
14810 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14811 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14812 >   { (exit 1); exit 1; }; }; }
14813  
7291      fi
14814        rm -f $ac_file
14815        mv $tmp/config.h $ac_file
14816      fi
# Line 7297 | Line 14819 | done
14819      rm -f $tmp/config.h
14820    fi
14821   done
14822 < EOF
14823 < cat >>$CONFIG_STATUS <<\EOF
14822 > _ACEOF
14823 > cat >>$CONFIG_STATUS <<\_ACEOF
14824  
14825   #
14826   # CONFIG_LINKS section.
# Line 7308 | Line 14830 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" =
14830    ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14831    ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14832  
14833 <  { echo "$as_me:7311: linking $srcdir/$ac_source to $ac_dest" >&5
14833 >  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14834   echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14835  
14836    if test ! -r $srcdir/$ac_source; then
14837 <    { { echo "$as_me:7315: error: $srcdir/$ac_source: File not found" >&5
14838 < echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
14837 >    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14838 > echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14839     { (exit 1); exit 1; }; }
14840    fi
14841    rm -f $ac_dest
14842  
14843    # Make relative symlinks.
14844 <  ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14845 <         X"$ac_dest" : 'X\(//\)[^/]' \| \
14846 <         X"$ac_dest" : 'X\(//\)$' \| \
14847 <         X"$ac_dest" : 'X\(/\)' \| \
14848 <         .     : '\(.\)' 2>/dev/null ||
14844 >  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14845 > $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14846 >         X"$ac_dest" : 'X\(//\)[^/]' \| \
14847 >         X"$ac_dest" : 'X\(//\)$' \| \
14848 >         X"$ac_dest" : 'X\(/\)' \| \
14849 >         .     : '\(.\)' 2>/dev/null ||
14850   echo X"$ac_dest" |
14851      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14852            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14853            /^X\(\/\/\)$/{ s//\1/; q; }
14854            /^X\(\/\).*/{ s//\1/; q; }
14855            s/.*/./; q'`
14856 <  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
14857 <    { case "$ac_dest_dir" in
14858 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14859 <  *)                      as_incr_dir=.;;
14856 >  { if $as_mkdir_p; then
14857 >    mkdir -p "$ac_dest_dir"
14858 >  else
14859 >    as_dir="$ac_dest_dir"
14860 >    as_dirs=
14861 >    while test ! -d "$as_dir"; do
14862 >      as_dirs="$as_dir $as_dirs"
14863 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14864 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14865 >         X"$as_dir" : 'X\(//\)[^/]' \| \
14866 >         X"$as_dir" : 'X\(//\)$' \| \
14867 >         X"$as_dir" : 'X\(/\)' \| \
14868 >         .     : '\(.\)' 2>/dev/null ||
14869 > echo X"$as_dir" |
14870 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14871 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14872 >          /^X\(\/\/\)$/{ s//\1/; q; }
14873 >          /^X\(\/\).*/{ s//\1/; q; }
14874 >          s/.*/./; q'`
14875 >    done
14876 >    test ! -n "$as_dirs" || mkdir $as_dirs
14877 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14878 > echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14879 >   { (exit 1); exit 1; }; }; }
14880 >
14881 >  ac_builddir=.
14882 >
14883 > if test "$ac_dest_dir" != .; then
14884 >  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14885 >  # A "../" for each directory in $ac_dir_suffix.
14886 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14887 > else
14888 >  ac_dir_suffix= ac_top_builddir=
14889 > fi
14890 >
14891 > case $srcdir in
14892 >  .)  # No --srcdir option.  We are building in place.
14893 >    ac_srcdir=.
14894 >    if test -z "$ac_top_builddir"; then
14895 >       ac_top_srcdir=.
14896 >    else
14897 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14898 >    fi ;;
14899 >  [\\/]* | ?:[\\/]* )  # Absolute path.
14900 >    ac_srcdir=$srcdir$ac_dir_suffix;
14901 >    ac_top_srcdir=$srcdir ;;
14902 >  *) # Relative path.
14903 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14904 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14905   esac
7338 as_dummy="$ac_dest_dir"
7339 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7340  case $as_mkdir_dir in
7341    # Skip DOS drivespec
7342    ?:) as_incr_dir=$as_mkdir_dir ;;
7343    *)
7344      as_incr_dir=$as_incr_dir/$as_mkdir_dir
7345      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7346    ;;
7347  esac
7348 done; }
14906  
14907 <    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`"
14908 <    # A "../" for each directory in $ac_dest_dir_suffix.
14909 <    ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
14910 <  else
14911 <    ac_dest_dir_suffix= ac_dots=
14912 <  fi
14907 > # Do not use `cd foo && pwd` to compute absolute paths, because
14908 > # the directories may not exist.
14909 > case `pwd` in
14910 > .) ac_abs_builddir="$ac_dest_dir";;
14911 > *)
14912 >  case "$ac_dest_dir" in
14913 >  .) ac_abs_builddir=`pwd`;;
14914 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14915 >  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14916 >  esac;;
14917 > esac
14918 > case $ac_abs_builddir in
14919 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
14920 > *)
14921 >  case ${ac_top_builddir}. in
14922 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
14923 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14924 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14925 >  esac;;
14926 > esac
14927 > case $ac_abs_builddir in
14928 > .) ac_abs_srcdir=$ac_srcdir;;
14929 > *)
14930 >  case $ac_srcdir in
14931 >  .) ac_abs_srcdir=$ac_abs_builddir;;
14932 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14933 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14934 >  esac;;
14935 > esac
14936 > case $ac_abs_builddir in
14937 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
14938 > *)
14939 >  case $ac_top_srcdir in
14940 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14941 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14942 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14943 >  esac;;
14944 > esac
14945  
14946 +
14947    case $srcdir in
14948    [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14949 <      *) ac_rel_source=$ac_dots$srcdir/$ac_source ;;
14949 >      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14950    esac
14951  
14952 <  # Make a symlink if possible; otherwise try a hard link.
14952 >  # Try a symlink, then a hard link, then a copy.
14953    ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14954 <    ln $srcdir/$ac_source $ac_dest ||
14955 <    { { echo "$as_me:7365: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
14956 < echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
14954 >    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14955 >    cp -p $srcdir/$ac_source $ac_dest ||
14956 >    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14957 > echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14958     { (exit 1); exit 1; }; }
14959   done
14960 < EOF
14960 > _ACEOF
14961  
14962 < cat >>$CONFIG_STATUS <<\EOF
14962 > cat >>$CONFIG_STATUS <<\_ACEOF
14963  
14964   { (exit 0); exit 0; }
14965 < EOF
14965 > _ACEOF
14966   chmod +x $CONFIG_STATUS
14967   ac_clean_files=$ac_clean_files_save
14968  
14969 +
14970   # configure is writing to config.log, and then calls config.status.
14971   # config.status does its own redirection, appending to config.log.
14972   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 7385 | Line 14977 | if test "$no_create" != yes; then
14977   # need to make the FD available again.
14978   if test "$no_create" != yes; then
14979    ac_cs_success=:
14980 +  ac_config_status_args=
14981 +  test "$silent" = yes &&
14982 +    ac_config_status_args="$ac_config_status_args --quiet"
14983    exec 5>/dev/null
14984 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
14984 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14985    exec 5>>config.log
14986    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14987    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines