ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
(Generate patch)

Comparing trunk/OOPSE/configure (file contents):
Revision 827 by gezelter, Tue Oct 28 16:02:29 2003 UTC vs.
Revision 1202 by gezelter, Thu May 27 16:20:36 2004 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 1.0.
3 > # Generated by GNU Autoconf 2.57 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 > # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8   # Free Software Foundation, Inc.
9   # This configure script is free software; the Free Software Foundation
10   # gives unlimited permission to copy, distribute and modify it.
11 + ## --------------------- ##
12 + ## M4sh Initialization.  ##
13 + ## --------------------- ##
14  
15   # Be Bourne compatible
16   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17    emulate sh
18    NULLCMD=:
19 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 +  # is contrary to our usage.  Disable this feature.
21 +  alias -g '${1+"$@"}'='"$@"'
22   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23    set -o posix
24   fi
25  
26 + # Support unset when possible.
27 + if (FOO=FOO; unset FOO) >/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 -n "`(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 | as_executable_p="test -f"
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 >  as_mkdir_p=false
224   fi
225  
226 < # 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; }
226 > as_executable_p="test -f"
227  
228 + # Sed expression to map a string onto a valid CPP name.
229 + as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 +
231 + # Sed expression to map a string onto a valid variable name.
232 + as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 +
234 +
235   # IFS
236   # We need space, tab and new line, in precisely that order.
237   as_nl='
# Line 70 | Line 239 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
239   IFS="   $as_nl"
240  
241   # CDPATH.
242 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
242 > $as_unset CDPATH
243  
244 +
245   # Name of the host.
246   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247   # so uname gets run too.
# Line 83 | Line 253 | cross_compiling=no
253   # Initializations.
254   #
255   ac_default_prefix=/usr/local
256 + ac_config_libobj_dir=.
257   cross_compiling=no
258   subdirs=
259 < MFLAGS= MAKEFLAGS=
259 > MFLAGS=
260 > MAKEFLAGS=
261   SHELL=${CONFIG_SHELL-/bin/sh}
262  
263   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 265 | SHELL=${CONFIG_SHELL-/bin/sh}
265   # only ac_max_sed_lines should be used.
266   : ${ac_max_here_lines=38}
267  
268 < # Avoid depending upon Character Ranges.
269 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
270 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
271 < ac_cr_09='0123456789'
272 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
268 > # Identity of this package.
269 > PACKAGE_NAME='OOPSE'
270 > PACKAGE_TARNAME='oopse'
271 > PACKAGE_VERSION='1.0'
272 > PACKAGE_STRING='OOPSE 1.0'
273 > PACKAGE_BUGREPORT='gezelter@nd.edu'
274  
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
275   ac_unique_file="src/oopse.cpp"
276   ac_default_prefix="/usr/local"
277 + # Factoring default headers for most tests.
278 + ac_includes_default="\
279 + #include <stdio.h>
280 + #if HAVE_SYS_TYPES_H
281 + # include <sys/types.h>
282 + #endif
283 + #if HAVE_SYS_STAT_H
284 + # include <sys/stat.h>
285 + #endif
286 + #if STDC_HEADERS
287 + # include <stdlib.h>
288 + # include <stddef.h>
289 + #else
290 + # if HAVE_STDLIB_H
291 + #  include <stdlib.h>
292 + # endif
293 + #endif
294 + #if HAVE_STRING_H
295 + # if !STDC_HEADERS && HAVE_MEMORY_H
296 + #  include <memory.h>
297 + # endif
298 + # include <string.h>
299 + #endif
300 + #if HAVE_STRINGS_H
301 + # include <strings.h>
302 + #endif
303 + #if HAVE_INTTYPES_H
304 + # include <inttypes.h>
305 + #else
306 + # if HAVE_STDINT_H
307 + #  include <stdint.h>
308 + # endif
309 + #endif
310 + #if HAVE_UNISTD_H
311 + # include <unistd.h>
312 + #endif"
313  
314 + 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 PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi MPI_LIBDIR MPI_INC MPI_F90INC MPI_LIB MPI_F90LIB CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315 + ac_subst_files=''
316 +
317   # Initialize some variables set by options.
318   ac_init_help=
319   ac_init_version=false
# Line 143 | Line 351 | mandir='${prefix}/man'
351   oldincludedir='/usr/include'
352   infodir='${prefix}/info'
353   mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='1.0'
151 PACKAGE_STRING='OOPSE 1.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
354  
355   ac_prev=
356   for ac_option
# Line 196 | Line 397 | do
397    -disable-* | --disable-*)
398      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399      # Reject names that are not valid shell variable names.
400 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
400 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402     { (exit 1); exit 1; }; }
403      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 406 | do
406    -enable-* | --enable-*)
407      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408      # Reject names that are not valid shell variable names.
409 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
409 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411     { (exit 1); exit 1; }; }
412      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 484 | do
484      with_fp=no ;;
485  
486    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 <  | --no-cr | --no-c)
487 >  | --no-cr | --no-c | -n)
488      no_create=yes ;;
489  
490    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 588 | do
588    -with-* | --with-*)
589      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590      # Reject names that are not valid shell variable names.
591 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
591 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592        { echo "$as_me: error: invalid package name: $ac_package" >&2
593     { (exit 1); exit 1; }; }
594      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 601 | do
601    -without-* | --without-*)
602      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603      # Reject names that are not valid shell variable names.
604 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
604 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605        { echo "$as_me: error: invalid package name: $ac_package" >&2
606     { (exit 1); exit 1; }; }
607      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 633 | Try \`$0 --help' for more information." >&2
633    *=*)
634      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635      # Reject names that are not valid shell variable names.
636 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
636 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638     { (exit 1); exit 1; }; }
639      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 643 | Try \`$0 --help' for more information." >&2
643    *)
644      # FIXME: should be removed in autoconf 3.0.
645      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
646 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649      ;;
# Line 457 | Line 658 | for ac_var in bindir sbindir libexecdir datadir syscon
658   fi
659  
660   # Be sure to have absolute paths.
661 + for ac_var in exec_prefix prefix
662 + do
663 +  eval ac_val=$`echo $ac_var`
664 +  case $ac_val in
665 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 +   { (exit 1); exit 1; }; };;
668 +  esac
669 + done
670 +
671 + # Be sure to have absolute paths.
672   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
673 >              localstatedir libdir includedir oldincludedir infodir mandir
674   do
675    eval ac_val=$`echo $ac_var`
676    case $ac_val in
677      [\\/$]* | ?:[\\/]* ) ;;
678 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
678 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679     { (exit 1); exit 1; }; };;
680    esac
681   done
682  
683   # There might be people who depend on the old broken behavior: `$host'
684   # used to hold the argument of --host etc.
685 + # FIXME: To remove some day.
686   build=$build_alias
687   host=$host_alias
688   target=$target_alias
689  
690 < # FIXME: should be removed in autoconf 3.0.
690 > # FIXME: To remove some day.
691   if test "x$host_alias" != x; then
692    if test "x$build_alias" = x; then
693      cross_compiling=maybe
# Line 492 | Line 703 | test "$silent" = yes && exec 6>/dev/null
703  
704   test "$silent" = yes && exec 6>/dev/null
705  
706 +
707   # Find the source files, if location was not specified.
708   if test -z "$srcdir"; then
709    ac_srcdir_defaulted=yes
710    # Try the directory containing this script, then its parent.
711 <  ac_prog=$0
712 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
713 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
711 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
712 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 >         X"$0" : 'X\(//\)[^/]' \| \
714 >         X"$0" : 'X\(//\)$' \| \
715 >         X"$0" : 'X\(/\)' \| \
716 >         .     : '\(.\)' 2>/dev/null ||
717 > echo X"$0" |
718 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 >          /^X\(\/\/\)$/{ s//\1/; q; }
721 >          /^X\(\/\).*/{ s//\1/; q; }
722 >          s/.*/./; q'`
723    srcdir=$ac_confdir
724    if test ! -r $srcdir/$ac_unique_file; then
725      srcdir=..
# Line 508 | Line 729 | if test ! -r $srcdir/$ac_unique_file; then
729   fi
730   if test ! -r $srcdir/$ac_unique_file; then
731    if test "$ac_srcdir_defaulted" = yes; then
732 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
732 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733     { (exit 1); exit 1; }; }
734    else
735 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
735 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736     { (exit 1); exit 1; }; }
737    fi
738   fi
739 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 +   { (exit 1); exit 1; }; }
742   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743   ac_env_build_alias_set=${build_alias+set}
744   ac_env_build_alias_value=$build_alias
# Line 560 | Line 784 | ac_env_MPIF77_set=${MPIF77+set}
784   ac_env_F90FLAGS_value=$F90FLAGS
785   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
786   ac_cv_env_F90FLAGS_value=$F90FLAGS
563 ac_env_MPIF77_set=${MPIF77+set}
564 ac_env_MPIF77_value=$MPIF77
565 ac_cv_env_MPIF77_set=${MPIF77+set}
566 ac_cv_env_MPIF77_value=$MPIF77
787   ac_env_CPP_set=${CPP+set}
788   ac_env_CPP_value=$CPP
789   ac_cv_env_CPP_set=${CPP+set}
# Line 575 | Line 795 | if test "$ac_init_help" = "long"; then
795   if test "$ac_init_help" = "long"; then
796    # Omit some internal or obsolete options to make the list less imposing.
797    # This message is too long to be a string in the A/UX 3.1 sh.
798 <  cat <<EOF
798 >  cat <<_ACEOF
799   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
800  
801   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 816 | EOF
816    -n, --no-create         do not create output files
817        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
818  
819 < EOF
819 > _ACEOF
820  
821 <  cat <<EOF
821 >  cat <<_ACEOF
822   Installation directories:
823    --prefix=PREFIX         install architecture-independent files in PREFIX
824                            [$ac_default_prefix]
# Line 625 | Line 845 | EOF
845    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
846    --infodir=DIR          info documentation [PREFIX/info]
847    --mandir=DIR           man documentation [PREFIX/man]
848 < EOF
848 > _ACEOF
849  
850 <  cat <<\EOF
850 >  cat <<\_ACEOF
851  
852   System types:
853    --build=BUILD     configure for building on BUILD [guessed]
854 <  --host=HOST       build programs to run on HOST [BUILD]
855 < EOF
854 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
855 > _ACEOF
856   fi
857  
858   if test -n "$ac_init_help"; then
859    case $ac_init_help in
860       short | recursive ) echo "Configuration of OOPSE 1.0:";;
861     esac
862 <  cat <<\EOF
862 >  cat <<\_ACEOF
863  
864   Optional Features:
865    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 650 | Line 870 | Optional Packages:
870   Optional Packages:
871    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
873 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
874    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
875 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
875 >  --with-mpi-inc=dir  give the path for MPI-include-files MPI_DIR/include
876    --with-sprng_prefix=PREFIX
877                            Prefix where SPRNG is installed
878    --with-sprng-libdir=PREFIX  SPRNG library directory
879    --with-sprng-include=PREFIX
880                            SPRNG include directory
881 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
662 <  --with-mpi_f90_mods=<dir>
663 <                          Location where MPI f90 modules are installed
881 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
882  
883   Some influential environment variables:
884    CC          C compiler command
# Line 673 | Line 891 | Some influential environment variables:
891    CXXFLAGS    C++ compiler flags
892    F90         Fortran 90 compiler command
893    F90FLAGS    Fortran 90 compiler flags
676  MPIF77      MPI Fortran compiler command
894    CPP         C preprocessor
895  
896   Use these variables to override the choices made by `configure' or to help
897   it to find libraries and programs with nonstandard names/locations.
898  
899   Report bugs to <gezelter@nd.edu>.
900 < EOF
900 > _ACEOF
901   fi
902  
903   if test "$ac_init_help" = "recursive"; then
904    # If there are subdirs, report their specific --help.
905    ac_popdir=`pwd`
906 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
907 <    cd $ac_subdir
908 <    # A "../" for each directory in /$ac_subdir.
692 <    ac_dots=`echo $ac_subdir |
693 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
906 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 >    test -d $ac_dir || continue
908 >    ac_builddir=.
909  
910 <    case $srcdir in
911 <    .) # No --srcdir option.  We are building in place.
912 <      ac_sub_srcdir=$srcdir ;;
913 <    [\\/]* | ?:[\\/]* ) # Absolute path.
914 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
915 <    *) # Relative path.
916 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
702 <    esac
910 > if test "$ac_dir" != .; then
911 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912 >  # A "../" for each directory in $ac_dir_suffix.
913 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914 > else
915 >  ac_dir_suffix= ac_top_builddir=
916 > fi
917  
918 <    # Check for guested configure; otherwise get Cygnus style configure.
919 <    if test -f $ac_sub_srcdir/configure.gnu; then
920 <      echo
921 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
922 <    elif test -f $ac_sub_srcdir/configure; then
918 > case $srcdir in
919 >  .)  # No --srcdir option.  We are building in place.
920 >    ac_srcdir=.
921 >    if test -z "$ac_top_builddir"; then
922 >       ac_top_srcdir=.
923 >    else
924 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925 >    fi ;;
926 >  [\\/]* | ?:[\\/]* )  # Absolute path.
927 >    ac_srcdir=$srcdir$ac_dir_suffix;
928 >    ac_top_srcdir=$srcdir ;;
929 >  *) # Relative path.
930 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932 > esac
933 > # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
934 > # absolute.
935 > ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
936 > ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
937 > ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
938 > ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
939 >
940 >    cd $ac_dir
941 >    # Check for guested configure; otherwise get Cygnus style configure.
942 >    if test -f $ac_srcdir/configure.gnu; then
943        echo
944 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
945 <    elif test -f $ac_sub_srcdir/configure.ac ||
712 <           test -f $ac_sub_srcdir/configure.in; then
944 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
945 >    elif test -f $ac_srcdir/configure; then
946        echo
947 +      $SHELL $ac_srcdir/configure  --help=recursive
948 +    elif test -f $ac_srcdir/configure.ac ||
949 +           test -f $ac_srcdir/configure.in; then
950 +      echo
951        $ac_configure --help
952      else
953 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
953 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954      fi
955      cd $ac_popdir
956    done
# Line 721 | Line 958 | if $ac_init_version; then
958  
959   test -n "$ac_init_help" && exit 0
960   if $ac_init_version; then
961 <  cat <<\EOF
961 >  cat <<\_ACEOF
962   OOPSE configure 1.0
963 < generated by GNU Autoconf 2.50
963 > generated by GNU Autoconf 2.57
964  
965 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
965 > Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
966   Free Software Foundation, Inc.
967   This configure script is free software; the Free Software Foundation
968   gives unlimited permission to copy, distribute and modify it.
969 < EOF
969 > _ACEOF
970    exit 0
971   fi
972   exec 5>config.log
973 < cat >&5 <<EOF
973 > cat >&5 <<_ACEOF
974   This file contains any messages produced by compilers while
975   running configure, to aid debugging if configure makes a mistake.
976  
977   It was created by OOPSE $as_me 1.0, which was
978 < generated by GNU Autoconf 2.50.  Invocation command line was
978 > generated by GNU Autoconf 2.57.  Invocation command line was
979  
980    $ $0 $@
981  
982 < EOF
982 > _ACEOF
983   {
984   cat <<_ASUNAME
985 < ## ---------- ##
986 < ## Platform.  ##
987 < ## ---------- ##
985 > ## --------- ##
986 > ## Platform. ##
987 > ## --------- ##
988  
989   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 766 | Line 1003 | PATH = $PATH
1003   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1004   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1005  
769 PATH = $PATH
770
1006   _ASUNAME
1007 +
1008 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 + for as_dir in $PATH
1010 + do
1011 +  IFS=$as_save_IFS
1012 +  test -z "$as_dir" && as_dir=.
1013 +  echo "PATH: $as_dir"
1014 + done
1015 +
1016   } >&5
1017  
1018 < cat >&5 <<EOF
775 < ## ------------ ##
776 < ## Core tests.  ##
777 < ## ------------ ##
1018 > cat >&5 <<_ACEOF
1019  
779 EOF
1020  
1021 + ## ----------- ##
1022 + ## Core tests. ##
1023 + ## ----------- ##
1024 +
1025 + _ACEOF
1026 +
1027 +
1028   # Keep a trace of the command line.
1029   # Strip out --no-create and --no-recursion so they do not pile up.
1030 + # Strip out --silent because we don't want to record it for future runs.
1031   # Also quote any args containing shell meta-characters.
1032 + # Make two passes to allow for proper duplicate-argument suppression.
1033   ac_configure_args=
1034 + ac_configure_args0=
1035 + ac_configure_args1=
1036   ac_sep=
1037 < for ac_arg
1037 > ac_must_keep_next=false
1038 > for ac_pass in 1 2
1039   do
1040 <  case $ac_arg in
1041 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 <  | --no-cr | --no-c) ;;
1043 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1045 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1047 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1048 <    ac_sep=" " ;;
1049 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1050 <     ac_sep=" " ;;
1051 <  esac
1052 <  # Get rid of the leading space.
1040 >  for ac_arg
1041 >  do
1042 >    case $ac_arg in
1043 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 >    | -silent | --silent | --silen | --sile | --sil)
1046 >      continue ;;
1047 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 >    esac
1050 >    case $ac_pass in
1051 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 >    2)
1053 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 >      if test $ac_must_keep_next = true; then
1055 >        ac_must_keep_next=false # Got value, back to normal.
1056 >      else
1057 >        case $ac_arg in
1058 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1059 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 >          | -with-* | --with-* | -without-* | --without-* | --x)
1062 >            case "$ac_configure_args0 " in
1063 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 >            esac
1065 >            ;;
1066 >          -* ) ac_must_keep_next=true ;;
1067 >        esac
1068 >      fi
1069 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 >      # Get rid of the leading space.
1071 >      ac_sep=" "
1072 >      ;;
1073 >    esac
1074 >  done
1075   done
1076 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078  
1079   # When interrupted or exit'd, cleanup temporary files, and complete
1080   # config.log.  We remove comments because anyway the quotes in there
1081   # would cause problems or look ugly.
1082 + # WARNING: Be sure not to use single quotes in there, as some shells,
1083 + # such as our DU 5.0 friend, will then `close' the trap.
1084   trap 'exit_status=$?
1085    # Save into config.log some information that might help in debugging.
1086 <  echo >&5
1087 <  echo "## ----------------- ##" >&5
1088 <  echo "## Cache variables.  ##" >&5
1089 <  echo "## ----------------- ##" >&5
1090 <  echo >&5
1091 <  # The following way of writing the cache mishandles newlines in values,
1086 >  {
1087 >    echo
1088 >
1089 >    cat <<\_ASBOX
1090 > ## ---------------- ##
1091 > ## Cache variables. ##
1092 > ## ---------------- ##
1093 > _ASBOX
1094 >    echo
1095 >    # The following way of writing the cache mishandles newlines in values,
1096   {
1097    (set) 2>&1 |
1098      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099      *ac_space=\ *)
1100        sed -n \
1101          "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103        ;;
1104      *)
1105        sed -n \
1106 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107        ;;
1108      esac;
1109 < } >&5
1110 <  sed "/^$/d" confdefs.h >conftest.log
1111 <  if test -s conftest.log; then
1112 <    echo >&5
1113 <    echo "## ------------ ##" >&5
1114 <    echo "## confdefs.h.  ##" >&5
1115 <    echo "## ------------ ##" >&5
1116 <    echo >&5
1117 <    cat conftest.log >&5
1118 <  fi
1119 <  (echo; echo) >&5
1120 <  test "$ac_signal" != 0 &&
1121 <    echo "$as_me: caught signal $ac_signal" >&5
1122 <  echo "$as_me: exit $exit_status" >&5
1123 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1109 > }
1110 >    echo
1111 >
1112 >    cat <<\_ASBOX
1113 > ## ----------------- ##
1114 > ## Output variables. ##
1115 > ## ----------------- ##
1116 > _ASBOX
1117 >    echo
1118 >    for ac_var in $ac_subst_vars
1119 >    do
1120 >      eval ac_val=$`echo $ac_var`
1121 >      echo "$ac_var='"'"'$ac_val'"'"'"
1122 >    done | sort
1123 >    echo
1124 >
1125 >    if test -n "$ac_subst_files"; then
1126 >      cat <<\_ASBOX
1127 > ## ------------- ##
1128 > ## Output files. ##
1129 > ## ------------- ##
1130 > _ASBOX
1131 >      echo
1132 >      for ac_var in $ac_subst_files
1133 >      do
1134 >        eval ac_val=$`echo $ac_var`
1135 >        echo "$ac_var='"'"'$ac_val'"'"'"
1136 >      done | sort
1137 >      echo
1138 >    fi
1139 >
1140 >    if test -s confdefs.h; then
1141 >      cat <<\_ASBOX
1142 > ## ----------- ##
1143 > ## confdefs.h. ##
1144 > ## ----------- ##
1145 > _ASBOX
1146 >      echo
1147 >      sed "/^$/d" confdefs.h | sort
1148 >      echo
1149 >    fi
1150 >    test "$ac_signal" != 0 &&
1151 >      echo "$as_me: caught signal $ac_signal"
1152 >    echo "$as_me: exit $exit_status"
1153 >  } >&5
1154 >  rm -f core core.* *.core &&
1155 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156      exit $exit_status
1157       ' 0
1158   for ac_signal in 1 2 13 15; do
1159 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1159 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160   done
1161   ac_signal=0
1162  
# Line 851 | Line 1165 | echo >confdefs.h
1165   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166   echo >confdefs.h
1167  
1168 + # Predefined preprocessor variables.
1169 +
1170 + cat >>confdefs.h <<_ACEOF
1171 + #define PACKAGE_NAME "$PACKAGE_NAME"
1172 + _ACEOF
1173 +
1174 +
1175 + cat >>confdefs.h <<_ACEOF
1176 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 + _ACEOF
1178 +
1179 +
1180 + cat >>confdefs.h <<_ACEOF
1181 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 + _ACEOF
1183 +
1184 +
1185 + cat >>confdefs.h <<_ACEOF
1186 + #define PACKAGE_STRING "$PACKAGE_STRING"
1187 + _ACEOF
1188 +
1189 +
1190 + cat >>confdefs.h <<_ACEOF
1191 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 + _ACEOF
1193 +
1194 +
1195   # Let the site file select an alternate cache file if it wants to.
1196   # Prefer explicitly selected file to automatically selected ones.
1197   if test -z "$CONFIG_SITE"; then
# Line 862 | Line 1203 | for ac_site_file in $CONFIG_SITE; do
1203   fi
1204   for ac_site_file in $CONFIG_SITE; do
1205    if test -r "$ac_site_file"; then
1206 <    { echo "$as_me:865: loading site script $ac_site_file" >&5
1206 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207   echo "$as_me: loading site script $ac_site_file" >&6;}
1208 <    cat "$ac_site_file" >&5
1208 >    sed 's/^/| /' "$ac_site_file" >&5
1209      . "$ac_site_file"
1210    fi
1211   done
# Line 873 | Line 1214 | if test -r "$cache_file"; then
1214    # Some versions of bash will fail to source /dev/null (special
1215    # files actually), so we avoid doing that.
1216    if test -f "$cache_file"; then
1217 <    { echo "$as_me:876: loading cache $cache_file" >&5
1217 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218   echo "$as_me: loading cache $cache_file" >&6;}
1219      case $cache_file in
1220        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 881 | Line 1222 | else
1222      esac
1223    fi
1224   else
1225 <  { echo "$as_me:884: creating cache $cache_file" >&5
1225 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226   echo "$as_me: creating cache $cache_file" >&6;}
1227    >$cache_file
1228   fi
1229  
1230   # Check that the precious variables saved in the cache have kept the same
1231   # value.
1232 < ac_suggest_removing_cache=false
1232 > ac_cache_corrupted=false
1233   for ac_var in `(set) 2>&1 |
1234                 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235    eval ac_old_set=\$ac_cv_env_${ac_var}_set
# Line 897 | Line 1238 | for ac_var in `(set) 2>&1 |
1238    eval ac_new_val="\$ac_env_${ac_var}_value"
1239    case $ac_old_set,$ac_new_set in
1240      set,)
1241 <      { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 <      ac_suggest_removing_cache=: ;;
1241 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 >      ac_cache_corrupted=: ;;
1244      ,set)
1245 <      { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
1246 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1247 <      ac_suggest_removing_cache=: ;;
1245 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 >      ac_cache_corrupted=: ;;
1248      ,);;
1249      *)
1250        if test "x$ac_old_val" != "x$ac_new_val"; then
1251 <        { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
1252 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1253 <        { echo "$as_me:912: WARNING:   former value:  $ac_old_val" >&5
1254 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1255 <        { echo "$as_me:914: WARNING:   current value: $ac_new_val" >&5
1256 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1257 <        ac_suggest_removing_cache=:
1251 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1254 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1255 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1256 > echo "$as_me:   current value: $ac_new_val" >&2;}
1257 >        ac_cache_corrupted=:
1258        fi;;
1259    esac
1260 +  # Pass precious variables to config.status.
1261 +  if test "$ac_new_set" = set; then
1262 +    case $ac_new_val in
1263 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 +    *) ac_arg=$ac_var=$ac_new_val ;;
1266 +    esac
1267 +    case " $ac_configure_args " in
1268 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1269 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 +    esac
1271 +  fi
1272   done
1273 < if $ac_suggest_removing_cache; then
1274 <  { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
1275 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1276 <  { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
1277 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1273 > if $ac_cache_corrupted; then
1274 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 >   { (exit 1); exit 1; }; }
1279   fi
1280  
1281   ac_ext=c
# Line 930 | Line 1284 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing;
1284   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286  
1287 < case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1288 <  *c*,-n*) ECHO_N= ECHO_C='
935 < ' ECHO_T='      ' ;;
936 <  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
937 <  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
938 < esac
939 < echo "#! $SHELL" >conftest.sh
940 < echo  "exit 0"   >>conftest.sh
941 < chmod +x conftest.sh
942 < if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
943 <  (PATH=".;."; conftest.sh) 2>&5
944 <  ac_status=$?
945 <  echo "$as_me:945: \$? = $ac_status" >&5
946 <  (exit $ac_status); }; then
947 <  ac_path_separator=';'
948 < else
949 <  ac_path_separator=:
950 < fi
951 < PATH_SEPARATOR="$ac_path_separator"
952 < rm -f conftest.sh
1287 >
1288 >
1289  
1290 +
1291 +
1292 +
1293 +
1294 +
1295 +
1296 +
1297 +
1298 +
1299 +
1300 +
1301 +
1302 +
1303 +
1304 +
1305 +
1306 +
1307 +
1308 +
1309 +
1310 +
1311 +
1312 +
1313   ac_aux_dir=
1314   for ac_dir in ac-tools $srcdir/ac-tools; do
1315    if test -f $ac_dir/install-sh; then
# Line 968 | Line 1327 | if test -z "$ac_aux_dir"; then
1327    fi
1328   done
1329   if test -z "$ac_aux_dir"; then
1330 <  { { echo "$as_me:971: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1330 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1331   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1332     { (exit 1); exit 1; }; }
1333   fi
# Line 976 | Line 1335 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1335   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1337  
1338 +
1339   # This file is part of Autoconf.                       -*- Autoconf -*-
1340   # Programming languages support.
1341   # Copyright 2000, 2001
# Line 1026 | Line 1386 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1386   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1387   # many others).
1388  
1389 +
1390   # Table of Contents:
1391   #
1392   # 1. Language selection
# Line 1061 | Line 1422 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1422   # ACTION-IF-NOT-FOUND.
1423   # _AC_LIST_MEMBER_IF
1424  
1425 +
1426 +
1427   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1428   # -------------------------------------------------
1429   #
# Line 1091 | Line 1454 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1454   # FIXME: Get rid of this macro.
1455   # _AC_LINKER_OPTION
1456  
1457 +
1458 +
1459   ## ----------------------- ##
1460   ## 1. Language selection.  ##
1461   ## ----------------------- ##
# Line 1102 | Line 1467 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1467   # AC_LANG(Fortran 90)
1468   # -------------------
1469  
1470 +
1471 +
1472   # _AC_LANG_ABBREV(Fortran 90)
1473   # ---------------------------
1474  
1475 +
1476 +
1477   # ----------------------------- #
1478   # 1c. The Fortran 95 language.  #
1479   # ----------------------------- #
# Line 1112 | Line 1481 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1481   # AC_LANG(Fortran 95)
1482   # -------------------
1483  
1484 +
1485 +
1486   # _AC_LANG_ABBREV(Fortran 95)
1487   # ---------------------------
1488  
1489 +
1490 +
1491   ## ---------------------- ##
1492   ## 2.Producing programs.  ##
1493   ## ---------------------- ##
# Line 1126 | Line 1499 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1499   # AC_LANG_SOURCE(Fortran 90)(BODY)
1500   # --------------------------------
1501  
1502 +
1503 +
1504   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1505   # -----------------------------------------------
1506  
1507 +
1508   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1509   # --------------------------------------------
1510  
1511 +
1512 +
1513   # ------------------------ #
1514   # 2c. Fortran 95 sources.  #
1515   # ------------------------ #
# Line 1139 | Line 1517 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1517   # AC_LANG_SOURCE(Fortran 95)(BODY)
1518   # --------------------------------
1519  
1520 +
1521   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1522   # -----------------------------------------------
1523  
1524 +
1525   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1526   # --------------------------------------------
1527  
1528 +
1529 +
1530   ## -------------------------------------------- ##
1531   ## 3. Looking for Compilers and Preprocessors.  ##
1532   ## -------------------------------------------- ##
# Line 1153 | Line 1535 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1535   # 3b. The Fortran 90 compiler.  #
1536   # ----------------------------- #
1537  
1538 +
1539   # AC_LANG_PREPROC(Fortran 90)
1540   # ---------------------------
1541   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1542  
1543 +
1544 +
1545   # AC_LANG_COMPILER(Fortran 90)
1546   # ----------------------------
1547   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1548   # AC_REQUIRE'able.
1549  
1550 +
1551 +
1552   # AC_PROG_F90([COMPILERS...])
1553   # ---------------------------
1554   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1178 | Line 1565 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1565   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1566   # AC_PROG_F90
1567  
1568 +
1569   # ----------------------------- #
1570   # 3c. The Fortran 95 compiler.  #
1571   # ----------------------------- #
1572  
1573 +
1574   # AC_LANG_PREPROC(Fortran 95)
1575   # ---------------------------
1576   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1577  
1578 +
1579 +
1580   # AC_LANG_COMPILER(Fortran 95)
1581   # ----------------------------
1582   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1583   # AC_REQUIRE'able.
1584  
1585 +
1586 +
1587   # AC_PROG_F95([COMPILERS...])
1588   # ---------------------------
1589   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1204 | Line 1597 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1597   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1598   # AC_PROG_F95
1599  
1600 +
1601   ## ------------------------------- ##
1602   ## 4. Compilers' characteristics.  ##
1603   ## ------------------------------- ##
1604  
1605 +
1606   # ---------------------------------------- #
1607   # 4b. Fortan 90 compiler characteristics.  #
1608   # ---------------------------------------- #
1609  
1610 +
1611   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1612   # -------------------------------------------------
1613   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1221 | Line 1617 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1617   # so that any link flags that are echoed by the compiler appear as
1618   # space-separated items.
1619   # _AC_PROG_F90_V_OUTPUT
1620 +
1621  
1622   # _AC_PROG_F90_V
1623   # --------------
# Line 1231 | Line 1628 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1628   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1629   # _AC_PROG_F90_V
1630  
1631 +
1632   # AC_F90_LIBRARY_LDFLAGS
1633   # ----------------------
1634   #
# Line 1258 | Line 1656 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1656   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1657   # AC_F90_LIBRARY_LDFLAGS
1658  
1659 +
1660   # _AC_F90_NAME_MANGLING
1661   # ---------------------
1662   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1277 | Line 1676 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1676  
1677   # The replacement is empty.
1678  
1679 +
1680 +
1681   # AC_F90_WRAPPERS
1682   # ---------------
1683   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1285 | Line 1686 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1686   # scheme used by the Fortran 90 compiler.
1687   # AC_F90_WRAPPERS
1688  
1689 +
1690   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1691   # ------------------------------------
1692   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1292 | Line 1694 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1694   # argument is not supplied, it defaults to NAME.
1695   # AC_F90_FUNC
1696  
1697 +
1698   # ---------------------------------------- #
1699   # 4c. Fortan 95 compiler characteristics.  #
1700   # ---------------------------------------- #
1701  
1702 +
1703   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1704   # -------------------------------------------------
1705   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1306 | Line 1710 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1710   # space-separated items.
1711   # _AC_PROG_F95_V_OUTPUT
1712  
1713 +
1714   # _AC_PROG_F95_V
1715   # --------------
1716   #
# Line 1315 | Line 1720 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1720   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1721   # _AC_PROG_F95_V
1722  
1723 +
1724   # AC_F95_LIBRARY_LDFLAGS
1725   # ----------------------
1726   #
# Line 1342 | Line 1748 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1748   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1749   # AC_F95_LIBRARY_LDFLAGS
1750  
1751 +
1752   # _AC_F95_NAME_MANGLING
1753   # ---------------------
1754   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1361 | Line 1768 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1768  
1769   # The replacement is empty.
1770  
1771 +
1772 +
1773   # AC_F95_WRAPPERS
1774   # ---------------
1775   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1369 | Line 1778 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1778   # scheme used by the Fortran 95 compiler.
1779   # AC_F95_WRAPPERS
1780  
1781 +
1782   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1783   # ------------------------------------
1784   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1376 | Line 1786 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1786   # argument is not supplied, it defaults to NAME.
1787   # AC_F95_FUNC
1788  
1789 +
1790 +
1791 +
1792 +
1793 +
1794 +
1795 +
1796 +
1797 +
1798 +
1799 +
1800 +
1801 +
1802 +
1803 +
1804 +
1805 +
1806 +
1807 +
1808 +
1809 +
1810 +
1811 +
1812 +
1813 +
1814 +
1815 +
1816 +
1817 +
1818 +
1819 +
1820 +
1821 +
1822 +
1823 +
1824 +
1825 +
1826 +
1827 +
1828 +
1829 +
1830 +
1831 +
1832 +
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839 +
1840   # set program name
1841   PROGNAME="oopse"
1842 +
1843  
1844   # there are two ways to do debugging.  One with the --enable-debug flag
1845   # and one using the DEBUG environment variable
# Line 1390 | Line 1852 | cat >>confdefs.h <<\EOF
1852   fi;
1853   if test "${DEBUG}"; then
1854  
1855 < cat >>confdefs.h <<\EOF
1855 > cat >>confdefs.h <<\_ACEOF
1856   #define debug 1
1857 < EOF
1857 > _ACEOF
1858  
1859    msg="$msg, debug mode"
1860   fi
1861  
1862 +
1863   # who am i
1864   # Make sure we can run config.sub.
1865   $ac_config_sub sun4 >/dev/null 2>&1 ||
1866 <  { { echo "$as_me:1403: error: cannot run $ac_config_sub" >&5
1866 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1867   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1868     { (exit 1); exit 1; }; }
1869  
1870 < echo "$as_me:1407: checking build system type" >&5
1870 > echo "$as_me:$LINENO: checking build system type" >&5
1871   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1872   if test "${ac_cv_build+set}" = set; then
1873    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1413 | Line 1876 | test -z "$ac_cv_build_alias" &&
1876   test -z "$ac_cv_build_alias" &&
1877    ac_cv_build_alias=`$ac_config_guess`
1878   test -z "$ac_cv_build_alias" &&
1879 <  { { echo "$as_me:1416: error: cannot guess build type; you must specify one" >&5
1879 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1880   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1881     { (exit 1); exit 1; }; }
1882   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1883 <  { { echo "$as_me:1420: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1884 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1883 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1884 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1885     { (exit 1); exit 1; }; }
1886  
1887   fi
1888 < echo "$as_me:1425: result: $ac_cv_build" >&5
1888 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1889   echo "${ECHO_T}$ac_cv_build" >&6
1890   build=$ac_cv_build
1891   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1892   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1893   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1894  
1895 < echo "$as_me:1432: checking host system type" >&5
1895 >
1896 > echo "$as_me:$LINENO: checking host system type" >&5
1897   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1898   if test "${ac_cv_host+set}" = set; then
1899    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1438 | Line 1902 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1902   test -z "$ac_cv_host_alias" &&
1903    ac_cv_host_alias=$ac_cv_build_alias
1904   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1905 <  { { echo "$as_me:1441: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1905 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1906   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1907     { (exit 1); exit 1; }; }
1908  
1909   fi
1910 < echo "$as_me:1446: result: $ac_cv_host" >&5
1910 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1911   echo "${ECHO_T}$ac_cv_host" >&6
1912   host=$ac_cv_host
1913   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1914   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1915   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1916  
1917 +
1918 +
1919   ac_ext=c
1920   ac_cpp='$CPP $CPPFLAGS'
1921   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1460 | Line 1926 | echo "$as_me:1463: checking for $ac_word" >&5
1926    do
1927      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1928   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1929 < echo "$as_me:1463: checking for $ac_word" >&5
1929 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1930   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931   if test "${ac_cv_prog_CC+set}" = set; then
1932    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1468 | Line 1934 | else
1934    if test -n "$CC"; then
1935    ac_cv_prog_CC="$CC" # Let the user override the test.
1936   else
1937 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1938 < ac_dummy="$PATH"
1939 < for ac_dir in $ac_dummy; do
1940 <  IFS=$ac_save_IFS
1941 <  test -z "$ac_dir" && ac_dir=.
1942 <  $as_executable_p "$ac_dir/$ac_word" || continue
1943 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1944 < echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1945 < break
1937 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 > for as_dir in $PATH
1939 > do
1940 >  IFS=$as_save_IFS
1941 >  test -z "$as_dir" && as_dir=.
1942 >  for ac_exec_ext in '' $ac_executable_extensions; do
1943 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1945 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 >    break 2
1947 >  fi
1948   done
1949 + done
1950  
1951   fi
1952   fi
1953   CC=$ac_cv_prog_CC
1954   if test -n "$CC"; then
1955 <  echo "$as_me:1486: result: $CC" >&5
1955 >  echo "$as_me:$LINENO: result: $CC" >&5
1956   echo "${ECHO_T}$CC" >&6
1957   else
1958 <  echo "$as_me:1489: result: no" >&5
1958 >  echo "$as_me:$LINENO: result: no" >&5
1959   echo "${ECHO_T}no" >&6
1960   fi
1961  
# Line 1499 | Line 1968 | echo "$as_me:1502: checking for $ac_word" >&5
1968   do
1969    # Extract the first word of "$ac_prog", so it can be a program name with args.
1970   set dummy $ac_prog; ac_word=$2
1971 < echo "$as_me:1502: checking for $ac_word" >&5
1971 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1972   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1507 | Line 1976 | else
1976    if test -n "$ac_ct_CC"; then
1977    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1978   else
1979 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1980 < ac_dummy="$PATH"
1981 < for ac_dir in $ac_dummy; do
1982 <  IFS=$ac_save_IFS
1983 <  test -z "$ac_dir" && ac_dir=.
1984 <  $as_executable_p "$ac_dir/$ac_word" || continue
1985 < ac_cv_prog_ac_ct_CC="$ac_prog"
1986 < echo "$as_me:1517: found $ac_dir/$ac_word" >&5
1987 < break
1979 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 > for as_dir in $PATH
1981 > do
1982 >  IFS=$as_save_IFS
1983 >  test -z "$as_dir" && as_dir=.
1984 >  for ac_exec_ext in '' $ac_executable_extensions; do
1985 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 >    ac_cv_prog_ac_ct_CC="$ac_prog"
1987 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 >    break 2
1989 >  fi
1990   done
1991 + done
1992  
1993   fi
1994   fi
1995   ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996   if test -n "$ac_ct_CC"; then
1997 <  echo "$as_me:1525: result: $ac_ct_CC" >&5
1997 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998   echo "${ECHO_T}$ac_ct_CC" >&6
1999   else
2000 <  echo "$as_me:1528: result: no" >&5
2000 >  echo "$as_me:$LINENO: result: no" >&5
2001   echo "${ECHO_T}no" >&6
2002   fi
2003  
# Line 1535 | Line 2007 | test -z "$CC" && { { echo "$as_me:1538: error: no acce
2007    CC=$ac_ct_CC
2008   fi
2009  
2010 < test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5
2011 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2010 >
2011 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 > See \`config.log' for more details." >&5
2013 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 > See \`config.log' for more details." >&2;}
2015     { (exit 1); exit 1; }; }
2016  
2017 + # Provide some information about the compiler.
2018 + echo "$as_me:$LINENO:" \
2019 +     "checking for C compiler version" >&5
2020 + ac_compiler=`set X $ac_compile; echo $2`
2021 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2023 +  ac_status=$?
2024 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 +  (exit $ac_status); }
2026 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2028 +  ac_status=$?
2029 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 +  (exit $ac_status); }
2031 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2033 +  ac_status=$?
2034 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 +  (exit $ac_status); }
2036 +
2037   cat >conftest.$ac_ext <<_ACEOF
2038 < #line 1543 "configure"
2039 < #include "confdefs.h"
2038 > #line $LINENO "configure"
2039 > /* confdefs.h.  */
2040 > _ACEOF
2041 > cat confdefs.h >>conftest.$ac_ext
2042 > cat >>conftest.$ac_ext <<_ACEOF
2043 > /* end confdefs.h.  */
2044  
2045   int
2046   main ()
# Line 1552 | Line 2051 | ac_clean_files="$ac_clean_files a.out a.exe"
2051   }
2052   _ACEOF
2053   ac_clean_files_save=$ac_clean_files
2054 < ac_clean_files="$ac_clean_files a.out a.exe"
2054 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2055   # Try to create an executable without -o first, disregard a.out.
2056 < # It will help us diagnose broken compiler, and finding out an intuition
2056 > # It will help us diagnose broken compilers, and finding out an intuition
2057   # of exeext.
2058 < echo "$as_me:1559: checking for C compiler default output" >&5
2058 > echo "$as_me:$LINENO: checking for C compiler default output" >&5
2059   echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2060   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2061 < if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5
2061 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2062    (eval $ac_link_default) 2>&5
2063    ac_status=$?
2064 <  echo "$as_me:1565: \$? = $ac_status" >&5
2064 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065    (exit $ac_status); }; then
2066 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2066 >  # Find the output, starting from the most likely.  This scheme is
2067 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2068 > # resort.
2069 >
2070 > # Be careful to initialize this variable, since it used to be cached.
2071 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2072 > ac_cv_exeext=
2073 > # b.out is created by i960 compilers.
2074 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2075 > do
2076 >  test -f "$ac_file" || continue
2077    case $ac_file in
2078 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2079 <    a.out ) # We found the default executable, but exeext='' is most
2080 <            # certainly right.
2081 <            break;;
2082 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2083 <          export ac_cv_exeext
2084 <          break;;
2085 <    * ) break;;
2078 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2079 >        ;;
2080 >    conftest.$ac_ext )
2081 >        # This is the source file.
2082 >        ;;
2083 >    [ab].out )
2084 >        # We found the default executable, but exeext='' is most
2085 >        # certainly right.
2086 >        break;;
2087 >    *.* )
2088 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2089 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2090 >        # but it would be cool to find out if it's true.  Does anybody
2091 >        # maintain Libtool? --akim.
2092 >        export ac_cv_exeext
2093 >        break;;
2094 >    * )
2095 >        break;;
2096    esac
2097   done
2098   else
2099    echo "$as_me: failed program was:" >&5
2100 < cat conftest.$ac_ext >&5
2101 < { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
2102 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2100 > sed 's/^/| /' conftest.$ac_ext >&5
2101 >
2102 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2103 > See \`config.log' for more details." >&5
2104 > echo "$as_me: error: C compiler cannot create executables
2105 > See \`config.log' for more details." >&2;}
2106     { (exit 77); exit 77; }; }
2107   fi
2108  
2109   ac_exeext=$ac_cv_exeext
2110 < echo "$as_me:1588: result: $ac_file" >&5
2110 > echo "$as_me:$LINENO: result: $ac_file" >&5
2111   echo "${ECHO_T}$ac_file" >&6
2112  
2113   # Check the compiler produces executables we can run.  If not, either
2114   # the compiler is broken, or we cross compile.
2115 < echo "$as_me:1593: checking whether the C compiler works" >&5
2115 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2116   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2117   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2118   # If not cross compiling, check that we can run a simple program.
2119   if test "$cross_compiling" != yes; then
2120    if { ac_try='./$ac_file'
2121 <  { (eval echo "$as_me:1599: \"$ac_try\"") >&5
2121 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122    (eval $ac_try) 2>&5
2123    ac_status=$?
2124 <  echo "$as_me:1602: \$? = $ac_status" >&5
2124 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125    (exit $ac_status); }; }; then
2126      cross_compiling=no
2127    else
2128      if test "$cross_compiling" = maybe; then
2129          cross_compiling=yes
2130      else
2131 <        { { echo "$as_me:1609: error: cannot run C compiled programs.
2132 < If you meant to cross compile, use \`--host'." >&5
2131 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2132 > If you meant to cross compile, use \`--host'.
2133 > See \`config.log' for more details." >&5
2134   echo "$as_me: error: cannot run C compiled programs.
2135 < If you meant to cross compile, use \`--host'." >&2;}
2135 > If you meant to cross compile, use \`--host'.
2136 > See \`config.log' for more details." >&2;}
2137     { (exit 1); exit 1; }; }
2138      fi
2139    fi
2140   fi
2141 < echo "$as_me:1617: result: yes" >&5
2141 > echo "$as_me:$LINENO: result: yes" >&5
2142   echo "${ECHO_T}yes" >&6
2143  
2144 < rm -f a.out a.exe conftest$ac_cv_exeext
2144 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2145   ac_clean_files=$ac_clean_files_save
2146   # Check the compiler produces executables we can run.  If not, either
2147   # the compiler is broken, or we cross compile.
2148 < echo "$as_me:1624: checking whether we are cross compiling" >&5
2148 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2149   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2150 < echo "$as_me:1626: result: $cross_compiling" >&5
2150 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2151   echo "${ECHO_T}$cross_compiling" >&6
2152  
2153 < echo "$as_me:1629: checking for executable suffix" >&5
2154 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2155 < if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
2153 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2154 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2155 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2156    (eval $ac_link) 2>&5
2157    ac_status=$?
2158 <  echo "$as_me:1634: \$? = $ac_status" >&5
2158 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159    (exit $ac_status); }; then
2160    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2161   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2162   # work properly (i.e., refer to `conftest.exe'), while it won't with
2163   # `rm'.
2164 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2164 > for ac_file in conftest.exe conftest conftest.*; do
2165 >  test -f "$ac_file" || continue
2166    case $ac_file in
2167 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2167 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2168      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169            export ac_cv_exeext
2170            break;;
# Line 1647 | Line 2172 | else
2172    esac
2173   done
2174   else
2175 <  { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
2176 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2175 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2176 > See \`config.log' for more details." >&5
2177 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2178 > See \`config.log' for more details." >&2;}
2179     { (exit 1); exit 1; }; }
2180   fi
2181  
2182   rm -f conftest$ac_cv_exeext
2183 < echo "$as_me:1656: result: $ac_cv_exeext" >&5
2183 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2184   echo "${ECHO_T}$ac_cv_exeext" >&6
2185  
2186   rm -f conftest.$ac_ext
2187   EXEEXT=$ac_cv_exeext
2188   ac_exeext=$EXEEXT
2189 < echo "$as_me:1662: checking for object suffix" >&5
2190 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2189 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2190 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2191   if test "${ac_cv_objext+set}" = set; then
2192    echo $ECHO_N "(cached) $ECHO_C" >&6
2193   else
2194    cat >conftest.$ac_ext <<_ACEOF
2195 < #line 1668 "configure"
2196 < #include "confdefs.h"
2195 > #line $LINENO "configure"
2196 > /* confdefs.h.  */
2197 > _ACEOF
2198 > cat confdefs.h >>conftest.$ac_ext
2199 > cat >>conftest.$ac_ext <<_ACEOF
2200 > /* end confdefs.h.  */
2201  
2202   int
2203   main ()
# Line 1677 | Line 2208 | if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
2208   }
2209   _ACEOF
2210   rm -f conftest.o conftest.obj
2211 < if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
2211 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212    (eval $ac_compile) 2>&5
2213    ac_status=$?
2214 <  echo "$as_me:1683: \$? = $ac_status" >&5
2214 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215    (exit $ac_status); }; then
2216    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217    case $ac_file in
2218 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2218 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2219      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2220         break;;
2221    esac
2222   done
2223   else
2224    echo "$as_me: failed program was:" >&5
2225 < cat conftest.$ac_ext >&5
2226 < { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
2227 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2225 > sed 's/^/| /' conftest.$ac_ext >&5
2226 >
2227 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2228 > See \`config.log' for more details." >&5
2229 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2230 > See \`config.log' for more details." >&2;}
2231     { (exit 1); exit 1; }; }
2232   fi
2233  
2234   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2235   fi
2236 < echo "$as_me:1702: result: $ac_cv_objext" >&5
2236 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2237   echo "${ECHO_T}$ac_cv_objext" >&6
2238   OBJEXT=$ac_cv_objext
2239   ac_objext=$OBJEXT
2240 < echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
2240 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2241   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2242   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2243    echo $ECHO_N "(cached) $ECHO_C" >&6
2244   else
2245    cat >conftest.$ac_ext <<_ACEOF
2246 < #line 1712 "configure"
2247 < #include "confdefs.h"
2246 > #line $LINENO "configure"
2247 > /* confdefs.h.  */
2248 > _ACEOF
2249 > cat confdefs.h >>conftest.$ac_ext
2250 > cat >>conftest.$ac_ext <<_ACEOF
2251 > /* end confdefs.h.  */
2252  
2253   int
2254   main ()
# Line 1724 | Line 2262 | if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
2262   }
2263   _ACEOF
2264   rm -f conftest.$ac_objext
2265 < if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
2265 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266    (eval $ac_compile) 2>&5
2267    ac_status=$?
2268 <  echo "$as_me:1730: \$? = $ac_status" >&5
2268 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269    (exit $ac_status); } &&
2270           { ac_try='test -s conftest.$ac_objext'
2271 <  { (eval echo "$as_me:1733: \"$ac_try\"") >&5
2271 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272    (eval $ac_try) 2>&5
2273    ac_status=$?
2274 <  echo "$as_me:1736: \$? = $ac_status" >&5
2274 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275    (exit $ac_status); }; }; then
2276    ac_compiler_gnu=yes
2277   else
2278    echo "$as_me: failed program was:" >&5
2279 < cat conftest.$ac_ext >&5
2279 > sed 's/^/| /' conftest.$ac_ext >&5
2280 >
2281   ac_compiler_gnu=no
2282   fi
2283   rm -f conftest.$ac_objext conftest.$ac_ext
2284   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2285  
2286   fi
2287 < echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
2287 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2288   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2289   GCC=`test $ac_compiler_gnu = yes && echo yes`
2290   ac_test_CFLAGS=${CFLAGS+set}
2291   ac_save_CFLAGS=$CFLAGS
2292   CFLAGS="-g"
2293 < echo "$as_me:1754: checking whether $CC accepts -g" >&5
2293 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2294   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2295   if test "${ac_cv_prog_cc_g+set}" = set; then
2296    echo $ECHO_N "(cached) $ECHO_C" >&6
2297   else
2298    cat >conftest.$ac_ext <<_ACEOF
2299 < #line 1760 "configure"
2300 < #include "confdefs.h"
2299 > #line $LINENO "configure"
2300 > /* confdefs.h.  */
2301 > _ACEOF
2302 > cat confdefs.h >>conftest.$ac_ext
2303 > cat >>conftest.$ac_ext <<_ACEOF
2304 > /* end confdefs.h.  */
2305  
2306   int
2307   main ()
# Line 1769 | Line 2312 | if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
2312   }
2313   _ACEOF
2314   rm -f conftest.$ac_objext
2315 < if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
2315 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316    (eval $ac_compile) 2>&5
2317    ac_status=$?
2318 <  echo "$as_me:1775: \$? = $ac_status" >&5
2318 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319    (exit $ac_status); } &&
2320           { ac_try='test -s conftest.$ac_objext'
2321 <  { (eval echo "$as_me:1778: \"$ac_try\"") >&5
2321 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322    (eval $ac_try) 2>&5
2323    ac_status=$?
2324 <  echo "$as_me:1781: \$? = $ac_status" >&5
2324 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325    (exit $ac_status); }; }; then
2326    ac_cv_prog_cc_g=yes
2327   else
2328    echo "$as_me: failed program was:" >&5
2329 < cat conftest.$ac_ext >&5
2329 > sed 's/^/| /' conftest.$ac_ext >&5
2330 >
2331   ac_cv_prog_cc_g=no
2332   fi
2333   rm -f conftest.$ac_objext conftest.$ac_ext
2334   fi
2335 < echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
2335 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2336   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2337   if test "$ac_test_CFLAGS" = set; then
2338    CFLAGS=$ac_save_CFLAGS
# Line 1804 | Line 2348 | fi
2348    else
2349      CFLAGS=
2350    fi
2351 + fi
2352 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2353 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2354 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2355 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2356 + else
2357 +  ac_cv_prog_cc_stdc=no
2358 + ac_save_CC=$CC
2359 + cat >conftest.$ac_ext <<_ACEOF
2360 + #line $LINENO "configure"
2361 + /* confdefs.h.  */
2362 + _ACEOF
2363 + cat confdefs.h >>conftest.$ac_ext
2364 + cat >>conftest.$ac_ext <<_ACEOF
2365 + /* end confdefs.h.  */
2366 + #include <stdarg.h>
2367 + #include <stdio.h>
2368 + #include <sys/types.h>
2369 + #include <sys/stat.h>
2370 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2371 + struct buf { int x; };
2372 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2373 + static char *e (p, i)
2374 +     char **p;
2375 +     int i;
2376 + {
2377 +  return p[i];
2378 + }
2379 + static char *f (char * (*g) (char **, int), char **p, ...)
2380 + {
2381 +  char *s;
2382 +  va_list v;
2383 +  va_start (v,p);
2384 +  s = g (p, va_arg (v,int));
2385 +  va_end (v);
2386 +  return s;
2387 + }
2388 + int test (int i, double x);
2389 + struct s1 {int (*f) (int a);};
2390 + struct s2 {int (*f) (double a);};
2391 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2392 + int argc;
2393 + char **argv;
2394 + int
2395 + main ()
2396 + {
2397 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2398 +  ;
2399 +  return 0;
2400 + }
2401 + _ACEOF
2402 + # Don't try gcc -ansi; that turns off useful extensions and
2403 + # breaks some systems' header files.
2404 + # AIX                   -qlanglvl=ansi
2405 + # Ultrix and OSF/1      -std1
2406 + # HP-UX 10.20 and later -Ae
2407 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2408 + # SVR4                  -Xc -D__EXTENSIONS__
2409 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2410 + do
2411 +  CC="$ac_save_CC $ac_arg"
2412 +  rm -f conftest.$ac_objext
2413 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 +  (eval $ac_compile) 2>&5
2415 +  ac_status=$?
2416 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 +  (exit $ac_status); } &&
2418 +         { ac_try='test -s conftest.$ac_objext'
2419 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 +  (eval $ac_try) 2>&5
2421 +  ac_status=$?
2422 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 +  (exit $ac_status); }; }; then
2424 +  ac_cv_prog_cc_stdc=$ac_arg
2425 + break
2426 + else
2427 +  echo "$as_me: failed program was:" >&5
2428 + sed 's/^/| /' conftest.$ac_ext >&5
2429 +
2430   fi
2431 + rm -f conftest.$ac_objext
2432 + done
2433 + rm -f conftest.$ac_ext conftest.$ac_objext
2434 + CC=$ac_save_CC
2435 +
2436 + fi
2437 +
2438 + case "x$ac_cv_prog_cc_stdc" in
2439 +  x|xno)
2440 +    echo "$as_me:$LINENO: result: none needed" >&5
2441 + echo "${ECHO_T}none needed" >&6 ;;
2442 +  *)
2443 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2444 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2445 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2446 + esac
2447 +
2448   # Some people use a C++ compiler to compile C.  Since we use `exit',
2449   # in C++ we need to declare it.  In case someone uses the same compiler
2450   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1815 | Line 2455 | if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
2455   #endif
2456   _ACEOF
2457   rm -f conftest.$ac_objext
2458 < if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
2458 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459    (eval $ac_compile) 2>&5
2460    ac_status=$?
2461 <  echo "$as_me:1821: \$? = $ac_status" >&5
2461 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462    (exit $ac_status); } &&
2463           { ac_try='test -s conftest.$ac_objext'
2464 <  { (eval echo "$as_me:1824: \"$ac_try\"") >&5
2464 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465    (eval $ac_try) 2>&5
2466    ac_status=$?
2467 <  echo "$as_me:1827: \$? = $ac_status" >&5
2467 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468    (exit $ac_status); }; }; then
2469    for ac_declaration in \
2470     ''\
# Line 1836 | Line 2476 | do
2476     'void exit (int);'
2477   do
2478    cat >conftest.$ac_ext <<_ACEOF
2479 < #line 1839 "configure"
2480 < #include "confdefs.h"
2479 > #line $LINENO "configure"
2480 > /* confdefs.h.  */
2481 > _ACEOF
2482 > cat confdefs.h >>conftest.$ac_ext
2483 > cat >>conftest.$ac_ext <<_ACEOF
2484 > /* end confdefs.h.  */
2485   #include <stdlib.h>
2486   $ac_declaration
2487   int
# Line 1849 | Line 2493 | if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
2493   }
2494   _ACEOF
2495   rm -f conftest.$ac_objext
2496 < if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
2496 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497    (eval $ac_compile) 2>&5
2498    ac_status=$?
2499 <  echo "$as_me:1855: \$? = $ac_status" >&5
2499 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500    (exit $ac_status); } &&
2501           { ac_try='test -s conftest.$ac_objext'
2502 <  { (eval echo "$as_me:1858: \"$ac_try\"") >&5
2502 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503    (eval $ac_try) 2>&5
2504    ac_status=$?
2505 <  echo "$as_me:1861: \$? = $ac_status" >&5
2505 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506    (exit $ac_status); }; }; then
2507    :
2508   else
2509    echo "$as_me: failed program was:" >&5
2510 < cat conftest.$ac_ext >&5
2510 > sed 's/^/| /' conftest.$ac_ext >&5
2511 >
2512   continue
2513   fi
2514   rm -f conftest.$ac_objext conftest.$ac_ext
2515    cat >conftest.$ac_ext <<_ACEOF
2516 < #line 1871 "configure"
2517 < #include "confdefs.h"
2516 > #line $LINENO "configure"
2517 > /* confdefs.h.  */
2518 > _ACEOF
2519 > cat confdefs.h >>conftest.$ac_ext
2520 > cat >>conftest.$ac_ext <<_ACEOF
2521 > /* end confdefs.h.  */
2522   $ac_declaration
2523   int
2524   main ()
# Line 1880 | Line 2529 | if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
2529   }
2530   _ACEOF
2531   rm -f conftest.$ac_objext
2532 < if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
2532 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533    (eval $ac_compile) 2>&5
2534    ac_status=$?
2535 <  echo "$as_me:1886: \$? = $ac_status" >&5
2535 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536    (exit $ac_status); } &&
2537           { ac_try='test -s conftest.$ac_objext'
2538 <  { (eval echo "$as_me:1889: \"$ac_try\"") >&5
2538 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539    (eval $ac_try) 2>&5
2540    ac_status=$?
2541 <  echo "$as_me:1892: \$? = $ac_status" >&5
2541 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542    (exit $ac_status); }; }; then
2543    break
2544   else
2545    echo "$as_me: failed program was:" >&5
2546 < cat conftest.$ac_ext >&5
2546 > sed 's/^/| /' conftest.$ac_ext >&5
2547 >
2548   fi
2549   rm -f conftest.$ac_objext conftest.$ac_ext
2550   done
2551 < echo '#ifdef __cplusplus' >>confdefs.h
2552 < echo $ac_declaration      >>confdefs.h
2553 < echo '#endif'             >>confdefs.h
2551 > rm -f conftest*
2552 > if test -n "$ac_declaration"; then
2553 >  echo '#ifdef __cplusplus' >>confdefs.h
2554 >  echo $ac_declaration      >>confdefs.h
2555 >  echo '#endif'             >>confdefs.h
2556 > fi
2557  
2558   else
2559    echo "$as_me: failed program was:" >&5
2560 < cat conftest.$ac_ext >&5
2560 > sed 's/^/| /' conftest.$ac_ext >&5
2561 >
2562   fi
2563   rm -f conftest.$ac_objext conftest.$ac_ext
2564   ac_ext=c
# Line 1913 | Line 2567 | ac_ext=cc
2567   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569  
2570 +
2571   ac_ext=cc
2572   ac_cpp='$CXXCPP $CPPFLAGS'
2573   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2576   if test -n "$ac_tool_prefix"; then
2577 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2577 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2578    do
2579      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2581 < echo "$as_me:1926: checking for $ac_word" >&5
2581 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2582   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2583   if test "${ac_cv_prog_CXX+set}" = set; then
2584    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1931 | Line 2586 | else
2586    if test -n "$CXX"; then
2587    ac_cv_prog_CXX="$CXX" # Let the user override the test.
2588   else
2589 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2590 < ac_dummy="$PATH"
2591 < for ac_dir in $ac_dummy; do
2592 <  IFS=$ac_save_IFS
2593 <  test -z "$ac_dir" && ac_dir=.
2594 <  $as_executable_p "$ac_dir/$ac_word" || continue
2595 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2596 < echo "$as_me:1941: found $ac_dir/$ac_word" >&5
2597 < break
2589 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 > for as_dir in $PATH
2591 > do
2592 >  IFS=$as_save_IFS
2593 >  test -z "$as_dir" && as_dir=.
2594 >  for ac_exec_ext in '' $ac_executable_extensions; do
2595 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2597 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 >    break 2
2599 >  fi
2600   done
2601 + done
2602  
2603   fi
2604   fi
2605   CXX=$ac_cv_prog_CXX
2606   if test -n "$CXX"; then
2607 <  echo "$as_me:1949: result: $CXX" >&5
2607 >  echo "$as_me:$LINENO: result: $CXX" >&5
2608   echo "${ECHO_T}$CXX" >&6
2609   else
2610 <  echo "$as_me:1952: result: no" >&5
2610 >  echo "$as_me:$LINENO: result: no" >&5
2611   echo "${ECHO_T}no" >&6
2612   fi
2613  
# Line 1958 | Line 2616 | if test -z "$CXX"; then
2616   fi
2617   if test -z "$CXX"; then
2618    ac_ct_CXX=$CXX
2619 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2619 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2620   do
2621    # Extract the first word of "$ac_prog", so it can be a program name with args.
2622   set dummy $ac_prog; ac_word=$2
2623 < echo "$as_me:1965: checking for $ac_word" >&5
2623 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2624   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2625   if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2626    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1970 | Line 2628 | else
2628    if test -n "$ac_ct_CXX"; then
2629    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2630   else
2631 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2632 < ac_dummy="$PATH"
2633 < for ac_dir in $ac_dummy; do
2634 <  IFS=$ac_save_IFS
2635 <  test -z "$ac_dir" && ac_dir=.
2636 <  $as_executable_p "$ac_dir/$ac_word" || continue
2637 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2638 < echo "$as_me:1980: found $ac_dir/$ac_word" >&5
2639 < break
2631 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 > for as_dir in $PATH
2633 > do
2634 >  IFS=$as_save_IFS
2635 >  test -z "$as_dir" && as_dir=.
2636 >  for ac_exec_ext in '' $ac_executable_extensions; do
2637 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2639 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 >    break 2
2641 >  fi
2642   done
2643 + done
2644  
2645   fi
2646   fi
2647   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2648   if test -n "$ac_ct_CXX"; then
2649 <  echo "$as_me:1988: result: $ac_ct_CXX" >&5
2649 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2650   echo "${ECHO_T}$ac_ct_CXX" >&6
2651   else
2652 <  echo "$as_me:1991: result: no" >&5
2652 >  echo "$as_me:$LINENO: result: no" >&5
2653   echo "${ECHO_T}no" >&6
2654   fi
2655  
# Line 1999 | Line 2660 | echo "$as_me:2002: checking whether we are using the G
2660    CXX=$ac_ct_CXX
2661   fi
2662  
2663 < echo "$as_me:2002: checking whether we are using the GNU C++ compiler" >&5
2663 >
2664 > # Provide some information about the compiler.
2665 > echo "$as_me:$LINENO:" \
2666 >     "checking for C++ compiler version" >&5
2667 > ac_compiler=`set X $ac_compile; echo $2`
2668 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2669 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2670 >  ac_status=$?
2671 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 >  (exit $ac_status); }
2673 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2674 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2675 >  ac_status=$?
2676 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 >  (exit $ac_status); }
2678 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2679 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2680 >  ac_status=$?
2681 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 >  (exit $ac_status); }
2683 >
2684 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2685   echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2686   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2687    echo $ECHO_N "(cached) $ECHO_C" >&6
2688   else
2689    cat >conftest.$ac_ext <<_ACEOF
2690 < #line 2008 "configure"
2691 < #include "confdefs.h"
2690 > #line $LINENO "configure"
2691 > /* confdefs.h.  */
2692 > _ACEOF
2693 > cat confdefs.h >>conftest.$ac_ext
2694 > cat >>conftest.$ac_ext <<_ACEOF
2695 > /* end confdefs.h.  */
2696  
2697   int
2698   main ()
# Line 2020 | Line 2706 | if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2706   }
2707   _ACEOF
2708   rm -f conftest.$ac_objext
2709 < if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2709 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710    (eval $ac_compile) 2>&5
2711    ac_status=$?
2712 <  echo "$as_me:2026: \$? = $ac_status" >&5
2712 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713    (exit $ac_status); } &&
2714           { ac_try='test -s conftest.$ac_objext'
2715 <  { (eval echo "$as_me:2029: \"$ac_try\"") >&5
2715 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716    (eval $ac_try) 2>&5
2717    ac_status=$?
2718 <  echo "$as_me:2032: \$? = $ac_status" >&5
2718 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719    (exit $ac_status); }; }; then
2720    ac_compiler_gnu=yes
2721   else
2722    echo "$as_me: failed program was:" >&5
2723 < cat conftest.$ac_ext >&5
2723 > sed 's/^/| /' conftest.$ac_ext >&5
2724 >
2725   ac_compiler_gnu=no
2726   fi
2727   rm -f conftest.$ac_objext conftest.$ac_ext
2728   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2729  
2730   fi
2731 < echo "$as_me:2044: result: $ac_cv_cxx_compiler_gnu" >&5
2731 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2732   echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2733   GXX=`test $ac_compiler_gnu = yes && echo yes`
2734   ac_test_CXXFLAGS=${CXXFLAGS+set}
2735   ac_save_CXXFLAGS=$CXXFLAGS
2736   CXXFLAGS="-g"
2737 < echo "$as_me:2050: checking whether $CXX accepts -g" >&5
2737 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2738   echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2739   if test "${ac_cv_prog_cxx_g+set}" = set; then
2740    echo $ECHO_N "(cached) $ECHO_C" >&6
2741   else
2742    cat >conftest.$ac_ext <<_ACEOF
2743 < #line 2056 "configure"
2744 < #include "confdefs.h"
2743 > #line $LINENO "configure"
2744 > /* confdefs.h.  */
2745 > _ACEOF
2746 > cat confdefs.h >>conftest.$ac_ext
2747 > cat >>conftest.$ac_ext <<_ACEOF
2748 > /* end confdefs.h.  */
2749  
2750   int
2751   main ()
# Line 2065 | Line 2756 | if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2756   }
2757   _ACEOF
2758   rm -f conftest.$ac_objext
2759 < if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2759 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760    (eval $ac_compile) 2>&5
2761    ac_status=$?
2762 <  echo "$as_me:2071: \$? = $ac_status" >&5
2762 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763    (exit $ac_status); } &&
2764           { ac_try='test -s conftest.$ac_objext'
2765 <  { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766    (eval $ac_try) 2>&5
2767    ac_status=$?
2768 <  echo "$as_me:2077: \$? = $ac_status" >&5
2768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769    (exit $ac_status); }; }; then
2770    ac_cv_prog_cxx_g=yes
2771   else
2772    echo "$as_me: failed program was:" >&5
2773 < cat conftest.$ac_ext >&5
2773 > sed 's/^/| /' conftest.$ac_ext >&5
2774 >
2775   ac_cv_prog_cxx_g=no
2776   fi
2777   rm -f conftest.$ac_objext conftest.$ac_ext
2778   fi
2779 < echo "$as_me:2087: result: $ac_cv_prog_cxx_g" >&5
2779 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2780   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2781   if test "$ac_test_CXXFLAGS" = set; then
2782    CXXFLAGS=$ac_save_CXXFLAGS
# Line 2111 | Line 2803 | do
2803     'void exit (int);'
2804   do
2805    cat >conftest.$ac_ext <<_ACEOF
2806 < #line 2114 "configure"
2807 < #include "confdefs.h"
2806 > #line $LINENO "configure"
2807 > /* confdefs.h.  */
2808 > _ACEOF
2809 > cat confdefs.h >>conftest.$ac_ext
2810 > cat >>conftest.$ac_ext <<_ACEOF
2811 > /* end confdefs.h.  */
2812   #include <stdlib.h>
2813   $ac_declaration
2814   int
# Line 2124 | Line 2820 | if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2820   }
2821   _ACEOF
2822   rm -f conftest.$ac_objext
2823 < if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2823 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824    (eval $ac_compile) 2>&5
2825    ac_status=$?
2826 <  echo "$as_me:2130: \$? = $ac_status" >&5
2826 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827    (exit $ac_status); } &&
2828           { ac_try='test -s conftest.$ac_objext'
2829 <  { (eval echo "$as_me:2133: \"$ac_try\"") >&5
2829 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830    (eval $ac_try) 2>&5
2831    ac_status=$?
2832 <  echo "$as_me:2136: \$? = $ac_status" >&5
2832 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833    (exit $ac_status); }; }; then
2834    :
2835   else
2836    echo "$as_me: failed program was:" >&5
2837 < cat conftest.$ac_ext >&5
2837 > sed 's/^/| /' conftest.$ac_ext >&5
2838 >
2839   continue
2840   fi
2841   rm -f conftest.$ac_objext conftest.$ac_ext
2842    cat >conftest.$ac_ext <<_ACEOF
2843 < #line 2146 "configure"
2844 < #include "confdefs.h"
2843 > #line $LINENO "configure"
2844 > /* confdefs.h.  */
2845 > _ACEOF
2846 > cat confdefs.h >>conftest.$ac_ext
2847 > cat >>conftest.$ac_ext <<_ACEOF
2848 > /* end confdefs.h.  */
2849   $ac_declaration
2850   int
2851   main ()
# Line 2155 | Line 2856 | if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2856   }
2857   _ACEOF
2858   rm -f conftest.$ac_objext
2859 < if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2859 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860    (eval $ac_compile) 2>&5
2861    ac_status=$?
2862 <  echo "$as_me:2161: \$? = $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:2164: \"$ac_try\"") >&5
2865 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866    (eval $ac_try) 2>&5
2867    ac_status=$?
2868 <  echo "$as_me:2167: \$? = $ac_status" >&5
2868 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869    (exit $ac_status); }; }; then
2870    break
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   fi
2876   rm -f conftest.$ac_objext conftest.$ac_ext
2877   done
2878 < echo '#ifdef __cplusplus' >>confdefs.h
2879 < echo $ac_declaration      >>confdefs.h
2880 < echo '#endif'             >>confdefs.h
2878 > rm -f conftest*
2879 > if test -n "$ac_declaration"; then
2880 >  echo '#ifdef __cplusplus' >>confdefs.h
2881 >  echo $ac_declaration      >>confdefs.h
2882 >  echo '#endif'             >>confdefs.h
2883 > fi
2884  
2885   ac_ext=c
2886   ac_cpp='$CPP $CPPFLAGS'
# Line 2183 | Line 2888 | ac_ext=f90
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
2890  
2891 +
2892 + OOPSE_TEMPLATE_FLAGS=""
2893 + if test $ac_cv_cxx_compiler_gnu = no; then
2894 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
2895 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
2896 +  echo 'void f(){}' > conftest.cc
2897 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
2898 +    echo "$as_me:$LINENO: result: yes" >&5
2899 + echo "${ECHO_T}yes" >&6
2900 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
2901 +  else
2902 +    echo "$as_me:$LINENO: result: no" >&5
2903 + echo "${ECHO_T}no" >&6
2904 +  fi
2905 +  rm -f conftest*
2906 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
2907 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
2908 +  echo 'void f(){}' > conftest.cc
2909 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
2910 +    echo "$as_me:$LINENO: result: yes" >&5
2911 + echo "${ECHO_T}yes" >&6
2912 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
2913 +  else
2914 +    echo "$as_me:$LINENO: result: no" >&5
2915 + echo "${ECHO_T}no" >&6
2916 +  fi
2917 +  rm -f conftest*
2918 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
2919 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
2920 +  echo 'void f(){}' > conftest.cc
2921 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
2922 +    echo "$as_me:$LINENO: result: yes" >&5
2923 + echo "${ECHO_T}yes" >&6
2924 +    OOPSE_TEMPLATE_FLAGS="-pto"
2925 +  else
2926 +    echo "$as_me:$LINENO: result: no" >&5
2927 + echo "${ECHO_T}no" >&6
2928 +  fi
2929 +  rm -f conftest*
2930 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
2931 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
2932 +  echo 'void f(){}' > conftest.cc
2933 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
2934 +    echo "$as_me:$LINENO: result: yes" >&5
2935 + echo "${ECHO_T}yes" >&6
2936 +
2937 +
2938 +    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
2939 +  else
2940 +    echo "$as_me:$LINENO: result: no" >&5
2941 + echo "${ECHO_T}no" >&6
2942 +  fi
2943 + fi
2944 +
2945 +
2946 +
2947 +
2948   ac_ext=f90
2949   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2950   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2952   if test -n "$ac_tool_prefix"; then
2953 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2953 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2954    do
2955      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2956   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2957 < echo "$as_me:2195: checking for $ac_word" >&5
2957 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2958   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959   if test "${ac_cv_prog_F90+set}" = set; then
2960    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2200 | Line 2962 | else
2962    if test -n "$F90"; then
2963    ac_cv_prog_F90="$F90" # Let the user override the test.
2964   else
2965 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2966 < ac_dummy="$PATH"
2967 < for ac_dir in $ac_dummy; do
2968 <  IFS=$ac_save_IFS
2969 <  test -z "$ac_dir" && ac_dir=.
2970 <  $as_executable_p "$ac_dir/$ac_word" || continue
2971 < ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2972 < echo "$as_me:2210: found $ac_dir/$ac_word" >&5
2973 < break
2965 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 > for as_dir in $PATH
2967 > do
2968 >  IFS=$as_save_IFS
2969 >  test -z "$as_dir" && as_dir=.
2970 >  for ac_exec_ext in '' $ac_executable_extensions; do
2971 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2973 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 >    break 2
2975 >  fi
2976   done
2977 + done
2978  
2979   fi
2980   fi
2981   F90=$ac_cv_prog_F90
2982   if test -n "$F90"; then
2983 <  echo "$as_me:2218: result: $F90" >&5
2983 >  echo "$as_me:$LINENO: result: $F90" >&5
2984   echo "${ECHO_T}$F90" >&6
2985   else
2986 <  echo "$as_me:2221: result: no" >&5
2986 >  echo "$as_me:$LINENO: result: no" >&5
2987   echo "${ECHO_T}no" >&6
2988   fi
2989  
# Line 2227 | Line 2992 | if test -z "$F90"; then
2992   fi
2993   if test -z "$F90"; then
2994    ac_ct_F90=$F90
2995 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2995 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2996   do
2997    # Extract the first word of "$ac_prog", so it can be a program name with args.
2998   set dummy $ac_prog; ac_word=$2
2999 < echo "$as_me:2234: checking for $ac_word" >&5
2999 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3000   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3001   if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3002    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2239 | Line 3004 | else
3004    if test -n "$ac_ct_F90"; then
3005    ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3006   else
3007 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3008 < ac_dummy="$PATH"
3009 < for ac_dir in $ac_dummy; do
3010 <  IFS=$ac_save_IFS
3011 <  test -z "$ac_dir" && ac_dir=.
3012 <  $as_executable_p "$ac_dir/$ac_word" || continue
3013 < ac_cv_prog_ac_ct_F90="$ac_prog"
3014 < echo "$as_me:2249: found $ac_dir/$ac_word" >&5
3015 < break
3007 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 > for as_dir in $PATH
3009 > do
3010 >  IFS=$as_save_IFS
3011 >  test -z "$as_dir" && as_dir=.
3012 >  for ac_exec_ext in '' $ac_executable_extensions; do
3013 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3015 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 >    break 2
3017 >  fi
3018   done
3019 + done
3020  
3021   fi
3022   fi
3023   ac_ct_F90=$ac_cv_prog_ac_ct_F90
3024   if test -n "$ac_ct_F90"; then
3025 <  echo "$as_me:2257: result: $ac_ct_F90" >&5
3025 >  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3026   echo "${ECHO_T}$ac_ct_F90" >&6
3027   else
3028 <  echo "$as_me:2260: result: no" >&5
3028 >  echo "$as_me:$LINENO: result: no" >&5
3029   echo "${ECHO_T}no" >&6
3030   fi
3031  
# Line 2267 | Line 3035 | fi
3035    F90=$ac_ct_F90
3036   fi
3037  
3038 +
3039   # If we don't use `.F90' as extension, the preprocessor is not run on the
3040   # input file.
3041   ac_save_ext=$ac_ext
3042   ac_ext=F90
3043 < echo "$as_me:2274: checking whether we are using the GNU Fortran 90 compiler" >&5
3043 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3044   echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3045   if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3046    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2288 | Line 3057 | if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
3057  
3058   _ACEOF
3059   rm -f conftest.$ac_objext
3060 < if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
3060 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061    (eval $ac_compile) 2>&5
3062    ac_status=$?
3063 <  echo "$as_me:2294: \$? = $ac_status" >&5
3063 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064    (exit $ac_status); } &&
3065           { ac_try='test -s conftest.$ac_objext'
3066 <  { (eval echo "$as_me:2297: \"$ac_try\"") >&5
3066 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067    (eval $ac_try) 2>&5
3068    ac_status=$?
3069 <  echo "$as_me:2300: \$? = $ac_status" >&5
3069 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070    (exit $ac_status); }; }; then
3071    ac_compiler_gnu=yes
3072   else
3073    echo "$as_me: failed program was:" >&5
3074 < cat conftest.$ac_ext >&5
3074 > sed 's/^/| /' conftest.$ac_ext >&5
3075 >
3076   ac_compiler_gnu=no
3077   fi
3078   rm -f conftest.$ac_objext conftest.$ac_ext
3079   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3080  
3081   fi
3082 < echo "$as_me:2312: result: $ac_cv_f90_compiler_gnu" >&5
3082 > echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3083   echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3084   ac_ext=$ac_save_ext
3085   G95=`test $ac_compiler_gnu = yes && echo yes`
# Line 2319 | Line 3089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091  
3092 +
3093 +
3094 +
3095 +
3096   # Try to determine native compiler flags that allow us to use F90 suffix
3097   # for preprocessed f90 source.
3098  
# Line 2326 | Line 3100 | if test "$ac_test_PREPFLAG" != "set"; then
3100    PREPFLAG=""
3101    case "${host_cpu}-${host_os}" in
3102  
3103 <  *linux*) if test "$F90" = ifc; then
3103 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3104                      PREPFLAG="-fpp1 "
3105                  fi;;
3106    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 2339 | Line 3113 | if test "$ac_test_PREPFLAG" != "set"; then
3113    esac
3114  
3115    if test -z "$PREPFLAG"; then
3116 <        echo ""
3117 <        echo "**********************************************************"
2344 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
2345 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
2346 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
2347 <        echo "**********************************************************"
2348 <        echo ""
3116 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3117 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3118          PREPFLAG=""
3119    fi
3120  
3121 <  echo "$as_me:2352: checking to make sure F90 preprocessor flag works" >&5
3121 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3122   echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3123  
3124 +
3125    ac_ext=f90
3126   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3127   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 2367 | Line 3137 | program main
3137  
3138      cat >conftest.$ac_ext <<_ACEOF
3139  
3140 +
3141   program main
3142  
3143    integer :: i
3144    i = 1
3145  
3146 +
3147   end program main
3148  
3149   _ACEOF
3150   rm -f conftest.$ac_objext
3151 < if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5
3151 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152    (eval $ac_compile) 2>&5
3153    ac_status=$?
3154 <  echo "$as_me:2382: \$? = $ac_status" >&5
3154 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155    (exit $ac_status); } &&
3156           { ac_try='test -s conftest.$ac_objext'
3157 <  { (eval echo "$as_me:2385: \"$ac_try\"") >&5
3157 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158    (eval $ac_try) 2>&5
3159    ac_status=$?
3160 <  echo "$as_me:2388: \$? = $ac_status" >&5
3160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161    (exit $ac_status); }; }; then
3162    prepflagworks=1
3163   else
3164    echo "$as_me: failed program was:" >&5
3165 < cat conftest.$ac_ext >&5
3165 > sed 's/^/| /' conftest.$ac_ext >&5
3166 >
3167   prepflagworks=0
3168   fi
3169   rm -f conftest.$ac_objext conftest.$ac_ext
# Line 2403 | Line 3176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178  
3179 +
3180    if test "$prepflagworks" = 1; then
3181 <    echo "$as_me:2407: result: yes" >&5
3181 >    echo "$as_me:$LINENO: result: yes" >&5
3182   echo "${ECHO_T}yes" >&6
3183  
3184    else
3185 <    echo "$as_me:2411: result: no" >&5
3185 >    echo "$as_me:$LINENO: result: no" >&5
3186   echo "${ECHO_T}no" >&6
3187 <    { { echo "$as_me:2413: error: Can't figure out working Fortran90 preprocessor flag" >&5
3187 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3188   echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3189     { (exit 1); exit 1; }; }
3190    fi
3191   fi
3192  
3193 +
3194 +
3195 +
3196 +
3197   # Try to determine native compiler flags that allow us to use F90 suffix
3198   # for preprocessed f90 source with -D type defines
3199  
# Line 2423 | Line 3201 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3201    PREPDEFFLAG=""
3202    case "${host_cpu}-${host_os}" in
3203  
3204 <  *linux*) if test "$F90" = ifc; then
3204 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3205                      PREPDEFFLAG=" "
3206                  fi;;
3207    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 2436 | Line 3214 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3214    esac
3215  
3216    if test -z "$PREPDEFFLAG"; then
3217 <        echo ""
3218 <        echo "*************************************************************"
2441 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
2442 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
2443 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
2444 <        echo "*************************************************************"
2445 <        echo ""
3217 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3218 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3219          PREPDEFFLAG=" "
3220    fi
3221  
3222 <  echo "$as_me:2449: checking to make sure F90 preprocessor define flag works" >&5
3222 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3223   echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3224  
3225 +
3226    ac_ext=f90
3227   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3228   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 2464 | Line 3238 | program main
3238  
3239      cat >conftest.$ac_ext <<_ACEOF
3240  
3241 +
3242   program main
3243  
3244    integer :: i
# Line 2473 | Line 3248 | end program main
3248    choke me
3249   #endif
3250  
3251 +
3252   end program main
3253  
3254   _ACEOF
3255   rm -f conftest.$ac_objext
3256 < if { (eval echo "$as_me:2480: \"$ac_compile\"") >&5
3256 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257    (eval $ac_compile) 2>&5
3258    ac_status=$?
3259 <  echo "$as_me:2483: \$? = $ac_status" >&5
3259 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260    (exit $ac_status); } &&
3261           { ac_try='test -s conftest.$ac_objext'
3262 <  { (eval echo "$as_me:2486: \"$ac_try\"") >&5
3262 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263    (eval $ac_try) 2>&5
3264    ac_status=$?
3265 <  echo "$as_me:2489: \$? = $ac_status" >&5
3265 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266    (exit $ac_status); }; }; then
3267    prepdefflagworks=1
3268   else
3269    echo "$as_me: failed program was:" >&5
3270 < cat conftest.$ac_ext >&5
3270 > sed 's/^/| /' conftest.$ac_ext >&5
3271 >
3272   prepdefflagworks=0
3273   fi
3274   rm -f conftest.$ac_objext conftest.$ac_ext
# Line 2504 | Line 3281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283  
3284 +
3285 +
3286    if test "$prepdefflagworks" = 1; then
3287 <    echo "$as_me:2508: result: yes" >&5
3287 >    echo "$as_me:$LINENO: result: yes" >&5
3288   echo "${ECHO_T}yes" >&6
3289  
3290    else
3291 <    echo "$as_me:2512: result: no" >&5
3291 >    echo "$as_me:$LINENO: result: no" >&5
3292   echo "${ECHO_T}no" >&6
3293 <    { { echo "$as_me:2514: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3293 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3294   echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3295     { (exit 1); exit 1; }; }
3296    fi
3297   fi
3298  
3299 < case $debug in
3300 <  1)
3301 <     ;;
3302 <  *)
3299 > ac_ext=f90
3300 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3301 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3303  
2525 # Try to determine "good" native compiler flags if none specified on command
2526 # line
2527 if test "$ac_test_CFLAGS" != "set"; then
2528  CFLAGS=""
2529  case "${host_cpu}-${host_os}" in
3304  
2531  *linux*) if test "$CC" = icc; then
2532                    CFLAGS="-O"
2533                fi;;
2534  sparc-solaris2*) if test "$CC" = cc; then
2535                    CFLAGS="-native -fast -xO5 -dalign"
2536                 fi;;
3305  
3306 <  alpha*-osf*)  if test "$CC" = cc; then
3307 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
3308 <                fi;;
3306 > ac_ext=f90
3307 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3308 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3310 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3311 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3312 > if test "${ac_cv_prog_f90_v+set}" = set; then
3313 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3314 > else
3315  
3316 <  hppa*-hpux*)  if test "$CC" = cc; then
2543 <                    CFLAGS="-Ae +O3 +Oall"
2544 <                fi;;
3316 > cat >conftest.$ac_ext <<_ACEOF
3317  
3318 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
2547 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
2548 <                fi;;
2549 <   powerpc*-aix*)
2550 <        if test "$CC" = cc -o "$CC" = xlc; then
2551 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
2552 <                echo "*******************************************************"
2553 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2554 <                echo "*  recommended that you use                           *"
2555 <                echo "*                                                     *"
2556 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2557 <                echo "*                                 ^^^                 *"
2558 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2559 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2560 <                echo "*******************************************************"
2561 <        fi;;
2562 <   *darwin*)
2563 <        if test "$CC" = xlc -o "$CC" = cc; then
2564 <                CFLAGS="-O3 -qtune=auto -w"
2565 <                echo "*******************************************************"
2566 <                echo "*  You have Darwin on an unknown powerpc system.      *"
2567 <                echo "*  It is recommended that you use                     *"
2568 <                echo "*                                                     *"
2569 <                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
2570 <                echo "*                               ^^^                   *"
2571 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2572 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2573 <                echo "*******************************************************"
2574 <        fi;;
2575 <  esac
3318 > program main
3319  
2577  # use default flags for gcc on all systems
2578  if test $ac_cv_c_compiler_gnu = yes; then
2579     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2580  fi
3320  
3321 <  # test for gcc-specific flags:
2583 <  if test $ac_cv_c_compiler_gnu = yes; then
2584 <    # -malign-double for x86 systems
3321 > end program main
3322  
3323 < echo "$as_me:2586: checking whether ${CC-cc} accepts -malign-double" >&5
3324 < echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
3325 < if test "${ac_align_double+set}" = set; then
3326 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3327 < else
3328 <  echo 'void f(){}' > conftest.c
3329 < if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
3330 <        ac_align_double=yes
3331 < else
3332 <        ac_align_double=no
3333 < fi
3334 < rm -f conftest*
3323 > _ACEOF
3324 > rm -f conftest.$ac_objext
3325 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 >  (eval $ac_compile) 2>&5
3327 >  ac_status=$?
3328 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 >  (exit $ac_status); } &&
3330 >         { ac_try='test -s conftest.$ac_objext'
3331 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 >  (eval $ac_try) 2>&5
3333 >  ac_status=$?
3334 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 >  (exit $ac_status); }; }; then
3336 >  ac_cv_prog_f90_v=
3337 > # Try some options frequently used verbose output
3338 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3339 >  ac_ext=f90
3340 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3341 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3343  
3344 < fi
2600 < echo "$as_me:2600: result: $ac_align_double" >&5
2601 < echo "${ECHO_T}$ac_align_double" >&6
2602 < if test "$ac_align_double" = yes; then
2603 <        :
2604 <        CFLAGS="$CFLAGS -malign-double"
2605 < else
2606 <        :
3344 > cat >conftest.$ac_ext <<_ACEOF
3345  
3346 < fi
3346 > program main
3347  
2610    # -fstrict-aliasing for gcc-2.95+
3348  
3349 < echo "$as_me:2612: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2613 < echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2614 < if test "${ac_fstrict_aliasing+set}" = set; then
2615 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2616 < else
2617 <  echo 'void f(){}' > conftest.c
2618 < if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2619 <        ac_fstrict_aliasing=yes
2620 < else
2621 <        ac_fstrict_aliasing=no
2622 < fi
2623 < rm -f conftest*
3349 > end program main
3350  
3351 < fi
2626 < echo "$as_me:2626: result: $ac_fstrict_aliasing" >&5
2627 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2628 < if test "$ac_fstrict_aliasing" = yes; then
2629 <        :
2630 <        CFLAGS="$CFLAGS -fstrict-aliasing"
2631 < else
2632 <        :
3351 > _ACEOF
3352  
3353 < fi
3353 > # Compile and link our simple test program by passing a flag (argument
3354 > # 1 to this macro) to the Fortran 90 compiler in order to get
3355 > # "verbose" output that we can then parse for the Fortran 90 linker
3356 > # flags.
3357 > ac_save_F90FLAGS=$F90FLAGS
3358 > F90FLAGS="$F90FLAGS $ac_verb"
3359  
3360 <  fi
3360 > (eval echo $as_me:3360: \"$ac_link\") >&5
3361 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3362 > echo "$ac_f90_v_output" >&5
3363 > F90FLAGS=$ac_save_F90FLAGS
3364  
3365 <  CPU_FLAGS=""
3366 <  if test "$GCC" = "yes"; then
3367 <                  case "${host_cpu}" in
3368 <          i586*)
3365 > rm -f conftest.*
3366 > ac_ext=f90
3367 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3368 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3370  
3371 < echo "$as_me:2643: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3372 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3373 < if test "${ac_cpu_pentium+set}" = set; then
2646 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2647 < else
2648 <  echo 'void f(){}' > conftest.c
2649 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2650 <        ac_cpu_pentium=yes
2651 < else
2652 <        ac_cpu_pentium=no
3371 > # If we are using xlf then replace all the commas with spaces.
3372 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3373 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3374   fi
2654 rm -f conftest*
3375  
3376 + # If we are using Cray Fortran then delete quotes.
3377 + # Use "\"" instead of '"' for font-lock-mode.
3378 + # FIXME: a more general fix for quoted arguments with spaces?
3379 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3380 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3381   fi
3382 < echo "$as_me:2657: result: $ac_cpu_pentium" >&5
3383 < echo "${ECHO_T}$ac_cpu_pentium" >&6
3384 < if test "$ac_cpu_pentium" = yes; then
3385 <        :
3386 <        CPU_FLAGS=-mcpu=pentium
3387 < else
3388 <        :
3389 <
3390 < echo "$as_me:2665: checking whether ${CC-cc} accepts -mpentium" >&5
3391 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
3392 < if test "${ac_pentium+set}" = set; then
3393 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2669 < else
2670 <  echo 'void f(){}' > conftest.c
2671 < if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2672 <        ac_pentium=yes
2673 < else
2674 <        ac_pentium=no
3382 >  # look for -l* and *.a constructs in the output
3383 >  for ac_arg in $ac_f90_v_output; do
3384 >     case $ac_arg in
3385 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3386 >          ac_cv_prog_f90_v=$ac_verb
3387 >          break 2 ;;
3388 >     esac
3389 >  done
3390 > done
3391 > if test -z "$ac_cv_prog_f90_v"; then
3392 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3393 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3394   fi
2676 rm -f conftest*
2677
2678 fi
2679 echo "$as_me:2679: result: $ac_pentium" >&5
2680 echo "${ECHO_T}$ac_pentium" >&6
2681 if test "$ac_pentium" = yes; then
2682        :
2683        CPU_FLAGS=-mpentium
3395   else
3396 <        :
3396 >  echo "$as_me: failed program was:" >&5
3397 > sed 's/^/| /' conftest.$ac_ext >&5
3398  
3399 + { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3400 + echo "$as_me: WARNING: compilation failed" >&2;}
3401   fi
3402 + rm -f conftest.$ac_objext conftest.$ac_ext
3403  
3404   fi
3405 <
3406 <                  ;;
3407 <          i686*)
3408 <
3409 < echo "$as_me:2694: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2695 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2696 < if test "${ac_cpu_pentiumpro+set}" = set; then
3405 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3406 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3407 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3408 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3409 > if test "${ac_cv_flibs+set}" = set; then
3410    echo $ECHO_N "(cached) $ECHO_C" >&6
3411   else
3412 <  echo 'void f(){}' > conftest.c
3413 < if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2701 <        ac_cpu_pentiumpro=yes
3412 >  if test "x$F90LIBS" != "x"; then
3413 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3414   else
2703        ac_cpu_pentiumpro=no
2704 fi
2705 rm -f conftest*
3415  
3416 < fi
3417 < echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5
3418 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3419 < if test "$ac_cpu_pentiumpro" = yes; then
2711 <        :
2712 <        CPU_FLAGS=-mcpu=pentiumpro
2713 < else
2714 <        :
3416 > ac_ext=f90
3417 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3418 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3420  
3421 < echo "$as_me:2716: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2717 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2718 < if test "${ac_pentiumpro+set}" = set; then
2719 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2720 < else
2721 <  echo 'void f(){}' > conftest.c
2722 < if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2723 <        ac_pentiumpro=yes
2724 < else
2725 <        ac_pentiumpro=no
2726 < fi
2727 < rm -f conftest*
3421 > cat >conftest.$ac_ext <<_ACEOF
3422  
3423 < fi
2730 < echo "$as_me:2730: result: $ac_pentiumpro" >&5
2731 < echo "${ECHO_T}$ac_pentiumpro" >&6
2732 < if test "$ac_pentiumpro" = yes; then
2733 <        :
2734 <        CPU_FLAGS=-mpentiumpro
2735 < else
2736 <        :
3423 > program main
3424  
2738 fi
3425  
3426 < fi
3426 > end program main
3427  
3428 <                  ;;
2743 <          powerpc*)
2744 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2745 <                is60x=`echo $cputype | egrep "^600-9e?$"`
2746 <                if test -n "$is60x"; then
3428 > _ACEOF
3429  
3430 < echo "$as_me:2748: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
3431 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
3432 < if test "${ac_m_cpu_60x+set}" = set; then
3433 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3434 < else
3435 <  echo 'void f(){}' > conftest.c
2754 < if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2755 <        ac_m_cpu_60x=yes
2756 < else
2757 <        ac_m_cpu_60x=no
2758 < fi
2759 < rm -f conftest*
3430 > # Compile and link our simple test program by passing a flag (argument
3431 > # 1 to this macro) to the Fortran 90 compiler in order to get
3432 > # "verbose" output that we can then parse for the Fortran 90 linker
3433 > # flags.
3434 > ac_save_F90FLAGS=$F90FLAGS
3435 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3436  
3437 + (eval echo $as_me:3437: \"$ac_link\") >&5
3438 + ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3439 + echo "$ac_f90_v_output" >&5
3440 + F90FLAGS=$ac_save_F90FLAGS
3441 +
3442 + rm -f conftest.*
3443 + ac_ext=f90
3444 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3445 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3447 +
3448 + # If we are using xlf then replace all the commas with spaces.
3449 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3450 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3451   fi
2762 echo "$as_me:2762: result: $ac_m_cpu_60x" >&5
2763 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2764 if test "$ac_m_cpu_60x" = yes; then
2765        :
2766        CPU_FLAGS=-mcpu=$cputype
2767 else
2768        :
3452  
3453 + # If we are using Cray Fortran then delete quotes.
3454 + # Use "\"" instead of '"' for font-lock-mode.
3455 + # FIXME: a more general fix for quoted arguments with spaces?
3456 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3457 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3458   fi
3459  
3460 <                elif test "$cputype" = 750; then
3460 > ac_cv_f90libs=
3461  
3462 < echo "$as_me:2774: checking whether we are using gcc 2.95 or later" >&5
3463 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2776 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2777 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2778 < else
3462 > # Save positional arguments (if any)
3463 > ac_save_positional="$@"
3464  
3465 < cat > conftest.c <<EOF
3466 < #ifdef __GNUC__
3467 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3468 <     yes;
3469 < #  endif
3470 < #endif
3471 < EOF
3472 < if { ac_try='${CC-cc} -E conftest.c'
3473 <  { (eval echo "$as_me:2788: \"$ac_try\"") >&5
3474 <  (eval $ac_try) 2>&5
3475 <  ac_status=$?
3476 <  echo "$as_me:2791: \$? = $ac_status" >&5
3477 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3478 <  ac_cv_prog_gcc_2_95=yes
3465 > set X $ac_f90_v_output
3466 > while test $# != 1; do
3467 >  shift
3468 >  ac_arg=$1
3469 >  case $ac_arg in
3470 >        [\\/]*.a | ?:[\\/]*.a)
3471 >            ac_exists=false
3472 >  for ac_i in $ac_cv_f90libs; do
3473 >    if test x"$ac_arg" = x"$ac_i"; then
3474 >      ac_exists=true
3475 >      break
3476 >    fi
3477 >  done
3478 >
3479 >  if test x"$ac_exists" = xtrue; then
3480 >  :
3481   else
3482 <  ac_cv_prog_gcc_2_95=no
3482 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3483   fi
3484  
3485 < fi
3486 < echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5
3487 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3488 < if test "$ac_cv_prog_gcc_2_95" = yes; then
3489 <        :
3490 <
3491 < echo "$as_me:2804: checking whether ${CC-cc} accepts -mcpu=750" >&5
3485 >          ;;
3486 >        -bI:*)
3487 >            ac_exists=false
3488 >  for ac_i in $ac_cv_f90libs; do
3489 >    if test x"$ac_arg" = x"$ac_i"; then
3490 >      ac_exists=true
3491 >      break
3492 >    fi
3493 >  done
3494 >
3495 >  if test x"$ac_exists" = xtrue; then
3496 >  :
3497 > else
3498 >  if test "$ac_compiler_gnu" = yes; then
3499 >  for ac_link_opt in $ac_arg; do
3500 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3501 >  done
3502 > else
3503 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3504 > fi
3505 > fi
3506 >
3507 >          ;;
3508 >          # Ignore these flags.
3509 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3510 >          ;;
3511 >        -lkernel32)
3512 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3513 >          ;;
3514 >        -[LRuY])
3515 >          # These flags, when seen by themselves, take an argument.
3516 >          # We remove the space between option and argument and re-iterate
3517 >          # unless we find an empty arg or a new option (starting with -)
3518 >          case $2 in
3519 >             "" | -*);;
3520 >             *)
3521 >                ac_arg="$ac_arg$2"
3522 >
3523 >                shift; shift
3524 >                set X $ac_arg "$@"
3525 >                ;;
3526 >          esac
3527 >          ;;
3528 >        -YP,*)
3529 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3530 >              ac_exists=false
3531 >  for ac_i in $ac_cv_f90libs; do
3532 >    if test x"$ac_j" = x"$ac_i"; then
3533 >      ac_exists=true
3534 >      break
3535 >    fi
3536 >  done
3537 >
3538 >  if test x"$ac_exists" = xtrue; then
3539 >  :
3540 > else
3541 >  ac_arg="$ac_arg $ac_j"
3542 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3543 > fi
3544 >
3545 >          done
3546 >          ;;
3547 >        -[lLR]*)
3548 >            ac_exists=false
3549 >  for ac_i in $ac_cv_f90libs; do
3550 >    if test x"$ac_arg" = x"$ac_i"; then
3551 >      ac_exists=true
3552 >      break
3553 >    fi
3554 >  done
3555 >
3556 >  if test x"$ac_exists" = xtrue; then
3557 >  :
3558 > else
3559 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3560 > fi
3561 >
3562 >          ;;
3563 >          # Ignore everything else.
3564 >  esac
3565 > done
3566 > # restore positional arguments
3567 > set X $ac_save_positional; shift
3568 >
3569 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3570 > # then we insist that the "run path" must be an absolute path (i.e. it
3571 > # must begin with a "/").
3572 > case `(uname -sr) 2>/dev/null` in
3573 >   "SunOS 5"*)
3574 >      ac_ld_run_path=`echo $ac_f90_v_output |
3575 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3576 >      test "x$ac_ld_run_path" != x &&
3577 >
3578 >        if test "$ac_compiler_gnu" = yes; then
3579 >  for ac_link_opt in $ac_ld_run_path; do
3580 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3581 >  done
3582 > else
3583 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3584 > fi
3585 >      ;;
3586 > esac
3587 > fi # test "x$F90LIBS" = "x"
3588 >
3589 > fi
3590 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3591 > echo "${ECHO_T}$ac_cv_flibs" >&6
3592 > F90LIBS="$ac_cv_f90libs"
3593 >
3594 > ac_ext=f90
3595 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3596 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3598 >
3599 >
3600 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3601 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3602 > if test "${ac_cv_f90_mangling+set}" = set; then
3603 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3604 > else
3605 >  ac_ext=f90
3606 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3607 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3609 > cat >conftest.$ac_ext <<_ACEOF
3610 > subroutine foobar()
3611 > return
3612 > end
3613 > subroutine foo_bar()
3614 > return
3615 > end
3616 > _ACEOF
3617 > rm -f conftest.$ac_objext
3618 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 >  (eval $ac_compile) 2>&5
3620 >  ac_status=$?
3621 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 >  (exit $ac_status); } &&
3623 >         { ac_try='test -s conftest.$ac_objext'
3624 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 >  (eval $ac_try) 2>&5
3626 >  ac_status=$?
3627 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 >  (exit $ac_status); }; }; then
3629 >  mv conftest.$ac_objext cf90_test.$ac_objext
3630 >
3631 >  ac_ext=c
3632 > ac_cpp='$CPP $CPPFLAGS'
3633 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 >
3637 >  ac_save_LIBS=$LIBS
3638 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3639 >
3640 >  ac_success=no
3641 >  for ac_foobar in foobar FOOBAR; do
3642 >    for ac_underscore in "" "_"; do
3643 >      ac_func="$ac_foobar$ac_underscore"
3644 >      cat >conftest.$ac_ext <<_ACEOF
3645 > #line $LINENO "configure"
3646 > /* confdefs.h.  */
3647 > _ACEOF
3648 > cat confdefs.h >>conftest.$ac_ext
3649 > cat >>conftest.$ac_ext <<_ACEOF
3650 > /* end confdefs.h.  */
3651 >
3652 > /* Override any gcc2 internal prototype to avoid an error.  */
3653 > #ifdef __cplusplus
3654 > extern "C"
3655 > #endif
3656 > /* We use char because int might match the return type of a gcc2
3657 >   builtin and then its argument prototype would still apply.  */
3658 > char $ac_func ();
3659 > int
3660 > main ()
3661 > {
3662 > $ac_func ();
3663 >  ;
3664 >  return 0;
3665 > }
3666 > _ACEOF
3667 > rm -f conftest.$ac_objext conftest$ac_exeext
3668 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 >  (eval $ac_link) 2>&5
3670 >  ac_status=$?
3671 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 >  (exit $ac_status); } &&
3673 >         { ac_try='test -s conftest$ac_exeext'
3674 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 >  (eval $ac_try) 2>&5
3676 >  ac_status=$?
3677 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 >  (exit $ac_status); }; }; then
3679 >  ac_success=yes; break 2
3680 > else
3681 >  echo "$as_me: failed program was:" >&5
3682 > sed 's/^/| /' conftest.$ac_ext >&5
3683 >
3684 > fi
3685 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3686 >    done
3687 >  done
3688 >
3689 >  if test "$ac_success" = "yes"; then
3690 >     case $ac_foobar in
3691 >        foobar)
3692 >           ac_case=lower
3693 >           ac_foo_bar=foo_bar
3694 >           ;;
3695 >        FOOBAR)
3696 >           ac_case=upper
3697 >           ac_foo_bar=FOO_BAR
3698 >           ;;
3699 >     esac
3700 >
3701 >     ac_success_extra=no
3702 >     for ac_extra in "" "_"; do
3703 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3704 >
3705 >        cat >conftest.$ac_ext <<_ACEOF
3706 > #line $LINENO "configure"
3707 > /* confdefs.h.  */
3708 > _ACEOF
3709 > cat confdefs.h >>conftest.$ac_ext
3710 > cat >>conftest.$ac_ext <<_ACEOF
3711 > /* end confdefs.h.  */
3712 >
3713 > /* Override any gcc2 internal prototype to avoid an error.  */
3714 > #ifdef __cplusplus
3715 > extern "C"
3716 > #endif
3717 > /* We use char because int might match the return type of a gcc2
3718 >   builtin and then its argument prototype would still apply.  */
3719 > char $ac_func ();
3720 > int
3721 > main ()
3722 > {
3723 > $ac_func ();
3724 >  ;
3725 >  return 0;
3726 > }
3727 > _ACEOF
3728 > rm -f conftest.$ac_objext conftest$ac_exeext
3729 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730 >  (eval $ac_link) 2>&5
3731 >  ac_status=$?
3732 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 >  (exit $ac_status); } &&
3734 >         { ac_try='test -s conftest$ac_exeext'
3735 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 >  (eval $ac_try) 2>&5
3737 >  ac_status=$?
3738 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 >  (exit $ac_status); }; }; then
3740 >  ac_success_extra=yes; break
3741 > else
3742 >  echo "$as_me: failed program was:" >&5
3743 > sed 's/^/| /' conftest.$ac_ext >&5
3744 >
3745 > fi
3746 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3747 >     done
3748 >
3749 >     if test "$ac_success_extra" = "yes"; then
3750 >        ac_cv_f90_mangling="$ac_case case"
3751 >        if test -z "$ac_underscore"; then
3752 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3753 >        else
3754 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3755 >
3756 >        fi
3757 >        if test -z "$ac_extra"; then
3758 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3759 >        else
3760 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3761 >        fi
3762 >      else
3763 >        ac_cv_f90_mangling="unknown"
3764 >      fi
3765 >  else
3766 >     ac_cv_f90_mangling="unknown"
3767 >
3768 >  fi
3769 >
3770 >  LIBS=$ac_save_LIBS
3771 >  ac_ext=f90
3772 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3773 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3775 >  rm -f cf90_test* conftest*
3776 > else
3777 >  echo "$as_me: failed program was:" >&5
3778 > sed 's/^/| /' conftest.$ac_ext >&5
3779 >
3780 > fi
3781 > rm -f conftest.$ac_objext conftest.$ac_ext
3782 > ac_ext=f90
3783 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3784 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3786 >
3787 > fi
3788 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3789 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3790 >
3791 >
3792 >
3793 > case $ac_cv_f90_mangling in
3794 >  "lower case, no underscore, no extra underscore")
3795 >          cat >>confdefs.h <<\_ACEOF
3796 > #define F90_FUNC(name,NAME) name
3797 > _ACEOF
3798 >
3799 >          cat >>confdefs.h <<\_ACEOF
3800 > #define F90_FUNC_(name,NAME) name
3801 > _ACEOF
3802 > ;;
3803 >  "lower case, no underscore, extra underscore")
3804 >          cat >>confdefs.h <<\_ACEOF
3805 > #define F90_FUNC(name,NAME) name
3806 > _ACEOF
3807 >
3808 >          cat >>confdefs.h <<\_ACEOF
3809 > #define F90_FUNC_(name,NAME) name ## _
3810 > _ACEOF
3811 > ;;
3812 >  "lower case, underscore, no extra underscore")
3813 >          cat >>confdefs.h <<\_ACEOF
3814 > #define F90_FUNC(name,NAME) name ## _
3815 > _ACEOF
3816 >
3817 >          cat >>confdefs.h <<\_ACEOF
3818 > #define F90_FUNC_(name,NAME) name ## _
3819 > _ACEOF
3820 > ;;
3821 >  "lower case, underscore, extra underscore")
3822 >          cat >>confdefs.h <<\_ACEOF
3823 > #define F90_FUNC(name,NAME) name ## _
3824 > _ACEOF
3825 >
3826 >          cat >>confdefs.h <<\_ACEOF
3827 > #define F90_FUNC_(name,NAME) name ## __
3828 > _ACEOF
3829 > ;;
3830 >  "upper case, no underscore, no extra underscore")
3831 >          cat >>confdefs.h <<\_ACEOF
3832 > #define F90_FUNC(name,NAME) NAME
3833 > _ACEOF
3834 >
3835 >          cat >>confdefs.h <<\_ACEOF
3836 > #define F90_FUNC_(name,NAME) NAME
3837 > _ACEOF
3838 > ;;
3839 >  "upper case, no underscore, extra underscore")
3840 >          cat >>confdefs.h <<\_ACEOF
3841 > #define F90_FUNC(name,NAME) NAME
3842 > _ACEOF
3843 >
3844 >          cat >>confdefs.h <<\_ACEOF
3845 > #define F90_FUNC_(name,NAME) NAME ## _
3846 > _ACEOF
3847 > ;;
3848 >  "upper case, underscore, no extra underscore")
3849 >          cat >>confdefs.h <<\_ACEOF
3850 > #define F90_FUNC(name,NAME) NAME ## _
3851 > _ACEOF
3852 >
3853 >          cat >>confdefs.h <<\_ACEOF
3854 > #define F90_FUNC_(name,NAME) NAME ## _
3855 > _ACEOF
3856 > ;;
3857 >  "upper case, underscore, extra underscore")
3858 >          cat >>confdefs.h <<\_ACEOF
3859 > #define F90_FUNC(name,NAME) NAME ## _
3860 > _ACEOF
3861 >
3862 >          cat >>confdefs.h <<\_ACEOF
3863 > #define F90_FUNC_(name,NAME) NAME ## __
3864 > _ACEOF
3865 > ;;
3866 >  *)
3867 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
3868 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
3869 >          ;;
3870 > esac
3871 >
3872 >
3873 >
3874 >
3875 >
3876 > echo "$as_me:$LINENO: checking for module suffix" >&5
3877 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
3878 > rm -f conftest*
3879 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3880 > rm -f work*
3881 > cat >conftest.f90 <<EOF
3882 >        module conftest
3883 >        integer n
3884 >        parameter (n=1)
3885 >        end module conftest
3886 > EOF
3887 > # SGI and absoft compilers generates module name in upper case!
3888 > testname="conftest"
3889 > modcase="lower"
3890 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3891 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
3892 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
3893 >    if test -z "$MOD" ; then
3894 >        MOD=`ls CONFTEST* 2>/dev/null \
3895 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
3896 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
3897 >        if test -n "$MOD" ; then
3898 >            testname="CONFTEST"
3899 >            modcase="upper"
3900 >        fi
3901 >    fi
3902 >    if test -z "$MOD" ; then
3903 >        echo "$as_me:$LINENO: result: unknown" >&5
3904 > echo "${ECHO_T}unknown" >&6
3905 >        # Use mod if we can't figure it out
3906 >        MOD="mod"
3907 >    else
3908 >        echo "$as_me:$LINENO: result: $MOD" >&5
3909 > echo "${ECHO_T}$MOD" >&6
3910 >    fi
3911 >    if test -s work.pcl ; then
3912 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
3913 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
3914 >    fi
3915 > else
3916 >    echo "$as_me:$LINENO: result: unknown" >&5
3917 > echo "${ECHO_T}unknown" >&6
3918 > fi
3919 >
3920 >
3921 >
3922 >
3923 >
3924 > # Check for module include path (some use -I, some (Solaris) use -M, some
3925 > # (absoft) use -p).
3926 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
3927 > # specified, work.pcl and work.pc are created.  However, if you specify
3928 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
3929 > # Use the module made above
3930 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
3931 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
3932 > rm -f conftest*
3933 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3934 > rm -f work*
3935 > cat >conftest.f90 <<EOF
3936 >        module conftest
3937 >        integer n
3938 >        parameter (n=1)
3939 >        end module conftest
3940 > EOF
3941 > # SGI and absoft compilers generates module name in upper case!
3942 > testname="conftest"
3943 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3944 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
3945 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
3946 >   if test -n "$mod" ; then
3947 >      testname="CONFTEST"
3948 >   fi
3949 >   madedir=0
3950 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
3951 >   cp $testname.$MOD conf
3952 >   rm -f conftest* CONFTEST*
3953 >   cat >conftest1.f90 <<EOF
3954 >        program main
3955 >        use conftest
3956 >        print *, n
3957 >        end
3958 > EOF
3959 >   F90_WORK_FILES_ARG=""
3960 >   F90MODINCSPEC=""
3961 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
3962 >       MODDIRFLAG="-I"
3963 >       F90MODINCSPEC="-I<dir>"
3964 >       echo "$as_me:$LINENO: result: -I" >&5
3965 > echo "${ECHO_T}-I" >&6
3966 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
3967 >       MODDIRFLAG="-M"
3968 >       F90MODINCSPEC="-M<dir>"
3969 >       echo "$as_me:$LINENO: result: -M" >&5
3970 > echo "${ECHO_T}-M" >&6
3971 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
3972 >       MODDIRFLAG="-p"
3973 >       F90MODINCSPEC="-p<dir>"
3974 >       echo "$as_me:$LINENO: result: -p" >&5
3975 > echo "${ECHO_T}-p" >&6
3976 >   elif test -s work.pc ; then
3977 >        cp work.pc conf/mpimod.pc
3978 >        echo "mpimod.pc" > conf/mpimod.pcl
3979 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
3980 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
3981 >            MODDIRFLAG='-cl,mpimod.pcl'
3982 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
3983 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
3984 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
3985 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
3986 >
3987 >        else
3988 >            # The version of the Intel compiler that I have refuses to let
3989 >            # you put the "work catalog" list anywhere but the current
3990 >            # directory. For example, you cannot in
3991 >         :
3992 >        fi
3993 >   fi
3994 >   if test -z "MODDIRFLAG" ; then
3995 >       echo "$as_me:$LINENO: result: unknown" >&5
3996 > echo "${ECHO_T}unknown" >&6
3997 >   fi
3998 >
3999 >
4000 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4001 >   if test $madedir = 1 ; then rmdir conf ; fi
4002 > fi
4003 >
4004 >
4005 >
4006 >
4007 > case $debug in
4008 >  1)
4009 >     ;;
4010 >  *)
4011 >
4012 >
4013 >
4014 >
4015 >
4016 >
4017 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4018 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4019 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4020 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4021 > else
4022 >
4023 > cat > conftest.c <<EOF
4024 > #ifdef __GNUC__
4025 >  #ifndef __INTEL_COMPILER
4026 >     yes;
4027 >  #endif
4028 > #endif
4029 > EOF
4030 > if { ac_try='${CC-cc} -E conftest.c'
4031 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 >  (eval $ac_try) 2>&5
4033 >  ac_status=$?
4034 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4036 >  ac_cv_prog_really_gcc=yes
4037 > else
4038 >  ac_cv_prog_really_gcc=no
4039 > fi
4040 >
4041 > fi
4042 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4043 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4044 > if test "$ac_cv_prog_really_gcc" = yes; then
4045 >        :
4046 >
4047 > else
4048 >        :
4049 >
4050 > fi
4051 >
4052 >
4053 > # Try to determine "good" native compiler flags if none specified on command
4054 > # line
4055 > if test "$ac_test_CFLAGS" != "set"; then
4056 >  CFLAGS=""
4057 >  case "${host_cpu}-${host_os}" in
4058 >
4059 >  *linux*) if test "$CC" = icc; then
4060 >                    CFLAGS="-O"
4061 >                fi;;
4062 >  sparc-solaris2*) if test "$CC" = cc; then
4063 >                    CFLAGS="-native -fast -xO5 -dalign"
4064 >                 fi;;
4065 >
4066 >  alpha*-osf*)  if test "$CC" = cc; then
4067 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4068 >                fi;;
4069 >
4070 >  hppa*-hpux*)  if test "$CC" = cc; then
4071 >                    CFLAGS="-Ae +O3 +Oall"
4072 >                fi;;
4073 >
4074 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4075 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4076 >                fi;;
4077 >   powerpc*-aix*)
4078 >        if test "$CC" = cc -o "$CC" = xlc; then
4079 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4080 >                echo "*******************************************************"
4081 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4082 >                echo "*  recommended that you use                           *"
4083 >                echo "*                                                     *"
4084 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4085 >                echo "*                                 ^^^                 *"
4086 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4087 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4088 >                echo "*******************************************************"
4089 >        fi;;
4090 >   *darwin*)
4091 >        if test "$CC" = xlc -o "$CC" = cc; then
4092 >                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4093 >        fi;;
4094 >  esac
4095 >
4096 >  # use default flags for gcc on all systems
4097 >  if test $ac_cv_prog_really_gcc = yes; then
4098 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4099 >  fi
4100 >
4101 >  # test for gcc-specific flags:
4102 >  if test $ac_cv_prog_really_gcc = yes; then
4103 >    # -malign-double for x86 systems
4104 >
4105 >
4106 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4107 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4108 > if test "${ac_align_double+set}" = set; then
4109 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4110 > else
4111 >  echo 'void f(){}' > conftest.c
4112 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4113 >        ac_align_double=yes
4114 > else
4115 >        ac_align_double=no
4116 > fi
4117 > rm -f conftest*
4118 >
4119 > fi
4120 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4121 > echo "${ECHO_T}$ac_align_double" >&6
4122 > if test "$ac_align_double" = yes; then
4123 >        :
4124 >        CFLAGS="$CFLAGS -malign-double"
4125 > else
4126 >        :
4127 >
4128 > fi
4129 >
4130 >    # -fstrict-aliasing for gcc-2.95+
4131 >
4132 >
4133 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4134 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4135 > if test "${ac_fstrict_aliasing+set}" = set; then
4136 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4137 > else
4138 >  echo 'void f(){}' > conftest.c
4139 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4140 >        ac_fstrict_aliasing=yes
4141 > else
4142 >        ac_fstrict_aliasing=no
4143 > fi
4144 > rm -f conftest*
4145 >
4146 > fi
4147 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4148 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4149 > if test "$ac_fstrict_aliasing" = yes; then
4150 >        :
4151 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4152 > else
4153 >        :
4154 >
4155 > fi
4156 >
4157 >  fi
4158 >
4159 >  CPU_FLAGS=""
4160 >  if test $ac_cv_prog_really_gcc = yes; then
4161 >                  case "${host_cpu}" in
4162 >          i586*)
4163 >
4164 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4165 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4166 > if test "${ac_cpu_pentium+set}" = set; then
4167 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4168 > else
4169 >  echo 'void f(){}' > conftest.c
4170 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4171 >        ac_cpu_pentium=yes
4172 > else
4173 >        ac_cpu_pentium=no
4174 > fi
4175 > rm -f conftest*
4176 >
4177 > fi
4178 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4179 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4180 > if test "$ac_cpu_pentium" = yes; then
4181 >        :
4182 >        CPU_FLAGS=-mcpu=pentium
4183 > else
4184 >        :
4185 >
4186 >
4187 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4188 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4189 > if test "${ac_pentium+set}" = set; then
4190 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4191 > else
4192 >  echo 'void f(){}' > conftest.c
4193 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4194 >        ac_pentium=yes
4195 > else
4196 >        ac_pentium=no
4197 > fi
4198 > rm -f conftest*
4199 >
4200 > fi
4201 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4202 > echo "${ECHO_T}$ac_pentium" >&6
4203 > if test "$ac_pentium" = yes; then
4204 >        :
4205 >        CPU_FLAGS=-mpentium
4206 > else
4207 >        :
4208 >
4209 > fi
4210 >
4211 > fi
4212 >
4213 >                  ;;
4214 >          i686*)
4215 >
4216 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4217 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4218 > if test "${ac_cpu_pentiumpro+set}" = set; then
4219 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4220 > else
4221 >  echo 'void f(){}' > conftest.c
4222 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4223 >        ac_cpu_pentiumpro=yes
4224 > else
4225 >        ac_cpu_pentiumpro=no
4226 > fi
4227 > rm -f conftest*
4228 >
4229 > fi
4230 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4231 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4232 > if test "$ac_cpu_pentiumpro" = yes; then
4233 >        :
4234 >        CPU_FLAGS=-mcpu=pentiumpro
4235 > else
4236 >        :
4237 >
4238 >
4239 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4240 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4241 > if test "${ac_pentiumpro+set}" = set; then
4242 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4243 > else
4244 >  echo 'void f(){}' > conftest.c
4245 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4246 >        ac_pentiumpro=yes
4247 > else
4248 >        ac_pentiumpro=no
4249 > fi
4250 > rm -f conftest*
4251 >
4252 > fi
4253 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4254 > echo "${ECHO_T}$ac_pentiumpro" >&6
4255 > if test "$ac_pentiumpro" = yes; then
4256 >        :
4257 >        CPU_FLAGS=-mpentiumpro
4258 > else
4259 >        :
4260 >
4261 > fi
4262 >
4263 > fi
4264 >
4265 >                  ;;
4266 >          powerpc*)
4267 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4268 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4269 >                if test -n "$is60x"; then
4270 >
4271 >
4272 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4273 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4274 > if test "${ac_m_cpu_60x+set}" = set; then
4275 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4276 > else
4277 >  echo 'void f(){}' > conftest.c
4278 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4279 >        ac_m_cpu_60x=yes
4280 > else
4281 >        ac_m_cpu_60x=no
4282 > fi
4283 > rm -f conftest*
4284 >
4285 > fi
4286 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4287 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4288 > if test "$ac_m_cpu_60x" = yes; then
4289 >        :
4290 >        CPU_FLAGS=-mcpu=$cputype
4291 > else
4292 >        :
4293 >
4294 > fi
4295 >
4296 >                elif test "$cputype" = 750; then
4297 >
4298 >
4299 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4300 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4301 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4302 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4303 > else
4304 >
4305 > cat > conftest.c <<EOF
4306 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4307 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4308 >     yes;
4309 > #  endif
4310 > #endif
4311 > EOF
4312 > if { ac_try='${CC-cc} -E conftest.c'
4313 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 >  (eval $ac_try) 2>&5
4315 >  ac_status=$?
4316 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4318 >  ac_cv_prog_gcc_2_95=yes
4319 > else
4320 >  ac_cv_prog_gcc_2_95=no
4321 > fi
4322 >
4323 > fi
4324 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4325 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4326 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4327 >        :
4328 >
4329 >
4330 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4331   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4332   if test "${ac_m_cpu_750+set}" = set; then
4333    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2815 | Line 4341 | echo "$as_me:2818: result: $ac_m_cpu_750" >&5
4341   rm -f conftest*
4342  
4343   fi
4344 < echo "$as_me:2818: result: $ac_m_cpu_750" >&5
4344 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4345   echo "${ECHO_T}$ac_m_cpu_750" >&6
4346   if test "$ac_m_cpu_750" = yes; then
4347          :
# Line 2833 | Line 4359 | echo "$as_me:2836: checking whether ${CC-cc} accepts -
4359                  fi
4360                  if test -z "$CPU_FLAGS"; then
4361  
4362 < echo "$as_me:2836: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4362 >
4363 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4364   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4365   if test "${ac_m_cpu_powerpc+set}" = set; then
4366    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2847 | Line 4374 | echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
4374   rm -f conftest*
4375  
4376   fi
4377 < echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
4377 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4378   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4379   if test "$ac_m_cpu_powerpc" = yes; then
4380          :
# Line 2860 | Line 4387 | echo "$as_me:2863: checking whether ${CC-cc} accepts -
4387                  fi
4388                  if test -z "$CPU_FLAGS"; then
4389  
4390 < echo "$as_me:2863: checking whether ${CC-cc} accepts -mpowerpc" >&5
4390 >
4391 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4392   echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4393   if test "${ac_m_powerpc+set}" = set; then
4394    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2874 | Line 4402 | echo "$as_me:2877: result: $ac_m_powerpc" >&5
4402   rm -f conftest*
4403  
4404   fi
4405 < echo "$as_me:2877: result: $ac_m_powerpc" >&5
4405 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4406   echo "${ECHO_T}$ac_m_powerpc" >&6
4407   if test "$ac_m_powerpc" = yes; then
4408          :
# Line 2903 | Line 4431 | echo "$as_me:2906: checking whether ${CC-cc} accepts $
4431          CFLAGS="-O3"
4432    fi
4433  
4434 < echo "$as_me:2906: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4434 >
4435 >
4436 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4437   echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4438   if test "${ac_guessed_cflags+set}" = set; then
4439    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2917 | Line 4447 | echo "$as_me:2920: result: $ac_guessed_cflags" >&5
4447   rm -f conftest*
4448  
4449   fi
4450 < echo "$as_me:2920: result: $ac_guessed_cflags" >&5
4450 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4451   echo "${ECHO_T}$ac_guessed_cflags" >&6
4452   if test "$ac_guessed_cflags" = yes; then
4453          :
# Line 2935 | Line 4465 | fi
4465          CFLAGS=""
4466  
4467   fi
4468 +
4469 +
4470 + fi
4471 +
4472 +
4473 +
4474 +
4475 +
4476 +
4477 +
4478 + echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4479 + echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4480 + if test "${ac_cv_prog_really_gxx+set}" = set; then
4481 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4482 + else
4483 +
4484 + cat > conftest.cpp <<EOF
4485 + #ifdef __GNUC__
4486 +  #ifndef __INTEL_COMPILER
4487 +     yes;
4488 +  #endif
4489 + #endif
4490 + EOF
4491 + if { ac_try='${CXX-c++} -E conftest.cpp'
4492 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 +  (eval $ac_try) 2>&5
4494 +  ac_status=$?
4495 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4497 +  ac_cv_prog_really_gxx=yes
4498 + else
4499 +  ac_cv_prog_really_gxx=no
4500 + fi
4501 +
4502 + fi
4503 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4504 + echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4505 + if test "$ac_cv_prog_really_gxx" = yes; then
4506 +        :
4507  
4508 + else
4509 +        :
4510 +
4511   fi
4512  
4513 +
4514   # Try to determine "good" native compiler flags if none specified on command
4515   # line
4516   if test "$ac_test_CXXFLAGS" != "set"; then
# Line 2967 | Line 4540 | if test "$ac_test_CXXFLAGS" != "set"; then
4540                  echo "*******************************************************"
4541          fi;;
4542     *darwin*)
4543 <        if test "$CXX" = xlC; then
4544 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
2972 <                echo "*******************************************************"
2973 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2974 <                echo "*  recommended that you use                           *"
2975 <                echo "*                                                     *"
2976 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2977 <                echo "*                                 ^^^                 *"
2978 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2979 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2980 <                echo "*******************************************************"
4543 >        if test "$CXX" = xlc++; then
4544 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4545          fi;;
4546    esac
4547  
4548    # use default flags for gcc on all systems
4549 <  if test $ac_cv_c_compiler_gnu = yes; then
4549 >  if test $ac_cv_prog_really_gxx = yes; then
4550       CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4551    fi
4552  
4553    # test for gcc-specific flags:
4554 <  if test $ac_cv_c_compiler_gnu = yes; then
4554 >  if test $ac_cv_prog_really_gxx = yes; then
4555      # -malign-double for x86 systems
4556  
4557 < echo "$as_me:2993: checking whether ${CXX-c++} accepts -malign-double" >&5
4557 >
4558 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4559   echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4560   if test "${ac_align_double+set}" = set; then
4561    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3004 | Line 4569 | echo "$as_me:3007: result: $ac_align_double" >&5
4569   rm -f conftest*
4570  
4571   fi
4572 < echo "$as_me:3007: result: $ac_align_double" >&5
4572 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4573   echo "${ECHO_T}$ac_align_double" >&6
4574   if test "$ac_align_double" = yes; then
4575          :
# Line 3016 | Line 4581 | echo "$as_me:3019: checking whether ${CXX-c++} accepts
4581  
4582      # -fstrict-aliasing for gcc-2.95+
4583  
4584 < echo "$as_me:3019: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4584 >
4585 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4586   echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4587   if test "${ac_fstrict_aliasing+set}" = set; then
4588    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3030 | Line 4596 | echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
4596   rm -f conftest*
4597  
4598   fi
4599 < echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
4599 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4600   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4601   if test "$ac_fstrict_aliasing" = yes; then
4602          :
# Line 3043 | Line 4609 | fi
4609    fi
4610  
4611    CPU_FLAGS=""
4612 <  if test "$GCC" = "yes"; then
4612 >  if test $ac_cv_prog_really_gxx = yes; then
4613                    case "${host_cpu}" in
4614            i586*)
4615  
4616 < echo "$as_me:3050: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4617 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4616 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4617 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4618   if test "${ac_cpu_pentium+set}" = set; then
4619    echo $ECHO_N "(cached) $ECHO_C" >&6
4620   else
4621 <  echo 'void f(){}' > conftest.c
4622 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4621 >  echo 'void f(){}' > conftest.cpp
4622 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4623          ac_cpu_pentium=yes
4624   else
4625          ac_cpu_pentium=no
# Line 3061 | Line 4627 | echo "$as_me:3064: result: $ac_cpu_pentium" >&5
4627   rm -f conftest*
4628  
4629   fi
4630 < echo "$as_me:3064: result: $ac_cpu_pentium" >&5
4630 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4631   echo "${ECHO_T}$ac_cpu_pentium" >&6
4632   if test "$ac_cpu_pentium" = yes; then
4633          :
# Line 3069 | Line 4635 | echo "$as_me:3072: checking whether ${CXX-c++} accepts
4635   else
4636          :
4637  
4638 < echo "$as_me:3072: checking whether ${CXX-c++} accepts -mpentium" >&5
4638 >
4639 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4640   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4641   if test "${ac_pentium+set}" = set; then
4642    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3083 | Line 4650 | echo "$as_me:3086: result: $ac_pentium" >&5
4650   rm -f conftest*
4651  
4652   fi
4653 < echo "$as_me:3086: result: $ac_pentium" >&5
4653 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4654   echo "${ECHO_T}$ac_pentium" >&6
4655   if test "$ac_pentium" = yes; then
4656          :
# Line 3098 | Line 4665 | echo "$as_me:3101: checking whether ${CXX-c++} accepts
4665                    ;;
4666            i686*)
4667  
4668 < echo "$as_me:3101: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4668 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4669   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4670   if test "${ac_cpu_pentiumpro+set}" = set; then
4671    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3112 | Line 4679 | echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
4679   rm -f conftest*
4680  
4681   fi
4682 < echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
4682 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4683   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4684   if test "$ac_cpu_pentiumpro" = yes; then
4685          :
# Line 3120 | Line 4687 | echo "$as_me:3123: checking whether ${CXX-c++} accepts
4687   else
4688          :
4689  
4690 < echo "$as_me:3123: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4690 >
4691 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4692   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4693   if test "${ac_pentiumpro+set}" = set; then
4694    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3134 | Line 4702 | echo "$as_me:3137: result: $ac_pentiumpro" >&5
4702   rm -f conftest*
4703  
4704   fi
4705 < echo "$as_me:3137: result: $ac_pentiumpro" >&5
4705 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4706   echo "${ECHO_T}$ac_pentiumpro" >&6
4707   if test "$ac_pentiumpro" = yes; then
4708          :
# Line 3152 | Line 4720 | echo "$as_me:3155: checking whether ${CXX-c++} accepts
4720                  is60x=`echo $cputype | egrep "^600-9e?$"`
4721                  if test -n "$is60x"; then
4722  
4723 < echo "$as_me:3155: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4723 >
4724 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4725   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4726   if test "${ac_m_cpu_60x+set}" = set; then
4727    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3166 | Line 4735 | echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
4735   rm -f conftest*
4736  
4737   fi
4738 < echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
4738 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4739   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4740   if test "$ac_m_cpu_60x" = yes; then
4741          :
# Line 3178 | Line 4747 | echo "$as_me:3181: checking whether we are using gcc 2
4747  
4748                  elif test "$cputype" = 750; then
4749  
4750 < echo "$as_me:3181: checking whether we are using gcc 2.95 or later" >&5
4751 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4752 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4750 >
4751 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4752 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4753 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4754    echo $ECHO_N "(cached) $ECHO_C" >&6
4755   else
4756  
4757 < cat > conftest.c <<EOF
4758 < #ifdef __GNUC__
4757 > cat > conftest.cpp <<EOF
4758 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4759   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4760       yes;
4761   #  endif
4762   #endif
4763   EOF
4764 < if { ac_try='${CC-cc} -E conftest.c'
4765 <  { (eval echo "$as_me:3195: \"$ac_try\"") >&5
4764 > if { ac_try='${CXX-c++} -E conftest.cpp'
4765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766    (eval $ac_try) 2>&5
4767    ac_status=$?
4768 <  echo "$as_me:3198: \$? = $ac_status" >&5
4768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4770 <  ac_cv_prog_gcc_2_95=yes
4770 >  ac_cv_prog_gxx_2_95=yes
4771   else
4772 <  ac_cv_prog_gcc_2_95=no
4772 >  ac_cv_prog_gxx_2_95=no
4773   fi
4774  
4775   fi
4776 < echo "$as_me:3206: result: $ac_cv_prog_gcc_2_95" >&5
4777 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4778 < if test "$ac_cv_prog_gcc_2_95" = yes; then
4776 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4777 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4778 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4779          :
4780  
4781 < echo "$as_me:3211: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4783   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4784   if test "${ac_m_cpu_750+set}" = set; then
4785    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3222 | Line 4793 | echo "$as_me:3225: result: $ac_m_cpu_750" >&5
4793   rm -f conftest*
4794  
4795   fi
4796 < echo "$as_me:3225: result: $ac_m_cpu_750" >&5
4796 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4797   echo "${ECHO_T}$ac_m_cpu_750" >&6
4798   if test "$ac_m_cpu_750" = yes; then
4799          :
# Line 3240 | Line 4811 | echo "$as_me:3243: checking whether ${CXX-c++} accepts
4811                  fi
4812                  if test -z "$CPU_FLAGS"; then
4813  
4814 < echo "$as_me:3243: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4814 >
4815 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4816   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4817   if test "${ac_m_cpu_powerpc+set}" = set; then
4818    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3254 | Line 4826 | echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
4826   rm -f conftest*
4827  
4828   fi
4829 < echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
4829 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4830   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4831   if test "$ac_m_cpu_powerpc" = yes; then
4832          :
# Line 3267 | Line 4839 | echo "$as_me:3270: checking whether ${CXX-c++} accepts
4839                  fi
4840                  if test -z "$CPU_FLAGS"; then
4841  
4842 < echo "$as_me:3270: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4842 >
4843 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4844   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4845   if test "${ac_m_powerpc+set}" = set; then
4846    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3281 | Line 4854 | echo "$as_me:3284: result: $ac_m_powerpc" >&5
4854   rm -f conftest*
4855  
4856   fi
4857 < echo "$as_me:3284: result: $ac_m_powerpc" >&5
4857 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4858   echo "${ECHO_T}$ac_m_powerpc" >&6
4859   if test "$ac_m_powerpc" = yes; then
4860          :
# Line 3310 | Line 4883 | echo "$as_me:3313: checking whether ${CXX-c++} accepts
4883          CXXFLAGS="-O3"
4884    fi
4885  
4886 < echo "$as_me:3313: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4886 >
4887 >
4888 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4889   echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4890   if test "${ac_guessed_cxxflags+set}" = set; then
4891    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3324 | Line 4899 | echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
4899   rm -f conftest*
4900  
4901   fi
4902 < echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
4902 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4903   echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4904   if test "$ac_guessed_cxxflags" = yes; then
4905          :
# Line 3343 | Line 4918 | fi
4918  
4919   fi
4920  
4921 +
4922   fi
4923  
4924 +
4925 +
4926 +
4927 +
4928   # Try to determine "good" native compiler flags if none specified on command
4929   # line
4930  
# Line 3352 | Line 4932 | if test x"$F90FLAGS" = x ; then
4932    F90FLAGS=""
4933    case "${host_cpu}-${host_os}" in
4934  
4935 <  *linux*) if test "$F90" = ifc; then
4935 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
4936                      F90FLAGS="-O"
4937                  fi;;
4938     rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3372 | Line 4952 | if test x"$F90FLAGS" = x ; then
4952                  echo "*******************************************************"
4953          fi;;
4954     *darwin*)
4955 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4956 <                F90FLAGS="-O3 -qtune=auto -w"
3377 <                echo "*********************************************************"
3378 <                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3379 <                echo "*  recommended that you use                             *"
3380 <                echo "*                                                       *"
3381 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3382 <                echo "*                                 ^^^                   *"
3383 <                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3384 <                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3385 <                echo "*********************************************************"
4955 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
4956 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
4957          fi;;
4958    esac
4959  
# Line 3401 | Line 4972 | echo "$as_me:3404: checking whether ${F90-f90} accepts
4972          F90FLAGS="-O3"
4973    fi
4974  
4975 < echo "$as_me:3404: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4975 >
4976 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4977   echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4978   if test "${ac_guessed_f90flags+set}" = set; then
4979    echo $ECHO_N "(cached) $ECHO_C" >&6
4980   else
4981  
4982 +
4983 +
4984   ac_ext=f90
4985   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4986   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3415 | Line 4989 | if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
4989   echo 'program main' > conftest.$ac_ext
4990   echo 'end program main' >> conftest.$ac_ext
4991   ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4992 < if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
4992 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993    (eval $ac_compile) 2>&5
4994    ac_status=$?
4995 <  echo "$as_me:3421: \$? = $ac_status" >&5
4995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996    (exit $ac_status); }; then
4997          ac_guessed_f90flags=yes
4998   else
4999          ac_guessed_f90flags=no
5000   fi
5001   rm -f conftest*
5002 < ac_ext=c
5003 < ac_cpp='$CPP $CPPFLAGS'
5004 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 > ac_ext=f90
5003 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5004 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5006  
5007 +
5008   fi
5009 < echo "$as_me:3435: result: $ac_guessed_f90flags" >&5
5009 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5010   echo "${ECHO_T}$ac_guessed_f90flags" >&6
5011   if test "$ac_guessed_f90flags" = yes; then
5012          :
# Line 3451 | Line 5025 | fi
5025  
5026   fi
5027  
5028 +
5029   fi
5030  
5031       ;;
# Line 3468 | Line 5043 | echo "$as_me:3471: checking for a BSD compatible insta
5043   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5044   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5045   # ./install, which can be erroneously created by make from ./install.sh.
5046 < echo "$as_me:3471: checking for a BSD compatible install" >&5
5047 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5046 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5047 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5048   if test -z "$INSTALL"; then
5049   if test "${ac_cv_path_install+set}" = set; then
5050    echo $ECHO_N "(cached) $ECHO_C" >&6
5051   else
5052 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
5053 <  for ac_dir in $PATH; do
5054 <    IFS=$ac_save_IFS
5055 <    # Account for people who put trailing slashes in PATH elements.
5056 <    case $ac_dir/ in
5057 <    / | ./ | .// | /cC/* \
5058 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5059 <    | /usr/ucb/* ) ;;
5060 <    *)
5061 <      # OSF1 and SCO ODT 3.0 have their own names for install.
5062 <      # Don't use installbsd from OSF since it installs stuff as root
5063 <      # by default.
5064 <      for ac_prog in ginstall scoinst install; do
5065 <        if $as_executable_p "$ac_dir/$ac_prog"; then
5066 <          if test $ac_prog = install &&
5067 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5068 <            # AIX install.  It has an incompatible calling convention.
5069 <            :
5070 <          elif test $ac_prog = install &&
5071 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5072 <            # program-specific install script used by HP pwplus--don't use.
5073 <            :
5074 <          else
5075 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
5076 <            break 2
5077 <          fi
5078 <        fi
5052 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 > for as_dir in $PATH
5054 > do
5055 >  IFS=$as_save_IFS
5056 >  test -z "$as_dir" && as_dir=.
5057 >  # Account for people who put trailing slashes in PATH elements.
5058 > case $as_dir/ in
5059 >  ./ | .// | /cC/* | \
5060 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5061 >  /usr/ucb/* ) ;;
5062 >  *)
5063 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5064 >    # Don't use installbsd from OSF since it installs stuff as root
5065 >    # by default.
5066 >    for ac_prog in ginstall scoinst install; do
5067 >      for ac_exec_ext in '' $ac_executable_extensions; do
5068 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5069 >          if test $ac_prog = install &&
5070 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5071 >            # AIX install.  It has an incompatible calling convention.
5072 >            :
5073 >          elif test $ac_prog = install &&
5074 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5075 >            # program-specific install script used by HP pwplus--don't use.
5076 >            :
5077 >          else
5078 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5079 >            break 3
5080 >          fi
5081 >        fi
5082        done
5083 <      ;;
5084 <    esac
5085 <  done
5083 >    done
5084 >    ;;
5085 > esac
5086 > done
5087  
5088 +
5089   fi
5090    if test "${ac_cv_path_install+set}" = set; then
5091      INSTALL=$ac_cv_path_install
# Line 3517 | Line 5097 | echo "$as_me:3520: result: $INSTALL" >&5
5097      INSTALL=$ac_install_sh
5098    fi
5099   fi
5100 < echo "$as_me:3520: result: $INSTALL" >&5
5100 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5101   echo "${ECHO_T}$INSTALL" >&6
5102  
5103   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3528 | Line 5108 | echo "$as_me:3531: checking whether ln -s works" >&5
5108  
5109   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5110  
5111 < echo "$as_me:3531: checking whether ln -s works" >&5
5111 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5112   echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5113   LN_S=$as_ln_s
5114   if test "$LN_S" = "ln -s"; then
5115 <  echo "$as_me:3535: result: yes" >&5
5115 >  echo "$as_me:$LINENO: result: yes" >&5
5116   echo "${ECHO_T}yes" >&6
5117   else
5118 <  echo "$as_me:3538: result: no, using $LN_S" >&5
5118 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5119   echo "${ECHO_T}no, using $LN_S" >&6
5120   fi
5121  
5122 < echo "$as_me:3542: checking whether ${MAKE-make} sets \${MAKE}" >&5
5123 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5122 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5123 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5124   set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5125   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5126    echo $ECHO_N "(cached) $ECHO_C" >&6
5127   else
5128 <  cat >conftest.make <<\EOF
5128 >  cat >conftest.make <<\_ACEOF
5129   all:
5130 <        @echo 'ac_maketemp="${MAKE}"'
5131 < EOF
5130 >        @echo 'ac_maketemp="$(MAKE)"'
5131 > _ACEOF
5132   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5133   eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5134   if test -n "$ac_maketemp"; then
# Line 3559 | Line 5139 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_se
5139   rm -f conftest.make
5140   fi
5141   if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5142 <  echo "$as_me:3562: result: yes" >&5
5142 >  echo "$as_me:$LINENO: result: yes" >&5
5143   echo "${ECHO_T}yes" >&6
5144    SET_MAKE=
5145   else
5146 <  echo "$as_me:3566: result: no" >&5
5146 >  echo "$as_me:$LINENO: result: no" >&5
5147   echo "${ECHO_T}no" >&6
5148    SET_MAKE="MAKE=${MAKE-make}"
5149   fi
# Line 3571 | Line 5151 | echo "$as_me:3574: checking for $ac_word" >&5
5151   if test -n "$ac_tool_prefix"; then
5152    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5153   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5154 < echo "$as_me:3574: checking for $ac_word" >&5
5154 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5155   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156   if test "${ac_cv_prog_RANLIB+set}" = set; then
5157    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3579 | Line 5159 | else
5159    if test -n "$RANLIB"; then
5160    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5161   else
5162 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5163 < ac_dummy="$PATH"
5164 < for ac_dir in $ac_dummy; do
5165 <  IFS=$ac_save_IFS
5166 <  test -z "$ac_dir" && ac_dir=.
5167 <  $as_executable_p "$ac_dir/$ac_word" || continue
5168 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5169 < echo "$as_me:3589: found $ac_dir/$ac_word" >&5
5170 < break
5162 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 > for as_dir in $PATH
5164 > do
5165 >  IFS=$as_save_IFS
5166 >  test -z "$as_dir" && as_dir=.
5167 >  for ac_exec_ext in '' $ac_executable_extensions; do
5168 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5170 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 >    break 2
5172 >  fi
5173   done
5174 + done
5175  
5176   fi
5177   fi
5178   RANLIB=$ac_cv_prog_RANLIB
5179   if test -n "$RANLIB"; then
5180 <  echo "$as_me:3597: result: $RANLIB" >&5
5180 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5181   echo "${ECHO_T}$RANLIB" >&6
5182   else
5183 <  echo "$as_me:3600: result: no" >&5
5183 >  echo "$as_me:$LINENO: result: no" >&5
5184   echo "${ECHO_T}no" >&6
5185   fi
5186  
# Line 3606 | Line 5189 | echo "$as_me:3609: checking for $ac_word" >&5
5189    ac_ct_RANLIB=$RANLIB
5190    # Extract the first word of "ranlib", so it can be a program name with args.
5191   set dummy ranlib; ac_word=$2
5192 < echo "$as_me:3609: checking for $ac_word" >&5
5192 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5193   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194   if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5195    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3614 | Line 5197 | else
5197    if test -n "$ac_ct_RANLIB"; then
5198    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5199   else
5200 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5201 < ac_dummy="$PATH"
5202 < for ac_dir in $ac_dummy; do
5203 <  IFS=$ac_save_IFS
5204 <  test -z "$ac_dir" && ac_dir=.
5205 <  $as_executable_p "$ac_dir/$ac_word" || continue
5206 < ac_cv_prog_ac_ct_RANLIB="ranlib"
5207 < echo "$as_me:3624: found $ac_dir/$ac_word" >&5
5208 < break
5200 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 > for as_dir in $PATH
5202 > do
5203 >  IFS=$as_save_IFS
5204 >  test -z "$as_dir" && as_dir=.
5205 >  for ac_exec_ext in '' $ac_executable_extensions; do
5206 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5208 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 >    break 2
5210 >  fi
5211   done
5212 + done
5213  
5214    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5215   fi
5216   fi
5217   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5218   if test -n "$ac_ct_RANLIB"; then
5219 <  echo "$as_me:3633: result: $ac_ct_RANLIB" >&5
5219 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5220   echo "${ECHO_T}$ac_ct_RANLIB" >&6
5221   else
5222 <  echo "$as_me:3636: result: no" >&5
5222 >  echo "$as_me:$LINENO: result: no" >&5
5223   echo "${ECHO_T}no" >&6
5224   fi
5225  
# Line 3646 | Line 5232 | echo "$as_me:3649: checking for $ac_word" >&5
5232   do
5233    # Extract the first word of "$ac_prog", so it can be a program name with args.
5234   set dummy $ac_prog; ac_word=$2
5235 < echo "$as_me:3649: checking for $ac_word" >&5
5235 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5236   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237   if test "${ac_cv_prog_YACC+set}" = set; then
5238    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3654 | Line 5240 | else
5240    if test -n "$YACC"; then
5241    ac_cv_prog_YACC="$YACC" # Let the user override the test.
5242   else
5243 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5244 < ac_dummy="$PATH"
5245 < for ac_dir in $ac_dummy; do
5246 <  IFS=$ac_save_IFS
5247 <  test -z "$ac_dir" && ac_dir=.
5248 <  $as_executable_p "$ac_dir/$ac_word" || continue
5249 < ac_cv_prog_YACC="$ac_prog"
5250 < echo "$as_me:3664: found $ac_dir/$ac_word" >&5
5251 < break
5243 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 > for as_dir in $PATH
5245 > do
5246 >  IFS=$as_save_IFS
5247 >  test -z "$as_dir" && as_dir=.
5248 >  for ac_exec_ext in '' $ac_executable_extensions; do
5249 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 >    ac_cv_prog_YACC="$ac_prog"
5251 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 >    break 2
5253 >  fi
5254   done
5255 + done
5256  
5257   fi
5258   fi
5259   YACC=$ac_cv_prog_YACC
5260   if test -n "$YACC"; then
5261 <  echo "$as_me:3672: result: $YACC" >&5
5261 >  echo "$as_me:$LINENO: result: $YACC" >&5
5262   echo "${ECHO_T}$YACC" >&6
5263   else
5264 <  echo "$as_me:3675: result: no" >&5
5264 >  echo "$as_me:$LINENO: result: no" >&5
5265   echo "${ECHO_T}no" >&6
5266   fi
5267  
# Line 3684 | Line 5273 | echo "$as_me:3687: checking for $ac_word" >&5
5273   do
5274    # Extract the first word of "$ac_prog", so it can be a program name with args.
5275   set dummy $ac_prog; ac_word=$2
5276 < echo "$as_me:3687: checking for $ac_word" >&5
5276 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5277   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278   if test "${ac_cv_prog_LEX+set}" = set; then
5279    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3692 | Line 5281 | else
5281    if test -n "$LEX"; then
5282    ac_cv_prog_LEX="$LEX" # Let the user override the test.
5283   else
5284 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5285 < ac_dummy="$PATH"
5286 < for ac_dir in $ac_dummy; do
5287 <  IFS=$ac_save_IFS
5288 <  test -z "$ac_dir" && ac_dir=.
5289 <  $as_executable_p "$ac_dir/$ac_word" || continue
5290 < ac_cv_prog_LEX="$ac_prog"
5291 < echo "$as_me:3702: found $ac_dir/$ac_word" >&5
5292 < break
5284 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 > for as_dir in $PATH
5286 > do
5287 >  IFS=$as_save_IFS
5288 >  test -z "$as_dir" && as_dir=.
5289 >  for ac_exec_ext in '' $ac_executable_extensions; do
5290 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 >    ac_cv_prog_LEX="$ac_prog"
5292 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 >    break 2
5294 >  fi
5295   done
5296 + done
5297  
5298   fi
5299   fi
5300   LEX=$ac_cv_prog_LEX
5301   if test -n "$LEX"; then
5302 <  echo "$as_me:3710: result: $LEX" >&5
5302 >  echo "$as_me:$LINENO: result: $LEX" >&5
5303   echo "${ECHO_T}$LEX" >&6
5304   else
5305 <  echo "$as_me:3713: result: no" >&5
5305 >  echo "$as_me:$LINENO: result: no" >&5
5306   echo "${ECHO_T}no" >&6
5307   fi
5308  
# Line 3720 | Line 5312 | then
5312  
5313   if test -z "$LEXLIB"
5314   then
5315 <  echo "$as_me:3723: checking for yywrap in -lfl" >&5
5315 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5316   echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5317   if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5318    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3728 | Line 5320 | cat >conftest.$ac_ext <<_ACEOF
5320    ac_check_lib_save_LIBS=$LIBS
5321   LIBS="-lfl  $LIBS"
5322   cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
5323  
5324 < /* Override any gcc2 internal prototype to avoid an error.  */
5325 < #ifdef __cplusplus
5326 < extern "C"
5327 < #endif
5328 < /* We use char because int might match the return type of a gcc2
3739 <   builtin and then its argument prototype would still apply.  */
3740 < char yywrap ();
3741 < int
3742 < main ()
3743 < {
3744 < yywrap ();
3745 <  ;
3746 <  return 0;
3747 < }
5324 > program main
5325 >
5326 > call yywrap
5327 > end program main
5328 >
5329   _ACEOF
5330   rm -f conftest.$ac_objext conftest$ac_exeext
5331 < if { (eval echo "$as_me:3750: \"$ac_link\"") >&5
5331 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332    (eval $ac_link) 2>&5
5333    ac_status=$?
5334 <  echo "$as_me:3753: \$? = $ac_status" >&5
5334 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335    (exit $ac_status); } &&
5336           { ac_try='test -s conftest$ac_exeext'
5337 <  { (eval echo "$as_me:3756: \"$ac_try\"") >&5
5337 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338    (eval $ac_try) 2>&5
5339    ac_status=$?
5340 <  echo "$as_me:3759: \$? = $ac_status" >&5
5340 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341    (exit $ac_status); }; }; then
5342    ac_cv_lib_fl_yywrap=yes
5343   else
5344    echo "$as_me: failed program was:" >&5
5345 < cat conftest.$ac_ext >&5
5345 > sed 's/^/| /' conftest.$ac_ext >&5
5346 >
5347   ac_cv_lib_fl_yywrap=no
5348   fi
5349   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5350   LIBS=$ac_check_lib_save_LIBS
5351   fi
5352 < echo "$as_me:3770: result: $ac_cv_lib_fl_yywrap" >&5
5352 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5353   echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5354   if test $ac_cv_lib_fl_yywrap = yes; then
5355    LEXLIB="-lfl"
5356   else
5357 <  echo "$as_me:3775: checking for yywrap in -ll" >&5
5357 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5358   echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5359   if test "${ac_cv_lib_l_yywrap+set}" = set; then
5360    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3780 | Line 5362 | cat >conftest.$ac_ext <<_ACEOF
5362    ac_check_lib_save_LIBS=$LIBS
5363   LIBS="-ll  $LIBS"
5364   cat >conftest.$ac_ext <<_ACEOF
3783 #line 3783 "configure"
3784 #include "confdefs.h"
5365  
5366 < /* Override any gcc2 internal prototype to avoid an error.  */
5367 < #ifdef __cplusplus
5368 < extern "C"
5369 < #endif
5370 < /* We use char because int might match the return type of a gcc2
3791 <   builtin and then its argument prototype would still apply.  */
3792 < char yywrap ();
3793 < int
3794 < main ()
3795 < {
3796 < yywrap ();
3797 <  ;
3798 <  return 0;
3799 < }
5366 > program main
5367 >
5368 > call yywrap
5369 > end program main
5370 >
5371   _ACEOF
5372   rm -f conftest.$ac_objext conftest$ac_exeext
5373 < if { (eval echo "$as_me:3802: \"$ac_link\"") >&5
5373 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374    (eval $ac_link) 2>&5
5375    ac_status=$?
5376 <  echo "$as_me:3805: \$? = $ac_status" >&5
5376 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377    (exit $ac_status); } &&
5378           { ac_try='test -s conftest$ac_exeext'
5379 <  { (eval echo "$as_me:3808: \"$ac_try\"") >&5
5379 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380    (eval $ac_try) 2>&5
5381    ac_status=$?
5382 <  echo "$as_me:3811: \$? = $ac_status" >&5
5382 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383    (exit $ac_status); }; }; then
5384    ac_cv_lib_l_yywrap=yes
5385   else
5386    echo "$as_me: failed program was:" >&5
5387 < cat conftest.$ac_ext >&5
5387 > sed 's/^/| /' conftest.$ac_ext >&5
5388 >
5389   ac_cv_lib_l_yywrap=no
5390   fi
5391   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392   LIBS=$ac_check_lib_save_LIBS
5393   fi
5394 < echo "$as_me:3822: result: $ac_cv_lib_l_yywrap" >&5
5394 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5395   echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5396   if test $ac_cv_lib_l_yywrap = yes; then
5397    LEXLIB="-ll"
# Line 3830 | Line 5402 | if test "x$LEX" != "x:"; then
5402   fi
5403  
5404   if test "x$LEX" != "x:"; then
5405 <  echo "$as_me:3833: checking lex output file root" >&5
5405 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5406   echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5407   if test "${ac_cv_prog_lex_root+set}" = set; then
5408    echo $ECHO_N "(cached) $ECHO_C" >&6
5409   else
5410    # The minimal lex program is just a single line: %%.  But some broken lexes
5411   # (Solaris, I think it was) want two %% lines, so accommodate them.
5412 < echo '%%
5413 < %%' | $LEX
5412 > cat >conftest.l <<_ACEOF
5413 > %%
5414 > %%
5415 > _ACEOF
5416 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5417 >  (eval $LEX conftest.l) 2>&5
5418 >  ac_status=$?
5419 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 >  (exit $ac_status); }
5421   if test -f lex.yy.c; then
5422    ac_cv_prog_lex_root=lex.yy
5423   elif test -f lexyy.c; then
5424    ac_cv_prog_lex_root=lexyy
5425   else
5426 <  { { echo "$as_me:3847: error: cannot find output from $LEX; giving up" >&5
5426 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5427   echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5428     { (exit 1); exit 1; }; }
5429   fi
5430   fi
5431 < echo "$as_me:3852: result: $ac_cv_prog_lex_root" >&5
5431 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5432   echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5433 + rm -f conftest.l
5434   LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5435  
5436 < echo "$as_me:3856: checking whether yytext is a pointer" >&5
5436 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5437   echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5438   if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5439    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3869 | Line 5449 | if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
5449   `cat $LEX_OUTPUT_ROOT.c`
5450   _ACEOF
5451   rm -f conftest.$ac_objext conftest$ac_exeext
5452 < if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
5452 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453    (eval $ac_link) 2>&5
5454    ac_status=$?
5455 <  echo "$as_me:3875: \$? = $ac_status" >&5
5455 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456    (exit $ac_status); } &&
5457           { ac_try='test -s conftest$ac_exeext'
5458 <  { (eval echo "$as_me:3878: \"$ac_try\"") >&5
5458 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459    (eval $ac_try) 2>&5
5460    ac_status=$?
5461 <  echo "$as_me:3881: \$? = $ac_status" >&5
5461 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462    (exit $ac_status); }; }; then
5463    ac_cv_prog_lex_yytext_pointer=yes
5464   else
5465    echo "$as_me: failed program was:" >&5
5466 < cat conftest.$ac_ext >&5
5466 > sed 's/^/| /' conftest.$ac_ext >&5
5467 >
5468   fi
5469   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5470   LIBS=$ac_save_LIBS
5471   rm -f "${LEX_OUTPUT_ROOT}.c"
5472  
5473   fi
5474 < echo "$as_me:3893: result: $ac_cv_prog_lex_yytext_pointer" >&5
5474 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5475   echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5476   if test $ac_cv_prog_lex_yytext_pointer = yes; then
5477  
5478 < cat >>confdefs.h <<\EOF
5478 > cat >>confdefs.h <<\_ACEOF
5479   #define YYTEXT_POINTER 1
5480 < EOF
5480 > _ACEOF
5481  
5482   fi
5483  
5484   fi
5485   # Extract the first word of "ar", so it can be a program name with args.
5486   set dummy ar; ac_word=$2
5487 < echo "$as_me:3906: checking for $ac_word" >&5
5487 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5488   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489   if test "${ac_cv_prog_AR+set}" = set; then
5490    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3911 | Line 5492 | else
5492    if test -n "$AR"; then
5493    ac_cv_prog_AR="$AR" # Let the user override the test.
5494   else
5495 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5496 < ac_dummy="$PATH"
5497 < for ac_dir in $ac_dummy; do
5498 <  IFS=$ac_save_IFS
5499 <  test -z "$ac_dir" && ac_dir=.
5500 <  $as_executable_p "$ac_dir/$ac_word" || continue
5501 < ac_cv_prog_AR="ar"
5502 < echo "$as_me:3921: found $ac_dir/$ac_word" >&5
5503 < break
5495 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 > for as_dir in $PATH
5497 > do
5498 >  IFS=$as_save_IFS
5499 >  test -z "$as_dir" && as_dir=.
5500 >  for ac_exec_ext in '' $ac_executable_extensions; do
5501 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 >    ac_cv_prog_AR="ar"
5503 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 >    break 2
5505 >  fi
5506   done
5507 + done
5508  
5509    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5510   fi
5511   fi
5512   AR=$ac_cv_prog_AR
5513   if test -n "$AR"; then
5514 <  echo "$as_me:3930: result: $AR" >&5
5514 >  echo "$as_me:$LINENO: result: $AR" >&5
5515   echo "${ECHO_T}$AR" >&6
5516   else
5517 <  echo "$as_me:3933: result: no" >&5
5517 >  echo "$as_me:$LINENO: result: no" >&5
5518   echo "${ECHO_T}no" >&6
5519   fi
5520  
5521   if test "$AR" = "NONE"; then
5522 <  { { echo "$as_me:3938: error: --> Can't find \`ar'!" >&5
5522 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5523   echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5524     { (exit 1); exit 1; }; }
5525    cat >confcache <<\_ACEOF
# Line 3948 | Line 5532 | echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5532   # config.status only pays attention to the cache file if you give it
5533   # the --recheck option to rerun configure.
5534   #
5535 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
5535 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5536   # loading this file, other *unset* `ac_cv_foo' will be assigned the
5537   # following values.
5538  
# Line 3967 | Line 5551 | _ACEOF
5551        # substitution turns \\\\ into \\, and sed turns \\ into \).
5552        sed -n \
5553          "s/'/'\\\\''/g;
5554 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5554 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5555        ;;
5556      *)
5557        # `set' quotes correctly as required by POSIX, so do not add quotes.
5558        sed -n \
5559 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5559 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5560        ;;
5561      esac;
5562   } |
# Line 3983 | Line 5567 | if cmp -s $cache_file confcache; then :; else
5567       t end
5568       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5569       : end' >>confcache
5570 < if cmp -s $cache_file confcache; then :; else
5570 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5571    if test -w $cache_file; then
5572      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5573      cat confcache >$cache_file
# Line 3995 | Line 5579 | ac_ext=f90
5579    exit 1
5580   fi
5581  
5582 < ac_ext=f90
5583 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4000 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5582 > echo "$as_me:$LINENO: checking for mpi-directory" >&5
5583 > echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5584  
5585 < ac_ext=f90
5586 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5587 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4007 < echo "$as_me:4007: checking how to get verbose linking output from $F90" >&5
4008 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4009 < if test "${ac_cv_prog_f90_v+set}" = set; then
4010 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5585 > # Check whether --with-mpi or --without-mpi was given.
5586 > if test "${with_mpi+set}" = set; then
5587 >  withval="$with_mpi"
5588 >  MPI_DIR="$withval"
5589   else
5590 +  MPI_DIR="/usr/local"
5591 + fi;
5592 + echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5593 + echo "${ECHO_T}$MPI_DIR" >&6
5594  
4013 cat >conftest.$ac_ext <<_ACEOF
5595  
5596 < program main
5596 > echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5597 > echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5598  
5599 < end program main
5599 > # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5600 > if test "${with_mpi_libdir+set}" = set; then
5601 >  withval="$with_mpi_libdir"
5602 >  MPI_LIBDIR="$withval"
5603 > else
5604 >  MPI_LIBDIR="$MPI_DIR/lib"
5605 > fi;
5606 > echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5607 > echo "${ECHO_T}$MPI_LIBDIR" >&6
5608  
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:4021: \"$ac_compile\"") >&5
4022  (eval $ac_compile) 2>&5
4023  ac_status=$?
4024  echo "$as_me:4024: \$? = $ac_status" >&5
4025  (exit $ac_status); } &&
4026         { ac_try='test -s conftest.$ac_objext'
4027  { (eval echo "$as_me:4027: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:4030: \$? = $ac_status" >&5
4031  (exit $ac_status); }; }; then
4032  ac_cv_prog_f90_v=
4033 # Try some options frequently used verbose output
4034 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4035  ac_ext=f90
4036 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4037 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5609  
5610 < cat >conftest.$ac_ext <<_ACEOF
5610 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5611 > echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5612  
5613 < program main
5614 <
5615 < end program main
5616 <
4046 < _ACEOF
4047 <
4048 < # Compile and link our simple test program by passing a flag (argument
4049 < # 1 to this macro) to the Fortran 90 compiler in order to get
4050 < # "verbose" output that we can then parse for the Fortran 90 linker
4051 < # flags.
4052 < ac_save_F90FLAGS=$F90FLAGS
4053 < F90FLAGS="$F90FLAGS $ac_verb"
4054 <
4055 < (eval echo $as_me:4055: \"$ac_link\") >&5
4056 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4057 < echo "$ac_f90_v_output" >&5
4058 < F90FLAGS=$ac_save_F90FLAGS
4059 <
4060 < rm -f conftest.*
4061 < ac_ext=f90
4062 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4063 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4065 <
4066 < # If we are using xlf then replace all the commas with spaces.
4067 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4068 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4069 < fi
4070 <
4071 < # If we are using Cray Fortran then delete quotes.
4072 < # Use "\"" instead of '"' for font-lock-mode.
4073 < # FIXME: a more general fix for quoted arguments with spaces?
4074 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4075 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4076 < fi
4077 <  # look for -l* and *.a constructs in the output
4078 <  for ac_arg in $ac_f90_v_output; do
4079 <     case $ac_arg in
4080 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4081 <          ac_cv_prog_f90_v=$ac_verb
4082 <          break 2 ;;
4083 <     esac
4084 <  done
4085 < done
4086 < if test -z "$ac_cv_prog_f90_v"; then
4087 <   { echo "$as_me:4087: WARNING: cannot determine how to obtain linking information from $F90" >&5
4088 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4089 < fi
5613 > # Check whether --with-mpi-inc or --without-mpi-inc was given.
5614 > if test "${with_mpi_inc+set}" = set; then
5615 >  withval="$with_mpi_inc"
5616 >  MPI_INC="$withval"
5617   else
5618 <  echo "$as_me: failed program was:" >&5
5619 < cat conftest.$ac_ext >&5
5620 < { echo "$as_me:4093: WARNING: compilation failed" >&5
5621 < echo "$as_me: WARNING: compilation failed" >&2;}
4095 < fi
4096 < rm -f conftest.$ac_objext conftest.$ac_ext
5618 >  MPI_INC="$MPI_DIR/include"
5619 > fi;
5620 > echo "$as_me:$LINENO: result: $MPI_INC" >&5
5621 > echo "${ECHO_T}$MPI_INC" >&6
5622  
4098 fi
4099 echo "$as_me:4099: result: $ac_cv_prog_f90_v" >&5
4100 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4101 echo "$as_me:4101: checking for Fortran 90 libraries" >&5
4102 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4103 if test "${ac_cv_flibs+set}" = set; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106  if test "x$F90LIBS" != "x"; then
4107  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4108 else
5623  
5624 < ac_ext=f90
5625 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5626 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5628 <
5629 < cat >conftest.$ac_ext <<_ACEOF
5630 <
5631 < program main
4118 <
4119 < end program main
4120 <
4121 < _ACEOF
4122 <
4123 < # Compile and link our simple test program by passing a flag (argument
4124 < # 1 to this macro) to the Fortran 90 compiler in order to get
4125 < # "verbose" output that we can then parse for the Fortran 90 linker
4126 < # flags.
4127 < ac_save_F90FLAGS=$F90FLAGS
4128 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4129 <
4130 < (eval echo $as_me:4130: \"$ac_link\") >&5
4131 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4132 < echo "$ac_f90_v_output" >&5
4133 < F90FLAGS=$ac_save_F90FLAGS
4134 <
4135 < rm -f conftest.*
4136 < ac_ext=f90
4137 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4138 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4140 <
4141 < # If we are using xlf then replace all the commas with spaces.
4142 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4143 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4144 < fi
4145 <
4146 < # If we are using Cray Fortran then delete quotes.
4147 < # Use "\"" instead of '"' for font-lock-mode.
4148 < # FIXME: a more general fix for quoted arguments with spaces?
4149 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4150 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4151 < fi
4152 <
4153 < ac_cv_f90libs=
4154 <
4155 < # Save positional arguments (if any)
4156 < ac_save_positional="$@"
4157 <
4158 < set X $ac_f90_v_output
4159 < while test $# != 1; do
4160 <  shift
4161 <  ac_arg=$1
4162 <  case $ac_arg in
4163 <        [\\/]*.a | ?:[\\/]*.a)
4164 <            ac_exists=false
4165 <  for ac_i in $ac_cv_f90libs; do
4166 <    if test x"$ac_arg" = x"$ac_i"; then
4167 <      ac_exists=true
4168 <      break
4169 <    fi
4170 <  done
4171 <
4172 <  if test x"$ac_exists" = xtrue; then
4173 <  :
5624 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5625 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5626 > HAVE_MPIDOTH_C="no"
5627 > echo '#include <mpi.h>' > conftest.cc
5628 > if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then
5629 >  echo "$as_me:$LINENO: result: yes" >&5
5630 > echo "${ECHO_T}yes" >&6
5631 >  HAVE_MPIDOTH_C="yes"
5632   else
5633 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5633 >  echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5634 > echo "${ECHO_T}no! Check MPI include paths" >&6
5635   fi
5636 + rm -f conftest*
5637  
5638 <          ;;
5639 <        -bI:*)
5640 <            ac_exists=false
5641 <  for ac_i in $ac_cv_f90libs; do
5642 <    if test x"$ac_arg" = x"$ac_i"; then
5643 <      ac_exists=true
5644 <      break
5645 <    fi
5646 <  done
5647 <
5648 <  if test x"$ac_exists" = xtrue; then
5649 <  :
5638 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5639 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5640 > HAVE_MPIFDOTH_F90="no"
5641 > rm -f conftest*
5642 > cat >conftest.f90 <<EOF
5643 > program main
5644 >  include 'mpif.h'
5645 > end
5646 > EOF
5647 > if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then
5648 >   echo "$as_me:$LINENO: result: yes" >&5
5649 > echo "${ECHO_T}yes" >&6
5650 >   MPI_F90INC="$MPI_INC"
5651 >   HAVE_MPIFDOTH_F90="yes"
5652   else
5653 <  if test "$ac_compiler_gnu" = yes; then
5654 <  for ac_link_opt in $ac_arg; do
5655 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4194 <  done
4195 < else
4196 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5653 >   if test -s conftest.out ; then cat conftest.out >> config.log ; fi
5654 >   echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5655 > echo "${ECHO_T}no! Check MPI include paths" >&6
5656   fi
5657 < fi
5657 > rm -f conftest*
5658  
4200          ;;
4201          # Ignore these flags.
4202        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4203          ;;
4204        -lkernel32)
4205          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4206          ;;
4207        -[LRuY])
4208          # These flags, when seen by themselves, take an argument.
4209          # We remove the space between option and argument and re-iterate
4210          # unless we find an empty arg or a new option (starting with -)
4211          case $2 in
4212             "" | -*);;
4213             *)
4214                ac_arg="$ac_arg$2"
5659  
5660 <                shift; shift
4217 <                set X $ac_arg "$@"
4218 <                ;;
4219 <          esac
4220 <          ;;
4221 <        -YP,*)
4222 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4223 <              ac_exists=false
4224 <  for ac_i in $ac_cv_f90libs; do
4225 <    if test x"$ac_j" = x"$ac_i"; then
4226 <      ac_exists=true
4227 <      break
4228 <    fi
4229 <  done
4230 <
4231 <  if test x"$ac_exists" = xtrue; then
4232 <  :
4233 < else
4234 <  ac_arg="$ac_arg $ac_j"
4235 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4236 < fi
4237 <
4238 <          done
4239 <          ;;
4240 <        -[lLR]*)
4241 <            ac_exists=false
4242 <  for ac_i in $ac_cv_f90libs; do
4243 <    if test x"$ac_arg" = x"$ac_i"; then
4244 <      ac_exists=true
4245 <      break
4246 <    fi
4247 <  done
4248 <
4249 <  if test x"$ac_exists" = xtrue; then
4250 <  :
4251 < else
4252 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4253 < fi
4254 <
4255 <          ;;
4256 <          # Ignore everything else.
4257 <  esac
4258 < done
4259 < # restore positional arguments
4260 < set X $ac_save_positional; shift
4261 <
4262 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4263 < # then we insist that the "run path" must be an absolute path (i.e. it
4264 < # must begin with a "/").
4265 < case `(uname -sr) 2>/dev/null` in
4266 <   "SunOS 5"*)
4267 <      ac_ld_run_path=`echo $ac_f90_v_output |
4268 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4269 <      test "x$ac_ld_run_path" != x &&
4270 <
4271 <        if test "$ac_compiler_gnu" = yes; then
4272 <  for ac_link_opt in $ac_ld_run_path; do
4273 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4274 <  done
4275 < else
4276 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4277 < fi
4278 <      ;;
4279 < esac
4280 < fi # test "x$F90LIBS" = "x"
4281 <
4282 < fi
4283 < echo "$as_me:4283: result: $ac_cv_flibs" >&5
4284 < echo "${ECHO_T}$ac_cv_flibs" >&6
4285 < F90LIBS="$ac_cv_f90libs"
4286 <
4287 < ac_ext=f90
4288 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4289 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4291 <
4292 < echo "$as_me:4292: checking for Fortran 90 name-mangling scheme" >&5
4293 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4294 < if test "${ac_cv_f90_mangling+set}" = set; then
4295 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4296 < else
4297 <  ac_ext=f90
4298 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4299 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4301 < cat >conftest.$ac_ext <<_ACEOF
4302 < subroutine foobar()
4303 < return
4304 < end
4305 < subroutine foo_bar()
4306 < return
4307 < end
4308 < _ACEOF
4309 < rm -f conftest.$ac_objext
4310 < if { (eval echo "$as_me:4310: \"$ac_compile\"") >&5
4311 <  (eval $ac_compile) 2>&5
4312 <  ac_status=$?
4313 <  echo "$as_me:4313: \$? = $ac_status" >&5
4314 <  (exit $ac_status); } &&
4315 <         { ac_try='test -s conftest.$ac_objext'
4316 <  { (eval echo "$as_me:4316: \"$ac_try\"") >&5
4317 <  (eval $ac_try) 2>&5
4318 <  ac_status=$?
4319 <  echo "$as_me:4319: \$? = $ac_status" >&5
4320 <  (exit $ac_status); }; }; then
4321 <  mv conftest.$ac_objext cf90_test.$ac_objext
4322 <
4323 <  ac_ext=c
5660 > ac_ext=c
5661   ac_cpp='$CPP $CPPFLAGS'
5662   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665  
5666 <  ac_save_LIBS=$LIBS
5667 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5666 > ac_save_LDFLAGS=$LDFLAGS
5667 > LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} "
5668  
5669 <  ac_success=no
5670 <  for ac_foobar in foobar FOOBAR; do
5671 <    for ac_underscore in "" "_"; do
5672 <      ac_func="$ac_foobar$ac_underscore"
5673 <      cat >conftest.$ac_ext <<_ACEOF
5674 < #line 4337 "configure"
5675 < #include "confdefs.h"
5669 > if test x = x"$MPI_LIB"; then
5670 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5671 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5672 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5673 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5674 > else
5675 >  ac_check_lib_save_LIBS=$LIBS
5676 > LIBS="-lmpi  $LIBS"
5677 > cat >conftest.$ac_ext <<_ACEOF
5678 > #line $LINENO "configure"
5679 > /* confdefs.h.  */
5680 > _ACEOF
5681 > cat confdefs.h >>conftest.$ac_ext
5682 > cat >>conftest.$ac_ext <<_ACEOF
5683 > /* end confdefs.h.  */
5684  
5685   /* Override any gcc2 internal prototype to avoid an error.  */
5686   #ifdef __cplusplus
# Line 4343 | Line 5688 | char $ac_func ();
5688   #endif
5689   /* We use char because int might match the return type of a gcc2
5690     builtin and then its argument prototype would still apply.  */
5691 < char $ac_func ();
5691 > char MPI_Init ();
5692   int
5693   main ()
5694   {
5695 < $ac_func ();
5695 > MPI_Init ();
5696    ;
5697    return 0;
5698   }
5699   _ACEOF
5700   rm -f conftest.$ac_objext conftest$ac_exeext
5701 < if { (eval echo "$as_me:4356: \"$ac_link\"") >&5
5701 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702    (eval $ac_link) 2>&5
5703    ac_status=$?
5704 <  echo "$as_me:4359: \$? = $ac_status" >&5
5704 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705    (exit $ac_status); } &&
5706           { ac_try='test -s conftest$ac_exeext'
5707 <  { (eval echo "$as_me:4362: \"$ac_try\"") >&5
5707 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708    (eval $ac_try) 2>&5
5709    ac_status=$?
5710 <  echo "$as_me:4365: \$? = $ac_status" >&5
5710 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711    (exit $ac_status); }; }; then
5712 <  ac_success=yes; break 2
5712 >  ac_cv_lib_mpi_MPI_Init=yes
5713   else
5714    echo "$as_me: failed program was:" >&5
5715 < cat conftest.$ac_ext >&5
5715 > sed 's/^/| /' conftest.$ac_ext >&5
5716 >
5717 > ac_cv_lib_mpi_MPI_Init=no
5718   fi
5719   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5720 <    done
5721 <  done
5720 > LIBS=$ac_check_lib_save_LIBS
5721 > fi
5722 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5723 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5724 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5725 >  MPI_LIB="-lmpi"
5726 > fi
5727  
5728 <  if test "$ac_success" = "yes"; then
5729 <     case $ac_foobar in
5730 <        foobar)
5731 <           ac_case=lower
5732 <           ac_foo_bar=foo_bar
5733 <           ;;
5734 <        FOOBAR)
5735 <           ac_case=upper
5736 <           ac_foo_bar=FOO_BAR
5737 <           ;;
5738 <     esac
5728 > fi
5729 > if test x = x"$MPI_LIB"; then
5730 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5731 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5732 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5733 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5734 > else
5735 >  ac_check_lib_save_LIBS=$LIBS
5736 > LIBS="-lmpich  $LIBS"
5737 > cat >conftest.$ac_ext <<_ACEOF
5738 > #line $LINENO "configure"
5739 > /* confdefs.h.  */
5740 > _ACEOF
5741 > cat confdefs.h >>conftest.$ac_ext
5742 > cat >>conftest.$ac_ext <<_ACEOF
5743 > /* end confdefs.h.  */
5744  
4388     ac_success_extra=no
4389     for ac_extra in "" "_"; do
4390        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4391
4392        cat >conftest.$ac_ext <<_ACEOF
4393 #line 4393 "configure"
4394 #include "confdefs.h"
4395
5745   /* Override any gcc2 internal prototype to avoid an error.  */
5746   #ifdef __cplusplus
5747   extern "C"
5748   #endif
5749   /* We use char because int might match the return type of a gcc2
5750     builtin and then its argument prototype would still apply.  */
5751 < char $ac_func ();
5751 > char MPI_Init ();
5752   int
5753   main ()
5754   {
5755 < $ac_func ();
5755 > MPI_Init ();
5756    ;
5757    return 0;
5758   }
5759   _ACEOF
5760   rm -f conftest.$ac_objext conftest$ac_exeext
5761 < if { (eval echo "$as_me:4412: \"$ac_link\"") >&5
5761 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762    (eval $ac_link) 2>&5
5763    ac_status=$?
5764 <  echo "$as_me:4415: \$? = $ac_status" >&5
5764 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765    (exit $ac_status); } &&
5766           { ac_try='test -s conftest$ac_exeext'
5767 <  { (eval echo "$as_me:4418: \"$ac_try\"") >&5
5767 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768    (eval $ac_try) 2>&5
5769    ac_status=$?
5770 <  echo "$as_me:4421: \$? = $ac_status" >&5
5770 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771    (exit $ac_status); }; }; then
5772 <  ac_success_extra=yes; break
5772 >  ac_cv_lib_mpich_MPI_Init=yes
5773   else
5774    echo "$as_me: failed program was:" >&5
5775 < cat conftest.$ac_ext >&5
5775 > sed 's/^/| /' conftest.$ac_ext >&5
5776 >
5777 > ac_cv_lib_mpich_MPI_Init=no
5778   fi
5779   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5780 <     done
4430 <
4431 <     if test "$ac_success_extra" = "yes"; then
4432 <        ac_cv_f90_mangling="$ac_case case"
4433 <        if test -z "$ac_underscore"; then
4434 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4435 <        else
4436 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4437 <
4438 <        fi
4439 <        if test -z "$ac_extra"; then
4440 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4441 <        else
4442 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4443 <        fi
4444 <      else
4445 <        ac_cv_f90_mangling="unknown"
4446 <      fi
4447 <  else
4448 <     ac_cv_f90_mangling="unknown"
4449 <
4450 <  fi
4451 <
4452 <  LIBS=$ac_save_LIBS
4453 <  ac_ext=f90
4454 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4455 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4457 <  rm -f cf90_test* conftest*
4458 < else
4459 <  echo "$as_me: failed program was:" >&5
4460 < cat conftest.$ac_ext >&5
5780 > LIBS=$ac_check_lib_save_LIBS
5781   fi
5782 < rm -f conftest.$ac_objext conftest.$ac_ext
5783 < ac_ext=f90
5784 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5785 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4467 <
4468 < fi
4469 < echo "$as_me:4469: result: $ac_cv_f90_mangling" >&5
4470 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4471 <
4472 < case $ac_cv_f90_mangling in
4473 <  "lower case, no underscore, no extra underscore")
4474 <          cat >>confdefs.h <<\EOF
4475 < #define F90_FUNC(name,NAME) name
4476 < EOF
4477 <
4478 <          cat >>confdefs.h <<\EOF
4479 < #define F90_FUNC_(name,NAME) name
4480 < EOF
4481 < ;;
4482 <  "lower case, no underscore, extra underscore")
4483 <          cat >>confdefs.h <<\EOF
4484 < #define F90_FUNC(name,NAME) name
4485 < EOF
4486 <
4487 <          cat >>confdefs.h <<\EOF
4488 < #define F90_FUNC_(name,NAME) name ## _
4489 < EOF
4490 < ;;
4491 <  "lower case, underscore, no extra underscore")
4492 <          cat >>confdefs.h <<\EOF
4493 < #define F90_FUNC(name,NAME) name ## _
4494 < EOF
4495 <
4496 <          cat >>confdefs.h <<\EOF
4497 < #define F90_FUNC_(name,NAME) name ## _
4498 < EOF
4499 < ;;
4500 <  "lower case, underscore, extra underscore")
4501 <          cat >>confdefs.h <<\EOF
4502 < #define F90_FUNC(name,NAME) name ## _
4503 < EOF
4504 <
4505 <          cat >>confdefs.h <<\EOF
4506 < #define F90_FUNC_(name,NAME) name ## __
4507 < EOF
4508 < ;;
4509 <  "upper case, no underscore, no extra underscore")
4510 <          cat >>confdefs.h <<\EOF
4511 < #define F90_FUNC(name,NAME) NAME
4512 < EOF
4513 <
4514 <          cat >>confdefs.h <<\EOF
4515 < #define F90_FUNC_(name,NAME) NAME
4516 < EOF
4517 < ;;
4518 <  "upper case, no underscore, extra underscore")
4519 <          cat >>confdefs.h <<\EOF
4520 < #define F90_FUNC(name,NAME) NAME
4521 < EOF
4522 <
4523 <          cat >>confdefs.h <<\EOF
4524 < #define F90_FUNC_(name,NAME) NAME ## _
4525 < EOF
4526 < ;;
4527 <  "upper case, underscore, no extra underscore")
4528 <          cat >>confdefs.h <<\EOF
4529 < #define F90_FUNC(name,NAME) NAME ## _
4530 < EOF
4531 <
4532 <          cat >>confdefs.h <<\EOF
4533 < #define F90_FUNC_(name,NAME) NAME ## _
4534 < EOF
4535 < ;;
4536 <  "upper case, underscore, extra underscore")
4537 <          cat >>confdefs.h <<\EOF
4538 < #define F90_FUNC(name,NAME) NAME ## _
4539 < EOF
4540 <
4541 <          cat >>confdefs.h <<\EOF
4542 < #define F90_FUNC_(name,NAME) NAME ## __
4543 < EOF
4544 < ;;
4545 <  *)
4546 <          { echo "$as_me:4546: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4547 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4548 <          ;;
4549 < esac
4550 <
4551 < echo "$as_me:4551: checking for module suffix" >&5
4552 < echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4553 < rm -f conftest*
4554 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4555 < rm -f work*
4556 < cat >conftest.f <<EOF
4557 <        module conftest
4558 <        integer n
4559 <        parameter (n=1)
4560 <        end module conftest
4561 < EOF
4562 < # SGI and absoft compilers generates module name in upper case!
4563 < testname="conftest"
4564 < modcase="lower"
4565 < if $F90 -c conftest.f > conftest.out 2>&1 ; then
4566 <    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4567 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4568 <    if test -z "$MOD" ; then
4569 <        MOD=`ls CONFTEST* 2>/dev/null \
4570 <                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4571 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4572 <        if test -n "$MOD" ; then
4573 <            testname="CONFTEST"
4574 <            modcase="upper"
4575 <        fi
4576 <    fi
4577 <    if test -z "$MOD" ; then
4578 <        echo "$as_me:4578: result: unknown" >&5
4579 < echo "${ECHO_T}unknown" >&6
4580 <        # Use mod if we can't figure it out
4581 <        MOD="mod"
4582 <    else
4583 <        echo "$as_me:4583: result: $MOD" >&5
4584 < echo "${ECHO_T}$MOD" >&6
4585 <    fi
4586 <    if test -s work.pcl ; then
4587 <        { echo "$as_me:4587: WARNING: Compiler generates auxillery files!" >&5
4588 < echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4589 <    fi
4590 < else
4591 <    echo "$as_me:4591: result: unknown" >&5
4592 < echo "${ECHO_T}unknown" >&6
5782 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5783 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5784 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
5785 >  MPI_LIB="-lmpich"
5786   fi
5787  
4595 # Check for module include path (some use -I, some (Solaris) use -M, some
4596 # (absoft) use -p).
4597 # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4598 # specified, work.pcl and work.pc are created.  However, if you specify
4599 # a file, it must contain a the name of a file ending in .pc .  Ugh!
4600 # Use the module made above
4601 echo "$as_me:4601: checking for module directory path flag" >&5
4602 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4603 madedir=0
4604 if test ! -d conf ; then mkdir conf ; madedir=1; fi
4605 cp $testname.$MOD conf
4606 rm -f conftest* CONFTEST*
4607 cat >conftest1.f <<EOF
4608        program main
4609        use conftest
4610        print *, n
4611        end
4612 EOF
4613 F90_WORK_FILES_ARG=""
4614 F90MODINCSPEC=""
4615 if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
4616    MODDIRFLAG="-I"
4617    F90MODINCSPEC="-I<dir>"
4618    echo "$as_me:4618: result: -I" >&5
4619 echo "${ECHO_T}-I" >&6
4620 elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
4621    MODDIRFLAG="-M"
4622    F90MODINCSPEC="-M<dir>"
4623    echo "$as_me:4623: result: -M" >&5
4624 echo "${ECHO_T}-M" >&6
4625 elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
4626    MODDIRFLAG="-p"
4627    F90MODINCSPEC="-p<dir>"
4628    echo "$as_me:4628: result: -p" >&5
4629 echo "${ECHO_T}-p" >&6
4630 elif test -s work.pc ; then
4631     cp work.pc conf/mpimod.pc
4632     echo "mpimod.pc" > conf/mpimod.pcl
4633     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4634     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4635         MODDIRFLAG='-cl,mpimod.pcl'
4636         echo "$as_me:4636: result: -cl,filename where filename contains a list of files and
4637 directories" >&5
4638 echo "${ECHO_T}-cl,filename where filename contains a list of files and
4639 directories" >&6
4640         F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4641         F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4642
4643     else
4644         # The version of the Intel compiler that I have refuses to let
4645         # you put the "work catalog" list anywhere but the current directory.
4646         # For example, you cannot in
4647         :
4648     fi
5788   fi
5789 < if test -z "MODDIRFLAG" ; then
5790 <    echo "$as_me:4651: result: unknown" >&5
5791 < echo "${ECHO_T}unknown" >&6
4653 < fi
4654 <
4655 < rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4656 < if test $madedir = 1 ; then rmdir conf ; fi
4657 <
4658 < echo "$as_me:4658: checking for mpi-directory" >&5
4659 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
4660 <
4661 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
4662 < if test "${with_mpi_dir+set}" = set; then
4663 <  withval="$with_mpi_dir"
4664 <  MPI_DIR="$withval"
4665 < else
4666 <  MPI_DIR="/usr/local"
4667 < fi;
4668 < echo "$as_me:4668: result: $MPI_DIR" >&5
4669 < echo "${ECHO_T}$MPI_DIR" >&6
4670 <
4671 < echo "$as_me:4671: checking for mpi-lib-directory" >&5
4672 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
4673 <
4674 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
4675 < if test "${with_mpi_libdir+set}" = set; then
4676 <  withval="$with_mpi_libdir"
4677 <  MPI_LIBDIR="$withval"
4678 < else
4679 <  MPI_LIBDIR="$MPI_DIR/lib"
4680 < fi;
4681 < echo "$as_me:4681: result: $MPI_LIBDIR" >&5
4682 < echo "${ECHO_T}$MPI_LIBDIR" >&6
4683 <
4684 < echo "$as_me:4684: checking for mpi-inc-directory" >&5
4685 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
4686 <
4687 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
4688 < if test "${with_mpi_inc+set}" = set; then
4689 <  withval="$with_mpi_inc"
4690 <  MPI_INC="$withval"
4691 < else
4692 <  MPI_INC="$MPI_DIR/include"
4693 < fi;
4694 < echo "$as_me:4694: result: $MPI_INC" >&5
4695 < echo "${ECHO_T}$MPI_INC" >&6
4696 <
4697 < echo "$as_me:4697: checking for MPI library" >&5
4698 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4699 < MPI_LIB=""
4700 < case "$host" in
4701 <  *-ibm-aix*)
4702 <    echo "$as_me:4702: checking whether to use signal-based MPI library" >&5
4703 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4704 <    echo "$as_me:4704: result: $PACX_SIGNAL" >&5
4705 < echo "${ECHO_T}$PACX_SIGNAL" >&6
4706 <    if test "x$PACX_SIGNAL" = "xyes" ; then
4707 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
4708 <        MPI_LIB="-lmpi"
4709 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4710 <        MPI_LIB="-lmpi"
4711 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4712 <        MPI_LIB="-lmpich"
4713 <      else
4714 <        { { echo "$as_me:4714: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4715 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4716 <   { (exit 1); exit 1; }; }
4717 <      fi
4718 <    else
4719 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4720 <         MPI_LIB="-lmpi_r"
4721 <      else
4722 <         { { echo "$as_me:4722: error: libmpi_r not found; check path for MPI package..." >&5
4723 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4724 <   { (exit 1); exit 1; }; }
4725 <      fi
4726 <    fi
4727 <    echo "$as_me:4727: result: found $MPI_LIB" >&5
4728 < echo "${ECHO_T}found $MPI_LIB" >&6
4729 <  ;;
4730 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
4731 <      MPI_LIB="-lmpi"
4732 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4733 <      MPI_LIB="-lmpi"
4734 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4735 <      MPI_LIB="-lmpich"
4736 <    else
4737 <      { { echo "$as_me:4737: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4738 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4739 <   { (exit 1); exit 1; }; }
4740 <    fi
4741 <    echo "$as_me:4741: result: found $MPI_LIB" >&5
4742 < echo "${ECHO_T}found $MPI_LIB" >&6
4743 <  ;;
4744 < esac
4745 <
4746 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
4747 < do
4748 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 < set dummy $ac_prog; ac_word=$2
4750 < echo "$as_me:4750: checking for $ac_word" >&5
4751 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752 < if test "${ac_cv_prog_MPIF90+set}" = set; then
4753 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4754 < else
4755 <  if test -n "$MPIF90"; then
4756 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
4757 < else
4758 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4759 < ac_dummy="$PATH"
4760 < for ac_dir in $ac_dummy; do
4761 <  IFS=$ac_save_IFS
4762 <  test -z "$ac_dir" && ac_dir=.
4763 <  $as_executable_p "$ac_dir/$ac_word" || continue
4764 < ac_cv_prog_MPIF90="$ac_prog"
4765 < echo "$as_me:4765: found $ac_dir/$ac_word" >&5
4766 < break
4767 < done
4768 <
4769 < fi
4770 < fi
4771 < MPIF90=$ac_cv_prog_MPIF90
4772 < if test -n "$MPIF90"; then
4773 <  echo "$as_me:4773: result: $MPIF90" >&5
4774 < echo "${ECHO_T}$MPIF90" >&6
4775 < else
4776 <  echo "$as_me:4776: result: no" >&5
4777 < echo "${ECHO_T}no" >&6
4778 < fi
4779 <
4780 <  test -n "$MPIF90" && break
4781 < done
4782 < test -n "$MPIF90" || MPIF90="$F90"
4783 <
4784 <        acx_mpi_save_F90="$F90"
4785 <        F90="$MPIF90"
4786 <
4787 < if test x = x"$MPILIBS"; then
4788 <        echo "$as_me:4788: checking for MPI_Init" >&5
4789 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
4790 <                        cat >conftest.$ac_ext <<_ACEOF
4791 <
4792 < program main
4793 <
4794 <      call MPI_Init
4795 < end program main
4796 <
4797 < _ACEOF
4798 < rm -f conftest.$ac_objext conftest$ac_exeext
4799 < if { (eval echo "$as_me:4799: \"$ac_link\"") >&5
4800 <  (eval $ac_link) 2>&5
4801 <  ac_status=$?
4802 <  echo "$as_me:4802: \$? = $ac_status" >&5
4803 <  (exit $ac_status); } &&
4804 <         { ac_try='test -s conftest$ac_exeext'
4805 <  { (eval echo "$as_me:4805: \"$ac_try\"") >&5
4806 <  (eval $ac_try) 2>&5
4807 <  ac_status=$?
4808 <  echo "$as_me:4808: \$? = $ac_status" >&5
4809 <  (exit $ac_status); }; }; then
4810 <  MPILIBS=" "
4811 <                                echo "$as_me:4811: result: yes" >&5
4812 < echo "${ECHO_T}yes" >&6
4813 < else
4814 <  echo "$as_me: failed program was:" >&5
4815 < cat conftest.$ac_ext >&5
4816 < echo "$as_me:4816: result: no" >&5
4817 < echo "${ECHO_T}no" >&6
4818 < fi
4819 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 < fi
4821 < if test x = x"$MPILIBS"; then
4822 <        echo "$as_me:4822: checking for MPI_Init in -lmpi" >&5
5789 > $as_unset ac_cv_lib_mpi_MPI_Init
5790 > if test x = x"$MPI_LIB"; then
5791 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5792   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5793   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5794    echo $ECHO_N "(cached) $ECHO_C" >&6
5795   else
5796    ac_check_lib_save_LIBS=$LIBS
5797 < LIBS="-lmpi  $LIBS"
5797 > LIBS="-lmpi "-llam" $LIBS"
5798   cat >conftest.$ac_ext <<_ACEOF
5799 + #line $LINENO "configure"
5800 + /* confdefs.h.  */
5801 + _ACEOF
5802 + cat confdefs.h >>conftest.$ac_ext
5803 + cat >>conftest.$ac_ext <<_ACEOF
5804 + /* end confdefs.h.  */
5805  
5806 < program main
5807 <
5808 < call MPI_Init
5809 < end program main
5810 <
5806 > /* Override any gcc2 internal prototype to avoid an error.  */
5807 > #ifdef __cplusplus
5808 > extern "C"
5809 > #endif
5810 > /* We use char because int might match the return type of a gcc2
5811 >   builtin and then its argument prototype would still apply.  */
5812 > char MPI_Init ();
5813 > int
5814 > main ()
5815 > {
5816 > MPI_Init ();
5817 >  ;
5818 >  return 0;
5819 > }
5820   _ACEOF
5821   rm -f conftest.$ac_objext conftest$ac_exeext
5822 < if { (eval echo "$as_me:4838: \"$ac_link\"") >&5
5822 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5823    (eval $ac_link) 2>&5
5824    ac_status=$?
5825 <  echo "$as_me:4841: \$? = $ac_status" >&5
5825 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826    (exit $ac_status); } &&
5827           { ac_try='test -s conftest$ac_exeext'
5828 <  { (eval echo "$as_me:4844: \"$ac_try\"") >&5
5828 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829    (eval $ac_try) 2>&5
5830    ac_status=$?
5831 <  echo "$as_me:4847: \$? = $ac_status" >&5
5831 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832    (exit $ac_status); }; }; then
5833    ac_cv_lib_mpi_MPI_Init=yes
5834   else
5835    echo "$as_me: failed program was:" >&5
5836 < cat conftest.$ac_ext >&5
5836 > sed 's/^/| /' conftest.$ac_ext >&5
5837 >
5838   ac_cv_lib_mpi_MPI_Init=no
5839   fi
5840   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5841   LIBS=$ac_check_lib_save_LIBS
5842   fi
5843 < echo "$as_me:4858: result: $ac_cv_lib_mpi_MPI_Init" >&5
5843 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5844   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5845   if test $ac_cv_lib_mpi_MPI_Init = yes; then
5846 <  MPILIBS="-lmpi"
5846 >  MPI_LIB="-lmpi -llam"
5847   fi
5848  
5849   fi
5850 < if test x = x"$MPILIBS"; then
5851 <        echo "$as_me:4866: checking for MPI_Init in -lmpich" >&5
5852 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5853 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5850 >
5851 > $as_unset ac_cv_lib_mpi_MPI_Init
5852 > if test x = x"$MPI_LIB"; then
5853 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5854 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5855 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5856    echo $ECHO_N "(cached) $ECHO_C" >&6
5857   else
5858    ac_check_lib_save_LIBS=$LIBS
5859 < LIBS="-lmpich  $LIBS"
5859 > LIBS="-lmpi -llam -lpthread $LIBS"
5860   cat >conftest.$ac_ext <<_ACEOF
5861 + #line $LINENO "configure"
5862 + /* confdefs.h.  */
5863 + _ACEOF
5864 + cat confdefs.h >>conftest.$ac_ext
5865 + cat >>conftest.$ac_ext <<_ACEOF
5866 + /* end confdefs.h.  */
5867  
5868 < program main
5869 <
5870 < call MPI_Init
5871 < end program main
5872 <
5868 > /* Override any gcc2 internal prototype to avoid an error.  */
5869 > #ifdef __cplusplus
5870 > extern "C"
5871 > #endif
5872 > /* We use char because int might match the return type of a gcc2
5873 >   builtin and then its argument prototype would still apply.  */
5874 > char MPI_Init ();
5875 > int
5876 > main ()
5877 > {
5878 > MPI_Init ();
5879 >  ;
5880 >  return 0;
5881 > }
5882   _ACEOF
5883   rm -f conftest.$ac_objext conftest$ac_exeext
5884 < if { (eval echo "$as_me:4882: \"$ac_link\"") >&5
5884 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5885    (eval $ac_link) 2>&5
5886    ac_status=$?
5887 <  echo "$as_me:4885: \$? = $ac_status" >&5
5887 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888    (exit $ac_status); } &&
5889           { ac_try='test -s conftest$ac_exeext'
5890 <  { (eval echo "$as_me:4888: \"$ac_try\"") >&5
5890 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891    (eval $ac_try) 2>&5
5892    ac_status=$?
5893 <  echo "$as_me:4891: \$? = $ac_status" >&5
5893 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894    (exit $ac_status); }; }; then
5895 <  ac_cv_lib_mpich_MPI_Init=yes
5895 >  ac_cv_lib_mpi_MPI_Init=yes
5896   else
5897    echo "$as_me: failed program was:" >&5
5898 < cat conftest.$ac_ext >&5
5899 < ac_cv_lib_mpich_MPI_Init=no
5898 > sed 's/^/| /' conftest.$ac_ext >&5
5899 >
5900 > ac_cv_lib_mpi_MPI_Init=no
5901   fi
5902   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5903   LIBS=$ac_check_lib_save_LIBS
5904   fi
5905 < echo "$as_me:4902: result: $ac_cv_lib_mpich_MPI_Init" >&5
5906 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5907 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
5908 <  MPILIBS="-lmpich"
5905 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5906 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5907 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5908 >  MPI_LIB="-lmpi -llam -lpthread"
5909 > else
5910 >  { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
5911 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
5912 >   { (exit 1); exit 1; }; }
5913   fi
5914  
5915   fi
5916  
5917 < F90="$acx_mpi_save_F90"
5917 > echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5918 > echo "${ECHO_T}found $MPI_LIB" >&6
5919  
4912 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4913 if test x = x"$MPILIBS"; then
5920  
5921 <        :
5921 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
5922 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
5923 > MPI_F90LIB=""
5924 > if test -f "$MPI_LIBDIR/libfmpich.a" ; then
5925 >  MPI_F90LIB="-lfmpich"
5926 > elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then
5927 >  MPI_F90LIB="-llamf77mpi"
5928   else
5929 +  # nothing special found, we'll assume that the C library is all we need
5930 +  MPI_F90LIB="  "
5931 + fi
5932 + echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5
5933 + echo "${ECHO_T}found $MPI_F90LIB" >&6
5934  
4918 cat >>confdefs.h <<\EOF
4919 #define HAVE_MPI 1
4920 EOF
5935  
4922        :
4923 fi
5936  
5937 +
5938   ac_ext=c
5939   ac_cpp='$CPP $CPPFLAGS'
5940   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942   ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943 < echo "$as_me:4930: checking how to run the C preprocessor" >&5
5943 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5944   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5945   # On Suns, sometimes $CPP names a directory.
5946   if test -n "$CPP" && test -d "$CPP"; then
# Line 4940 | Line 5953 | else
5953        # Double quotes because CPP needs to be expanded
5954      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5955      do
4943      # break 2 since there is a loop in there.
5956        ac_preproc_ok=false
5957   for ac_c_preproc_warn_flag in '' yes
5958   do
5959    # Use a header file that comes with gcc, so configuring glibc
5960    # with a fresh cross-compiler works.
5961 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962 +  # <limits.h> exists even on freestanding compilers.
5963    # On the NeXT, cc -E runs the code through the compiler's parser,
5964    # not just through cpp. "Syntax error" is here to catch this case.
5965    cat >conftest.$ac_ext <<_ACEOF
5966 < #line 4952 "configure"
5967 < #include "confdefs.h"
5968 < #include <assert.h>
5966 > #line $LINENO "configure"
5967 > /* confdefs.h.  */
5968 > _ACEOF
5969 > cat confdefs.h >>conftest.$ac_ext
5970 > cat >>conftest.$ac_ext <<_ACEOF
5971 > /* end confdefs.h.  */
5972 > #ifdef __STDC__
5973 > # include <limits.h>
5974 > #else
5975 > # include <assert.h>
5976 > #endif
5977                       Syntax error
5978   _ACEOF
5979 < if { (eval echo "$as_me:4957: \"$ac_cpp conftest.$ac_ext\"") >&5
5979 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5980    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5981    ac_status=$?
5982 <  egrep -v '^ *\+' conftest.er1 >conftest.err
5982 >  grep -v '^ *+' conftest.er1 >conftest.err
5983    rm -f conftest.er1
5984    cat conftest.err >&5
5985 <  echo "$as_me:4963: \$? = $ac_status" >&5
5985 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986    (exit $ac_status); } >/dev/null; then
5987    if test -s conftest.err; then
5988      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 4974 | Line 5996 | else
5996    :
5997   else
5998    echo "$as_me: failed program was:" >&5
5999 <  cat conftest.$ac_ext >&5
5999 > sed 's/^/| /' conftest.$ac_ext >&5
6000 >
6001    # Broken: fails on valid input.
6002   continue
6003   fi
# Line 4983 | Line 6006 | rm -f conftest.err conftest.$ac_ext
6006    # OK, works on sane cases.  Now check whether non-existent headers
6007    # can be detected and how.
6008    cat >conftest.$ac_ext <<_ACEOF
6009 < #line 4986 "configure"
6010 < #include "confdefs.h"
6009 > #line $LINENO "configure"
6010 > /* confdefs.h.  */
6011 > _ACEOF
6012 > cat confdefs.h >>conftest.$ac_ext
6013 > cat >>conftest.$ac_ext <<_ACEOF
6014 > /* end confdefs.h.  */
6015   #include <ac_nonexistent.h>
6016   _ACEOF
6017 < if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6018    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6019    ac_status=$?
6020 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6020 >  grep -v '^ *+' conftest.er1 >conftest.err
6021    rm -f conftest.er1
6022    cat conftest.err >&5
6023 <  echo "$as_me:4996: \$? = $ac_status" >&5
6023 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024    (exit $ac_status); } >/dev/null; then
6025    if test -s conftest.err; then
6026      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5008 | Line 6035 | else
6035   continue
6036   else
6037    echo "$as_me: failed program was:" >&5
6038 <  cat conftest.$ac_ext >&5
6038 > sed 's/^/| /' conftest.$ac_ext >&5
6039 >
6040    # Passes both tests.
6041   ac_preproc_ok=:
6042   break
# Line 5019 | Line 6047 | if $ac_preproc_ok; then
6047   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6048   rm -f conftest.err conftest.$ac_ext
6049   if $ac_preproc_ok; then
6050 <  break 2
6050 >  break
6051   fi
6052  
6053      done
# Line 5030 | Line 6058 | echo "$as_me:5033: result: $CPP" >&5
6058   else
6059    ac_cv_prog_CPP=$CPP
6060   fi
6061 < echo "$as_me:5033: result: $CPP" >&5
6061 > echo "$as_me:$LINENO: result: $CPP" >&5
6062   echo "${ECHO_T}$CPP" >&6
6063   ac_preproc_ok=false
6064   for ac_c_preproc_warn_flag in '' yes
6065   do
6066    # Use a header file that comes with gcc, so configuring glibc
6067    # with a fresh cross-compiler works.
6068 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6069 +  # <limits.h> exists even on freestanding compilers.
6070    # On the NeXT, cc -E runs the code through the compiler's parser,
6071    # not just through cpp. "Syntax error" is here to catch this case.
6072    cat >conftest.$ac_ext <<_ACEOF
6073 < #line 5043 "configure"
6074 < #include "confdefs.h"
6075 < #include <assert.h>
6073 > #line $LINENO "configure"
6074 > /* confdefs.h.  */
6075 > _ACEOF
6076 > cat confdefs.h >>conftest.$ac_ext
6077 > cat >>conftest.$ac_ext <<_ACEOF
6078 > /* end confdefs.h.  */
6079 > #ifdef __STDC__
6080 > # include <limits.h>
6081 > #else
6082 > # include <assert.h>
6083 > #endif
6084                       Syntax error
6085   _ACEOF
6086 < if { (eval echo "$as_me:5048: \"$ac_cpp conftest.$ac_ext\"") >&5
6086 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6087    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6088    ac_status=$?
6089 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6089 >  grep -v '^ *+' conftest.er1 >conftest.err
6090    rm -f conftest.er1
6091    cat conftest.err >&5
6092 <  echo "$as_me:5054: \$? = $ac_status" >&5
6092 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093    (exit $ac_status); } >/dev/null; then
6094    if test -s conftest.err; then
6095      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5065 | Line 6103 | else
6103    :
6104   else
6105    echo "$as_me: failed program was:" >&5
6106 <  cat conftest.$ac_ext >&5
6106 > sed 's/^/| /' conftest.$ac_ext >&5
6107 >
6108    # Broken: fails on valid input.
6109   continue
6110   fi
# Line 5074 | Line 6113 | rm -f conftest.err conftest.$ac_ext
6113    # OK, works on sane cases.  Now check whether non-existent headers
6114    # can be detected and how.
6115    cat >conftest.$ac_ext <<_ACEOF
6116 < #line 5077 "configure"
6117 < #include "confdefs.h"
6116 > #line $LINENO "configure"
6117 > /* confdefs.h.  */
6118 > _ACEOF
6119 > cat confdefs.h >>conftest.$ac_ext
6120 > cat >>conftest.$ac_ext <<_ACEOF
6121 > /* end confdefs.h.  */
6122   #include <ac_nonexistent.h>
6123   _ACEOF
6124 < if { (eval echo "$as_me:5081: \"$ac_cpp conftest.$ac_ext\"") >&5
6124 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6125    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6126    ac_status=$?
6127 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6127 >  grep -v '^ *+' conftest.er1 >conftest.err
6128    rm -f conftest.er1
6129    cat conftest.err >&5
6130 <  echo "$as_me:5087: \$? = $ac_status" >&5
6130 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131    (exit $ac_status); } >/dev/null; then
6132    if test -s conftest.err; then
6133      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5099 | Line 6142 | else
6142   continue
6143   else
6144    echo "$as_me: failed program was:" >&5
6145 <  cat conftest.$ac_ext >&5
6145 > sed 's/^/| /' conftest.$ac_ext >&5
6146 >
6147    # Passes both tests.
6148   ac_preproc_ok=:
6149   break
# Line 5112 | Line 6156 | else
6156   if $ac_preproc_ok; then
6157    :
6158   else
6159 <  { { echo "$as_me:5115: error: C preprocessor \"$CPP\" fails sanity check" >&5
6160 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6159 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6160 > See \`config.log' for more details." >&5
6161 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6162 > See \`config.log' for more details." >&2;}
6163     { (exit 1); exit 1; }; }
6164   fi
6165  
# Line 5122 | Line 6168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171 +
6172 +
6173 + echo "$as_me:$LINENO: checking for egrep" >&5
6174 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6175 + if test "${ac_cv_prog_egrep+set}" = set; then
6176 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6177 + else
6178 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6179 +    then ac_cv_prog_egrep='grep -E'
6180 +    else ac_cv_prog_egrep='egrep'
6181 +    fi
6182 + fi
6183 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6184 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6185 + EGREP=$ac_cv_prog_egrep
6186 +
6187 +
6188 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6189 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6190 + if test "${ac_cv_header_stdc+set}" = set; then
6191 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6192 + else
6193 +  cat >conftest.$ac_ext <<_ACEOF
6194 + #line $LINENO "configure"
6195 + /* confdefs.h.  */
6196 + _ACEOF
6197 + cat confdefs.h >>conftest.$ac_ext
6198 + cat >>conftest.$ac_ext <<_ACEOF
6199 + /* end confdefs.h.  */
6200 + #include <stdlib.h>
6201 + #include <stdarg.h>
6202 + #include <string.h>
6203 + #include <float.h>
6204 +
6205 + int
6206 + main ()
6207 + {
6208 +
6209 +  ;
6210 +  return 0;
6211 + }
6212 + _ACEOF
6213 + rm -f conftest.$ac_objext
6214 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215 +  (eval $ac_compile) 2>&5
6216 +  ac_status=$?
6217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 +  (exit $ac_status); } &&
6219 +         { ac_try='test -s conftest.$ac_objext'
6220 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 +  (eval $ac_try) 2>&5
6222 +  ac_status=$?
6223 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 +  (exit $ac_status); }; }; then
6225 +  ac_cv_header_stdc=yes
6226 + else
6227 +  echo "$as_me: failed program was:" >&5
6228 + sed 's/^/| /' conftest.$ac_ext >&5
6229 +
6230 + ac_cv_header_stdc=no
6231 + fi
6232 + rm -f conftest.$ac_objext conftest.$ac_ext
6233 +
6234 + if test $ac_cv_header_stdc = yes; then
6235 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6236 +  cat >conftest.$ac_ext <<_ACEOF
6237 + #line $LINENO "configure"
6238 + /* confdefs.h.  */
6239 + _ACEOF
6240 + cat confdefs.h >>conftest.$ac_ext
6241 + cat >>conftest.$ac_ext <<_ACEOF
6242 + /* end confdefs.h.  */
6243 + #include <string.h>
6244 +
6245 + _ACEOF
6246 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247 +  $EGREP "memchr" >/dev/null 2>&1; then
6248 +  :
6249 + else
6250 +  ac_cv_header_stdc=no
6251 + fi
6252 + rm -f conftest*
6253 +
6254 + fi
6255 +
6256 + if test $ac_cv_header_stdc = yes; then
6257 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6258 +  cat >conftest.$ac_ext <<_ACEOF
6259 + #line $LINENO "configure"
6260 + /* confdefs.h.  */
6261 + _ACEOF
6262 + cat confdefs.h >>conftest.$ac_ext
6263 + cat >>conftest.$ac_ext <<_ACEOF
6264 + /* end confdefs.h.  */
6265 + #include <stdlib.h>
6266 +
6267 + _ACEOF
6268 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269 +  $EGREP "free" >/dev/null 2>&1; then
6270 +  :
6271 + else
6272 +  ac_cv_header_stdc=no
6273 + fi
6274 + rm -f conftest*
6275 +
6276 + fi
6277 +
6278 + if test $ac_cv_header_stdc = yes; then
6279 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6280 +  if test "$cross_compiling" = yes; then
6281 +  :
6282 + else
6283 +  cat >conftest.$ac_ext <<_ACEOF
6284 + #line $LINENO "configure"
6285 + /* confdefs.h.  */
6286 + _ACEOF
6287 + cat confdefs.h >>conftest.$ac_ext
6288 + cat >>conftest.$ac_ext <<_ACEOF
6289 + /* end confdefs.h.  */
6290 + #include <ctype.h>
6291 + #if ((' ' & 0x0FF) == 0x020)
6292 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6293 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6294 + #else
6295 + # define ISLOWER(c) \
6296 +                   (('a' <= (c) && (c) <= 'i') \
6297 +                     || ('j' <= (c) && (c) <= 'r') \
6298 +                     || ('s' <= (c) && (c) <= 'z'))
6299 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6300 + #endif
6301 +
6302 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6303 + int
6304 + main ()
6305 + {
6306 +  int i;
6307 +  for (i = 0; i < 256; i++)
6308 +    if (XOR (islower (i), ISLOWER (i))
6309 +        || toupper (i) != TOUPPER (i))
6310 +      exit(2);
6311 +  exit (0);
6312 + }
6313 + _ACEOF
6314 + rm -f conftest$ac_exeext
6315 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 +  (eval $ac_link) 2>&5
6317 +  ac_status=$?
6318 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6320 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 +  (eval $ac_try) 2>&5
6322 +  ac_status=$?
6323 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 +  (exit $ac_status); }; }; then
6325 +  :
6326 + else
6327 +  echo "$as_me: program exited with status $ac_status" >&5
6328 + echo "$as_me: failed program was:" >&5
6329 + sed 's/^/| /' conftest.$ac_ext >&5
6330 +
6331 + ( exit $ac_status )
6332 + ac_cv_header_stdc=no
6333 + fi
6334 + rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6335 + fi
6336 + fi
6337 + fi
6338 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6339 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6340 + if test $ac_cv_header_stdc = yes; then
6341 +
6342 + cat >>confdefs.h <<\_ACEOF
6343 + #define STDC_HEADERS 1
6344 + _ACEOF
6345 +
6346 + fi
6347 +
6348 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6349 +
6350  
6351 +
6352 +
6353 +
6354 +
6355 +
6356 +
6357 +
6358 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6359 +                  inttypes.h stdint.h unistd.h
6360 + do
6361 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6363 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6366 + else
6367 +  cat >conftest.$ac_ext <<_ACEOF
6368 + #line $LINENO "configure"
6369 + /* confdefs.h.  */
6370 + _ACEOF
6371 + cat confdefs.h >>conftest.$ac_ext
6372 + cat >>conftest.$ac_ext <<_ACEOF
6373 + /* end confdefs.h.  */
6374 + $ac_includes_default
6375 +
6376 + #include <$ac_header>
6377 + _ACEOF
6378 + rm -f conftest.$ac_objext
6379 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 +  (eval $ac_compile) 2>&5
6381 +  ac_status=$?
6382 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 +  (exit $ac_status); } &&
6384 +         { ac_try='test -s conftest.$ac_objext'
6385 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 +  (eval $ac_try) 2>&5
6387 +  ac_status=$?
6388 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 +  (exit $ac_status); }; }; then
6390 +  eval "$as_ac_Header=yes"
6391 + else
6392 +  echo "$as_me: failed program was:" >&5
6393 + sed 's/^/| /' conftest.$ac_ext >&5
6394 +
6395 + eval "$as_ac_Header=no"
6396 + fi
6397 + rm -f conftest.$ac_objext conftest.$ac_ext
6398 + fi
6399 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6400 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6401 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6402 +  cat >>confdefs.h <<_ACEOF
6403 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6404 + _ACEOF
6405 +
6406 + fi
6407 +
6408 + done
6409 +
6410 +
6411 +
6412 +
6413 +
6414   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6415   if test "${with_sprng_prefix+set}" = set; then
6416    withval="$with_sprng_prefix"
# Line 5155 | Line 6443 | fi;
6443      sprng_include=${sprng_prefix}/include
6444    fi
6445  
6446 <  echo "$as_me:5158: checking for SPRNG include files in $sprng_include" >&5
6446 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6447   echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6448    if test -f ${sprng_include}/sprng.h; then
6449      have_sprngincl=yes
6450 <    echo "$as_me:5162: result: yes" >&5
6450 >    echo "$as_me:$LINENO: result: yes" >&5
6451   echo "${ECHO_T}yes" >&6
6452    else
6453      have_sprngincl=no
6454 <    echo "$as_me:5166: result: no" >&5
6454 >    echo "$as_me:$LINENO: result: no" >&5
6455   echo "${ECHO_T}no" >&6
6456 <    { { echo "$as_me:5168: error: Could not locate the SPRNG include files" >&5
6456 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6457   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6458     { (exit 1); exit 1; }; }
6459    fi
6460  
6461 <  echo "$as_me:5173: checking for SPRNG libraries in $sprng_libdir" >&5
6461 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6462   echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6463    if test -f ${sprng_libdir}/libsprng.a; then
6464      have_sprnglib=yes
6465 <    echo "$as_me:5177: result: yes" >&5
6465 >    echo "$as_me:$LINENO: result: yes" >&5
6466   echo "${ECHO_T}yes" >&6
6467    else
6468      have_sprnglib=no
6469 <    echo "$as_me:5181: result: no" >&5
6469 >    echo "$as_me:$LINENO: result: no" >&5
6470   echo "${ECHO_T}no" >&6
6471 <    { { echo "$as_me:5183: error: Could not locate the SPRNG libraries" >&5
6471 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6472   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6473     { (exit 1); exit 1; }; }
6474    fi
6475  
6476 +
6477 +
6478    ac_ext=c
6479   ac_cpp='$CPP $CPPFLAGS'
6480   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5195 | Line 6485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6485    CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6486    ac_save_LDFLAGS=$LDFLAGS
6487    LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6488 <  echo "$as_me:5198: checking for sprng.h" >&5
6488 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6489 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6490   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6491   if test "${ac_cv_header_sprng_h+set}" = set; then
6492    echo $ECHO_N "(cached) $ECHO_C" >&6
6493 + fi
6494 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6495 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6496   else
6497 <  cat >conftest.$ac_ext <<_ACEOF
6498 < #line 5204 "configure"
6499 < #include "confdefs.h"
6497 >  # Is the header compilable?
6498 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6499 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6500 > cat >conftest.$ac_ext <<_ACEOF
6501 > #line $LINENO "configure"
6502 > /* confdefs.h.  */
6503 > _ACEOF
6504 > cat confdefs.h >>conftest.$ac_ext
6505 > cat >>conftest.$ac_ext <<_ACEOF
6506 > /* end confdefs.h.  */
6507 > $ac_includes_default
6508   #include <sprng.h>
6509   _ACEOF
6510 < if { (eval echo "$as_me:5208: \"$ac_cpp conftest.$ac_ext\"") >&5
6510 > rm -f conftest.$ac_objext
6511 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512 >  (eval $ac_compile) 2>&5
6513 >  ac_status=$?
6514 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 >  (exit $ac_status); } &&
6516 >         { ac_try='test -s conftest.$ac_objext'
6517 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 >  (eval $ac_try) 2>&5
6519 >  ac_status=$?
6520 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 >  (exit $ac_status); }; }; then
6522 >  ac_header_compiler=yes
6523 > else
6524 >  echo "$as_me: failed program was:" >&5
6525 > sed 's/^/| /' conftest.$ac_ext >&5
6526 >
6527 > ac_header_compiler=no
6528 > fi
6529 > rm -f conftest.$ac_objext conftest.$ac_ext
6530 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 > echo "${ECHO_T}$ac_header_compiler" >&6
6532 >
6533 > # Is the header present?
6534 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6535 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6536 > cat >conftest.$ac_ext <<_ACEOF
6537 > #line $LINENO "configure"
6538 > /* confdefs.h.  */
6539 > _ACEOF
6540 > cat confdefs.h >>conftest.$ac_ext
6541 > cat >>conftest.$ac_ext <<_ACEOF
6542 > /* end confdefs.h.  */
6543 > #include <sprng.h>
6544 > _ACEOF
6545 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6546    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6547    ac_status=$?
6548 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6548 >  grep -v '^ *+' conftest.er1 >conftest.err
6549    rm -f conftest.er1
6550    cat conftest.err >&5
6551 <  echo "$as_me:5214: \$? = $ac_status" >&5
6551 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552    (exit $ac_status); } >/dev/null; then
6553    if test -s conftest.err; then
6554      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5222 | Line 6559 | if test -z "$ac_cpp_err"; then
6559    ac_cpp_err=yes
6560   fi
6561   if test -z "$ac_cpp_err"; then
6562 <  ac_cv_header_sprng_h=yes
6562 >  ac_header_preproc=yes
6563   else
6564    echo "$as_me: failed program was:" >&5
6565 <  cat conftest.$ac_ext >&5
6566 <  ac_cv_header_sprng_h=no
6565 > sed 's/^/| /' conftest.$ac_ext >&5
6566 >
6567 >  ac_header_preproc=no
6568   fi
6569   rm -f conftest.err conftest.$ac_ext
6570 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6571 + echo "${ECHO_T}$ac_header_preproc" >&6
6572 +
6573 + # So?  What about this header?
6574 + case $ac_header_compiler:$ac_header_preproc in
6575 +  yes:no )
6576 +    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6577 + echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6578 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6579 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6580 +    (
6581 +      cat <<\_ASBOX
6582 + ## ------------------------------------ ##
6583 + ## Report this to bug-autoconf@gnu.org. ##
6584 + ## ------------------------------------ ##
6585 + _ASBOX
6586 +    ) |
6587 +      sed "s/^/$as_me: WARNING:     /" >&2
6588 +    ;;
6589 +  no:yes )
6590 +    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6591 + echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6592 +    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6593 + echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6594 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6595 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6596 +    (
6597 +      cat <<\_ASBOX
6598 + ## ------------------------------------ ##
6599 + ## Report this to bug-autoconf@gnu.org. ##
6600 + ## ------------------------------------ ##
6601 + _ASBOX
6602 +    ) |
6603 +      sed "s/^/$as_me: WARNING:     /" >&2
6604 +    ;;
6605 + esac
6606 + echo "$as_me:$LINENO: checking for sprng.h" >&5
6607 + echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6608 + if test "${ac_cv_header_sprng_h+set}" = set; then
6609 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6610 + else
6611 +  ac_cv_header_sprng_h=$ac_header_preproc
6612   fi
6613 < echo "$as_me:5233: result: $ac_cv_header_sprng_h" >&5
6613 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6614   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6615 +
6616 + fi
6617   if test $ac_cv_header_sprng_h = yes; then
6618  
6619 <    echo "$as_me:5237: checking for init_rng in -lsprng" >&5
6619 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6620   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6621   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6622    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5242 | Line 6624 | cat >conftest.$ac_ext <<_ACEOF
6624    ac_check_lib_save_LIBS=$LIBS
6625   LIBS="-lsprng  $LIBS"
6626   cat >conftest.$ac_ext <<_ACEOF
6627 < #line 5245 "configure"
6628 < #include "confdefs.h"
6627 > #line $LINENO "configure"
6628 > /* confdefs.h.  */
6629 > _ACEOF
6630 > cat confdefs.h >>conftest.$ac_ext
6631 > cat >>conftest.$ac_ext <<_ACEOF
6632 > /* end confdefs.h.  */
6633  
6634   /* Override any gcc2 internal prototype to avoid an error.  */
6635   #ifdef __cplusplus
# Line 5261 | Line 6647 | if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
6647   }
6648   _ACEOF
6649   rm -f conftest.$ac_objext conftest$ac_exeext
6650 < if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
6650 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651    (eval $ac_link) 2>&5
6652    ac_status=$?
6653 <  echo "$as_me:5267: \$? = $ac_status" >&5
6653 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654    (exit $ac_status); } &&
6655           { ac_try='test -s conftest$ac_exeext'
6656 <  { (eval echo "$as_me:5270: \"$ac_try\"") >&5
6656 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657    (eval $ac_try) 2>&5
6658    ac_status=$?
6659 <  echo "$as_me:5273: \$? = $ac_status" >&5
6659 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660    (exit $ac_status); }; }; then
6661    ac_cv_lib_sprng_init_rng=yes
6662   else
6663    echo "$as_me: failed program was:" >&5
6664 < cat conftest.$ac_ext >&5
6664 > sed 's/^/| /' conftest.$ac_ext >&5
6665 >
6666   ac_cv_lib_sprng_init_rng=no
6667   fi
6668   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6669   LIBS=$ac_check_lib_save_LIBS
6670   fi
6671 < echo "$as_me:5284: result: $ac_cv_lib_sprng_init_rng" >&5
6671 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6672   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6673   if test $ac_cv_lib_sprng_init_rng = yes; then
6674    SPRNG_LIBDIR="${sprng_libdir}"
# Line 5291 | Line 6678 | fi
6678  
6679   fi
6680  
6681 +
6682    CPPFLAGS=$ac_save_CPPFLAGS
6683    LDFLAGS=$ac_save_LDFLAGS
6684 <  ac_ext=f90
6685 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6686 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6684 >  ac_ext=c
6685 > ac_cpp='$CPP $CPPFLAGS'
6686 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689  
6690 +
6691    if test x_$HAVE_SPRNG != x_yes; then
6692 <        { { echo "$as_me:5302: error: Can't build with SPRNG" >&5
6692 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
6693   echo "$as_me: error: Can't build with SPRNG" >&2;}
6694     { (exit 1); exit 1; }; }
6695    fi
6696  
6697 < echo "$as_me:5307: checking if MKL is wanted" >&5
6697 >
6698 >
6699 >
6700 >
6701 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
6702   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
6703  
6704   # Check whether --with-mkl or --without-mkl was given.
6705   if test "${with_mkl+set}" = set; then
6706    withval="$with_mkl"
6707 <     echo "$as_me:5313: result: yes" >&5
6707 >     echo "$as_me:$LINENO: result: yes" >&5
6708   echo "${ECHO_T}yes" >&6
6709 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6709 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
6710          mkldir="$dir"
6711          if test -f "$dir/include/mkl.h"; then
6712              found_mkl="yes";
# Line 5320 | Line 6714 | echo "${ECHO_T}yes" >&6
6714          fi
6715      done
6716      if test x_$found_mkl != x_yes; then
6717 <        { { echo "$as_me:5323: error: Cannot find MKL includes" >&5
6717 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
6718   echo "$as_me: error: Cannot find MKL includes" >&2;}
6719     { (exit 1); exit 1; }; }
6720      else
6721          printf "MKL includes found in $mkldir/include\n";
6722      fi
6723  
6724 +
6725 +
6726    ac_ext=c
6727   ac_cpp='$CPP $CPPFLAGS'
6728   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5337 | Line 6733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
6734    ac_save_LDFLAGS=$LDFLAGS
6735    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
6736 <  echo "$as_me:5340: checking for mkl.h" >&5
6736 >  if test "${ac_cv_header_mkl_h+set}" = set; then
6737 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
6738   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6739   if test "${ac_cv_header_mkl_h+set}" = set; then
6740    echo $ECHO_N "(cached) $ECHO_C" >&6
6741 + fi
6742 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6743 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6744   else
6745 <  cat >conftest.$ac_ext <<_ACEOF
6746 < #line 5346 "configure"
6747 < #include "confdefs.h"
6745 >  # Is the header compilable?
6746 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
6747 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6748 > cat >conftest.$ac_ext <<_ACEOF
6749 > #line $LINENO "configure"
6750 > /* confdefs.h.  */
6751 > _ACEOF
6752 > cat confdefs.h >>conftest.$ac_ext
6753 > cat >>conftest.$ac_ext <<_ACEOF
6754 > /* end confdefs.h.  */
6755 > $ac_includes_default
6756   #include <mkl.h>
6757   _ACEOF
6758 < if { (eval echo "$as_me:5350: \"$ac_cpp conftest.$ac_ext\"") >&5
6758 > rm -f conftest.$ac_objext
6759 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 >  (eval $ac_compile) 2>&5
6761 >  ac_status=$?
6762 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 >  (exit $ac_status); } &&
6764 >         { ac_try='test -s conftest.$ac_objext'
6765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 >  (eval $ac_try) 2>&5
6767 >  ac_status=$?
6768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 >  (exit $ac_status); }; }; then
6770 >  ac_header_compiler=yes
6771 > else
6772 >  echo "$as_me: failed program was:" >&5
6773 > sed 's/^/| /' conftest.$ac_ext >&5
6774 >
6775 > ac_header_compiler=no
6776 > fi
6777 > rm -f conftest.$ac_objext conftest.$ac_ext
6778 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6779 > echo "${ECHO_T}$ac_header_compiler" >&6
6780 >
6781 > # Is the header present?
6782 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
6783 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6784 > cat >conftest.$ac_ext <<_ACEOF
6785 > #line $LINENO "configure"
6786 > /* confdefs.h.  */
6787 > _ACEOF
6788 > cat confdefs.h >>conftest.$ac_ext
6789 > cat >>conftest.$ac_ext <<_ACEOF
6790 > /* end confdefs.h.  */
6791 > #include <mkl.h>
6792 > _ACEOF
6793 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795    ac_status=$?
6796 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6796 >  grep -v '^ *+' conftest.er1 >conftest.err
6797    rm -f conftest.er1
6798    cat conftest.err >&5
6799 <  echo "$as_me:5356: \$? = $ac_status" >&5
6799 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800    (exit $ac_status); } >/dev/null; then
6801    if test -s conftest.err; then
6802      ac_cpp_err=$ac_c_preproc_warn_flag
# Line 5364 | Line 6807 | if test -z "$ac_cpp_err"; then
6807    ac_cpp_err=yes
6808   fi
6809   if test -z "$ac_cpp_err"; then
6810 <  ac_cv_header_mkl_h=yes
6810 >  ac_header_preproc=yes
6811   else
6812    echo "$as_me: failed program was:" >&5
6813 <  cat conftest.$ac_ext >&5
6814 <  ac_cv_header_mkl_h=no
6813 > sed 's/^/| /' conftest.$ac_ext >&5
6814 >
6815 >  ac_header_preproc=no
6816   fi
6817   rm -f conftest.err conftest.$ac_ext
6818 < fi
6819 < echo "$as_me:5375: result: $ac_cv_header_mkl_h" >&5
6818 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6819 > echo "${ECHO_T}$ac_header_preproc" >&6
6820 >
6821 > # So?  What about this header?
6822 > case $ac_header_compiler:$ac_header_preproc in
6823 >  yes:no )
6824 >    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6825 > echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6826 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6827 > echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6828 >    (
6829 >      cat <<\_ASBOX
6830 > ## ------------------------------------ ##
6831 > ## Report this to bug-autoconf@gnu.org. ##
6832 > ## ------------------------------------ ##
6833 > _ASBOX
6834 >    ) |
6835 >      sed "s/^/$as_me: WARNING:     /" >&2
6836 >    ;;
6837 >  no:yes )
6838 >    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6839 > echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6840 >    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6841 > echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6842 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6843 > echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6844 >    (
6845 >      cat <<\_ASBOX
6846 > ## ------------------------------------ ##
6847 > ## Report this to bug-autoconf@gnu.org. ##
6848 > ## ------------------------------------ ##
6849 > _ASBOX
6850 >    ) |
6851 >      sed "s/^/$as_me: WARNING:     /" >&2
6852 >    ;;
6853 > esac
6854 > echo "$as_me:$LINENO: checking for mkl.h" >&5
6855 > echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
6856 > if test "${ac_cv_header_mkl_h+set}" = set; then
6857 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6858 > else
6859 >  ac_cv_header_mkl_h=$ac_header_preproc
6860 > fi
6861 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
6862   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
6863 +
6864 + fi
6865   if test $ac_cv_header_mkl_h = yes; then
6866  
6867 <    echo "$as_me:5379: checking for vslNewStream in -lmkl" >&5
6867 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
6868   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
6869   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
6870    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5384 | Line 6872 | cat >conftest.$ac_ext <<_ACEOF
6872    ac_check_lib_save_LIBS=$LIBS
6873   LIBS="-lmkl  $LIBS"
6874   cat >conftest.$ac_ext <<_ACEOF
6875 < #line 5387 "configure"
6876 < #include "confdefs.h"
6875 > #line $LINENO "configure"
6876 > /* confdefs.h.  */
6877 > _ACEOF
6878 > cat confdefs.h >>conftest.$ac_ext
6879 > cat >>conftest.$ac_ext <<_ACEOF
6880 > /* end confdefs.h.  */
6881  
6882   /* Override any gcc2 internal prototype to avoid an error.  */
6883   #ifdef __cplusplus
# Line 5403 | Line 6895 | if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
6895   }
6896   _ACEOF
6897   rm -f conftest.$ac_objext conftest$ac_exeext
6898 < if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
6898 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899    (eval $ac_link) 2>&5
6900    ac_status=$?
6901 <  echo "$as_me:5409: \$? = $ac_status" >&5
6901 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902    (exit $ac_status); } &&
6903           { ac_try='test -s conftest$ac_exeext'
6904 <  { (eval echo "$as_me:5412: \"$ac_try\"") >&5
6904 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905    (eval $ac_try) 2>&5
6906    ac_status=$?
6907 <  echo "$as_me:5415: \$? = $ac_status" >&5
6907 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908    (exit $ac_status); }; }; then
6909    ac_cv_lib_mkl_vslNewStream=yes
6910   else
6911    echo "$as_me: failed program was:" >&5
6912 < cat conftest.$ac_ext >&5
6912 > sed 's/^/| /' conftest.$ac_ext >&5
6913 >
6914   ac_cv_lib_mkl_vslNewStream=no
6915   fi
6916   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6917   LIBS=$ac_check_lib_save_LIBS
6918   fi
6919 < echo "$as_me:5426: result: $ac_cv_lib_mkl_vslNewStream" >&5
6919 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
6920   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
6921   if test $ac_cv_lib_mkl_vslNewStream = yes; then
6922    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5431 | Line 6924 | else
6924                       HAVE_MKL="yes"
6925   fi
6926  
6927 +
6928   else
6929    MKL_INC="-I${mkldir}/include"
6930   fi
6931  
6932 +
6933    CPPFLAGS=$ac_save_CPPFLAGS
6934    LDFLAGS=$ac_save_LDFLAGS
6935 <  ac_ext=f90
6936 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6937 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6935 >  ac_ext=c
6936 > ac_cpp='$CPP $CPPFLAGS'
6937 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940  
6941 +
6942    if test x_$HAVE_MKL != x_yes; then
6943 <        { { echo "$as_me:5446: error: Can't build with MKL" >&5
6943 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
6944   echo "$as_me: error: Can't build with MKL" >&2;}
6945     { (exit 1); exit 1; }; }
6946    fi
6947  
5451 else
6948  
5453    echo "$as_me:5453: result: no" >&5
5454 echo "${ECHO_T}no" >&6
6949  
5456 fi;
6950  
5458 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
5459 if test "${with_mpi_f90_mods+set}" = set; then
5460  withval="$with_mpi_f90_mods"
5461  mpi_f90_mods="$withval"
5462 else
5463  mpi_f90_mods="/usr/local/include/f90choice"
5464 fi;
6951  
5466  echo "$as_me:5466: checking for MPI F90 modules" >&5
5467 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
5468
5469  ac_ext=f90
5470 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5471 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5473
5474  ac_save_F90FLAGS=$F90FLAGS
5475
5476  if test "$mpi_f90_mods"; then
5477  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
5478 fi
5479
5480    cat >conftest.$ac_ext <<_ACEOF
5481
5482 program main
5483
5484 use mpi
5485 integer :: ierr
5486 call MPI_Init(ierr)
5487
5488 end program main
5489
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:5492: \"$ac_compile\"") >&5
5493  (eval $ac_compile) 2>&5
5494  ac_status=$?
5495  echo "$as_me:5495: \$? = $ac_status" >&5
5496  (exit $ac_status); } &&
5497         { ac_try='test -s conftest.$ac_objext'
5498  { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:5501: \$? = $ac_status" >&5
5502  (exit $ac_status); }; }; then
5503  HAVE_MPI_MOD=1
6952   else
5505  echo "$as_me: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 HAVE_MPI_MOD=0
5508 fi
5509 rm -f conftest.$ac_objext conftest.$ac_ext
6953  
6954 <  F90FLAGS=$ac_save_F90FLAGS
6955 <  ac_ext=f90
5513 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5514 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6954 >    echo "$as_me:$LINENO: result: no" >&5
6955 > echo "${ECHO_T}no" >&6
6956  
6957 <  if test "$HAVE_MPI_MOD" = 1; then
5518 <    echo "$as_me:5518: result: yes" >&5
5519 < echo "${ECHO_T}yes" >&6
6957 > fi;
6958  
5521 cat >>confdefs.h <<\EOF
5522 #define MPI_MOD 1
5523 EOF
6959  
5525    MPI_F90_MODS="${mpi_f90_mods}"
6960  
5527    # The library name:
5528    if test -z "$MPI_LIB" ; then
5529       MPI_LIBNAME=-lmpich
5530    else
5531       MPI_LIBNAME="$MPI_LIB"
5532    fi
5533    if test -z "$MPIMODLIBNAME" ; then
5534       MPIMODLIBNAME="${MPI_LIBNAME}f90"
5535    fi
6961  
5537  else
5538    echo "$as_me:5538: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5540    { { echo "$as_me:5540: error: Couldn't locate MPI F90 Modules" >&5
5541 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
5542   { (exit 1); exit 1; }; }
5543  fi
6962  
6963   OBJEXT=".$OBJEXT"
6964  
# Line 5565 | Line 6983 | SUBDIRS="libBASS libmdtools src forceFields samples ut
6983  
6984   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6985  
6986 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
6986 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party shapes"
6987  
6988   CFLAGS=${CFLAGS-""}
6989   CXXFLAGS=${CXXFLAGS-""}
# Line 5584 | Line 7002 | ac_config_headers="$ac_config_headers libmdtools/confi
7002       ;;
7003   esac
7004  
5587 ac_config_headers="$ac_config_headers libmdtools/config.h"
7005  
5589 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7006  
7007 +
7008 +
7009 +
7010 +
7011 +
7012 +
7013 +
7014 +
7015 +
7016 +
7017 +
7018 +
7019 +
7020 +
7021 +          ac_config_headers="$ac_config_headers libmdtools/config.h"
7022 +
7023 +                                                                                                                                                                          ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile shapes/Makefile"
7024 +
7025 +
7026   cat >confcache <<\_ACEOF
7027   # This file is a shell script that caches the results of configure
7028   # tests run on this system so they can be shared between configure
# Line 5598 | Line 7033 | cat >confcache <<\_ACEOF
7033   # config.status only pays attention to the cache file if you give it
7034   # the --recheck option to rerun configure.
7035   #
7036 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7036 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7037   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7038   # following values.
7039  
# Line 5617 | Line 7052 | _ACEOF
7052        # substitution turns \\\\ into \\, and sed turns \\ into \).
7053        sed -n \
7054          "s/'/'\\\\''/g;
7055 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7055 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7056        ;;
7057      *)
7058        # `set' quotes correctly as required by POSIX, so do not add quotes.
7059        sed -n \
7060 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7060 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7061        ;;
7062      esac;
7063   } |
# Line 5633 | Line 7068 | if cmp -s $cache_file confcache; then :; else
7068       t end
7069       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7070       : end' >>confcache
7071 < if cmp -s $cache_file confcache; then :; else
7071 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7072    if test -w $cache_file; then
7073      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7074      cat confcache >$cache_file
# Line 5664 | Line 7099 | DEFS=-DHAVE_CONFIG_H
7099  
7100   DEFS=-DHAVE_CONFIG_H
7101  
7102 + ac_libobjs=
7103 + ac_ltlibobjs=
7104 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7105 +  # 1. Remove the extension, and $U if already installed.
7106 +  ac_i=`echo "$ac_i" |
7107 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7108 +  # 2. Add them.
7109 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7110 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7111 + done
7112 + LIBOBJS=$ac_libobjs
7113 +
7114 + LTLIBOBJS=$ac_ltlibobjs
7115 +
7116 +
7117 +
7118   : ${CONFIG_STATUS=./config.status}
7119   ac_clean_files_save=$ac_clean_files
7120   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7121 < { echo "$as_me:5670: creating $CONFIG_STATUS" >&5
7121 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7122   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7123   cat >$CONFIG_STATUS <<_ACEOF
7124   #! $SHELL
7125 < # Generated automatically by configure.
7125 > # Generated by $as_me.
7126   # Run this file to recreate the current configuration.
7127   # Compiler output produced by configure, useful for debugging
7128   # configure, is in config.log if it exists.
7129  
7130   debug=false
7131 + ac_cs_recheck=false
7132 + ac_cs_silent=false
7133   SHELL=\${CONFIG_SHELL-$SHELL}
5681 ac_cs_invocation="\$0 \$@"
5682
7134   _ACEOF
7135  
7136   cat >>$CONFIG_STATUS <<\_ACEOF
7137 + ## --------------------- ##
7138 + ## M4sh Initialization.  ##
7139 + ## --------------------- ##
7140 +
7141   # Be Bourne compatible
7142   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7143    emulate sh
7144    NULLCMD=:
7145 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7146 +  # is contrary to our usage.  Disable this feature.
7147 +  alias -g '${1+"$@"}'='"$@"'
7148   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7149    set -o posix
7150   fi
7151  
7152 + # Support unset when possible.
7153 + if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7154 +  as_unset=unset
7155 + else
7156 +  as_unset=false
7157 + fi
7158 +
7159 +
7160 + # Work around bugs in pre-3.0 UWIN ksh.
7161 + $as_unset ENV MAIL MAILPATH
7162 + PS1='$ '
7163 + PS2='> '
7164 + PS4='+ '
7165 +
7166 + # NLS nuisances.
7167 + for as_var in \
7168 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7169 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7170 +  LC_TELEPHONE LC_TIME
7171 + do
7172 +  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7173 +    eval $as_var=C; export $as_var
7174 +  else
7175 +    $as_unset $as_var
7176 +  fi
7177 + done
7178 +
7179 + # Required to use basename.
7180 + if expr a : '\(a\)' >/dev/null 2>&1; then
7181 +  as_expr=expr
7182 + else
7183 +  as_expr=false
7184 + fi
7185 +
7186 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7187 +  as_basename=basename
7188 + else
7189 +  as_basename=false
7190 + fi
7191 +
7192 +
7193   # Name of the executable.
7194 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7194 > as_me=`$as_basename "$0" ||
7195 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7196 >         X"$0" : 'X\(//\)$' \| \
7197 >         X"$0" : 'X\(/\)$' \| \
7198 >         .     : '\(.\)' 2>/dev/null ||
7199 > echo X/"$0" |
7200 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7201 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7202 >          /^X\/\(\/\).*/{ s//\1/; q; }
7203 >          s/.*/./; q'`
7204  
7205 +
7206 + # PATH needs CR, and LINENO needs CR and PATH.
7207 + # Avoid depending upon Character Ranges.
7208 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7209 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7210 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7211 + as_cr_digits='0123456789'
7212 + as_cr_alnum=$as_cr_Letters$as_cr_digits
7213 +
7214 + # The user is always right.
7215 + if test "${PATH_SEPARATOR+set}" != set; then
7216 +  echo "#! /bin/sh" >conf$$.sh
7217 +  echo  "exit 0"   >>conf$$.sh
7218 +  chmod +x conf$$.sh
7219 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7220 +    PATH_SEPARATOR=';'
7221 +  else
7222 +    PATH_SEPARATOR=:
7223 +  fi
7224 +  rm -f conf$$.sh
7225 + fi
7226 +
7227 +
7228 +  as_lineno_1=$LINENO
7229 +  as_lineno_2=$LINENO
7230 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7231 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7232 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7233 +  # Find who we are.  Look in the path if we contain no path at all
7234 +  # relative or not.
7235 +  case $0 in
7236 +    *[\\/]* ) as_myself=$0 ;;
7237 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 + for as_dir in $PATH
7239 + do
7240 +  IFS=$as_save_IFS
7241 +  test -z "$as_dir" && as_dir=.
7242 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7243 + done
7244 +
7245 +       ;;
7246 +  esac
7247 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7248 +  # in which case we are not to be found in the path.
7249 +  if test "x$as_myself" = x; then
7250 +    as_myself=$0
7251 +  fi
7252 +  if test ! -f "$as_myself"; then
7253 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7254 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7255 +   { (exit 1); exit 1; }; }
7256 +  fi
7257 +  case $CONFIG_SHELL in
7258 +  '')
7259 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7261 + do
7262 +  IFS=$as_save_IFS
7263 +  test -z "$as_dir" && as_dir=.
7264 +  for as_base in sh bash ksh sh5; do
7265 +         case $as_dir in
7266 +         /*)
7267 +           if ("$as_dir/$as_base" -c '
7268 +  as_lineno_1=$LINENO
7269 +  as_lineno_2=$LINENO
7270 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7271 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7272 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7273 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7274 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7275 +             CONFIG_SHELL=$as_dir/$as_base
7276 +             export CONFIG_SHELL
7277 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7278 +           fi;;
7279 +         esac
7280 +       done
7281 + done
7282 + ;;
7283 +  esac
7284 +
7285 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7286 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7287 +  # line-number line before each line; the second 'sed' does the real
7288 +  # work.  The second script uses 'N' to pair each line-number line
7289 +  # with the numbered line, and appends trailing '-' during
7290 +  # substitution so that $LINENO is not a special case at line end.
7291 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7292 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7293 +  sed '=' <$as_myself |
7294 +    sed '
7295 +      N
7296 +      s,$,-,
7297 +      : loop
7298 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7299 +      t loop
7300 +      s,-$,,
7301 +      s,^['$as_cr_digits']*\n,,
7302 +    ' >$as_me.lineno &&
7303 +  chmod +x $as_me.lineno ||
7304 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7305 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7306 +   { (exit 1); exit 1; }; }
7307 +
7308 +  # Don't try to exec as it changes $[0], causing all sort of problems
7309 +  # (the dirname of $[0] is not the place where we might find the
7310 +  # original and so on.  Autoconf is especially sensible to this).
7311 +  . ./$as_me.lineno
7312 +  # Exit status is that of the last command.
7313 +  exit
7314 + }
7315 +
7316 +
7317 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7318 +  *c*,-n*) ECHO_N= ECHO_C='
7319 + ' ECHO_T='      ' ;;
7320 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7321 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7322 + esac
7323 +
7324   if expr a : '\(a\)' >/dev/null 2>&1; then
7325    as_expr=expr
7326   else
# Line 5718 | Line 7345 | as_executable_p="test -f"
7345   fi
7346   rm -f conf$$ conf$$.exe conf$$.file
7347  
7348 < as_executable_p="test -f"
7349 <
5723 < # Support unset when possible.
5724 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5725 <  as_unset=unset
7348 > if mkdir -p . 2>/dev/null; then
7349 >  as_mkdir_p=:
7350   else
7351 <  as_unset=false
7351 >  as_mkdir_p=false
7352   fi
7353  
7354 < # NLS nuisances.
5731 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5732 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5733 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5734 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5735 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5736 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5737 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5738 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7354 > as_executable_p="test -f"
7355  
7356 + # Sed expression to map a string onto a valid CPP name.
7357 + as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7358 +
7359 + # Sed expression to map a string onto a valid variable name.
7360 + as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7361 +
7362 +
7363   # IFS
7364   # We need space, tab and new line, in precisely that order.
7365   as_nl='
# Line 5744 | Line 7367 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
7367   IFS="   $as_nl"
7368  
7369   # CDPATH.
7370 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7370 > $as_unset CDPATH
7371  
7372   exec 6>&1
7373  
7374 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7375 + # report actual input values of CONFIG_FILES etc. instead of their
7376 + # values after options handling.  Logging --version etc. is OK.
7377 + exec 5>>config.log
7378 + {
7379 +  echo
7380 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7381 + ## Running $as_me. ##
7382 + _ASBOX
7383 + } >&5
7384 + cat >&5 <<_CSEOF
7385 +
7386 + This file was extended by OOPSE $as_me 1.0, which was
7387 + generated by GNU Autoconf 2.57.  Invocation command line was
7388 +
7389 +  CONFIG_FILES    = $CONFIG_FILES
7390 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7391 +  CONFIG_LINKS    = $CONFIG_LINKS
7392 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7393 +  $ $0 $@
7394 +
7395 + _CSEOF
7396 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7397 + echo >&5
7398   _ACEOF
7399  
7400   # Files that config.status was made for.
# Line 5767 | Line 7414 | cat >>$CONFIG_STATUS <<\EOF
7414    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7415   fi
7416  
7417 < cat >>$CONFIG_STATUS <<\EOF
7417 > cat >>$CONFIG_STATUS <<\_ACEOF
7418  
7419   ac_cs_usage="\
7420   \`$as_me' instantiates files from templates according to the
# Line 5777 | Line 7424 | Usage: $0 [OPTIONS] [FILE]...
7424  
7425    -h, --help       print this help, then exit
7426    -V, --version    print version number, then exit
7427 +  -q, --quiet      do not print progress messages
7428    -d, --debug      don't remove temporary files
7429        --recheck    update $as_me by reconfiguring in the same conditions
7430    --file=FILE[:TEMPLATE]
# Line 5791 | Line 7439 | EOF
7439   $config_headers
7440  
7441   Report bugs to <bug-autoconf@gnu.org>."
7442 < EOF
7442 > _ACEOF
7443  
7444 < cat >>$CONFIG_STATUS <<EOF
7444 > cat >>$CONFIG_STATUS <<_ACEOF
7445   ac_cs_version="\\
7446   OOPSE config.status 1.0
7447 < configured by $0, generated by GNU Autoconf 2.50,
7447 > configured by $0, generated by GNU Autoconf 2.57,
7448    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7449  
7450   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
# Line 5805 | Line 7453 | EOF
7453   gives unlimited permission to copy, distribute and modify it."
7454   srcdir=$srcdir
7455   INSTALL="$INSTALL"
7456 < EOF
7456 > _ACEOF
7457  
7458 < cat >>$CONFIG_STATUS <<\EOF
7458 > cat >>$CONFIG_STATUS <<\_ACEOF
7459   # If no file are specified by the user, then we need to provide default
7460   # value.  By we need to know if files were specified by the user.
7461   ac_need_defaults=:
# Line 5817 | Line 7465 | do
7465    --*=*)
7466      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7467      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7468 <    shift
5821 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5822 <    shift
7468 >    ac_shift=:
7469      ;;
7470 <  -*);;
7470 >  -*)
7471 >    ac_option=$1
7472 >    ac_optarg=$2
7473 >    ac_shift=shift
7474 >    ;;
7475    *) # This is not an option, so the user has probably given explicit
7476       # arguments.
7477 +     ac_option=$1
7478       ac_need_defaults=false;;
7479    esac
7480  
7481 <  case $1 in
7481 >  case $ac_option in
7482    # Handling of the options.
7483 < EOF
7484 < cat >>$CONFIG_STATUS <<EOF
7483 > _ACEOF
7484 > cat >>$CONFIG_STATUS <<\_ACEOF
7485    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7486 <    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5836 <    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5837 < EOF
5838 < cat >>$CONFIG_STATUS <<\EOF
7486 >    ac_cs_recheck=: ;;
7487    --version | --vers* | -V )
7488      echo "$ac_cs_version"; exit 0 ;;
7489    --he | --h)
7490      # Conflict between --help and --header
7491 <    { { echo "$as_me:5843: error: ambiguous option: $1
7491 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7492   Try \`$0 --help' for more information." >&5
7493   echo "$as_me: error: ambiguous option: $1
7494   Try \`$0 --help' for more information." >&2;}
# Line 5850 | Line 7498 | Try \`$0 --help' for more information." >&2;}
7498    --debug | --d* | -d )
7499      debug=: ;;
7500    --file | --fil | --fi | --f )
7501 <    shift
7502 <    CONFIG_FILES="$CONFIG_FILES $1"
7501 >    $ac_shift
7502 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7503      ac_need_defaults=false;;
7504    --header | --heade | --head | --hea )
7505 <    shift
7506 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7505 >    $ac_shift
7506 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7507      ac_need_defaults=false;;
7508 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7509 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7510 +    ac_cs_silent=: ;;
7511  
5861  # Handling of arguments.
5862  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5863  'libBASS/Makefile' ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
5864  'libmdtools/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
5865  'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5866  'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
5867  'utils/sysbuilder/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
5868  'forceFields/Makefile' ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
5869  'samples/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
5870  'staticProps/Makefile' ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
5871  'samples/alkane/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
5872  'samples/argon/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
5873  'samples/beadLipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
5874  'samples/lipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
5875  'samples/metals/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
5876  'samples/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
5877  'libmdtools/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
5878
7512    # This is an error.
7513 <  -*) { { echo "$as_me:5880: error: unrecognized option: $1
7513 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7514   Try \`$0 --help' for more information." >&5
7515   echo "$as_me: error: unrecognized option: $1
7516   Try \`$0 --help' for more information." >&2;}
7517     { (exit 1); exit 1; }; } ;;
7518 <  *) { { echo "$as_me:5885: error: invalid argument: $1" >&5
7519 < echo "$as_me: error: invalid argument: $1" >&2;}
7520 <   { (exit 1); exit 1; }; };;
7518 >
7519 >  *) ac_config_targets="$ac_config_targets $1" ;;
7520 >
7521    esac
7522    shift
7523   done
7524  
7525 < exec 5>>config.log
5893 < cat >&5 << _ACEOF
7525 > ac_configure_extra_args=
7526  
7527 < ## ----------------------- ##
7528 < ## Running config.status.  ##
7529 < ## ----------------------- ##
7527 > if $ac_cs_silent; then
7528 >  exec 6>/dev/null
7529 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7530 > fi
7531  
7532 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
7533 <  > $ac_cs_invocation
7534 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7532 > _ACEOF
7533 > cat >>$CONFIG_STATUS <<_ACEOF
7534 > if \$ac_cs_recheck; then
7535 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7536 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7537 > fi
7538  
7539   _ACEOF
5904 EOF
7540  
7541 < cat >>$CONFIG_STATUS <<\EOF
7541 >
7542 >
7543 >
7544 >
7545 > cat >>$CONFIG_STATUS <<\_ACEOF
7546 > for ac_config_target in $ac_config_targets
7547 > do
7548 >  case "$ac_config_target" in
7549 >  # Handling of arguments.
7550 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7551 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7552 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7553 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7554 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7555 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7556 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7557 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7558 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7559 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7560 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7561 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7562 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7563 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7564 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7565 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7566 >  "shapes/Makefile" ) CONFIG_FILES="$CONFIG_FILES shapes/Makefile" ;;
7567 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7568 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7569 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7570 >   { (exit 1); exit 1; }; };;
7571 >  esac
7572 > done
7573 >
7574   # If the user did not use the arguments to specify the items to instantiate,
7575   # then the envvar interface is used.  Set only those that are not.
7576   # We use the long form for the default assignment because of an extremely
# Line 5913 | Line 7580 | fi
7580    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7581   fi
7582  
7583 + # Have a temporary directory for convenience.  Make it in the build tree
7584 + # simply because there is no reason to put it here, and in addition,
7585 + # creating and moving files from /tmp can sometimes cause problems.
7586   # Create a temporary directory, and hook for its removal unless debugging.
7587   $debug ||
7588   {
7589    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7590 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7590 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7591   }
7592  
7593   # Create a (secure) tmp directory for tmp files.
7594 < : ${TMPDIR=/tmp}
7594 >
7595   {
7596 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7596 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7597    test -n "$tmp" && test -d "$tmp"
7598   }  ||
7599   {
7600 <  tmp=$TMPDIR/cs$$-$RANDOM
7600 >  tmp=./confstat$$-$RANDOM
7601    (umask 077 && mkdir $tmp)
7602   } ||
7603   {
7604 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7604 >   echo "$me: cannot create a temporary directory in ." >&2
7605     { (exit 1); exit 1; }
7606   }
7607  
7608 < EOF
7608 > _ACEOF
7609  
7610 < cat >>$CONFIG_STATUS <<EOF
7610 > cat >>$CONFIG_STATUS <<_ACEOF
7611  
7612   #
7613   # CONFIG_FILES section.
# Line 5950 | Line 7620 | s,@exec_prefix@,$exec_prefix,;t t
7620    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7621     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7622   s,@SHELL@,$SHELL,;t t
7623 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7624 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7625 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7626 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7627 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7628 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7629   s,@exec_prefix@,$exec_prefix,;t t
7630   s,@prefix@,$prefix,;t t
7631   s,@program_transform_name@,$program_transform_name,;t t
# Line 5965 | Line 7641 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7641   s,@oldincludedir@,$oldincludedir,;t t
7642   s,@infodir@,$infodir,;t t
7643   s,@mandir@,$mandir,;t t
7644 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7645 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7646 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7647 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5972 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7644 > s,@build_alias@,$build_alias,;t t
7645 > s,@host_alias@,$host_alias,;t t
7646 > s,@target_alias@,$target_alias,;t t
7647 > s,@DEFS@,$DEFS,;t t
7648   s,@ECHO_C@,$ECHO_C,;t t
7649   s,@ECHO_N@,$ECHO_N,;t t
7650   s,@ECHO_T@,$ECHO_T,;t t
5976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5977 s,@DEFS@,$DEFS,;t t
7651   s,@LIBS@,$LIBS,;t t
7652   s,@PROGNAME@,$PROGNAME,;t t
7653   s,@debug@,$debug,;t t
# Line 5996 | Line 7669 | s,@F90@,$F90,;t t
7669   s,@CXX@,$CXX,;t t
7670   s,@CXXFLAGS@,$CXXFLAGS,;t t
7671   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7672 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7673 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
7674   s,@F90@,$F90,;t t
7675   s,@F90FLAGS@,$F90FLAGS,;t t
7676   s,@ac_ct_F90@,$ac_ct_F90,;t t
7677   s,@PREPFLAG@,$PREPFLAG,;t t
7678   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7679 + s,@F90LIBS@,$F90LIBS,;t t
7680 + s,@F90_FUNC@,$F90_FUNC,;t t
7681 + s,@F90_FUNC_@,$F90_FUNC_,;t t
7682 + s,@MOD@,$MOD,;t t
7683 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7684 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7685 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7686   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7687   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7688   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 6013 | Line 7695 | s,@F90LIBS@,$F90LIBS,;t t
7695   s,@LEXLIB@,$LEXLIB,;t t
7696   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7697   s,@AR@,$AR,;t t
7698 < s,@F90LIBS@,$F90LIBS,;t t
6017 < s,@F90_FUNC@,$F90_FUNC,;t t
6018 < s,@F90_FUNC_@,$F90_FUNC_,;t t
6019 < s,@MOD@,$MOD,;t t
6020 < s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
6021 < s,@MODDIRFLAG@,$MODDIRFLAG,;t t
6022 < s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
6023 < s,@mpi_dir@,$mpi_dir,;t t
7698 > s,@mpi@,$mpi,;t t
7699   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7700   s,@MPI_INC@,$MPI_INC,;t t
7701 + s,@MPI_F90INC@,$MPI_F90INC,;t t
7702   s,@MPI_LIB@,$MPI_LIB,;t t
7703 < s,@MPIF77@,$MPIF77,;t t
6028 < s,@MPIF90@,$MPIF90,;t t
6029 < s,@MPILIBS@,$MPILIBS,;t t
7703 > s,@MPI_F90LIB@,$MPI_F90LIB,;t t
7704   s,@CPP@,$CPP,;t t
7705 + s,@EGREP@,$EGREP,;t t
7706   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7707   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7708   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 6036 | Line 7711 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7711   s,@MKL_LIB@,$MKL_LIB,;t t
7712   s,@MKL_INC@,$MKL_INC,;t t
7713   s,@HAVE_MKL@,$HAVE_MKL,;t t
6039 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
6040 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7714   s,@BATEXT@,$BATEXT,;t t
7715   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7716   s,@OOPSE@,$OOPSE,;t t
7717   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
7718   s,@SUBDIRS@,$SUBDIRS,;t t
7719   s,@FFLAGS@,$FFLAGS,;t t
7720 + s,@LIBOBJS@,$LIBOBJS,;t t
7721 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7722   CEOF
7723  
7724 < EOF
7724 > _ACEOF
7725  
7726 <  cat >>$CONFIG_STATUS <<\EOF
7726 >  cat >>$CONFIG_STATUS <<\_ACEOF
7727    # Split the substitutions into bite-sized pieces for seds with
7728    # small command number limits, like on Digital OSF/1 and HP-UX.
7729    ac_max_sed_lines=48
# Line 6087 | Line 7762 | EOF
7762    fi
7763   fi # test -n "$CONFIG_FILES"
7764  
7765 < EOF
7766 < cat >>$CONFIG_STATUS <<\EOF
7765 > _ACEOF
7766 > cat >>$CONFIG_STATUS <<\_ACEOF
7767   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7768    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7769    case $ac_file in
# Line 6102 | Line 7777 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
7777    esac
7778  
7779    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7780 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7780 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7781 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7782           X"$ac_file" : 'X\(//\)[^/]' \| \
7783           X"$ac_file" : 'X\(//\)$' \| \
7784           X"$ac_file" : 'X\(/\)' \| \
# Line 6113 | Line 7789 | echo X"$ac_file" |
7789            /^X\(\/\/\)$/{ s//\1/; q; }
7790            /^X\(\/\).*/{ s//\1/; q; }
7791            s/.*/./; q'`
7792 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7793 <    { case "$ac_dir" in
6118 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6119 <  *)                      as_incr_dir=.;;
6120 < esac
6121 < as_dummy="$ac_dir"
6122 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6123 <  case $as_mkdir_dir in
6124 <    # Skip DOS drivespec
6125 <    ?:) as_incr_dir=$as_mkdir_dir ;;
6126 <    *)
6127 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
6128 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6129 <    ;;
6130 <  esac
6131 < done; }
6132 <
6133 <    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6134 <    # A "../" for each directory in $ac_dir_suffix.
6135 <    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7792 >  { if $as_mkdir_p; then
7793 >    mkdir -p "$ac_dir"
7794    else
7795 <    ac_dir_suffix= ac_dots=
7796 <  fi
7795 >    as_dir="$ac_dir"
7796 >    as_dirs=
7797 >    while test ! -d "$as_dir"; do
7798 >      as_dirs="$as_dir $as_dirs"
7799 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7800 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7801 >         X"$as_dir" : 'X\(//\)[^/]' \| \
7802 >         X"$as_dir" : 'X\(//\)$' \| \
7803 >         X"$as_dir" : 'X\(/\)' \| \
7804 >         .     : '\(.\)' 2>/dev/null ||
7805 > echo X"$as_dir" |
7806 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7807 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7808 >          /^X\(\/\/\)$/{ s//\1/; q; }
7809 >          /^X\(\/\).*/{ s//\1/; q; }
7810 >          s/.*/./; q'`
7811 >    done
7812 >    test ! -n "$as_dirs" || mkdir $as_dirs
7813 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7814 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7815 >   { (exit 1); exit 1; }; }; }
7816  
7817 <  case $srcdir in
7818 <  .)  ac_srcdir=.
7819 <      if test -z "$ac_dots"; then
7820 <         ac_top_srcdir=.
7821 <      else
7822 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7823 <      fi ;;
7824 <  [\\/]* | ?:[\\/]* )
7825 <      ac_srcdir=$srcdir$ac_dir_suffix;
7826 <      ac_top_srcdir=$srcdir ;;
7817 >  ac_builddir=.
7818 >
7819 > if test "$ac_dir" != .; then
7820 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7821 >  # A "../" for each directory in $ac_dir_suffix.
7822 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7823 > else
7824 >  ac_dir_suffix= ac_top_builddir=
7825 > fi
7826 >
7827 > case $srcdir in
7828 >  .)  # No --srcdir option.  We are building in place.
7829 >    ac_srcdir=.
7830 >    if test -z "$ac_top_builddir"; then
7831 >       ac_top_srcdir=.
7832 >    else
7833 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7834 >    fi ;;
7835 >  [\\/]* | ?:[\\/]* )  # Absolute path.
7836 >    ac_srcdir=$srcdir$ac_dir_suffix;
7837 >    ac_top_srcdir=$srcdir ;;
7838    *) # Relative path.
7839 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7840 <    ac_top_srcdir=$ac_dots$srcdir ;;
7841 <  esac
7839 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7840 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7841 > esac
7842 > # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7843 > # absolute.
7844 > ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7845 > ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7846 > ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7847 > ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7848  
7849 +
7850    case $INSTALL in
7851    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7852 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
7852 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7853    esac
7854  
7855    if test x"$ac_file" != x-; then
7856 <    { echo "$as_me:6161: creating $ac_file" >&5
7856 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
7857   echo "$as_me: creating $ac_file" >&6;}
7858      rm -f "$ac_file"
7859    fi
7860    # Let's still pretend it is `configure' which instantiates (i.e., don't
7861    # use $as_me), people would be surprised to read:
7862 <  #    /* config.h.  Generated automatically by config.status.  */
7863 <  configure_input="Generated automatically from `echo $ac_file_in |
7864 <                                                 sed 's,.*/,,'` by configure."
7862 >  #    /* config.h.  Generated by config.status.  */
7863 >  if test x"$ac_file" = x-; then
7864 >    configure_input=
7865 >  else
7866 >    configure_input="$ac_file.  "
7867 >  fi
7868 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
7869 >                                     sed 's,.*/,,'` by configure."
7870  
7871    # First look for the input files in the build tree, otherwise in the
7872    # src tree.
# Line 6176 | Line 7876 | echo "$as_me: creating $ac_file" >&6;}
7876        -) echo $tmp/stdin ;;
7877        [\\/$]*)
7878           # Absolute (can't be DOS-style, as IFS=:)
7879 <         test -f "$f" || { { echo "$as_me:6179: error: cannot find input file: $f" >&5
7879 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7880   echo "$as_me: error: cannot find input file: $f" >&2;}
7881     { (exit 1); exit 1; }; }
7882           echo $f;;
# Line 6189 | Line 7889 | echo "$as_me: error: cannot find input file: $f" >&2;}
7889             echo $srcdir/$f
7890           else
7891             # /dev/null tree
7892 <           { { echo "$as_me:6192: error: cannot find input file: $f" >&5
7892 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7893   echo "$as_me: error: cannot find input file: $f" >&2;}
7894     { (exit 1); exit 1; }; }
7895           fi;;
7896        esac
7897      done` || { (exit 1); exit 1; }
7898 < EOF
7899 < cat >>$CONFIG_STATUS <<EOF
7898 > _ACEOF
7899 > cat >>$CONFIG_STATUS <<_ACEOF
7900    sed "$ac_vpsub
7901   $extrasub
7902 < EOF
7903 < cat >>$CONFIG_STATUS <<\EOF
7902 > _ACEOF
7903 > cat >>$CONFIG_STATUS <<\_ACEOF
7904   :t
7905   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7906   s,@configure_input@,$configure_input,;t t
7907   s,@srcdir@,$ac_srcdir,;t t
7908 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
7909   s,@top_srcdir@,$ac_top_srcdir,;t t
7910 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7911 + s,@builddir@,$ac_builddir,;t t
7912 + s,@abs_builddir@,$ac_abs_builddir,;t t
7913 + s,@top_builddir@,$ac_top_builddir,;t t
7914 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7915   s,@INSTALL@,$ac_INSTALL,;t t
7916   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7917    rm -f $tmp/stdin
# Line 6217 | Line 7923 | EOF
7923    fi
7924  
7925   done
7926 < EOF
7927 < cat >>$CONFIG_STATUS <<\EOF
7926 > _ACEOF
7927 > cat >>$CONFIG_STATUS <<\_ACEOF
7928  
7929   #
7930   # CONFIG_HEADER section.
# Line 6250 | Line 7956 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
7956    * )   ac_file_in=$ac_file.in ;;
7957    esac
7958  
7959 <  test x"$ac_file" != x- && { echo "$as_me:6253: creating $ac_file" >&5
7959 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7960   echo "$as_me: creating $ac_file" >&6;}
7961  
7962    # First look for the input files in the build tree, otherwise in the
# Line 6261 | Line 7967 | echo "$as_me: creating $ac_file" >&6;}
7967        -) echo $tmp/stdin ;;
7968        [\\/$]*)
7969           # Absolute (can't be DOS-style, as IFS=:)
7970 <         test -f "$f" || { { echo "$as_me:6264: error: cannot find input file: $f" >&5
7970 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7971   echo "$as_me: error: cannot find input file: $f" >&2;}
7972     { (exit 1); exit 1; }; }
7973           echo $f;;
# Line 6274 | Line 7980 | echo "$as_me: error: cannot find input file: $f" >&2;}
7980             echo $srcdir/$f
7981           else
7982             # /dev/null tree
7983 <           { { echo "$as_me:6277: error: cannot find input file: $f" >&5
7983 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7984   echo "$as_me: error: cannot find input file: $f" >&2;}
7985     { (exit 1); exit 1; }; }
7986           fi;;
# Line 6283 | Line 7989 | EOF
7989    # Remove the trailing spaces.
7990    sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7991  
7992 < EOF
7992 > _ACEOF
7993  
7994   # Transform confdefs.h into two sed scripts, `conftest.defines' and
7995   # `conftest.undefs', that substitutes the proper values into
# Line 6299 | Line 8005 | cat >confdef2sed.sed <<\EOF
8005   # `end' is used to avoid that the second main sed command (meant for
8006   # 0-ary CPP macros) applies to n-ary macro definitions.
8007   # See the Autoconf documentation for `clear'.
8008 < cat >confdef2sed.sed <<\EOF
8008 > cat >confdef2sed.sed <<\_ACEOF
8009   s/[\\&,]/\\&/g
8010   s,[\\$`],\\&,g
8011   t clear
8012   : clear
8013 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8013 > s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8014   t end
8015   s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8016   : end
8017 < EOF
8017 > _ACEOF
8018   # If some macros were called several times there might be several times
8019   # the same #defines, which is useless.  Nevertheless, we may not want to
8020   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6319 | Line 8025 | cat >>conftest.undefs <<\EOF
8025   # This sed command replaces #undef with comments.  This is necessary, for
8026   # example, in the case of _POSIX_SOURCE, which is predefined and required
8027   # on some systems where configure will not decide to define it.
8028 < cat >>conftest.undefs <<\EOF
8028 > cat >>conftest.undefs <<\_ACEOF
8029   s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8030 < EOF
8030 > _ACEOF
8031  
8032   # Break up conftest.defines because some shells have a limit on the size
8033   # of here documents, and old seds have small limits too (100 cmds).
8034   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8035 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8035 > echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8036   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8037   echo '  :' >>$CONFIG_STATUS
8038   rm -f conftest.tail
# Line 6350 | Line 8056 | echo '  fi # egrep' >>$CONFIG_STATUS
8056    mv conftest.tail conftest.defines
8057   done
8058   rm -f conftest.defines
8059 < echo '  fi # egrep' >>$CONFIG_STATUS
8059 > echo '  fi # grep' >>$CONFIG_STATUS
8060   echo >>$CONFIG_STATUS
8061  
8062   # Break up conftest.undefs because some shells have a limit on the size
# Line 6378 | Line 8084 | cat >>$CONFIG_STATUS <<\EOF
8084   done
8085   rm -f conftest.undefs
8086  
8087 < cat >>$CONFIG_STATUS <<\EOF
8087 > cat >>$CONFIG_STATUS <<\_ACEOF
8088    # Let's still pretend it is `configure' which instantiates (i.e., don't
8089    # use $as_me), people would be surprised to read:
8090 <  #    /* config.h.  Generated automatically by config.status.  */
8090 >  #    /* config.h.  Generated by config.status.  */
8091    if test x"$ac_file" = x-; then
8092 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8092 >    echo "/* Generated by configure.  */" >$tmp/config.h
8093    else
8094 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8094 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8095    fi
8096    cat $tmp/in >>$tmp/config.h
8097    rm -f $tmp/in
8098    if test x"$ac_file" != x-; then
8099 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8100 <      { echo "$as_me:6394: $ac_file is unchanged" >&5
8099 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8100 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8101   echo "$as_me: $ac_file is unchanged" >&6;}
8102      else
8103 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8103 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8104 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8105           X"$ac_file" : 'X\(//\)[^/]' \| \
8106           X"$ac_file" : 'X\(//\)$' \| \
8107           X"$ac_file" : 'X\(/\)' \| \
# Line 6405 | Line 8112 | echo X"$ac_file" |
8112            /^X\(\/\/\)$/{ s//\1/; q; }
8113            /^X\(\/\).*/{ s//\1/; q; }
8114            s/.*/./; q'`
8115 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8116 <        { case "$ac_dir" in
8117 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8118 <  *)                      as_incr_dir=.;;
8119 < esac
8120 < as_dummy="$ac_dir"
8121 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8122 <  case $as_mkdir_dir in
8123 <    # Skip DOS drivespec
8124 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8125 <    *)
8126 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8127 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8128 <    ;;
8129 <  esac
8130 < done; }
8115 >      { if $as_mkdir_p; then
8116 >    mkdir -p "$ac_dir"
8117 >  else
8118 >    as_dir="$ac_dir"
8119 >    as_dirs=
8120 >    while test ! -d "$as_dir"; do
8121 >      as_dirs="$as_dir $as_dirs"
8122 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8123 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8124 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8125 >         X"$as_dir" : 'X\(//\)$' \| \
8126 >         X"$as_dir" : 'X\(/\)' \| \
8127 >         .     : '\(.\)' 2>/dev/null ||
8128 > echo X"$as_dir" |
8129 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8130 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8131 >          /^X\(\/\/\)$/{ s//\1/; q; }
8132 >          /^X\(\/\).*/{ s//\1/; q; }
8133 >          s/.*/./; q'`
8134 >    done
8135 >    test ! -n "$as_dirs" || mkdir $as_dirs
8136 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8137 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8138 >   { (exit 1); exit 1; }; }; }
8139  
6425      fi
8140        rm -f $ac_file
8141        mv $tmp/config.h $ac_file
8142      fi
# Line 6431 | Line 8145 | EOF
8145      rm -f $tmp/config.h
8146    fi
8147   done
8148 < EOF
8148 > _ACEOF
8149  
8150 < cat >>$CONFIG_STATUS <<\EOF
8150 > cat >>$CONFIG_STATUS <<\_ACEOF
8151  
8152   { (exit 0); exit 0; }
8153 < EOF
8153 > _ACEOF
8154   chmod +x $CONFIG_STATUS
8155   ac_clean_files=$ac_clean_files_save
8156  
8157 +
8158   # configure is writing to config.log, and then calls config.status.
8159   # config.status does its own redirection, appending to config.log.
8160   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6450 | Line 8165 | if test "$no_create" != yes; then
8165   # need to make the FD available again.
8166   if test "$no_create" != yes; then
8167    ac_cs_success=:
8168 +  ac_config_status_args=
8169 +  test "$silent" = yes &&
8170 +    ac_config_status_args="$ac_config_status_args --quiet"
8171    exec 5>/dev/null
8172 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8172 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8173    exec 5>>config.log
8174    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8175    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines