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 949 by chuckv, Thu Jan 15 21:57:10 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.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10 + ## --------------------- ##
11 + ## M4sh Initialization.  ##
12 + ## --------------------- ##
13  
14   # Be Bourne compatible
15   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16    emulate sh
17    NULLCMD=:
18 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 +  # is contrary to our usage.  Disable this feature.
20 +  alias -g '${1+"$@"}'='"$@"'
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26 + # Support unset when possible.
27 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 +  as_unset=unset
29 + else
30 +  as_unset=false
31 + fi
32 +
33 +
34 + # Work around bugs in pre-3.0 UWIN ksh.
35 + $as_unset ENV MAIL MAILPATH
36 + PS1='$ '
37 + PS2='> '
38 + PS4='+ '
39 +
40 + # NLS nuisances.
41 + for as_var in \
42 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 +  LC_TELEPHONE LC_TIME
45 + do
46 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 +    eval $as_var=C; export $as_var
48 +  else
49 +    $as_unset $as_var
50 +  fi
51 + done
52 +
53 + # Required to use basename.
54 + if expr a : '\(a\)' >/dev/null 2>&1; then
55 +  as_expr=expr
56 + else
57 +  as_expr=false
58 + fi
59 +
60 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 +  as_basename=basename
62 + else
63 +  as_basename=false
64 + fi
65 +
66 +
67   # Name of the executable.
68 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
68 > as_me=`$as_basename "$0" ||
69 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 >         X"$0" : 'X\(//\)$' \| \
71 >         X"$0" : 'X\(/\)$' \| \
72 >         .     : '\(.\)' 2>/dev/null ||
73 > echo X/"$0" |
74 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
76 >          /^X\/\(\/\).*/{ s//\1/; q; }
77 >          s/.*/./; q'`
78  
79 +
80 + # PATH needs CR, and LINENO needs CR and PATH.
81 + # Avoid depending upon Character Ranges.
82 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 + as_cr_digits='0123456789'
86 + as_cr_alnum=$as_cr_Letters$as_cr_digits
87 +
88 + # The user is always right.
89 + if test "${PATH_SEPARATOR+set}" != set; then
90 +  echo "#! /bin/sh" >conf$$.sh
91 +  echo  "exit 0"   >>conf$$.sh
92 +  chmod +x conf$$.sh
93 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 +    PATH_SEPARATOR=';'
95 +  else
96 +    PATH_SEPARATOR=:
97 +  fi
98 +  rm -f conf$$.sh
99 + fi
100 +
101 +
102 +  as_lineno_1=$LINENO
103 +  as_lineno_2=$LINENO
104 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
106 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107 +  # Find who we are.  Look in the path if we contain no path at all
108 +  # relative or not.
109 +  case $0 in
110 +    *[\\/]* ) as_myself=$0 ;;
111 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 + for as_dir in $PATH
113 + do
114 +  IFS=$as_save_IFS
115 +  test -z "$as_dir" && as_dir=.
116 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 + done
118 +
119 +       ;;
120 +  esac
121 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 +  # in which case we are not to be found in the path.
123 +  if test "x$as_myself" = x; then
124 +    as_myself=$0
125 +  fi
126 +  if test ! -f "$as_myself"; then
127 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 +   { (exit 1); exit 1; }; }
129 +  fi
130 +  case $CONFIG_SHELL in
131 +  '')
132 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 + do
135 +  IFS=$as_save_IFS
136 +  test -z "$as_dir" && as_dir=.
137 +  for as_base in sh bash ksh sh5; do
138 +         case $as_dir in
139 +         /*)
140 +           if ("$as_dir/$as_base" -c '
141 +  as_lineno_1=$LINENO
142 +  as_lineno_2=$LINENO
143 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 +             CONFIG_SHELL=$as_dir/$as_base
149 +             export CONFIG_SHELL
150 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 +           fi;;
152 +         esac
153 +       done
154 + done
155 + ;;
156 +  esac
157 +
158 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 +  # uniformly replaced by the line number.  The first 'sed' inserts a
160 +  # line-number line before each line; the second 'sed' does the real
161 +  # work.  The second script uses 'N' to pair each line-number line
162 +  # with the numbered line, and appends trailing '-' during
163 +  # substitution so that $LINENO is not a special case at line end.
164 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 +  sed '=' <$as_myself |
167 +    sed '
168 +      N
169 +      s,$,-,
170 +      : loop
171 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 +      t loop
173 +      s,-$,,
174 +      s,^['$as_cr_digits']*\n,,
175 +    ' >$as_me.lineno &&
176 +  chmod +x $as_me.lineno ||
177 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 +   { (exit 1); exit 1; }; }
179 +
180 +  # Don't try to exec as it changes $[0], causing all sort of problems
181 +  # (the dirname of $[0] is not the place where we might find the
182 +  # original and so on.  Autoconf is especially sensible to this).
183 +  . ./$as_me.lineno
184 +  # Exit status is that of the last command.
185 +  exit
186 + }
187 +
188 +
189 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 +  *c*,-n*) ECHO_N= ECHO_C='
191 + ' ECHO_T='      ' ;;
192 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 + esac
195 +
196   if expr a : '\(a\)' >/dev/null 2>&1; then
197    as_expr=expr
198   else
# Line 44 | Line 217 | 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 >  test -d ./-p && rmdir ./-p
224 >  as_mkdir_p=false
225   fi
226  
227 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
227 > as_executable_p="test -f"
228  
229 + # Sed expression to map a string onto a valid CPP name.
230 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 +
232 + # Sed expression to map a string onto a valid variable name.
233 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 +
235 +
236   # IFS
237   # We need space, tab and new line, in precisely that order.
238   as_nl='
# Line 70 | Line 240 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
240   IFS="   $as_nl"
241  
242   # CDPATH.
243 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 > $as_unset CDPATH
244  
245 +
246   # Name of the host.
247   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248   # so uname gets run too.
# Line 83 | Line 254 | cross_compiling=no
254   # Initializations.
255   #
256   ac_default_prefix=/usr/local
257 + ac_config_libobj_dir=.
258   cross_compiling=no
259   subdirs=
260 < MFLAGS= MAKEFLAGS=
260 > MFLAGS=
261 > MAKEFLAGS=
262   SHELL=${CONFIG_SHELL-/bin/sh}
263  
264   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 266 | SHELL=${CONFIG_SHELL-/bin/sh}
266   # only ac_max_sed_lines should be used.
267   : ${ac_max_here_lines=38}
268  
269 < # Avoid depending upon Character Ranges.
270 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
271 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
272 < ac_cr_09='0123456789'
273 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
269 > # Identity of this package.
270 > PACKAGE_NAME='OOPSE'
271 > PACKAGE_TARNAME='oopse'
272 > PACKAGE_VERSION='1.0'
273 > PACKAGE_STRING='OOPSE 1.0'
274 > PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
276   ac_unique_file="src/oopse.cpp"
277   ac_default_prefix="/usr/local"
278 + # Factoring default headers for most tests.
279 + ac_includes_default="\
280 + #include <stdio.h>
281 + #if HAVE_SYS_TYPES_H
282 + # include <sys/types.h>
283 + #endif
284 + #if HAVE_SYS_STAT_H
285 + # include <sys/stat.h>
286 + #endif
287 + #if STDC_HEADERS
288 + # include <stdlib.h>
289 + # include <stddef.h>
290 + #else
291 + # if HAVE_STDLIB_H
292 + #  include <stdlib.h>
293 + # endif
294 + #endif
295 + #if HAVE_STRING_H
296 + # if !STDC_HEADERS && HAVE_MEMORY_H
297 + #  include <memory.h>
298 + # endif
299 + # include <string.h>
300 + #endif
301 + #if HAVE_STRINGS_H
302 + # include <strings.h>
303 + #endif
304 + #if HAVE_INTTYPES_H
305 + # include <inttypes.h>
306 + #else
307 + # if HAVE_STDINT_H
308 + #  include <stdint.h>
309 + # endif
310 + #endif
311 + #if HAVE_UNISTD_H
312 + # include <unistd.h>
313 + #endif"
314  
315 + ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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'
316 + ac_subst_files=''
317 +
318   # Initialize some variables set by options.
319   ac_init_help=
320   ac_init_version=false
# Line 144 | Line 353 | mandir='${prefix}/man'
353   infodir='${prefix}/info'
354   mandir='${prefix}/man'
355  
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'
153
356   ac_prev=
357   for ac_option
358   do
# Line 196 | Line 398 | do
398    -disable-* | --disable-*)
399      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400      # Reject names that are not valid shell variable names.
401 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
401 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 407 | do
407    -enable-* | --enable-*)
408      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409      # Reject names that are not valid shell variable names.
410 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
410 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 485 | do
485      with_fp=no ;;
486  
487    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 <  | --no-cr | --no-c)
488 >  | --no-cr | --no-c | -n)
489      no_create=yes ;;
490  
491    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 589 | do
589    -with-* | --with-*)
590      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591      # Reject names that are not valid shell variable names.
592 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
592 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593        { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 602 | do
602    -without-* | --without-*)
603      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604      # Reject names that are not valid shell variable names.
605 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
605 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606        { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 634 | Try \`$0 --help' for more information." >&2
634    *=*)
635      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636      # Reject names that are not valid shell variable names.
637 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
637 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 644 | Try \`$0 --help' for more information." >&2
644    *)
645      # FIXME: should be removed in autoconf 3.0.
646      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
647 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650      ;;
# Line 457 | Line 659 | for ac_var in bindir sbindir libexecdir datadir syscon
659   fi
660  
661   # Be sure to have absolute paths.
662 + for ac_var in exec_prefix prefix
663 + do
664 +  eval ac_val=$`echo $ac_var`
665 +  case $ac_val in
666 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 +   { (exit 1); exit 1; }; };;
669 +  esac
670 + done
671 +
672 + # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
678      [\\/$]* | ?:[\\/]* ) ;;
679 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
679 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681    esac
682   done
683  
684   # There might be people who depend on the old broken behavior: `$host'
685   # used to hold the argument of --host etc.
686 + # FIXME: To remove some day.
687   build=$build_alias
688   host=$host_alias
689   target=$target_alias
690  
691 < # FIXME: should be removed in autoconf 3.0.
691 > # FIXME: To remove some day.
692   if test "x$host_alias" != x; then
693    if test "x$build_alias" = x; then
694      cross_compiling=maybe
# Line 492 | Line 704 | test "$silent" = yes && exec 6>/dev/null
704  
705   test "$silent" = yes && exec 6>/dev/null
706  
707 +
708   # Find the source files, if location was not specified.
709   if test -z "$srcdir"; then
710    ac_srcdir_defaulted=yes
711    # Try the directory containing this script, then its parent.
712 <  ac_prog=$0
713 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
714 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
713 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718 > echo X"$0" |
719 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 >          /^X\(\/\/\)$/{ s//\1/; q; }
722 >          /^X\(\/\).*/{ s//\1/; q; }
723 >          s/.*/./; q'`
724    srcdir=$ac_confdir
725    if test ! -r $srcdir/$ac_unique_file; then
726      srcdir=..
# Line 508 | Line 730 | if test ! -r $srcdir/$ac_unique_file; then
730   fi
731   if test ! -r $srcdir/$ac_unique_file; then
732    if test "$ac_srcdir_defaulted" = yes; then
733 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
733 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735    else
736 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
736 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738    fi
739   fi
740 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 +   { (exit 1); exit 1; }; }
743   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744   ac_env_build_alias_set=${build_alias+set}
745   ac_env_build_alias_value=$build_alias
# Line 560 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   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
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 575 | Line 796 | if test "$ac_init_help" = "long"; then
796   if test "$ac_init_help" = "long"; then
797    # Omit some internal or obsolete options to make the list less imposing.
798    # This message is too long to be a string in the A/UX 3.1 sh.
799 <  cat <<EOF
799 >  cat <<_ACEOF
800   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
801  
802   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 817 | EOF
817    -n, --no-create         do not create output files
818        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
819  
820 < EOF
820 > _ACEOF
821  
822 <  cat <<EOF
822 >  cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 625 | Line 846 | EOF
846    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
847    --infodir=DIR          info documentation [PREFIX/info]
848    --mandir=DIR           man documentation [PREFIX/man]
849 < EOF
849 > _ACEOF
850  
851 <  cat <<\EOF
851 >  cat <<\_ACEOF
852  
853   System types:
854    --build=BUILD     configure for building on BUILD [guessed]
855 <  --host=HOST       build programs to run on HOST [BUILD]
856 < EOF
855 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856 > _ACEOF
857   fi
858  
859   if test -n "$ac_init_help"; then
860    case $ac_init_help in
861       short | recursive ) echo "Configuration of OOPSE 1.0:";;
862     esac
863 <  cat <<\EOF
863 >  cat <<\_ACEOF
864  
865   Optional Features:
866    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 650 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
874 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
875    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
876 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
876 >  --with-mpi-inc=dir  give the path for MPI-include-files MPI_DIR/include
877    --with-sprng_prefix=PREFIX
878                            Prefix where SPRNG is installed
879    --with-sprng-libdir=PREFIX  SPRNG library directory
880    --with-sprng-include=PREFIX
881                            SPRNG include directory
882 <  --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
882 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
883  
884   Some influential environment variables:
885    CC          C compiler command
# Line 673 | Line 892 | Some influential environment variables:
892    CXXFLAGS    C++ compiler flags
893    F90         Fortran 90 compiler command
894    F90FLAGS    Fortran 90 compiler flags
676  MPIF77      MPI Fortran compiler command
895    CPP         C preprocessor
896  
897   Use these variables to override the choices made by `configure' or to help
898   it to find libraries and programs with nonstandard names/locations.
899  
900   Report bugs to <gezelter@nd.edu>.
901 < EOF
901 > _ACEOF
902   fi
903  
904   if test "$ac_init_help" = "recursive"; then
905    # If there are subdirs, report their specific --help.
906    ac_popdir=`pwd`
907 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
908 <    cd $ac_subdir
909 <    # A "../" for each directory in /$ac_subdir.
692 <    ac_dots=`echo $ac_subdir |
693 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
907 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
908 >    test -d $ac_dir || continue
909 >    ac_builddir=.
910  
911 <    case $srcdir in
912 <    .) # No --srcdir option.  We are building in place.
913 <      ac_sub_srcdir=$srcdir ;;
914 <    [\\/]* | ?:[\\/]* ) # Absolute path.
915 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
916 <    *) # Relative path.
917 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
702 <    esac
911 > if test "$ac_dir" != .; then
912 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
913 >  # A "../" for each directory in $ac_dir_suffix.
914 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
915 > else
916 >  ac_dir_suffix= ac_top_builddir=
917 > fi
918  
919 <    # Check for guested configure; otherwise get Cygnus style configure.
920 <    if test -f $ac_sub_srcdir/configure.gnu; then
921 <      echo
922 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
923 <    elif test -f $ac_sub_srcdir/configure; then
919 > case $srcdir in
920 >  .)  # No --srcdir option.  We are building in place.
921 >    ac_srcdir=.
922 >    if test -z "$ac_top_builddir"; then
923 >       ac_top_srcdir=.
924 >    else
925 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
926 >    fi ;;
927 >  [\\/]* | ?:[\\/]* )  # Absolute path.
928 >    ac_srcdir=$srcdir$ac_dir_suffix;
929 >    ac_top_srcdir=$srcdir ;;
930 >  *) # Relative path.
931 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 > esac
934 >
935 > # Do not use `cd foo && pwd` to compute absolute paths, because
936 > # the directories may not exist.
937 > case `pwd` in
938 > .) ac_abs_builddir="$ac_dir";;
939 > *)
940 >  case "$ac_dir" in
941 >  .) ac_abs_builddir=`pwd`;;
942 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 >  esac;;
945 > esac
946 > case $ac_abs_builddir in
947 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 > *)
949 >  case ${ac_top_builddir}. in
950 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
951 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 >  esac;;
954 > esac
955 > case $ac_abs_builddir in
956 > .) ac_abs_srcdir=$ac_srcdir;;
957 > *)
958 >  case $ac_srcdir in
959 >  .) ac_abs_srcdir=$ac_abs_builddir;;
960 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 >  esac;;
963 > esac
964 > case $ac_abs_builddir in
965 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 > *)
967 >  case $ac_top_srcdir in
968 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 >  esac;;
972 > esac
973 >
974 >    cd $ac_dir
975 >    # Check for guested configure; otherwise get Cygnus style configure.
976 >    if test -f $ac_srcdir/configure.gnu; then
977        echo
978 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
979 <    elif test -f $ac_sub_srcdir/configure.ac ||
712 <           test -f $ac_sub_srcdir/configure.in; then
978 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
979 >    elif test -f $ac_srcdir/configure; then
980        echo
981 +      $SHELL $ac_srcdir/configure  --help=recursive
982 +    elif test -f $ac_srcdir/configure.ac ||
983 +           test -f $ac_srcdir/configure.in; then
984 +      echo
985        $ac_configure --help
986      else
987 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
987 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988      fi
989      cd $ac_popdir
990    done
# Line 721 | Line 992 | if $ac_init_version; then
992  
993   test -n "$ac_init_help" && exit 0
994   if $ac_init_version; then
995 <  cat <<\EOF
995 >  cat <<\_ACEOF
996   OOPSE configure 1.0
997 < generated by GNU Autoconf 2.50
997 > generated by GNU Autoconf 2.59
998  
999 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
729 < Free Software Foundation, Inc.
999 > Copyright (C) 2003 Free Software Foundation, Inc.
1000   This configure script is free software; the Free Software Foundation
1001   gives unlimited permission to copy, distribute and modify it.
1002 < EOF
1002 > _ACEOF
1003    exit 0
1004   fi
1005   exec 5>config.log
1006 < cat >&5 <<EOF
1006 > cat >&5 <<_ACEOF
1007   This file contains any messages produced by compilers while
1008   running configure, to aid debugging if configure makes a mistake.
1009  
1010   It was created by OOPSE $as_me 1.0, which was
1011 < generated by GNU Autoconf 2.50.  Invocation command line was
1011 > generated by GNU Autoconf 2.59.  Invocation command line was
1012  
1013    $ $0 $@
1014  
1015 < EOF
1015 > _ACEOF
1016   {
1017   cat <<_ASUNAME
1018 < ## ---------- ##
1019 < ## Platform.  ##
1020 < ## ---------- ##
1018 > ## --------- ##
1019 > ## Platform. ##
1020 > ## --------- ##
1021  
1022   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 766 | Line 1036 | PATH = $PATH
1036   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038  
769 PATH = $PATH
770
1039   _ASUNAME
1040 +
1041 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 + for as_dir in $PATH
1043 + do
1044 +  IFS=$as_save_IFS
1045 +  test -z "$as_dir" && as_dir=.
1046 +  echo "PATH: $as_dir"
1047 + done
1048 +
1049   } >&5
1050  
1051 < cat >&5 <<EOF
775 < ## ------------ ##
776 < ## Core tests.  ##
777 < ## ------------ ##
1051 > cat >&5 <<_ACEOF
1052  
779 EOF
1053  
1054 + ## ----------- ##
1055 + ## Core tests. ##
1056 + ## ----------- ##
1057 +
1058 + _ACEOF
1059 +
1060 +
1061   # Keep a trace of the command line.
1062   # Strip out --no-create and --no-recursion so they do not pile up.
1063 + # Strip out --silent because we don't want to record it for future runs.
1064   # Also quote any args containing shell meta-characters.
1065 + # Make two passes to allow for proper duplicate-argument suppression.
1066   ac_configure_args=
1067 + ac_configure_args0=
1068 + ac_configure_args1=
1069   ac_sep=
1070 < for ac_arg
1070 > ac_must_keep_next=false
1071 > for ac_pass in 1 2
1072   do
1073 <  case $ac_arg in
1074 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 <  | --no-cr | --no-c) ;;
1076 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1078 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1080 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1081 <    ac_sep=" " ;;
1082 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1083 <     ac_sep=" " ;;
1084 <  esac
1085 <  # Get rid of the leading space.
1073 >  for ac_arg
1074 >  do
1075 >    case $ac_arg in
1076 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 >    | -silent | --silent | --silen | --sile | --sil)
1079 >      continue ;;
1080 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 >    esac
1083 >    case $ac_pass in
1084 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 >    2)
1086 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 >      if test $ac_must_keep_next = true; then
1088 >        ac_must_keep_next=false # Got value, back to normal.
1089 >      else
1090 >        case $ac_arg in
1091 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 >          | -with-* | --with-* | -without-* | --without-* | --x)
1095 >            case "$ac_configure_args0 " in
1096 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 >            esac
1098 >            ;;
1099 >          -* ) ac_must_keep_next=true ;;
1100 >        esac
1101 >      fi
1102 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 >      # Get rid of the leading space.
1104 >      ac_sep=" "
1105 >      ;;
1106 >    esac
1107 >  done
1108   done
1109 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1111  
1112   # When interrupted or exit'd, cleanup temporary files, and complete
1113   # config.log.  We remove comments because anyway the quotes in there
1114   # would cause problems or look ugly.
1115 + # WARNING: Be sure not to use single quotes in there, as some shells,
1116 + # such as our DU 5.0 friend, will then `close' the trap.
1117   trap 'exit_status=$?
1118    # Save into config.log some information that might help in debugging.
1119 <  echo >&5
1120 <  echo "## ----------------- ##" >&5
1121 <  echo "## Cache variables.  ##" >&5
1122 <  echo "## ----------------- ##" >&5
1123 <  echo >&5
1124 <  # The following way of writing the cache mishandles newlines in values,
1119 >  {
1120 >    echo
1121 >
1122 >    cat <<\_ASBOX
1123 > ## ---------------- ##
1124 > ## Cache variables. ##
1125 > ## ---------------- ##
1126 > _ASBOX
1127 >    echo
1128 >    # The following way of writing the cache mishandles newlines in values,
1129   {
1130    (set) 2>&1 |
1131      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132      *ac_space=\ *)
1133        sed -n \
1134 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136        ;;
1137      *)
1138        sed -n \
1139 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140        ;;
1141      esac;
1142 < } >&5
1143 <  sed "/^$/d" confdefs.h >conftest.log
1144 <  if test -s conftest.log; then
1145 <    echo >&5
1146 <    echo "## ------------ ##" >&5
1147 <    echo "## confdefs.h.  ##" >&5
1148 <    echo "## ------------ ##" >&5
1149 <    echo >&5
1150 <    cat conftest.log >&5
1151 <  fi
1152 <  (echo; echo) >&5
1153 <  test "$ac_signal" != 0 &&
1154 <    echo "$as_me: caught signal $ac_signal" >&5
1155 <  echo "$as_me: exit $exit_status" >&5
1156 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1142 > }
1143 >    echo
1144 >
1145 >    cat <<\_ASBOX
1146 > ## ----------------- ##
1147 > ## Output variables. ##
1148 > ## ----------------- ##
1149 > _ASBOX
1150 >    echo
1151 >    for ac_var in $ac_subst_vars
1152 >    do
1153 >      eval ac_val=$`echo $ac_var`
1154 >      echo "$ac_var='"'"'$ac_val'"'"'"
1155 >    done | sort
1156 >    echo
1157 >
1158 >    if test -n "$ac_subst_files"; then
1159 >      cat <<\_ASBOX
1160 > ## ------------- ##
1161 > ## Output files. ##
1162 > ## ------------- ##
1163 > _ASBOX
1164 >      echo
1165 >      for ac_var in $ac_subst_files
1166 >      do
1167 >        eval ac_val=$`echo $ac_var`
1168 >        echo "$ac_var='"'"'$ac_val'"'"'"
1169 >      done | sort
1170 >      echo
1171 >    fi
1172 >
1173 >    if test -s confdefs.h; then
1174 >      cat <<\_ASBOX
1175 > ## ----------- ##
1176 > ## confdefs.h. ##
1177 > ## ----------- ##
1178 > _ASBOX
1179 >      echo
1180 >      sed "/^$/d" confdefs.h | sort
1181 >      echo
1182 >    fi
1183 >    test "$ac_signal" != 0 &&
1184 >      echo "$as_me: caught signal $ac_signal"
1185 >    echo "$as_me: exit $exit_status"
1186 >  } >&5
1187 >  rm -f core *.core &&
1188 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189      exit $exit_status
1190       ' 0
1191   for ac_signal in 1 2 13 15; do
1192 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1192 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193   done
1194   ac_signal=0
1195  
# Line 851 | Line 1198 | echo >confdefs.h
1198   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199   echo >confdefs.h
1200  
1201 + # Predefined preprocessor variables.
1202 +
1203 + cat >>confdefs.h <<_ACEOF
1204 + #define PACKAGE_NAME "$PACKAGE_NAME"
1205 + _ACEOF
1206 +
1207 +
1208 + cat >>confdefs.h <<_ACEOF
1209 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 + _ACEOF
1211 +
1212 +
1213 + cat >>confdefs.h <<_ACEOF
1214 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 + _ACEOF
1216 +
1217 +
1218 + cat >>confdefs.h <<_ACEOF
1219 + #define PACKAGE_STRING "$PACKAGE_STRING"
1220 + _ACEOF
1221 +
1222 +
1223 + cat >>confdefs.h <<_ACEOF
1224 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 + _ACEOF
1226 +
1227 +
1228   # Let the site file select an alternate cache file if it wants to.
1229   # Prefer explicitly selected file to automatically selected ones.
1230   if test -z "$CONFIG_SITE"; then
# Line 862 | Line 1236 | for ac_site_file in $CONFIG_SITE; do
1236   fi
1237   for ac_site_file in $CONFIG_SITE; do
1238    if test -r "$ac_site_file"; then
1239 <    { echo "$as_me:865: loading site script $ac_site_file" >&5
1239 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240   echo "$as_me: loading site script $ac_site_file" >&6;}
1241 <    cat "$ac_site_file" >&5
1241 >    sed 's/^/| /' "$ac_site_file" >&5
1242      . "$ac_site_file"
1243    fi
1244   done
# Line 873 | Line 1247 | if test -r "$cache_file"; then
1247    # Some versions of bash will fail to source /dev/null (special
1248    # files actually), so we avoid doing that.
1249    if test -f "$cache_file"; then
1250 <    { echo "$as_me:876: loading cache $cache_file" >&5
1250 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251   echo "$as_me: loading cache $cache_file" >&6;}
1252      case $cache_file in
1253        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 881 | Line 1255 | else
1255      esac
1256    fi
1257   else
1258 <  { echo "$as_me:884: creating cache $cache_file" >&5
1258 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259   echo "$as_me: creating cache $cache_file" >&6;}
1260    >$cache_file
1261   fi
1262  
1263   # Check that the precious variables saved in the cache have kept the same
1264   # value.
1265 < ac_suggest_removing_cache=false
1265 > ac_cache_corrupted=false
1266   for ac_var in `(set) 2>&1 |
1267 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269    eval ac_new_set=\$ac_env_${ac_var}_set
1270    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271    eval ac_new_val="\$ac_env_${ac_var}_value"
1272    case $ac_old_set,$ac_new_set in
1273      set,)
1274 <      { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 <      ac_suggest_removing_cache=: ;;
1274 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 >      ac_cache_corrupted=: ;;
1277      ,set)
1278 <      { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
1279 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1280 <      ac_suggest_removing_cache=: ;;
1278 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 >      ac_cache_corrupted=: ;;
1281      ,);;
1282      *)
1283        if test "x$ac_old_val" != "x$ac_new_val"; then
1284 <        { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
1285 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1286 <        { echo "$as_me:912: WARNING:   former value:  $ac_old_val" >&5
1287 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1288 <        { echo "$as_me:914: WARNING:   current value: $ac_new_val" >&5
1289 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1290 <        ac_suggest_removing_cache=:
1284 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1288 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289 > echo "$as_me:   current value: $ac_new_val" >&2;}
1290 >        ac_cache_corrupted=:
1291        fi;;
1292    esac
1293 +  # Pass precious variables to config.status.
1294 +  if test "$ac_new_set" = set; then
1295 +    case $ac_new_val in
1296 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 +    *) ac_arg=$ac_var=$ac_new_val ;;
1299 +    esac
1300 +    case " $ac_configure_args " in
1301 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1302 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 +    esac
1304 +  fi
1305   done
1306 < if $ac_suggest_removing_cache; then
1307 <  { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
1308 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1309 <  { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
1310 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1306 > if $ac_cache_corrupted; then
1307 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 >   { (exit 1); exit 1; }; }
1312   fi
1313  
1314   ac_ext=c
# Line 930 | Line 1317 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing;
1317   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319  
933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
934  *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
1320  
1321 +
1322 +
1323 +
1324 +
1325 +
1326 +
1327 +
1328 +
1329 +
1330 +
1331 +
1332 +
1333 +
1334 +
1335 +
1336 +
1337 +
1338 +
1339 +
1340 +
1341 +
1342 +
1343 +
1344 +
1345 +
1346   ac_aux_dir=
1347   for ac_dir in ac-tools $srcdir/ac-tools; do
1348    if test -f $ac_dir/install-sh; then
# Line 968 | Line 1360 | if test -z "$ac_aux_dir"; then
1360    fi
1361   done
1362   if test -z "$ac_aux_dir"; then
1363 <  { { echo "$as_me:971: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1363 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1364   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1365     { (exit 1); exit 1; }; }
1366   fi
# Line 976 | Line 1368 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1368   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1369   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1370  
1371 +
1372   # This file is part of Autoconf.                       -*- Autoconf -*-
1373   # Programming languages support.
1374   # Copyright 2000, 2001
# Line 1026 | Line 1419 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1419   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1420   # many others).
1421  
1422 +
1423   # Table of Contents:
1424   #
1425   # 1. Language selection
# Line 1061 | Line 1455 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1455   # ACTION-IF-NOT-FOUND.
1456   # _AC_LIST_MEMBER_IF
1457  
1458 +
1459 +
1460   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1461   # -------------------------------------------------
1462   #
# Line 1091 | Line 1487 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1487   # FIXME: Get rid of this macro.
1488   # _AC_LINKER_OPTION
1489  
1490 +
1491 +
1492   ## ----------------------- ##
1493   ## 1. Language selection.  ##
1494   ## ----------------------- ##
# Line 1102 | Line 1500 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1500   # AC_LANG(Fortran 90)
1501   # -------------------
1502  
1503 +
1504 +
1505   # _AC_LANG_ABBREV(Fortran 90)
1506   # ---------------------------
1507  
1508 +
1509 +
1510   # ----------------------------- #
1511   # 1c. The Fortran 95 language.  #
1512   # ----------------------------- #
# Line 1112 | Line 1514 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1514   # AC_LANG(Fortran 95)
1515   # -------------------
1516  
1517 +
1518 +
1519   # _AC_LANG_ABBREV(Fortran 95)
1520   # ---------------------------
1521  
1522 +
1523 +
1524   ## ---------------------- ##
1525   ## 2.Producing programs.  ##
1526   ## ---------------------- ##
# Line 1126 | Line 1532 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1532   # AC_LANG_SOURCE(Fortran 90)(BODY)
1533   # --------------------------------
1534  
1535 +
1536 +
1537   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1538   # -----------------------------------------------
1539  
1540 +
1541   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1542   # --------------------------------------------
1543  
1544 +
1545 +
1546   # ------------------------ #
1547   # 2c. Fortran 95 sources.  #
1548   # ------------------------ #
# Line 1139 | Line 1550 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1550   # AC_LANG_SOURCE(Fortran 95)(BODY)
1551   # --------------------------------
1552  
1553 +
1554   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1555   # -----------------------------------------------
1556  
1557 +
1558   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1559   # --------------------------------------------
1560  
1561 +
1562 +
1563   ## -------------------------------------------- ##
1564   ## 3. Looking for Compilers and Preprocessors.  ##
1565   ## -------------------------------------------- ##
# Line 1153 | Line 1568 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1568   # 3b. The Fortran 90 compiler.  #
1569   # ----------------------------- #
1570  
1571 +
1572   # AC_LANG_PREPROC(Fortran 90)
1573   # ---------------------------
1574   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1575 +
1576 +
1577  
1578   # AC_LANG_COMPILER(Fortran 90)
1579   # ----------------------------
1580   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1581   # AC_REQUIRE'able.
1582  
1583 +
1584 +
1585   # AC_PROG_F90([COMPILERS...])
1586   # ---------------------------
1587   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1178 | Line 1598 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1598   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1599   # AC_PROG_F90
1600  
1601 +
1602   # ----------------------------- #
1603   # 3c. The Fortran 95 compiler.  #
1604   # ----------------------------- #
1605  
1606 +
1607   # AC_LANG_PREPROC(Fortran 95)
1608   # ---------------------------
1609   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1610  
1611 +
1612 +
1613   # AC_LANG_COMPILER(Fortran 95)
1614   # ----------------------------
1615   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1616   # AC_REQUIRE'able.
1617  
1618 +
1619 +
1620   # AC_PROG_F95([COMPILERS...])
1621   # ---------------------------
1622   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1204 | Line 1630 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1630   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1631   # AC_PROG_F95
1632  
1633 +
1634   ## ------------------------------- ##
1635   ## 4. Compilers' characteristics.  ##
1636   ## ------------------------------- ##
1637  
1638 +
1639   # ---------------------------------------- #
1640   # 4b. Fortan 90 compiler characteristics.  #
1641   # ---------------------------------------- #
1642  
1643 +
1644   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1645   # -------------------------------------------------
1646   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1222 | Line 1651 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1651   # space-separated items.
1652   # _AC_PROG_F90_V_OUTPUT
1653  
1654 +
1655   # _AC_PROG_F90_V
1656   # --------------
1657   #
# Line 1231 | Line 1661 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1661   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1662   # _AC_PROG_F90_V
1663  
1664 +
1665   # AC_F90_LIBRARY_LDFLAGS
1666   # ----------------------
1667   #
# Line 1258 | Line 1689 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1689   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1690   # AC_F90_LIBRARY_LDFLAGS
1691  
1692 +
1693   # _AC_F90_NAME_MANGLING
1694   # ---------------------
1695   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1277 | Line 1709 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1709  
1710   # The replacement is empty.
1711  
1712 +
1713 +
1714   # AC_F90_WRAPPERS
1715   # ---------------
1716   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1285 | Line 1719 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1719   # scheme used by the Fortran 90 compiler.
1720   # AC_F90_WRAPPERS
1721  
1722 +
1723   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1724   # ------------------------------------
1725   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1292 | Line 1727 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1727   # argument is not supplied, it defaults to NAME.
1728   # AC_F90_FUNC
1729  
1730 +
1731   # ---------------------------------------- #
1732   # 4c. Fortan 95 compiler characteristics.  #
1733   # ---------------------------------------- #
1734  
1735 +
1736   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1737   # -------------------------------------------------
1738   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1306 | Line 1743 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1743   # space-separated items.
1744   # _AC_PROG_F95_V_OUTPUT
1745  
1746 +
1747   # _AC_PROG_F95_V
1748   # --------------
1749   #
# Line 1315 | Line 1753 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1753   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1754   # _AC_PROG_F95_V
1755  
1756 +
1757   # AC_F95_LIBRARY_LDFLAGS
1758   # ----------------------
1759   #
# Line 1342 | Line 1781 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1781   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1782   # AC_F95_LIBRARY_LDFLAGS
1783  
1784 +
1785   # _AC_F95_NAME_MANGLING
1786   # ---------------------
1787   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1361 | Line 1801 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1801  
1802   # The replacement is empty.
1803  
1804 +
1805 +
1806   # AC_F95_WRAPPERS
1807   # ---------------
1808   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1369 | Line 1811 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1811   # scheme used by the Fortran 95 compiler.
1812   # AC_F95_WRAPPERS
1813  
1814 +
1815   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1816   # ------------------------------------
1817   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1376 | Line 1819 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1819   # argument is not supplied, it defaults to NAME.
1820   # AC_F95_FUNC
1821  
1822 +
1823 +
1824 +
1825 +
1826 +
1827 +
1828 +
1829 +
1830 +
1831 +
1832 +
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839 +
1840 +
1841 +
1842 +
1843 +
1844 +
1845 +
1846 +
1847 +
1848 +
1849 +
1850 +
1851 +
1852 +
1853 +
1854 +
1855 +
1856 +
1857 +
1858 +
1859 +
1860 +
1861 +
1862 +
1863 +
1864 +
1865 +
1866 +
1867 +
1868 +
1869 +
1870 +
1871 +
1872 +
1873   # set program name
1874   PROGNAME="oopse"
1875  
1876 +
1877   # there are two ways to do debugging.  One with the --enable-debug flag
1878   # and one using the DEBUG environment variable
1879  
# Line 1390 | Line 1885 | cat >>confdefs.h <<\EOF
1885   fi;
1886   if test "${DEBUG}"; then
1887  
1888 < cat >>confdefs.h <<\EOF
1888 > cat >>confdefs.h <<\_ACEOF
1889   #define debug 1
1890 < EOF
1890 > _ACEOF
1891  
1892    msg="$msg, debug mode"
1893   fi
1894  
1895 +
1896   # who am i
1897   # Make sure we can run config.sub.
1898   $ac_config_sub sun4 >/dev/null 2>&1 ||
1899 <  { { echo "$as_me:1403: error: cannot run $ac_config_sub" >&5
1899 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1900   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1901     { (exit 1); exit 1; }; }
1902  
1903 < echo "$as_me:1407: checking build system type" >&5
1903 > echo "$as_me:$LINENO: checking build system type" >&5
1904   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1905   if test "${ac_cv_build+set}" = set; then
1906    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1413 | Line 1909 | test -z "$ac_cv_build_alias" &&
1909   test -z "$ac_cv_build_alias" &&
1910    ac_cv_build_alias=`$ac_config_guess`
1911   test -z "$ac_cv_build_alias" &&
1912 <  { { echo "$as_me:1416: error: cannot guess build type; you must specify one" >&5
1912 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1913   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1914     { (exit 1); exit 1; }; }
1915   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1916 <  { { echo "$as_me:1420: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1917 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1916 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1917 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1918     { (exit 1); exit 1; }; }
1919  
1920   fi
1921 < echo "$as_me:1425: result: $ac_cv_build" >&5
1921 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1922   echo "${ECHO_T}$ac_cv_build" >&6
1923   build=$ac_cv_build
1924   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1925   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1926   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1927  
1928 < echo "$as_me:1432: checking host system type" >&5
1928 >
1929 > echo "$as_me:$LINENO: checking host system type" >&5
1930   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1931   if test "${ac_cv_host+set}" = set; then
1932    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1438 | Line 1935 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935   test -z "$ac_cv_host_alias" &&
1936    ac_cv_host_alias=$ac_cv_build_alias
1937   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1938 <  { { echo "$as_me:1441: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1938 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1939   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1940     { (exit 1); exit 1; }; }
1941  
1942   fi
1943 < echo "$as_me:1446: result: $ac_cv_host" >&5
1943 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1944   echo "${ECHO_T}$ac_cv_host" >&6
1945   host=$ac_cv_host
1946   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1947   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1948   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1949  
1950 +
1951 +
1952   ac_ext=c
1953   ac_cpp='$CPP $CPPFLAGS'
1954   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1460 | Line 1959 | echo "$as_me:1463: checking for $ac_word" >&5
1959    do
1960      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1962 < echo "$as_me:1463: checking for $ac_word" >&5
1962 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1963   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964   if test "${ac_cv_prog_CC+set}" = set; then
1965    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1468 | Line 1967 | else
1967    if test -n "$CC"; then
1968    ac_cv_prog_CC="$CC" # Let the user override the test.
1969   else
1970 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1971 < ac_dummy="$PATH"
1972 < for ac_dir in $ac_dummy; do
1973 <  IFS=$ac_save_IFS
1974 <  test -z "$ac_dir" && ac_dir=.
1975 <  $as_executable_p "$ac_dir/$ac_word" || continue
1976 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 < echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1978 < break
1970 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 > for as_dir in $PATH
1972 > do
1973 >  IFS=$as_save_IFS
1974 >  test -z "$as_dir" && as_dir=.
1975 >  for ac_exec_ext in '' $ac_executable_extensions; do
1976 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1978 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 >    break 2
1980 >  fi
1981   done
1982 + done
1983  
1984   fi
1985   fi
1986   CC=$ac_cv_prog_CC
1987   if test -n "$CC"; then
1988 <  echo "$as_me:1486: result: $CC" >&5
1988 >  echo "$as_me:$LINENO: result: $CC" >&5
1989   echo "${ECHO_T}$CC" >&6
1990   else
1991 <  echo "$as_me:1489: result: no" >&5
1991 >  echo "$as_me:$LINENO: result: no" >&5
1992   echo "${ECHO_T}no" >&6
1993   fi
1994  
# Line 1499 | Line 2001 | echo "$as_me:1502: checking for $ac_word" >&5
2001   do
2002    # Extract the first word of "$ac_prog", so it can be a program name with args.
2003   set dummy $ac_prog; ac_word=$2
2004 < echo "$as_me:1502: checking for $ac_word" >&5
2004 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2005   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1507 | Line 2009 | else
2009    if test -n "$ac_ct_CC"; then
2010    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2011   else
2012 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2013 < ac_dummy="$PATH"
2014 < for ac_dir in $ac_dummy; do
2015 <  IFS=$ac_save_IFS
2016 <  test -z "$ac_dir" && ac_dir=.
2017 <  $as_executable_p "$ac_dir/$ac_word" || continue
2018 < ac_cv_prog_ac_ct_CC="$ac_prog"
2019 < echo "$as_me:1517: found $ac_dir/$ac_word" >&5
2020 < break
2012 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 > for as_dir in $PATH
2014 > do
2015 >  IFS=$as_save_IFS
2016 >  test -z "$as_dir" && as_dir=.
2017 >  for ac_exec_ext in '' $ac_executable_extensions; do
2018 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 >    ac_cv_prog_ac_ct_CC="$ac_prog"
2020 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 >    break 2
2022 >  fi
2023   done
2024 + done
2025  
2026   fi
2027   fi
2028   ac_ct_CC=$ac_cv_prog_ac_ct_CC
2029   if test -n "$ac_ct_CC"; then
2030 <  echo "$as_me:1525: result: $ac_ct_CC" >&5
2030 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031   echo "${ECHO_T}$ac_ct_CC" >&6
2032   else
2033 <  echo "$as_me:1528: result: no" >&5
2033 >  echo "$as_me:$LINENO: result: no" >&5
2034   echo "${ECHO_T}no" >&6
2035   fi
2036  
# Line 1535 | Line 2040 | test -z "$CC" && { { echo "$as_me:1538: error: no acce
2040    CC=$ac_ct_CC
2041   fi
2042  
2043 < test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5
2044 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2043 >
2044 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2045 > See \`config.log' for more details." >&5
2046 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2047 > See \`config.log' for more details." >&2;}
2048     { (exit 1); exit 1; }; }
2049  
2050 + # Provide some information about the compiler.
2051 + echo "$as_me:$LINENO:" \
2052 +     "checking for C compiler version" >&5
2053 + ac_compiler=`set X $ac_compile; echo $2`
2054 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2055 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2056 +  ac_status=$?
2057 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 +  (exit $ac_status); }
2059 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2060 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2061 +  ac_status=$?
2062 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 +  (exit $ac_status); }
2064 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2065 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2066 +  ac_status=$?
2067 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 +  (exit $ac_status); }
2069 +
2070   cat >conftest.$ac_ext <<_ACEOF
2071 < #line 1543 "configure"
2072 < #include "confdefs.h"
2071 > /* confdefs.h.  */
2072 > _ACEOF
2073 > cat confdefs.h >>conftest.$ac_ext
2074 > cat >>conftest.$ac_ext <<_ACEOF
2075 > /* end confdefs.h.  */
2076  
2077   int
2078   main ()
# Line 1552 | Line 2083 | ac_clean_files="$ac_clean_files a.out a.exe"
2083   }
2084   _ACEOF
2085   ac_clean_files_save=$ac_clean_files
2086 < ac_clean_files="$ac_clean_files a.out a.exe"
2086 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087   # Try to create an executable without -o first, disregard a.out.
2088 < # It will help us diagnose broken compiler, and finding out an intuition
2088 > # It will help us diagnose broken compilers, and finding out an intuition
2089   # of exeext.
2090 < echo "$as_me:1559: checking for C compiler default output" >&5
2091 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2090 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 < if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5
2093 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094    (eval $ac_link_default) 2>&5
2095    ac_status=$?
2096 <  echo "$as_me:1565: \$? = $ac_status" >&5
2096 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097    (exit $ac_status); }; then
2098 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2099 <  case $ac_file in
2100 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2101 <    a.out ) # We found the default executable, but exeext='' is most
2102 <            # certainly right.
2103 <            break;;
2104 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105 <          export ac_cv_exeext
2106 <          break;;
2107 <    * ) break;;
2098 >  # Find the output, starting from the most likely.  This scheme is
2099 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 > # resort.
2101 >
2102 > # Be careful to initialize this variable, since it used to be cached.
2103 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 > ac_cv_exeext=
2105 > # b.out is created by i960 compilers.
2106 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 > do
2108 >  test -f "$ac_file" || continue
2109 >  case $ac_file in
2110 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111 >        ;;
2112 >    conftest.$ac_ext )
2113 >        # This is the source file.
2114 >        ;;
2115 >    [ab].out )
2116 >        # We found the default executable, but exeext='' is most
2117 >        # certainly right.
2118 >        break;;
2119 >    *.* )
2120 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 >        # but it would be cool to find out if it's true.  Does anybody
2123 >        # maintain Libtool? --akim.
2124 >        export ac_cv_exeext
2125 >        break;;
2126 >    * )
2127 >        break;;
2128    esac
2129   done
2130   else
2131    echo "$as_me: failed program was:" >&5
2132 < cat conftest.$ac_ext >&5
2133 < { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
2134 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2132 > sed 's/^/| /' conftest.$ac_ext >&5
2133 >
2134 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 > See \`config.log' for more details." >&5
2136 > echo "$as_me: error: C compiler cannot create executables
2137 > See \`config.log' for more details." >&2;}
2138     { (exit 77); exit 77; }; }
2139   fi
2140  
2141   ac_exeext=$ac_cv_exeext
2142 < echo "$as_me:1588: result: $ac_file" >&5
2142 > echo "$as_me:$LINENO: result: $ac_file" >&5
2143   echo "${ECHO_T}$ac_file" >&6
2144  
2145   # Check the compiler produces executables we can run.  If not, either
2146   # the compiler is broken, or we cross compile.
2147 < echo "$as_me:1593: checking whether the C compiler works" >&5
2147 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150   # If not cross compiling, check that we can run a simple program.
2151   if test "$cross_compiling" != yes; then
2152    if { ac_try='./$ac_file'
2153 <  { (eval echo "$as_me:1599: \"$ac_try\"") >&5
2153 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154    (eval $ac_try) 2>&5
2155    ac_status=$?
2156 <  echo "$as_me:1602: \$? = $ac_status" >&5
2156 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157    (exit $ac_status); }; }; then
2158      cross_compiling=no
2159    else
2160      if test "$cross_compiling" = maybe; then
2161          cross_compiling=yes
2162      else
2163 <        { { echo "$as_me:1609: error: cannot run C compiled programs.
2164 < If you meant to cross compile, use \`--host'." >&5
2163 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 > If you meant to cross compile, use \`--host'.
2165 > See \`config.log' for more details." >&5
2166   echo "$as_me: error: cannot run C compiled programs.
2167 < If you meant to cross compile, use \`--host'." >&2;}
2167 > If you meant to cross compile, use \`--host'.
2168 > See \`config.log' for more details." >&2;}
2169     { (exit 1); exit 1; }; }
2170      fi
2171    fi
2172   fi
2173 < echo "$as_me:1617: result: yes" >&5
2173 > echo "$as_me:$LINENO: result: yes" >&5
2174   echo "${ECHO_T}yes" >&6
2175  
2176 < rm -f a.out a.exe conftest$ac_cv_exeext
2176 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177   ac_clean_files=$ac_clean_files_save
2178   # Check the compiler produces executables we can run.  If not, either
2179   # the compiler is broken, or we cross compile.
2180 < echo "$as_me:1624: checking whether we are cross compiling" >&5
2180 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 < echo "$as_me:1626: result: $cross_compiling" >&5
2182 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183   echo "${ECHO_T}$cross_compiling" >&6
2184  
2185 < echo "$as_me:1629: checking for executable suffix" >&5
2186 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2187 < if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
2185 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188    (eval $ac_link) 2>&5
2189    ac_status=$?
2190 <  echo "$as_me:1634: \$? = $ac_status" >&5
2190 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191    (exit $ac_status); }; then
2192    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194   # work properly (i.e., refer to `conftest.exe'), while it won't with
2195   # `rm'.
2196 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2196 > for ac_file in conftest.exe conftest conftest.*; do
2197 >  test -f "$ac_file" || continue
2198    case $ac_file in
2199 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2199 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 <          export ac_cv_exeext
2202 <          break;;
2201 >          export ac_cv_exeext
2202 >          break;;
2203      * ) break;;
2204    esac
2205   done
2206   else
2207 <  { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
2208 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2207 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 > See \`config.log' for more details." >&5
2209 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 > See \`config.log' for more details." >&2;}
2211     { (exit 1); exit 1; }; }
2212   fi
2213  
2214   rm -f conftest$ac_cv_exeext
2215 < echo "$as_me:1656: result: $ac_cv_exeext" >&5
2215 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216   echo "${ECHO_T}$ac_cv_exeext" >&6
2217  
2218   rm -f conftest.$ac_ext
2219   EXEEXT=$ac_cv_exeext
2220   ac_exeext=$EXEEXT
2221 < echo "$as_me:1662: checking for object suffix" >&5
2222 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2221 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2222 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2223   if test "${ac_cv_objext+set}" = set; then
2224    echo $ECHO_N "(cached) $ECHO_C" >&6
2225   else
2226    cat >conftest.$ac_ext <<_ACEOF
2227 < #line 1668 "configure"
2228 < #include "confdefs.h"
2227 > /* confdefs.h.  */
2228 > _ACEOF
2229 > cat confdefs.h >>conftest.$ac_ext
2230 > cat >>conftest.$ac_ext <<_ACEOF
2231 > /* end confdefs.h.  */
2232  
2233   int
2234   main ()
# Line 1677 | Line 2239 | if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
2239   }
2240   _ACEOF
2241   rm -f conftest.o conftest.obj
2242 < if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
2242 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243    (eval $ac_compile) 2>&5
2244    ac_status=$?
2245 <  echo "$as_me:1683: \$? = $ac_status" >&5
2245 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246    (exit $ac_status); }; then
2247    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2248    case $ac_file in
2249 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2249 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2250      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2251         break;;
2252    esac
2253   done
2254   else
2255    echo "$as_me: failed program was:" >&5
2256 < cat conftest.$ac_ext >&5
2257 < { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
2258 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2256 > sed 's/^/| /' conftest.$ac_ext >&5
2257 >
2258 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2259 > See \`config.log' for more details." >&5
2260 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2261 > See \`config.log' for more details." >&2;}
2262     { (exit 1); exit 1; }; }
2263   fi
2264  
2265   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266   fi
2267 < echo "$as_me:1702: result: $ac_cv_objext" >&5
2267 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2268   echo "${ECHO_T}$ac_cv_objext" >&6
2269   OBJEXT=$ac_cv_objext
2270   ac_objext=$OBJEXT
2271 < echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
2271 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2272   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2273   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2274    echo $ECHO_N "(cached) $ECHO_C" >&6
2275   else
2276    cat >conftest.$ac_ext <<_ACEOF
2277 < #line 1712 "configure"
2278 < #include "confdefs.h"
2277 > /* confdefs.h.  */
2278 > _ACEOF
2279 > cat confdefs.h >>conftest.$ac_ext
2280 > cat >>conftest.$ac_ext <<_ACEOF
2281 > /* end confdefs.h.  */
2282  
2283   int
2284   main ()
# Line 1724 | Line 2292 | if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
2292   }
2293   _ACEOF
2294   rm -f conftest.$ac_objext
2295 < if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
2296 <  (eval $ac_compile) 2>&5
2295 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 >  (eval $ac_compile) 2>conftest.er1
2297    ac_status=$?
2298 <  echo "$as_me:1730: \$? = $ac_status" >&5
2298 >  grep -v '^ *+' conftest.er1 >conftest.err
2299 >  rm -f conftest.er1
2300 >  cat conftest.err >&5
2301 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302    (exit $ac_status); } &&
2303 <         { ac_try='test -s conftest.$ac_objext'
2304 <  { (eval echo "$as_me:1733: \"$ac_try\"") >&5
2303 >         { ac_try='test -z "$ac_c_werror_flag"
2304 >                         || test ! -s conftest.err'
2305 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306    (eval $ac_try) 2>&5
2307    ac_status=$?
2308 <  echo "$as_me:1736: \$? = $ac_status" >&5
2308 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 >  (exit $ac_status); }; } &&
2310 >         { ac_try='test -s conftest.$ac_objext'
2311 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 >  (eval $ac_try) 2>&5
2313 >  ac_status=$?
2314 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315    (exit $ac_status); }; }; then
2316    ac_compiler_gnu=yes
2317   else
2318    echo "$as_me: failed program was:" >&5
2319 < cat conftest.$ac_ext >&5
2319 > sed 's/^/| /' conftest.$ac_ext >&5
2320 >
2321   ac_compiler_gnu=no
2322   fi
2323 < rm -f conftest.$ac_objext conftest.$ac_ext
2323 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2325  
2326   fi
2327 < echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
2327 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2328   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2329   GCC=`test $ac_compiler_gnu = yes && echo yes`
2330   ac_test_CFLAGS=${CFLAGS+set}
2331   ac_save_CFLAGS=$CFLAGS
2332   CFLAGS="-g"
2333 < echo "$as_me:1754: checking whether $CC accepts -g" >&5
2333 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2334   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2335   if test "${ac_cv_prog_cc_g+set}" = set; then
2336    echo $ECHO_N "(cached) $ECHO_C" >&6
2337   else
2338    cat >conftest.$ac_ext <<_ACEOF
2339 < #line 1760 "configure"
2340 < #include "confdefs.h"
2339 > /* confdefs.h.  */
2340 > _ACEOF
2341 > cat confdefs.h >>conftest.$ac_ext
2342 > cat >>conftest.$ac_ext <<_ACEOF
2343 > /* end confdefs.h.  */
2344  
2345   int
2346   main ()
# Line 1769 | Line 2351 | if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
2351   }
2352   _ACEOF
2353   rm -f conftest.$ac_objext
2354 < if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
2355 <  (eval $ac_compile) 2>&5
2354 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 >  (eval $ac_compile) 2>conftest.er1
2356    ac_status=$?
2357 <  echo "$as_me:1775: \$? = $ac_status" >&5
2357 >  grep -v '^ *+' conftest.er1 >conftest.err
2358 >  rm -f conftest.er1
2359 >  cat conftest.err >&5
2360 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361    (exit $ac_status); } &&
2362 <         { ac_try='test -s conftest.$ac_objext'
2363 <  { (eval echo "$as_me:1778: \"$ac_try\"") >&5
2362 >         { ac_try='test -z "$ac_c_werror_flag"
2363 >                         || test ! -s conftest.err'
2364 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365    (eval $ac_try) 2>&5
2366    ac_status=$?
2367 <  echo "$as_me:1781: \$? = $ac_status" >&5
2367 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 >  (exit $ac_status); }; } &&
2369 >         { ac_try='test -s conftest.$ac_objext'
2370 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 >  (eval $ac_try) 2>&5
2372 >  ac_status=$?
2373 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374    (exit $ac_status); }; }; then
2375    ac_cv_prog_cc_g=yes
2376   else
2377    echo "$as_me: failed program was:" >&5
2378 < cat conftest.$ac_ext >&5
2378 > sed 's/^/| /' conftest.$ac_ext >&5
2379 >
2380   ac_cv_prog_cc_g=no
2381   fi
2382 < rm -f conftest.$ac_objext conftest.$ac_ext
2382 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383   fi
2384 < echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
2384 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2385   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2386   if test "$ac_test_CFLAGS" = set; then
2387    CFLAGS=$ac_save_CFLAGS
# Line 1804 | Line 2397 | fi
2397    else
2398      CFLAGS=
2399    fi
2400 + fi
2401 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2402 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2403 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2404 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2405 + else
2406 +  ac_cv_prog_cc_stdc=no
2407 + ac_save_CC=$CC
2408 + cat >conftest.$ac_ext <<_ACEOF
2409 + /* confdefs.h.  */
2410 + _ACEOF
2411 + cat confdefs.h >>conftest.$ac_ext
2412 + cat >>conftest.$ac_ext <<_ACEOF
2413 + /* end confdefs.h.  */
2414 + #include <stdarg.h>
2415 + #include <stdio.h>
2416 + #include <sys/types.h>
2417 + #include <sys/stat.h>
2418 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2419 + struct buf { int x; };
2420 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2421 + static char *e (p, i)
2422 +     char **p;
2423 +     int i;
2424 + {
2425 +  return p[i];
2426 + }
2427 + static char *f (char * (*g) (char **, int), char **p, ...)
2428 + {
2429 +  char *s;
2430 +  va_list v;
2431 +  va_start (v,p);
2432 +  s = g (p, va_arg (v,int));
2433 +  va_end (v);
2434 +  return s;
2435 + }
2436 +
2437 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2438 +   function prototypes and stuff, but not '\xHH' hex character constants.
2439 +   These don't provoke an error unfortunately, instead are silently treated
2440 +   as 'x'.  The following induces an error, until -std1 is added to get
2441 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2442 +   array size at least.  It's necessary to write '\x00'==0 to get something
2443 +   that's true only with -std1.  */
2444 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2445 +
2446 + int test (int i, double x);
2447 + struct s1 {int (*f) (int a);};
2448 + struct s2 {int (*f) (double a);};
2449 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2450 + int argc;
2451 + char **argv;
2452 + int
2453 + main ()
2454 + {
2455 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2456 +  ;
2457 +  return 0;
2458 + }
2459 + _ACEOF
2460 + # Don't try gcc -ansi; that turns off useful extensions and
2461 + # breaks some systems' header files.
2462 + # AIX                   -qlanglvl=ansi
2463 + # Ultrix and OSF/1      -std1
2464 + # HP-UX 10.20 and later -Ae
2465 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2466 + # SVR4                  -Xc -D__EXTENSIONS__
2467 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2468 + do
2469 +  CC="$ac_save_CC $ac_arg"
2470 +  rm -f conftest.$ac_objext
2471 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 +  (eval $ac_compile) 2>conftest.er1
2473 +  ac_status=$?
2474 +  grep -v '^ *+' conftest.er1 >conftest.err
2475 +  rm -f conftest.er1
2476 +  cat conftest.err >&5
2477 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 +  (exit $ac_status); } &&
2479 +         { ac_try='test -z "$ac_c_werror_flag"
2480 +                         || test ! -s conftest.err'
2481 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 +  (eval $ac_try) 2>&5
2483 +  ac_status=$?
2484 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 +  (exit $ac_status); }; } &&
2486 +         { ac_try='test -s conftest.$ac_objext'
2487 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 +  (eval $ac_try) 2>&5
2489 +  ac_status=$?
2490 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 +  (exit $ac_status); }; }; then
2492 +  ac_cv_prog_cc_stdc=$ac_arg
2493 + break
2494 + else
2495 +  echo "$as_me: failed program was:" >&5
2496 + sed 's/^/| /' conftest.$ac_ext >&5
2497 +
2498   fi
2499 + rm -f conftest.err conftest.$ac_objext
2500 + done
2501 + rm -f conftest.$ac_ext conftest.$ac_objext
2502 + CC=$ac_save_CC
2503 +
2504 + fi
2505 +
2506 + case "x$ac_cv_prog_cc_stdc" in
2507 +  x|xno)
2508 +    echo "$as_me:$LINENO: result: none needed" >&5
2509 + echo "${ECHO_T}none needed" >&6 ;;
2510 +  *)
2511 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2512 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2513 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2514 + esac
2515 +
2516   # Some people use a C++ compiler to compile C.  Since we use `exit',
2517   # in C++ we need to declare it.  In case someone uses the same compiler
2518   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1815 | Line 2523 | if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
2523   #endif
2524   _ACEOF
2525   rm -f conftest.$ac_objext
2526 < if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
2527 <  (eval $ac_compile) 2>&5
2526 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 >  (eval $ac_compile) 2>conftest.er1
2528    ac_status=$?
2529 <  echo "$as_me:1821: \$? = $ac_status" >&5
2529 >  grep -v '^ *+' conftest.er1 >conftest.err
2530 >  rm -f conftest.er1
2531 >  cat conftest.err >&5
2532 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533    (exit $ac_status); } &&
2534 <         { ac_try='test -s conftest.$ac_objext'
2535 <  { (eval echo "$as_me:1824: \"$ac_try\"") >&5
2534 >         { ac_try='test -z "$ac_c_werror_flag"
2535 >                         || test ! -s conftest.err'
2536 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537    (eval $ac_try) 2>&5
2538    ac_status=$?
2539 <  echo "$as_me:1827: \$? = $ac_status" >&5
2539 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 >  (exit $ac_status); }; } &&
2541 >         { ac_try='test -s conftest.$ac_objext'
2542 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 >  (eval $ac_try) 2>&5
2544 >  ac_status=$?
2545 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546    (exit $ac_status); }; }; then
2547    for ac_declaration in \
2548 <   ''\
1831 <   '#include <stdlib.h>' \
2548 >   '' \
2549     'extern "C" void std::exit (int) throw (); using std::exit;' \
2550     'extern "C" void std::exit (int); using std::exit;' \
2551     'extern "C" void exit (int) throw ();' \
# Line 1836 | Line 2553 | do
2553     'void exit (int);'
2554   do
2555    cat >conftest.$ac_ext <<_ACEOF
2556 < #line 1839 "configure"
2557 < #include "confdefs.h"
2558 < #include <stdlib.h>
2556 > /* confdefs.h.  */
2557 > _ACEOF
2558 > cat confdefs.h >>conftest.$ac_ext
2559 > cat >>conftest.$ac_ext <<_ACEOF
2560 > /* end confdefs.h.  */
2561   $ac_declaration
2562 + #include <stdlib.h>
2563   int
2564   main ()
2565   {
# Line 1849 | Line 2569 | if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
2569   }
2570   _ACEOF
2571   rm -f conftest.$ac_objext
2572 < if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
2573 <  (eval $ac_compile) 2>&5
2572 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 >  (eval $ac_compile) 2>conftest.er1
2574    ac_status=$?
2575 <  echo "$as_me:1855: \$? = $ac_status" >&5
2575 >  grep -v '^ *+' conftest.er1 >conftest.err
2576 >  rm -f conftest.er1
2577 >  cat conftest.err >&5
2578 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579    (exit $ac_status); } &&
2580 <         { ac_try='test -s conftest.$ac_objext'
2581 <  { (eval echo "$as_me:1858: \"$ac_try\"") >&5
2580 >         { ac_try='test -z "$ac_c_werror_flag"
2581 >                         || test ! -s conftest.err'
2582 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583    (eval $ac_try) 2>&5
2584    ac_status=$?
2585 <  echo "$as_me:1861: \$? = $ac_status" >&5
2585 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 >  (exit $ac_status); }; } &&
2587 >         { ac_try='test -s conftest.$ac_objext'
2588 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 >  (eval $ac_try) 2>&5
2590 >  ac_status=$?
2591 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592    (exit $ac_status); }; }; then
2593    :
2594   else
2595    echo "$as_me: failed program was:" >&5
2596 < cat conftest.$ac_ext >&5
2596 > sed 's/^/| /' conftest.$ac_ext >&5
2597 >
2598   continue
2599   fi
2600 < rm -f conftest.$ac_objext conftest.$ac_ext
2600 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601    cat >conftest.$ac_ext <<_ACEOF
2602 < #line 1871 "configure"
2603 < #include "confdefs.h"
2602 > /* confdefs.h.  */
2603 > _ACEOF
2604 > cat confdefs.h >>conftest.$ac_ext
2605 > cat >>conftest.$ac_ext <<_ACEOF
2606 > /* end confdefs.h.  */
2607   $ac_declaration
2608   int
2609   main ()
# Line 1880 | Line 2614 | if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
2614   }
2615   _ACEOF
2616   rm -f conftest.$ac_objext
2617 < if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
2618 <  (eval $ac_compile) 2>&5
2617 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 >  (eval $ac_compile) 2>conftest.er1
2619    ac_status=$?
2620 <  echo "$as_me:1886: \$? = $ac_status" >&5
2620 >  grep -v '^ *+' conftest.er1 >conftest.err
2621 >  rm -f conftest.er1
2622 >  cat conftest.err >&5
2623 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624    (exit $ac_status); } &&
2625 <         { ac_try='test -s conftest.$ac_objext'
2626 <  { (eval echo "$as_me:1889: \"$ac_try\"") >&5
2625 >         { ac_try='test -z "$ac_c_werror_flag"
2626 >                         || test ! -s conftest.err'
2627 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628    (eval $ac_try) 2>&5
2629    ac_status=$?
2630 <  echo "$as_me:1892: \$? = $ac_status" >&5
2630 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 >  (exit $ac_status); }; } &&
2632 >         { ac_try='test -s conftest.$ac_objext'
2633 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 >  (eval $ac_try) 2>&5
2635 >  ac_status=$?
2636 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637    (exit $ac_status); }; }; then
2638    break
2639   else
2640    echo "$as_me: failed program was:" >&5
2641 < cat conftest.$ac_ext >&5
2641 > sed 's/^/| /' conftest.$ac_ext >&5
2642 >
2643   fi
2644 < rm -f conftest.$ac_objext conftest.$ac_ext
2644 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645   done
2646 < echo '#ifdef __cplusplus' >>confdefs.h
2647 < echo $ac_declaration      >>confdefs.h
2648 < echo '#endif'             >>confdefs.h
2646 > rm -f conftest*
2647 > if test -n "$ac_declaration"; then
2648 >  echo '#ifdef __cplusplus' >>confdefs.h
2649 >  echo $ac_declaration      >>confdefs.h
2650 >  echo '#endif'             >>confdefs.h
2651 > fi
2652  
2653   else
2654    echo "$as_me: failed program was:" >&5
2655 < cat conftest.$ac_ext >&5
2655 > sed 's/^/| /' conftest.$ac_ext >&5
2656 >
2657   fi
2658 < rm -f conftest.$ac_objext conftest.$ac_ext
2658 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659   ac_ext=c
2660   ac_cpp='$CPP $CPPFLAGS'
2661   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664  
2665 +
2666   ac_ext=cc
2667   ac_cpp='$CXXCPP $CPPFLAGS'
2668   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1923 | Line 2673 | echo "$as_me:1926: checking for $ac_word" >&5
2673    do
2674      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 < echo "$as_me:1926: checking for $ac_word" >&5
2676 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2677   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678   if test "${ac_cv_prog_CXX+set}" = set; then
2679    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1931 | Line 2681 | else
2681    if test -n "$CXX"; then
2682    ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683   else
2684 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2685 < ac_dummy="$PATH"
2686 < for ac_dir in $ac_dummy; do
2687 <  IFS=$ac_save_IFS
2688 <  test -z "$ac_dir" && ac_dir=.
2689 <  $as_executable_p "$ac_dir/$ac_word" || continue
2690 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2691 < echo "$as_me:1941: found $ac_dir/$ac_word" >&5
2692 < break
2684 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 > for as_dir in $PATH
2686 > do
2687 >  IFS=$as_save_IFS
2688 >  test -z "$as_dir" && as_dir=.
2689 >  for ac_exec_ext in '' $ac_executable_extensions; do
2690 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 >    break 2
2694 >  fi
2695   done
2696 + done
2697  
2698   fi
2699   fi
2700   CXX=$ac_cv_prog_CXX
2701   if test -n "$CXX"; then
2702 <  echo "$as_me:1949: result: $CXX" >&5
2702 >  echo "$as_me:$LINENO: result: $CXX" >&5
2703   echo "${ECHO_T}$CXX" >&6
2704   else
2705 <  echo "$as_me:1952: result: no" >&5
2705 >  echo "$as_me:$LINENO: result: no" >&5
2706   echo "${ECHO_T}no" >&6
2707   fi
2708  
# Line 1962 | Line 2715 | echo "$as_me:1965: checking for $ac_word" >&5
2715   do
2716    # Extract the first word of "$ac_prog", so it can be a program name with args.
2717   set dummy $ac_prog; ac_word=$2
2718 < echo "$as_me:1965: checking for $ac_word" >&5
2718 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2719   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720   if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1970 | Line 2723 | else
2723    if test -n "$ac_ct_CXX"; then
2724    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2725   else
2726 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2727 < ac_dummy="$PATH"
2728 < for ac_dir in $ac_dummy; do
2729 <  IFS=$ac_save_IFS
2730 <  test -z "$ac_dir" && ac_dir=.
2731 <  $as_executable_p "$ac_dir/$ac_word" || continue
2732 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2733 < echo "$as_me:1980: found $ac_dir/$ac_word" >&5
2734 < break
2726 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 > for as_dir in $PATH
2728 > do
2729 >  IFS=$as_save_IFS
2730 >  test -z "$as_dir" && as_dir=.
2731 >  for ac_exec_ext in '' $ac_executable_extensions; do
2732 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2734 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 >    break 2
2736 >  fi
2737   done
2738 + done
2739  
2740   fi
2741   fi
2742   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743   if test -n "$ac_ct_CXX"; then
2744 <  echo "$as_me:1988: result: $ac_ct_CXX" >&5
2744 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745   echo "${ECHO_T}$ac_ct_CXX" >&6
2746   else
2747 <  echo "$as_me:1991: result: no" >&5
2747 >  echo "$as_me:$LINENO: result: no" >&5
2748   echo "${ECHO_T}no" >&6
2749   fi
2750  
# Line 1999 | Line 2755 | echo "$as_me:2002: checking whether we are using the G
2755    CXX=$ac_ct_CXX
2756   fi
2757  
2758 < echo "$as_me:2002: checking whether we are using the GNU C++ compiler" >&5
2758 >
2759 > # Provide some information about the compiler.
2760 > echo "$as_me:$LINENO:" \
2761 >     "checking for C++ compiler version" >&5
2762 > ac_compiler=`set X $ac_compile; echo $2`
2763 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2765 >  ac_status=$?
2766 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 >  (exit $ac_status); }
2768 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2770 >  ac_status=$?
2771 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 >  (exit $ac_status); }
2773 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2775 >  ac_status=$?
2776 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 >  (exit $ac_status); }
2778 >
2779 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780   echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782    echo $ECHO_N "(cached) $ECHO_C" >&6
2783   else
2784    cat >conftest.$ac_ext <<_ACEOF
2785 < #line 2008 "configure"
2786 < #include "confdefs.h"
2785 > /* confdefs.h.  */
2786 > _ACEOF
2787 > cat confdefs.h >>conftest.$ac_ext
2788 > cat >>conftest.$ac_ext <<_ACEOF
2789 > /* end confdefs.h.  */
2790  
2791   int
2792   main ()
# Line 2020 | Line 2800 | if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2800   }
2801   _ACEOF
2802   rm -f conftest.$ac_objext
2803 < if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2804 <  (eval $ac_compile) 2>&5
2803 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 >  (eval $ac_compile) 2>conftest.er1
2805    ac_status=$?
2806 <  echo "$as_me:2026: \$? = $ac_status" >&5
2806 >  grep -v '^ *+' conftest.er1 >conftest.err
2807 >  rm -f conftest.er1
2808 >  cat conftest.err >&5
2809 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810    (exit $ac_status); } &&
2811 <         { ac_try='test -s conftest.$ac_objext'
2812 <  { (eval echo "$as_me:2029: \"$ac_try\"") >&5
2811 >         { ac_try='test -z "$ac_cxx_werror_flag"
2812 >                         || test ! -s conftest.err'
2813 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814    (eval $ac_try) 2>&5
2815    ac_status=$?
2816 <  echo "$as_me:2032: \$? = $ac_status" >&5
2816 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 >  (exit $ac_status); }; } &&
2818 >         { ac_try='test -s conftest.$ac_objext'
2819 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 >  (eval $ac_try) 2>&5
2821 >  ac_status=$?
2822 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823    (exit $ac_status); }; }; then
2824    ac_compiler_gnu=yes
2825   else
2826    echo "$as_me: failed program was:" >&5
2827 < cat conftest.$ac_ext >&5
2827 > sed 's/^/| /' conftest.$ac_ext >&5
2828 >
2829   ac_compiler_gnu=no
2830   fi
2831 < rm -f conftest.$ac_objext conftest.$ac_ext
2831 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833  
2834   fi
2835 < echo "$as_me:2044: result: $ac_cv_cxx_compiler_gnu" >&5
2835 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836   echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837   GXX=`test $ac_compiler_gnu = yes && echo yes`
2838   ac_test_CXXFLAGS=${CXXFLAGS+set}
2839   ac_save_CXXFLAGS=$CXXFLAGS
2840   CXXFLAGS="-g"
2841 < echo "$as_me:2050: checking whether $CXX accepts -g" >&5
2841 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842   echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843   if test "${ac_cv_prog_cxx_g+set}" = set; then
2844    echo $ECHO_N "(cached) $ECHO_C" >&6
2845   else
2846    cat >conftest.$ac_ext <<_ACEOF
2847 < #line 2056 "configure"
2848 < #include "confdefs.h"
2847 > /* confdefs.h.  */
2848 > _ACEOF
2849 > cat confdefs.h >>conftest.$ac_ext
2850 > cat >>conftest.$ac_ext <<_ACEOF
2851 > /* end confdefs.h.  */
2852  
2853   int
2854   main ()
# Line 2065 | Line 2859 | if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2859   }
2860   _ACEOF
2861   rm -f conftest.$ac_objext
2862 < if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2863 <  (eval $ac_compile) 2>&5
2862 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 >  (eval $ac_compile) 2>conftest.er1
2864    ac_status=$?
2865 <  echo "$as_me:2071: \$? = $ac_status" >&5
2865 >  grep -v '^ *+' conftest.er1 >conftest.err
2866 >  rm -f conftest.er1
2867 >  cat conftest.err >&5
2868 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869    (exit $ac_status); } &&
2870 <         { ac_try='test -s conftest.$ac_objext'
2871 <  { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2870 >         { ac_try='test -z "$ac_cxx_werror_flag"
2871 >                         || test ! -s conftest.err'
2872 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873    (eval $ac_try) 2>&5
2874    ac_status=$?
2875 <  echo "$as_me:2077: \$? = $ac_status" >&5
2875 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 >  (exit $ac_status); }; } &&
2877 >         { ac_try='test -s conftest.$ac_objext'
2878 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 >  (eval $ac_try) 2>&5
2880 >  ac_status=$?
2881 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882    (exit $ac_status); }; }; then
2883    ac_cv_prog_cxx_g=yes
2884   else
2885    echo "$as_me: failed program was:" >&5
2886 < cat conftest.$ac_ext >&5
2886 > sed 's/^/| /' conftest.$ac_ext >&5
2887 >
2888   ac_cv_prog_cxx_g=no
2889   fi
2890 < rm -f conftest.$ac_objext conftest.$ac_ext
2890 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891   fi
2892 < echo "$as_me:2087: result: $ac_cv_prog_cxx_g" >&5
2892 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894   if test "$ac_test_CXXFLAGS" = set; then
2895    CXXFLAGS=$ac_save_CXXFLAGS
# Line 2102 | Line 2907 | for ac_declaration in \
2907    fi
2908   fi
2909   for ac_declaration in \
2910 <   ''\
2106 <   '#include <stdlib.h>' \
2910 >   '' \
2911     'extern "C" void std::exit (int) throw (); using std::exit;' \
2912     'extern "C" void std::exit (int); using std::exit;' \
2913     'extern "C" void exit (int) throw ();' \
# Line 2111 | Line 2915 | do
2915     'void exit (int);'
2916   do
2917    cat >conftest.$ac_ext <<_ACEOF
2918 < #line 2114 "configure"
2919 < #include "confdefs.h"
2920 < #include <stdlib.h>
2918 > /* confdefs.h.  */
2919 > _ACEOF
2920 > cat confdefs.h >>conftest.$ac_ext
2921 > cat >>conftest.$ac_ext <<_ACEOF
2922 > /* end confdefs.h.  */
2923   $ac_declaration
2924 + #include <stdlib.h>
2925   int
2926   main ()
2927   {
# Line 2124 | Line 2931 | if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2931   }
2932   _ACEOF
2933   rm -f conftest.$ac_objext
2934 < if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2935 <  (eval $ac_compile) 2>&5
2934 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 >  (eval $ac_compile) 2>conftest.er1
2936    ac_status=$?
2937 <  echo "$as_me:2130: \$? = $ac_status" >&5
2937 >  grep -v '^ *+' conftest.er1 >conftest.err
2938 >  rm -f conftest.er1
2939 >  cat conftest.err >&5
2940 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941    (exit $ac_status); } &&
2942 <         { ac_try='test -s conftest.$ac_objext'
2943 <  { (eval echo "$as_me:2133: \"$ac_try\"") >&5
2942 >         { ac_try='test -z "$ac_cxx_werror_flag"
2943 >                         || test ! -s conftest.err'
2944 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945    (eval $ac_try) 2>&5
2946    ac_status=$?
2947 <  echo "$as_me:2136: \$? = $ac_status" >&5
2947 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 >  (exit $ac_status); }; } &&
2949 >         { ac_try='test -s conftest.$ac_objext'
2950 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 >  (eval $ac_try) 2>&5
2952 >  ac_status=$?
2953 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954    (exit $ac_status); }; }; then
2955    :
2956   else
2957    echo "$as_me: failed program was:" >&5
2958 < cat conftest.$ac_ext >&5
2958 > sed 's/^/| /' conftest.$ac_ext >&5
2959 >
2960   continue
2961   fi
2962 < rm -f conftest.$ac_objext conftest.$ac_ext
2962 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963    cat >conftest.$ac_ext <<_ACEOF
2964 < #line 2146 "configure"
2965 < #include "confdefs.h"
2964 > /* confdefs.h.  */
2965 > _ACEOF
2966 > cat confdefs.h >>conftest.$ac_ext
2967 > cat >>conftest.$ac_ext <<_ACEOF
2968 > /* end confdefs.h.  */
2969   $ac_declaration
2970   int
2971   main ()
# Line 2155 | Line 2976 | if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2976   }
2977   _ACEOF
2978   rm -f conftest.$ac_objext
2979 < if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2980 <  (eval $ac_compile) 2>&5
2979 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 >  (eval $ac_compile) 2>conftest.er1
2981    ac_status=$?
2982 <  echo "$as_me:2161: \$? = $ac_status" >&5
2982 >  grep -v '^ *+' conftest.er1 >conftest.err
2983 >  rm -f conftest.er1
2984 >  cat conftest.err >&5
2985 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986    (exit $ac_status); } &&
2987 <         { ac_try='test -s conftest.$ac_objext'
2988 <  { (eval echo "$as_me:2164: \"$ac_try\"") >&5
2987 >         { ac_try='test -z "$ac_cxx_werror_flag"
2988 >                         || test ! -s conftest.err'
2989 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990    (eval $ac_try) 2>&5
2991    ac_status=$?
2992 <  echo "$as_me:2167: \$? = $ac_status" >&5
2992 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 >  (exit $ac_status); }; } &&
2994 >         { ac_try='test -s conftest.$ac_objext'
2995 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 >  (eval $ac_try) 2>&5
2997 >  ac_status=$?
2998 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999    (exit $ac_status); }; }; then
3000    break
3001   else
3002    echo "$as_me: failed program was:" >&5
3003 < cat conftest.$ac_ext >&5
3003 > sed 's/^/| /' conftest.$ac_ext >&5
3004 >
3005   fi
3006 < rm -f conftest.$ac_objext conftest.$ac_ext
3006 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007   done
3008 < echo '#ifdef __cplusplus' >>confdefs.h
3009 < echo $ac_declaration      >>confdefs.h
3010 < echo '#endif'             >>confdefs.h
3008 > rm -f conftest*
3009 > if test -n "$ac_declaration"; then
3010 >  echo '#ifdef __cplusplus' >>confdefs.h
3011 >  echo $ac_declaration      >>confdefs.h
3012 >  echo '#endif'             >>confdefs.h
3013 > fi
3014  
3015   ac_ext=c
3016   ac_cpp='$CPP $CPPFLAGS'
# Line 2183 | Line 3018 | ac_ext=f90
3018   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020  
3021 +
3022 + OOPSE_TEMPLATE_FLAGS=""
3023 + if test $ac_cv_cxx_compiler_gnu = no; then
3024 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3025 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3026 +  echo 'void f(){}' > conftest.cc
3027 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3028 +    echo "$as_me:$LINENO: result: yes" >&5
3029 + echo "${ECHO_T}yes" >&6
3030 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3031 +  else
3032 +    echo "$as_me:$LINENO: result: no" >&5
3033 + echo "${ECHO_T}no" >&6
3034 +  fi
3035 +  rm -f conftest*
3036 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3037 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3038 +  echo 'void f(){}' > conftest.cc
3039 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3040 +    echo "$as_me:$LINENO: result: yes" >&5
3041 + echo "${ECHO_T}yes" >&6
3042 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3043 +  else
3044 +    echo "$as_me:$LINENO: result: no" >&5
3045 + echo "${ECHO_T}no" >&6
3046 +  fi
3047 +  rm -f conftest*
3048 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3049 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3050 +  echo 'void f(){}' > conftest.cc
3051 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3052 +    echo "$as_me:$LINENO: result: yes" >&5
3053 + echo "${ECHO_T}yes" >&6
3054 +    OOPSE_TEMPLATE_FLAGS="-pto"
3055 +  else
3056 +    echo "$as_me:$LINENO: result: no" >&5
3057 + echo "${ECHO_T}no" >&6
3058 +  fi
3059 +  rm -f conftest*
3060 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3061 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3062 +  echo 'void f(){}' > conftest.cc
3063 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3064 +    echo "$as_me:$LINENO: result: yes" >&5
3065 + echo "${ECHO_T}yes" >&6
3066 +
3067 +
3068 +    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3069 +  else
3070 +    echo "$as_me:$LINENO: result: no" >&5
3071 + echo "${ECHO_T}no" >&6
3072 +  fi
3073 + fi
3074 +
3075 +
3076 +
3077 +
3078   ac_ext=f90
3079   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3080   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3082   if test -n "$ac_tool_prefix"; then
3083 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3083 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3084    do
3085      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 < echo "$as_me:2195: checking for $ac_word" >&5
3087 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3088   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089   if test "${ac_cv_prog_F90+set}" = set; then
3090    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2200 | Line 3092 | else
3092    if test -n "$F90"; then
3093    ac_cv_prog_F90="$F90" # Let the user override the test.
3094   else
3095 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3096 < ac_dummy="$PATH"
3097 < for ac_dir in $ac_dummy; do
3098 <  IFS=$ac_save_IFS
3099 <  test -z "$ac_dir" && ac_dir=.
3100 <  $as_executable_p "$ac_dir/$ac_word" || continue
3101 < ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3102 < echo "$as_me:2210: found $ac_dir/$ac_word" >&5
3103 < break
3095 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 > for as_dir in $PATH
3097 > do
3098 >  IFS=$as_save_IFS
3099 >  test -z "$as_dir" && as_dir=.
3100 >  for ac_exec_ext in '' $ac_executable_extensions; do
3101 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3103 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 >    break 2
3105 >  fi
3106   done
3107 + done
3108  
3109   fi
3110   fi
3111   F90=$ac_cv_prog_F90
3112   if test -n "$F90"; then
3113 <  echo "$as_me:2218: result: $F90" >&5
3113 >  echo "$as_me:$LINENO: result: $F90" >&5
3114   echo "${ECHO_T}$F90" >&6
3115   else
3116 <  echo "$as_me:2221: result: no" >&5
3116 >  echo "$as_me:$LINENO: result: no" >&5
3117   echo "${ECHO_T}no" >&6
3118   fi
3119  
# Line 2227 | Line 3122 | if test -z "$F90"; then
3122   fi
3123   if test -z "$F90"; then
3124    ac_ct_F90=$F90
3125 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3125 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3126   do
3127    # Extract the first word of "$ac_prog", so it can be a program name with args.
3128   set dummy $ac_prog; ac_word=$2
3129 < echo "$as_me:2234: checking for $ac_word" >&5
3129 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3130   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131   if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3132    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2239 | Line 3134 | else
3134    if test -n "$ac_ct_F90"; then
3135    ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3136   else
3137 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3138 < ac_dummy="$PATH"
3139 < for ac_dir in $ac_dummy; do
3140 <  IFS=$ac_save_IFS
3141 <  test -z "$ac_dir" && ac_dir=.
3142 <  $as_executable_p "$ac_dir/$ac_word" || continue
3143 < ac_cv_prog_ac_ct_F90="$ac_prog"
3144 < echo "$as_me:2249: found $ac_dir/$ac_word" >&5
3145 < break
3137 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 > for as_dir in $PATH
3139 > do
3140 >  IFS=$as_save_IFS
3141 >  test -z "$as_dir" && as_dir=.
3142 >  for ac_exec_ext in '' $ac_executable_extensions; do
3143 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3145 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 >    break 2
3147 >  fi
3148   done
3149 + done
3150  
3151   fi
3152   fi
3153   ac_ct_F90=$ac_cv_prog_ac_ct_F90
3154   if test -n "$ac_ct_F90"; then
3155 <  echo "$as_me:2257: result: $ac_ct_F90" >&5
3155 >  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3156   echo "${ECHO_T}$ac_ct_F90" >&6
3157   else
3158 <  echo "$as_me:2260: result: no" >&5
3158 >  echo "$as_me:$LINENO: result: no" >&5
3159   echo "${ECHO_T}no" >&6
3160   fi
3161  
# Line 2267 | Line 3165 | fi
3165    F90=$ac_ct_F90
3166   fi
3167  
3168 +
3169   # If we don't use `.F90' as extension, the preprocessor is not run on the
3170   # input file.
3171   ac_save_ext=$ac_ext
3172   ac_ext=F90
3173 < echo "$as_me:2274: checking whether we are using the GNU Fortran 90 compiler" >&5
3173 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3174   echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3175   if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3176    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2288 | Line 3187 | if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
3187  
3188   _ACEOF
3189   rm -f conftest.$ac_objext
3190 < if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
3191 <  (eval $ac_compile) 2>&5
3190 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 >  (eval $ac_compile) 2>conftest.er1
3192    ac_status=$?
3193 <  echo "$as_me:2294: \$? = $ac_status" >&5
3193 >  grep -v '^ *+' conftest.er1 >conftest.err
3194 >  rm -f conftest.er1
3195 >  cat conftest.err >&5
3196 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197    (exit $ac_status); } &&
3198 <         { ac_try='test -s conftest.$ac_objext'
3199 <  { (eval echo "$as_me:2297: \"$ac_try\"") >&5
3198 >         { ac_try='test -z "$ac_f90_werror_flag"
3199 >                         || test ! -s conftest.err'
3200 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201    (eval $ac_try) 2>&5
3202    ac_status=$?
3203 <  echo "$as_me:2300: \$? = $ac_status" >&5
3203 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 >  (exit $ac_status); }; } &&
3205 >         { ac_try='test -s conftest.$ac_objext'
3206 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 >  (eval $ac_try) 2>&5
3208 >  ac_status=$?
3209 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210    (exit $ac_status); }; }; then
3211    ac_compiler_gnu=yes
3212   else
3213    echo "$as_me: failed program was:" >&5
3214 < cat conftest.$ac_ext >&5
3214 > sed 's/^/| /' conftest.$ac_ext >&5
3215 >
3216   ac_compiler_gnu=no
3217   fi
3218 < rm -f conftest.$ac_objext conftest.$ac_ext
3218 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3219   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3220  
3221   fi
3222 < echo "$as_me:2312: result: $ac_cv_f90_compiler_gnu" >&5
3222 > echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3223   echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3224   ac_ext=$ac_save_ext
3225   G95=`test $ac_compiler_gnu = yes && echo yes`
# Line 2318 | Line 3228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 +
3232 +
3233 +
3234 +
3235  
3236   # Try to determine native compiler flags that allow us to use F90 suffix
3237   # for preprocessed f90 source.
# Line 2326 | Line 3240 | if test "$ac_test_PREPFLAG" != "set"; then
3240    PREPFLAG=""
3241    case "${host_cpu}-${host_os}" in
3242  
3243 <  *linux*) if test "$F90" = ifc; then
3243 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3244                      PREPFLAG="-fpp1 "
3245                  fi;;
3246    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 2339 | Line 3253 | if test "$ac_test_PREPFLAG" != "set"; then
3253    esac
3254  
3255    if test -z "$PREPFLAG"; then
3256 <        echo ""
3257 <        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 ""
3256 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3257 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3258          PREPFLAG=""
3259    fi
3260  
3261 <  echo "$as_me:2352: checking to make sure F90 preprocessor flag works" >&5
3261 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3262   echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3263  
3264 +
3265    ac_ext=f90
3266   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3267   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 2367 | Line 3277 | program main
3277  
3278      cat >conftest.$ac_ext <<_ACEOF
3279  
3280 +
3281   program main
3282  
3283    integer :: i
3284    i = 1
3285  
3286 +
3287   end program main
3288  
3289   _ACEOF
3290   rm -f conftest.$ac_objext
3291 < if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5
3292 <  (eval $ac_compile) 2>&5
3291 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 >  (eval $ac_compile) 2>conftest.er1
3293    ac_status=$?
3294 <  echo "$as_me:2382: \$? = $ac_status" >&5
3294 >  grep -v '^ *+' conftest.er1 >conftest.err
3295 >  rm -f conftest.er1
3296 >  cat conftest.err >&5
3297 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298    (exit $ac_status); } &&
3299 <         { ac_try='test -s conftest.$ac_objext'
3300 <  { (eval echo "$as_me:2385: \"$ac_try\"") >&5
3299 >         { ac_try='test -z "$ac_f90_werror_flag"
3300 >                         || test ! -s conftest.err'
3301 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302    (eval $ac_try) 2>&5
3303    ac_status=$?
3304 <  echo "$as_me:2388: \$? = $ac_status" >&5
3304 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 >  (exit $ac_status); }; } &&
3306 >         { ac_try='test -s conftest.$ac_objext'
3307 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 >  (eval $ac_try) 2>&5
3309 >  ac_status=$?
3310 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311    (exit $ac_status); }; }; then
3312    prepflagworks=1
3313   else
3314    echo "$as_me: failed program was:" >&5
3315 < cat conftest.$ac_ext >&5
3315 > sed 's/^/| /' conftest.$ac_ext >&5
3316 >
3317   prepflagworks=0
3318   fi
3319 < rm -f conftest.$ac_objext conftest.$ac_ext
3319 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320  
3321    F90FLAGS=$ac_save_F90FLAGS
3322    ac_ext=$ac_save_ext
# Line 2403 | Line 3326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328  
3329 +
3330    if test "$prepflagworks" = 1; then
3331 <    echo "$as_me:2407: result: yes" >&5
3331 >    echo "$as_me:$LINENO: result: yes" >&5
3332   echo "${ECHO_T}yes" >&6
3333  
3334    else
3335 <    echo "$as_me:2411: result: no" >&5
3335 >    echo "$as_me:$LINENO: result: no" >&5
3336   echo "${ECHO_T}no" >&6
3337 <    { { echo "$as_me:2413: error: Can't figure out working Fortran90 preprocessor flag" >&5
3337 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3338   echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3339     { (exit 1); exit 1; }; }
3340    fi
3341   fi
3342  
3343 +
3344 +
3345 +
3346 +
3347   # Try to determine native compiler flags that allow us to use F90 suffix
3348   # for preprocessed f90 source with -D type defines
3349  
# Line 2423 | Line 3351 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3351    PREPDEFFLAG=""
3352    case "${host_cpu}-${host_os}" in
3353  
3354 <  *linux*) if test "$F90" = ifc; then
3354 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3355                      PREPDEFFLAG=" "
3356                  fi;;
3357    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 2436 | Line 3364 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3364    esac
3365  
3366    if test -z "$PREPDEFFLAG"; then
3367 <        echo ""
3368 <        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 ""
3367 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3368 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3369          PREPDEFFLAG=" "
3370    fi
3371  
3372 <  echo "$as_me:2449: checking to make sure F90 preprocessor define flag works" >&5
3372 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3373   echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3374  
3375 +
3376    ac_ext=f90
3377   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3378   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 2464 | Line 3388 | program main
3388  
3389      cat >conftest.$ac_ext <<_ACEOF
3390  
3391 +
3392   program main
3393  
3394    integer :: i
# Line 2473 | Line 3398 | end program main
3398    choke me
3399   #endif
3400  
3401 +
3402   end program main
3403  
3404   _ACEOF
3405   rm -f conftest.$ac_objext
3406 < if { (eval echo "$as_me:2480: \"$ac_compile\"") >&5
3407 <  (eval $ac_compile) 2>&5
3406 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 >  (eval $ac_compile) 2>conftest.er1
3408    ac_status=$?
3409 <  echo "$as_me:2483: \$? = $ac_status" >&5
3409 >  grep -v '^ *+' conftest.er1 >conftest.err
3410 >  rm -f conftest.er1
3411 >  cat conftest.err >&5
3412 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413    (exit $ac_status); } &&
3414 <         { ac_try='test -s conftest.$ac_objext'
3415 <  { (eval echo "$as_me:2486: \"$ac_try\"") >&5
3414 >         { ac_try='test -z "$ac_f90_werror_flag"
3415 >                         || test ! -s conftest.err'
3416 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417    (eval $ac_try) 2>&5
3418    ac_status=$?
3419 <  echo "$as_me:2489: \$? = $ac_status" >&5
3419 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 >  (exit $ac_status); }; } &&
3421 >         { ac_try='test -s conftest.$ac_objext'
3422 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 >  (eval $ac_try) 2>&5
3424 >  ac_status=$?
3425 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426    (exit $ac_status); }; }; then
3427    prepdefflagworks=1
3428   else
3429    echo "$as_me: failed program was:" >&5
3430 < cat conftest.$ac_ext >&5
3430 > sed 's/^/| /' conftest.$ac_ext >&5
3431 >
3432   prepdefflagworks=0
3433   fi
3434 < rm -f conftest.$ac_objext conftest.$ac_ext
3434 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435  
3436    F90FLAGS=$ac_save_F90FLAGS
3437    ac_ext=$ac_save_ext
# Line 2504 | Line 3441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443  
3444 +
3445 +
3446    if test "$prepdefflagworks" = 1; then
3447 <    echo "$as_me:2508: result: yes" >&5
3447 >    echo "$as_me:$LINENO: result: yes" >&5
3448   echo "${ECHO_T}yes" >&6
3449  
3450    else
3451 <    echo "$as_me:2512: result: no" >&5
3451 >    echo "$as_me:$LINENO: result: no" >&5
3452   echo "${ECHO_T}no" >&6
3453 <    { { echo "$as_me:2514: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3453 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3454   echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3455     { (exit 1); exit 1; }; }
3456    fi
3457   fi
3458  
3459 < case $debug in
3460 <  1)
3461 <     ;;
3462 <  *)
3459 > ac_ext=f90
3460 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3461 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3463  
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
3464  
3465 <  *linux*) if test "$CC" = icc; then
3466 <                    CFLAGS="-O"
3467 <                fi;;
3468 <  sparc-solaris2*) if test "$CC" = cc; then
3469 <                    CFLAGS="-native -fast -xO5 -dalign"
3470 <                 fi;;
3471 <
3472 <  alpha*-osf*)  if test "$CC" = cc; then
2539 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
2540 <                fi;;
2541 <
2542 <  hppa*-hpux*)  if test "$CC" = cc; then
2543 <                    CFLAGS="-Ae +O3 +Oall"
2544 <                fi;;
2545 <
2546 <   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
2576 <
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
2581 <
2582 <  # test for gcc-specific flags:
2583 <  if test $ac_cv_c_compiler_gnu = yes; then
2584 <    # -malign-double for x86 systems
2585 <
2586 < echo "$as_me:2586: checking whether ${CC-cc} accepts -malign-double" >&5
2587 < echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
2588 < if test "${ac_align_double+set}" = set; then
3465 >
3466 > ac_ext=f90
3467 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3468 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3470 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3471 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3472 > if test "${ac_cv_prog_f90_v+set}" = set; then
3473    echo $ECHO_N "(cached) $ECHO_C" >&6
3474   else
2591  echo 'void f(){}' > conftest.c
2592 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
2593        ac_align_double=yes
2594 else
2595        ac_align_double=no
2596 fi
2597 rm -f conftest*
3475  
3476 < 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 <        :
3476 > cat >conftest.$ac_ext <<_ACEOF
3477  
3478 < fi
3478 > program main
3479  
2610    # -fstrict-aliasing for gcc-2.95+
3480  
3481 < 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*
3481 > end program main
3482  
3483 < fi
3484 < echo "$as_me:2626: result: $ac_fstrict_aliasing" >&5
3485 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3486 < if test "$ac_fstrict_aliasing" = yes; then
3487 <        :
3488 <        CFLAGS="$CFLAGS -fstrict-aliasing"
3489 < else
3490 <        :
3491 <
3492 < fi
3483 > _ACEOF
3484 > rm -f conftest.$ac_objext
3485 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 >  (eval $ac_compile) 2>conftest.er1
3487 >  ac_status=$?
3488 >  grep -v '^ *+' conftest.er1 >conftest.err
3489 >  rm -f conftest.er1
3490 >  cat conftest.err >&5
3491 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 >  (exit $ac_status); } &&
3493 >         { ac_try='test -z "$ac_f90_werror_flag"
3494 >                         || test ! -s conftest.err'
3495 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 >  (eval $ac_try) 2>&5
3497 >  ac_status=$?
3498 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 >  (exit $ac_status); }; } &&
3500 >         { ac_try='test -s conftest.$ac_objext'
3501 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 >  (eval $ac_try) 2>&5
3503 >  ac_status=$?
3504 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 >  (exit $ac_status); }; }; then
3506 >  ac_cv_prog_f90_v=
3507 > # Try some options frequently used verbose output
3508 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3509 >  ac_ext=f90
3510 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3511 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3513 >
3514 > cat >conftest.$ac_ext <<_ACEOF
3515 >
3516 > program main
3517 >
3518 >
3519 > end program main
3520 >
3521 > _ACEOF
3522 >
3523 > # Compile and link our simple test program by passing a flag (argument
3524 > # 1 to this macro) to the Fortran 90 compiler in order to get
3525 > # "verbose" output that we can then parse for the Fortran 90 linker
3526 > # flags.
3527 > ac_save_F90FLAGS=$F90FLAGS
3528 > F90FLAGS="$F90FLAGS $ac_verb"
3529 >
3530 > (eval echo $as_me:3530: \"$ac_link\") >&5
3531 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3532 > echo "$ac_f90_v_output" >&5
3533 > F90FLAGS=$ac_save_F90FLAGS
3534 >
3535 > rm -f conftest.*
3536 > ac_ext=f90
3537 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3538 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3540 >
3541 > # If we are using xlf then replace all the commas with spaces.
3542 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3543 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3544 > fi
3545 >
3546 > # If we are using Cray Fortran then delete quotes.
3547 > # Use "\"" instead of '"' for font-lock-mode.
3548 > # FIXME: a more general fix for quoted arguments with spaces?
3549 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3550 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3551 > fi
3552 >  # look for -l* and *.a constructs in the output
3553 >  for ac_arg in $ac_f90_v_output; do
3554 >     case $ac_arg in
3555 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3556 >          ac_cv_prog_f90_v=$ac_verb
3557 >          break 2 ;;
3558 >     esac
3559 >  done
3560 > done
3561 > if test -z "$ac_cv_prog_f90_v"; then
3562 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3563 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3564 > fi
3565 > else
3566 >  echo "$as_me: failed program was:" >&5
3567 > sed 's/^/| /' conftest.$ac_ext >&5
3568 >
3569 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3570 > echo "$as_me: WARNING: compilation failed" >&2;}
3571 > fi
3572 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573 >
3574 > fi
3575 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3576 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3577 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3578 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3579 > if test "${ac_cv_flibs+set}" = set; then
3580 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3581 > else
3582 >  if test "x$F90LIBS" != "x"; then
3583 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3584 > else
3585 >
3586 > ac_ext=f90
3587 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3588 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3590 >
3591 > cat >conftest.$ac_ext <<_ACEOF
3592 >
3593 > program main
3594 >
3595 >
3596 > end program main
3597 >
3598 > _ACEOF
3599 >
3600 > # Compile and link our simple test program by passing a flag (argument
3601 > # 1 to this macro) to the Fortran 90 compiler in order to get
3602 > # "verbose" output that we can then parse for the Fortran 90 linker
3603 > # flags.
3604 > ac_save_F90FLAGS=$F90FLAGS
3605 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3606 >
3607 > (eval echo $as_me:3607: \"$ac_link\") >&5
3608 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3609 > echo "$ac_f90_v_output" >&5
3610 > F90FLAGS=$ac_save_F90FLAGS
3611 >
3612 > rm -f conftest.*
3613 > ac_ext=f90
3614 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3615 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3617 >
3618 > # If we are using xlf then replace all the commas with spaces.
3619 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3620 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3621 > fi
3622 >
3623 > # If we are using Cray Fortran then delete quotes.
3624 > # Use "\"" instead of '"' for font-lock-mode.
3625 > # FIXME: a more general fix for quoted arguments with spaces?
3626 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3627 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3628 > fi
3629 >
3630 > ac_cv_f90libs=
3631 >
3632 > # Save positional arguments (if any)
3633 > ac_save_positional="$@"
3634 >
3635 > set X $ac_f90_v_output
3636 > while test $# != 1; do
3637 >  shift
3638 >  ac_arg=$1
3639 >  case $ac_arg in
3640 >        [\\/]*.a | ?:[\\/]*.a)
3641 >            ac_exists=false
3642 >  for ac_i in $ac_cv_f90libs; do
3643 >    if test x"$ac_arg" = x"$ac_i"; then
3644 >      ac_exists=true
3645 >      break
3646 >    fi
3647 >  done
3648 >
3649 >  if test x"$ac_exists" = xtrue; then
3650 >  :
3651 > else
3652 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3653 > fi
3654 >
3655 >          ;;
3656 >        -bI:*)
3657 >            ac_exists=false
3658 >  for ac_i in $ac_cv_f90libs; do
3659 >    if test x"$ac_arg" = x"$ac_i"; then
3660 >      ac_exists=true
3661 >      break
3662 >    fi
3663 >  done
3664 >
3665 >  if test x"$ac_exists" = xtrue; then
3666 >  :
3667 > else
3668 >  if test "$ac_compiler_gnu" = yes; then
3669 >  for ac_link_opt in $ac_arg; do
3670 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3671 >  done
3672 > else
3673 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3674 > fi
3675 > fi
3676 >
3677 >          ;;
3678 >          # Ignore these flags.
3679 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3680 >          ;;
3681 >        -lkernel32)
3682 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3683 >          ;;
3684 >        -[LRuY])
3685 >          # These flags, when seen by themselves, take an argument.
3686 >          # We remove the space between option and argument and re-iterate
3687 >          # unless we find an empty arg or a new option (starting with -)
3688 >          case $2 in
3689 >             "" | -*);;
3690 >             *)
3691 >                ac_arg="$ac_arg$2"
3692 >
3693 >                shift; shift
3694 >                set X $ac_arg "$@"
3695 >                ;;
3696 >          esac
3697 >          ;;
3698 >        -YP,*)
3699 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3700 >              ac_exists=false
3701 >  for ac_i in $ac_cv_f90libs; do
3702 >    if test x"$ac_j" = x"$ac_i"; then
3703 >      ac_exists=true
3704 >      break
3705 >    fi
3706 >  done
3707 >
3708 >  if test x"$ac_exists" = xtrue; then
3709 >  :
3710 > else
3711 >  ac_arg="$ac_arg $ac_j"
3712 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3713 > fi
3714 >
3715 >          done
3716 >          ;;
3717 >        -[lLR]*)
3718 >            ac_exists=false
3719 >  for ac_i in $ac_cv_f90libs; do
3720 >    if test x"$ac_arg" = x"$ac_i"; then
3721 >      ac_exists=true
3722 >      break
3723 >    fi
3724 >  done
3725 >
3726 >  if test x"$ac_exists" = xtrue; then
3727 >  :
3728 > else
3729 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3730 > fi
3731 >
3732 >          ;;
3733 >          # Ignore everything else.
3734 >  esac
3735 > done
3736 > # restore positional arguments
3737 > set X $ac_save_positional; shift
3738 >
3739 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3740 > # then we insist that the "run path" must be an absolute path (i.e. it
3741 > # must begin with a "/").
3742 > case `(uname -sr) 2>/dev/null` in
3743 >   "SunOS 5"*)
3744 >      ac_ld_run_path=`echo $ac_f90_v_output |
3745 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3746 >      test "x$ac_ld_run_path" != x &&
3747  
3748 +        if test "$ac_compiler_gnu" = yes; then
3749 +  for ac_link_opt in $ac_ld_run_path; do
3750 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3751 +  done
3752 + else
3753 +  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3754 + fi
3755 +      ;;
3756 + esac
3757 + fi # test "x$F90LIBS" = "x"
3758 +
3759 + fi
3760 + echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3761 + echo "${ECHO_T}$ac_cv_flibs" >&6
3762 + F90LIBS="$ac_cv_f90libs"
3763 +
3764 + ac_ext=f90
3765 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3766 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3768 +
3769 +
3770 + echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3771 + echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3772 + if test "${ac_cv_f90_mangling+set}" = set; then
3773 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3774 + else
3775 +  ac_ext=f90
3776 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3777 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3779 + cat >conftest.$ac_ext <<_ACEOF
3780 + subroutine foobar()
3781 + return
3782 + end
3783 + subroutine foo_bar()
3784 + return
3785 + end
3786 + _ACEOF
3787 + rm -f conftest.$ac_objext
3788 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 +  (eval $ac_compile) 2>conftest.er1
3790 +  ac_status=$?
3791 +  grep -v '^ *+' conftest.er1 >conftest.err
3792 +  rm -f conftest.er1
3793 +  cat conftest.err >&5
3794 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 +  (exit $ac_status); } &&
3796 +         { ac_try='test -z "$ac_f90_werror_flag"
3797 +                         || test ! -s conftest.err'
3798 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 +  (eval $ac_try) 2>&5
3800 +  ac_status=$?
3801 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 +  (exit $ac_status); }; } &&
3803 +         { ac_try='test -s conftest.$ac_objext'
3804 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 +  (eval $ac_try) 2>&5
3806 +  ac_status=$?
3807 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 +  (exit $ac_status); }; }; then
3809 +  mv conftest.$ac_objext cf90_test.$ac_objext
3810 +
3811 +  ac_ext=c
3812 + ac_cpp='$CPP $CPPFLAGS'
3813 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 +
3817 +  ac_save_LIBS=$LIBS
3818 +  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3819 +
3820 +  ac_success=no
3821 +  for ac_foobar in foobar FOOBAR; do
3822 +    for ac_underscore in "" "_"; do
3823 +      ac_func="$ac_foobar$ac_underscore"
3824 +      cat >conftest.$ac_ext <<_ACEOF
3825 + /* confdefs.h.  */
3826 + _ACEOF
3827 + cat confdefs.h >>conftest.$ac_ext
3828 + cat >>conftest.$ac_ext <<_ACEOF
3829 + /* end confdefs.h.  */
3830 +
3831 + /* Override any gcc2 internal prototype to avoid an error.  */
3832 + #ifdef __cplusplus
3833 + extern "C"
3834 + #endif
3835 + /* We use char because int might match the return type of a gcc2
3836 +   builtin and then its argument prototype would still apply.  */
3837 + char $ac_func ();
3838 + int
3839 + main ()
3840 + {
3841 + $ac_func ();
3842 +  ;
3843 +  return 0;
3844 + }
3845 + _ACEOF
3846 + rm -f conftest.$ac_objext conftest$ac_exeext
3847 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 +  (eval $ac_link) 2>conftest.er1
3849 +  ac_status=$?
3850 +  grep -v '^ *+' conftest.er1 >conftest.err
3851 +  rm -f conftest.er1
3852 +  cat conftest.err >&5
3853 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 +  (exit $ac_status); } &&
3855 +         { ac_try='test -z "$ac_c_werror_flag"
3856 +                         || test ! -s conftest.err'
3857 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 +  (eval $ac_try) 2>&5
3859 +  ac_status=$?
3860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 +  (exit $ac_status); }; } &&
3862 +         { ac_try='test -s conftest$ac_exeext'
3863 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 +  (eval $ac_try) 2>&5
3865 +  ac_status=$?
3866 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 +  (exit $ac_status); }; }; then
3868 +  ac_success=yes; break 2
3869 + else
3870 +  echo "$as_me: failed program was:" >&5
3871 + sed 's/^/| /' conftest.$ac_ext >&5
3872 +
3873 + fi
3874 + rm -f conftest.err conftest.$ac_objext \
3875 +      conftest$ac_exeext conftest.$ac_ext
3876 +    done
3877 +  done
3878 +
3879 +  if test "$ac_success" = "yes"; then
3880 +     case $ac_foobar in
3881 +        foobar)
3882 +           ac_case=lower
3883 +           ac_foo_bar=foo_bar
3884 +           ;;
3885 +        FOOBAR)
3886 +           ac_case=upper
3887 +           ac_foo_bar=FOO_BAR
3888 +           ;;
3889 +     esac
3890 +
3891 +     ac_success_extra=no
3892 +     for ac_extra in "" "_"; do
3893 +        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3894 +
3895 +        cat >conftest.$ac_ext <<_ACEOF
3896 + /* confdefs.h.  */
3897 + _ACEOF
3898 + cat confdefs.h >>conftest.$ac_ext
3899 + cat >>conftest.$ac_ext <<_ACEOF
3900 + /* end confdefs.h.  */
3901 +
3902 + /* Override any gcc2 internal prototype to avoid an error.  */
3903 + #ifdef __cplusplus
3904 + extern "C"
3905 + #endif
3906 + /* We use char because int might match the return type of a gcc2
3907 +   builtin and then its argument prototype would still apply.  */
3908 + char $ac_func ();
3909 + int
3910 + main ()
3911 + {
3912 + $ac_func ();
3913 +  ;
3914 +  return 0;
3915 + }
3916 + _ACEOF
3917 + rm -f conftest.$ac_objext conftest$ac_exeext
3918 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919 +  (eval $ac_link) 2>conftest.er1
3920 +  ac_status=$?
3921 +  grep -v '^ *+' conftest.er1 >conftest.err
3922 +  rm -f conftest.er1
3923 +  cat conftest.err >&5
3924 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 +  (exit $ac_status); } &&
3926 +         { ac_try='test -z "$ac_c_werror_flag"
3927 +                         || test ! -s conftest.err'
3928 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 +  (eval $ac_try) 2>&5
3930 +  ac_status=$?
3931 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 +  (exit $ac_status); }; } &&
3933 +         { ac_try='test -s conftest$ac_exeext'
3934 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 +  (eval $ac_try) 2>&5
3936 +  ac_status=$?
3937 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 +  (exit $ac_status); }; }; then
3939 +  ac_success_extra=yes; break
3940 + else
3941 +  echo "$as_me: failed program was:" >&5
3942 + sed 's/^/| /' conftest.$ac_ext >&5
3943 +
3944 + fi
3945 + rm -f conftest.err conftest.$ac_objext \
3946 +      conftest$ac_exeext conftest.$ac_ext
3947 +     done
3948 +
3949 +     if test "$ac_success_extra" = "yes"; then
3950 +        ac_cv_f90_mangling="$ac_case case"
3951 +        if test -z "$ac_underscore"; then
3952 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3953 +        else
3954 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3955 +
3956 +        fi
3957 +        if test -z "$ac_extra"; then
3958 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3959 +        else
3960 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3961 +        fi
3962 +      else
3963 +        ac_cv_f90_mangling="unknown"
3964 +      fi
3965 +  else
3966 +     ac_cv_f90_mangling="unknown"
3967 +
3968    fi
3969  
3970 +  LIBS=$ac_save_LIBS
3971 +  ac_ext=f90
3972 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3973 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3975 +  rm -f cf90_test* conftest*
3976 + else
3977 +  echo "$as_me: failed program was:" >&5
3978 + sed 's/^/| /' conftest.$ac_ext >&5
3979 +
3980 + fi
3981 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982 + ac_ext=f90
3983 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3984 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3986 +
3987 + fi
3988 + echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3989 + echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3990 +
3991 +
3992 +
3993 + case $ac_cv_f90_mangling in
3994 +  "lower case, no underscore, no extra underscore")
3995 +          cat >>confdefs.h <<\_ACEOF
3996 + #define F90_FUNC(name,NAME) name
3997 + _ACEOF
3998 +
3999 +          cat >>confdefs.h <<\_ACEOF
4000 + #define F90_FUNC_(name,NAME) name
4001 + _ACEOF
4002 + ;;
4003 +  "lower case, no underscore, extra underscore")
4004 +          cat >>confdefs.h <<\_ACEOF
4005 + #define F90_FUNC(name,NAME) name
4006 + _ACEOF
4007 +
4008 +          cat >>confdefs.h <<\_ACEOF
4009 + #define F90_FUNC_(name,NAME) name ## _
4010 + _ACEOF
4011 + ;;
4012 +  "lower case, underscore, no extra underscore")
4013 +          cat >>confdefs.h <<\_ACEOF
4014 + #define F90_FUNC(name,NAME) name ## _
4015 + _ACEOF
4016 +
4017 +          cat >>confdefs.h <<\_ACEOF
4018 + #define F90_FUNC_(name,NAME) name ## _
4019 + _ACEOF
4020 + ;;
4021 +  "lower case, underscore, extra underscore")
4022 +          cat >>confdefs.h <<\_ACEOF
4023 + #define F90_FUNC(name,NAME) name ## _
4024 + _ACEOF
4025 +
4026 +          cat >>confdefs.h <<\_ACEOF
4027 + #define F90_FUNC_(name,NAME) name ## __
4028 + _ACEOF
4029 + ;;
4030 +  "upper case, no underscore, no extra underscore")
4031 +          cat >>confdefs.h <<\_ACEOF
4032 + #define F90_FUNC(name,NAME) NAME
4033 + _ACEOF
4034 +
4035 +          cat >>confdefs.h <<\_ACEOF
4036 + #define F90_FUNC_(name,NAME) NAME
4037 + _ACEOF
4038 + ;;
4039 +  "upper case, no underscore, extra underscore")
4040 +          cat >>confdefs.h <<\_ACEOF
4041 + #define F90_FUNC(name,NAME) NAME
4042 + _ACEOF
4043 +
4044 +          cat >>confdefs.h <<\_ACEOF
4045 + #define F90_FUNC_(name,NAME) NAME ## _
4046 + _ACEOF
4047 + ;;
4048 +  "upper case, underscore, no extra underscore")
4049 +          cat >>confdefs.h <<\_ACEOF
4050 + #define F90_FUNC(name,NAME) NAME ## _
4051 + _ACEOF
4052 +
4053 +          cat >>confdefs.h <<\_ACEOF
4054 + #define F90_FUNC_(name,NAME) NAME ## _
4055 + _ACEOF
4056 + ;;
4057 +  "upper case, underscore, extra underscore")
4058 +          cat >>confdefs.h <<\_ACEOF
4059 + #define F90_FUNC(name,NAME) NAME ## _
4060 + _ACEOF
4061 +
4062 +          cat >>confdefs.h <<\_ACEOF
4063 + #define F90_FUNC_(name,NAME) NAME ## __
4064 + _ACEOF
4065 + ;;
4066 +  *)
4067 +          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4068 + echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4069 +          ;;
4070 + esac
4071 +
4072 +
4073 +
4074 +
4075 +
4076 + echo "$as_me:$LINENO: checking for module suffix" >&5
4077 + echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4078 + rm -f conftest*
4079 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4080 + rm -f work*
4081 + cat >conftest.f90 <<EOF
4082 +        module conftest
4083 +        integer n
4084 +        parameter (n=1)
4085 +        end module conftest
4086 + EOF
4087 + # SGI and absoft compilers generates module name in upper case!
4088 + testname="conftest"
4089 + modcase="lower"
4090 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4091 +    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4092 +    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4093 +    if test -z "$MOD" ; then
4094 +        MOD=`ls CONFTEST* 2>/dev/null \
4095 +                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4096 +        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4097 +        if test -n "$MOD" ; then
4098 +            testname="CONFTEST"
4099 +            modcase="upper"
4100 +        fi
4101 +    fi
4102 +    if test -z "$MOD" ; then
4103 +        echo "$as_me:$LINENO: result: unknown" >&5
4104 + echo "${ECHO_T}unknown" >&6
4105 +        # Use mod if we can't figure it out
4106 +        MOD="mod"
4107 +    else
4108 +        echo "$as_me:$LINENO: result: $MOD" >&5
4109 + echo "${ECHO_T}$MOD" >&6
4110 +    fi
4111 +    if test -s work.pcl ; then
4112 +        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4113 + echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4114 +    fi
4115 + else
4116 +    echo "$as_me:$LINENO: result: unknown" >&5
4117 + echo "${ECHO_T}unknown" >&6
4118 + fi
4119 +
4120 +
4121 +
4122 +
4123 +
4124 + # Check for module include path (some use -I, some (Solaris) use -M, some
4125 + # (absoft) use -p).
4126 + # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4127 + # specified, work.pcl and work.pc are created.  However, if you specify
4128 + # a file, it must contain a the name of a file ending in .pc .  Ugh!
4129 + # Use the module made above
4130 + echo "$as_me:$LINENO: checking for module directory path flag" >&5
4131 + echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4132 + rm -f conftest*
4133 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4134 + rm -f work*
4135 + cat >conftest.f90 <<EOF
4136 +        module conftest
4137 +        integer n
4138 +        parameter (n=1)
4139 +        end module conftest
4140 + EOF
4141 + # SGI and absoft compilers generates module name in upper case!
4142 + testname="conftest"
4143 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4144 +   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4145 +   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4146 +   if test -n "$mod" ; then
4147 +      testname="CONFTEST"
4148 +   fi
4149 +   madedir=0
4150 +   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4151 +   cp $testname.$MOD conf
4152 +   rm -f conftest* CONFTEST*
4153 +   cat >conftest1.f90 <<EOF
4154 +        program main
4155 +        use conftest
4156 +        print *, n
4157 +        end
4158 + EOF
4159 +   F90_WORK_FILES_ARG=""
4160 +   F90MODINCSPEC=""
4161 +   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4162 +       MODDIRFLAG="-I"
4163 +       F90MODINCSPEC="-I<dir>"
4164 +       echo "$as_me:$LINENO: result: -I" >&5
4165 + echo "${ECHO_T}-I" >&6
4166 +   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4167 +       MODDIRFLAG="-M"
4168 +       F90MODINCSPEC="-M<dir>"
4169 +       echo "$as_me:$LINENO: result: -M" >&5
4170 + echo "${ECHO_T}-M" >&6
4171 +   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4172 +       MODDIRFLAG="-p"
4173 +       F90MODINCSPEC="-p<dir>"
4174 +       echo "$as_me:$LINENO: result: -p" >&5
4175 + echo "${ECHO_T}-p" >&6
4176 +   elif test -s work.pc ; then
4177 +        cp work.pc conf/mpimod.pc
4178 +        echo "mpimod.pc" > conf/mpimod.pcl
4179 +        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4180 +        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4181 +            MODDIRFLAG='-cl,mpimod.pcl'
4182 +            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4183 + echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4184 +            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4185 +            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4186 +
4187 +        else
4188 +            # The version of the Intel compiler that I have refuses to let
4189 +            # you put the "work catalog" list anywhere but the current
4190 +            # directory. For example, you cannot in
4191 +         :
4192 +        fi
4193 +   fi
4194 +   if test -z "MODDIRFLAG" ; then
4195 +       echo "$as_me:$LINENO: result: unknown" >&5
4196 + echo "${ECHO_T}unknown" >&6
4197 +   fi
4198 +
4199 +
4200 +   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4201 +   if test $madedir = 1 ; then rmdir conf ; fi
4202 + fi
4203 +
4204 +
4205 +
4206 +
4207 + case $debug in
4208 +  1)
4209 +     ;;
4210 +  *)
4211 +
4212 +
4213 +
4214 +
4215 +
4216 +
4217 + echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4218 + echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4219 + if test "${ac_cv_prog_really_gcc+set}" = set; then
4220 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4221 + else
4222 +
4223 + cat > conftest.c <<EOF
4224 + #ifdef __GNUC__
4225 +  #ifndef __INTEL_COMPILER
4226 +     yes;
4227 +  #endif
4228 + #endif
4229 + EOF
4230 + if { ac_try='${CC-cc} -E conftest.c'
4231 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 +  (eval $ac_try) 2>&5
4233 +  ac_status=$?
4234 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4236 +  ac_cv_prog_really_gcc=yes
4237 + else
4238 +  ac_cv_prog_really_gcc=no
4239 + fi
4240 +
4241 + fi
4242 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4243 + echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4244 + if test "$ac_cv_prog_really_gcc" = yes; then
4245 +        :
4246 +
4247 + else
4248 +        :
4249 +
4250 + fi
4251 +
4252 +
4253 + # Try to determine "good" native compiler flags if none specified on command
4254 + # line
4255 + if test "$ac_test_CFLAGS" != "set"; then
4256 +  CFLAGS=""
4257 +  case "${host_cpu}-${host_os}" in
4258 +
4259 +  *linux*) if test "$CC" = icc; then
4260 +                    CFLAGS="-O"
4261 +                fi;;
4262 +  sparc-solaris2*) if test "$CC" = cc; then
4263 +                    CFLAGS="-native -fast -xO5 -dalign"
4264 +                 fi;;
4265 +
4266 +  alpha*-osf*)  if test "$CC" = cc; then
4267 +                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4268 +                fi;;
4269 +
4270 +  hppa*-hpux*)  if test "$CC" = cc; then
4271 +                    CFLAGS="-Ae +O3 +Oall"
4272 +                fi;;
4273 +
4274 +   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4275 +                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4276 +                fi;;
4277 +   powerpc*-aix*)
4278 +        if test "$CC" = cc -o "$CC" = xlc; then
4279 +                CFLAGS="-O3 -qtune=auto -qansialias -w"
4280 +                echo "*******************************************************"
4281 +                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4282 +                echo "*  recommended that you use                           *"
4283 +                echo "*                                                     *"
4284 +                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4285 +                echo "*                                 ^^^                 *"
4286 +                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4287 +                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4288 +                echo "*******************************************************"
4289 +        fi;;
4290 +   *darwin*)
4291 +        if test "$CC" = xlc -o "$CC" = cc; then
4292 +                CFLAGS="-qthreaded -O5 -Q=20 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4293 +        fi;;
4294 +  esac
4295 +
4296 +  # use default flags for gcc on all systems
4297 +  if test $ac_cv_prog_really_gcc = yes; then
4298 +     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4299 +  fi
4300 +
4301 +  # test for gcc-specific flags:
4302 +  if test $ac_cv_prog_really_gcc = yes; then
4303 +    # -malign-double for x86 systems
4304 +
4305 +
4306 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4307 + echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4308 + if test "${ac_align_double+set}" = set; then
4309 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4310 + else
4311 +  echo 'void f(){}' > conftest.c
4312 + if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4313 +        ac_align_double=yes
4314 + else
4315 +        ac_align_double=no
4316 + fi
4317 + rm -f conftest*
4318 +
4319 + fi
4320 + echo "$as_me:$LINENO: result: $ac_align_double" >&5
4321 + echo "${ECHO_T}$ac_align_double" >&6
4322 + if test "$ac_align_double" = yes; then
4323 +        :
4324 +        CFLAGS="$CFLAGS -malign-double"
4325 + else
4326 +        :
4327 +
4328 + fi
4329 +
4330 +    # -fstrict-aliasing for gcc-2.95+
4331 +
4332 +
4333 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4334 + echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4335 + if test "${ac_fstrict_aliasing+set}" = set; then
4336 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4337 + else
4338 +  echo 'void f(){}' > conftest.c
4339 + if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4340 +        ac_fstrict_aliasing=yes
4341 + else
4342 +        ac_fstrict_aliasing=no
4343 + fi
4344 + rm -f conftest*
4345 +
4346 + fi
4347 + echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4348 + echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4349 + if test "$ac_fstrict_aliasing" = yes; then
4350 +        :
4351 +        CFLAGS="$CFLAGS -fstrict-aliasing"
4352 + else
4353 +        :
4354 +
4355 + fi
4356 +
4357 +  fi
4358 +
4359    CPU_FLAGS=""
4360 <  if test "$GCC" = "yes"; then
4360 >  if test $ac_cv_prog_really_gcc = yes; then
4361                    case "${host_cpu}" in
4362            i586*)
4363  
4364 < echo "$as_me:2643: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4364 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4365   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4366   if test "${ac_cpu_pentium+set}" = set; then
4367    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2654 | Line 4375 | echo "$as_me:2657: result: $ac_cpu_pentium" >&5
4375   rm -f conftest*
4376  
4377   fi
4378 < echo "$as_me:2657: result: $ac_cpu_pentium" >&5
4378 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4379   echo "${ECHO_T}$ac_cpu_pentium" >&6
4380   if test "$ac_cpu_pentium" = yes; then
4381          :
# Line 2662 | Line 4383 | echo "$as_me:2665: checking whether ${CC-cc} accepts -
4383   else
4384          :
4385  
4386 < echo "$as_me:2665: checking whether ${CC-cc} accepts -mpentium" >&5
4386 >
4387 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4388   echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4389   if test "${ac_pentium+set}" = set; then
4390    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2676 | Line 4398 | echo "$as_me:2679: result: $ac_pentium" >&5
4398   rm -f conftest*
4399  
4400   fi
4401 < echo "$as_me:2679: result: $ac_pentium" >&5
4401 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4402   echo "${ECHO_T}$ac_pentium" >&6
4403   if test "$ac_pentium" = yes; then
4404          :
# Line 2691 | Line 4413 | echo "$as_me:2694: checking whether ${CC-cc} accepts -
4413                    ;;
4414            i686*)
4415  
4416 < echo "$as_me:2694: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4416 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4417   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4418   if test "${ac_cpu_pentiumpro+set}" = set; then
4419    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2705 | Line 4427 | echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5
4427   rm -f conftest*
4428  
4429   fi
4430 < echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5
4430 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4431   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4432   if test "$ac_cpu_pentiumpro" = yes; then
4433          :
# Line 2713 | Line 4435 | echo "$as_me:2716: checking whether ${CC-cc} accepts -
4435   else
4436          :
4437  
4438 < echo "$as_me:2716: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4438 >
4439 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4440   echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4441   if test "${ac_pentiumpro+set}" = set; then
4442    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2727 | Line 4450 | echo "$as_me:2730: result: $ac_pentiumpro" >&5
4450   rm -f conftest*
4451  
4452   fi
4453 < echo "$as_me:2730: result: $ac_pentiumpro" >&5
4453 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4454   echo "${ECHO_T}$ac_pentiumpro" >&6
4455   if test "$ac_pentiumpro" = yes; then
4456          :
# Line 2745 | Line 4468 | echo "$as_me:2748: checking whether ${CC-cc} accepts -
4468                  is60x=`echo $cputype | egrep "^600-9e?$"`
4469                  if test -n "$is60x"; then
4470  
4471 < echo "$as_me:2748: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4471 >
4472 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4473   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4474   if test "${ac_m_cpu_60x+set}" = set; then
4475    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2759 | Line 4483 | echo "$as_me:2762: result: $ac_m_cpu_60x" >&5
4483   rm -f conftest*
4484  
4485   fi
4486 < echo "$as_me:2762: result: $ac_m_cpu_60x" >&5
4486 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4487   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4488   if test "$ac_m_cpu_60x" = yes; then
4489          :
# Line 2771 | Line 4495 | echo "$as_me:2774: checking whether we are using gcc 2
4495  
4496                  elif test "$cputype" = 750; then
4497  
4498 < echo "$as_me:2774: checking whether we are using gcc 2.95 or later" >&5
4498 >
4499 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4500   echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4501   if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4502    echo $ECHO_N "(cached) $ECHO_C" >&6
4503   else
4504  
4505   cat > conftest.c <<EOF
4506 < #ifdef __GNUC__
4506 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4507   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4508       yes;
4509   #  endif
4510   #endif
4511   EOF
4512   if { ac_try='${CC-cc} -E conftest.c'
4513 <  { (eval echo "$as_me:2788: \"$ac_try\"") >&5
4513 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514    (eval $ac_try) 2>&5
4515    ac_status=$?
4516 <  echo "$as_me:2791: \$? = $ac_status" >&5
4516 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4518    ac_cv_prog_gcc_2_95=yes
4519   else
# Line 2796 | Line 4521 | echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5
4521   fi
4522  
4523   fi
4524 < echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5
4524 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4525   echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4526   if test "$ac_cv_prog_gcc_2_95" = yes; then
4527          :
4528  
4529 < echo "$as_me:2804: checking whether ${CC-cc} accepts -mcpu=750" >&5
4529 >
4530 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4531   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4532   if test "${ac_m_cpu_750+set}" = set; then
4533    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2815 | Line 4541 | echo "$as_me:2818: result: $ac_m_cpu_750" >&5
4541   rm -f conftest*
4542  
4543   fi
4544 < echo "$as_me:2818: result: $ac_m_cpu_750" >&5
4544 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4545   echo "${ECHO_T}$ac_m_cpu_750" >&6
4546   if test "$ac_m_cpu_750" = yes; then
4547          :
# Line 2833 | Line 4559 | echo "$as_me:2836: checking whether ${CC-cc} accepts -
4559                  fi
4560                  if test -z "$CPU_FLAGS"; then
4561  
4562 < echo "$as_me:2836: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4562 >
4563 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4564   echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4565   if test "${ac_m_cpu_powerpc+set}" = set; then
4566    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2847 | Line 4574 | echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
4574   rm -f conftest*
4575  
4576   fi
4577 < echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
4577 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4578   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4579   if test "$ac_m_cpu_powerpc" = yes; then
4580          :
# Line 2860 | Line 4587 | echo "$as_me:2863: checking whether ${CC-cc} accepts -
4587                  fi
4588                  if test -z "$CPU_FLAGS"; then
4589  
4590 < echo "$as_me:2863: checking whether ${CC-cc} accepts -mpowerpc" >&5
4590 >
4591 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4592   echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4593   if test "${ac_m_powerpc+set}" = set; then
4594    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2874 | Line 4602 | echo "$as_me:2877: result: $ac_m_powerpc" >&5
4602   rm -f conftest*
4603  
4604   fi
4605 < echo "$as_me:2877: result: $ac_m_powerpc" >&5
4605 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4606   echo "${ECHO_T}$ac_m_powerpc" >&6
4607   if test "$ac_m_powerpc" = yes; then
4608          :
# Line 2903 | Line 4631 | echo "$as_me:2906: checking whether ${CC-cc} accepts $
4631          CFLAGS="-O3"
4632    fi
4633  
4634 < echo "$as_me:2906: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4634 >
4635 >
4636 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4637   echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4638   if test "${ac_guessed_cflags+set}" = set; then
4639    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2917 | Line 4647 | echo "$as_me:2920: result: $ac_guessed_cflags" >&5
4647   rm -f conftest*
4648  
4649   fi
4650 < echo "$as_me:2920: result: $ac_guessed_cflags" >&5
4650 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4651   echo "${ECHO_T}$ac_guessed_cflags" >&6
4652   if test "$ac_guessed_cflags" = yes; then
4653          :
# Line 2936 | Line 4666 | fi
4666  
4667   fi
4668  
4669 +
4670   fi
4671  
4672 +
4673 +
4674 +
4675 +
4676 +
4677 +
4678 + echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4679 + echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4680 + if test "${ac_cv_prog_really_gxx+set}" = set; then
4681 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4682 + else
4683 +
4684 + cat > conftest.cpp <<EOF
4685 + #ifdef __GNUC__
4686 +  #ifndef __INTEL_COMPILER
4687 +     yes;
4688 +  #endif
4689 + #endif
4690 + EOF
4691 + if { ac_try='${CXX-c++} -E conftest.cpp'
4692 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 +  (eval $ac_try) 2>&5
4694 +  ac_status=$?
4695 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4697 +  ac_cv_prog_really_gxx=yes
4698 + else
4699 +  ac_cv_prog_really_gxx=no
4700 + fi
4701 +
4702 + fi
4703 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4704 + echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4705 + if test "$ac_cv_prog_really_gxx" = yes; then
4706 +        :
4707 +
4708 + else
4709 +        :
4710 +
4711 + fi
4712 +
4713 +
4714   # Try to determine "good" native compiler flags if none specified on command
4715   # line
4716   if test "$ac_test_CXXFLAGS" != "set"; then
# Line 2968 | Line 4741 | if test "$ac_test_CXXFLAGS" != "set"; then
4741          fi;;
4742     *darwin*)
4743          if test "$CXX" = xlC; then
4744 <                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 "*******************************************************"
4744 >                CXXFLAGS="-qthreaded -O5 -Q=20 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4745          fi;;
4746    esac
4747  
4748    # use default flags for gcc on all systems
4749 <  if test $ac_cv_c_compiler_gnu = yes; then
4749 >  if test $ac_cv_prog_really_gxx = yes; then
4750       CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4751    fi
4752  
4753    # test for gcc-specific flags:
4754 <  if test $ac_cv_c_compiler_gnu = yes; then
4754 >  if test $ac_cv_prog_really_gxx = yes; then
4755      # -malign-double for x86 systems
4756  
4757 < echo "$as_me:2993: checking whether ${CXX-c++} accepts -malign-double" >&5
4757 >
4758 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4759   echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4760   if test "${ac_align_double+set}" = set; then
4761    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3004 | Line 4769 | echo "$as_me:3007: result: $ac_align_double" >&5
4769   rm -f conftest*
4770  
4771   fi
4772 < echo "$as_me:3007: result: $ac_align_double" >&5
4772 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4773   echo "${ECHO_T}$ac_align_double" >&6
4774   if test "$ac_align_double" = yes; then
4775          :
# Line 3016 | Line 4781 | echo "$as_me:3019: checking whether ${CXX-c++} accepts
4781  
4782      # -fstrict-aliasing for gcc-2.95+
4783  
4784 < echo "$as_me:3019: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4784 >
4785 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4786   echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4787   if test "${ac_fstrict_aliasing+set}" = set; then
4788    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3030 | Line 4796 | echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
4796   rm -f conftest*
4797  
4798   fi
4799 < echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
4799 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4800   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4801   if test "$ac_fstrict_aliasing" = yes; then
4802          :
# Line 3043 | Line 4809 | fi
4809    fi
4810  
4811    CPU_FLAGS=""
4812 <  if test "$GCC" = "yes"; then
4812 >  if test $ac_cv_prog_really_gxx = yes; then
4813                    case "${host_cpu}" in
4814            i586*)
4815  
4816 < echo "$as_me:3050: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4817 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4816 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4817 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4818   if test "${ac_cpu_pentium+set}" = set; then
4819    echo $ECHO_N "(cached) $ECHO_C" >&6
4820   else
4821 <  echo 'void f(){}' > conftest.c
4822 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4821 >  echo 'void f(){}' > conftest.cpp
4822 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4823          ac_cpu_pentium=yes
4824   else
4825          ac_cpu_pentium=no
# Line 3061 | Line 4827 | echo "$as_me:3064: result: $ac_cpu_pentium" >&5
4827   rm -f conftest*
4828  
4829   fi
4830 < echo "$as_me:3064: result: $ac_cpu_pentium" >&5
4830 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4831   echo "${ECHO_T}$ac_cpu_pentium" >&6
4832   if test "$ac_cpu_pentium" = yes; then
4833          :
# Line 3069 | Line 4835 | echo "$as_me:3072: checking whether ${CXX-c++} accepts
4835   else
4836          :
4837  
4838 < echo "$as_me:3072: checking whether ${CXX-c++} accepts -mpentium" >&5
4838 >
4839 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4840   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4841   if test "${ac_pentium+set}" = set; then
4842    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3083 | Line 4850 | echo "$as_me:3086: result: $ac_pentium" >&5
4850   rm -f conftest*
4851  
4852   fi
4853 < echo "$as_me:3086: result: $ac_pentium" >&5
4853 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4854   echo "${ECHO_T}$ac_pentium" >&6
4855   if test "$ac_pentium" = yes; then
4856          :
# Line 3098 | Line 4865 | echo "$as_me:3101: checking whether ${CXX-c++} accepts
4865                    ;;
4866            i686*)
4867  
4868 < echo "$as_me:3101: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4868 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4869   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4870   if test "${ac_cpu_pentiumpro+set}" = set; then
4871    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3112 | Line 4879 | echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
4879   rm -f conftest*
4880  
4881   fi
4882 < echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
4882 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4883   echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4884   if test "$ac_cpu_pentiumpro" = yes; then
4885          :
# Line 3120 | Line 4887 | echo "$as_me:3123: checking whether ${CXX-c++} accepts
4887   else
4888          :
4889  
4890 < echo "$as_me:3123: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4890 >
4891 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4892   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4893   if test "${ac_pentiumpro+set}" = set; then
4894    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3134 | Line 4902 | echo "$as_me:3137: result: $ac_pentiumpro" >&5
4902   rm -f conftest*
4903  
4904   fi
4905 < echo "$as_me:3137: result: $ac_pentiumpro" >&5
4905 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4906   echo "${ECHO_T}$ac_pentiumpro" >&6
4907   if test "$ac_pentiumpro" = yes; then
4908          :
# Line 3152 | Line 4920 | echo "$as_me:3155: checking whether ${CXX-c++} accepts
4920                  is60x=`echo $cputype | egrep "^600-9e?$"`
4921                  if test -n "$is60x"; then
4922  
4923 < echo "$as_me:3155: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4923 >
4924 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4925   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4926   if test "${ac_m_cpu_60x+set}" = set; then
4927    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3166 | Line 4935 | echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
4935   rm -f conftest*
4936  
4937   fi
4938 < echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
4938 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4939   echo "${ECHO_T}$ac_m_cpu_60x" >&6
4940   if test "$ac_m_cpu_60x" = yes; then
4941          :
# Line 3178 | Line 4947 | echo "$as_me:3181: checking whether we are using gcc 2
4947  
4948                  elif test "$cputype" = 750; then
4949  
4950 < echo "$as_me:3181: checking whether we are using gcc 2.95 or later" >&5
4951 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4952 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4950 >
4951 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4952 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4953 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4954    echo $ECHO_N "(cached) $ECHO_C" >&6
4955   else
4956  
4957 < cat > conftest.c <<EOF
4958 < #ifdef __GNUC__
4957 > cat > conftest.cpp <<EOF
4958 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4959   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4960       yes;
4961   #  endif
4962   #endif
4963   EOF
4964 < if { ac_try='${CC-cc} -E conftest.c'
4965 <  { (eval echo "$as_me:3195: \"$ac_try\"") >&5
4964 > if { ac_try='${CXX-c++} -E conftest.cpp'
4965 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966    (eval $ac_try) 2>&5
4967    ac_status=$?
4968 <  echo "$as_me:3198: \$? = $ac_status" >&5
4968 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4970 <  ac_cv_prog_gcc_2_95=yes
4970 >  ac_cv_prog_gxx_2_95=yes
4971   else
4972 <  ac_cv_prog_gcc_2_95=no
4972 >  ac_cv_prog_gxx_2_95=no
4973   fi
4974  
4975   fi
4976 < echo "$as_me:3206: result: $ac_cv_prog_gcc_2_95" >&5
4977 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4978 < if test "$ac_cv_prog_gcc_2_95" = yes; then
4976 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4977 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4978 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4979          :
4980  
4981 < echo "$as_me:3211: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4981 >
4982 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4983   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4984   if test "${ac_m_cpu_750+set}" = set; then
4985    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3222 | Line 4993 | echo "$as_me:3225: result: $ac_m_cpu_750" >&5
4993   rm -f conftest*
4994  
4995   fi
4996 < echo "$as_me:3225: result: $ac_m_cpu_750" >&5
4996 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4997   echo "${ECHO_T}$ac_m_cpu_750" >&6
4998   if test "$ac_m_cpu_750" = yes; then
4999          :
# Line 3240 | Line 5011 | echo "$as_me:3243: checking whether ${CXX-c++} accepts
5011                  fi
5012                  if test -z "$CPU_FLAGS"; then
5013  
5014 < echo "$as_me:3243: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5014 >
5015 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5016   echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5017   if test "${ac_m_cpu_powerpc+set}" = set; then
5018    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3254 | Line 5026 | echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
5026   rm -f conftest*
5027  
5028   fi
5029 < echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
5029 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5030   echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5031   if test "$ac_m_cpu_powerpc" = yes; then
5032          :
# Line 3267 | Line 5039 | echo "$as_me:3270: checking whether ${CXX-c++} accepts
5039                  fi
5040                  if test -z "$CPU_FLAGS"; then
5041  
5042 < echo "$as_me:3270: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5042 >
5043 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5044   echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5045   if test "${ac_m_powerpc+set}" = set; then
5046    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3281 | Line 5054 | echo "$as_me:3284: result: $ac_m_powerpc" >&5
5054   rm -f conftest*
5055  
5056   fi
5057 < echo "$as_me:3284: result: $ac_m_powerpc" >&5
5057 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5058   echo "${ECHO_T}$ac_m_powerpc" >&6
5059   if test "$ac_m_powerpc" = yes; then
5060          :
# Line 3310 | Line 5083 | echo "$as_me:3313: checking whether ${CXX-c++} accepts
5083          CXXFLAGS="-O3"
5084    fi
5085  
5086 < echo "$as_me:3313: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5086 >
5087 >
5088 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5089   echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5090   if test "${ac_guessed_cxxflags+set}" = set; then
5091    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3324 | Line 5099 | echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
5099   rm -f conftest*
5100  
5101   fi
5102 < echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
5102 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5103   echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5104   if test "$ac_guessed_cxxflags" = yes; then
5105          :
# Line 3343 | Line 5118 | fi
5118  
5119   fi
5120  
5121 +
5122   fi
5123  
5124 +
5125 +
5126 +
5127 +
5128   # Try to determine "good" native compiler flags if none specified on command
5129   # line
5130  
# Line 3352 | Line 5132 | if test x"$F90FLAGS" = x ; then
5132    F90FLAGS=""
5133    case "${host_cpu}-${host_os}" in
5134  
5135 <  *linux*) if test "$F90" = ifc; then
5135 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5136                      F90FLAGS="-O"
5137                  fi;;
5138     rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3373 | Line 5153 | if test x"$F90FLAGS" = x ; then
5153          fi;;
5154     *darwin*)
5155          if test "$F90" = f90 -o "$F90" = xlf90; then
5156 <                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 "*********************************************************"
5156 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
5157          fi;;
5158    esac
5159  
# Line 3401 | Line 5172 | echo "$as_me:3404: checking whether ${F90-f90} accepts
5172          F90FLAGS="-O3"
5173    fi
5174  
5175 < echo "$as_me:3404: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5175 >
5176 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5177   echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5178   if test "${ac_guessed_f90flags+set}" = set; then
5179    echo $ECHO_N "(cached) $ECHO_C" >&6
5180   else
5181  
5182 +
5183 +
5184   ac_ext=f90
5185   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5186   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3415 | Line 5189 | if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
5189   echo 'program main' > conftest.$ac_ext
5190   echo 'end program main' >> conftest.$ac_ext
5191   ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5192 < if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
5192 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193    (eval $ac_compile) 2>&5
5194    ac_status=$?
5195 <  echo "$as_me:3421: \$? = $ac_status" >&5
5195 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196    (exit $ac_status); }; then
5197          ac_guessed_f90flags=yes
5198   else
5199          ac_guessed_f90flags=no
5200   fi
5201   rm -f conftest*
5202 < ac_ext=c
5203 < ac_cpp='$CPP $CPPFLAGS'
5204 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 > ac_ext=f90
5203 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5204 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5206  
5207 +
5208   fi
5209 < echo "$as_me:3435: result: $ac_guessed_f90flags" >&5
5209 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5210   echo "${ECHO_T}$ac_guessed_f90flags" >&6
5211   if test "$ac_guessed_f90flags" = yes; then
5212          :
# Line 3451 | Line 5225 | fi
5225  
5226   fi
5227  
5228 +
5229   fi
5230  
5231       ;;
# Line 3467 | Line 5242 | esac
5242   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5243   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5244   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5245 + # OS/2's system install, which has a completely different semantic
5246   # ./install, which can be erroneously created by make from ./install.sh.
5247 < echo "$as_me:3471: checking for a BSD compatible install" >&5
5248 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5247 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5248 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5249   if test -z "$INSTALL"; then
5250   if test "${ac_cv_path_install+set}" = set; then
5251    echo $ECHO_N "(cached) $ECHO_C" >&6
5252   else
5253 <    ac_save_IFS=$IFS; IFS=$ac_path_separator
5254 <  for ac_dir in $PATH; do
5255 <    IFS=$ac_save_IFS
5256 <    # Account for people who put trailing slashes in PATH elements.
5257 <    case $ac_dir/ in
5258 <    / | ./ | .// | /cC/* \
5259 <    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
5260 <    | /usr/ucb/* ) ;;
5261 <    *)
5262 <      # OSF1 and SCO ODT 3.0 have their own names for install.
5263 <      # Don't use installbsd from OSF since it installs stuff as root
5264 <      # by default.
5265 <      for ac_prog in ginstall scoinst install; do
5266 <        if $as_executable_p "$ac_dir/$ac_prog"; then
5253 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 > for as_dir in $PATH
5255 > do
5256 >  IFS=$as_save_IFS
5257 >  test -z "$as_dir" && as_dir=.
5258 >  # Account for people who put trailing slashes in PATH elements.
5259 > case $as_dir/ in
5260 >  ./ | .// | /cC/* | \
5261 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5262 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5263 >  /usr/ucb/* ) ;;
5264 >  *)
5265 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5266 >    # Don't use installbsd from OSF since it installs stuff as root
5267 >    # by default.
5268 >    for ac_prog in ginstall scoinst install; do
5269 >      for ac_exec_ext in '' $ac_executable_extensions; do
5270 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5271            if test $ac_prog = install &&
5272 <            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5272 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5273              # AIX install.  It has an incompatible calling convention.
5274              :
5275            elif test $ac_prog = install &&
5276 <            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
5276 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5277              # program-specific install script used by HP pwplus--don't use.
5278              :
5279            else
5280 <            ac_cv_path_install="$ac_dir/$ac_prog -c"
5281 <            break 2
5280 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5281 >            break 3
5282            fi
5283          fi
5284        done
5285 <      ;;
5286 <    esac
5287 <  done
5285 >    done
5286 >    ;;
5287 > esac
5288 > done
5289  
5290 +
5291   fi
5292    if test "${ac_cv_path_install+set}" = set; then
5293      INSTALL=$ac_cv_path_install
# Line 3517 | Line 5299 | echo "$as_me:3520: result: $INSTALL" >&5
5299      INSTALL=$ac_install_sh
5300    fi
5301   fi
5302 < echo "$as_me:3520: result: $INSTALL" >&5
5302 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5303   echo "${ECHO_T}$INSTALL" >&6
5304  
5305   # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# Line 3528 | Line 5310 | echo "$as_me:3531: checking whether ln -s works" >&5
5310  
5311   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5312  
5313 < echo "$as_me:3531: checking whether ln -s works" >&5
5313 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5314   echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5315   LN_S=$as_ln_s
5316   if test "$LN_S" = "ln -s"; then
5317 <  echo "$as_me:3535: result: yes" >&5
5317 >  echo "$as_me:$LINENO: result: yes" >&5
5318   echo "${ECHO_T}yes" >&6
5319   else
5320 <  echo "$as_me:3538: result: no, using $LN_S" >&5
5320 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5321   echo "${ECHO_T}no, using $LN_S" >&6
5322   fi
5323  
5324 < echo "$as_me:3542: checking whether ${MAKE-make} sets \${MAKE}" >&5
5325 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5326 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5324 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5325 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5326 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5327   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5328    echo $ECHO_N "(cached) $ECHO_C" >&6
5329   else
5330 <  cat >conftest.make <<\EOF
5330 >  cat >conftest.make <<\_ACEOF
5331   all:
5332 <        @echo 'ac_maketemp="${MAKE}"'
5333 < EOF
5332 >        @echo 'ac_maketemp="$(MAKE)"'
5333 > _ACEOF
5334   # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5335   eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5336   if test -n "$ac_maketemp"; then
# Line 3559 | Line 5341 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_se
5341   rm -f conftest.make
5342   fi
5343   if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5344 <  echo "$as_me:3562: result: yes" >&5
5344 >  echo "$as_me:$LINENO: result: yes" >&5
5345   echo "${ECHO_T}yes" >&6
5346    SET_MAKE=
5347   else
5348 <  echo "$as_me:3566: result: no" >&5
5348 >  echo "$as_me:$LINENO: result: no" >&5
5349   echo "${ECHO_T}no" >&6
5350    SET_MAKE="MAKE=${MAKE-make}"
5351   fi
# Line 3571 | Line 5353 | echo "$as_me:3574: checking for $ac_word" >&5
5353   if test -n "$ac_tool_prefix"; then
5354    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5355   set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5356 < echo "$as_me:3574: checking for $ac_word" >&5
5356 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5357   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5358   if test "${ac_cv_prog_RANLIB+set}" = set; then
5359    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3579 | Line 5361 | else
5361    if test -n "$RANLIB"; then
5362    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5363   else
5364 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5365 < ac_dummy="$PATH"
5366 < for ac_dir in $ac_dummy; do
5367 <  IFS=$ac_save_IFS
5368 <  test -z "$ac_dir" && ac_dir=.
5369 <  $as_executable_p "$ac_dir/$ac_word" || continue
5370 < ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5371 < echo "$as_me:3589: found $ac_dir/$ac_word" >&5
5372 < break
5364 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 > for as_dir in $PATH
5366 > do
5367 >  IFS=$as_save_IFS
5368 >  test -z "$as_dir" && as_dir=.
5369 >  for ac_exec_ext in '' $ac_executable_extensions; do
5370 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5372 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 >    break 2
5374 >  fi
5375   done
5376 + done
5377  
5378   fi
5379   fi
5380   RANLIB=$ac_cv_prog_RANLIB
5381   if test -n "$RANLIB"; then
5382 <  echo "$as_me:3597: result: $RANLIB" >&5
5382 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5383   echo "${ECHO_T}$RANLIB" >&6
5384   else
5385 <  echo "$as_me:3600: result: no" >&5
5385 >  echo "$as_me:$LINENO: result: no" >&5
5386   echo "${ECHO_T}no" >&6
5387   fi
5388  
# Line 3606 | Line 5391 | echo "$as_me:3609: checking for $ac_word" >&5
5391    ac_ct_RANLIB=$RANLIB
5392    # Extract the first word of "ranlib", so it can be a program name with args.
5393   set dummy ranlib; ac_word=$2
5394 < echo "$as_me:3609: checking for $ac_word" >&5
5394 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5395   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5396   if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5397    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3614 | Line 5399 | else
5399    if test -n "$ac_ct_RANLIB"; then
5400    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5401   else
5402 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5403 < ac_dummy="$PATH"
5404 < for ac_dir in $ac_dummy; do
5405 <  IFS=$ac_save_IFS
5406 <  test -z "$ac_dir" && ac_dir=.
5407 <  $as_executable_p "$ac_dir/$ac_word" || continue
5408 < ac_cv_prog_ac_ct_RANLIB="ranlib"
5409 < echo "$as_me:3624: found $ac_dir/$ac_word" >&5
5410 < break
5402 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 > for as_dir in $PATH
5404 > do
5405 >  IFS=$as_save_IFS
5406 >  test -z "$as_dir" && as_dir=.
5407 >  for ac_exec_ext in '' $ac_executable_extensions; do
5408 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5410 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 >    break 2
5412 >  fi
5413   done
5414 + done
5415  
5416    test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5417   fi
5418   fi
5419   ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5420   if test -n "$ac_ct_RANLIB"; then
5421 <  echo "$as_me:3633: result: $ac_ct_RANLIB" >&5
5421 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5422   echo "${ECHO_T}$ac_ct_RANLIB" >&6
5423   else
5424 <  echo "$as_me:3636: result: no" >&5
5424 >  echo "$as_me:$LINENO: result: no" >&5
5425   echo "${ECHO_T}no" >&6
5426   fi
5427  
# Line 3646 | Line 5434 | echo "$as_me:3649: checking for $ac_word" >&5
5434   do
5435    # Extract the first word of "$ac_prog", so it can be a program name with args.
5436   set dummy $ac_prog; ac_word=$2
5437 < echo "$as_me:3649: checking for $ac_word" >&5
5437 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5438   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5439   if test "${ac_cv_prog_YACC+set}" = set; then
5440    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3654 | Line 5442 | else
5442    if test -n "$YACC"; then
5443    ac_cv_prog_YACC="$YACC" # Let the user override the test.
5444   else
5445 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5446 < ac_dummy="$PATH"
5447 < for ac_dir in $ac_dummy; do
5448 <  IFS=$ac_save_IFS
5449 <  test -z "$ac_dir" && ac_dir=.
5450 <  $as_executable_p "$ac_dir/$ac_word" || continue
5451 < ac_cv_prog_YACC="$ac_prog"
5452 < echo "$as_me:3664: found $ac_dir/$ac_word" >&5
5453 < break
5445 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 > for as_dir in $PATH
5447 > do
5448 >  IFS=$as_save_IFS
5449 >  test -z "$as_dir" && as_dir=.
5450 >  for ac_exec_ext in '' $ac_executable_extensions; do
5451 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452 >    ac_cv_prog_YACC="$ac_prog"
5453 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 >    break 2
5455 >  fi
5456   done
5457 + done
5458  
5459   fi
5460   fi
5461   YACC=$ac_cv_prog_YACC
5462   if test -n "$YACC"; then
5463 <  echo "$as_me:3672: result: $YACC" >&5
5463 >  echo "$as_me:$LINENO: result: $YACC" >&5
5464   echo "${ECHO_T}$YACC" >&6
5465   else
5466 <  echo "$as_me:3675: result: no" >&5
5466 >  echo "$as_me:$LINENO: result: no" >&5
5467   echo "${ECHO_T}no" >&6
5468   fi
5469  
# Line 3684 | Line 5475 | echo "$as_me:3687: checking for $ac_word" >&5
5475   do
5476    # Extract the first word of "$ac_prog", so it can be a program name with args.
5477   set dummy $ac_prog; ac_word=$2
5478 < echo "$as_me:3687: checking for $ac_word" >&5
5478 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5479   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480   if test "${ac_cv_prog_LEX+set}" = set; then
5481    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3692 | Line 5483 | else
5483    if test -n "$LEX"; then
5484    ac_cv_prog_LEX="$LEX" # Let the user override the test.
5485   else
5486 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5487 < ac_dummy="$PATH"
5488 < for ac_dir in $ac_dummy; do
5489 <  IFS=$ac_save_IFS
5490 <  test -z "$ac_dir" && ac_dir=.
5491 <  $as_executable_p "$ac_dir/$ac_word" || continue
5492 < ac_cv_prog_LEX="$ac_prog"
5493 < echo "$as_me:3702: found $ac_dir/$ac_word" >&5
5494 < break
5486 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 > for as_dir in $PATH
5488 > do
5489 >  IFS=$as_save_IFS
5490 >  test -z "$as_dir" && as_dir=.
5491 >  for ac_exec_ext in '' $ac_executable_extensions; do
5492 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 >    ac_cv_prog_LEX="$ac_prog"
5494 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 >    break 2
5496 >  fi
5497   done
5498 + done
5499  
5500   fi
5501   fi
5502   LEX=$ac_cv_prog_LEX
5503   if test -n "$LEX"; then
5504 <  echo "$as_me:3710: result: $LEX" >&5
5504 >  echo "$as_me:$LINENO: result: $LEX" >&5
5505   echo "${ECHO_T}$LEX" >&6
5506   else
5507 <  echo "$as_me:3713: result: no" >&5
5507 >  echo "$as_me:$LINENO: result: no" >&5
5508   echo "${ECHO_T}no" >&6
5509   fi
5510  
# Line 3720 | Line 5514 | then
5514  
5515   if test -z "$LEXLIB"
5516   then
5517 <  echo "$as_me:3723: checking for yywrap in -lfl" >&5
5517 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5518   echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5519   if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5520    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3728 | Line 5522 | cat >conftest.$ac_ext <<_ACEOF
5522    ac_check_lib_save_LIBS=$LIBS
5523   LIBS="-lfl  $LIBS"
5524   cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
5525  
5526 < /* Override any gcc2 internal prototype to avoid an error.  */
5527 < #ifdef __cplusplus
5528 < extern "C"
5529 < #endif
5530 < /* 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 < }
5526 > program main
5527 >
5528 > call yywrap
5529 > end program main
5530 >
5531   _ACEOF
5532   rm -f conftest.$ac_objext conftest$ac_exeext
5533 < if { (eval echo "$as_me:3750: \"$ac_link\"") >&5
5534 <  (eval $ac_link) 2>&5
5533 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 >  (eval $ac_link) 2>conftest.er1
5535    ac_status=$?
5536 <  echo "$as_me:3753: \$? = $ac_status" >&5
5536 >  grep -v '^ *+' conftest.er1 >conftest.err
5537 >  rm -f conftest.er1
5538 >  cat conftest.err >&5
5539 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540    (exit $ac_status); } &&
5541 <         { ac_try='test -s conftest$ac_exeext'
5542 <  { (eval echo "$as_me:3756: \"$ac_try\"") >&5
5541 >         { ac_try='test -z "$ac_f90_werror_flag"
5542 >                         || test ! -s conftest.err'
5543 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544    (eval $ac_try) 2>&5
5545    ac_status=$?
5546 <  echo "$as_me:3759: \$? = $ac_status" >&5
5546 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 >  (exit $ac_status); }; } &&
5548 >         { ac_try='test -s conftest$ac_exeext'
5549 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 >  (eval $ac_try) 2>&5
5551 >  ac_status=$?
5552 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553    (exit $ac_status); }; }; then
5554    ac_cv_lib_fl_yywrap=yes
5555   else
5556    echo "$as_me: failed program was:" >&5
5557 < cat conftest.$ac_ext >&5
5557 > sed 's/^/| /' conftest.$ac_ext >&5
5558 >
5559   ac_cv_lib_fl_yywrap=no
5560   fi
5561 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5561 > rm -f conftest.err conftest.$ac_objext \
5562 >      conftest$ac_exeext conftest.$ac_ext
5563   LIBS=$ac_check_lib_save_LIBS
5564   fi
5565 < echo "$as_me:3770: result: $ac_cv_lib_fl_yywrap" >&5
5565 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5566   echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5567   if test $ac_cv_lib_fl_yywrap = yes; then
5568    LEXLIB="-lfl"
5569   else
5570 <  echo "$as_me:3775: checking for yywrap in -ll" >&5
5570 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5571   echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5572   if test "${ac_cv_lib_l_yywrap+set}" = set; then
5573    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3780 | Line 5575 | cat >conftest.$ac_ext <<_ACEOF
5575    ac_check_lib_save_LIBS=$LIBS
5576   LIBS="-ll  $LIBS"
5577   cat >conftest.$ac_ext <<_ACEOF
3783 #line 3783 "configure"
3784 #include "confdefs.h"
5578  
5579 < /* Override any gcc2 internal prototype to avoid an error.  */
5580 < #ifdef __cplusplus
5581 < extern "C"
5582 < #endif
5583 < /* 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 < }
5579 > program main
5580 >
5581 > call yywrap
5582 > end program main
5583 >
5584   _ACEOF
5585   rm -f conftest.$ac_objext conftest$ac_exeext
5586 < if { (eval echo "$as_me:3802: \"$ac_link\"") >&5
5587 <  (eval $ac_link) 2>&5
5586 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 >  (eval $ac_link) 2>conftest.er1
5588    ac_status=$?
5589 <  echo "$as_me:3805: \$? = $ac_status" >&5
5589 >  grep -v '^ *+' conftest.er1 >conftest.err
5590 >  rm -f conftest.er1
5591 >  cat conftest.err >&5
5592 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593    (exit $ac_status); } &&
5594 <         { ac_try='test -s conftest$ac_exeext'
5595 <  { (eval echo "$as_me:3808: \"$ac_try\"") >&5
5594 >         { ac_try='test -z "$ac_f90_werror_flag"
5595 >                         || test ! -s conftest.err'
5596 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597    (eval $ac_try) 2>&5
5598    ac_status=$?
5599 <  echo "$as_me:3811: \$? = $ac_status" >&5
5599 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 >  (exit $ac_status); }; } &&
5601 >         { ac_try='test -s conftest$ac_exeext'
5602 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 >  (eval $ac_try) 2>&5
5604 >  ac_status=$?
5605 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606    (exit $ac_status); }; }; then
5607    ac_cv_lib_l_yywrap=yes
5608   else
5609    echo "$as_me: failed program was:" >&5
5610 < cat conftest.$ac_ext >&5
5610 > sed 's/^/| /' conftest.$ac_ext >&5
5611 >
5612   ac_cv_lib_l_yywrap=no
5613   fi
5614 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5614 > rm -f conftest.err conftest.$ac_objext \
5615 >      conftest$ac_exeext conftest.$ac_ext
5616   LIBS=$ac_check_lib_save_LIBS
5617   fi
5618 < echo "$as_me:3822: result: $ac_cv_lib_l_yywrap" >&5
5618 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5619   echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5620   if test $ac_cv_lib_l_yywrap = yes; then
5621    LEXLIB="-ll"
# Line 3830 | Line 5626 | if test "x$LEX" != "x:"; then
5626   fi
5627  
5628   if test "x$LEX" != "x:"; then
5629 <  echo "$as_me:3833: checking lex output file root" >&5
5629 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5630   echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5631   if test "${ac_cv_prog_lex_root+set}" = set; then
5632    echo $ECHO_N "(cached) $ECHO_C" >&6
5633   else
5634    # The minimal lex program is just a single line: %%.  But some broken lexes
5635   # (Solaris, I think it was) want two %% lines, so accommodate them.
5636 < echo '%%
5637 < %%' | $LEX
5636 > cat >conftest.l <<_ACEOF
5637 > %%
5638 > %%
5639 > _ACEOF
5640 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5641 >  (eval $LEX conftest.l) 2>&5
5642 >  ac_status=$?
5643 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 >  (exit $ac_status); }
5645   if test -f lex.yy.c; then
5646    ac_cv_prog_lex_root=lex.yy
5647   elif test -f lexyy.c; then
5648    ac_cv_prog_lex_root=lexyy
5649   else
5650 <  { { echo "$as_me:3847: error: cannot find output from $LEX; giving up" >&5
5650 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5651   echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5652     { (exit 1); exit 1; }; }
5653   fi
5654   fi
5655 < echo "$as_me:3852: result: $ac_cv_prog_lex_root" >&5
5655 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5656   echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5657 + rm -f conftest.l
5658   LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5659  
5660 < echo "$as_me:3856: checking whether yytext is a pointer" >&5
5660 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5661   echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5662   if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5663    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3869 | Line 5673 | if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
5673   `cat $LEX_OUTPUT_ROOT.c`
5674   _ACEOF
5675   rm -f conftest.$ac_objext conftest$ac_exeext
5676 < if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
5677 <  (eval $ac_link) 2>&5
5676 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 >  (eval $ac_link) 2>conftest.er1
5678    ac_status=$?
5679 <  echo "$as_me:3875: \$? = $ac_status" >&5
5679 >  grep -v '^ *+' conftest.er1 >conftest.err
5680 >  rm -f conftest.er1
5681 >  cat conftest.err >&5
5682 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683    (exit $ac_status); } &&
5684 <         { ac_try='test -s conftest$ac_exeext'
5685 <  { (eval echo "$as_me:3878: \"$ac_try\"") >&5
5684 >         { ac_try='test -z "$ac_f90_werror_flag"
5685 >                         || test ! -s conftest.err'
5686 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687    (eval $ac_try) 2>&5
5688    ac_status=$?
5689 <  echo "$as_me:3881: \$? = $ac_status" >&5
5689 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 >  (exit $ac_status); }; } &&
5691 >         { ac_try='test -s conftest$ac_exeext'
5692 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 >  (eval $ac_try) 2>&5
5694 >  ac_status=$?
5695 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696    (exit $ac_status); }; }; then
5697    ac_cv_prog_lex_yytext_pointer=yes
5698   else
5699    echo "$as_me: failed program was:" >&5
5700 < cat conftest.$ac_ext >&5
5700 > sed 's/^/| /' conftest.$ac_ext >&5
5701 >
5702   fi
5703 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703 > rm -f conftest.err conftest.$ac_objext \
5704 >      conftest$ac_exeext conftest.$ac_ext
5705   LIBS=$ac_save_LIBS
5706   rm -f "${LEX_OUTPUT_ROOT}.c"
5707  
5708   fi
5709 < echo "$as_me:3893: result: $ac_cv_prog_lex_yytext_pointer" >&5
5709 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5710   echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5711   if test $ac_cv_prog_lex_yytext_pointer = yes; then
5712  
5713 < cat >>confdefs.h <<\EOF
5713 > cat >>confdefs.h <<\_ACEOF
5714   #define YYTEXT_POINTER 1
5715 < EOF
5715 > _ACEOF
5716  
5717   fi
5718  
5719   fi
5720   # Extract the first word of "ar", so it can be a program name with args.
5721   set dummy ar; ac_word=$2
5722 < echo "$as_me:3906: checking for $ac_word" >&5
5722 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5723   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724   if test "${ac_cv_prog_AR+set}" = set; then
5725    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3911 | Line 5727 | else
5727    if test -n "$AR"; then
5728    ac_cv_prog_AR="$AR" # Let the user override the test.
5729   else
5730 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
5731 < ac_dummy="$PATH"
5732 < for ac_dir in $ac_dummy; do
5733 <  IFS=$ac_save_IFS
5734 <  test -z "$ac_dir" && ac_dir=.
5735 <  $as_executable_p "$ac_dir/$ac_word" || continue
5736 < ac_cv_prog_AR="ar"
5737 < echo "$as_me:3921: found $ac_dir/$ac_word" >&5
5738 < break
5730 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 > for as_dir in $PATH
5732 > do
5733 >  IFS=$as_save_IFS
5734 >  test -z "$as_dir" && as_dir=.
5735 >  for ac_exec_ext in '' $ac_executable_extensions; do
5736 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 >    ac_cv_prog_AR="ar"
5738 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 >    break 2
5740 >  fi
5741   done
5742 + done
5743  
5744    test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5745   fi
5746   fi
5747   AR=$ac_cv_prog_AR
5748   if test -n "$AR"; then
5749 <  echo "$as_me:3930: result: $AR" >&5
5749 >  echo "$as_me:$LINENO: result: $AR" >&5
5750   echo "${ECHO_T}$AR" >&6
5751   else
5752 <  echo "$as_me:3933: result: no" >&5
5752 >  echo "$as_me:$LINENO: result: no" >&5
5753   echo "${ECHO_T}no" >&6
5754   fi
5755  
5756   if test "$AR" = "NONE"; then
5757 <  { { echo "$as_me:3938: error: --> Can't find \`ar'!" >&5
5757 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5758   echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5759     { (exit 1); exit 1; }; }
5760    cat >confcache <<\_ACEOF
# Line 3948 | Line 5767 | echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5767   # config.status only pays attention to the cache file if you give it
5768   # the --recheck option to rerun configure.
5769   #
5770 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
5770 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5771   # loading this file, other *unset* `ac_cv_foo' will be assigned the
5772   # following values.
5773  
# Line 3966 | Line 5785 | _ACEOF
5785        # `set' does not quote correctly, so add quotes (double-quote
5786        # substitution turns \\\\ into \\, and sed turns \\ into \).
5787        sed -n \
5788 <        "s/'/'\\\\''/g;
5789 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5788 >        "s/'/'\\\\''/g;
5789 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5790        ;;
5791      *)
5792        # `set' quotes correctly as required by POSIX, so do not add quotes.
5793        sed -n \
5794 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5794 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5795        ;;
5796      esac;
5797   } |
# Line 3983 | Line 5802 | if cmp -s $cache_file confcache; then :; else
5802       t end
5803       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5804       : end' >>confcache
5805 < if cmp -s $cache_file confcache; then :; else
5805 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5806    if test -w $cache_file; then
5807      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5808      cat confcache >$cache_file
# Line 3995 | Line 5814 | ac_ext=f90
5814    exit 1
5815   fi
5816  
5817 < ac_ext=f90
5818 < 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
5817 > echo "$as_me:$LINENO: checking for mpi-directory" >&5
5818 > echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5819  
5820 < ac_ext=f90
5821 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5822 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 < 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
5820 > # Check whether --with-mpi or --without-mpi was given.
5821 > if test "${with_mpi+set}" = set; then
5822 >  withval="$with_mpi"
5823 >  MPI_DIR="$withval"
5824   else
5825 +  MPI_DIR="/usr/local"
5826 + fi;
5827 + echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5828 + echo "${ECHO_T}$MPI_DIR" >&6
5829  
4013 cat >conftest.$ac_ext <<_ACEOF
5830  
5831 < program main
5831 > echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5832 > echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5833  
5834 < end program main
5835 <
5836 < _ACEOF
5837 < 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
4039 <
4040 < cat >conftest.$ac_ext <<_ACEOF
4041 <
4042 < program main
4043 <
4044 < end program main
4045 <
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
5834 > # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5835 > if test "${with_mpi_libdir+set}" = set; then
5836 >  withval="$with_mpi_libdir"
5837 >  MPI_LIBDIR="$withval"
5838   else
5839 <  echo "$as_me: failed program was:" >&5
5840 < cat conftest.$ac_ext >&5
5841 < { echo "$as_me:4093: WARNING: compilation failed" >&5
5842 < echo "$as_me: WARNING: compilation failed" >&2;}
4095 < fi
4096 < rm -f conftest.$ac_objext conftest.$ac_ext
5839 >  MPI_LIBDIR="$MPI_DIR/lib"
5840 > fi;
5841 > echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5842 > echo "${ECHO_T}$MPI_LIBDIR" >&6
5843  
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
5844  
5845 < ac_ext=f90
5846 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4112 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5845 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5846 > echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5847  
5848 < cat >conftest.$ac_ext <<_ACEOF
5849 <
5850 < program main
5851 <
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 <  :
5848 > # Check whether --with-mpi-inc or --without-mpi-inc was given.
5849 > if test "${with_mpi_inc+set}" = set; then
5850 >  withval="$with_mpi_inc"
5851 >  MPI_INC="$withval"
5852   else
5853 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5854 < fi
5853 >  MPI_INC="$MPI_DIR/include"
5854 > fi;
5855 > echo "$as_me:$LINENO: result: $MPI_INC" >&5
5856 > echo "${ECHO_T}$MPI_INC" >&6
5857  
4178          ;;
4179        -bI:*)
4180            ac_exists=false
4181  for ac_i in $ac_cv_f90libs; do
4182    if test x"$ac_arg" = x"$ac_i"; then
4183      ac_exists=true
4184      break
4185    fi
4186  done
5858  
5859 <  if test x"$ac_exists" = xtrue; then
5860 <  :
5859 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5860 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5861 > HAVE_MPIDOTH_C="no"
5862 > echo '#include <mpi.h>' > conftest.cc
5863 > if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then
5864 >  echo "$as_me:$LINENO: result: yes" >&5
5865 > echo "${ECHO_T}yes" >&6
5866 >  HAVE_MPIDOTH_C="yes"
5867   else
5868 <  if test "$ac_compiler_gnu" = yes; then
5869 <  for ac_link_opt in $ac_arg; do
4193 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4194 <  done
4195 < else
4196 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5868 >  echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5869 > echo "${ECHO_T}no! Check MPI include paths" >&6
5870   fi
5871 < fi
5871 > rm -f conftest*
5872  
5873 <          ;;
5874 <          # Ignore these flags.
5875 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
5876 <          ;;
5877 <        -lkernel32)
5878 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5879 <          ;;
5880 <        -[LRuY])
5881 <          # These flags, when seen by themselves, take an argument.
5882 <          # We remove the space between option and argument and re-iterate
5883 <          # unless we find an empty arg or a new option (starting with -)
5884 <          case $2 in
5885 <             "" | -*);;
5886 <             *)
4214 <                ac_arg="$ac_arg$2"
4215 <
4216 <                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 <  :
5873 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5874 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5875 > HAVE_MPIFDOTH_F90="no"
5876 > rm -f conftest*
5877 > cat >conftest.f90 <<EOF
5878 > program main
5879 >  include 'mpif.h'
5880 > end
5881 > EOF
5882 > if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then
5883 >   echo "$as_me:$LINENO: result: yes" >&5
5884 > echo "${ECHO_T}yes" >&6
5885 >   MPI_F90INC="$MPI_INC"
5886 >   HAVE_MPIFDOTH_F90="yes"
5887   else
5888 <  ac_arg="$ac_arg $ac_j"
5889 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5888 >   if test -s conftest.out ; then cat conftest.out >> config.log ; fi
5889 >   echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5890 > echo "${ECHO_T}no! Check MPI include paths" >&6
5891   fi
5892 + rm -f conftest*
5893  
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
5894  
5895 <  if test x"$ac_exists" = xtrue; then
5896 <  :
5897 < else
5898 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5899 < 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"
5895 > ac_ext=c
5896 > ac_cpp='$CPP $CPPFLAGS'
5897 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900  
5901 < fi
5902 < echo "$as_me:4283: result: $ac_cv_flibs" >&5
4284 < echo "${ECHO_T}$ac_cv_flibs" >&6
4285 < F90LIBS="$ac_cv_f90libs"
5901 > ac_save_LDFLAGS=$LDFLAGS
5902 > LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} "
5903  
5904 < ac_ext=f90
5905 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5906 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907 < 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
5904 > if test x = x"$MPI_LIB"; then
5905 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5906 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5907 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5908    echo $ECHO_N "(cached) $ECHO_C" >&6
5909   else
5910 <  ac_ext=f90
5911 < 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
5910 >  ac_check_lib_save_LIBS=$LIBS
5911 > LIBS="-lmpi  $LIBS"
5912   cat >conftest.$ac_ext <<_ACEOF
5913 < subroutine foobar()
4303 < return
4304 < end
4305 < subroutine foo_bar()
4306 < return
4307 < end
5913 > /* confdefs.h.  */
5914   _ACEOF
5915 < rm -f conftest.$ac_objext
5916 < if { (eval echo "$as_me:4310: \"$ac_compile\"") >&5
5917 <  (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
5915 > cat confdefs.h >>conftest.$ac_ext
5916 > cat >>conftest.$ac_ext <<_ACEOF
5917 > /* end confdefs.h.  */
5918  
4323  ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329  ac_save_LIBS=$LIBS
4330  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4331
4332  ac_success=no
4333  for ac_foobar in foobar FOOBAR; do
4334    for ac_underscore in "" "_"; do
4335      ac_func="$ac_foobar$ac_underscore"
4336      cat >conftest.$ac_ext <<_ACEOF
4337 #line 4337 "configure"
4338 #include "confdefs.h"
4339
5919   /* Override any gcc2 internal prototype to avoid an error.  */
5920   #ifdef __cplusplus
5921   extern "C"
5922   #endif
5923   /* We use char because int might match the return type of a gcc2
5924     builtin and then its argument prototype would still apply.  */
5925 < char $ac_func ();
5925 > char MPI_Init ();
5926   int
5927   main ()
5928   {
5929 < $ac_func ();
5929 > MPI_Init ();
5930    ;
5931    return 0;
5932   }
5933   _ACEOF
5934   rm -f conftest.$ac_objext conftest$ac_exeext
5935 < if { (eval echo "$as_me:4356: \"$ac_link\"") >&5
5936 <  (eval $ac_link) 2>&5
5935 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 >  (eval $ac_link) 2>conftest.er1
5937    ac_status=$?
5938 <  echo "$as_me:4359: \$? = $ac_status" >&5
5938 >  grep -v '^ *+' conftest.er1 >conftest.err
5939 >  rm -f conftest.er1
5940 >  cat conftest.err >&5
5941 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942    (exit $ac_status); } &&
5943 <         { ac_try='test -s conftest$ac_exeext'
5944 <  { (eval echo "$as_me:4362: \"$ac_try\"") >&5
5943 >         { ac_try='test -z "$ac_c_werror_flag"
5944 >                         || test ! -s conftest.err'
5945 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946    (eval $ac_try) 2>&5
5947    ac_status=$?
5948 <  echo "$as_me:4365: \$? = $ac_status" >&5
5948 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 >  (exit $ac_status); }; } &&
5950 >         { ac_try='test -s conftest$ac_exeext'
5951 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 >  (eval $ac_try) 2>&5
5953 >  ac_status=$?
5954 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955    (exit $ac_status); }; }; then
5956 <  ac_success=yes; break 2
5956 >  ac_cv_lib_mpi_MPI_Init=yes
5957   else
5958    echo "$as_me: failed program was:" >&5
5959 < cat conftest.$ac_ext >&5
5959 > sed 's/^/| /' conftest.$ac_ext >&5
5960 >
5961 > ac_cv_lib_mpi_MPI_Init=no
5962   fi
5963 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964 <    done
5965 <  done
5963 > rm -f conftest.err conftest.$ac_objext \
5964 >      conftest$ac_exeext conftest.$ac_ext
5965 > LIBS=$ac_check_lib_save_LIBS
5966 > fi
5967 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5968 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5969 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5970 >  MPI_LIB="-lmpi"
5971 > fi
5972  
5973 <  if test "$ac_success" = "yes"; then
5974 <     case $ac_foobar in
5975 <        foobar)
5976 <           ac_case=lower
5977 <           ac_foo_bar=foo_bar
5978 <           ;;
5979 <        FOOBAR)
5980 <           ac_case=upper
5981 <           ac_foo_bar=FOO_BAR
5982 <           ;;
5983 <     esac
5973 > fi
5974 > if test x = x"$MPI_LIB"; then
5975 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5976 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5977 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5978 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5979 > else
5980 >  ac_check_lib_save_LIBS=$LIBS
5981 > LIBS="-lmpich  $LIBS"
5982 > cat >conftest.$ac_ext <<_ACEOF
5983 > /* confdefs.h.  */
5984 > _ACEOF
5985 > cat confdefs.h >>conftest.$ac_ext
5986 > cat >>conftest.$ac_ext <<_ACEOF
5987 > /* end confdefs.h.  */
5988  
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
5989   /* Override any gcc2 internal prototype to avoid an error.  */
5990   #ifdef __cplusplus
5991   extern "C"
5992   #endif
5993   /* We use char because int might match the return type of a gcc2
5994     builtin and then its argument prototype would still apply.  */
5995 < char $ac_func ();
5995 > char MPI_Init ();
5996   int
5997   main ()
5998   {
5999 < $ac_func ();
5999 > MPI_Init ();
6000    ;
6001    return 0;
6002   }
6003   _ACEOF
6004   rm -f conftest.$ac_objext conftest$ac_exeext
6005 < if { (eval echo "$as_me:4412: \"$ac_link\"") >&5
6006 <  (eval $ac_link) 2>&5
6005 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 >  (eval $ac_link) 2>conftest.er1
6007    ac_status=$?
6008 <  echo "$as_me:4415: \$? = $ac_status" >&5
6008 >  grep -v '^ *+' conftest.er1 >conftest.err
6009 >  rm -f conftest.er1
6010 >  cat conftest.err >&5
6011 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012    (exit $ac_status); } &&
6013 <         { ac_try='test -s conftest$ac_exeext'
6014 <  { (eval echo "$as_me:4418: \"$ac_try\"") >&5
6013 >         { ac_try='test -z "$ac_c_werror_flag"
6014 >                         || test ! -s conftest.err'
6015 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016    (eval $ac_try) 2>&5
6017    ac_status=$?
6018 <  echo "$as_me:4421: \$? = $ac_status" >&5
6018 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 >  (exit $ac_status); }; } &&
6020 >         { ac_try='test -s conftest$ac_exeext'
6021 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 >  (eval $ac_try) 2>&5
6023 >  ac_status=$?
6024 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025    (exit $ac_status); }; }; then
6026 <  ac_success_extra=yes; break
6026 >  ac_cv_lib_mpich_MPI_Init=yes
6027   else
6028    echo "$as_me: failed program was:" >&5
6029 < cat conftest.$ac_ext >&5
4427 < fi
4428 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 <     done
6029 > sed 's/^/| /' conftest.$ac_ext >&5
6030  
6031 <     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
6031 > ac_cv_lib_mpich_MPI_Init=no
6032   fi
6033 < rm -f conftest.$ac_objext conftest.$ac_ext
6034 < ac_ext=f90
6035 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6036 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6033 > rm -f conftest.err conftest.$ac_objext \
6034 >      conftest$ac_exeext conftest.$ac_ext
6035 > LIBS=$ac_check_lib_save_LIBS
6036 > fi
6037 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6038 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6039 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6040 >  MPI_LIB="-lmpich"
6041 > fi
6042  
6043   fi
6044 < echo "$as_me:4469: result: $ac_cv_f90_mangling" >&5
6045 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
6046 <
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
4593 < fi
4594 <
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
4649 < fi
4650 < if test -z "MODDIRFLAG" ; then
4651 <    echo "$as_me:4651: result: unknown" >&5
4652 < 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
6044 > $as_unset ac_cv_lib_mpi_MPI_Init
6045 > if test x = x"$MPI_LIB"; then
6046 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6047   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6048   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6049    echo $ECHO_N "(cached) $ECHO_C" >&6
6050   else
6051    ac_check_lib_save_LIBS=$LIBS
6052 < LIBS="-lmpi  $LIBS"
6052 > LIBS="-lmpi "-llam" $LIBS"
6053   cat >conftest.$ac_ext <<_ACEOF
6054 + /* confdefs.h.  */
6055 + _ACEOF
6056 + cat confdefs.h >>conftest.$ac_ext
6057 + cat >>conftest.$ac_ext <<_ACEOF
6058 + /* end confdefs.h.  */
6059  
6060 < program main
6061 <
6062 < call MPI_Init
6063 < end program main
6064 <
6060 > /* Override any gcc2 internal prototype to avoid an error.  */
6061 > #ifdef __cplusplus
6062 > extern "C"
6063 > #endif
6064 > /* We use char because int might match the return type of a gcc2
6065 >   builtin and then its argument prototype would still apply.  */
6066 > char MPI_Init ();
6067 > int
6068 > main ()
6069 > {
6070 > MPI_Init ();
6071 >  ;
6072 >  return 0;
6073 > }
6074   _ACEOF
6075   rm -f conftest.$ac_objext conftest$ac_exeext
6076 < if { (eval echo "$as_me:4838: \"$ac_link\"") >&5
6077 <  (eval $ac_link) 2>&5
6076 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 >  (eval $ac_link) 2>conftest.er1
6078    ac_status=$?
6079 <  echo "$as_me:4841: \$? = $ac_status" >&5
6079 >  grep -v '^ *+' conftest.er1 >conftest.err
6080 >  rm -f conftest.er1
6081 >  cat conftest.err >&5
6082 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083    (exit $ac_status); } &&
6084 <         { ac_try='test -s conftest$ac_exeext'
6085 <  { (eval echo "$as_me:4844: \"$ac_try\"") >&5
6084 >         { ac_try='test -z "$ac_c_werror_flag"
6085 >                         || test ! -s conftest.err'
6086 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087    (eval $ac_try) 2>&5
6088    ac_status=$?
6089 <  echo "$as_me:4847: \$? = $ac_status" >&5
6089 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 >  (exit $ac_status); }; } &&
6091 >         { ac_try='test -s conftest$ac_exeext'
6092 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 >  (eval $ac_try) 2>&5
6094 >  ac_status=$?
6095 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096    (exit $ac_status); }; }; then
6097    ac_cv_lib_mpi_MPI_Init=yes
6098   else
6099    echo "$as_me: failed program was:" >&5
6100 < cat conftest.$ac_ext >&5
6100 > sed 's/^/| /' conftest.$ac_ext >&5
6101 >
6102   ac_cv_lib_mpi_MPI_Init=no
6103   fi
6104 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 > rm -f conftest.err conftest.$ac_objext \
6105 >      conftest$ac_exeext conftest.$ac_ext
6106   LIBS=$ac_check_lib_save_LIBS
6107   fi
6108 < echo "$as_me:4858: result: $ac_cv_lib_mpi_MPI_Init" >&5
6108 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6109   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6110   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6111 <  MPILIBS="-lmpi"
6111 >  MPI_LIB="-lmpi -llam"
6112   fi
6113  
6114   fi
6115 < if test x = x"$MPILIBS"; then
6116 <        echo "$as_me:4866: checking for MPI_Init in -lmpich" >&5
6117 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6118 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6115 >
6116 > $as_unset ac_cv_lib_mpi_MPI_Init
6117 > if test x = x"$MPI_LIB"; then
6118 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6119 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6120 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6121    echo $ECHO_N "(cached) $ECHO_C" >&6
6122   else
6123    ac_check_lib_save_LIBS=$LIBS
6124 < LIBS="-lmpich  $LIBS"
6124 > LIBS="-lmpi -llam -lpthread $LIBS"
6125   cat >conftest.$ac_ext <<_ACEOF
6126 + /* confdefs.h.  */
6127 + _ACEOF
6128 + cat confdefs.h >>conftest.$ac_ext
6129 + cat >>conftest.$ac_ext <<_ACEOF
6130 + /* end confdefs.h.  */
6131  
6132 < program main
6133 <
6134 < call MPI_Init
6135 < end program main
6136 <
6132 > /* Override any gcc2 internal prototype to avoid an error.  */
6133 > #ifdef __cplusplus
6134 > extern "C"
6135 > #endif
6136 > /* We use char because int might match the return type of a gcc2
6137 >   builtin and then its argument prototype would still apply.  */
6138 > char MPI_Init ();
6139 > int
6140 > main ()
6141 > {
6142 > MPI_Init ();
6143 >  ;
6144 >  return 0;
6145 > }
6146   _ACEOF
6147   rm -f conftest.$ac_objext conftest$ac_exeext
6148 < if { (eval echo "$as_me:4882: \"$ac_link\"") >&5
6149 <  (eval $ac_link) 2>&5
6148 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149 >  (eval $ac_link) 2>conftest.er1
6150    ac_status=$?
6151 <  echo "$as_me:4885: \$? = $ac_status" >&5
6151 >  grep -v '^ *+' conftest.er1 >conftest.err
6152 >  rm -f conftest.er1
6153 >  cat conftest.err >&5
6154 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155    (exit $ac_status); } &&
6156 <         { ac_try='test -s conftest$ac_exeext'
6157 <  { (eval echo "$as_me:4888: \"$ac_try\"") >&5
6156 >         { ac_try='test -z "$ac_c_werror_flag"
6157 >                         || test ! -s conftest.err'
6158 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159    (eval $ac_try) 2>&5
6160    ac_status=$?
6161 <  echo "$as_me:4891: \$? = $ac_status" >&5
6161 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 >  (exit $ac_status); }; } &&
6163 >         { ac_try='test -s conftest$ac_exeext'
6164 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 >  (eval $ac_try) 2>&5
6166 >  ac_status=$?
6167 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168    (exit $ac_status); }; }; then
6169 <  ac_cv_lib_mpich_MPI_Init=yes
6169 >  ac_cv_lib_mpi_MPI_Init=yes
6170   else
6171    echo "$as_me: failed program was:" >&5
6172 < cat conftest.$ac_ext >&5
6173 < ac_cv_lib_mpich_MPI_Init=no
6172 > sed 's/^/| /' conftest.$ac_ext >&5
6173 >
6174 > ac_cv_lib_mpi_MPI_Init=no
6175   fi
6176 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 > rm -f conftest.err conftest.$ac_objext \
6177 >      conftest$ac_exeext conftest.$ac_ext
6178   LIBS=$ac_check_lib_save_LIBS
6179   fi
6180 < echo "$as_me:4902: result: $ac_cv_lib_mpich_MPI_Init" >&5
6181 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6182 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
6183 <  MPILIBS="-lmpich"
6180 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6181 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6182 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6183 >  MPI_LIB="-lmpi -llam -lpthread"
6184 > else
6185 >  { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6186 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6187 >   { (exit 1); exit 1; }; }
6188   fi
6189  
6190   fi
6191  
6192 < F90="$acx_mpi_save_F90"
6192 > echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
6193 > echo "${ECHO_T}found $MPI_LIB" >&6
6194  
4912 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4913 if test x = x"$MPILIBS"; then
6195  
6196 <        :
6196 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6197 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6198 > MPI_F90LIB=""
6199 > if test -f "$MPI_LIBDIR/libfmpich.a" ; then
6200 >  MPI_F90LIB="-lfmpich"
6201 > elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then
6202 >  MPI_F90LIB="-llamf77mpi"
6203   else
6204 +  # nothing special found, we'll assume that the C library is all we need
6205 +  MPI_F90LIB="  "
6206 + fi
6207 + echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5
6208 + echo "${ECHO_T}found $MPI_F90LIB" >&6
6209  
4918 cat >>confdefs.h <<\EOF
4919 #define HAVE_MPI 1
4920 EOF
6210  
4922        :
4923 fi
6211  
6212 +
6213   ac_ext=c
6214   ac_cpp='$CPP $CPPFLAGS'
6215   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218 < echo "$as_me:4930: checking how to run the C preprocessor" >&5
6218 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6219   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6220   # On Suns, sometimes $CPP names a directory.
6221   if test -n "$CPP" && test -d "$CPP"; then
# Line 4940 | Line 6228 | else
6228        # Double quotes because CPP needs to be expanded
6229      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6230      do
4943      # break 2 since there is a loop in there.
6231        ac_preproc_ok=false
6232   for ac_c_preproc_warn_flag in '' yes
6233   do
6234    # Use a header file that comes with gcc, so configuring glibc
6235    # with a fresh cross-compiler works.
6236 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6237 +  # <limits.h> exists even on freestanding compilers.
6238    # On the NeXT, cc -E runs the code through the compiler's parser,
6239    # not just through cpp. "Syntax error" is here to catch this case.
6240    cat >conftest.$ac_ext <<_ACEOF
6241 < #line 4952 "configure"
4953 < #include "confdefs.h"
4954 < #include <assert.h>
4955 <                     Syntax error
6241 > /* confdefs.h.  */
6242   _ACEOF
6243 < if { (eval echo "$as_me:4957: \"$ac_cpp conftest.$ac_ext\"") >&5
6243 > cat confdefs.h >>conftest.$ac_ext
6244 > cat >>conftest.$ac_ext <<_ACEOF
6245 > /* end confdefs.h.  */
6246 > #ifdef __STDC__
6247 > # include <limits.h>
6248 > #else
6249 > # include <assert.h>
6250 > #endif
6251 >                     Syntax error
6252 > _ACEOF
6253 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6254    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6255    ac_status=$?
6256 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6256 >  grep -v '^ *+' conftest.er1 >conftest.err
6257    rm -f conftest.er1
6258    cat conftest.err >&5
6259 <  echo "$as_me:4963: \$? = $ac_status" >&5
6259 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260    (exit $ac_status); } >/dev/null; then
6261    if test -s conftest.err; then
6262      ac_cpp_err=$ac_c_preproc_warn_flag
6263 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6264    else
6265      ac_cpp_err=
6266    fi
# Line 4974 | Line 6271 | else
6271    :
6272   else
6273    echo "$as_me: failed program was:" >&5
6274 <  cat conftest.$ac_ext >&5
6274 > sed 's/^/| /' conftest.$ac_ext >&5
6275 >
6276    # Broken: fails on valid input.
6277   continue
6278   fi
# Line 4983 | Line 6281 | rm -f conftest.err conftest.$ac_ext
6281    # OK, works on sane cases.  Now check whether non-existent headers
6282    # can be detected and how.
6283    cat >conftest.$ac_ext <<_ACEOF
6284 < #line 4986 "configure"
6285 < #include "confdefs.h"
6284 > /* confdefs.h.  */
6285 > _ACEOF
6286 > cat confdefs.h >>conftest.$ac_ext
6287 > cat >>conftest.$ac_ext <<_ACEOF
6288 > /* end confdefs.h.  */
6289   #include <ac_nonexistent.h>
6290   _ACEOF
6291 < if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5
6291 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6292    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6293    ac_status=$?
6294 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6294 >  grep -v '^ *+' conftest.er1 >conftest.err
6295    rm -f conftest.er1
6296    cat conftest.err >&5
6297 <  echo "$as_me:4996: \$? = $ac_status" >&5
6297 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298    (exit $ac_status); } >/dev/null; then
6299    if test -s conftest.err; then
6300      ac_cpp_err=$ac_c_preproc_warn_flag
6301 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6302    else
6303      ac_cpp_err=
6304    fi
# Line 5008 | Line 6310 | else
6310   continue
6311   else
6312    echo "$as_me: failed program was:" >&5
6313 <  cat conftest.$ac_ext >&5
6313 > sed 's/^/| /' conftest.$ac_ext >&5
6314 >
6315    # Passes both tests.
6316   ac_preproc_ok=:
6317   break
# Line 5019 | Line 6322 | if $ac_preproc_ok; then
6322   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6323   rm -f conftest.err conftest.$ac_ext
6324   if $ac_preproc_ok; then
6325 <  break 2
6325 >  break
6326   fi
6327  
6328      done
# Line 5030 | Line 6333 | echo "$as_me:5033: result: $CPP" >&5
6333   else
6334    ac_cv_prog_CPP=$CPP
6335   fi
6336 < echo "$as_me:5033: result: $CPP" >&5
6336 > echo "$as_me:$LINENO: result: $CPP" >&5
6337   echo "${ECHO_T}$CPP" >&6
6338   ac_preproc_ok=false
6339   for ac_c_preproc_warn_flag in '' yes
6340   do
6341    # Use a header file that comes with gcc, so configuring glibc
6342    # with a fresh cross-compiler works.
6343 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344 +  # <limits.h> exists even on freestanding compilers.
6345    # On the NeXT, cc -E runs the code through the compiler's parser,
6346    # not just through cpp. "Syntax error" is here to catch this case.
6347    cat >conftest.$ac_ext <<_ACEOF
6348 < #line 5043 "configure"
5044 < #include "confdefs.h"
5045 < #include <assert.h>
5046 <                     Syntax error
6348 > /* confdefs.h.  */
6349   _ACEOF
6350 < if { (eval echo "$as_me:5048: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 > cat confdefs.h >>conftest.$ac_ext
6351 > cat >>conftest.$ac_ext <<_ACEOF
6352 > /* end confdefs.h.  */
6353 > #ifdef __STDC__
6354 > # include <limits.h>
6355 > #else
6356 > # include <assert.h>
6357 > #endif
6358 >                     Syntax error
6359 > _ACEOF
6360 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362    ac_status=$?
6363 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6363 >  grep -v '^ *+' conftest.er1 >conftest.err
6364    rm -f conftest.er1
6365    cat conftest.err >&5
6366 <  echo "$as_me:5054: \$? = $ac_status" >&5
6366 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367    (exit $ac_status); } >/dev/null; then
6368    if test -s conftest.err; then
6369      ac_cpp_err=$ac_c_preproc_warn_flag
6370 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371    else
6372      ac_cpp_err=
6373    fi
# Line 5065 | Line 6378 | else
6378    :
6379   else
6380    echo "$as_me: failed program was:" >&5
6381 <  cat conftest.$ac_ext >&5
6381 > sed 's/^/| /' conftest.$ac_ext >&5
6382 >
6383    # Broken: fails on valid input.
6384   continue
6385   fi
# Line 5074 | Line 6388 | rm -f conftest.err conftest.$ac_ext
6388    # OK, works on sane cases.  Now check whether non-existent headers
6389    # can be detected and how.
6390    cat >conftest.$ac_ext <<_ACEOF
6391 < #line 5077 "configure"
6392 < #include "confdefs.h"
6391 > /* confdefs.h.  */
6392 > _ACEOF
6393 > cat confdefs.h >>conftest.$ac_ext
6394 > cat >>conftest.$ac_ext <<_ACEOF
6395 > /* end confdefs.h.  */
6396   #include <ac_nonexistent.h>
6397   _ACEOF
6398 < if { (eval echo "$as_me:5081: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6400    ac_status=$?
6401 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6401 >  grep -v '^ *+' conftest.er1 >conftest.err
6402    rm -f conftest.er1
6403    cat conftest.err >&5
6404 <  echo "$as_me:5087: \$? = $ac_status" >&5
6404 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405    (exit $ac_status); } >/dev/null; then
6406    if test -s conftest.err; then
6407      ac_cpp_err=$ac_c_preproc_warn_flag
6408 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409    else
6410      ac_cpp_err=
6411    fi
# Line 5099 | Line 6417 | else
6417   continue
6418   else
6419    echo "$as_me: failed program was:" >&5
6420 <  cat conftest.$ac_ext >&5
6420 > sed 's/^/| /' conftest.$ac_ext >&5
6421 >
6422    # Passes both tests.
6423   ac_preproc_ok=:
6424   break
# Line 5112 | Line 6431 | else
6431   if $ac_preproc_ok; then
6432    :
6433   else
6434 <  { { echo "$as_me:5115: error: C preprocessor \"$CPP\" fails sanity check" >&5
6435 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6434 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6435 > See \`config.log' for more details." >&5
6436 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6437 > See \`config.log' for more details." >&2;}
6438     { (exit 1); exit 1; }; }
6439   fi
6440  
# Line 5123 | Line 6444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446  
6447 +
6448 + echo "$as_me:$LINENO: checking for egrep" >&5
6449 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6450 + if test "${ac_cv_prog_egrep+set}" = set; then
6451 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6452 + else
6453 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6454 +    then ac_cv_prog_egrep='grep -E'
6455 +    else ac_cv_prog_egrep='egrep'
6456 +    fi
6457 + fi
6458 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6459 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6460 + EGREP=$ac_cv_prog_egrep
6461 +
6462 +
6463 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6464 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6465 + if test "${ac_cv_header_stdc+set}" = set; then
6466 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6467 + else
6468 +  cat >conftest.$ac_ext <<_ACEOF
6469 + /* confdefs.h.  */
6470 + _ACEOF
6471 + cat confdefs.h >>conftest.$ac_ext
6472 + cat >>conftest.$ac_ext <<_ACEOF
6473 + /* end confdefs.h.  */
6474 + #include <stdlib.h>
6475 + #include <stdarg.h>
6476 + #include <string.h>
6477 + #include <float.h>
6478 +
6479 + int
6480 + main ()
6481 + {
6482 +
6483 +  ;
6484 +  return 0;
6485 + }
6486 + _ACEOF
6487 + rm -f conftest.$ac_objext
6488 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 +  (eval $ac_compile) 2>conftest.er1
6490 +  ac_status=$?
6491 +  grep -v '^ *+' conftest.er1 >conftest.err
6492 +  rm -f conftest.er1
6493 +  cat conftest.err >&5
6494 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 +  (exit $ac_status); } &&
6496 +         { ac_try='test -z "$ac_c_werror_flag"
6497 +                         || test ! -s conftest.err'
6498 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 +  (eval $ac_try) 2>&5
6500 +  ac_status=$?
6501 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 +  (exit $ac_status); }; } &&
6503 +         { ac_try='test -s conftest.$ac_objext'
6504 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 +  (eval $ac_try) 2>&5
6506 +  ac_status=$?
6507 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 +  (exit $ac_status); }; }; then
6509 +  ac_cv_header_stdc=yes
6510 + else
6511 +  echo "$as_me: failed program was:" >&5
6512 + sed 's/^/| /' conftest.$ac_ext >&5
6513 +
6514 + ac_cv_header_stdc=no
6515 + fi
6516 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517 +
6518 + if test $ac_cv_header_stdc = yes; then
6519 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6520 +  cat >conftest.$ac_ext <<_ACEOF
6521 + /* confdefs.h.  */
6522 + _ACEOF
6523 + cat confdefs.h >>conftest.$ac_ext
6524 + cat >>conftest.$ac_ext <<_ACEOF
6525 + /* end confdefs.h.  */
6526 + #include <string.h>
6527 +
6528 + _ACEOF
6529 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6530 +  $EGREP "memchr" >/dev/null 2>&1; then
6531 +  :
6532 + else
6533 +  ac_cv_header_stdc=no
6534 + fi
6535 + rm -f conftest*
6536 +
6537 + fi
6538 +
6539 + if test $ac_cv_header_stdc = yes; then
6540 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6541 +  cat >conftest.$ac_ext <<_ACEOF
6542 + /* confdefs.h.  */
6543 + _ACEOF
6544 + cat confdefs.h >>conftest.$ac_ext
6545 + cat >>conftest.$ac_ext <<_ACEOF
6546 + /* end confdefs.h.  */
6547 + #include <stdlib.h>
6548 +
6549 + _ACEOF
6550 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6551 +  $EGREP "free" >/dev/null 2>&1; then
6552 +  :
6553 + else
6554 +  ac_cv_header_stdc=no
6555 + fi
6556 + rm -f conftest*
6557 +
6558 + fi
6559 +
6560 + if test $ac_cv_header_stdc = yes; then
6561 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6562 +  if test "$cross_compiling" = yes; then
6563 +  :
6564 + else
6565 +  cat >conftest.$ac_ext <<_ACEOF
6566 + /* confdefs.h.  */
6567 + _ACEOF
6568 + cat confdefs.h >>conftest.$ac_ext
6569 + cat >>conftest.$ac_ext <<_ACEOF
6570 + /* end confdefs.h.  */
6571 + #include <ctype.h>
6572 + #if ((' ' & 0x0FF) == 0x020)
6573 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6574 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6575 + #else
6576 + # define ISLOWER(c) \
6577 +                   (('a' <= (c) && (c) <= 'i') \
6578 +                     || ('j' <= (c) && (c) <= 'r') \
6579 +                     || ('s' <= (c) && (c) <= 'z'))
6580 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6581 + #endif
6582 +
6583 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6584 + int
6585 + main ()
6586 + {
6587 +  int i;
6588 +  for (i = 0; i < 256; i++)
6589 +    if (XOR (islower (i), ISLOWER (i))
6590 +        || toupper (i) != TOUPPER (i))
6591 +      exit(2);
6592 +  exit (0);
6593 + }
6594 + _ACEOF
6595 + rm -f conftest$ac_exeext
6596 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 +  (eval $ac_link) 2>&5
6598 +  ac_status=$?
6599 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6601 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 +  (eval $ac_try) 2>&5
6603 +  ac_status=$?
6604 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 +  (exit $ac_status); }; }; then
6606 +  :
6607 + else
6608 +  echo "$as_me: program exited with status $ac_status" >&5
6609 + echo "$as_me: failed program was:" >&5
6610 + sed 's/^/| /' conftest.$ac_ext >&5
6611 +
6612 + ( exit $ac_status )
6613 + ac_cv_header_stdc=no
6614 + fi
6615 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6616 + fi
6617 + fi
6618 + fi
6619 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6620 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6621 + if test $ac_cv_header_stdc = yes; then
6622 +
6623 + cat >>confdefs.h <<\_ACEOF
6624 + #define STDC_HEADERS 1
6625 + _ACEOF
6626 +
6627 + fi
6628 +
6629 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6630 +
6631 +
6632 +
6633 +
6634 +
6635 +
6636 +
6637 +
6638 +
6639 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6640 +                  inttypes.h stdint.h unistd.h
6641 + do
6642 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6644 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6645 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6646 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6647 + else
6648 +  cat >conftest.$ac_ext <<_ACEOF
6649 + /* confdefs.h.  */
6650 + _ACEOF
6651 + cat confdefs.h >>conftest.$ac_ext
6652 + cat >>conftest.$ac_ext <<_ACEOF
6653 + /* end confdefs.h.  */
6654 + $ac_includes_default
6655 +
6656 + #include <$ac_header>
6657 + _ACEOF
6658 + rm -f conftest.$ac_objext
6659 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 +  (eval $ac_compile) 2>conftest.er1
6661 +  ac_status=$?
6662 +  grep -v '^ *+' conftest.er1 >conftest.err
6663 +  rm -f conftest.er1
6664 +  cat conftest.err >&5
6665 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 +  (exit $ac_status); } &&
6667 +         { ac_try='test -z "$ac_c_werror_flag"
6668 +                         || test ! -s conftest.err'
6669 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 +  (eval $ac_try) 2>&5
6671 +  ac_status=$?
6672 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 +  (exit $ac_status); }; } &&
6674 +         { ac_try='test -s conftest.$ac_objext'
6675 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 +  (eval $ac_try) 2>&5
6677 +  ac_status=$?
6678 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 +  (exit $ac_status); }; }; then
6680 +  eval "$as_ac_Header=yes"
6681 + else
6682 +  echo "$as_me: failed program was:" >&5
6683 + sed 's/^/| /' conftest.$ac_ext >&5
6684 +
6685 + eval "$as_ac_Header=no"
6686 + fi
6687 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688 + fi
6689 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6692 +  cat >>confdefs.h <<_ACEOF
6693 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694 + _ACEOF
6695 +
6696 + fi
6697 +
6698 + done
6699 +
6700 +
6701 +
6702 +
6703 +
6704   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6705   if test "${with_sprng_prefix+set}" = set; then
6706    withval="$with_sprng_prefix"
# Line 5155 | Line 6733 | fi;
6733      sprng_include=${sprng_prefix}/include
6734    fi
6735  
6736 <  echo "$as_me:5158: checking for SPRNG include files in $sprng_include" >&5
6736 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6737   echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6738    if test -f ${sprng_include}/sprng.h; then
6739      have_sprngincl=yes
6740 <    echo "$as_me:5162: result: yes" >&5
6740 >    echo "$as_me:$LINENO: result: yes" >&5
6741   echo "${ECHO_T}yes" >&6
6742    else
6743      have_sprngincl=no
6744 <    echo "$as_me:5166: result: no" >&5
6744 >    echo "$as_me:$LINENO: result: no" >&5
6745   echo "${ECHO_T}no" >&6
6746 <    { { echo "$as_me:5168: error: Could not locate the SPRNG include files" >&5
6746 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6747   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6748     { (exit 1); exit 1; }; }
6749    fi
6750  
6751 <  echo "$as_me:5173: checking for SPRNG libraries in $sprng_libdir" >&5
6751 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6752   echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6753    if test -f ${sprng_libdir}/libsprng.a; then
6754      have_sprnglib=yes
6755 <    echo "$as_me:5177: result: yes" >&5
6755 >    echo "$as_me:$LINENO: result: yes" >&5
6756   echo "${ECHO_T}yes" >&6
6757    else
6758      have_sprnglib=no
6759 <    echo "$as_me:5181: result: no" >&5
6759 >    echo "$as_me:$LINENO: result: no" >&5
6760   echo "${ECHO_T}no" >&6
6761 <    { { echo "$as_me:5183: error: Could not locate the SPRNG libraries" >&5
6761 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6762   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6763     { (exit 1); exit 1; }; }
6764    fi
6765  
6766 +
6767 +
6768    ac_ext=c
6769   ac_cpp='$CPP $CPPFLAGS'
6770   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5195 | Line 6775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6775    CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6776    ac_save_LDFLAGS=$LDFLAGS
6777    LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6778 <  echo "$as_me:5198: checking for sprng.h" >&5
6778 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6779 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6780   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6781   if test "${ac_cv_header_sprng_h+set}" = set; then
6782    echo $ECHO_N "(cached) $ECHO_C" >&6
6783 + fi
6784 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6785 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6786   else
6787 <  cat >conftest.$ac_ext <<_ACEOF
6788 < #line 5204 "configure"
6789 < #include "confdefs.h"
6787 >  # Is the header compilable?
6788 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6789 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6790 > cat >conftest.$ac_ext <<_ACEOF
6791 > /* confdefs.h.  */
6792 > _ACEOF
6793 > cat confdefs.h >>conftest.$ac_ext
6794 > cat >>conftest.$ac_ext <<_ACEOF
6795 > /* end confdefs.h.  */
6796 > $ac_includes_default
6797   #include <sprng.h>
6798   _ACEOF
6799 < if { (eval echo "$as_me:5208: \"$ac_cpp conftest.$ac_ext\"") >&5
6799 > rm -f conftest.$ac_objext
6800 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 >  (eval $ac_compile) 2>conftest.er1
6802 >  ac_status=$?
6803 >  grep -v '^ *+' conftest.er1 >conftest.err
6804 >  rm -f conftest.er1
6805 >  cat conftest.err >&5
6806 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 >  (exit $ac_status); } &&
6808 >         { ac_try='test -z "$ac_c_werror_flag"
6809 >                         || test ! -s conftest.err'
6810 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 >  (eval $ac_try) 2>&5
6812 >  ac_status=$?
6813 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 >  (exit $ac_status); }; } &&
6815 >         { ac_try='test -s conftest.$ac_objext'
6816 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 >  (eval $ac_try) 2>&5
6818 >  ac_status=$?
6819 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 >  (exit $ac_status); }; }; then
6821 >  ac_header_compiler=yes
6822 > else
6823 >  echo "$as_me: failed program was:" >&5
6824 > sed 's/^/| /' conftest.$ac_ext >&5
6825 >
6826 > ac_header_compiler=no
6827 > fi
6828 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6830 > echo "${ECHO_T}$ac_header_compiler" >&6
6831 >
6832 > # Is the header present?
6833 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6834 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6835 > cat >conftest.$ac_ext <<_ACEOF
6836 > /* confdefs.h.  */
6837 > _ACEOF
6838 > cat confdefs.h >>conftest.$ac_ext
6839 > cat >>conftest.$ac_ext <<_ACEOF
6840 > /* end confdefs.h.  */
6841 > #include <sprng.h>
6842 > _ACEOF
6843 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6844    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6845    ac_status=$?
6846 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6846 >  grep -v '^ *+' conftest.er1 >conftest.err
6847    rm -f conftest.er1
6848    cat conftest.err >&5
6849 <  echo "$as_me:5214: \$? = $ac_status" >&5
6849 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850    (exit $ac_status); } >/dev/null; then
6851    if test -s conftest.err; then
6852      ac_cpp_err=$ac_c_preproc_warn_flag
6853 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6854    else
6855      ac_cpp_err=
6856    fi
# Line 5222 | Line 6858 | if test -z "$ac_cpp_err"; then
6858    ac_cpp_err=yes
6859   fi
6860   if test -z "$ac_cpp_err"; then
6861 <  ac_cv_header_sprng_h=yes
6861 >  ac_header_preproc=yes
6862   else
6863    echo "$as_me: failed program was:" >&5
6864 <  cat conftest.$ac_ext >&5
6865 <  ac_cv_header_sprng_h=no
6864 > sed 's/^/| /' conftest.$ac_ext >&5
6865 >
6866 >  ac_header_preproc=no
6867   fi
6868   rm -f conftest.err conftest.$ac_ext
6869 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6870 + echo "${ECHO_T}$ac_header_preproc" >&6
6871 +
6872 + # So?  What about this header?
6873 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6874 +  yes:no: )
6875 +    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6876 + echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6877 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6878 + echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6879 +    ac_header_preproc=yes
6880 +    ;;
6881 +  no:yes:* )
6882 +    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6883 + echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6884 +    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6885 + echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6886 +    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6887 + echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6888 +    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6889 + echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6890 +    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6891 + echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6892 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6893 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6894 +    (
6895 +      cat <<\_ASBOX
6896 + ## ------------------------------ ##
6897 + ## Report this to gezelter@nd.edu ##
6898 + ## ------------------------------ ##
6899 + _ASBOX
6900 +    ) |
6901 +      sed "s/^/$as_me: WARNING:     /" >&2
6902 +    ;;
6903 + esac
6904 + echo "$as_me:$LINENO: checking for sprng.h" >&5
6905 + echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6906 + if test "${ac_cv_header_sprng_h+set}" = set; then
6907 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6908 + else
6909 +  ac_cv_header_sprng_h=$ac_header_preproc
6910   fi
6911 < echo "$as_me:5233: result: $ac_cv_header_sprng_h" >&5
6911 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6912   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6913 +
6914 + fi
6915   if test $ac_cv_header_sprng_h = yes; then
6916  
6917 <    echo "$as_me:5237: checking for init_rng in -lsprng" >&5
6917 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6918   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6919   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6920    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5242 | Line 6922 | cat >conftest.$ac_ext <<_ACEOF
6922    ac_check_lib_save_LIBS=$LIBS
6923   LIBS="-lsprng  $LIBS"
6924   cat >conftest.$ac_ext <<_ACEOF
6925 < #line 5245 "configure"
6926 < #include "confdefs.h"
6925 > /* confdefs.h.  */
6926 > _ACEOF
6927 > cat confdefs.h >>conftest.$ac_ext
6928 > cat >>conftest.$ac_ext <<_ACEOF
6929 > /* end confdefs.h.  */
6930  
6931   /* Override any gcc2 internal prototype to avoid an error.  */
6932   #ifdef __cplusplus
# Line 5261 | Line 6944 | if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
6944   }
6945   _ACEOF
6946   rm -f conftest.$ac_objext conftest$ac_exeext
6947 < if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
6948 <  (eval $ac_link) 2>&5
6947 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 >  (eval $ac_link) 2>conftest.er1
6949    ac_status=$?
6950 <  echo "$as_me:5267: \$? = $ac_status" >&5
6950 >  grep -v '^ *+' conftest.er1 >conftest.err
6951 >  rm -f conftest.er1
6952 >  cat conftest.err >&5
6953 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954    (exit $ac_status); } &&
6955 <         { ac_try='test -s conftest$ac_exeext'
6956 <  { (eval echo "$as_me:5270: \"$ac_try\"") >&5
6955 >         { ac_try='test -z "$ac_c_werror_flag"
6956 >                         || test ! -s conftest.err'
6957 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958    (eval $ac_try) 2>&5
6959    ac_status=$?
6960 <  echo "$as_me:5273: \$? = $ac_status" >&5
6960 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 >  (exit $ac_status); }; } &&
6962 >         { ac_try='test -s conftest$ac_exeext'
6963 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 >  (eval $ac_try) 2>&5
6965 >  ac_status=$?
6966 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967    (exit $ac_status); }; }; then
6968    ac_cv_lib_sprng_init_rng=yes
6969   else
6970    echo "$as_me: failed program was:" >&5
6971 < cat conftest.$ac_ext >&5
6971 > sed 's/^/| /' conftest.$ac_ext >&5
6972 >
6973   ac_cv_lib_sprng_init_rng=no
6974   fi
6975 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 > rm -f conftest.err conftest.$ac_objext \
6976 >      conftest$ac_exeext conftest.$ac_ext
6977   LIBS=$ac_check_lib_save_LIBS
6978   fi
6979 < echo "$as_me:5284: result: $ac_cv_lib_sprng_init_rng" >&5
6979 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6980   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6981   if test $ac_cv_lib_sprng_init_rng = yes; then
6982    SPRNG_LIBDIR="${sprng_libdir}"
# Line 5291 | Line 6986 | fi
6986  
6987   fi
6988  
6989 +
6990    CPPFLAGS=$ac_save_CPPFLAGS
6991    LDFLAGS=$ac_save_LDFLAGS
6992 <  ac_ext=f90
6993 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6994 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6992 >  ac_ext=c
6993 > ac_cpp='$CPP $CPPFLAGS'
6994 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997  
6998 +
6999    if test x_$HAVE_SPRNG != x_yes; then
7000 <        { { echo "$as_me:5302: error: Can't build with SPRNG" >&5
7000 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
7001   echo "$as_me: error: Can't build with SPRNG" >&2;}
7002     { (exit 1); exit 1; }; }
7003    fi
7004  
7005 < echo "$as_me:5307: checking if MKL is wanted" >&5
7005 >
7006 >
7007 >
7008 >
7009 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7010   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
7011  
7012   # Check whether --with-mkl or --without-mkl was given.
7013   if test "${with_mkl+set}" = set; then
7014    withval="$with_mkl"
7015 <     echo "$as_me:5313: result: yes" >&5
7015 >     echo "$as_me:$LINENO: result: yes" >&5
7016   echo "${ECHO_T}yes" >&6
7017 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7017 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7018          mkldir="$dir"
7019          if test -f "$dir/include/mkl.h"; then
7020              found_mkl="yes";
# Line 5320 | Line 7022 | echo "${ECHO_T}yes" >&6
7022          fi
7023      done
7024      if test x_$found_mkl != x_yes; then
7025 <        { { echo "$as_me:5323: error: Cannot find MKL includes" >&5
7025 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
7026   echo "$as_me: error: Cannot find MKL includes" >&2;}
7027     { (exit 1); exit 1; }; }
7028      else
7029          printf "MKL includes found in $mkldir/include\n";
7030      fi
7031  
7032 +
7033 +
7034    ac_ext=c
7035   ac_cpp='$CPP $CPPFLAGS'
7036   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5337 | Line 7041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
7042    ac_save_LDFLAGS=$LDFLAGS
7043    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
7044 <  echo "$as_me:5340: checking for mkl.h" >&5
7044 >  if test "${ac_cv_header_mkl_h+set}" = set; then
7045 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
7046   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7047   if test "${ac_cv_header_mkl_h+set}" = set; then
7048    echo $ECHO_N "(cached) $ECHO_C" >&6
7049 + fi
7050 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7051 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7052   else
7053 <  cat >conftest.$ac_ext <<_ACEOF
7054 < #line 5346 "configure"
7055 < #include "confdefs.h"
7053 >  # Is the header compilable?
7054 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
7055 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7056 > cat >conftest.$ac_ext <<_ACEOF
7057 > /* confdefs.h.  */
7058 > _ACEOF
7059 > cat confdefs.h >>conftest.$ac_ext
7060 > cat >>conftest.$ac_ext <<_ACEOF
7061 > /* end confdefs.h.  */
7062 > $ac_includes_default
7063   #include <mkl.h>
7064   _ACEOF
7065 < if { (eval echo "$as_me:5350: \"$ac_cpp conftest.$ac_ext\"") >&5
7065 > rm -f conftest.$ac_objext
7066 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 >  (eval $ac_compile) 2>conftest.er1
7068 >  ac_status=$?
7069 >  grep -v '^ *+' conftest.er1 >conftest.err
7070 >  rm -f conftest.er1
7071 >  cat conftest.err >&5
7072 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 >  (exit $ac_status); } &&
7074 >         { ac_try='test -z "$ac_c_werror_flag"
7075 >                         || test ! -s conftest.err'
7076 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 >  (eval $ac_try) 2>&5
7078 >  ac_status=$?
7079 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 >  (exit $ac_status); }; } &&
7081 >         { ac_try='test -s conftest.$ac_objext'
7082 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 >  (eval $ac_try) 2>&5
7084 >  ac_status=$?
7085 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 >  (exit $ac_status); }; }; then
7087 >  ac_header_compiler=yes
7088 > else
7089 >  echo "$as_me: failed program was:" >&5
7090 > sed 's/^/| /' conftest.$ac_ext >&5
7091 >
7092 > ac_header_compiler=no
7093 > fi
7094 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7096 > echo "${ECHO_T}$ac_header_compiler" >&6
7097 >
7098 > # Is the header present?
7099 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
7100 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7101 > cat >conftest.$ac_ext <<_ACEOF
7102 > /* confdefs.h.  */
7103 > _ACEOF
7104 > cat confdefs.h >>conftest.$ac_ext
7105 > cat >>conftest.$ac_ext <<_ACEOF
7106 > /* end confdefs.h.  */
7107 > #include <mkl.h>
7108 > _ACEOF
7109 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7110    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7111    ac_status=$?
7112 <  egrep -v '^ *\+' conftest.er1 >conftest.err
7112 >  grep -v '^ *+' conftest.er1 >conftest.err
7113    rm -f conftest.er1
7114    cat conftest.err >&5
7115 <  echo "$as_me:5356: \$? = $ac_status" >&5
7115 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116    (exit $ac_status); } >/dev/null; then
7117    if test -s conftest.err; then
7118      ac_cpp_err=$ac_c_preproc_warn_flag
7119 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7120    else
7121      ac_cpp_err=
7122    fi
# Line 5364 | Line 7124 | if test -z "$ac_cpp_err"; then
7124    ac_cpp_err=yes
7125   fi
7126   if test -z "$ac_cpp_err"; then
7127 <  ac_cv_header_mkl_h=yes
7127 >  ac_header_preproc=yes
7128   else
7129    echo "$as_me: failed program was:" >&5
7130 <  cat conftest.$ac_ext >&5
7131 <  ac_cv_header_mkl_h=no
7130 > sed 's/^/| /' conftest.$ac_ext >&5
7131 >
7132 >  ac_header_preproc=no
7133   fi
7134   rm -f conftest.err conftest.$ac_ext
7135 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7136 + echo "${ECHO_T}$ac_header_preproc" >&6
7137 +
7138 + # So?  What about this header?
7139 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140 +  yes:no: )
7141 +    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7142 + echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7144 + echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7145 +    ac_header_preproc=yes
7146 +    ;;
7147 +  no:yes:* )
7148 +    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7149 + echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7150 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7151 + echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7152 +    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7153 + echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7154 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7155 + echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7156 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7157 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7158 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7159 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7160 +    (
7161 +      cat <<\_ASBOX
7162 + ## ------------------------------ ##
7163 + ## Report this to gezelter@nd.edu ##
7164 + ## ------------------------------ ##
7165 + _ASBOX
7166 +    ) |
7167 +      sed "s/^/$as_me: WARNING:     /" >&2
7168 +    ;;
7169 + esac
7170 + echo "$as_me:$LINENO: checking for mkl.h" >&5
7171 + echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7172 + if test "${ac_cv_header_mkl_h+set}" = set; then
7173 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7174 + else
7175 +  ac_cv_header_mkl_h=$ac_header_preproc
7176   fi
7177 < echo "$as_me:5375: result: $ac_cv_header_mkl_h" >&5
7177 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7178   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7179 +
7180 + fi
7181   if test $ac_cv_header_mkl_h = yes; then
7182  
7183 <    echo "$as_me:5379: checking for vslNewStream in -lmkl" >&5
7183 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
7184   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
7185   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
7186    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5384 | Line 7188 | cat >conftest.$ac_ext <<_ACEOF
7188    ac_check_lib_save_LIBS=$LIBS
7189   LIBS="-lmkl  $LIBS"
7190   cat >conftest.$ac_ext <<_ACEOF
7191 < #line 5387 "configure"
7192 < #include "confdefs.h"
7191 > /* confdefs.h.  */
7192 > _ACEOF
7193 > cat confdefs.h >>conftest.$ac_ext
7194 > cat >>conftest.$ac_ext <<_ACEOF
7195 > /* end confdefs.h.  */
7196  
7197   /* Override any gcc2 internal prototype to avoid an error.  */
7198   #ifdef __cplusplus
# Line 5403 | Line 7210 | if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
7210   }
7211   _ACEOF
7212   rm -f conftest.$ac_objext conftest$ac_exeext
7213 < if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
7214 <  (eval $ac_link) 2>&5
7213 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214 >  (eval $ac_link) 2>conftest.er1
7215    ac_status=$?
7216 <  echo "$as_me:5409: \$? = $ac_status" >&5
7216 >  grep -v '^ *+' conftest.er1 >conftest.err
7217 >  rm -f conftest.er1
7218 >  cat conftest.err >&5
7219 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220    (exit $ac_status); } &&
7221 <         { ac_try='test -s conftest$ac_exeext'
7222 <  { (eval echo "$as_me:5412: \"$ac_try\"") >&5
7221 >         { ac_try='test -z "$ac_c_werror_flag"
7222 >                         || test ! -s conftest.err'
7223 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224 >  (eval $ac_try) 2>&5
7225 >  ac_status=$?
7226 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 >  (exit $ac_status); }; } &&
7228 >         { ac_try='test -s conftest$ac_exeext'
7229 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230    (eval $ac_try) 2>&5
7231    ac_status=$?
7232 <  echo "$as_me:5415: \$? = $ac_status" >&5
7232 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233    (exit $ac_status); }; }; then
7234    ac_cv_lib_mkl_vslNewStream=yes
7235   else
7236    echo "$as_me: failed program was:" >&5
7237 < cat conftest.$ac_ext >&5
7237 > sed 's/^/| /' conftest.$ac_ext >&5
7238 >
7239   ac_cv_lib_mkl_vslNewStream=no
7240   fi
7241 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7241 > rm -f conftest.err conftest.$ac_objext \
7242 >      conftest$ac_exeext conftest.$ac_ext
7243   LIBS=$ac_check_lib_save_LIBS
7244   fi
7245 < echo "$as_me:5426: result: $ac_cv_lib_mkl_vslNewStream" >&5
7245 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
7246   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
7247   if test $ac_cv_lib_mkl_vslNewStream = yes; then
7248    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5431 | Line 7250 | else
7250                       HAVE_MKL="yes"
7251   fi
7252  
7253 +
7254   else
7255    MKL_INC="-I${mkldir}/include"
7256   fi
7257  
7258 +
7259    CPPFLAGS=$ac_save_CPPFLAGS
7260    LDFLAGS=$ac_save_LDFLAGS
7261 <  ac_ext=f90
7262 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7263 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7261 >  ac_ext=c
7262 > ac_cpp='$CPP $CPPFLAGS'
7263 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266  
7267 +
7268    if test x_$HAVE_MKL != x_yes; then
7269 <        { { echo "$as_me:5446: error: Can't build with MKL" >&5
7269 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
7270   echo "$as_me: error: Can't build with MKL" >&2;}
7271     { (exit 1); exit 1; }; }
7272    fi
7273  
5451 else
7274  
5453    echo "$as_me:5453: result: no" >&5
5454 echo "${ECHO_T}no" >&6
7275  
5456 fi;
7276  
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;
7277  
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
7278   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
7279  
7280 <  F90FLAGS=$ac_save_F90FLAGS
7281 <  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
7280 >    echo "$as_me:$LINENO: result: no" >&5
7281 > echo "${ECHO_T}no" >&6
7282  
7283 <  if test "$HAVE_MPI_MOD" = 1; then
5518 <    echo "$as_me:5518: result: yes" >&5
5519 < echo "${ECHO_T}yes" >&6
7283 > fi;
7284  
5521 cat >>confdefs.h <<\EOF
5522 #define MPI_MOD 1
5523 EOF
7285  
5525    MPI_F90_MODS="${mpi_f90_mods}"
7286  
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
7287  
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
7288  
7289   OBJEXT=".$OBJEXT"
7290  
# Line 5565 | Line 7309 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7309  
7310   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7311  
7312 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7312 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party"
7313  
7314   CFLAGS=${CFLAGS-""}
7315   CXXFLAGS=${CXXFLAGS-""}
# Line 5584 | Line 7328 | ac_config_headers="$ac_config_headers libmdtools/confi
7328       ;;
7329   esac
7330  
5587 ac_config_headers="$ac_config_headers libmdtools/config.h"
7331  
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"
7332  
7333 +
7334 +
7335 +
7336 +
7337 +
7338 +
7339 +
7340 +
7341 +
7342 +
7343 +
7344 +
7345 +
7346 +
7347 +          ac_config_headers="$ac_config_headers libmdtools/config.h"
7348 +
7349 +                                                                                                                                                                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"
7350 +
7351 +
7352   cat >confcache <<\_ACEOF
7353   # This file is a shell script that caches the results of configure
7354   # tests run on this system so they can be shared between configure
# Line 5598 | Line 7359 | cat >confcache <<\_ACEOF
7359   # config.status only pays attention to the cache file if you give it
7360   # the --recheck option to rerun configure.
7361   #
7362 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7362 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7363   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7364   # following values.
7365  
# Line 5616 | Line 7377 | _ACEOF
7377        # `set' does not quote correctly, so add quotes (double-quote
7378        # substitution turns \\\\ into \\, and sed turns \\ into \).
7379        sed -n \
7380 <        "s/'/'\\\\''/g;
7381 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7380 >        "s/'/'\\\\''/g;
7381 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7382        ;;
7383      *)
7384        # `set' quotes correctly as required by POSIX, so do not add quotes.
7385        sed -n \
7386 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7386 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7387        ;;
7388      esac;
7389   } |
# Line 5633 | Line 7394 | if cmp -s $cache_file confcache; then :; else
7394       t end
7395       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7396       : end' >>confcache
7397 < if cmp -s $cache_file confcache; then :; else
7397 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7398    if test -w $cache_file; then
7399      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7400      cat confcache >$cache_file
# Line 5652 | Line 7413 | if test "x$srcdir" = x.; then
7413   # trailing colons and then remove the whole line if VPATH becomes empty
7414   # (actually we leave an empty line to preserve line numbers).
7415   if test "x$srcdir" = x.; then
7416 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7416 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7417   s/:*\$(srcdir):*/:/;
7418   s/:*\${srcdir}:*/:/;
7419   s/:*@srcdir@:*/:/;
7420 < s/^\([^=]*=[    ]*\):*/\1/;
7420 > s/^\([^=]*=[     ]*\):*/\1/;
7421   s/:*$//;
7422 < s/^[^=]*=[      ]*$//;
7422 > s/^[^=]*=[       ]*$//;
7423   }'
7424   fi
7425  
7426   DEFS=-DHAVE_CONFIG_H
7427  
7428 + ac_libobjs=
7429 + ac_ltlibobjs=
7430 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7431 +  # 1. Remove the extension, and $U if already installed.
7432 +  ac_i=`echo "$ac_i" |
7433 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7434 +  # 2. Add them.
7435 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7436 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7437 + done
7438 + LIBOBJS=$ac_libobjs
7439 +
7440 + LTLIBOBJS=$ac_ltlibobjs
7441 +
7442 +
7443 +
7444   : ${CONFIG_STATUS=./config.status}
7445   ac_clean_files_save=$ac_clean_files
7446   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7447 < { echo "$as_me:5670: creating $CONFIG_STATUS" >&5
7447 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7448   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7449   cat >$CONFIG_STATUS <<_ACEOF
7450   #! $SHELL
7451 < # Generated automatically by configure.
7451 > # Generated by $as_me.
7452   # Run this file to recreate the current configuration.
7453   # Compiler output produced by configure, useful for debugging
7454   # configure, is in config.log if it exists.
7455  
7456   debug=false
7457 + ac_cs_recheck=false
7458 + ac_cs_silent=false
7459   SHELL=\${CONFIG_SHELL-$SHELL}
5681 ac_cs_invocation="\$0 \$@"
5682
7460   _ACEOF
7461  
7462   cat >>$CONFIG_STATUS <<\_ACEOF
7463 + ## --------------------- ##
7464 + ## M4sh Initialization.  ##
7465 + ## --------------------- ##
7466 +
7467   # Be Bourne compatible
7468   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7469    emulate sh
7470    NULLCMD=:
7471 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7472 +  # is contrary to our usage.  Disable this feature.
7473 +  alias -g '${1+"$@"}'='"$@"'
7474   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7475    set -o posix
7476   fi
7477 + DUALCASE=1; export DUALCASE # for MKS sh
7478  
7479 + # Support unset when possible.
7480 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7481 +  as_unset=unset
7482 + else
7483 +  as_unset=false
7484 + fi
7485 +
7486 +
7487 + # Work around bugs in pre-3.0 UWIN ksh.
7488 + $as_unset ENV MAIL MAILPATH
7489 + PS1='$ '
7490 + PS2='> '
7491 + PS4='+ '
7492 +
7493 + # NLS nuisances.
7494 + for as_var in \
7495 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7496 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7497 +  LC_TELEPHONE LC_TIME
7498 + do
7499 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7500 +    eval $as_var=C; export $as_var
7501 +  else
7502 +    $as_unset $as_var
7503 +  fi
7504 + done
7505 +
7506 + # Required to use basename.
7507 + if expr a : '\(a\)' >/dev/null 2>&1; then
7508 +  as_expr=expr
7509 + else
7510 +  as_expr=false
7511 + fi
7512 +
7513 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7514 +  as_basename=basename
7515 + else
7516 +  as_basename=false
7517 + fi
7518 +
7519 +
7520   # Name of the executable.
7521 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7521 > as_me=`$as_basename "$0" ||
7522 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7523 >         X"$0" : 'X\(//\)$' \| \
7524 >         X"$0" : 'X\(/\)$' \| \
7525 >         .     : '\(.\)' 2>/dev/null ||
7526 > echo X/"$0" |
7527 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7528 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7529 >          /^X\/\(\/\).*/{ s//\1/; q; }
7530 >          s/.*/./; q'`
7531  
7532 +
7533 + # PATH needs CR, and LINENO needs CR and PATH.
7534 + # Avoid depending upon Character Ranges.
7535 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7536 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7537 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7538 + as_cr_digits='0123456789'
7539 + as_cr_alnum=$as_cr_Letters$as_cr_digits
7540 +
7541 + # The user is always right.
7542 + if test "${PATH_SEPARATOR+set}" != set; then
7543 +  echo "#! /bin/sh" >conf$$.sh
7544 +  echo  "exit 0"   >>conf$$.sh
7545 +  chmod +x conf$$.sh
7546 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7547 +    PATH_SEPARATOR=';'
7548 +  else
7549 +    PATH_SEPARATOR=:
7550 +  fi
7551 +  rm -f conf$$.sh
7552 + fi
7553 +
7554 +
7555 +  as_lineno_1=$LINENO
7556 +  as_lineno_2=$LINENO
7557 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7558 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7559 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7560 +  # Find who we are.  Look in the path if we contain no path at all
7561 +  # relative or not.
7562 +  case $0 in
7563 +    *[\\/]* ) as_myself=$0 ;;
7564 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 + for as_dir in $PATH
7566 + do
7567 +  IFS=$as_save_IFS
7568 +  test -z "$as_dir" && as_dir=.
7569 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7570 + done
7571 +
7572 +       ;;
7573 +  esac
7574 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7575 +  # in which case we are not to be found in the path.
7576 +  if test "x$as_myself" = x; then
7577 +    as_myself=$0
7578 +  fi
7579 +  if test ! -f "$as_myself"; then
7580 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7581 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7582 +   { (exit 1); exit 1; }; }
7583 +  fi
7584 +  case $CONFIG_SHELL in
7585 +  '')
7586 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7588 + do
7589 +  IFS=$as_save_IFS
7590 +  test -z "$as_dir" && as_dir=.
7591 +  for as_base in sh bash ksh sh5; do
7592 +         case $as_dir in
7593 +         /*)
7594 +           if ("$as_dir/$as_base" -c '
7595 +  as_lineno_1=$LINENO
7596 +  as_lineno_2=$LINENO
7597 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7598 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7599 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7600 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7601 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7602 +             CONFIG_SHELL=$as_dir/$as_base
7603 +             export CONFIG_SHELL
7604 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7605 +           fi;;
7606 +         esac
7607 +       done
7608 + done
7609 + ;;
7610 +  esac
7611 +
7612 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7613 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7614 +  # line-number line before each line; the second 'sed' does the real
7615 +  # work.  The second script uses 'N' to pair each line-number line
7616 +  # with the numbered line, and appends trailing '-' during
7617 +  # substitution so that $LINENO is not a special case at line end.
7618 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7619 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7620 +  sed '=' <$as_myself |
7621 +    sed '
7622 +      N
7623 +      s,$,-,
7624 +      : loop
7625 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7626 +      t loop
7627 +      s,-$,,
7628 +      s,^['$as_cr_digits']*\n,,
7629 +    ' >$as_me.lineno &&
7630 +  chmod +x $as_me.lineno ||
7631 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7632 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7633 +   { (exit 1); exit 1; }; }
7634 +
7635 +  # Don't try to exec as it changes $[0], causing all sort of problems
7636 +  # (the dirname of $[0] is not the place where we might find the
7637 +  # original and so on.  Autoconf is especially sensible to this).
7638 +  . ./$as_me.lineno
7639 +  # Exit status is that of the last command.
7640 +  exit
7641 + }
7642 +
7643 +
7644 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7645 +  *c*,-n*) ECHO_N= ECHO_C='
7646 + ' ECHO_T='      ' ;;
7647 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7648 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7649 + esac
7650 +
7651   if expr a : '\(a\)' >/dev/null 2>&1; then
7652    as_expr=expr
7653   else
# Line 5718 | Line 7672 | as_executable_p="test -f"
7672   fi
7673   rm -f conf$$ conf$$.exe conf$$.file
7674  
7675 < as_executable_p="test -f"
7676 <
5723 < # Support unset when possible.
5724 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5725 <  as_unset=unset
7675 > if mkdir -p . 2>/dev/null; then
7676 >  as_mkdir_p=:
7677   else
7678 <  as_unset=false
7678 >  test -d ./-p && rmdir ./-p
7679 >  as_mkdir_p=false
7680   fi
7681  
7682 < # 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; }
7682 > as_executable_p="test -f"
7683  
7684 + # Sed expression to map a string onto a valid CPP name.
7685 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7686 +
7687 + # Sed expression to map a string onto a valid variable name.
7688 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7689 +
7690 +
7691   # IFS
7692   # We need space, tab and new line, in precisely that order.
7693   as_nl='
# Line 5744 | Line 7695 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
7695   IFS="   $as_nl"
7696  
7697   # CDPATH.
7698 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7698 > $as_unset CDPATH
7699  
7700   exec 6>&1
7701  
7702 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7703 + # report actual input values of CONFIG_FILES etc. instead of their
7704 + # values after options handling.  Logging --version etc. is OK.
7705 + exec 5>>config.log
7706 + {
7707 +  echo
7708 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7709 + ## Running $as_me. ##
7710 + _ASBOX
7711 + } >&5
7712 + cat >&5 <<_CSEOF
7713 +
7714 + This file was extended by OOPSE $as_me 1.0, which was
7715 + generated by GNU Autoconf 2.59.  Invocation command line was
7716 +
7717 +  CONFIG_FILES    = $CONFIG_FILES
7718 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7719 +  CONFIG_LINKS    = $CONFIG_LINKS
7720 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7721 +  $ $0 $@
7722 +
7723 + _CSEOF
7724 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7725 + echo >&5
7726   _ACEOF
7727  
7728   # Files that config.status was made for.
# Line 5767 | Line 7742 | cat >>$CONFIG_STATUS <<\EOF
7742    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7743   fi
7744  
7745 < cat >>$CONFIG_STATUS <<\EOF
7745 > cat >>$CONFIG_STATUS <<\_ACEOF
7746  
7747   ac_cs_usage="\
7748   \`$as_me' instantiates files from templates according to the
# Line 5777 | Line 7752 | Usage: $0 [OPTIONS] [FILE]...
7752  
7753    -h, --help       print this help, then exit
7754    -V, --version    print version number, then exit
7755 +  -q, --quiet      do not print progress messages
7756    -d, --debug      don't remove temporary files
7757        --recheck    update $as_me by reconfiguring in the same conditions
7758    --file=FILE[:TEMPLATE]
7759 <                   instantiate the configuration file FILE
7759 >                   instantiate the configuration file FILE
7760    --header=FILE[:TEMPLATE]
7761 <                   instantiate the configuration header FILE
7761 >                   instantiate the configuration header FILE
7762  
7763   Configuration files:
7764   $config_files
# Line 5791 | Line 7767 | EOF
7767   $config_headers
7768  
7769   Report bugs to <bug-autoconf@gnu.org>."
7770 < EOF
7770 > _ACEOF
7771  
7772 < cat >>$CONFIG_STATUS <<EOF
7772 > cat >>$CONFIG_STATUS <<_ACEOF
7773   ac_cs_version="\\
7774   OOPSE config.status 1.0
7775 < configured by $0, generated by GNU Autoconf 2.50,
7775 > configured by $0, generated by GNU Autoconf 2.59,
7776    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7777  
7778 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5803 < Free Software Foundation, Inc.
7778 > Copyright (C) 2003 Free Software Foundation, Inc.
7779   This config.status script is free software; the Free Software Foundation
7780   gives unlimited permission to copy, distribute and modify it."
7781   srcdir=$srcdir
7782   INSTALL="$INSTALL"
7783 < EOF
7783 > _ACEOF
7784  
7785 < cat >>$CONFIG_STATUS <<\EOF
7785 > cat >>$CONFIG_STATUS <<\_ACEOF
7786   # If no file are specified by the user, then we need to provide default
7787   # value.  By we need to know if files were specified by the user.
7788   ac_need_defaults=:
# Line 5817 | Line 7792 | do
7792    --*=*)
7793      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7794      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7795 <    shift
5821 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5822 <    shift
7795 >    ac_shift=:
7796      ;;
7797 <  -*);;
7797 >  -*)
7798 >    ac_option=$1
7799 >    ac_optarg=$2
7800 >    ac_shift=shift
7801 >    ;;
7802    *) # This is not an option, so the user has probably given explicit
7803       # arguments.
7804 +     ac_option=$1
7805       ac_need_defaults=false;;
7806    esac
7807  
7808 <  case $1 in
7808 >  case $ac_option in
7809    # Handling of the options.
7810 < EOF
7811 < cat >>$CONFIG_STATUS <<EOF
7810 > _ACEOF
7811 > cat >>$CONFIG_STATUS <<\_ACEOF
7812    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7813 <    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
7813 >    ac_cs_recheck=: ;;
7814    --version | --vers* | -V )
7815      echo "$ac_cs_version"; exit 0 ;;
7816    --he | --h)
7817      # Conflict between --help and --header
7818 <    { { echo "$as_me:5843: error: ambiguous option: $1
7818 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7819   Try \`$0 --help' for more information." >&5
7820   echo "$as_me: error: ambiguous option: $1
7821   Try \`$0 --help' for more information." >&2;}
# Line 5850 | Line 7825 | Try \`$0 --help' for more information." >&2;}
7825    --debug | --d* | -d )
7826      debug=: ;;
7827    --file | --fil | --fi | --f )
7828 <    shift
7829 <    CONFIG_FILES="$CONFIG_FILES $1"
7828 >    $ac_shift
7829 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7830      ac_need_defaults=false;;
7831    --header | --heade | --head | --hea )
7832 <    shift
7833 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7832 >    $ac_shift
7833 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7834      ac_need_defaults=false;;
7835 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7836 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7837 +    ac_cs_silent=: ;;
7838  
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
7839    # This is an error.
7840 <  -*) { { echo "$as_me:5880: error: unrecognized option: $1
7840 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7841   Try \`$0 --help' for more information." >&5
7842   echo "$as_me: error: unrecognized option: $1
7843   Try \`$0 --help' for more information." >&2;}
7844     { (exit 1); exit 1; }; } ;;
7845 <  *) { { echo "$as_me:5885: error: invalid argument: $1" >&5
7846 < echo "$as_me: error: invalid argument: $1" >&2;}
7847 <   { (exit 1); exit 1; }; };;
7845 >
7846 >  *) ac_config_targets="$ac_config_targets $1" ;;
7847 >
7848    esac
7849    shift
7850   done
7851  
7852 < exec 5>>config.log
5893 < cat >&5 << _ACEOF
7852 > ac_configure_extra_args=
7853  
7854 < ## ----------------------- ##
7855 < ## Running config.status.  ##
7856 < ## ----------------------- ##
7857 <
5899 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
5900 <  > $ac_cs_invocation
5901 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7854 > if $ac_cs_silent; then
7855 >  exec 6>/dev/null
7856 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7857 > fi
7858  
7859   _ACEOF
7860 < EOF
7860 > cat >>$CONFIG_STATUS <<_ACEOF
7861 > if \$ac_cs_recheck; then
7862 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7863 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7864 > fi
7865  
7866 < cat >>$CONFIG_STATUS <<\EOF
7866 > _ACEOF
7867 >
7868 >
7869 >
7870 >
7871 >
7872 > cat >>$CONFIG_STATUS <<\_ACEOF
7873 > for ac_config_target in $ac_config_targets
7874 > do
7875 >  case "$ac_config_target" in
7876 >  # Handling of arguments.
7877 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7878 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7879 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7880 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7881 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7882 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7883 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7884 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7885 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7886 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7887 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7888 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7889 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7890 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7891 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7892 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7893 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7894 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7895 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7896 >   { (exit 1); exit 1; }; };;
7897 >  esac
7898 > done
7899 >
7900   # If the user did not use the arguments to specify the items to instantiate,
7901   # then the envvar interface is used.  Set only those that are not.
7902   # We use the long form for the default assignment because of an extremely
# Line 5913 | Line 7906 | fi
7906    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7907   fi
7908  
7909 + # Have a temporary directory for convenience.  Make it in the build tree
7910 + # simply because there is no reason to put it here, and in addition,
7911 + # creating and moving files from /tmp can sometimes cause problems.
7912   # Create a temporary directory, and hook for its removal unless debugging.
7913   $debug ||
7914   {
7915    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7916 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7916 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7917   }
7918  
7919   # Create a (secure) tmp directory for tmp files.
7920 < : ${TMPDIR=/tmp}
7920 >
7921   {
7922 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7922 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7923    test -n "$tmp" && test -d "$tmp"
7924   }  ||
7925   {
7926 <  tmp=$TMPDIR/cs$$-$RANDOM
7926 >  tmp=./confstat$$-$RANDOM
7927    (umask 077 && mkdir $tmp)
7928   } ||
7929   {
7930 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7930 >   echo "$me: cannot create a temporary directory in ." >&2
7931     { (exit 1); exit 1; }
7932   }
7933  
7934 < EOF
7934 > _ACEOF
7935  
7936 < cat >>$CONFIG_STATUS <<EOF
7936 > cat >>$CONFIG_STATUS <<_ACEOF
7937  
7938   #
7939   # CONFIG_FILES section.
# Line 5950 | Line 7946 | s,@exec_prefix@,$exec_prefix,;t t
7946    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7947     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7948   s,@SHELL@,$SHELL,;t t
7949 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7950 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7951 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7952 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7953 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7954 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7955   s,@exec_prefix@,$exec_prefix,;t t
7956   s,@prefix@,$prefix,;t t
7957   s,@program_transform_name@,$program_transform_name,;t t
# Line 5965 | Line 7967 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7967   s,@oldincludedir@,$oldincludedir,;t t
7968   s,@infodir@,$infodir,;t t
7969   s,@mandir@,$mandir,;t t
7970 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7971 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7972 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7973 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5972 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7970 > s,@build_alias@,$build_alias,;t t
7971 > s,@host_alias@,$host_alias,;t t
7972 > s,@target_alias@,$target_alias,;t t
7973 > s,@DEFS@,$DEFS,;t t
7974   s,@ECHO_C@,$ECHO_C,;t t
7975   s,@ECHO_N@,$ECHO_N,;t t
7976   s,@ECHO_T@,$ECHO_T,;t t
5976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5977 s,@DEFS@,$DEFS,;t t
7977   s,@LIBS@,$LIBS,;t t
7978   s,@PROGNAME@,$PROGNAME,;t t
7979   s,@debug@,$debug,;t t
# Line 5996 | Line 7995 | s,@F90@,$F90,;t t
7995   s,@CXX@,$CXX,;t t
7996   s,@CXXFLAGS@,$CXXFLAGS,;t t
7997   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7998 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7999 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8000   s,@F90@,$F90,;t t
8001   s,@F90FLAGS@,$F90FLAGS,;t t
8002   s,@ac_ct_F90@,$ac_ct_F90,;t t
8003   s,@PREPFLAG@,$PREPFLAG,;t t
8004   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8005 + s,@F90LIBS@,$F90LIBS,;t t
8006 + s,@F90_FUNC@,$F90_FUNC,;t t
8007 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8008 + s,@MOD@,$MOD,;t t
8009 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8010 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8011 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8012   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8013   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8014   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 6013 | Line 8021 | s,@F90LIBS@,$F90LIBS,;t t
8021   s,@LEXLIB@,$LEXLIB,;t t
8022   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8023   s,@AR@,$AR,;t t
8024 < 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
8024 > s,@mpi@,$mpi,;t t
8025   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
8026   s,@MPI_INC@,$MPI_INC,;t t
8027 + s,@MPI_F90INC@,$MPI_F90INC,;t t
8028   s,@MPI_LIB@,$MPI_LIB,;t t
8029 < s,@MPIF77@,$MPIF77,;t t
6028 < s,@MPIF90@,$MPIF90,;t t
6029 < s,@MPILIBS@,$MPILIBS,;t t
8029 > s,@MPI_F90LIB@,$MPI_F90LIB,;t t
8030   s,@CPP@,$CPP,;t t
8031 + s,@EGREP@,$EGREP,;t t
8032   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
8033   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
8034   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 6036 | Line 8037 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
8037   s,@MKL_LIB@,$MKL_LIB,;t t
8038   s,@MKL_INC@,$MKL_INC,;t t
8039   s,@HAVE_MKL@,$HAVE_MKL,;t t
6039 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
6040 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
8040   s,@BATEXT@,$BATEXT,;t t
8041   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8042   s,@OOPSE@,$OOPSE,;t t
8043   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
8044   s,@SUBDIRS@,$SUBDIRS,;t t
8045   s,@FFLAGS@,$FFLAGS,;t t
8046 + s,@LIBOBJS@,$LIBOBJS,;t t
8047 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8048   CEOF
8049  
8050 < EOF
8050 > _ACEOF
8051  
8052 <  cat >>$CONFIG_STATUS <<\EOF
8052 >  cat >>$CONFIG_STATUS <<\_ACEOF
8053    # Split the substitutions into bite-sized pieces for seds with
8054    # small command number limits, like on Digital OSF/1 and HP-UX.
8055    ac_max_sed_lines=48
# Line 6073 | Line 8074 | EOF
8074        (echo ':t
8075    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8076        if test -z "$ac_sed_cmds"; then
8077 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8077 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8078        else
8079 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8079 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8080        fi
8081        ac_sed_frag=`expr $ac_sed_frag + 1`
8082        ac_beg=$ac_end
# Line 6087 | Line 8088 | EOF
8088    fi
8089   fi # test -n "$CONFIG_FILES"
8090  
8091 < EOF
8092 < cat >>$CONFIG_STATUS <<\EOF
8091 > _ACEOF
8092 > cat >>$CONFIG_STATUS <<\_ACEOF
8093   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8094    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8095    case $ac_file in
8096    - | *:- | *:-:* ) # input from stdin
8097 <        cat >$tmp/stdin
8098 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8099 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8097 >        cat >$tmp/stdin
8098 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8099 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8100    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8101 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8102    * )   ac_file_in=$ac_file.in ;;
8103    esac
8104  
8105    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8106 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8107 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8108 <         X"$ac_file" : 'X\(//\)$' \| \
8109 <         X"$ac_file" : 'X\(/\)' \| \
8110 <         .     : '\(.\)' 2>/dev/null ||
8106 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8107 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8108 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8109 >         X"$ac_file" : 'X\(//\)$' \| \
8110 >         X"$ac_file" : 'X\(/\)' \| \
8111 >         .     : '\(.\)' 2>/dev/null ||
8112   echo X"$ac_file" |
8113      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8114            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8115            /^X\(\/\/\)$/{ s//\1/; q; }
8116            /^X\(\/\).*/{ s//\1/; q; }
8117            s/.*/./; q'`
8118 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8119 <    { 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'`
8118 >  { if $as_mkdir_p; then
8119 >    mkdir -p "$ac_dir"
8120    else
8121 <    ac_dir_suffix= ac_dots=
8122 <  fi
8121 >    as_dir="$ac_dir"
8122 >    as_dirs=
8123 >    while test ! -d "$as_dir"; do
8124 >      as_dirs="$as_dir $as_dirs"
8125 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8126 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8127 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8128 >         X"$as_dir" : 'X\(//\)$' \| \
8129 >         X"$as_dir" : 'X\(/\)' \| \
8130 >         .     : '\(.\)' 2>/dev/null ||
8131 > echo X"$as_dir" |
8132 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8133 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8134 >          /^X\(\/\/\)$/{ s//\1/; q; }
8135 >          /^X\(\/\).*/{ s//\1/; q; }
8136 >          s/.*/./; q'`
8137 >    done
8138 >    test ! -n "$as_dirs" || mkdir $as_dirs
8139 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8140 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8141 >   { (exit 1); exit 1; }; }; }
8142  
8143 <  case $srcdir in
8144 <  .)  ac_srcdir=.
8145 <      if test -z "$ac_dots"; then
8146 <         ac_top_srcdir=.
8147 <      else
8148 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8149 <      fi ;;
8150 <  [\\/]* | ?:[\\/]* )
8151 <      ac_srcdir=$srcdir$ac_dir_suffix;
8152 <      ac_top_srcdir=$srcdir ;;
8143 >  ac_builddir=.
8144 >
8145 > if test "$ac_dir" != .; then
8146 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8147 >  # A "../" for each directory in $ac_dir_suffix.
8148 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8149 > else
8150 >  ac_dir_suffix= ac_top_builddir=
8151 > fi
8152 >
8153 > case $srcdir in
8154 >  .)  # No --srcdir option.  We are building in place.
8155 >    ac_srcdir=.
8156 >    if test -z "$ac_top_builddir"; then
8157 >       ac_top_srcdir=.
8158 >    else
8159 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8160 >    fi ;;
8161 >  [\\/]* | ?:[\\/]* )  # Absolute path.
8162 >    ac_srcdir=$srcdir$ac_dir_suffix;
8163 >    ac_top_srcdir=$srcdir ;;
8164    *) # Relative path.
8165 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8166 <    ac_top_srcdir=$ac_dots$srcdir ;;
8167 <  esac
8165 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8166 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8167 > esac
8168  
8169 + # Do not use `cd foo && pwd` to compute absolute paths, because
8170 + # the directories may not exist.
8171 + case `pwd` in
8172 + .) ac_abs_builddir="$ac_dir";;
8173 + *)
8174 +  case "$ac_dir" in
8175 +  .) ac_abs_builddir=`pwd`;;
8176 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8177 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8178 +  esac;;
8179 + esac
8180 + case $ac_abs_builddir in
8181 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
8182 + *)
8183 +  case ${ac_top_builddir}. in
8184 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
8185 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8186 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8187 +  esac;;
8188 + esac
8189 + case $ac_abs_builddir in
8190 + .) ac_abs_srcdir=$ac_srcdir;;
8191 + *)
8192 +  case $ac_srcdir in
8193 +  .) ac_abs_srcdir=$ac_abs_builddir;;
8194 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8195 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8196 +  esac;;
8197 + esac
8198 + case $ac_abs_builddir in
8199 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
8200 + *)
8201 +  case $ac_top_srcdir in
8202 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8203 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8204 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8205 +  esac;;
8206 + esac
8207 +
8208 +
8209    case $INSTALL in
8210    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8211 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
8211 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8212    esac
8213  
8214    if test x"$ac_file" != x-; then
8215 <    { echo "$as_me:6161: creating $ac_file" >&5
8215 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
8216   echo "$as_me: creating $ac_file" >&6;}
8217      rm -f "$ac_file"
8218    fi
8219    # Let's still pretend it is `configure' which instantiates (i.e., don't
8220    # use $as_me), people would be surprised to read:
8221 <  #    /* config.h.  Generated automatically by config.status.  */
8222 <  configure_input="Generated automatically from `echo $ac_file_in |
8223 <                                                 sed 's,.*/,,'` by configure."
8221 >  #    /* config.h.  Generated by config.status.  */
8222 >  if test x"$ac_file" = x-; then
8223 >    configure_input=
8224 >  else
8225 >    configure_input="$ac_file.  "
8226 >  fi
8227 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
8228 >                                     sed 's,.*/,,'` by configure."
8229  
8230    # First look for the input files in the build tree, otherwise in the
8231    # src tree.
# Line 6175 | Line 8234 | echo "$as_me: creating $ac_file" >&6;}
8234        case $f in
8235        -) echo $tmp/stdin ;;
8236        [\\/$]*)
8237 <         # Absolute (can't be DOS-style, as IFS=:)
8238 <         test -f "$f" || { { echo "$as_me:6179: error: cannot find input file: $f" >&5
8237 >         # Absolute (can't be DOS-style, as IFS=:)
8238 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8239   echo "$as_me: error: cannot find input file: $f" >&2;}
8240     { (exit 1); exit 1; }; }
8241 <         echo $f;;
8241 >         echo "$f";;
8242        *) # Relative
8243 <         if test -f "$f"; then
8244 <           # Build tree
8245 <           echo $f
8246 <         elif test -f "$srcdir/$f"; then
8247 <           # Source tree
8248 <           echo $srcdir/$f
8249 <         else
8250 <           # /dev/null tree
8251 <           { { echo "$as_me:6192: error: cannot find input file: $f" >&5
8243 >         if test -f "$f"; then
8244 >           # Build tree
8245 >           echo "$f"
8246 >         elif test -f "$srcdir/$f"; then
8247 >           # Source tree
8248 >           echo "$srcdir/$f"
8249 >         else
8250 >           # /dev/null tree
8251 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8252   echo "$as_me: error: cannot find input file: $f" >&2;}
8253     { (exit 1); exit 1; }; }
8254 <         fi;;
8254 >         fi;;
8255        esac
8256      done` || { (exit 1); exit 1; }
8257 < EOF
8258 < cat >>$CONFIG_STATUS <<EOF
8257 > _ACEOF
8258 > cat >>$CONFIG_STATUS <<_ACEOF
8259    sed "$ac_vpsub
8260   $extrasub
8261 < EOF
8262 < cat >>$CONFIG_STATUS <<\EOF
8261 > _ACEOF
8262 > cat >>$CONFIG_STATUS <<\_ACEOF
8263   :t
8264   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8265   s,@configure_input@,$configure_input,;t t
8266   s,@srcdir@,$ac_srcdir,;t t
8267 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
8268   s,@top_srcdir@,$ac_top_srcdir,;t t
8269 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8270 + s,@builddir@,$ac_builddir,;t t
8271 + s,@abs_builddir@,$ac_abs_builddir,;t t
8272 + s,@top_builddir@,$ac_top_builddir,;t t
8273 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8274   s,@INSTALL@,$ac_INSTALL,;t t
8275   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8276    rm -f $tmp/stdin
# Line 6217 | Line 8282 | EOF
8282    fi
8283  
8284   done
8285 < EOF
8286 < cat >>$CONFIG_STATUS <<\EOF
8285 > _ACEOF
8286 > cat >>$CONFIG_STATUS <<\_ACEOF
8287  
8288   #
8289   # CONFIG_HEADER section.
# Line 6228 | Line 8293 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8293   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8294   #
8295   # ac_d sets the value in "#define NAME VALUE" lines.
8296 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8297 < ac_dB='[        ].*$,\1#\2'
8296 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8297 > ac_dB='[         ].*$,\1#\2'
8298   ac_dC=' '
8299   ac_dD=',;t'
8300   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8301 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8301 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8302   ac_uB='$,\1#\2define\3'
8303   ac_uC=' '
8304   ac_uD=',;t'
# Line 6242 | Line 8307 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8307    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8308    case $ac_file in
8309    - | *:- | *:-:* ) # input from stdin
8310 <        cat >$tmp/stdin
8311 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8312 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8310 >        cat >$tmp/stdin
8311 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8312 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8313    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8314 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8315    * )   ac_file_in=$ac_file.in ;;
8316    esac
8317  
8318 <  test x"$ac_file" != x- && { echo "$as_me:6253: creating $ac_file" >&5
8318 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8319   echo "$as_me: creating $ac_file" >&6;}
8320  
8321    # First look for the input files in the build tree, otherwise in the
# Line 6260 | Line 8325 | echo "$as_me: creating $ac_file" >&6;}
8325        case $f in
8326        -) echo $tmp/stdin ;;
8327        [\\/$]*)
8328 <         # Absolute (can't be DOS-style, as IFS=:)
8329 <         test -f "$f" || { { echo "$as_me:6264: error: cannot find input file: $f" >&5
8328 >         # Absolute (can't be DOS-style, as IFS=:)
8329 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8330   echo "$as_me: error: cannot find input file: $f" >&2;}
8331     { (exit 1); exit 1; }; }
8332 <         echo $f;;
8332 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8333 >         echo "$f";;
8334        *) # Relative
8335 <         if test -f "$f"; then
8336 <           # Build tree
8337 <           echo $f
8338 <         elif test -f "$srcdir/$f"; then
8339 <           # Source tree
8340 <           echo $srcdir/$f
8341 <         else
8342 <           # /dev/null tree
8343 <           { { echo "$as_me:6277: error: cannot find input file: $f" >&5
8335 >         if test -f "$f"; then
8336 >           # Build tree
8337 >           echo "$f"
8338 >         elif test -f "$srcdir/$f"; then
8339 >           # Source tree
8340 >           echo "$srcdir/$f"
8341 >         else
8342 >           # /dev/null tree
8343 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8344   echo "$as_me: error: cannot find input file: $f" >&2;}
8345     { (exit 1); exit 1; }; }
8346 <         fi;;
8346 >         fi;;
8347        esac
8348      done` || { (exit 1); exit 1; }
8349    # Remove the trailing spaces.
8350 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8350 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8351  
8352 < EOF
8352 > _ACEOF
8353  
8354   # Transform confdefs.h into two sed scripts, `conftest.defines' and
8355   # `conftest.undefs', that substitutes the proper values into
# Line 6299 | Line 8365 | cat >confdef2sed.sed <<\EOF
8365   # `end' is used to avoid that the second main sed command (meant for
8366   # 0-ary CPP macros) applies to n-ary macro definitions.
8367   # See the Autoconf documentation for `clear'.
8368 < cat >confdef2sed.sed <<\EOF
8368 > cat >confdef2sed.sed <<\_ACEOF
8369   s/[\\&,]/\\&/g
8370   s,[\\$`],\\&,g
8371   t clear
8372   : clear
8373 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8373 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8374   t end
8375 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8375 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8376   : end
8377 < EOF
8377 > _ACEOF
8378   # If some macros were called several times there might be several times
8379   # the same #defines, which is useless.  Nevertheless, we may not want to
8380   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6319 | Line 8385 | cat >>conftest.undefs <<\EOF
8385   # This sed command replaces #undef with comments.  This is necessary, for
8386   # example, in the case of _POSIX_SOURCE, which is predefined and required
8387   # on some systems where configure will not decide to define it.
8388 < cat >>conftest.undefs <<\EOF
8389 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8390 < EOF
8388 > cat >>conftest.undefs <<\_ACEOF
8389 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8390 > _ACEOF
8391  
8392   # Break up conftest.defines because some shells have a limit on the size
8393   # of here documents, and old seds have small limits too (100 cmds).
8394   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8395 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8395 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8396   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8397   echo '  :' >>$CONFIG_STATUS
8398   rm -f conftest.tail
# Line 6335 | Line 8401 | do
8401    # Write a limited-size here document to $tmp/defines.sed.
8402    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8403    # Speed up: don't consider the non `#define' lines.
8404 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8404 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8405    # Work around the forget-to-reset-the-flag bug.
8406    echo 't clr' >>$CONFIG_STATUS
8407    echo ': clr' >>$CONFIG_STATUS
# Line 6350 | Line 8416 | echo '  fi # egrep' >>$CONFIG_STATUS
8416    mv conftest.tail conftest.defines
8417   done
8418   rm -f conftest.defines
8419 < echo '  fi # egrep' >>$CONFIG_STATUS
8419 > echo '  fi # grep' >>$CONFIG_STATUS
8420   echo >>$CONFIG_STATUS
8421  
8422   # Break up conftest.undefs because some shells have a limit on the size
# Line 6362 | Line 8428 | do
8428    # Write a limited-size here document to $tmp/undefs.sed.
8429    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8430    # Speed up: don't consider the non `#undef'
8431 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8431 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8432    # Work around the forget-to-reset-the-flag bug.
8433    echo 't clr' >>$CONFIG_STATUS
8434    echo ': clr' >>$CONFIG_STATUS
# Line 6378 | Line 8444 | cat >>$CONFIG_STATUS <<\EOF
8444   done
8445   rm -f conftest.undefs
8446  
8447 < cat >>$CONFIG_STATUS <<\EOF
8447 > cat >>$CONFIG_STATUS <<\_ACEOF
8448    # Let's still pretend it is `configure' which instantiates (i.e., don't
8449    # use $as_me), people would be surprised to read:
8450 <  #    /* config.h.  Generated automatically by config.status.  */
8450 >  #    /* config.h.  Generated by config.status.  */
8451    if test x"$ac_file" = x-; then
8452 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8452 >    echo "/* Generated by configure.  */" >$tmp/config.h
8453    else
8454 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8454 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8455    fi
8456    cat $tmp/in >>$tmp/config.h
8457    rm -f $tmp/in
8458    if test x"$ac_file" != x-; then
8459 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8460 <      { echo "$as_me:6394: $ac_file is unchanged" >&5
8459 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8460 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8461   echo "$as_me: $ac_file is unchanged" >&6;}
8462      else
8463 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8464 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8465 <         X"$ac_file" : 'X\(//\)$' \| \
8466 <         X"$ac_file" : 'X\(/\)' \| \
8467 <         .     : '\(.\)' 2>/dev/null ||
8463 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8464 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8465 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8466 >         X"$ac_file" : 'X\(//\)$' \| \
8467 >         X"$ac_file" : 'X\(/\)' \| \
8468 >         .     : '\(.\)' 2>/dev/null ||
8469   echo X"$ac_file" |
8470      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8471            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8472            /^X\(\/\/\)$/{ s//\1/; q; }
8473            /^X\(\/\).*/{ s//\1/; q; }
8474            s/.*/./; q'`
8475 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8476 <        { case "$ac_dir" in
8477 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8478 <  *)                      as_incr_dir=.;;
8479 < esac
8480 < as_dummy="$ac_dir"
8481 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8482 <  case $as_mkdir_dir in
8483 <    # Skip DOS drivespec
8484 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8485 <    *)
8486 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8487 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8488 <    ;;
8489 <  esac
8490 < done; }
8475 >      { if $as_mkdir_p; then
8476 >    mkdir -p "$ac_dir"
8477 >  else
8478 >    as_dir="$ac_dir"
8479 >    as_dirs=
8480 >    while test ! -d "$as_dir"; do
8481 >      as_dirs="$as_dir $as_dirs"
8482 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8483 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8484 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8485 >         X"$as_dir" : 'X\(//\)$' \| \
8486 >         X"$as_dir" : 'X\(/\)' \| \
8487 >         .     : '\(.\)' 2>/dev/null ||
8488 > echo X"$as_dir" |
8489 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8490 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8491 >          /^X\(\/\/\)$/{ s//\1/; q; }
8492 >          /^X\(\/\).*/{ s//\1/; q; }
8493 >          s/.*/./; q'`
8494 >    done
8495 >    test ! -n "$as_dirs" || mkdir $as_dirs
8496 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8497 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8498 >   { (exit 1); exit 1; }; }; }
8499  
6425      fi
8500        rm -f $ac_file
8501        mv $tmp/config.h $ac_file
8502      fi
# Line 6431 | Line 8505 | EOF
8505      rm -f $tmp/config.h
8506    fi
8507   done
8508 < EOF
8508 > _ACEOF
8509  
8510 < cat >>$CONFIG_STATUS <<\EOF
8510 > cat >>$CONFIG_STATUS <<\_ACEOF
8511  
8512   { (exit 0); exit 0; }
8513 < EOF
8513 > _ACEOF
8514   chmod +x $CONFIG_STATUS
8515   ac_clean_files=$ac_clean_files_save
8516  
8517 +
8518   # configure is writing to config.log, and then calls config.status.
8519   # config.status does its own redirection, appending to config.log.
8520   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6450 | Line 8525 | if test "$no_create" != yes; then
8525   # need to make the FD available again.
8526   if test "$no_create" != yes; then
8527    ac_cs_success=:
8528 +  ac_config_status_args=
8529 +  test "$silent" = yes &&
8530 +    ac_config_status_args="$ac_config_status_args --quiet"
8531    exec 5>/dev/null
8532 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8532 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8533    exec 5>>config.log
8534    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8535    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines