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 790 by mmeineke, Mon Sep 29 21:16:11 2003 UTC vs.
Revision 944 by gezelter, Wed Jan 14 22:41:34 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 | rm -f conf$$ conf$$.exe conf$$.file
217   fi
218   rm -f conf$$ conf$$.exe conf$$.file
219  
220 < as_executable_p="test -f"
221 <
49 < # Support unset when possible.
50 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 <  as_unset=unset
220 > if mkdir -p . 2>/dev/null; then
221 >  as_mkdir_p=:
222   else
223 <  as_unset=false
223 >  test -d ./-p && rmdir ./-p
224 >  as_mkdir_p=false
225   fi
226  
227 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
227 > as_executable_p="test -f"
228  
229 + # Sed expression to map a string onto a valid CPP name.
230 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 +
232 + # Sed expression to map a string onto a valid variable name.
233 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 +
235 +
236   # IFS
237   # We need space, tab and new line, in precisely that order.
238   as_nl='
# Line 70 | Line 240 | IFS="  $as_nl"
240   IFS="   $as_nl"
241  
242   # CDPATH.
243 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 > $as_unset CDPATH
244  
245 +
246   # Name of the host.
247   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248   # so uname gets run too.
# Line 83 | Line 254 | ac_default_prefix=/usr/local
254   # Initializations.
255   #
256   ac_default_prefix=/usr/local
257 + ac_config_libobj_dir=.
258   cross_compiling=no
259   subdirs=
260 < MFLAGS= MAKEFLAGS=
260 > MFLAGS=
261 > MAKEFLAGS=
262   SHELL=${CONFIG_SHELL-/bin/sh}
263  
264   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 266 | SHELL=${CONFIG_SHELL-/bin/sh}
266   # only ac_max_sed_lines should be used.
267   : ${ac_max_here_lines=38}
268  
269 < # Avoid depending upon Character Ranges.
270 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
271 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
272 < ac_cr_09='0123456789'
273 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
269 > # Identity of this package.
270 > PACKAGE_NAME='OOPSE'
271 > PACKAGE_TARNAME='oopse'
272 > PACKAGE_VERSION='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 | fi
659   fi
660  
661   # Be sure to have absolute paths.
662 + for ac_var in exec_prefix prefix
663 + do
664 +  eval ac_val=$`echo $ac_var`
665 +  case $ac_val in
666 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 +   { (exit 1); exit 1; }; };;
669 +  esac
670 + done
671 +
672 + # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
678      [\\/$]* | ?:[\\/]* ) ;;
679 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
679 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681    esac
682   done
683  
684   # There might be people who depend on the old broken behavior: `$host'
685   # used to hold the argument of --host etc.
686 + # FIXME: To remove some day.
687   build=$build_alias
688   host=$host_alias
689   target=$target_alias
690  
691 < # FIXME: should be removed in autoconf 3.0.
691 > # FIXME: To remove some day.
692   if test "x$host_alias" != x; then
693    if test "x$build_alias" = x; then
694      cross_compiling=maybe
# Line 492 | Line 704 | test "$silent" = yes && exec 6>/dev/null
704  
705   test "$silent" = yes && exec 6>/dev/null
706  
707 +
708   # Find the source files, if location was not specified.
709   if test -z "$srcdir"; then
710    ac_srcdir_defaulted=yes
711    # Try the directory containing this script, then its parent.
712 <  ac_prog=$0
713 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
714 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
713 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718 > echo X"$0" |
719 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 >          /^X\(\/\/\)$/{ s//\1/; q; }
722 >          /^X\(\/\).*/{ s//\1/; q; }
723 >          s/.*/./; q'`
724    srcdir=$ac_confdir
725    if test ! -r $srcdir/$ac_unique_file; then
726      srcdir=..
# Line 508 | Line 730 | if test ! -r $srcdir/$ac_unique_file; then
730   fi
731   if test ! -r $srcdir/$ac_unique_file; then
732    if test "$ac_srcdir_defaulted" = yes; then
733 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
733 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735    else
736 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
736 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738    fi
739   fi
740 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 +   { (exit 1); exit 1; }; }
743   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744   ac_env_build_alias_set=${build_alias+set}
745   ac_env_build_alias_value=$build_alias
# Line 560 | Line 785 | ac_cv_env_F90FLAGS_value=$F90FLAGS
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 | Configuration:
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 | Fine tuning of the installation directories:
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_lib_prefix=PREFIX  SPRNG library directory
880 <  --with-sprng_include_prefix=PREFIX
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
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 671 | Line 892 | Some influential environment variables:
892    CXXFLAGS    C++ compiler flags
893    F90         Fortran 90 compiler command
894    F90FLAGS    Fortran 90 compiler flags
674  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.
690 <    ac_dots=`echo $ac_subdir |
691 <             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 ;;
700 <    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 ||
710 <           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 719 | 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
727 < 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 764 | Line 1036 | hostinfo               = `(hostinfo) 2>/dev/null      
1036   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1037   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1038  
767 PATH = $PATH
768
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
773 < ## ------------ ##
774 < ## Core tests.  ##
775 < ## ------------ ##
1051 > cat >&5 <<_ACEOF
1052  
777 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 849 | 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 860 | 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:863: 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 871 | 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:874: 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 879 | Line 1255 | else
1255      esac
1256    fi
1257   else
1258 <  { echo "$as_me:882: 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:898: 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:902: 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:908: 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:910: WARNING:   former value:  $ac_old_val" >&5
1287 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1288 <        { echo "$as_me:912: 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:919: 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:921: 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 928 | Line 1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
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  
931 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
932  *c*,-n*) ECHO_N= ECHO_C='
933 ' ECHO_T='      ' ;;
934  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
935  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
936 esac
937 echo "#! $SHELL" >conftest.sh
938 echo  "exit 0"   >>conftest.sh
939 chmod +x conftest.sh
940 if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5
941  (PATH=".;."; conftest.sh) 2>&5
942  ac_status=$?
943  echo "$as_me:943: \$? = $ac_status" >&5
944  (exit $ac_status); }; then
945  ac_path_separator=';'
946 else
947  ac_path_separator=:
948 fi
949 PATH_SEPARATOR="$ac_path_separator"
950 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 966 | 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:969: 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 974 | 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 1024 | 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 1059 | 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 1089 | 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 1100 | 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 1110 | 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 1124 | 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   # ------------------------ #
1549  
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 1151 | 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 1176 | 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 1202 | 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 1220 | 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 1229 | 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 1256 | 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 1275 | 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 1283 | 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 1290 | 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 1304 | 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 1313 | 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 1340 | 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 1359 | 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 1367 | 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 1374 | 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 < # what should I build?
1822 >
1823  
1379 # Check whether --enable-debug or --disable-debug was given.
1380 if test "${enable_debug+set}" = set; then
1381  enableval="$enable_debug"
1382  DEBUG=1
1383 fi;
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 +
1880 + debug=0
1881 + # Check whether --enable-debug or --disable-debug was given.
1882 + if test "${enable_debug+set}" = set; then
1883 +  enableval="$enable_debug"
1884 +  debug=1
1885 + fi;
1886   if test "${DEBUG}"; then
1887  
1888 < cat >>confdefs.h <<\EOF
1889 < #define DEBUG 1
1890 < EOF
1888 > cat >>confdefs.h <<\_ACEOF
1889 > #define debug 1
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:1400: 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:1404: 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 1410 | 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:1413: 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:1417: 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:1422: 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:1429: 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 1435 | 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:1438: 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:1443: 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 1457 | Line 1959 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
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:1460: 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 1465 | 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:1475: 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:1483: result: $CC" >&5
1988 >  echo "$as_me:$LINENO: result: $CC" >&5
1989   echo "${ECHO_T}$CC" >&6
1990   else
1991 <  echo "$as_me:1486: result: no" >&5
1991 >  echo "$as_me:$LINENO: result: no" >&5
1992   echo "${ECHO_T}no" >&6
1993   fi
1994  
# Line 1496 | Line 2001 | set dummy $ac_prog; ac_word=$2
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:1499: 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 1504 | 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:1514: 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:1522: 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:1525: result: no" >&5
2033 >  echo "$as_me:$LINENO: result: no" >&5
2034   echo "${ECHO_T}no" >&6
2035   fi
2036  
# Line 1532 | Line 2040 | fi
2040    CC=$ac_ct_CC
2041   fi
2042  
2043 < test -z "$CC" && { { echo "$as_me:1535: 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 1540 "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 1549 | Line 2083 | ac_clean_files_save=$ac_clean_files
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:1556: 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:1559: \"$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:1562: \$? = $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
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 | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2111 <    a.out ) # We found the default executable, but exeext='' is most
2112 <            # certainly right.
2113 <            break;;
2114 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115 <          export ac_cv_exeext
2116 <          break;;
2117 <    * ) break;;
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:1579: 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:1585: 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:1590: 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:1596: \"$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:1599: \$? = $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:1606: 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:1614: 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:1621: 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:1623: 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:1626: checking for executable suffix" >&5
2186 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2187 < if { (eval echo "$as_me:1628: \"$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:1631: \$? = $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:1647: 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:1653: 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:1659: 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 1665 "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 1674 | Line 2239 | rm -f conftest.o conftest.obj
2239   }
2240   _ACEOF
2241   rm -f conftest.o conftest.obj
2242 < if { (eval echo "$as_me:1677: \"$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:1680: \$? = $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:1692: 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:1699: 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:1703: 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 1709 "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 1721 | Line 2292 | rm -f conftest.$ac_objext
2292   }
2293   _ACEOF
2294   rm -f conftest.$ac_objext
2295 < if { (eval echo "$as_me:1724: \"$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:1727: \$? = $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:1730: \"$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:1733: \$? = $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:1745: 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:1751: 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 1757 "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 1766 | Line 2351 | rm -f conftest.$ac_objext
2351   }
2352   _ACEOF
2353   rm -f conftest.$ac_objext
2354 < if { (eval echo "$as_me:1769: \"$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:1772: \$? = $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:1775: \"$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:1778: \$? = $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:1788: 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 1801 | Line 2397 | else
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 1812 | Line 2523 | rm -f conftest.$ac_objext
2523   #endif
2524   _ACEOF
2525   rm -f conftest.$ac_objext
2526 < if { (eval echo "$as_me:1815: \"$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:1818: \$? = $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:1821: \"$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:1824: \$? = $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 <   ''\
1828 <   '#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 1833 | Line 2553 | do
2553     'void exit (int);'
2554   do
2555    cat >conftest.$ac_ext <<_ACEOF
2556 < #line 1836 "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 1846 | Line 2569 | rm -f conftest.$ac_objext
2569   }
2570   _ACEOF
2571   rm -f conftest.$ac_objext
2572 < if { (eval echo "$as_me:1849: \"$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:1852: \$? = $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:1855: \"$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:1858: \$? = $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 1868 "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 1877 | Line 2614 | rm -f conftest.$ac_objext
2614   }
2615   _ACEOF
2616   rm -f conftest.$ac_objext
2617 < if { (eval echo "$as_me:1880: \"$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:1883: \$? = $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:1886: \"$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:1889: \$? = $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  
1913 # Try to determine "good" native compiler flags if none specified on command
1914 # line
1915 if test "$ac_test_CFLAGS" != "set"; then
1916  CFLAGS=""
1917  case "${host_cpu}-${host_os}" in
2665  
1919  *linux*) if test "$CC" = icc; then
1920                    CFLAGS="-O"
1921                fi;;
1922  sparc-solaris2*) if test "$CC" = cc; then
1923                    CFLAGS="-native -fast -xO5 -dalign"
1924                 fi;;
1925
1926  alpha*-osf*)  if test "$CC" = cc; then
1927                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
1928                fi;;
1929
1930  hppa*-hpux*)  if test "$CC" = cc; then
1931                    CFLAGS="-Ae +O3 +Oall"
1932                fi;;
1933
1934   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
1935                    CFLAGS="-O3 -qtune=auto -qansialias -w"
1936                fi;;
1937   powerpc*-aix*)
1938        if test "$CC" = cc -o "$CC" = xlc; then
1939                CFLAGS="-O3 -qtune=auto -qansialias -w"
1940                echo "*******************************************************"
1941                echo "*  You have AIX on an unknown powerpc system.  It is  *"
1942                echo "*  recommended that you use                           *"
1943                echo "*                                                     *"
1944                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
1945                echo "*                                 ^^^                 *"
1946                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
1947                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
1948                echo "*******************************************************"
1949        fi;;
1950   *darwin*)
1951        if test "$CC" = xlc -o "$CC" = cc; then
1952                CFLAGS="-O3 -qtune=auto -w"
1953                echo "*******************************************************"
1954                echo "*  You have Darwin on an unknown powerpc system.      *"
1955                echo "*  It is recommended that you use                     *"
1956                echo "*                                                     *"
1957                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
1958                echo "*                               ^^^                   *"
1959                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
1960                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
1961                echo "*******************************************************"
1962        fi;;
1963  esac
1964
1965  # use default flags for gcc on all systems
1966  if test $ac_cv_c_compiler_gnu = yes; then
1967     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
1968  fi
1969
1970  # test for gcc-specific flags:
1971  if test $ac_cv_c_compiler_gnu = yes; then
1972    # -malign-double for x86 systems
1973
1974 echo "$as_me:1974: checking whether ${CC-cc} accepts -malign-double" >&5
1975 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
1976 if test "${ac_align_double+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979  echo 'void f(){}' > conftest.c
1980 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
1981        ac_align_double=yes
1982 else
1983        ac_align_double=no
1984 fi
1985 rm -f conftest*
1986
1987 fi
1988 echo "$as_me:1988: result: $ac_align_double" >&5
1989 echo "${ECHO_T}$ac_align_double" >&6
1990 if test "$ac_align_double" = yes; then
1991        :
1992        CFLAGS="$CFLAGS -malign-double"
1993 else
1994        :
1995
1996 fi
1997
1998    # -fstrict-aliasing for gcc-2.95+
1999
2000 echo "$as_me:2000: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2001 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2002 if test "${ac_fstrict_aliasing+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005  echo 'void f(){}' > conftest.c
2006 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2007        ac_fstrict_aliasing=yes
2008 else
2009        ac_fstrict_aliasing=no
2010 fi
2011 rm -f conftest*
2012
2013 fi
2014 echo "$as_me:2014: result: $ac_fstrict_aliasing" >&5
2015 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2016 if test "$ac_fstrict_aliasing" = yes; then
2017        :
2018        CFLAGS="$CFLAGS -fstrict-aliasing"
2019 else
2020        :
2021
2022 fi
2023
2024  fi
2025
2026  CPU_FLAGS=""
2027  if test "$GCC" = "yes"; then
2028                  case "${host_cpu}" in
2029          i586*)
2030
2031 echo "$as_me:2031: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2032 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2033 if test "${ac_cpu_pentium+set}" = set; then
2034  echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036  echo 'void f(){}' > conftest.c
2037 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2038        ac_cpu_pentium=yes
2039 else
2040        ac_cpu_pentium=no
2041 fi
2042 rm -f conftest*
2043
2044 fi
2045 echo "$as_me:2045: result: $ac_cpu_pentium" >&5
2046 echo "${ECHO_T}$ac_cpu_pentium" >&6
2047 if test "$ac_cpu_pentium" = yes; then
2048        :
2049        CPU_FLAGS=-mcpu=pentium
2050 else
2051        :
2052
2053 echo "$as_me:2053: checking whether ${CC-cc} accepts -mpentium" >&5
2054 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
2055 if test "${ac_pentium+set}" = set; then
2056  echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058  echo 'void f(){}' > conftest.c
2059 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2060        ac_pentium=yes
2061 else
2062        ac_pentium=no
2063 fi
2064 rm -f conftest*
2065
2066 fi
2067 echo "$as_me:2067: result: $ac_pentium" >&5
2068 echo "${ECHO_T}$ac_pentium" >&6
2069 if test "$ac_pentium" = yes; then
2070        :
2071        CPU_FLAGS=-mpentium
2072 else
2073        :
2074
2075 fi
2076
2077 fi
2078
2079                  ;;
2080          i686*)
2081
2082 echo "$as_me:2082: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2083 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2084 if test "${ac_cpu_pentiumpro+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087  echo 'void f(){}' > conftest.c
2088 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2089        ac_cpu_pentiumpro=yes
2090 else
2091        ac_cpu_pentiumpro=no
2092 fi
2093 rm -f conftest*
2094
2095 fi
2096 echo "$as_me:2096: result: $ac_cpu_pentiumpro" >&5
2097 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2098 if test "$ac_cpu_pentiumpro" = yes; then
2099        :
2100        CPU_FLAGS=-mcpu=pentiumpro
2101 else
2102        :
2103
2104 echo "$as_me:2104: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2105 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2106 if test "${ac_pentiumpro+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109  echo 'void f(){}' > conftest.c
2110 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2111        ac_pentiumpro=yes
2112 else
2113        ac_pentiumpro=no
2114 fi
2115 rm -f conftest*
2116
2117 fi
2118 echo "$as_me:2118: result: $ac_pentiumpro" >&5
2119 echo "${ECHO_T}$ac_pentiumpro" >&6
2120 if test "$ac_pentiumpro" = yes; then
2121        :
2122        CPU_FLAGS=-mpentiumpro
2123 else
2124        :
2125
2126 fi
2127
2128 fi
2129
2130                  ;;
2131          powerpc*)
2132                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2133                is60x=`echo $cputype | egrep "^600-9e?$"`
2134                if test -n "$is60x"; then
2135
2136 echo "$as_me:2136: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2137 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2138 if test "${ac_m_cpu_60x+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141  echo 'void f(){}' > conftest.c
2142 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2143        ac_m_cpu_60x=yes
2144 else
2145        ac_m_cpu_60x=no
2146 fi
2147 rm -f conftest*
2148
2149 fi
2150 echo "$as_me:2150: result: $ac_m_cpu_60x" >&5
2151 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2152 if test "$ac_m_cpu_60x" = yes; then
2153        :
2154        CPU_FLAGS=-mcpu=$cputype
2155 else
2156        :
2157
2158 fi
2159
2160                elif test "$cputype" = 750; then
2161
2162 echo "$as_me:2162: checking whether we are using gcc 2.95 or later" >&5
2163 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2164 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167
2168 cat > conftest.c <<EOF
2169 #ifdef __GNUC__
2170 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2171     yes;
2172 #  endif
2173 #endif
2174 EOF
2175 if { ac_try='${CC-cc} -E conftest.c'
2176  { (eval echo "$as_me:2176: \"$ac_try\"") >&5
2177  (eval $ac_try) 2>&5
2178  ac_status=$?
2179  echo "$as_me:2179: \$? = $ac_status" >&5
2180  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2181  ac_cv_prog_gcc_2_95=yes
2182 else
2183  ac_cv_prog_gcc_2_95=no
2184 fi
2185
2186 fi
2187 echo "$as_me:2187: result: $ac_cv_prog_gcc_2_95" >&5
2188 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2189 if test "$ac_cv_prog_gcc_2_95" = yes; then
2190        :
2191
2192 echo "$as_me:2192: checking whether ${CC-cc} accepts -mcpu=750" >&5
2193 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2194 if test "${ac_m_cpu_750+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197  echo 'void f(){}' > conftest.c
2198 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2199        ac_m_cpu_750=yes
2200 else
2201        ac_m_cpu_750=no
2202 fi
2203 rm -f conftest*
2204
2205 fi
2206 echo "$as_me:2206: result: $ac_m_cpu_750" >&5
2207 echo "${ECHO_T}$ac_m_cpu_750" >&6
2208 if test "$ac_m_cpu_750" = yes; then
2209        :
2210        CPU_FLAGS=-mcpu=750
2211 else
2212        :
2213
2214 fi
2215
2216 else
2217        :
2218
2219 fi
2220
2221                fi
2222                if test -z "$CPU_FLAGS"; then
2223
2224 echo "$as_me:2224: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2225 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2226 if test "${ac_m_cpu_powerpc+set}" = set; then
2227  echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229  echo 'void f(){}' > conftest.c
2230 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2231        ac_m_cpu_powerpc=yes
2232 else
2233        ac_m_cpu_powerpc=no
2234 fi
2235 rm -f conftest*
2236
2237 fi
2238 echo "$as_me:2238: result: $ac_m_cpu_powerpc" >&5
2239 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2240 if test "$ac_m_cpu_powerpc" = yes; then
2241        :
2242        CPU_FLAGS=-mcpu=powerpc
2243 else
2244        :
2245
2246 fi
2247
2248                fi
2249                if test -z "$CPU_FLAGS"; then
2250
2251 echo "$as_me:2251: checking whether ${CC-cc} accepts -mpowerpc" >&5
2252 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2253 if test "${ac_m_powerpc+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256  echo 'void f(){}' > conftest.c
2257 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2258        ac_m_powerpc=yes
2259 else
2260        ac_m_powerpc=no
2261 fi
2262 rm -f conftest*
2263
2264 fi
2265 echo "$as_me:2265: result: $ac_m_powerpc" >&5
2266 echo "${ECHO_T}$ac_m_powerpc" >&6
2267 if test "$ac_m_powerpc" = yes; then
2268        :
2269        CPU_FLAGS=-mpowerpc
2270 else
2271        :
2272
2273 fi
2274
2275                fi
2276          esac
2277  fi
2278
2279  if test -n "$CPU_FLAGS"; then
2280        CFLAGS="$CFLAGS $CPU_FLAGS"
2281  fi
2282
2283  if test -z "$CFLAGS"; then
2284        echo ""
2285        echo "********************************************************"
2286        echo "* WARNING: Don't know the best CFLAGS for this system  *"
2287        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2288        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
2289        echo "********************************************************"
2290        echo ""
2291        CFLAGS="-O3"
2292  fi
2293
2294 echo "$as_me:2294: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2295 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2296 if test "${ac_guessed_cflags+set}" = set; then
2297  echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299  echo 'void f(){}' > conftest.c
2300 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2301        ac_guessed_cflags=yes
2302 else
2303        ac_guessed_cflags=no
2304 fi
2305 rm -f conftest*
2306
2307 fi
2308 echo "$as_me:2308: result: $ac_guessed_cflags" >&5
2309 echo "${ECHO_T}$ac_guessed_cflags" >&6
2310 if test "$ac_guessed_cflags" = yes; then
2311        :
2312
2313 else
2314        :
2315
2316        echo ""
2317        echo "********************************************************"
2318        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
2319        echo "* your compiler.                                       *"
2320        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2321        echo "********************************************************"
2322        echo ""
2323        CFLAGS=""
2324
2325 fi
2326
2327 fi
2328
2666   ac_ext=cc
2667   ac_cpp='$CXXCPP $CPPFLAGS'
2668   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671   if test -n "$ac_tool_prefix"; then
2672 <  for ac_prog in $CCC icpc icc xlC g++ c++
2672 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
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:2339: 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 2344 | 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:2354: 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:2362: result: $CXX" >&5
2702 >  echo "$as_me:$LINENO: result: $CXX" >&5
2703   echo "${ECHO_T}$CXX" >&6
2704   else
2705 <  echo "$as_me:2365: result: no" >&5
2705 >  echo "$as_me:$LINENO: result: no" >&5
2706   echo "${ECHO_T}no" >&6
2707   fi
2708  
# Line 2371 | Line 2711 | if test -z "$CXX"; then
2711   fi
2712   if test -z "$CXX"; then
2713    ac_ct_CXX=$CXX
2714 <  for ac_prog in $CCC icpc icc xlC g++ c++
2714 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
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:2378: 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 2383 | 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:2393: 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:2401: 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:2404: result: no" >&5
2747 >  echo "$as_me:$LINENO: result: no" >&5
2748   echo "${ECHO_T}no" >&6
2749   fi
2750  
# Line 2412 | Line 2755 | fi
2755    CXX=$ac_ct_CXX
2756   fi
2757  
2758 < echo "$as_me:2415: 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 2421 "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 2433 | Line 2800 | rm -f conftest.$ac_objext
2800   }
2801   _ACEOF
2802   rm -f conftest.$ac_objext
2803 < if { (eval echo "$as_me:2436: \"$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:2439: \$? = $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:2442: \"$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:2445: \$? = $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:2457: 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:2463: 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 2469 "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 2478 | Line 2859 | rm -f conftest.$ac_objext
2859   }
2860   _ACEOF
2861   rm -f conftest.$ac_objext
2862 < if { (eval echo "$as_me:2481: \"$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:2484: \$? = $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:2487: \"$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:2490: \$? = $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:2500: 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 2515 | Line 2907 | for ac_declaration in \
2907    fi
2908   fi
2909   for ac_declaration in \
2910 <   ''\
2519 <   '#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 2524 | Line 2915 | do
2915     'void exit (int);'
2916   do
2917    cat >conftest.$ac_ext <<_ACEOF
2918 < #line 2527 "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 2537 | Line 2931 | rm -f conftest.$ac_objext
2931   }
2932   _ACEOF
2933   rm -f conftest.$ac_objext
2934 < if { (eval echo "$as_me:2540: \"$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:2543: \$? = $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:2546: \"$ac_try\"") >&5
2944 <  (eval $ac_try) 2>&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:2549: \$? = $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 2559 "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 2568 | Line 2976 | rm -f conftest.$ac_objext
2976   }
2977   _ACEOF
2978   rm -f conftest.$ac_objext
2979 < if { (eval echo "$as_me:2571: \"$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:2574: \$? = $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:2577: \"$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:2580: \$? = $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 2596 | Line 3018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
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  
2599 # Try to determine "good" native compiler flags if none specified on command
2600 # line
2601 if test "$ac_test_CXXFLAGS" != "set"; then
2602  CXXFLAGS=""
2603  case "${host_cpu}-${host_os}" in
3021  
3022 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3023 <                    CXXFLAGS="-O"
3024 <                fi;;
3025 <  sparc-solaris2*) if test "$CXX" = CC; then
3026 <                    CXXFLAGS="-native -fast -xO5 -dalign"
3027 <                 fi;;
3028 <   rs6000*-aix*)  if test "$CXX" = xlC; then
3029 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3030 <                fi;;
3031 <   powerpc*-aix*)
3032 <        if test "$CXX" = xlC; then
3033 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
2617 <                echo "*******************************************************"
2618 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2619 <                echo "*  recommended that you use                           *"
2620 <                echo "*                                                     *"
2621 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2622 <                echo "*                                 ^^^                 *"
2623 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2624 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2625 <                echo "*******************************************************"
2626 <        fi;;
2627 <   *darwin*)
2628 <        if test "$CXX" = xlC; then
2629 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
2630 <                echo "*******************************************************"
2631 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2632 <                echo "*  recommended that you use                           *"
2633 <                echo "*                                                     *"
2634 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2635 <                echo "*                                 ^^^                 *"
2636 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2637 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2638 <                echo "*******************************************************"
2639 <        fi;;
2640 <  esac
2641 <
2642 <  # use default flags for gcc on all systems
2643 <  if test $ac_cv_c_compiler_gnu = yes; then
2644 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
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 <
3036 <  # test for gcc-specific flags:
3037 <  if test $ac_cv_c_compiler_gnu = yes; then
3038 <    # -malign-double for x86 systems
3039 <
3040 < echo "$as_me:2651: checking whether ${CXX-c++} accepts -malign-double" >&5
3041 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3042 < if test "${ac_align_double+set}" = set; then
3043 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3044 < else
3045 <  echo 'void f(){}' > conftest.cpp
2657 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
2658 <        ac_align_double=yes
2659 < else
2660 <        ac_align_double=no
2661 < fi
2662 < rm -f conftest*
2663 <
2664 < fi
2665 < echo "$as_me:2665: result: $ac_align_double" >&5
2666 < echo "${ECHO_T}$ac_align_double" >&6
2667 < if test "$ac_align_double" = yes; then
2668 <        :
2669 <        CXXFLAGS="$CXXFLAGS -malign-double"
2670 < else
2671 <        :
2672 <
2673 < fi
2674 <
2675 <    # -fstrict-aliasing for gcc-2.95+
2676 <
2677 < echo "$as_me:2677: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
2678 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
2679 < if test "${ac_fstrict_aliasing+set}" = set; then
2680 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2681 < else
2682 <  echo 'void f(){}' > conftest.cpp
2683 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
2684 <        ac_fstrict_aliasing=yes
2685 < else
2686 <        ac_fstrict_aliasing=no
2687 < fi
2688 < rm -f conftest*
2689 <
2690 < fi
2691 < echo "$as_me:2691: result: $ac_fstrict_aliasing" >&5
2692 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2693 < if test "$ac_fstrict_aliasing" = yes; then
2694 <        :
2695 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
2696 < else
2697 <        :
2698 <
2699 < fi
2700 <
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  
2703  CPU_FLAGS=""
2704  if test "$GCC" = "yes"; then
2705                  case "${host_cpu}" in
2706          i586*)
3067  
3068 < echo "$as_me:2708: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3069 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3070 < if test "${ac_cpu_pentium+set}" = set; then
3071 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2712 < else
2713 <  echo 'void f(){}' > conftest.c
2714 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2715 <        ac_cpu_pentium=yes
2716 < else
2717 <        ac_cpu_pentium=no
2718 < fi
2719 < rm -f conftest*
2720 <
2721 < fi
2722 < echo "$as_me:2722: result: $ac_cpu_pentium" >&5
2723 < echo "${ECHO_T}$ac_cpu_pentium" >&6
2724 < if test "$ac_cpu_pentium" = yes; then
2725 <        :
2726 <        CPU_FLAGS=-mcpu=pentium
2727 < else
2728 <        :
2729 <
2730 < echo "$as_me:2730: checking whether ${CXX-c++} accepts -mpentium" >&5
2731 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
2732 < if test "${ac_pentium+set}" = set; then
2733 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2734 < else
2735 <  echo 'void f(){}' > conftest.cpp
2736 < if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
2737 <        ac_pentium=yes
2738 < else
2739 <        ac_pentium=no
2740 < fi
2741 < rm -f conftest*
2742 <
2743 < fi
2744 < echo "$as_me:2744: result: $ac_pentium" >&5
2745 < echo "${ECHO_T}$ac_pentium" >&6
2746 < if test "$ac_pentium" = yes; then
2747 <        :
2748 <        CPU_FLAGS=-mpentium
2749 < else
2750 <        :
2751 <
2752 < fi
2753 <
2754 < fi
2755 <
2756 <                  ;;
2757 <          i686*)
2758 <
2759 < echo "$as_me:2759: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
2760 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2761 < if test "${ac_cpu_pentiumpro+set}" = set; then
2762 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2763 < else
2764 <  echo 'void f(){}' > conftest.cpp
2765 < if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
2766 <        ac_cpu_pentiumpro=yes
2767 < else
2768 <        ac_cpu_pentiumpro=no
2769 < fi
2770 < rm -f conftest*
2771 <
2772 < fi
2773 < echo "$as_me:2773: result: $ac_cpu_pentiumpro" >&5
2774 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2775 < if test "$ac_cpu_pentiumpro" = yes; then
2776 <        :
2777 <        CPU_FLAGS=-mcpu=pentiumpro
2778 < else
2779 <        :
2780 <
2781 < echo "$as_me:2781: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
2782 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
2783 < if test "${ac_pentiumpro+set}" = set; then
2784 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2785 < else
2786 <  echo 'void f(){}' > conftest.cpp
2787 < if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
2788 <        ac_pentiumpro=yes
2789 < else
2790 <        ac_pentiumpro=no
2791 < fi
2792 < rm -f conftest*
2793 <
2794 < fi
2795 < echo "$as_me:2795: result: $ac_pentiumpro" >&5
2796 < echo "${ECHO_T}$ac_pentiumpro" >&6
2797 < if test "$ac_pentiumpro" = yes; then
2798 <        :
2799 <        CPU_FLAGS=-mpentiumpro
2800 < else
2801 <        :
2802 <
2803 < fi
2804 <
2805 < fi
2806 <
2807 <                  ;;
2808 <          powerpc*)
2809 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2810 <                is60x=`echo $cputype | egrep "^600-9e?$"`
2811 <                if test -n "$is60x"; then
2812 <
2813 < echo "$as_me:2813: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
2814 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
2815 < if test "${ac_m_cpu_60x+set}" = set; then
2816 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2817 < else
2818 <  echo 'void f(){}' > conftest.cpp
2819 < if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
2820 <        ac_m_cpu_60x=yes
2821 < else
2822 <        ac_m_cpu_60x=no
2823 < fi
2824 < rm -f conftest*
2825 <
2826 < fi
2827 < echo "$as_me:2827: result: $ac_m_cpu_60x" >&5
2828 < echo "${ECHO_T}$ac_m_cpu_60x" >&6
2829 < if test "$ac_m_cpu_60x" = yes; then
2830 <        :
2831 <        CPU_FLAGS=-mcpu=$cputype
2832 < else
2833 <        :
2834 <
2835 < fi
2836 <
2837 <                elif test "$cputype" = 750; then
2838 <
2839 < echo "$as_me:2839: checking whether we are using gcc 2.95 or later" >&5
2840 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2841 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2842 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2843 < else
2844 <
2845 < cat > conftest.c <<EOF
2846 < #ifdef __GNUC__
2847 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2848 <     yes;
2849 < #  endif
2850 < #endif
2851 < EOF
2852 < if { ac_try='${CC-cc} -E conftest.c'
2853 <  { (eval echo "$as_me:2853: \"$ac_try\"") >&5
2854 <  (eval $ac_try) 2>&5
2855 <  ac_status=$?
2856 <  echo "$as_me:2856: \$? = $ac_status" >&5
2857 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2858 <  ac_cv_prog_gcc_2_95=yes
2859 < else
2860 <  ac_cv_prog_gcc_2_95=no
2861 < fi
2862 <
2863 < fi
2864 < echo "$as_me:2864: result: $ac_cv_prog_gcc_2_95" >&5
2865 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2866 < if test "$ac_cv_prog_gcc_2_95" = yes; then
2867 <        :
2868 <
2869 < echo "$as_me:2869: checking whether ${CXX-c++} accepts -mcpu=750" >&5
2870 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
2871 < if test "${ac_m_cpu_750+set}" = set; then
2872 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2873 < else
2874 <  echo 'void f(){}' > conftest.cpp
2875 < if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
2876 <        ac_m_cpu_750=yes
2877 < else
2878 <        ac_m_cpu_750=no
2879 < fi
2880 < rm -f conftest*
2881 <
2882 < fi
2883 < echo "$as_me:2883: result: $ac_m_cpu_750" >&5
2884 < echo "${ECHO_T}$ac_m_cpu_750" >&6
2885 < if test "$ac_m_cpu_750" = yes; then
2886 <        :
2887 <        CPU_FLAGS=-mcpu=750
2888 < else
2889 <        :
2890 <
2891 < fi
2892 <
2893 < else
2894 <        :
2895 <
2896 < fi
2897 <
2898 <                fi
2899 <                if test -z "$CPU_FLAGS"; then
2900 <
2901 < echo "$as_me:2901: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
2902 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
2903 < if test "${ac_m_cpu_powerpc+set}" = set; then
2904 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2905 < else
2906 <  echo 'void f(){}' > conftest.cpp
2907 < if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
2908 <        ac_m_cpu_powerpc=yes
2909 < else
2910 <        ac_m_cpu_powerpc=no
2911 < fi
2912 < rm -f conftest*
2913 <
2914 < fi
2915 < echo "$as_me:2915: result: $ac_m_cpu_powerpc" >&5
2916 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2917 < if test "$ac_m_cpu_powerpc" = yes; then
2918 <        :
2919 <        CPU_FLAGS=-mcpu=powerpc
2920 < else
2921 <        :
2922 <
2923 < fi
2924 <
2925 <                fi
2926 <                if test -z "$CPU_FLAGS"; then
2927 <
2928 < echo "$as_me:2928: checking whether ${CXX-c++} accepts -mpowerpc" >&5
2929 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
2930 < if test "${ac_m_powerpc+set}" = set; then
2931 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2932 < else
2933 <  echo 'void f(){}' > conftest.cpp
2934 < if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
2935 <        ac_m_powerpc=yes
2936 < else
2937 <        ac_m_powerpc=no
2938 < fi
2939 < rm -f conftest*
2940 <
2941 < fi
2942 < echo "$as_me:2942: result: $ac_m_powerpc" >&5
2943 < echo "${ECHO_T}$ac_m_powerpc" >&6
2944 < if test "$ac_m_powerpc" = yes; then
2945 <        :
2946 <        CPU_FLAGS=-mpowerpc
2947 < else
2948 <        :
2949 <
2950 < fi
2951 <
2952 <                fi
2953 <          esac
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
2955
2956  if test -n "$CPU_FLAGS"; then
2957        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
2958  fi
2959
2960  if test -z "$CXXFLAGS"; then
2961        echo ""
2962        echo "**********************************************************"
2963        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
2964        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
2965        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
2966        echo "**********************************************************"
2967        echo ""
2968        CXXFLAGS="-O3"
2969  fi
2970
2971 echo "$as_me:2971: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
2972 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
2973 if test "${ac_guessed_cxxflags+set}" = set; then
2974  echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976  echo 'void f(){}' > conftest.cpp
2977 if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
2978        ac_guessed_cxxflags=yes
2979 else
2980        ac_guessed_cxxflags=no
3073   fi
2982 rm -f conftest*
3074  
2984 fi
2985 echo "$as_me:2985: result: $ac_guessed_cxxflags" >&5
2986 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
2987 if test "$ac_guessed_cxxflags" = yes; then
2988        :
3075  
2990 else
2991        :
3076  
2993        echo ""
2994        echo "**********************************************************"
2995        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
2996        echo "* your compiler.                                         *"
2997        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
2998        echo "**********************************************************"
2999        echo ""
3000        CXXFLAGS=""
3077  
3002 fi
3003
3004 fi
3005
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:3015: 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 3020 | 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:3030: 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:3038: result: $F90" >&5
3113 >  echo "$as_me:$LINENO: result: $F90" >&5
3114   echo "${ECHO_T}$F90" >&6
3115   else
3116 <  echo "$as_me:3041: result: no" >&5
3116 >  echo "$as_me:$LINENO: result: no" >&5
3117   echo "${ECHO_T}no" >&6
3118   fi
3119  
# Line 3047 | 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:3054: 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 3059 | 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:3069: 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:3077: 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:3080: result: no" >&5
3158 >  echo "$as_me:$LINENO: result: no" >&5
3159   echo "${ECHO_T}no" >&6
3160   fi
3161  
# Line 3087 | 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:3094: 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 3108 | Line 3187 | rm -f conftest.$ac_objext
3187  
3188   _ACEOF
3189   rm -f conftest.$ac_objext
3190 < if { (eval echo "$as_me:3111: \"$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:3114: \$? = $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:3117: \"$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:3120: \$? = $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:3132: 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 3139 | Line 3229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
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  
3142 # Try to determine "good" native compiler flags if none specified on command
3143 # line
3232  
3145 if test "$ac_test_F90FLAGS" != "set"; then
3146  F90FLAGS=""
3147  case "${host_cpu}-${host_os}" in
3233  
3149  *linux*) if test "$F90" = ifc; then
3150                    F90FLAGS="-O"
3151                fi;;
3152   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3153                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3154                fi;;
3155   powerpc*-aix*)
3156        if test "$F90" = f90 -o "$F90" = xlf90; then
3157                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
3158                echo "*******************************************************"
3159                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3160                echo "*  recommended that you use                           *"
3161                echo "*                                                     *"
3162                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3163                echo "*                                 ^^^                 *"
3164                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3165                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
3166                echo "*******************************************************"
3167        fi;;
3168   *darwin*)
3169        if test "$F90" = f90 -o "$F90" = xlf90; then
3170                F90FLAGS="-O3 -qtune=auto -w"
3171                echo "*********************************************************"
3172                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3173                echo "*  recommended that you use                             *"
3174                echo "*                                                       *"
3175                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3176                echo "*                                 ^^^                   *"
3177                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3178                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3179                echo "*********************************************************"
3180        fi;;
3181  esac
3234  
3183  if test -n "$CPU_FLAGS"; then
3184        F90FLAGS="$F90FLAGS $CPU_FLAGS"
3185  fi
3235  
3187  if test -z "$F90FLAGS"; then
3188        echo ""
3189        echo "**********************************************************"
3190        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
3191        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3192        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
3193        echo "**********************************************************"
3194        echo ""
3195        F90FLAGS="-O3"
3196  fi
3197
3198 echo "$as_me:3198: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
3199 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
3200 if test "${ac_guessed_f90flags+set}" = set; then
3201  echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203
3204 ac_ext=f90
3205 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3206 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3208
3209 echo 'program main' > conftest.$ac_ext
3210 echo 'end program main' >> conftest.$ac_ext
3211 ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
3212 if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
3213  (eval $ac_compile) 2>&5
3214  ac_status=$?
3215  echo "$as_me:3215: \$? = $ac_status" >&5
3216  (exit $ac_status); }; then
3217        ac_guessed_f90flags=yes
3218 else
3219        ac_guessed_f90flags=no
3220 fi
3221 rm -f conftest*
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228 fi
3229 echo "$as_me:3229: result: $ac_guessed_f90flags" >&5
3230 echo "${ECHO_T}$ac_guessed_f90flags" >&6
3231 if test "$ac_guessed_f90flags" = yes; then
3232        :
3233
3234 else
3235        :
3236
3237        echo ""
3238        echo "**********************************************************"
3239        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
3240        echo "* your compiler.                                         *"
3241        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3242        echo "**********************************************************"
3243        echo ""
3244        F90FLAGS=""
3245
3246 fi
3247
3248 fi
3249
3236   # Try to determine native compiler flags that allow us to use F90 suffix
3237   # for preprocessed f90 source.
3238  
# Line 3254 | 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 3267 | Line 3253 | if test "$ac_test_PREPFLAG" != "set"; then
3253    esac
3254  
3255    if test -z "$PREPFLAG"; then
3256 <        echo ""
3257 <        echo "**********************************************************"
3272 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3273 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3274 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3275 <        echo "**********************************************************"
3276 <        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:3280: 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 3295 | Line 3277 | fi
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:3307: \"$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:3310: \$? = $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:3313: \"$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:3316: \$? = $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 3331 | 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:3335: result: yes" >&5
3331 >    echo "$as_me:$LINENO: result: yes" >&5
3332   echo "${ECHO_T}yes" >&6
3333  
3334    else
3335 <    echo "$as_me:3339: result: no" >&5
3335 >    echo "$as_me:$LINENO: result: no" >&5
3336   echo "${ECHO_T}no" >&6
3337 <    { { echo "$as_me:3341: 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 3351 | 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 3364 | Line 3364 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3364    esac
3365  
3366    if test -z "$PREPDEFFLAG"; then
3367 <        echo ""
3368 <        echo "*************************************************************"
3369 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3370 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3371 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3372 <        echo "*************************************************************"
3373 <        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:3377: 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 3392 | Line 3388 | fi
3388  
3389      cat >conftest.$ac_ext <<_ACEOF
3390  
3391 +
3392   program main
3393  
3394    integer :: i
# Line 3401 | Line 3398 | 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:3408: \"$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:3411: \$? = $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:3414: \"$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:3417: \$? = $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 3432 | 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:3436: result: yes" >&5
3447 >    echo "$as_me:$LINENO: result: yes" >&5
3448   echo "${ECHO_T}yes" >&6
3449  
3450    else
3451 <    echo "$as_me:3440: result: no" >&5
3451 >    echo "$as_me:$LINENO: result: no" >&5
3452   echo "${ECHO_T}no" >&6
3453 <    { { echo "$as_me:3442: 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 < # Find a good install program.  We prefer a C program (faster),
3460 < # so one script is as good as another.  But avoid the broken or
3461 < # incompatible versions:
3462 < # SysV /etc/install, /usr/sbin/install
3463 < # SunOS /usr/etc/install
3464 < # IRIX /sbin/install
3465 < # AIX /bin/install
3466 < # AmigaOS /C/install, which installs bootblocks on floppy discs
3467 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3468 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3469 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3470 < # ./install, which can be erroneously created by make from ./install.sh.
3471 < echo "$as_me:3460: checking for a BSD compatible install" >&5
3472 < echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3462 < if test -z "$INSTALL"; then
3463 < if test "${ac_cv_path_install+set}" = set; then
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 >
3464 >
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
3466    ac_save_IFS=$IFS; IFS=$ac_path_separator
3467  for ac_dir in $PATH; do
3468    IFS=$ac_save_IFS
3469    # Account for people who put trailing slashes in PATH elements.
3470    case $ac_dir/ in
3471    / | ./ | .// | /cC/* \
3472    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3473    | /usr/ucb/* ) ;;
3474    *)
3475      # OSF1 and SCO ODT 3.0 have their own names for install.
3476      # Don't use installbsd from OSF since it installs stuff as root
3477      # by default.
3478      for ac_prog in ginstall scoinst install; do
3479        if $as_executable_p "$ac_dir/$ac_prog"; then
3480          if test $ac_prog = install &&
3481            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3482            # AIX install.  It has an incompatible calling convention.
3483            :
3484          elif test $ac_prog = install &&
3485            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3486            # program-specific install script used by HP pwplus--don't use.
3487            :
3488          else
3489            ac_cv_path_install="$ac_dir/$ac_prog -c"
3490            break 2
3491          fi
3492        fi
3493      done
3494      ;;
3495    esac
3496  done
3475  
3476 < fi
3499 <  if test "${ac_cv_path_install+set}" = set; then
3500 <    INSTALL=$ac_cv_path_install
3501 <  else
3502 <    # As a last resort, use the slow shell script.  We don't cache a
3503 <    # path for INSTALL within a source directory, because that will
3504 <    # break other packages using the cache if that directory is
3505 <    # removed, or if the path is relative.
3506 <    INSTALL=$ac_install_sh
3507 <  fi
3508 < fi
3509 < echo "$as_me:3509: result: $INSTALL" >&5
3510 < echo "${ECHO_T}$INSTALL" >&6
3476 > cat >conftest.$ac_ext <<_ACEOF
3477  
3478 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3513 < # It thinks the first close brace ends the variable substitution.
3514 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3478 > program main
3479  
3516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3480  
3481 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3481 > end program main
3482  
3483 < echo "$as_me:3520: checking whether ln -s works" >&5
3484 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3485 < LN_S=$as_ln_s
3486 < if test "$LN_S" = "ln -s"; then
3487 <  echo "$as_me:3524: result: yes" >&5
3488 < echo "${ECHO_T}yes" >&6
3489 < else
3490 <  echo "$as_me:3527: result: no, using $LN_S" >&5
3491 < echo "${ECHO_T}no, using $LN_S" >&6
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 < echo "$as_me:3531: checking whether ${MAKE-make} sets \${MAKE}" >&5
3547 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3548 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3549 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3550 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3536 < else
3537 <  cat >conftest.make <<\EOF
3538 < all:
3539 <        @echo 'ac_maketemp="${MAKE}"'
3540 < EOF
3541 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3542 < eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3543 < if test -n "$ac_maketemp"; then
3544 <  eval ac_cv_prog_make_${ac_make}_set=yes
3545 < else
3546 <  eval ac_cv_prog_make_${ac_make}_set=no
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 < rm -f conftest.make
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
3550 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3551  echo "$as_me:3551: result: yes" >&5
3552 echo "${ECHO_T}yes" >&6
3553  SET_MAKE=
3565   else
3566 <  echo "$as_me:3555: result: no" >&5
3567 < echo "${ECHO_T}no" >&6
3568 <  SET_MAKE="MAKE=${MAKE-make}"
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 < if test -n "$ac_tool_prefix"; then
3575 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3576 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3577 < echo "$as_me:3563: checking for $ac_word" >&5
3578 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 < if test "${ac_cv_prog_RANLIB+set}" = set; then
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 -n "$RANLIB"; then
3583 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3582 >  if test "x$F90LIBS" != "x"; then
3583 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3584   else
3571  ac_save_IFS=$IFS; IFS=$ac_path_separator
3572 ac_dummy="$PATH"
3573 for ac_dir in $ac_dummy; do
3574  IFS=$ac_save_IFS
3575  test -z "$ac_dir" && ac_dir=.
3576  $as_executable_p "$ac_dir/$ac_word" || continue
3577 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3578 echo "$as_me:3578: found $ac_dir/$ac_word" >&5
3579 break
3580 done
3585  
3586 < fi
3587 < fi
3588 < RANLIB=$ac_cv_prog_RANLIB
3589 < if test -n "$RANLIB"; then
3590 <  echo "$as_me:3586: result: $RANLIB" >&5
3591 < echo "${ECHO_T}$RANLIB" >&6
3592 < else
3593 <  echo "$as_me:3589: result: no" >&5
3594 < echo "${ECHO_T}no" >&6
3595 < fi
3596 <
3597 < fi
3598 < if test -z "$ac_cv_prog_RANLIB"; then
3599 <  ac_ct_RANLIB=$RANLIB
3600 <  # Extract the first word of "ranlib", so it can be a program name with args.
3601 < set dummy ranlib; ac_word=$2
3602 < echo "$as_me:3598: checking for $ac_word" >&5
3603 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3604 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3605 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3606 < else
3607 <  if test -n "$ac_ct_RANLIB"; then
3608 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3609 < else
3610 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3611 < ac_dummy="$PATH"
3612 < for ac_dir in $ac_dummy; do
3613 <  IFS=$ac_save_IFS
3614 <  test -z "$ac_dir" && ac_dir=.
3615 <  $as_executable_p "$ac_dir/$ac_word" || continue
3616 < ac_cv_prog_ac_ct_RANLIB="ranlib"
3617 < echo "$as_me:3613: found $ac_dir/$ac_word" >&5
3618 < break
3619 < done
3620 <
3621 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3622 < fi
3623 < fi
3624 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3625 < if test -n "$ac_ct_RANLIB"; then
3626 <  echo "$as_me:3622: result: $ac_ct_RANLIB" >&5
3627 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
3628 < else
3629 <  echo "$as_me:3625: result: no" >&5
3630 < echo "${ECHO_T}no" >&6
3631 < fi
3632 <
3633 <  RANLIB=$ac_ct_RANLIB
3634 < else
3635 <  RANLIB="$ac_cv_prog_RANLIB"
3636 < fi
3637 <
3638 < for ac_prog in 'bison -y' byacc
3639 < do
3640 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 < set dummy $ac_prog; ac_word=$2
3642 < echo "$as_me:3638: checking for $ac_word" >&5
3643 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 < if test "${ac_cv_prog_YACC+set}" = set; then
3645 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3646 < else
3647 <  if test -n "$YACC"; then
3648 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3649 < else
3650 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3651 < ac_dummy="$PATH"
3652 < for ac_dir in $ac_dummy; do
3653 <  IFS=$ac_save_IFS
3654 <  test -z "$ac_dir" && ac_dir=.
3655 <  $as_executable_p "$ac_dir/$ac_word" || continue
3656 < ac_cv_prog_YACC="$ac_prog"
3657 < echo "$as_me:3653: found $ac_dir/$ac_word" >&5
3658 < break
3659 < done
3660 <
3661 < fi
3662 < fi
3663 < YACC=$ac_cv_prog_YACC
3664 < if test -n "$YACC"; then
3665 <  echo "$as_me:3661: result: $YACC" >&5
3666 < echo "${ECHO_T}$YACC" >&6
3667 < else
3668 <  echo "$as_me:3664: result: no" >&5
3669 < echo "${ECHO_T}no" >&6
3670 < fi
3671 <
3672 <  test -n "$YACC" && break
3673 < done
3674 < test -n "$YACC" || YACC="yacc"
3675 <
3676 < for ac_prog in flex lex
3677 < do
3678 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 < set dummy $ac_prog; ac_word=$2
3680 < echo "$as_me:3676: checking for $ac_word" >&5
3681 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 < if test "${ac_cv_prog_LEX+set}" = set; then
3683 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3684 < else
3685 <  if test -n "$LEX"; then
3686 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3687 < else
3688 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3689 < ac_dummy="$PATH"
3690 < for ac_dir in $ac_dummy; do
3691 <  IFS=$ac_save_IFS
3692 <  test -z "$ac_dir" && ac_dir=.
3693 <  $as_executable_p "$ac_dir/$ac_word" || continue
3694 < ac_cv_prog_LEX="$ac_prog"
3695 < echo "$as_me:3691: found $ac_dir/$ac_word" >&5
3696 < break
3697 < done
3698 <
3699 < fi
3700 < fi
3701 < LEX=$ac_cv_prog_LEX
3702 < if test -n "$LEX"; then
3703 <  echo "$as_me:3699: result: $LEX" >&5
3704 < echo "${ECHO_T}$LEX" >&6
3705 < else
3706 <  echo "$as_me:3702: result: no" >&5
3707 < echo "${ECHO_T}no" >&6
3708 < fi
3709 <
3710 <  test -n "$LEX" && break
3711 < done
3712 < test -n "$LEX" || LEX=":"
3713 <
3714 < if test -z "$LEXLIB"
3715 < then
3716 <  echo "$as_me:3712: checking for yywrap in -lfl" >&5
3717 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3718 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3719 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3720 < else
3721 <  ac_check_lib_save_LIBS=$LIBS
3722 < LIBS="-lfl  $LIBS"
3723 < cat >conftest.$ac_ext <<_ACEOF
3724 < #line 3720 "configure"
3725 < #include "confdefs.h"
3726 <
3727 < /* Override any gcc2 internal prototype to avoid an error.  */
3728 < #ifdef __cplusplus
3729 < extern "C"
3730 < #endif
3731 < /* We use char because int might match the return type of a gcc2
3732 <   builtin and then its argument prototype would still apply.  */
3733 < char yywrap ();
3734 < int
3735 < main ()
3736 < {
3737 < yywrap ();
3738 <  ;
3739 <  return 0;
3740 < }
3741 < _ACEOF
3742 < rm -f conftest.$ac_objext conftest$ac_exeext
3743 < if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
3744 <  (eval $ac_link) 2>&5
3745 <  ac_status=$?
3746 <  echo "$as_me:3742: \$? = $ac_status" >&5
3747 <  (exit $ac_status); } &&
3748 <         { ac_try='test -s conftest$ac_exeext'
3749 <  { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3750 <  (eval $ac_try) 2>&5
3751 <  ac_status=$?
3752 <  echo "$as_me:3748: \$? = $ac_status" >&5
3753 <  (exit $ac_status); }; }; then
3754 <  ac_cv_lib_fl_yywrap=yes
3755 < else
3756 <  echo "$as_me: failed program was:" >&5
3757 < cat conftest.$ac_ext >&5
3758 < ac_cv_lib_fl_yywrap=no
3759 < fi
3760 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3761 < LIBS=$ac_check_lib_save_LIBS
3762 < fi
3763 < echo "$as_me:3759: result: $ac_cv_lib_fl_yywrap" >&5
3764 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3765 < if test $ac_cv_lib_fl_yywrap = yes; then
3766 <  LEXLIB="-lfl"
3767 < else
3768 <  echo "$as_me:3764: checking for yywrap in -ll" >&5
3769 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3770 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
3771 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3772 < else
3773 <  ac_check_lib_save_LIBS=$LIBS
3774 < LIBS="-ll  $LIBS"
3775 < cat >conftest.$ac_ext <<_ACEOF
3776 < #line 3772 "configure"
3777 < #include "confdefs.h"
3778 <
3779 < /* Override any gcc2 internal prototype to avoid an error.  */
3780 < #ifdef __cplusplus
3781 < extern "C"
3782 < #endif
3783 < /* We use char because int might match the return type of a gcc2
3784 <   builtin and then its argument prototype would still apply.  */
3785 < char yywrap ();
3786 < int
3787 < main ()
3788 < {
3789 < yywrap ();
3790 <  ;
3791 <  return 0;
3792 < }
3793 < _ACEOF
3794 < rm -f conftest.$ac_objext conftest$ac_exeext
3795 < if { (eval echo "$as_me:3791: \"$ac_link\"") >&5
3796 <  (eval $ac_link) 2>&5
3797 <  ac_status=$?
3798 <  echo "$as_me:3794: \$? = $ac_status" >&5
3799 <  (exit $ac_status); } &&
3800 <         { ac_try='test -s conftest$ac_exeext'
3801 <  { (eval echo "$as_me:3797: \"$ac_try\"") >&5
3802 <  (eval $ac_try) 2>&5
3803 <  ac_status=$?
3804 <  echo "$as_me:3800: \$? = $ac_status" >&5
3805 <  (exit $ac_status); }; }; then
3806 <  ac_cv_lib_l_yywrap=yes
3807 < else
3808 <  echo "$as_me: failed program was:" >&5
3809 < cat conftest.$ac_ext >&5
3810 < ac_cv_lib_l_yywrap=no
3811 < fi
3812 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3813 < LIBS=$ac_check_lib_save_LIBS
3814 < fi
3815 < echo "$as_me:3811: result: $ac_cv_lib_l_yywrap" >&5
3816 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3817 < if test $ac_cv_lib_l_yywrap = yes; then
3818 <  LEXLIB="-ll"
3819 < fi
3820 <
3821 < fi
3822 <
3823 < fi
3824 <
3825 < if test "x$LEX" != "x:"; then
3826 <  echo "$as_me:3822: checking lex output file root" >&5
3827 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3828 < if test "${ac_cv_prog_lex_root+set}" = set; then
3829 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3830 < else
3831 <  # The minimal lex program is just a single line: %%.  But some broken lexes
3832 < # (Solaris, I think it was) want two %% lines, so accommodate them.
3833 < echo '%%
3834 < %%' | $LEX
3835 < if test -f lex.yy.c; then
3836 <  ac_cv_prog_lex_root=lex.yy
3837 < elif test -f lexyy.c; then
3838 <  ac_cv_prog_lex_root=lexyy
3839 < else
3840 <  { { echo "$as_me:3836: error: cannot find output from $LEX; giving up" >&5
3841 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3842 <   { (exit 1); exit 1; }; }
3843 < fi
3844 < fi
3845 < echo "$as_me:3841: result: $ac_cv_prog_lex_root" >&5
3846 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3847 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3848 <
3849 < echo "$as_me:3845: checking whether yytext is a pointer" >&5
3850 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3851 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3852 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3853 < else
3854 <  # POSIX says lex can declare yytext either as a pointer or an array; the
3855 < # default is implementation-dependent. Figure out which it is, since
3856 < # not all implementations provide the %pointer and %array declarations.
3857 < ac_cv_prog_lex_yytext_pointer=no
3858 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3859 < ac_save_LIBS=$LIBS
3860 < LIBS="$LIBS $LEXLIB"
3861 < cat >conftest.$ac_ext <<_ACEOF
3862 < `cat $LEX_OUTPUT_ROOT.c`
3863 < _ACEOF
3864 < rm -f conftest.$ac_objext conftest$ac_exeext
3865 < if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
3866 <  (eval $ac_link) 2>&5
3867 <  ac_status=$?
3868 <  echo "$as_me:3864: \$? = $ac_status" >&5
3869 <  (exit $ac_status); } &&
3870 <         { ac_try='test -s conftest$ac_exeext'
3871 <  { (eval echo "$as_me:3867: \"$ac_try\"") >&5
3872 <  (eval $ac_try) 2>&5
3873 <  ac_status=$?
3874 <  echo "$as_me:3870: \$? = $ac_status" >&5
3875 <  (exit $ac_status); }; }; then
3876 <  ac_cv_prog_lex_yytext_pointer=yes
3877 < else
3878 <  echo "$as_me: failed program was:" >&5
3879 < cat conftest.$ac_ext >&5
3880 < fi
3881 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3882 < LIBS=$ac_save_LIBS
3883 < rm -f "${LEX_OUTPUT_ROOT}.c"
3884 <
3885 < fi
3886 < echo "$as_me:3882: result: $ac_cv_prog_lex_yytext_pointer" >&5
3887 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3888 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
3889 <
3890 < cat >>confdefs.h <<\EOF
3891 < #define YYTEXT_POINTER 1
3892 < EOF
3893 <
3894 < fi
3895 <
3896 < fi
3897 < # Extract the first word of "ar", so it can be a program name with args.
3898 < set dummy ar; ac_word=$2
3899 < echo "$as_me:3895: checking for $ac_word" >&5
3900 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 < if test "${ac_cv_prog_AR+set}" = set; then
3902 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3903 < else
3904 <  if test -n "$AR"; then
3905 <  ac_cv_prog_AR="$AR" # Let the user override the test.
3906 < else
3907 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3908 < ac_dummy="$PATH"
3909 < for ac_dir in $ac_dummy; do
3910 <  IFS=$ac_save_IFS
3911 <  test -z "$ac_dir" && ac_dir=.
3912 <  $as_executable_p "$ac_dir/$ac_word" || continue
3913 < ac_cv_prog_AR="ar"
3914 < echo "$as_me:3910: found $ac_dir/$ac_word" >&5
3915 < break
3916 < done
3917 <
3918 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
3919 < fi
3920 < fi
3921 < AR=$ac_cv_prog_AR
3922 < if test -n "$AR"; then
3923 <  echo "$as_me:3919: result: $AR" >&5
3924 < echo "${ECHO_T}$AR" >&6
3925 < else
3926 <  echo "$as_me:3922: result: no" >&5
3927 < echo "${ECHO_T}no" >&6
3928 < fi
3929 <
3930 < if test "$AR" = "NONE"; then
3931 <  { { echo "$as_me:3927: error: --> Can't find \`ar'!" >&5
3932 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3933 <   { (exit 1); exit 1; }; }
3934 <  cat >confcache <<\_ACEOF
3935 < # This file is a shell script that caches the results of configure
3936 < # tests run on this system so they can be shared between configure
3937 < # scripts and configure runs, see configure's option --config-cache.
3938 < # It is not useful on other systems.  If it contains results you don't
3939 < # want to keep, you may remove or edit it.
3940 < #
3941 < # config.status only pays attention to the cache file if you give it
3942 < # the --recheck option to rerun configure.
3943 < #
3944 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
3945 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
3946 < # following values.
3947 <
3948 < _ACEOF
3949 <
3950 < # The following way of writing the cache mishandles newlines in values,
3951 < # but we know of no workaround that is simple, portable, and efficient.
3952 < # So, don't put newlines in cache variables' values.
3953 < # Ultrix sh set writes to stderr and can't be redirected directly,
3954 < # and sets the high bit in the cache file unless we assign to the vars.
3955 < {
3956 <  (set) 2>&1 |
3957 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3958 <    *ac_space=\ *)
3959 <      # `set' does not quote correctly, so add quotes (double-quote
3960 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
3961 <      sed -n \
3962 <        "s/'/'\\\\''/g;
3963 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3964 <      ;;
3965 <    *)
3966 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
3967 <      sed -n \
3968 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3969 <      ;;
3970 <    esac;
3971 < } |
3972 <  sed '
3973 <     t clear
3974 <     : clear
3975 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3976 <     t end
3977 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3978 <     : end' >>confcache
3979 < if cmp -s $cache_file confcache; then :; else
3980 <  if test -w $cache_file; then
3981 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3982 <    cat confcache >$cache_file
3983 <  else
3984 <    echo "not updating unwritable cache $cache_file"
3985 <  fi
3986 < fi
3987 < rm -f confcache
3988 <  exit 1
3989 < fi
3990 <
3991 < ac_ext=f90
3992 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3993 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3995 <
3996 < ac_ext=f90
3997 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3998 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4000 < echo "$as_me:3996: checking how to get verbose linking output from $F90" >&5
4001 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4002 < if test "${ac_cv_prog_f90_v+set}" = set; then
4003 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4004 < else
4005 <
4006 < cat >conftest.$ac_ext <<_ACEOF
4007 <
4008 < program main
4009 <
4010 < end program main
4011 <
4012 < _ACEOF
4013 < rm -f conftest.$ac_objext
4014 < if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4015 <  (eval $ac_compile) 2>&5
4016 <  ac_status=$?
4017 <  echo "$as_me:4013: \$? = $ac_status" >&5
4018 <  (exit $ac_status); } &&
4019 <         { ac_try='test -s conftest.$ac_objext'
4020 <  { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4021 <  (eval $ac_try) 2>&5
4022 <  ac_status=$?
4023 <  echo "$as_me:4019: \$? = $ac_status" >&5
4024 <  (exit $ac_status); }; }; then
4025 <  ac_cv_prog_f90_v=
4026 < # Try some options frequently used verbose output
4027 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4028 <  ac_ext=f90
4029 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4030 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4032 <
4033 < cat >conftest.$ac_ext <<_ACEOF
4034 <
4035 < program main
4036 <
4037 < end program main
4038 <
4039 < _ACEOF
4040 <
4041 < # Compile and link our simple test program by passing a flag (argument
4042 < # 1 to this macro) to the Fortran 90 compiler in order to get
4043 < # "verbose" output that we can then parse for the Fortran 90 linker
4044 < # flags.
4045 < ac_save_F90FLAGS=$F90FLAGS
4046 < F90FLAGS="$F90FLAGS $ac_verb"
4047 <
4048 < (eval echo $as_me:4044: \"$ac_link\") >&5
4049 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4050 < echo "$ac_f90_v_output" >&5
4051 < F90FLAGS=$ac_save_F90FLAGS
4052 <
4053 < rm -f conftest.*
4054 < ac_ext=f90
4055 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4056 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4058 <
4059 < # If we are using xlf then replace all the commas with spaces.
4060 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4061 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4062 < fi
4063 <
4064 < # If we are using Cray Fortran then delete quotes.
4065 < # Use "\"" instead of '"' for font-lock-mode.
4066 < # FIXME: a more general fix for quoted arguments with spaces?
4067 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4068 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4069 < fi
4070 <  # look for -l* and *.a constructs in the output
4071 <  for ac_arg in $ac_f90_v_output; do
4072 <     case $ac_arg in
4073 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4074 <          ac_cv_prog_f90_v=$ac_verb
4075 <          break 2 ;;
4076 <     esac
4077 <  done
4078 < done
4079 < if test -z "$ac_cv_prog_f90_v"; then
4080 <   { echo "$as_me:4076: WARNING: cannot determine how to obtain linking information from $F90" >&5
4081 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4082 < fi
4083 < else
4084 <  echo "$as_me: failed program was:" >&5
4085 < cat conftest.$ac_ext >&5
4086 < { echo "$as_me:4082: WARNING: compilation failed" >&5
4087 < echo "$as_me: WARNING: compilation failed" >&2;}
4088 < fi
4089 < rm -f conftest.$ac_objext conftest.$ac_ext
4090 <
4091 < fi
4092 < echo "$as_me:4088: result: $ac_cv_prog_f90_v" >&5
4093 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4094 < echo "$as_me:4090: checking for Fortran 90 libraries" >&5
4095 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4096 < if test "${ac_cv_flibs+set}" = set; then
4097 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4098 < else
4099 <  if test "x$F90LIBS" != "x"; then
4100 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4101 < else
4102 <
4103 < ac_ext=f90
4104 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4105 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4107 <
4108 < cat >conftest.$ac_ext <<_ACEOF
4109 <
4110 < program main
4111 <
4112 < end program main
4113 <
4114 < _ACEOF
4115 <
4116 < # Compile and link our simple test program by passing a flag (argument
4117 < # 1 to this macro) to the Fortran 90 compiler in order to get
4118 < # "verbose" output that we can then parse for the Fortran 90 linker
4119 < # flags.
4120 < ac_save_F90FLAGS=$F90FLAGS
4121 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4122 <
4123 < (eval echo $as_me:4119: \"$ac_link\") >&5
4124 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4125 < echo "$ac_f90_v_output" >&5
4126 < F90FLAGS=$ac_save_F90FLAGS
4127 <
4128 < rm -f conftest.*
4129 < ac_ext=f90
4130 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4131 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4133 <
4134 < # If we are using xlf then replace all the commas with spaces.
4135 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4136 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4137 < fi
4138 <
4139 < # If we are using Cray Fortran then delete quotes.
4140 < # Use "\"" instead of '"' for font-lock-mode.
4141 < # FIXME: a more general fix for quoted arguments with spaces?
4142 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4143 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4144 < fi
4145 <
4146 < ac_cv_f90libs=
4147 <
4148 < # Save positional arguments (if any)
4149 < ac_save_positional="$@"
4150 <
4151 < set X $ac_f90_v_output
4152 < while test $# != 1; do
4153 <  shift
4154 <  ac_arg=$1
4155 <  case $ac_arg in
4156 <        [\\/]*.a | ?:[\\/]*.a)
4157 <            ac_exists=false
4158 <  for ac_i in $ac_cv_f90libs; do
4159 <    if test x"$ac_arg" = x"$ac_i"; then
4160 <      ac_exists=true
4161 <      break
4162 <    fi
4163 <  done
4164 <
4165 <  if test x"$ac_exists" = xtrue; then
4166 <  :
4167 < else
4168 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4169 < fi
4170 <
4171 <          ;;
4172 <        -bI:*)
4173 <            ac_exists=false
4174 <  for ac_i in $ac_cv_f90libs; do
4175 <    if test x"$ac_arg" = x"$ac_i"; then
4176 <      ac_exists=true
4177 <      break
4178 <    fi
4179 <  done
4180 <
4181 <  if test x"$ac_exists" = xtrue; then
4182 <  :
4183 < else
4184 <  if test "$ac_compiler_gnu" = yes; then
4185 <  for ac_link_opt in $ac_arg; do
4186 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4187 <  done
4188 < else
4189 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4190 < fi
4191 < fi
4192 <
4193 <          ;;
4194 <          # Ignore these flags.
4195 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4196 <          ;;
4197 <        -lkernel32)
4198 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4199 <          ;;
4200 <        -[LRuY])
4201 <          # These flags, when seen by themselves, take an argument.
4202 <          # We remove the space between option and argument and re-iterate
4203 <          # unless we find an empty arg or a new option (starting with -)
4204 <          case $2 in
4205 <             "" | -*);;
4206 <             *)
4207 <                ac_arg="$ac_arg$2"
4208 <
4209 <                shift; shift
4210 <                set X $ac_arg "$@"
4211 <                ;;
4212 <          esac
4213 <          ;;
4214 <        -YP,*)
4215 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4216 <              ac_exists=false
4217 <  for ac_i in $ac_cv_f90libs; do
4218 <    if test x"$ac_j" = x"$ac_i"; then
4219 <      ac_exists=true
4220 <      break
4221 <    fi
4222 <  done
4223 <
4224 <  if test x"$ac_exists" = xtrue; then
4225 <  :
4226 < else
4227 <  ac_arg="$ac_arg $ac_j"
4228 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4229 < fi
4230 <
4231 <          done
4232 <          ;;
4233 <        -[lLR]*)
4234 <            ac_exists=false
4235 <  for ac_i in $ac_cv_f90libs; do
4236 <    if test x"$ac_arg" = x"$ac_i"; then
4237 <      ac_exists=true
4238 <      break
4239 <    fi
4240 <  done
4241 <
4242 <  if test x"$ac_exists" = xtrue; then
4243 <  :
4244 < else
4245 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4246 < fi
4247 <
4248 <          ;;
4249 <          # Ignore everything else.
4250 <  esac
4251 < done
4252 < # restore positional arguments
4253 < set X $ac_save_positional; shift
4254 <
4255 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4256 < # then we insist that the "run path" must be an absolute path (i.e. it
4257 < # must begin with a "/").
4258 < case `(uname -sr) 2>/dev/null` in
4259 <   "SunOS 5"*)
4260 <      ac_ld_run_path=`echo $ac_f90_v_output |
4261 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4262 <      test "x$ac_ld_run_path" != x &&
4263 <
4264 <        if test "$ac_compiler_gnu" = yes; then
4265 <  for ac_link_opt in $ac_ld_run_path; do
4266 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4267 <  done
4268 < else
4269 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4270 < fi
4271 <      ;;
4272 < esac
4273 < fi # test "x$F90LIBS" = "x"
4274 <
4275 < fi
4276 < echo "$as_me:4272: result: $ac_cv_flibs" >&5
4277 < echo "${ECHO_T}$ac_cv_flibs" >&6
4278 < F90LIBS="$ac_cv_f90libs"
4279 <
4280 < ac_ext=f90
4281 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4282 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4284 <
4285 < echo "$as_me:4281: checking for Fortran 90 name-mangling scheme" >&5
4286 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4287 < if test "${ac_cv_f90_mangling+set}" = set; then
4288 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4289 < else
4290 <  ac_ext=f90
4291 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4292 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4294 < cat >conftest.$ac_ext <<_ACEOF
4295 < subroutine foobar()
4296 < return
4297 < end
4298 < subroutine foo_bar()
4299 < return
4300 < end
4301 < _ACEOF
4302 < rm -f conftest.$ac_objext
4303 < if { (eval echo "$as_me:4299: \"$ac_compile\"") >&5
4304 <  (eval $ac_compile) 2>&5
4305 <  ac_status=$?
4306 <  echo "$as_me:4302: \$? = $ac_status" >&5
4307 <  (exit $ac_status); } &&
4308 <         { ac_try='test -s conftest.$ac_objext'
4309 <  { (eval echo "$as_me:4305: \"$ac_try\"") >&5
4310 <  (eval $ac_try) 2>&5
4311 <  ac_status=$?
4312 <  echo "$as_me:4308: \$? = $ac_status" >&5
4313 <  (exit $ac_status); }; }; then
4314 <  mv conftest.$ac_objext cf90_test.$ac_objext
4315 <
4316 <  ac_ext=c
4317 < ac_cpp='$CPP $CPPFLAGS'
4318 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 <
4322 <  ac_save_LIBS=$LIBS
4323 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4324 <
4325 <  ac_success=no
4326 <  for ac_foobar in foobar FOOBAR; do
4327 <    for ac_underscore in "" "_"; do
4328 <      ac_func="$ac_foobar$ac_underscore"
4329 <      cat >conftest.$ac_ext <<_ACEOF
4330 < #line 4326 "configure"
4331 < #include "confdefs.h"
4332 <
4333 < /* Override any gcc2 internal prototype to avoid an error.  */
4334 < #ifdef __cplusplus
4335 < extern "C"
4336 < #endif
4337 < /* We use char because int might match the return type of a gcc2
4338 <   builtin and then its argument prototype would still apply.  */
4339 < char $ac_func ();
4340 < int
4341 < main ()
4342 < {
4343 < $ac_func ();
4344 <  ;
4345 <  return 0;
4346 < }
4347 < _ACEOF
4348 < rm -f conftest.$ac_objext conftest$ac_exeext
4349 < if { (eval echo "$as_me:4345: \"$ac_link\"") >&5
4350 <  (eval $ac_link) 2>&5
4351 <  ac_status=$?
4352 <  echo "$as_me:4348: \$? = $ac_status" >&5
4353 <  (exit $ac_status); } &&
4354 <         { ac_try='test -s conftest$ac_exeext'
4355 <  { (eval echo "$as_me:4351: \"$ac_try\"") >&5
4356 <  (eval $ac_try) 2>&5
4357 <  ac_status=$?
4358 <  echo "$as_me:4354: \$? = $ac_status" >&5
4359 <  (exit $ac_status); }; }; then
4360 <  ac_success=yes; break 2
4361 < else
4362 <  echo "$as_me: failed program was:" >&5
4363 < cat conftest.$ac_ext >&5
4364 < fi
4365 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4366 <    done
4367 <  done
4368 <
4369 <  if test "$ac_success" = "yes"; then
4370 <     case $ac_foobar in
4371 <        foobar)
4372 <           ac_case=lower
4373 <           ac_foo_bar=foo_bar
4374 <           ;;
4375 <        FOOBAR)
4376 <           ac_case=upper
4377 <           ac_foo_bar=FOO_BAR
4378 <           ;;
4379 <     esac
4380 <
4381 <     ac_success_extra=no
4382 <     for ac_extra in "" "_"; do
4383 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4384 <
4385 <        cat >conftest.$ac_ext <<_ACEOF
4386 < #line 4382 "configure"
4387 < #include "confdefs.h"
4388 <
4389 < /* Override any gcc2 internal prototype to avoid an error.  */
4390 < #ifdef __cplusplus
4391 < extern "C"
4392 < #endif
4393 < /* We use char because int might match the return type of a gcc2
4394 <   builtin and then its argument prototype would still apply.  */
4395 < char $ac_func ();
4396 < int
4397 < main ()
4398 < {
4399 < $ac_func ();
4400 <  ;
4401 <  return 0;
4402 < }
4403 < _ACEOF
4404 < rm -f conftest.$ac_objext conftest$ac_exeext
4405 < if { (eval echo "$as_me:4401: \"$ac_link\"") >&5
4406 <  (eval $ac_link) 2>&5
4407 <  ac_status=$?
4408 <  echo "$as_me:4404: \$? = $ac_status" >&5
4409 <  (exit $ac_status); } &&
4410 <         { ac_try='test -s conftest$ac_exeext'
4411 <  { (eval echo "$as_me:4407: \"$ac_try\"") >&5
4412 <  (eval $ac_try) 2>&5
4413 <  ac_status=$?
4414 <  echo "$as_me:4410: \$? = $ac_status" >&5
4415 <  (exit $ac_status); }; }; then
4416 <  ac_success_extra=yes; break
4417 < else
4418 <  echo "$as_me: failed program was:" >&5
4419 < cat conftest.$ac_ext >&5
4420 < fi
4421 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4422 <     done
4423 <
4424 <     if test "$ac_success_extra" = "yes"; then
4425 <        ac_cv_f90_mangling="$ac_case case"
4426 <        if test -z "$ac_underscore"; then
4427 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4428 <        else
4429 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4430 <
4431 <        fi
4432 <        if test -z "$ac_extra"; then
4433 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4434 <        else
4435 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4436 <        fi
4437 <      else
4438 <        ac_cv_f90_mangling="unknown"
4439 <      fi
4440 <  else
4441 <     ac_cv_f90_mangling="unknown"
4442 <
4443 <  fi
4444 <
4445 <  LIBS=$ac_save_LIBS
4446 <  ac_ext=f90
4447 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4448 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4450 <  rm -f cf90_test* conftest*
4451 < else
4452 <  echo "$as_me: failed program was:" >&5
4453 < cat conftest.$ac_ext >&5
4454 < fi
4455 < rm -f conftest.$ac_objext conftest.$ac_ext
4456 < ac_ext=f90
4457 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4458 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4460 <
4461 < fi
4462 < echo "$as_me:4458: result: $ac_cv_f90_mangling" >&5
4463 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4464 <
4465 < case $ac_cv_f90_mangling in
4466 <  "lower case, no underscore, no extra underscore")
4467 <          cat >>confdefs.h <<\EOF
4468 < #define F90_FUNC(name,NAME) name
4469 < EOF
4470 <
4471 <          cat >>confdefs.h <<\EOF
4472 < #define F90_FUNC_(name,NAME) name
4473 < EOF
4474 < ;;
4475 <  "lower case, no underscore, extra underscore")
4476 <          cat >>confdefs.h <<\EOF
4477 < #define F90_FUNC(name,NAME) name
4478 < EOF
4479 <
4480 <          cat >>confdefs.h <<\EOF
4481 < #define F90_FUNC_(name,NAME) name ## _
4482 < EOF
4483 < ;;
4484 <  "lower case, underscore, no extra underscore")
4485 <          cat >>confdefs.h <<\EOF
4486 < #define F90_FUNC(name,NAME) name ## _
4487 < EOF
4488 <
4489 <          cat >>confdefs.h <<\EOF
4490 < #define F90_FUNC_(name,NAME) name ## _
4491 < EOF
4492 < ;;
4493 <  "lower case, underscore, extra underscore")
4494 <          cat >>confdefs.h <<\EOF
4495 < #define F90_FUNC(name,NAME) name ## _
4496 < EOF
4497 <
4498 <          cat >>confdefs.h <<\EOF
4499 < #define F90_FUNC_(name,NAME) name ## __
4500 < EOF
4501 < ;;
4502 <  "upper case, no underscore, no extra underscore")
4503 <          cat >>confdefs.h <<\EOF
4504 < #define F90_FUNC(name,NAME) NAME
4505 < EOF
4506 <
4507 <          cat >>confdefs.h <<\EOF
4508 < #define F90_FUNC_(name,NAME) NAME
4509 < EOF
4510 < ;;
4511 <  "upper case, no underscore, extra underscore")
4512 <          cat >>confdefs.h <<\EOF
4513 < #define F90_FUNC(name,NAME) NAME
4514 < EOF
4515 <
4516 <          cat >>confdefs.h <<\EOF
4517 < #define F90_FUNC_(name,NAME) NAME ## _
4518 < EOF
4519 < ;;
4520 <  "upper case, underscore, no extra underscore")
4521 <          cat >>confdefs.h <<\EOF
4522 < #define F90_FUNC(name,NAME) NAME ## _
4523 < EOF
4524 <
4525 <          cat >>confdefs.h <<\EOF
4526 < #define F90_FUNC_(name,NAME) NAME ## _
4527 < EOF
4528 < ;;
4529 <  "upper case, underscore, extra underscore")
4530 <          cat >>confdefs.h <<\EOF
4531 < #define F90_FUNC(name,NAME) NAME ## _
4532 < EOF
4533 <
4534 <          cat >>confdefs.h <<\EOF
4535 < #define F90_FUNC_(name,NAME) NAME ## __
4536 < EOF
4537 < ;;
4538 <  *)
4539 <          { echo "$as_me:4535: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4540 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4541 <          ;;
4542 < esac
4543 <
4544 < echo "$as_me:4540: checking for mpi-directory" >&5
4545 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
4546 <
4547 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
4548 < if test "${with_mpi_dir+set}" = set; then
4549 <  withval="$with_mpi_dir"
4550 <  MPI_DIR="$withval"
4551 < else
4552 <  MPI_DIR="/usr/local"
4553 < fi;
4554 < echo "$as_me:4550: result: $MPI_DIR" >&5
4555 < echo "${ECHO_T}$MPI_DIR" >&6
4556 <
4557 < echo "$as_me:4553: checking for mpi-lib-directory" >&5
4558 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
4559 <
4560 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
4561 < if test "${with_mpi_libdir+set}" = set; then
4562 <  withval="$with_mpi_libdir"
4563 <  MPI_LIBDIR="$withval"
4564 < else
4565 <  MPI_LIBDIR="$MPI_DIR/lib"
4566 < fi;
4567 < echo "$as_me:4563: result: $MPI_LIBDIR" >&5
4568 < echo "${ECHO_T}$MPI_LIBDIR" >&6
4569 <
4570 < echo "$as_me:4566: checking for mpi-inc-directory" >&5
4571 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
4572 <
4573 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
4574 < if test "${with_mpi_inc+set}" = set; then
4575 <  withval="$with_mpi_inc"
4576 <  MPI_INC="$withval"
4577 < else
4578 <  MPI_INC="$MPI_DIR/include"
4579 < fi;
4580 < echo "$as_me:4576: result: $MPI_INC" >&5
4581 < echo "${ECHO_T}$MPI_INC" >&6
4582 <
4583 < echo "$as_me:4579: checking for MPI library" >&5
4584 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4585 < MPI_LIB=""
4586 < case "$host" in
4587 <  *-ibm-aix*)
4588 <    echo "$as_me:4584: checking whether to use signal-based MPI library" >&5
4589 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4590 <    echo "$as_me:4586: result: $PACX_SIGNAL" >&5
4591 < echo "${ECHO_T}$PACX_SIGNAL" >&6
4592 <    if test "x$PACX_SIGNAL" = "xyes" ; then
4593 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
4594 <        MPI_LIB="-lmpi"
4595 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4596 <        MPI_LIB="-lmpi"
4597 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4598 <        MPI_LIB="-lmpich"
4599 <      else
4600 <        { { echo "$as_me:4596: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4601 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4602 <   { (exit 1); exit 1; }; }
4603 <      fi
4604 <    else
4605 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4606 <         MPI_LIB="-lmpi_r"
4607 <      else
4608 <         { { echo "$as_me:4604: error: libmpi_r not found; check path for MPI package..." >&5
4609 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4610 <   { (exit 1); exit 1; }; }
4611 <      fi
4612 <    fi
4613 <    echo "$as_me:4609: result: found $MPI_LIB" >&5
4614 < echo "${ECHO_T}found $MPI_LIB" >&6
4615 <  ;;
4616 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
4617 <      MPI_LIB="-lmpi"
4618 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4619 <      MPI_LIB="-lmpi"
4620 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4621 <      MPI_LIB="-lmpich"
4622 <    else
4623 <      { { echo "$as_me:4619: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4624 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4625 <   { (exit 1); exit 1; }; }
4626 <    fi
4627 <    echo "$as_me:4623: result: found $MPI_LIB" >&5
4628 < echo "${ECHO_T}found $MPI_LIB" >&6
4629 <  ;;
4630 < esac
4631 <
4632 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
4633 < do
4634 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 < set dummy $ac_prog; ac_word=$2
4636 < echo "$as_me:4632: checking for $ac_word" >&5
4637 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 < if test "${ac_cv_prog_MPIF90+set}" = set; then
4639 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4640 < else
4641 <  if test -n "$MPIF90"; then
4642 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
4643 < else
4644 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4645 < ac_dummy="$PATH"
4646 < for ac_dir in $ac_dummy; do
4647 <  IFS=$ac_save_IFS
4648 <  test -z "$ac_dir" && ac_dir=.
4649 <  $as_executable_p "$ac_dir/$ac_word" || continue
4650 < ac_cv_prog_MPIF90="$ac_prog"
4651 < echo "$as_me:4647: found $ac_dir/$ac_word" >&5
4652 < break
4653 < done
4654 <
4655 < fi
4656 < fi
4657 < MPIF90=$ac_cv_prog_MPIF90
4658 < if test -n "$MPIF90"; then
4659 <  echo "$as_me:4655: result: $MPIF90" >&5
4660 < echo "${ECHO_T}$MPIF90" >&6
4661 < else
4662 <  echo "$as_me:4658: result: no" >&5
4663 < echo "${ECHO_T}no" >&6
4664 < fi
4665 <
4666 <  test -n "$MPIF90" && break
4667 < done
4668 < test -n "$MPIF90" || MPIF90="$F90"
4669 <
4670 <        acx_mpi_save_F90="$F90"
4671 <        F90="$MPIF90"
4672 <
4673 < if test x = x"$MPILIBS"; then
4674 <        echo "$as_me:4670: checking for MPI_Init" >&5
4675 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
4676 <                        cat >conftest.$ac_ext <<_ACEOF
4677 <
4678 < program main
4679 <
4680 <      call MPI_Init
4681 < end program main
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="-O3 -qtune=auto -w"
4293 >                echo "*******************************************************"
4294 >                echo "*  You have Darwin on an unknown powerpc system.      *"
4295 >                echo "*  It is recommended that you use                     *"
4296 >                echo "*                                                     *"
4297 >                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
4298 >                echo "*                               ^^^                   *"
4299 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4300 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4301 >                echo "*******************************************************"
4302 >        fi;;
4303 >  esac
4304 >
4305 >  # use default flags for gcc on all systems
4306 >  if test $ac_cv_prog_really_gcc = yes; then
4307 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4308 >  fi
4309 >
4310 >  # test for gcc-specific flags:
4311 >  if test $ac_cv_prog_really_gcc = yes; then
4312 >    # -malign-double for x86 systems
4313 >
4314 >
4315 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4316 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4317 > if test "${ac_align_double+set}" = set; then
4318 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4319 > else
4320 >  echo 'void f(){}' > conftest.c
4321 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4322 >        ac_align_double=yes
4323 > else
4324 >        ac_align_double=no
4325 > fi
4326 > rm -f conftest*
4327 >
4328 > fi
4329 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4330 > echo "${ECHO_T}$ac_align_double" >&6
4331 > if test "$ac_align_double" = yes; then
4332 >        :
4333 >        CFLAGS="$CFLAGS -malign-double"
4334 > else
4335 >        :
4336 >
4337 > fi
4338 >
4339 >    # -fstrict-aliasing for gcc-2.95+
4340 >
4341 >
4342 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4343 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4344 > if test "${ac_fstrict_aliasing+set}" = set; then
4345 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4346 > else
4347 >  echo 'void f(){}' > conftest.c
4348 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4349 >        ac_fstrict_aliasing=yes
4350 > else
4351 >        ac_fstrict_aliasing=no
4352 > fi
4353 > rm -f conftest*
4354 >
4355 > fi
4356 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4357 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4358 > if test "$ac_fstrict_aliasing" = yes; then
4359 >        :
4360 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4361 > else
4362 >        :
4363 >
4364 > fi
4365 >
4366 >  fi
4367 >
4368 >  CPU_FLAGS=""
4369 >  if test $ac_cv_prog_really_gcc = yes; then
4370 >                  case "${host_cpu}" in
4371 >          i586*)
4372 >
4373 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4374 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4375 > if test "${ac_cpu_pentium+set}" = set; then
4376 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4377 > else
4378 >  echo 'void f(){}' > conftest.c
4379 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4380 >        ac_cpu_pentium=yes
4381 > else
4382 >        ac_cpu_pentium=no
4383 > fi
4384 > rm -f conftest*
4385 >
4386 > fi
4387 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4388 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4389 > if test "$ac_cpu_pentium" = yes; then
4390 >        :
4391 >        CPU_FLAGS=-mcpu=pentium
4392 > else
4393 >        :
4394 >
4395 >
4396 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4397 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4398 > if test "${ac_pentium+set}" = set; then
4399 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4400 > else
4401 >  echo 'void f(){}' > conftest.c
4402 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4403 >        ac_pentium=yes
4404 > else
4405 >        ac_pentium=no
4406 > fi
4407 > rm -f conftest*
4408 >
4409 > fi
4410 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4411 > echo "${ECHO_T}$ac_pentium" >&6
4412 > if test "$ac_pentium" = yes; then
4413 >        :
4414 >        CPU_FLAGS=-mpentium
4415 > else
4416 >        :
4417 >
4418 > fi
4419 >
4420 > fi
4421 >
4422 >                  ;;
4423 >          i686*)
4424 >
4425 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4426 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4427 > if test "${ac_cpu_pentiumpro+set}" = set; then
4428 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4429 > else
4430 >  echo 'void f(){}' > conftest.c
4431 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4432 >        ac_cpu_pentiumpro=yes
4433 > else
4434 >        ac_cpu_pentiumpro=no
4435 > fi
4436 > rm -f conftest*
4437 >
4438 > fi
4439 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4440 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4441 > if test "$ac_cpu_pentiumpro" = yes; then
4442 >        :
4443 >        CPU_FLAGS=-mcpu=pentiumpro
4444 > else
4445 >        :
4446 >
4447 >
4448 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4449 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4450 > if test "${ac_pentiumpro+set}" = set; then
4451 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4452 > else
4453 >  echo 'void f(){}' > conftest.c
4454 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4455 >        ac_pentiumpro=yes
4456 > else
4457 >        ac_pentiumpro=no
4458 > fi
4459 > rm -f conftest*
4460 >
4461 > fi
4462 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4463 > echo "${ECHO_T}$ac_pentiumpro" >&6
4464 > if test "$ac_pentiumpro" = yes; then
4465 >        :
4466 >        CPU_FLAGS=-mpentiumpro
4467 > else
4468 >        :
4469 >
4470 > fi
4471 >
4472 > fi
4473 >
4474 >                  ;;
4475 >          powerpc*)
4476 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4477 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4478 >                if test -n "$is60x"; then
4479 >
4480 >
4481 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4482 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4483 > if test "${ac_m_cpu_60x+set}" = set; then
4484 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4485 > else
4486 >  echo 'void f(){}' > conftest.c
4487 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4488 >        ac_m_cpu_60x=yes
4489 > else
4490 >        ac_m_cpu_60x=no
4491 > fi
4492 > rm -f conftest*
4493 >
4494 > fi
4495 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4496 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4497 > if test "$ac_m_cpu_60x" = yes; then
4498 >        :
4499 >        CPU_FLAGS=-mcpu=$cputype
4500 > else
4501 >        :
4502 >
4503 > fi
4504 >
4505 >                elif test "$cputype" = 750; then
4506 >
4507 >
4508 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4509 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4510 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4511 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4512 > else
4513 >
4514 > cat > conftest.c <<EOF
4515 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4516 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4517 >     yes;
4518 > #  endif
4519 > #endif
4520 > EOF
4521 > if { ac_try='${CC-cc} -E conftest.c'
4522 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 >  (eval $ac_try) 2>&5
4524 >  ac_status=$?
4525 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4527 >  ac_cv_prog_gcc_2_95=yes
4528 > else
4529 >  ac_cv_prog_gcc_2_95=no
4530 > fi
4531 >
4532 > fi
4533 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4534 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4535 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4536 >        :
4537 >
4538 >
4539 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4540 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4541 > if test "${ac_m_cpu_750+set}" = set; then
4542 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4543 > else
4544 >  echo 'void f(){}' > conftest.c
4545 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4546 >        ac_m_cpu_750=yes
4547 > else
4548 >        ac_m_cpu_750=no
4549 > fi
4550 > rm -f conftest*
4551 >
4552 > fi
4553 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4554 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4555 > if test "$ac_m_cpu_750" = yes; then
4556 >        :
4557 >        CPU_FLAGS=-mcpu=750
4558 > else
4559 >        :
4560 >
4561 > fi
4562 >
4563 > else
4564 >        :
4565 >
4566 > fi
4567 >
4568 >                fi
4569 >                if test -z "$CPU_FLAGS"; then
4570 >
4571 >
4572 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4573 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4574 > if test "${ac_m_cpu_powerpc+set}" = set; then
4575 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4576 > else
4577 >  echo 'void f(){}' > conftest.c
4578 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4579 >        ac_m_cpu_powerpc=yes
4580 > else
4581 >        ac_m_cpu_powerpc=no
4582 > fi
4583 > rm -f conftest*
4584 >
4585 > fi
4586 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4587 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4588 > if test "$ac_m_cpu_powerpc" = yes; then
4589 >        :
4590 >        CPU_FLAGS=-mcpu=powerpc
4591 > else
4592 >        :
4593 >
4594 > fi
4595 >
4596 >                fi
4597 >                if test -z "$CPU_FLAGS"; then
4598 >
4599 >
4600 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4601 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4602 > if test "${ac_m_powerpc+set}" = set; then
4603 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4604 > else
4605 >  echo 'void f(){}' > conftest.c
4606 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4607 >        ac_m_powerpc=yes
4608 > else
4609 >        ac_m_powerpc=no
4610 > fi
4611 > rm -f conftest*
4612 >
4613 > fi
4614 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4615 > echo "${ECHO_T}$ac_m_powerpc" >&6
4616 > if test "$ac_m_powerpc" = yes; then
4617 >        :
4618 >        CPU_FLAGS=-mpowerpc
4619 > else
4620 >        :
4621 >
4622 > fi
4623 >
4624 >                fi
4625 >          esac
4626 >  fi
4627 >
4628 >  if test -n "$CPU_FLAGS"; then
4629 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4630 >  fi
4631 >
4632 >  if test -z "$CFLAGS"; then
4633 >        echo ""
4634 >        echo "********************************************************"
4635 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4636 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4637 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4638 >        echo "********************************************************"
4639 >        echo ""
4640 >        CFLAGS="-O3"
4641 >  fi
4642 >
4643 >
4644 >
4645 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4646 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4647 > if test "${ac_guessed_cflags+set}" = set; then
4648 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4649 > else
4650 >  echo 'void f(){}' > conftest.c
4651 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4652 >        ac_guessed_cflags=yes
4653 > else
4654 >        ac_guessed_cflags=no
4655 > fi
4656 > rm -f conftest*
4657 >
4658 > fi
4659 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4660 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4661 > if test "$ac_guessed_cflags" = yes; then
4662 >        :
4663 >
4664 > else
4665 >        :
4666 >
4667 >        echo ""
4668 >        echo "********************************************************"
4669 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4670 >        echo "* your compiler.                                       *"
4671 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4672 >        echo "********************************************************"
4673 >        echo ""
4674 >        CFLAGS=""
4675 >
4676 > fi
4677 >
4678 >
4679 > fi
4680 >
4681 >
4682 >
4683 >
4684 >
4685 >
4686 >
4687 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4688 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4689 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4690 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4691 > else
4692 >
4693 > cat > conftest.cpp <<EOF
4694 > #ifdef __GNUC__
4695 >  #ifndef __INTEL_COMPILER
4696 >     yes;
4697 >  #endif
4698 > #endif
4699 > EOF
4700 > if { ac_try='${CXX-c++} -E conftest.cpp'
4701 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 >  (eval $ac_try) 2>&5
4703 >  ac_status=$?
4704 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4706 >  ac_cv_prog_really_gxx=yes
4707 > else
4708 >  ac_cv_prog_really_gxx=no
4709 > fi
4710 >
4711 > fi
4712 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4713 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4714 > if test "$ac_cv_prog_really_gxx" = yes; then
4715 >        :
4716 >
4717 > else
4718 >        :
4719 >
4720 > fi
4721 >
4722 >
4723 > # Try to determine "good" native compiler flags if none specified on command
4724 > # line
4725 > if test "$ac_test_CXXFLAGS" != "set"; then
4726 >  CXXFLAGS=""
4727 >  case "${host_cpu}-${host_os}" in
4728 >
4729 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4730 >                    CXXFLAGS="-O"
4731 >                fi;;
4732 >  sparc-solaris2*) if test "$CXX" = CC; then
4733 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4734 >                 fi;;
4735 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4736 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4737 >                fi;;
4738 >   powerpc*-aix*)
4739 >        if test "$CXX" = xlC; then
4740 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4741 >                echo "*******************************************************"
4742 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4743 >                echo "*  recommended that you use                           *"
4744 >                echo "*                                                     *"
4745 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4746 >                echo "*                                 ^^^                 *"
4747 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4748 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4749 >                echo "*******************************************************"
4750 >        fi;;
4751 >   *darwin*)
4752 >        if test "$CXX" = xlC; then
4753 >                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
4754 >                echo "*******************************************************"
4755 >                echo "*  You have Darwin on an unknown powerpc system.      *"
4756 >                echo "*  It is recommended that you use                     *"
4757 >                echo "*                                                     *"
4758 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4759 >                echo "*                                 ^^^                 *"
4760 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4761 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4762 >                echo "*******************************************************"
4763 >        fi;;
4764 >  esac
4765 >
4766 >  # use default flags for gcc on all systems
4767 >  if test $ac_cv_prog_really_gxx = yes; then
4768 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4769 >  fi
4770 >
4771 >  # test for gcc-specific flags:
4772 >  if test $ac_cv_prog_really_gxx = yes; then
4773 >    # -malign-double for x86 systems
4774 >
4775 >
4776 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4777 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4778 > if test "${ac_align_double+set}" = set; then
4779 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4780 > else
4781 >  echo 'void f(){}' > conftest.cpp
4782 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4783 >        ac_align_double=yes
4784 > else
4785 >        ac_align_double=no
4786 > fi
4787 > rm -f conftest*
4788 >
4789 > fi
4790 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4791 > echo "${ECHO_T}$ac_align_double" >&6
4792 > if test "$ac_align_double" = yes; then
4793 >        :
4794 >        CXXFLAGS="$CXXFLAGS -malign-double"
4795 > else
4796 >        :
4797 >
4798 > fi
4799 >
4800 >    # -fstrict-aliasing for gcc-2.95+
4801 >
4802 >
4803 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4804 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4805 > if test "${ac_fstrict_aliasing+set}" = set; then
4806 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4807 > else
4808 >  echo 'void f(){}' > conftest.cpp
4809 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4810 >        ac_fstrict_aliasing=yes
4811 > else
4812 >        ac_fstrict_aliasing=no
4813 > fi
4814 > rm -f conftest*
4815 >
4816 > fi
4817 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4818 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4819 > if test "$ac_fstrict_aliasing" = yes; then
4820 >        :
4821 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4822 > else
4823 >        :
4824 >
4825 > fi
4826 >
4827 >  fi
4828 >
4829 >  CPU_FLAGS=""
4830 >  if test $ac_cv_prog_really_gxx = yes; then
4831 >                  case "${host_cpu}" in
4832 >          i586*)
4833 >
4834 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4835 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4836 > if test "${ac_cpu_pentium+set}" = set; then
4837 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4838 > else
4839 >  echo 'void f(){}' > conftest.cpp
4840 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4841 >        ac_cpu_pentium=yes
4842 > else
4843 >        ac_cpu_pentium=no
4844 > fi
4845 > rm -f conftest*
4846 >
4847 > fi
4848 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4849 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4850 > if test "$ac_cpu_pentium" = yes; then
4851 >        :
4852 >        CPU_FLAGS=-mcpu=pentium
4853 > else
4854 >        :
4855 >
4856 >
4857 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4858 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4859 > if test "${ac_pentium+set}" = set; then
4860 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4861 > else
4862 >  echo 'void f(){}' > conftest.cpp
4863 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4864 >        ac_pentium=yes
4865 > else
4866 >        ac_pentium=no
4867 > fi
4868 > rm -f conftest*
4869 >
4870 > fi
4871 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4872 > echo "${ECHO_T}$ac_pentium" >&6
4873 > if test "$ac_pentium" = yes; then
4874 >        :
4875 >        CPU_FLAGS=-mpentium
4876 > else
4877 >        :
4878 >
4879 > fi
4880 >
4881 > fi
4882 >
4883 >                  ;;
4884 >          i686*)
4885 >
4886 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4887 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4888 > if test "${ac_cpu_pentiumpro+set}" = set; then
4889 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4890 > else
4891 >  echo 'void f(){}' > conftest.cpp
4892 > if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4893 >        ac_cpu_pentiumpro=yes
4894 > else
4895 >        ac_cpu_pentiumpro=no
4896 > fi
4897 > rm -f conftest*
4898 >
4899 > fi
4900 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4901 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4902 > if test "$ac_cpu_pentiumpro" = yes; then
4903 >        :
4904 >        CPU_FLAGS=-mcpu=pentiumpro
4905 > else
4906 >        :
4907 >
4908 >
4909 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4910 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4911 > if test "${ac_pentiumpro+set}" = set; then
4912 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4913 > else
4914 >  echo 'void f(){}' > conftest.cpp
4915 > if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4916 >        ac_pentiumpro=yes
4917 > else
4918 >        ac_pentiumpro=no
4919 > fi
4920 > rm -f conftest*
4921 >
4922 > fi
4923 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4924 > echo "${ECHO_T}$ac_pentiumpro" >&6
4925 > if test "$ac_pentiumpro" = yes; then
4926 >        :
4927 >        CPU_FLAGS=-mpentiumpro
4928 > else
4929 >        :
4930 >
4931 > fi
4932 >
4933 > fi
4934 >
4935 >                  ;;
4936 >          powerpc*)
4937 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4938 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4939 >                if test -n "$is60x"; then
4940 >
4941 >
4942 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4943 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4944 > if test "${ac_m_cpu_60x+set}" = set; then
4945 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4946 > else
4947 >  echo 'void f(){}' > conftest.cpp
4948 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4949 >        ac_m_cpu_60x=yes
4950 > else
4951 >        ac_m_cpu_60x=no
4952 > fi
4953 > rm -f conftest*
4954 >
4955 > fi
4956 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4957 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4958 > if test "$ac_m_cpu_60x" = yes; then
4959 >        :
4960 >        CPU_FLAGS=-mcpu=$cputype
4961 > else
4962 >        :
4963 >
4964 > fi
4965 >
4966 >                elif test "$cputype" = 750; then
4967 >
4968 >
4969 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4970 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4971 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4972 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4973 > else
4974 >
4975 > cat > conftest.cpp <<EOF
4976 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4977 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4978 >     yes;
4979 > #  endif
4980 > #endif
4981 > EOF
4982 > if { ac_try='${CXX-c++} -E conftest.cpp'
4983 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 >  (eval $ac_try) 2>&5
4985 >  ac_status=$?
4986 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4988 >  ac_cv_prog_gxx_2_95=yes
4989 > else
4990 >  ac_cv_prog_gxx_2_95=no
4991 > fi
4992 >
4993 > fi
4994 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4995 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4996 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4997 >        :
4998 >
4999 >
5000 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
5001 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
5002 > if test "${ac_m_cpu_750+set}" = set; then
5003 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5004 > else
5005 >  echo 'void f(){}' > conftest.cpp
5006 > if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
5007 >        ac_m_cpu_750=yes
5008 > else
5009 >        ac_m_cpu_750=no
5010 > fi
5011 > rm -f conftest*
5012 >
5013 > fi
5014 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
5015 > echo "${ECHO_T}$ac_m_cpu_750" >&6
5016 > if test "$ac_m_cpu_750" = yes; then
5017 >        :
5018 >        CPU_FLAGS=-mcpu=750
5019 > else
5020 >        :
5021 >
5022 > fi
5023 >
5024 > else
5025 >        :
5026 >
5027 > fi
5028 >
5029 >                fi
5030 >                if test -z "$CPU_FLAGS"; then
5031 >
5032 >
5033 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5034 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5035 > if test "${ac_m_cpu_powerpc+set}" = set; then
5036 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5037 > else
5038 >  echo 'void f(){}' > conftest.cpp
5039 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
5040 >        ac_m_cpu_powerpc=yes
5041 > else
5042 >        ac_m_cpu_powerpc=no
5043 > fi
5044 > rm -f conftest*
5045 >
5046 > fi
5047 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5048 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5049 > if test "$ac_m_cpu_powerpc" = yes; then
5050 >        :
5051 >        CPU_FLAGS=-mcpu=powerpc
5052 > else
5053 >        :
5054 >
5055 > fi
5056 >
5057 >                fi
5058 >                if test -z "$CPU_FLAGS"; then
5059 >
5060 >
5061 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5062 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5063 > if test "${ac_m_powerpc+set}" = set; then
5064 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5065 > else
5066 >  echo 'void f(){}' > conftest.cpp
5067 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
5068 >        ac_m_powerpc=yes
5069 > else
5070 >        ac_m_powerpc=no
5071 > fi
5072 > rm -f conftest*
5073 >
5074 > fi
5075 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5076 > echo "${ECHO_T}$ac_m_powerpc" >&6
5077 > if test "$ac_m_powerpc" = yes; then
5078 >        :
5079 >        CPU_FLAGS=-mpowerpc
5080 > else
5081 >        :
5082 >
5083 > fi
5084 >
5085 >                fi
5086 >          esac
5087 >  fi
5088 >
5089 >  if test -n "$CPU_FLAGS"; then
5090 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
5091 >  fi
5092 >
5093 >  if test -z "$CXXFLAGS"; then
5094 >        echo ""
5095 >        echo "**********************************************************"
5096 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
5097 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5098 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
5099 >        echo "**********************************************************"
5100 >        echo ""
5101 >        CXXFLAGS="-O3"
5102 >  fi
5103 >
5104 >
5105 >
5106 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5107 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5108 > if test "${ac_guessed_cxxflags+set}" = set; then
5109 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5110 > else
5111 >  echo 'void f(){}' > conftest.cpp
5112 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
5113 >        ac_guessed_cxxflags=yes
5114 > else
5115 >        ac_guessed_cxxflags=no
5116 > fi
5117 > rm -f conftest*
5118 >
5119 > fi
5120 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5121 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5122 > if test "$ac_guessed_cxxflags" = yes; then
5123 >        :
5124 >
5125 > else
5126 >        :
5127 >
5128 >        echo ""
5129 >        echo "**********************************************************"
5130 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
5131 >        echo "* your compiler.                                         *"
5132 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5133 >        echo "**********************************************************"
5134 >        echo ""
5135 >        CXXFLAGS=""
5136 >
5137 > fi
5138 >
5139 >
5140 > fi
5141 >
5142 >
5143 >
5144 >
5145 >
5146 > # Try to determine "good" native compiler flags if none specified on command
5147 > # line
5148 >
5149 > if test x"$F90FLAGS" = x ; then
5150 >  F90FLAGS=""
5151 >  case "${host_cpu}-${host_os}" in
5152 >
5153 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5154 >                    F90FLAGS="-O"
5155 >                fi;;
5156 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5157 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
5158 >                fi;;
5159 >   powerpc*-aix*)
5160 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5161 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
5162 >                echo "*******************************************************"
5163 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
5164 >                echo "*  recommended that you use                           *"
5165 >                echo "*                                                     *"
5166 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
5167 >                echo "*                                 ^^^                 *"
5168 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
5169 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
5170 >                echo "*******************************************************"
5171 >        fi;;
5172 >   *darwin*)
5173 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5174 >                F90FLAGS="-O3 -qtune=auto -w"
5175 >                echo "*********************************************************"
5176 >                echo "*  You have Darwin on an unknown powerpc system.  It is *"
5177 >                echo "*  recommended that you use                             *"
5178 >                echo "*                                                       *"
5179 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
5180 >                echo "*                                 ^^^                   *"
5181 >                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
5182 >                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
5183 >                echo "*********************************************************"
5184 >        fi;;
5185 >  esac
5186 >
5187 >  if test -n "$CPU_FLAGS"; then
5188 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
5189 >  fi
5190 >
5191 >  if test -z "$F90FLAGS"; then
5192 >        echo ""
5193 >        echo "**********************************************************"
5194 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
5195 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5196 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
5197 >        echo "**********************************************************"
5198 >        echo ""
5199 >        F90FLAGS="-O3"
5200 >  fi
5201 >
5202 >
5203 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5204 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5205 > if test "${ac_guessed_f90flags+set}" = set; then
5206 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5207 > else
5208 >
5209 >
5210 >
5211 > ac_ext=f90
5212 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5213 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5215 >
5216 > echo 'program main' > conftest.$ac_ext
5217 > echo 'end program main' >> conftest.$ac_ext
5218 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5219 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 >  (eval $ac_compile) 2>&5
5221 >  ac_status=$?
5222 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 >  (exit $ac_status); }; then
5224 >        ac_guessed_f90flags=yes
5225 > else
5226 >        ac_guessed_f90flags=no
5227 > fi
5228 > rm -f conftest*
5229 > ac_ext=f90
5230 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5231 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5233 >
5234 >
5235 > fi
5236 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5237 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
5238 > if test "$ac_guessed_f90flags" = yes; then
5239 >        :
5240 >
5241 > else
5242 >        :
5243 >
5244 >        echo ""
5245 >        echo "**********************************************************"
5246 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5247 >        echo "* your compiler.                                         *"
5248 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5249 >        echo "**********************************************************"
5250 >        echo ""
5251 >        F90FLAGS=""
5252 >
5253 > fi
5254 >
5255 >
5256 > fi
5257 >
5258 >     ;;
5259 > esac
5260 >
5261 > # Find a good install program.  We prefer a C program (faster),
5262 > # so one script is as good as another.  But avoid the broken or
5263 > # incompatible versions:
5264 > # SysV /etc/install, /usr/sbin/install
5265 > # SunOS /usr/etc/install
5266 > # IRIX /sbin/install
5267 > # AIX /bin/install
5268 > # AmigaOS /C/install, which installs bootblocks on floppy discs
5269 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5270 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5271 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5272 > # OS/2's system install, which has a completely different semantic
5273 > # ./install, which can be erroneously created by make from ./install.sh.
5274 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5275 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5276 > if test -z "$INSTALL"; then
5277 > if test "${ac_cv_path_install+set}" = set; then
5278 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5279 > else
5280 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 > for as_dir in $PATH
5282 > do
5283 >  IFS=$as_save_IFS
5284 >  test -z "$as_dir" && as_dir=.
5285 >  # Account for people who put trailing slashes in PATH elements.
5286 > case $as_dir/ in
5287 >  ./ | .// | /cC/* | \
5288 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5289 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5290 >  /usr/ucb/* ) ;;
5291 >  *)
5292 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5293 >    # Don't use installbsd from OSF since it installs stuff as root
5294 >    # by default.
5295 >    for ac_prog in ginstall scoinst install; do
5296 >      for ac_exec_ext in '' $ac_executable_extensions; do
5297 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5298 >          if test $ac_prog = install &&
5299 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5300 >            # AIX install.  It has an incompatible calling convention.
5301 >            :
5302 >          elif test $ac_prog = install &&
5303 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5304 >            # program-specific install script used by HP pwplus--don't use.
5305 >            :
5306 >          else
5307 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5308 >            break 3
5309 >          fi
5310 >        fi
5311 >      done
5312 >    done
5313 >    ;;
5314 > esac
5315 > done
5316 >
5317 >
5318 > fi
5319 >  if test "${ac_cv_path_install+set}" = set; then
5320 >    INSTALL=$ac_cv_path_install
5321 >  else
5322 >    # As a last resort, use the slow shell script.  We don't cache a
5323 >    # path for INSTALL within a source directory, because that will
5324 >    # break other packages using the cache if that directory is
5325 >    # removed, or if the path is relative.
5326 >    INSTALL=$ac_install_sh
5327 >  fi
5328 > fi
5329 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5330 > echo "${ECHO_T}$INSTALL" >&6
5331 >
5332 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5333 > # It thinks the first close brace ends the variable substitution.
5334 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5335 >
5336 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5337 >
5338 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5339 >
5340 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5341 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5342 > LN_S=$as_ln_s
5343 > if test "$LN_S" = "ln -s"; then
5344 >  echo "$as_me:$LINENO: result: yes" >&5
5345 > echo "${ECHO_T}yes" >&6
5346 > else
5347 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5348 > echo "${ECHO_T}no, using $LN_S" >&6
5349 > fi
5350 >
5351 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5352 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5353 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5354 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5355 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5356 > else
5357 >  cat >conftest.make <<\_ACEOF
5358 > all:
5359 >        @echo 'ac_maketemp="$(MAKE)"'
5360 > _ACEOF
5361 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5362 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5363 > if test -n "$ac_maketemp"; then
5364 >  eval ac_cv_prog_make_${ac_make}_set=yes
5365 > else
5366 >  eval ac_cv_prog_make_${ac_make}_set=no
5367 > fi
5368 > rm -f conftest.make
5369 > fi
5370 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5371 >  echo "$as_me:$LINENO: result: yes" >&5
5372 > echo "${ECHO_T}yes" >&6
5373 >  SET_MAKE=
5374 > else
5375 >  echo "$as_me:$LINENO: result: no" >&5
5376 > echo "${ECHO_T}no" >&6
5377 >  SET_MAKE="MAKE=${MAKE-make}"
5378 > fi
5379 >
5380 > if test -n "$ac_tool_prefix"; then
5381 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5382 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5383 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 > if test "${ac_cv_prog_RANLIB+set}" = set; then
5386 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5387 > else
5388 >  if test -n "$RANLIB"; then
5389 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5390 > else
5391 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 > for as_dir in $PATH
5393 > do
5394 >  IFS=$as_save_IFS
5395 >  test -z "$as_dir" && as_dir=.
5396 >  for ac_exec_ext in '' $ac_executable_extensions; do
5397 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5399 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 >    break 2
5401 >  fi
5402 > done
5403 > done
5404 >
5405 > fi
5406 > fi
5407 > RANLIB=$ac_cv_prog_RANLIB
5408 > if test -n "$RANLIB"; then
5409 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5410 > echo "${ECHO_T}$RANLIB" >&6
5411 > else
5412 >  echo "$as_me:$LINENO: result: no" >&5
5413 > echo "${ECHO_T}no" >&6
5414 > fi
5415 >
5416 > fi
5417 > if test -z "$ac_cv_prog_RANLIB"; then
5418 >  ac_ct_RANLIB=$RANLIB
5419 >  # Extract the first word of "ranlib", so it can be a program name with args.
5420 > set dummy ranlib; ac_word=$2
5421 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5424 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5425 > else
5426 >  if test -n "$ac_ct_RANLIB"; then
5427 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5428 > else
5429 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 > for as_dir in $PATH
5431 > do
5432 >  IFS=$as_save_IFS
5433 >  test -z "$as_dir" && as_dir=.
5434 >  for ac_exec_ext in '' $ac_executable_extensions; do
5435 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5437 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 >    break 2
5439 >  fi
5440 > done
5441 > done
5442 >
5443 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5444 > fi
5445 > fi
5446 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5447 > if test -n "$ac_ct_RANLIB"; then
5448 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5449 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
5450 > else
5451 >  echo "$as_me:$LINENO: result: no" >&5
5452 > echo "${ECHO_T}no" >&6
5453 > fi
5454 >
5455 >  RANLIB=$ac_ct_RANLIB
5456 > else
5457 >  RANLIB="$ac_cv_prog_RANLIB"
5458 > fi
5459 >
5460 > for ac_prog in 'bison -y' byacc
5461 > do
5462 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 > set dummy $ac_prog; ac_word=$2
5464 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5465 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466 > if test "${ac_cv_prog_YACC+set}" = set; then
5467 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5468 > else
5469 >  if test -n "$YACC"; then
5470 >  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5471 > else
5472 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 > for as_dir in $PATH
5474 > do
5475 >  IFS=$as_save_IFS
5476 >  test -z "$as_dir" && as_dir=.
5477 >  for ac_exec_ext in '' $ac_executable_extensions; do
5478 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 >    ac_cv_prog_YACC="$ac_prog"
5480 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 >    break 2
5482 >  fi
5483 > done
5484 > done
5485 >
5486 > fi
5487 > fi
5488 > YACC=$ac_cv_prog_YACC
5489 > if test -n "$YACC"; then
5490 >  echo "$as_me:$LINENO: result: $YACC" >&5
5491 > echo "${ECHO_T}$YACC" >&6
5492 > else
5493 >  echo "$as_me:$LINENO: result: no" >&5
5494 > echo "${ECHO_T}no" >&6
5495 > fi
5496 >
5497 >  test -n "$YACC" && break
5498 > done
5499 > test -n "$YACC" || YACC="yacc"
5500 >
5501 > for ac_prog in flex lex
5502 > do
5503 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5504 > set dummy $ac_prog; ac_word=$2
5505 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 > if test "${ac_cv_prog_LEX+set}" = set; then
5508 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5509 > else
5510 >  if test -n "$LEX"; then
5511 >  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5512 > else
5513 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 > for as_dir in $PATH
5515 > do
5516 >  IFS=$as_save_IFS
5517 >  test -z "$as_dir" && as_dir=.
5518 >  for ac_exec_ext in '' $ac_executable_extensions; do
5519 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 >    ac_cv_prog_LEX="$ac_prog"
5521 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 >    break 2
5523 >  fi
5524 > done
5525 > done
5526 >
5527 > fi
5528 > fi
5529 > LEX=$ac_cv_prog_LEX
5530 > if test -n "$LEX"; then
5531 >  echo "$as_me:$LINENO: result: $LEX" >&5
5532 > echo "${ECHO_T}$LEX" >&6
5533 > else
5534 >  echo "$as_me:$LINENO: result: no" >&5
5535 > echo "${ECHO_T}no" >&6
5536 > fi
5537 >
5538 >  test -n "$LEX" && break
5539 > done
5540 > test -n "$LEX" || LEX=":"
5541 >
5542 > if test -z "$LEXLIB"
5543 > then
5544 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5545 > echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5546 > if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5547 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5548 > else
5549 >  ac_check_lib_save_LIBS=$LIBS
5550 > LIBS="-lfl  $LIBS"
5551 > cat >conftest.$ac_ext <<_ACEOF
5552 >
5553 > program main
5554 >
5555 > call yywrap
5556 > end program main
5557 >
5558 > _ACEOF
5559 > rm -f conftest.$ac_objext conftest$ac_exeext
5560 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 >  (eval $ac_link) 2>conftest.er1
5562 >  ac_status=$?
5563 >  grep -v '^ *+' conftest.er1 >conftest.err
5564 >  rm -f conftest.er1
5565 >  cat conftest.err >&5
5566 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 >  (exit $ac_status); } &&
5568 >         { ac_try='test -z "$ac_f90_werror_flag"
5569 >                         || test ! -s conftest.err'
5570 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 >  (eval $ac_try) 2>&5
5572 >  ac_status=$?
5573 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 >  (exit $ac_status); }; } &&
5575 >         { ac_try='test -s conftest$ac_exeext'
5576 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 >  (eval $ac_try) 2>&5
5578 >  ac_status=$?
5579 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 >  (exit $ac_status); }; }; then
5581 >  ac_cv_lib_fl_yywrap=yes
5582 > else
5583 >  echo "$as_me: failed program was:" >&5
5584 > sed 's/^/| /' conftest.$ac_ext >&5
5585 >
5586 > ac_cv_lib_fl_yywrap=no
5587 > fi
5588 > rm -f conftest.err conftest.$ac_objext \
5589 >      conftest$ac_exeext conftest.$ac_ext
5590 > LIBS=$ac_check_lib_save_LIBS
5591 > fi
5592 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5593 > echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5594 > if test $ac_cv_lib_fl_yywrap = yes; then
5595 >  LEXLIB="-lfl"
5596 > else
5597 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5598 > echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5599 > if test "${ac_cv_lib_l_yywrap+set}" = set; then
5600 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5601 > else
5602 >  ac_check_lib_save_LIBS=$LIBS
5603 > LIBS="-ll  $LIBS"
5604 > cat >conftest.$ac_ext <<_ACEOF
5605 >
5606 > program main
5607 >
5608 > call yywrap
5609 > end program main
5610 >
5611 > _ACEOF
5612 > rm -f conftest.$ac_objext conftest$ac_exeext
5613 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 >  (eval $ac_link) 2>conftest.er1
5615 >  ac_status=$?
5616 >  grep -v '^ *+' conftest.er1 >conftest.err
5617 >  rm -f conftest.er1
5618 >  cat conftest.err >&5
5619 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 >  (exit $ac_status); } &&
5621 >         { ac_try='test -z "$ac_f90_werror_flag"
5622 >                         || test ! -s conftest.err'
5623 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 >  (eval $ac_try) 2>&5
5625 >  ac_status=$?
5626 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 >  (exit $ac_status); }; } &&
5628 >         { ac_try='test -s conftest$ac_exeext'
5629 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 >  (eval $ac_try) 2>&5
5631 >  ac_status=$?
5632 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 >  (exit $ac_status); }; }; then
5634 >  ac_cv_lib_l_yywrap=yes
5635 > else
5636 >  echo "$as_me: failed program was:" >&5
5637 > sed 's/^/| /' conftest.$ac_ext >&5
5638 >
5639 > ac_cv_lib_l_yywrap=no
5640 > fi
5641 > rm -f conftest.err conftest.$ac_objext \
5642 >      conftest$ac_exeext conftest.$ac_ext
5643 > LIBS=$ac_check_lib_save_LIBS
5644 > fi
5645 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5646 > echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5647 > if test $ac_cv_lib_l_yywrap = yes; then
5648 >  LEXLIB="-ll"
5649 > fi
5650 >
5651 > fi
5652 >
5653 > fi
5654 >
5655 > if test "x$LEX" != "x:"; then
5656 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5657 > echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5658 > if test "${ac_cv_prog_lex_root+set}" = set; then
5659 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5660 > else
5661 >  # The minimal lex program is just a single line: %%.  But some broken lexes
5662 > # (Solaris, I think it was) want two %% lines, so accommodate them.
5663 > cat >conftest.l <<_ACEOF
5664 > %%
5665 > %%
5666 > _ACEOF
5667 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5668 >  (eval $LEX conftest.l) 2>&5
5669 >  ac_status=$?
5670 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 >  (exit $ac_status); }
5672 > if test -f lex.yy.c; then
5673 >  ac_cv_prog_lex_root=lex.yy
5674 > elif test -f lexyy.c; then
5675 >  ac_cv_prog_lex_root=lexyy
5676 > else
5677 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5678 > echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5679 >   { (exit 1); exit 1; }; }
5680 > fi
5681 > fi
5682 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5683 > echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5684 > rm -f conftest.l
5685 > LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5686 >
5687 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5688 > echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5689 > if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5690 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5691 > else
5692 >  # POSIX says lex can declare yytext either as a pointer or an array; the
5693 > # default is implementation-dependent. Figure out which it is, since
5694 > # not all implementations provide the %pointer and %array declarations.
5695 > ac_cv_prog_lex_yytext_pointer=no
5696 > echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5697 > ac_save_LIBS=$LIBS
5698 > LIBS="$LIBS $LEXLIB"
5699 > cat >conftest.$ac_ext <<_ACEOF
5700 > `cat $LEX_OUTPUT_ROOT.c`
5701 > _ACEOF
5702 > rm -f conftest.$ac_objext conftest$ac_exeext
5703 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 >  (eval $ac_link) 2>conftest.er1
5705 >  ac_status=$?
5706 >  grep -v '^ *+' conftest.er1 >conftest.err
5707 >  rm -f conftest.er1
5708 >  cat conftest.err >&5
5709 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 >  (exit $ac_status); } &&
5711 >         { ac_try='test -z "$ac_f90_werror_flag"
5712 >                         || test ! -s conftest.err'
5713 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 >  (eval $ac_try) 2>&5
5715 >  ac_status=$?
5716 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 >  (exit $ac_status); }; } &&
5718 >         { ac_try='test -s conftest$ac_exeext'
5719 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 >  (eval $ac_try) 2>&5
5721 >  ac_status=$?
5722 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 >  (exit $ac_status); }; }; then
5724 >  ac_cv_prog_lex_yytext_pointer=yes
5725 > else
5726 >  echo "$as_me: failed program was:" >&5
5727 > sed 's/^/| /' conftest.$ac_ext >&5
5728 >
5729 > fi
5730 > rm -f conftest.err conftest.$ac_objext \
5731 >      conftest$ac_exeext conftest.$ac_ext
5732 > LIBS=$ac_save_LIBS
5733 > rm -f "${LEX_OUTPUT_ROOT}.c"
5734 >
5735 > fi
5736 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5737 > echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5738 > if test $ac_cv_prog_lex_yytext_pointer = yes; then
5739 >
5740 > cat >>confdefs.h <<\_ACEOF
5741 > #define YYTEXT_POINTER 1
5742 > _ACEOF
5743 >
5744 > fi
5745 >
5746 > fi
5747 > # Extract the first word of "ar", so it can be a program name with args.
5748 > set dummy ar; ac_word=$2
5749 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5750 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751 > if test "${ac_cv_prog_AR+set}" = set; then
5752 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5753 > else
5754 >  if test -n "$AR"; then
5755 >  ac_cv_prog_AR="$AR" # Let the user override the test.
5756 > else
5757 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 > for as_dir in $PATH
5759 > do
5760 >  IFS=$as_save_IFS
5761 >  test -z "$as_dir" && as_dir=.
5762 >  for ac_exec_ext in '' $ac_executable_extensions; do
5763 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 >    ac_cv_prog_AR="ar"
5765 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 >    break 2
5767 >  fi
5768 > done
5769 > done
5770 >
5771 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5772 > fi
5773 > fi
5774 > AR=$ac_cv_prog_AR
5775 > if test -n "$AR"; then
5776 >  echo "$as_me:$LINENO: result: $AR" >&5
5777 > echo "${ECHO_T}$AR" >&6
5778 > else
5779 >  echo "$as_me:$LINENO: result: no" >&5
5780 > echo "${ECHO_T}no" >&6
5781 > fi
5782 >
5783 > if test "$AR" = "NONE"; then
5784 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5785 > echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5786 >   { (exit 1); exit 1; }; }
5787 >  cat >confcache <<\_ACEOF
5788 > # This file is a shell script that caches the results of configure
5789 > # tests run on this system so they can be shared between configure
5790 > # scripts and configure runs, see configure's option --config-cache.
5791 > # It is not useful on other systems.  If it contains results you don't
5792 > # want to keep, you may remove or edit it.
5793 > #
5794 > # config.status only pays attention to the cache file if you give it
5795 > # the --recheck option to rerun configure.
5796 > #
5797 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5798 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
5799 > # following values.
5800 >
5801 > _ACEOF
5802 >
5803 > # The following way of writing the cache mishandles newlines in values,
5804 > # but we know of no workaround that is simple, portable, and efficient.
5805 > # So, don't put newlines in cache variables' values.
5806 > # Ultrix sh set writes to stderr and can't be redirected directly,
5807 > # and sets the high bit in the cache file unless we assign to the vars.
5808 > {
5809 >  (set) 2>&1 |
5810 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5811 >    *ac_space=\ *)
5812 >      # `set' does not quote correctly, so add quotes (double-quote
5813 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
5814 >      sed -n \
5815 >        "s/'/'\\\\''/g;
5816 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5817 >      ;;
5818 >    *)
5819 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
5820 >      sed -n \
5821 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5822 >      ;;
5823 >    esac;
5824 > } |
5825 >  sed '
5826 >     t clear
5827 >     : clear
5828 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5829 >     t end
5830 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5831 >     : end' >>confcache
5832 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5833 >  if test -w $cache_file; then
5834 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5835 >    cat confcache >$cache_file
5836 >  else
5837 >    echo "not updating unwritable cache $cache_file"
5838 >  fi
5839 > fi
5840 > rm -f confcache
5841 >  exit 1
5842 > fi
5843 >
5844 > echo "$as_me:$LINENO: checking for mpi-directory" >&5
5845 > echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5846 >
5847 > # Check whether --with-mpi or --without-mpi was given.
5848 > if test "${with_mpi+set}" = set; then
5849 >  withval="$with_mpi"
5850 >  MPI_DIR="$withval"
5851 > else
5852 >  MPI_DIR="/usr/local"
5853 > fi;
5854 > echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5855 > echo "${ECHO_T}$MPI_DIR" >&6
5856 >
5857 >
5858 > echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5859 > echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5860 >
5861 > # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5862 > if test "${with_mpi_libdir+set}" = set; then
5863 >  withval="$with_mpi_libdir"
5864 >  MPI_LIBDIR="$withval"
5865 > else
5866 >  MPI_LIBDIR="$MPI_DIR/lib"
5867 > fi;
5868 > echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5869 > echo "${ECHO_T}$MPI_LIBDIR" >&6
5870 >
5871 >
5872 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5873 > echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5874 >
5875 > # Check whether --with-mpi-inc or --without-mpi-inc was given.
5876 > if test "${with_mpi_inc+set}" = set; then
5877 >  withval="$with_mpi_inc"
5878 >  MPI_INC="$withval"
5879 > else
5880 >  MPI_INC="$MPI_DIR/include"
5881 > fi;
5882 > echo "$as_me:$LINENO: result: $MPI_INC" >&5
5883 > echo "${ECHO_T}$MPI_INC" >&6
5884 >
5885 >
5886 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5887 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5888 > HAVE_MPIDOTH_C="no"
5889 > echo '#include <mpi.h>' > conftest.cc
5890 > if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then
5891 >  echo "$as_me:$LINENO: result: yes" >&5
5892 > echo "${ECHO_T}yes" >&6
5893 >  HAVE_MPIDOTH_C="yes"
5894 > else
5895 >  echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5896 > echo "${ECHO_T}no! Check MPI include paths" >&6
5897 > fi
5898 > rm -f conftest*
5899 >
5900 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5901 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5902 > HAVE_MPIFDOTH_F90="no"
5903 > rm -f conftest*
5904 > cat >conftest.f90 <<EOF
5905 > program main
5906 >  include 'mpif.h'
5907 > end
5908 > EOF
5909 > if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then
5910 >   echo "$as_me:$LINENO: result: yes" >&5
5911 > echo "${ECHO_T}yes" >&6
5912 >   MPI_F90INC="$MPI_INC"
5913 >   HAVE_MPIFDOTH_F90="yes"
5914 > else
5915 >   if test -s conftest.out ; then cat conftest.out >> config.log ; fi
5916 >   echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5917 > echo "${ECHO_T}no! Check MPI include paths" >&6
5918 > fi
5919 > rm -f conftest*
5920 >
5921 >
5922 > ac_ext=c
5923 > ac_cpp='$CPP $CPPFLAGS'
5924 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927 >
5928 > ac_save_LDFLAGS=$LDFLAGS
5929 > LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} "
5930 >
5931 > if test x = x"$MPI_LIB"; then
5932 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5933 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5934 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5935 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5936 > else
5937 >  ac_check_lib_save_LIBS=$LIBS
5938 > LIBS="-lmpi  $LIBS"
5939 > cat >conftest.$ac_ext <<_ACEOF
5940 > /* confdefs.h.  */
5941 > _ACEOF
5942 > cat confdefs.h >>conftest.$ac_ext
5943 > cat >>conftest.$ac_ext <<_ACEOF
5944 > /* end confdefs.h.  */
5945 >
5946 > /* Override any gcc2 internal prototype to avoid an error.  */
5947 > #ifdef __cplusplus
5948 > extern "C"
5949 > #endif
5950 > /* We use char because int might match the return type of a gcc2
5951 >   builtin and then its argument prototype would still apply.  */
5952 > char MPI_Init ();
5953 > int
5954 > main ()
5955 > {
5956 > MPI_Init ();
5957 >  ;
5958 >  return 0;
5959 > }
5960 > _ACEOF
5961 > rm -f conftest.$ac_objext conftest$ac_exeext
5962 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 >  (eval $ac_link) 2>conftest.er1
5964 >  ac_status=$?
5965 >  grep -v '^ *+' conftest.er1 >conftest.err
5966 >  rm -f conftest.er1
5967 >  cat conftest.err >&5
5968 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 >  (exit $ac_status); } &&
5970 >         { ac_try='test -z "$ac_c_werror_flag"
5971 >                         || test ! -s conftest.err'
5972 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 >  (eval $ac_try) 2>&5
5974 >  ac_status=$?
5975 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 >  (exit $ac_status); }; } &&
5977 >         { ac_try='test -s conftest$ac_exeext'
5978 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 >  (eval $ac_try) 2>&5
5980 >  ac_status=$?
5981 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 >  (exit $ac_status); }; }; then
5983 >  ac_cv_lib_mpi_MPI_Init=yes
5984 > else
5985 >  echo "$as_me: failed program was:" >&5
5986 > sed 's/^/| /' conftest.$ac_ext >&5
5987 >
5988 > ac_cv_lib_mpi_MPI_Init=no
5989 > fi
5990 > rm -f conftest.err conftest.$ac_objext \
5991 >      conftest$ac_exeext conftest.$ac_ext
5992 > LIBS=$ac_check_lib_save_LIBS
5993 > fi
5994 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5995 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5996 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5997 >  MPI_LIB="-lmpi"
5998 > fi
5999 >
6000 > fi
6001 > if test x = x"$MPI_LIB"; then
6002 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
6003 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6004 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6005 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6006 > else
6007 >  ac_check_lib_save_LIBS=$LIBS
6008 > LIBS="-lmpich  $LIBS"
6009 > cat >conftest.$ac_ext <<_ACEOF
6010 > /* confdefs.h.  */
6011 > _ACEOF
6012 > cat confdefs.h >>conftest.$ac_ext
6013 > cat >>conftest.$ac_ext <<_ACEOF
6014 > /* end confdefs.h.  */
6015  
6016 + /* Override any gcc2 internal prototype to avoid an error.  */
6017 + #ifdef __cplusplus
6018 + extern "C"
6019 + #endif
6020 + /* We use char because int might match the return type of a gcc2
6021 +   builtin and then its argument prototype would still apply.  */
6022 + char MPI_Init ();
6023 + int
6024 + main ()
6025 + {
6026 + MPI_Init ();
6027 +  ;
6028 +  return 0;
6029 + }
6030   _ACEOF
6031   rm -f conftest.$ac_objext conftest$ac_exeext
6032 < if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
6033 <  (eval $ac_link) 2>&5
6032 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6033 >  (eval $ac_link) 2>conftest.er1
6034    ac_status=$?
6035 <  echo "$as_me:4684: \$? = $ac_status" >&5
6035 >  grep -v '^ *+' conftest.er1 >conftest.err
6036 >  rm -f conftest.er1
6037 >  cat conftest.err >&5
6038 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039    (exit $ac_status); } &&
6040 <         { ac_try='test -s conftest$ac_exeext'
6041 <  { (eval echo "$as_me:4687: \"$ac_try\"") >&5
6040 >         { ac_try='test -z "$ac_c_werror_flag"
6041 >                         || test ! -s conftest.err'
6042 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043    (eval $ac_try) 2>&5
6044    ac_status=$?
6045 <  echo "$as_me:4690: \$? = $ac_status" >&5
6045 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 >  (exit $ac_status); }; } &&
6047 >         { ac_try='test -s conftest$ac_exeext'
6048 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 >  (eval $ac_try) 2>&5
6050 >  ac_status=$?
6051 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052    (exit $ac_status); }; }; then
6053 <  MPILIBS=" "
4693 <                                echo "$as_me:4693: result: yes" >&5
4694 < echo "${ECHO_T}yes" >&6
6053 >  ac_cv_lib_mpich_MPI_Init=yes
6054   else
6055    echo "$as_me: failed program was:" >&5
6056 < cat conftest.$ac_ext >&5
6057 < echo "$as_me:4698: result: no" >&5
6058 < echo "${ECHO_T}no" >&6
6056 > sed 's/^/| /' conftest.$ac_ext >&5
6057 >
6058 > ac_cv_lib_mpich_MPI_Init=no
6059   fi
6060 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6060 > rm -f conftest.err conftest.$ac_objext \
6061 >      conftest$ac_exeext conftest.$ac_ext
6062 > LIBS=$ac_check_lib_save_LIBS
6063   fi
6064 < if test x = x"$MPILIBS"; then
6065 <        echo "$as_me:4704: checking for MPI_Init in -lmpi" >&5
6064 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6065 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6066 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6067 >  MPI_LIB="-lmpich"
6068 > fi
6069 >
6070 > fi
6071 > $as_unset ac_cv_lib_mpi_MPI_Init
6072 > if test x = x"$MPI_LIB"; then
6073 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6074   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6075   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6076    echo $ECHO_N "(cached) $ECHO_C" >&6
6077   else
6078    ac_check_lib_save_LIBS=$LIBS
6079 < LIBS="-lmpi  $LIBS"
6079 > LIBS="-lmpi "-llam" $LIBS"
6080   cat >conftest.$ac_ext <<_ACEOF
6081 + /* confdefs.h.  */
6082 + _ACEOF
6083 + cat confdefs.h >>conftest.$ac_ext
6084 + cat >>conftest.$ac_ext <<_ACEOF
6085 + /* end confdefs.h.  */
6086  
6087 < program main
6088 <
6089 < call MPI_Init
6090 < end program main
6091 <
6087 > /* Override any gcc2 internal prototype to avoid an error.  */
6088 > #ifdef __cplusplus
6089 > extern "C"
6090 > #endif
6091 > /* We use char because int might match the return type of a gcc2
6092 >   builtin and then its argument prototype would still apply.  */
6093 > char MPI_Init ();
6094 > int
6095 > main ()
6096 > {
6097 > MPI_Init ();
6098 >  ;
6099 >  return 0;
6100 > }
6101   _ACEOF
6102   rm -f conftest.$ac_objext conftest$ac_exeext
6103 < if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
6104 <  (eval $ac_link) 2>&5
6103 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 >  (eval $ac_link) 2>conftest.er1
6105    ac_status=$?
6106 <  echo "$as_me:4723: \$? = $ac_status" >&5
6106 >  grep -v '^ *+' conftest.er1 >conftest.err
6107 >  rm -f conftest.er1
6108 >  cat conftest.err >&5
6109 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110    (exit $ac_status); } &&
6111 <         { ac_try='test -s conftest$ac_exeext'
6112 <  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
6111 >         { ac_try='test -z "$ac_c_werror_flag"
6112 >                         || test ! -s conftest.err'
6113 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114    (eval $ac_try) 2>&5
6115    ac_status=$?
6116 <  echo "$as_me:4729: \$? = $ac_status" >&5
6116 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 >  (exit $ac_status); }; } &&
6118 >         { ac_try='test -s conftest$ac_exeext'
6119 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 >  (eval $ac_try) 2>&5
6121 >  ac_status=$?
6122 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123    (exit $ac_status); }; }; then
6124    ac_cv_lib_mpi_MPI_Init=yes
6125   else
6126    echo "$as_me: failed program was:" >&5
6127 < cat conftest.$ac_ext >&5
6127 > sed 's/^/| /' conftest.$ac_ext >&5
6128 >
6129   ac_cv_lib_mpi_MPI_Init=no
6130   fi
6131 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131 > rm -f conftest.err conftest.$ac_objext \
6132 >      conftest$ac_exeext conftest.$ac_ext
6133   LIBS=$ac_check_lib_save_LIBS
6134   fi
6135 < echo "$as_me:4740: result: $ac_cv_lib_mpi_MPI_Init" >&5
6135 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6136   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6137   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6138 <  MPILIBS="-lmpi"
6138 >  MPI_LIB="-lmpi -llam"
6139   fi
6140  
6141   fi
6142 < if test x = x"$MPILIBS"; then
6143 <        echo "$as_me:4748: checking for MPI_Init in -lmpich" >&5
6144 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6145 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6142 >
6143 > $as_unset ac_cv_lib_mpi_MPI_Init
6144 > if test x = x"$MPI_LIB"; then
6145 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6146 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6147 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6148    echo $ECHO_N "(cached) $ECHO_C" >&6
6149   else
6150    ac_check_lib_save_LIBS=$LIBS
6151 < LIBS="-lmpich  $LIBS"
6151 > LIBS="-lmpi -llam -lpthread $LIBS"
6152   cat >conftest.$ac_ext <<_ACEOF
6153 + /* confdefs.h.  */
6154 + _ACEOF
6155 + cat confdefs.h >>conftest.$ac_ext
6156 + cat >>conftest.$ac_ext <<_ACEOF
6157 + /* end confdefs.h.  */
6158  
6159 < program main
6160 <
6161 < call MPI_Init
6162 < end program main
6163 <
6159 > /* Override any gcc2 internal prototype to avoid an error.  */
6160 > #ifdef __cplusplus
6161 > extern "C"
6162 > #endif
6163 > /* We use char because int might match the return type of a gcc2
6164 >   builtin and then its argument prototype would still apply.  */
6165 > char MPI_Init ();
6166 > int
6167 > main ()
6168 > {
6169 > MPI_Init ();
6170 >  ;
6171 >  return 0;
6172 > }
6173   _ACEOF
6174   rm -f conftest.$ac_objext conftest$ac_exeext
6175 < if { (eval echo "$as_me:4764: \"$ac_link\"") >&5
6176 <  (eval $ac_link) 2>&5
6175 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176 >  (eval $ac_link) 2>conftest.er1
6177    ac_status=$?
6178 <  echo "$as_me:4767: \$? = $ac_status" >&5
6178 >  grep -v '^ *+' conftest.er1 >conftest.err
6179 >  rm -f conftest.er1
6180 >  cat conftest.err >&5
6181 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182    (exit $ac_status); } &&
6183 <         { ac_try='test -s conftest$ac_exeext'
6184 <  { (eval echo "$as_me:4770: \"$ac_try\"") >&5
6183 >         { ac_try='test -z "$ac_c_werror_flag"
6184 >                         || test ! -s conftest.err'
6185 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186    (eval $ac_try) 2>&5
6187    ac_status=$?
6188 <  echo "$as_me:4773: \$? = $ac_status" >&5
6188 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 >  (exit $ac_status); }; } &&
6190 >         { ac_try='test -s conftest$ac_exeext'
6191 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 >  (eval $ac_try) 2>&5
6193 >  ac_status=$?
6194 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195    (exit $ac_status); }; }; then
6196 <  ac_cv_lib_mpich_MPI_Init=yes
6196 >  ac_cv_lib_mpi_MPI_Init=yes
6197   else
6198    echo "$as_me: failed program was:" >&5
6199 < cat conftest.$ac_ext >&5
6200 < ac_cv_lib_mpich_MPI_Init=no
6199 > sed 's/^/| /' conftest.$ac_ext >&5
6200 >
6201 > ac_cv_lib_mpi_MPI_Init=no
6202   fi
6203 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 > rm -f conftest.err conftest.$ac_objext \
6204 >      conftest$ac_exeext conftest.$ac_ext
6205   LIBS=$ac_check_lib_save_LIBS
6206   fi
6207 < echo "$as_me:4784: result: $ac_cv_lib_mpich_MPI_Init" >&5
6208 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6209 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
6210 <  MPILIBS="-lmpich"
6207 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6208 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6209 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6210 >  MPI_LIB="-lmpi -llam -lpthread"
6211 > else
6212 >  { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6213 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6214 >   { (exit 1); exit 1; }; }
6215   fi
6216  
6217   fi
6218  
6219 < F90="$acx_mpi_save_F90"
6219 > echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
6220 > echo "${ECHO_T}found $MPI_LIB" >&6
6221  
4794 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4795 if test x = x"$MPILIBS"; then
6222  
6223 <        :
6223 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6224 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6225 > MPI_F90LIB=""
6226 > if test -f "$MPI_LIBDIR/libfmpich.a" ; then
6227 >  MPI_F90LIB="-lfmpich"
6228 > elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then
6229 >  MPI_F90LIB="-llamf77mpi"
6230   else
6231 +  # nothing special found, we'll assume that the C library is all we need
6232 +  MPI_F90LIB="  "
6233 + fi
6234 + echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5
6235 + echo "${ECHO_T}found $MPI_F90LIB" >&6
6236  
4800 cat >>confdefs.h <<\EOF
4801 #define HAVE_MPI 1
4802 EOF
6237  
4804        :
4805 fi
6238  
6239 +
6240   ac_ext=c
6241   ac_cpp='$CPP $CPPFLAGS'
6242   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 < echo "$as_me:4812: checking how to run the C preprocessor" >&5
6245 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6246   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6247   # On Suns, sometimes $CPP names a directory.
6248   if test -n "$CPP" && test -d "$CPP"; then
# Line 4822 | Line 6255 | else
6255        # Double quotes because CPP needs to be expanded
6256      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6257      do
4825      # break 2 since there is a loop in there.
6258        ac_preproc_ok=false
6259   for ac_c_preproc_warn_flag in '' yes
6260   do
6261    # Use a header file that comes with gcc, so configuring glibc
6262    # with a fresh cross-compiler works.
6263 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 +  # <limits.h> exists even on freestanding compilers.
6265    # On the NeXT, cc -E runs the code through the compiler's parser,
6266    # not just through cpp. "Syntax error" is here to catch this case.
6267    cat >conftest.$ac_ext <<_ACEOF
6268 < #line 4834 "configure"
4835 < #include "confdefs.h"
4836 < #include <assert.h>
4837 <                     Syntax error
6268 > /* confdefs.h.  */
6269   _ACEOF
6270 < if { (eval echo "$as_me:4839: \"$ac_cpp conftest.$ac_ext\"") >&5
6270 > cat confdefs.h >>conftest.$ac_ext
6271 > cat >>conftest.$ac_ext <<_ACEOF
6272 > /* end confdefs.h.  */
6273 > #ifdef __STDC__
6274 > # include <limits.h>
6275 > #else
6276 > # include <assert.h>
6277 > #endif
6278 >                     Syntax error
6279 > _ACEOF
6280 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282    ac_status=$?
6283 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6283 >  grep -v '^ *+' conftest.er1 >conftest.err
6284    rm -f conftest.er1
6285    cat conftest.err >&5
6286 <  echo "$as_me:4845: \$? = $ac_status" >&5
6286 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287    (exit $ac_status); } >/dev/null; then
6288    if test -s conftest.err; then
6289      ac_cpp_err=$ac_c_preproc_warn_flag
6290 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6291    else
6292      ac_cpp_err=
6293    fi
# Line 4856 | Line 6298 | else
6298    :
6299   else
6300    echo "$as_me: failed program was:" >&5
6301 <  cat conftest.$ac_ext >&5
6301 > sed 's/^/| /' conftest.$ac_ext >&5
6302 >
6303    # Broken: fails on valid input.
6304   continue
6305   fi
# Line 4865 | Line 6308 | rm -f conftest.err conftest.$ac_ext
6308    # OK, works on sane cases.  Now check whether non-existent headers
6309    # can be detected and how.
6310    cat >conftest.$ac_ext <<_ACEOF
6311 < #line 4868 "configure"
6312 < #include "confdefs.h"
6311 > /* confdefs.h.  */
6312 > _ACEOF
6313 > cat confdefs.h >>conftest.$ac_ext
6314 > cat >>conftest.$ac_ext <<_ACEOF
6315 > /* end confdefs.h.  */
6316   #include <ac_nonexistent.h>
6317   _ACEOF
6318 < if { (eval echo "$as_me:4872: \"$ac_cpp conftest.$ac_ext\"") >&5
6318 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320    ac_status=$?
6321 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6321 >  grep -v '^ *+' conftest.er1 >conftest.err
6322    rm -f conftest.er1
6323    cat conftest.err >&5
6324 <  echo "$as_me:4878: \$? = $ac_status" >&5
6324 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325    (exit $ac_status); } >/dev/null; then
6326    if test -s conftest.err; then
6327      ac_cpp_err=$ac_c_preproc_warn_flag
6328 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6329    else
6330      ac_cpp_err=
6331    fi
# Line 4890 | Line 6337 | else
6337   continue
6338   else
6339    echo "$as_me: failed program was:" >&5
6340 <  cat conftest.$ac_ext >&5
6340 > sed 's/^/| /' conftest.$ac_ext >&5
6341 >
6342    # Passes both tests.
6343   ac_preproc_ok=:
6344   break
# Line 4901 | Line 6349 | if $ac_preproc_ok; then
6349   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6350   rm -f conftest.err conftest.$ac_ext
6351   if $ac_preproc_ok; then
6352 <  break 2
6352 >  break
6353   fi
6354  
6355      done
# Line 4912 | Line 6360 | fi
6360   else
6361    ac_cv_prog_CPP=$CPP
6362   fi
6363 < echo "$as_me:4915: result: $CPP" >&5
6363 > echo "$as_me:$LINENO: result: $CPP" >&5
6364   echo "${ECHO_T}$CPP" >&6
6365   ac_preproc_ok=false
6366   for ac_c_preproc_warn_flag in '' yes
6367   do
6368    # Use a header file that comes with gcc, so configuring glibc
6369    # with a fresh cross-compiler works.
6370 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6371 +  # <limits.h> exists even on freestanding compilers.
6372    # On the NeXT, cc -E runs the code through the compiler's parser,
6373    # not just through cpp. "Syntax error" is here to catch this case.
6374    cat >conftest.$ac_ext <<_ACEOF
6375 < #line 4925 "configure"
4926 < #include "confdefs.h"
4927 < #include <assert.h>
4928 <                     Syntax error
6375 > /* confdefs.h.  */
6376   _ACEOF
6377 < if { (eval echo "$as_me:4930: \"$ac_cpp conftest.$ac_ext\"") >&5
6377 > cat confdefs.h >>conftest.$ac_ext
6378 > cat >>conftest.$ac_ext <<_ACEOF
6379 > /* end confdefs.h.  */
6380 > #ifdef __STDC__
6381 > # include <limits.h>
6382 > #else
6383 > # include <assert.h>
6384 > #endif
6385 >                     Syntax error
6386 > _ACEOF
6387 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6388    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6389    ac_status=$?
6390 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6390 >  grep -v '^ *+' conftest.er1 >conftest.err
6391    rm -f conftest.er1
6392    cat conftest.err >&5
6393 <  echo "$as_me:4936: \$? = $ac_status" >&5
6393 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394    (exit $ac_status); } >/dev/null; then
6395    if test -s conftest.err; then
6396      ac_cpp_err=$ac_c_preproc_warn_flag
6397 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6398    else
6399      ac_cpp_err=
6400    fi
# Line 4947 | Line 6405 | else
6405    :
6406   else
6407    echo "$as_me: failed program was:" >&5
6408 <  cat conftest.$ac_ext >&5
6408 > sed 's/^/| /' conftest.$ac_ext >&5
6409 >
6410    # Broken: fails on valid input.
6411   continue
6412   fi
# Line 4956 | Line 6415 | rm -f conftest.err conftest.$ac_ext
6415    # OK, works on sane cases.  Now check whether non-existent headers
6416    # can be detected and how.
6417    cat >conftest.$ac_ext <<_ACEOF
6418 < #line 4959 "configure"
6419 < #include "confdefs.h"
6418 > /* confdefs.h.  */
6419 > _ACEOF
6420 > cat confdefs.h >>conftest.$ac_ext
6421 > cat >>conftest.$ac_ext <<_ACEOF
6422 > /* end confdefs.h.  */
6423   #include <ac_nonexistent.h>
6424   _ACEOF
6425 < if { (eval echo "$as_me:4963: \"$ac_cpp conftest.$ac_ext\"") >&5
6425 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6426    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6427    ac_status=$?
6428 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6428 >  grep -v '^ *+' conftest.er1 >conftest.err
6429    rm -f conftest.er1
6430    cat conftest.err >&5
6431 <  echo "$as_me:4969: \$? = $ac_status" >&5
6431 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432    (exit $ac_status); } >/dev/null; then
6433    if test -s conftest.err; then
6434      ac_cpp_err=$ac_c_preproc_warn_flag
6435 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6436    else
6437      ac_cpp_err=
6438    fi
# Line 4981 | Line 6444 | else
6444   continue
6445   else
6446    echo "$as_me: failed program was:" >&5
6447 <  cat conftest.$ac_ext >&5
6447 > sed 's/^/| /' conftest.$ac_ext >&5
6448 >
6449    # Passes both tests.
6450   ac_preproc_ok=:
6451   break
# Line 4994 | Line 6458 | else
6458   if $ac_preproc_ok; then
6459    :
6460   else
6461 <  { { echo "$as_me:4997: error: C preprocessor \"$CPP\" fails sanity check" >&5
6462 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6461 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6462 > See \`config.log' for more details." >&5
6463 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6464 > See \`config.log' for more details." >&2;}
6465     { (exit 1); exit 1; }; }
6466   fi
6467  
# Line 5004 | Line 6470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473 +
6474 +
6475 + echo "$as_me:$LINENO: checking for egrep" >&5
6476 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6477 + if test "${ac_cv_prog_egrep+set}" = set; then
6478 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6479 + else
6480 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6481 +    then ac_cv_prog_egrep='grep -E'
6482 +    else ac_cv_prog_egrep='egrep'
6483 +    fi
6484 + fi
6485 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6486 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6487 + EGREP=$ac_cv_prog_egrep
6488 +
6489 +
6490 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6491 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6492 + if test "${ac_cv_header_stdc+set}" = set; then
6493 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6494 + else
6495 +  cat >conftest.$ac_ext <<_ACEOF
6496 + /* confdefs.h.  */
6497 + _ACEOF
6498 + cat confdefs.h >>conftest.$ac_ext
6499 + cat >>conftest.$ac_ext <<_ACEOF
6500 + /* end confdefs.h.  */
6501 + #include <stdlib.h>
6502 + #include <stdarg.h>
6503 + #include <string.h>
6504 + #include <float.h>
6505 +
6506 + int
6507 + main ()
6508 + {
6509 +
6510 +  ;
6511 +  return 0;
6512 + }
6513 + _ACEOF
6514 + rm -f conftest.$ac_objext
6515 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516 +  (eval $ac_compile) 2>conftest.er1
6517 +  ac_status=$?
6518 +  grep -v '^ *+' conftest.er1 >conftest.err
6519 +  rm -f conftest.er1
6520 +  cat conftest.err >&5
6521 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 +  (exit $ac_status); } &&
6523 +         { ac_try='test -z "$ac_c_werror_flag"
6524 +                         || test ! -s conftest.err'
6525 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 +  (eval $ac_try) 2>&5
6527 +  ac_status=$?
6528 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 +  (exit $ac_status); }; } &&
6530 +         { ac_try='test -s conftest.$ac_objext'
6531 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 +  (eval $ac_try) 2>&5
6533 +  ac_status=$?
6534 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 +  (exit $ac_status); }; }; then
6536 +  ac_cv_header_stdc=yes
6537 + else
6538 +  echo "$as_me: failed program was:" >&5
6539 + sed 's/^/| /' conftest.$ac_ext >&5
6540  
6541 + ac_cv_header_stdc=no
6542 + fi
6543 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544 +
6545 + if test $ac_cv_header_stdc = yes; then
6546 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6547 +  cat >conftest.$ac_ext <<_ACEOF
6548 + /* confdefs.h.  */
6549 + _ACEOF
6550 + cat confdefs.h >>conftest.$ac_ext
6551 + cat >>conftest.$ac_ext <<_ACEOF
6552 + /* end confdefs.h.  */
6553 + #include <string.h>
6554 +
6555 + _ACEOF
6556 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 +  $EGREP "memchr" >/dev/null 2>&1; then
6558 +  :
6559 + else
6560 +  ac_cv_header_stdc=no
6561 + fi
6562 + rm -f conftest*
6563 +
6564 + fi
6565 +
6566 + if test $ac_cv_header_stdc = yes; then
6567 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6568 +  cat >conftest.$ac_ext <<_ACEOF
6569 + /* confdefs.h.  */
6570 + _ACEOF
6571 + cat confdefs.h >>conftest.$ac_ext
6572 + cat >>conftest.$ac_ext <<_ACEOF
6573 + /* end confdefs.h.  */
6574 + #include <stdlib.h>
6575 +
6576 + _ACEOF
6577 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 +  $EGREP "free" >/dev/null 2>&1; then
6579 +  :
6580 + else
6581 +  ac_cv_header_stdc=no
6582 + fi
6583 + rm -f conftest*
6584 +
6585 + fi
6586 +
6587 + if test $ac_cv_header_stdc = yes; then
6588 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6589 +  if test "$cross_compiling" = yes; then
6590 +  :
6591 + else
6592 +  cat >conftest.$ac_ext <<_ACEOF
6593 + /* confdefs.h.  */
6594 + _ACEOF
6595 + cat confdefs.h >>conftest.$ac_ext
6596 + cat >>conftest.$ac_ext <<_ACEOF
6597 + /* end confdefs.h.  */
6598 + #include <ctype.h>
6599 + #if ((' ' & 0x0FF) == 0x020)
6600 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6601 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6602 + #else
6603 + # define ISLOWER(c) \
6604 +                   (('a' <= (c) && (c) <= 'i') \
6605 +                     || ('j' <= (c) && (c) <= 'r') \
6606 +                     || ('s' <= (c) && (c) <= 'z'))
6607 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6608 + #endif
6609 +
6610 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6611 + int
6612 + main ()
6613 + {
6614 +  int i;
6615 +  for (i = 0; i < 256; i++)
6616 +    if (XOR (islower (i), ISLOWER (i))
6617 +        || toupper (i) != TOUPPER (i))
6618 +      exit(2);
6619 +  exit (0);
6620 + }
6621 + _ACEOF
6622 + rm -f conftest$ac_exeext
6623 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624 +  (eval $ac_link) 2>&5
6625 +  ac_status=$?
6626 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6628 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 +  (eval $ac_try) 2>&5
6630 +  ac_status=$?
6631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 +  (exit $ac_status); }; }; then
6633 +  :
6634 + else
6635 +  echo "$as_me: program exited with status $ac_status" >&5
6636 + echo "$as_me: failed program was:" >&5
6637 + sed 's/^/| /' conftest.$ac_ext >&5
6638 +
6639 + ( exit $ac_status )
6640 + ac_cv_header_stdc=no
6641 + fi
6642 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6643 + fi
6644 + fi
6645 + fi
6646 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6647 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6648 + if test $ac_cv_header_stdc = yes; then
6649 +
6650 + cat >>confdefs.h <<\_ACEOF
6651 + #define STDC_HEADERS 1
6652 + _ACEOF
6653 +
6654 + fi
6655 +
6656 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6657 +
6658 +
6659 +
6660 +
6661 +
6662 +
6663 +
6664 +
6665 +
6666 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6667 +                  inttypes.h stdint.h unistd.h
6668 + do
6669 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6670 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6672 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6673 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6674 + else
6675 +  cat >conftest.$ac_ext <<_ACEOF
6676 + /* confdefs.h.  */
6677 + _ACEOF
6678 + cat confdefs.h >>conftest.$ac_ext
6679 + cat >>conftest.$ac_ext <<_ACEOF
6680 + /* end confdefs.h.  */
6681 + $ac_includes_default
6682 +
6683 + #include <$ac_header>
6684 + _ACEOF
6685 + rm -f conftest.$ac_objext
6686 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6687 +  (eval $ac_compile) 2>conftest.er1
6688 +  ac_status=$?
6689 +  grep -v '^ *+' conftest.er1 >conftest.err
6690 +  rm -f conftest.er1
6691 +  cat conftest.err >&5
6692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 +  (exit $ac_status); } &&
6694 +         { ac_try='test -z "$ac_c_werror_flag"
6695 +                         || test ! -s conftest.err'
6696 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 +  (eval $ac_try) 2>&5
6698 +  ac_status=$?
6699 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 +  (exit $ac_status); }; } &&
6701 +         { ac_try='test -s conftest.$ac_objext'
6702 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 +  (eval $ac_try) 2>&5
6704 +  ac_status=$?
6705 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 +  (exit $ac_status); }; }; then
6707 +  eval "$as_ac_Header=yes"
6708 + else
6709 +  echo "$as_me: failed program was:" >&5
6710 + sed 's/^/| /' conftest.$ac_ext >&5
6711 +
6712 + eval "$as_ac_Header=no"
6713 + fi
6714 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6715 + fi
6716 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6717 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6718 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6719 +  cat >>confdefs.h <<_ACEOF
6720 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6721 + _ACEOF
6722 +
6723 + fi
6724 +
6725 + done
6726 +
6727 +
6728 +
6729 +
6730 +
6731   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6732   if test "${with_sprng_prefix+set}" = set; then
6733    withval="$with_sprng_prefix"
# Line 5013 | Line 6736 | fi;
6736    sprng_prefix="/usr/local"
6737   fi;
6738  
6739 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6740 < if test "${with_sprng_lib_prefix+set}" = set; then
6741 <  withval="$with_sprng_lib_prefix"
6742 <  sprng_lib_prefix="$withval"
6739 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6740 > if test "${with_sprng_libdir+set}" = set; then
6741 >  withval="$with_sprng_libdir"
6742 >  sprng_libdir="$withval"
6743   else
6744 <  sprng_lib_prefix="/usr/local/lib"
6744 >  sprng_libdir="/usr/local/lib"
6745   fi;
6746  
6747 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6748 < if test "${with_sprng_include_prefix+set}" = set; then
6749 <  withval="$with_sprng_include_prefix"
6750 <  sprng_include_prefix="$withval"
6747 > # Check whether --with-sprng-include or --without-sprng-include was given.
6748 > if test "${with_sprng_include+set}" = set; then
6749 >  withval="$with_sprng_include"
6750 >  sprng_include="$withval"
6751   else
6752 <  sprng_include_prefix="/usr/local/include/sprng"
6752 >  sprng_include="/usr/local/include/sprng"
6753   fi;
6754  
6755 <  if test x$sprng_lib_prefix = x ; then
6756 <    sprng_lib_prefix=${sprng_prefix}/lib
6755 >  if test x$sprng_libdir = x ; then
6756 >    sprng_libdir=${sprng_prefix}/lib
6757    fi
6758  
6759 <  if test x$sprng_include_prefix = x ; then
6760 <    sprng_include_prefix=${sprng_prefix}/include
6759 >  if test x$sprng_include = x ; then
6760 >    sprng_include=${sprng_prefix}/include
6761    fi
6762  
6763 <  echo "$as_me:5040: checking for SPRNG include files in $sprng_include_prefix" >&5
6764 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6765 <  if test -f ${sprng_include_prefix}/sprng.h; then
6763 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6764 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6765 >  if test -f ${sprng_include}/sprng.h; then
6766      have_sprngincl=yes
6767 <    echo "$as_me:5044: result: yes" >&5
6767 >    echo "$as_me:$LINENO: result: yes" >&5
6768   echo "${ECHO_T}yes" >&6
6769    else
6770      have_sprngincl=no
6771 <    echo "$as_me:5048: result: no" >&5
6771 >    echo "$as_me:$LINENO: result: no" >&5
6772   echo "${ECHO_T}no" >&6
6773 <    { { echo "$as_me:5050: error: Could not locate the SPRNG include files" >&5
6773 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6774   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6775     { (exit 1); exit 1; }; }
6776    fi
6777  
6778 <  echo "$as_me:5055: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6779 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6780 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6778 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6779 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6780 >  if test -f ${sprng_libdir}/libsprng.a; then
6781      have_sprnglib=yes
6782 <    echo "$as_me:5059: result: yes" >&5
6782 >    echo "$as_me:$LINENO: result: yes" >&5
6783   echo "${ECHO_T}yes" >&6
6784    else
6785      have_sprnglib=no
6786 <    echo "$as_me:5063: result: no" >&5
6786 >    echo "$as_me:$LINENO: result: no" >&5
6787   echo "${ECHO_T}no" >&6
6788 <    { { echo "$as_me:5065: error: Could not locate the SPRNG libraries" >&5
6788 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6789   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6790     { (exit 1); exit 1; }; }
6791    fi
6792  
6793 +
6794 +
6795    ac_ext=c
6796   ac_cpp='$CPP $CPPFLAGS'
6797   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5074 | Line 6799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6800  
6801    ac_save_CPPFLAGS=$CPPFLAGS
6802 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6802 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6803    ac_save_LDFLAGS=$LDFLAGS
6804 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6805 <  echo "$as_me:5080: checking for sprng.h" >&5
6804 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6805 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6806 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6807   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6808   if test "${ac_cv_header_sprng_h+set}" = set; then
6809    echo $ECHO_N "(cached) $ECHO_C" >&6
6810 + fi
6811 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6812 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6813   else
6814 <  cat >conftest.$ac_ext <<_ACEOF
6815 < #line 5086 "configure"
6816 < #include "confdefs.h"
6814 >  # Is the header compilable?
6815 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6816 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6817 > cat >conftest.$ac_ext <<_ACEOF
6818 > /* confdefs.h.  */
6819 > _ACEOF
6820 > cat confdefs.h >>conftest.$ac_ext
6821 > cat >>conftest.$ac_ext <<_ACEOF
6822 > /* end confdefs.h.  */
6823 > $ac_includes_default
6824   #include <sprng.h>
6825   _ACEOF
6826 < if { (eval echo "$as_me:5090: \"$ac_cpp conftest.$ac_ext\"") >&5
6826 > rm -f conftest.$ac_objext
6827 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 >  (eval $ac_compile) 2>conftest.er1
6829 >  ac_status=$?
6830 >  grep -v '^ *+' conftest.er1 >conftest.err
6831 >  rm -f conftest.er1
6832 >  cat conftest.err >&5
6833 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 >  (exit $ac_status); } &&
6835 >         { ac_try='test -z "$ac_c_werror_flag"
6836 >                         || test ! -s conftest.err'
6837 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 >  (eval $ac_try) 2>&5
6839 >  ac_status=$?
6840 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 >  (exit $ac_status); }; } &&
6842 >         { ac_try='test -s conftest.$ac_objext'
6843 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 >  (eval $ac_try) 2>&5
6845 >  ac_status=$?
6846 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 >  (exit $ac_status); }; }; then
6848 >  ac_header_compiler=yes
6849 > else
6850 >  echo "$as_me: failed program was:" >&5
6851 > sed 's/^/| /' conftest.$ac_ext >&5
6852 >
6853 > ac_header_compiler=no
6854 > fi
6855 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6856 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6857 > echo "${ECHO_T}$ac_header_compiler" >&6
6858 >
6859 > # Is the header present?
6860 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6861 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6862 > cat >conftest.$ac_ext <<_ACEOF
6863 > /* confdefs.h.  */
6864 > _ACEOF
6865 > cat confdefs.h >>conftest.$ac_ext
6866 > cat >>conftest.$ac_ext <<_ACEOF
6867 > /* end confdefs.h.  */
6868 > #include <sprng.h>
6869 > _ACEOF
6870 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6871    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6872    ac_status=$?
6873 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6873 >  grep -v '^ *+' conftest.er1 >conftest.err
6874    rm -f conftest.er1
6875    cat conftest.err >&5
6876 <  echo "$as_me:5096: \$? = $ac_status" >&5
6876 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877    (exit $ac_status); } >/dev/null; then
6878    if test -s conftest.err; then
6879      ac_cpp_err=$ac_c_preproc_warn_flag
6880 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6881    else
6882      ac_cpp_err=
6883    fi
# Line 5104 | Line 6885 | if test -z "$ac_cpp_err"; then
6885    ac_cpp_err=yes
6886   fi
6887   if test -z "$ac_cpp_err"; then
6888 <  ac_cv_header_sprng_h=yes
6888 >  ac_header_preproc=yes
6889   else
6890    echo "$as_me: failed program was:" >&5
6891 <  cat conftest.$ac_ext >&5
6892 <  ac_cv_header_sprng_h=no
6891 > sed 's/^/| /' conftest.$ac_ext >&5
6892 >
6893 >  ac_header_preproc=no
6894   fi
6895   rm -f conftest.err conftest.$ac_ext
6896 < fi
6897 < echo "$as_me:5115: result: $ac_cv_header_sprng_h" >&5
6896 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6897 > echo "${ECHO_T}$ac_header_preproc" >&6
6898 >
6899 > # So?  What about this header?
6900 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6901 >  yes:no: )
6902 >    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6903 > echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6904 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6905 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6906 >    ac_header_preproc=yes
6907 >    ;;
6908 >  no:yes:* )
6909 >    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6910 > echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6911 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6912 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6913 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6914 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6915 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6916 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6917 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6918 > echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6919 >    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6920 > echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6921 >    (
6922 >      cat <<\_ASBOX
6923 > ## ------------------------------ ##
6924 > ## Report this to gezelter@nd.edu ##
6925 > ## ------------------------------ ##
6926 > _ASBOX
6927 >    ) |
6928 >      sed "s/^/$as_me: WARNING:     /" >&2
6929 >    ;;
6930 > esac
6931 > echo "$as_me:$LINENO: checking for sprng.h" >&5
6932 > echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6933 > if test "${ac_cv_header_sprng_h+set}" = set; then
6934 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6935 > else
6936 >  ac_cv_header_sprng_h=$ac_header_preproc
6937 > fi
6938 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6939   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6940 +
6941 + fi
6942   if test $ac_cv_header_sprng_h = yes; then
6943  
6944 <    echo "$as_me:5119: checking for init_rng in -lsprng" >&5
6944 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6945   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6946   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6947    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5124 | Line 6949 | cat >conftest.$ac_ext <<_ACEOF
6949    ac_check_lib_save_LIBS=$LIBS
6950   LIBS="-lsprng  $LIBS"
6951   cat >conftest.$ac_ext <<_ACEOF
6952 < #line 5127 "configure"
6953 < #include "confdefs.h"
6952 > /* confdefs.h.  */
6953 > _ACEOF
6954 > cat confdefs.h >>conftest.$ac_ext
6955 > cat >>conftest.$ac_ext <<_ACEOF
6956 > /* end confdefs.h.  */
6957  
6958   /* Override any gcc2 internal prototype to avoid an error.  */
6959   #ifdef __cplusplus
# Line 5143 | Line 6971 | rm -f conftest.$ac_objext conftest$ac_exeext
6971   }
6972   _ACEOF
6973   rm -f conftest.$ac_objext conftest$ac_exeext
6974 < if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6975 <  (eval $ac_link) 2>&5
6974 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975 >  (eval $ac_link) 2>conftest.er1
6976    ac_status=$?
6977 <  echo "$as_me:5149: \$? = $ac_status" >&5
6977 >  grep -v '^ *+' conftest.er1 >conftest.err
6978 >  rm -f conftest.er1
6979 >  cat conftest.err >&5
6980 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981    (exit $ac_status); } &&
6982 <         { ac_try='test -s conftest$ac_exeext'
6983 <  { (eval echo "$as_me:5152: \"$ac_try\"") >&5
6982 >         { ac_try='test -z "$ac_c_werror_flag"
6983 >                         || test ! -s conftest.err'
6984 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985    (eval $ac_try) 2>&5
6986    ac_status=$?
6987 <  echo "$as_me:5155: \$? = $ac_status" >&5
6987 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 >  (exit $ac_status); }; } &&
6989 >         { ac_try='test -s conftest$ac_exeext'
6990 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 >  (eval $ac_try) 2>&5
6992 >  ac_status=$?
6993 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994    (exit $ac_status); }; }; then
6995    ac_cv_lib_sprng_init_rng=yes
6996   else
6997    echo "$as_me: failed program was:" >&5
6998 < cat conftest.$ac_ext >&5
6998 > sed 's/^/| /' conftest.$ac_ext >&5
6999 >
7000   ac_cv_lib_sprng_init_rng=no
7001   fi
7002 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7002 > rm -f conftest.err conftest.$ac_objext \
7003 >      conftest$ac_exeext conftest.$ac_ext
7004   LIBS=$ac_check_lib_save_LIBS
7005   fi
7006 < echo "$as_me:5166: result: $ac_cv_lib_sprng_init_rng" >&5
7006 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
7007   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
7008   if test $ac_cv_lib_sprng_init_rng = yes; then
7009 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
7010 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
7009 >  SPRNG_LIBDIR="${sprng_libdir}"
7010 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
7011                       HAVE_SPRNG="yes"
7012   fi
7013  
7014   fi
7015  
7016 +
7017    CPPFLAGS=$ac_save_CPPFLAGS
7018    LDFLAGS=$ac_save_LDFLAGS
7019 <  ac_ext=f90
7020 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7021 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7019 >  ac_ext=c
7020 > ac_cpp='$CPP $CPPFLAGS'
7021 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024  
7025 +
7026    if test x_$HAVE_SPRNG != x_yes; then
7027 <        { { echo "$as_me:5184: error: Can't build with SPRNG" >&5
7027 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
7028   echo "$as_me: error: Can't build with SPRNG" >&2;}
7029     { (exit 1); exit 1; }; }
7030    fi
7031  
7032 < echo "$as_me:5189: checking if MKL is wanted" >&5
7032 >
7033 >
7034 >
7035 >
7036 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7037   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
7038  
7039   # Check whether --with-mkl or --without-mkl was given.
7040   if test "${with_mkl+set}" = set; then
7041    withval="$with_mkl"
7042 <     echo "$as_me:5195: result: yes" >&5
7042 >     echo "$as_me:$LINENO: result: yes" >&5
7043   echo "${ECHO_T}yes" >&6
7044 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7044 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7045          mkldir="$dir"
7046          if test -f "$dir/include/mkl.h"; then
7047              found_mkl="yes";
# Line 5202 | Line 7049 | echo "${ECHO_T}yes" >&6
7049          fi
7050      done
7051      if test x_$found_mkl != x_yes; then
7052 <        { { echo "$as_me:5205: error: Cannot find MKL includes" >&5
7052 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
7053   echo "$as_me: error: Cannot find MKL includes" >&2;}
7054     { (exit 1); exit 1; }; }
7055      else
7056          printf "MKL includes found in $mkldir/include\n";
7057      fi
7058  
7059 +
7060 +
7061    ac_ext=c
7062   ac_cpp='$CPP $CPPFLAGS'
7063   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5219 | Line 7068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7068    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
7069    ac_save_LDFLAGS=$LDFLAGS
7070    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
7071 <  echo "$as_me:5222: checking for mkl.h" >&5
7071 >  if test "${ac_cv_header_mkl_h+set}" = set; then
7072 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
7073   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7074   if test "${ac_cv_header_mkl_h+set}" = set; then
7075    echo $ECHO_N "(cached) $ECHO_C" >&6
7076 + fi
7077 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7078 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7079   else
7080 <  cat >conftest.$ac_ext <<_ACEOF
7081 < #line 5228 "configure"
7082 < #include "confdefs.h"
7080 >  # Is the header compilable?
7081 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
7082 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7083 > cat >conftest.$ac_ext <<_ACEOF
7084 > /* confdefs.h.  */
7085 > _ACEOF
7086 > cat confdefs.h >>conftest.$ac_ext
7087 > cat >>conftest.$ac_ext <<_ACEOF
7088 > /* end confdefs.h.  */
7089 > $ac_includes_default
7090   #include <mkl.h>
7091   _ACEOF
7092 < if { (eval echo "$as_me:5232: \"$ac_cpp conftest.$ac_ext\"") >&5
7092 > rm -f conftest.$ac_objext
7093 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 >  (eval $ac_compile) 2>conftest.er1
7095 >  ac_status=$?
7096 >  grep -v '^ *+' conftest.er1 >conftest.err
7097 >  rm -f conftest.er1
7098 >  cat conftest.err >&5
7099 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 >  (exit $ac_status); } &&
7101 >         { ac_try='test -z "$ac_c_werror_flag"
7102 >                         || test ! -s conftest.err'
7103 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 >  (eval $ac_try) 2>&5
7105 >  ac_status=$?
7106 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 >  (exit $ac_status); }; } &&
7108 >         { ac_try='test -s conftest.$ac_objext'
7109 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 >  (eval $ac_try) 2>&5
7111 >  ac_status=$?
7112 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 >  (exit $ac_status); }; }; then
7114 >  ac_header_compiler=yes
7115 > else
7116 >  echo "$as_me: failed program was:" >&5
7117 > sed 's/^/| /' conftest.$ac_ext >&5
7118 >
7119 > ac_header_compiler=no
7120 > fi
7121 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7122 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7123 > echo "${ECHO_T}$ac_header_compiler" >&6
7124 >
7125 > # Is the header present?
7126 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
7127 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7128 > cat >conftest.$ac_ext <<_ACEOF
7129 > /* confdefs.h.  */
7130 > _ACEOF
7131 > cat confdefs.h >>conftest.$ac_ext
7132 > cat >>conftest.$ac_ext <<_ACEOF
7133 > /* end confdefs.h.  */
7134 > #include <mkl.h>
7135 > _ACEOF
7136 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7137    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7138    ac_status=$?
7139 <  egrep -v '^ *\+' conftest.er1 >conftest.err
7139 >  grep -v '^ *+' conftest.er1 >conftest.err
7140    rm -f conftest.er1
7141    cat conftest.err >&5
7142 <  echo "$as_me:5238: \$? = $ac_status" >&5
7142 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143    (exit $ac_status); } >/dev/null; then
7144    if test -s conftest.err; then
7145      ac_cpp_err=$ac_c_preproc_warn_flag
7146 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7147    else
7148      ac_cpp_err=
7149    fi
7150 + else
7151 +  ac_cpp_err=yes
7152 + fi
7153 + if test -z "$ac_cpp_err"; then
7154 +  ac_header_preproc=yes
7155 + else
7156 +  echo "$as_me: failed program was:" >&5
7157 + sed 's/^/| /' conftest.$ac_ext >&5
7158 +
7159 +  ac_header_preproc=no
7160 + fi
7161 + rm -f conftest.err conftest.$ac_ext
7162 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7163 + echo "${ECHO_T}$ac_header_preproc" >&6
7164 +
7165 + # So?  What about this header?
7166 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7167 +  yes:no: )
7168 +    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7169 + echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7170 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7171 + echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7172 +    ac_header_preproc=yes
7173 +    ;;
7174 +  no:yes:* )
7175 +    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7176 + echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7177 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7178 + echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7179 +    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7180 + echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7181 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7182 + echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7183 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7184 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7185 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7186 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7187 +    (
7188 +      cat <<\_ASBOX
7189 + ## ------------------------------ ##
7190 + ## Report this to gezelter@nd.edu ##
7191 + ## ------------------------------ ##
7192 + _ASBOX
7193 +    ) |
7194 +      sed "s/^/$as_me: WARNING:     /" >&2
7195 +    ;;
7196 + esac
7197 + echo "$as_me:$LINENO: checking for mkl.h" >&5
7198 + echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7199 + if test "${ac_cv_header_mkl_h+set}" = set; then
7200 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7201   else
7202 <  ac_cpp_err=yes
7202 >  ac_cv_header_mkl_h=$ac_header_preproc
7203   fi
7204 < if test -z "$ac_cpp_err"; then
5249 <  ac_cv_header_mkl_h=yes
5250 < else
5251 <  echo "$as_me: failed program was:" >&5
5252 <  cat conftest.$ac_ext >&5
5253 <  ac_cv_header_mkl_h=no
5254 < fi
5255 < rm -f conftest.err conftest.$ac_ext
5256 < fi
5257 < echo "$as_me:5257: result: $ac_cv_header_mkl_h" >&5
7204 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7205   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7206 +
7207 + fi
7208   if test $ac_cv_header_mkl_h = yes; then
7209  
7210 <    echo "$as_me:5261: checking for vslNewStream in -lmkl" >&5
7210 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
7211   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
7212   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
7213    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5266 | Line 7215 | cat >conftest.$ac_ext <<_ACEOF
7215    ac_check_lib_save_LIBS=$LIBS
7216   LIBS="-lmkl  $LIBS"
7217   cat >conftest.$ac_ext <<_ACEOF
7218 < #line 5269 "configure"
7219 < #include "confdefs.h"
7218 > /* confdefs.h.  */
7219 > _ACEOF
7220 > cat confdefs.h >>conftest.$ac_ext
7221 > cat >>conftest.$ac_ext <<_ACEOF
7222 > /* end confdefs.h.  */
7223  
7224   /* Override any gcc2 internal prototype to avoid an error.  */
7225   #ifdef __cplusplus
# Line 5285 | Line 7237 | rm -f conftest.$ac_objext conftest$ac_exeext
7237   }
7238   _ACEOF
7239   rm -f conftest.$ac_objext conftest$ac_exeext
7240 < if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
7241 <  (eval $ac_link) 2>&5
7240 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7241 >  (eval $ac_link) 2>conftest.er1
7242    ac_status=$?
7243 <  echo "$as_me:5291: \$? = $ac_status" >&5
7243 >  grep -v '^ *+' conftest.er1 >conftest.err
7244 >  rm -f conftest.er1
7245 >  cat conftest.err >&5
7246 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247    (exit $ac_status); } &&
7248 <         { ac_try='test -s conftest$ac_exeext'
7249 <  { (eval echo "$as_me:5294: \"$ac_try\"") >&5
7248 >         { ac_try='test -z "$ac_c_werror_flag"
7249 >                         || test ! -s conftest.err'
7250 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251    (eval $ac_try) 2>&5
7252    ac_status=$?
7253 <  echo "$as_me:5297: \$? = $ac_status" >&5
7253 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 >  (exit $ac_status); }; } &&
7255 >         { ac_try='test -s conftest$ac_exeext'
7256 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 >  (eval $ac_try) 2>&5
7258 >  ac_status=$?
7259 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260    (exit $ac_status); }; }; then
7261    ac_cv_lib_mkl_vslNewStream=yes
7262   else
7263    echo "$as_me: failed program was:" >&5
7264 < cat conftest.$ac_ext >&5
7264 > sed 's/^/| /' conftest.$ac_ext >&5
7265 >
7266   ac_cv_lib_mkl_vslNewStream=no
7267   fi
7268 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7268 > rm -f conftest.err conftest.$ac_objext \
7269 >      conftest$ac_exeext conftest.$ac_ext
7270   LIBS=$ac_check_lib_save_LIBS
7271   fi
7272 < echo "$as_me:5308: result: $ac_cv_lib_mkl_vslNewStream" >&5
7272 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
7273   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
7274   if test $ac_cv_lib_mkl_vslNewStream = yes; then
7275    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5313 | Line 7277 | fi
7277                       HAVE_MKL="yes"
7278   fi
7279  
7280 +
7281   else
7282    MKL_INC="-I${mkldir}/include"
7283   fi
7284  
7285 +
7286    CPPFLAGS=$ac_save_CPPFLAGS
7287    LDFLAGS=$ac_save_LDFLAGS
7288 <  ac_ext=f90
7289 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7290 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7291 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7288 >  ac_ext=c
7289 > ac_cpp='$CPP $CPPFLAGS'
7290 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293  
7294 +
7295    if test x_$HAVE_MKL != x_yes; then
7296 <        { { echo "$as_me:5328: error: Can't build with MKL" >&5
7296 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
7297   echo "$as_me: error: Can't build with MKL" >&2;}
7298     { (exit 1); exit 1; }; }
7299    fi
7300  
7301 +
7302 +
7303 +
7304 +
7305   else
7306  
7307 <    echo "$as_me:5335: result: no" >&5
7307 >    echo "$as_me:$LINENO: result: no" >&5
7308   echo "${ECHO_T}no" >&6
7309  
7310   fi;
7311  
5340 #AC_CHECK_MPI_F90MOD
7312  
7313 +
7314 +
7315 +
7316   OBJEXT=".$OBJEXT"
7317  
7318   OOPSE=oopse
# Line 5362 | Line 7336 | MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7336  
7337   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7338  
7339 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
7339 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party"
7340  
7341 < #CFLAGS=${CFLAGS-""}
7342 < #CXXFLAGS=${CXXFLAGS-""}
7343 < #CPPFLAGS=${CPPFLAGS-""}
7344 < #FFLAGS=${FFLAGS-""}
7345 < #LDFLAGS=${LDFLAGS-""}
7346 < #OPTIMIZE=${OPTIMIZE-"-O"}
7347 < #DEBUG=${DEBUG-"-g"}
7341 > CFLAGS=${CFLAGS-""}
7342 > CXXFLAGS=${CXXFLAGS-""}
7343 > CPPFLAGS=${CPPFLAGS-""}
7344 > FFLAGS=${FFLAGS-""}
7345 > F90FLAGS=${F90FLAGS-""}
7346 > LDFLAGS=${LDFLAGS-""}
7347 > DEBUG=${DEBUG-"-g"}
7348  
7349   case $debug in
7350 <  true)
5377 <     CFLAGS="$DEBUG $CFLAGS"
5378 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7350 >  1)
7351       FFLAGS="$DEBUG $FFLAGS"
7352       F90FLAGS="$DEBUG $F90FLAGS"
7353       ;;
7354    *)
5383     CFLAGS="$OPTIMIZE $CFLAGS"
5384     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
5385     FFLAGS="$OPTIMIZE $FFLAGS"
5386     F90FLAGS="$OPTIMIZE $F90FLAGS"
7355       ;;
7356   esac
7357  
5390 ac_config_headers="$ac_config_headers libmdtools/config.h"
7358  
5392 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7359  
7360 +
7361 +
7362 +
7363 +
7364 +
7365 +
7366 +
7367 +
7368 +
7369 +
7370 +
7371 +
7372 +
7373 +
7374 +          ac_config_headers="$ac_config_headers libmdtools/config.h"
7375 +
7376 +                                                                                                                                                                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"
7377 +
7378 +
7379   cat >confcache <<\_ACEOF
7380   # This file is a shell script that caches the results of configure
7381   # tests run on this system so they can be shared between configure
# Line 5401 | Line 7386 | cat >confcache <<\_ACEOF
7386   # config.status only pays attention to the cache file if you give it
7387   # the --recheck option to rerun configure.
7388   #
7389 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7389 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7390   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7391   # following values.
7392  
# Line 5419 | Line 7404 | _ACEOF
7404        # `set' does not quote correctly, so add quotes (double-quote
7405        # substitution turns \\\\ into \\, and sed turns \\ into \).
7406        sed -n \
7407 <        "s/'/'\\\\''/g;
7408 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7407 >        "s/'/'\\\\''/g;
7408 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7409        ;;
7410      *)
7411        # `set' quotes correctly as required by POSIX, so do not add quotes.
7412        sed -n \
7413 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7413 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7414        ;;
7415      esac;
7416   } |
# Line 5436 | Line 7421 | _ACEOF
7421       t end
7422       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7423       : end' >>confcache
7424 < if cmp -s $cache_file confcache; then :; else
7424 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7425    if test -w $cache_file; then
7426      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7427      cat confcache >$cache_file
# Line 5455 | Line 7440 | if test "x$srcdir" = x.; then
7440   # trailing colons and then remove the whole line if VPATH becomes empty
7441   # (actually we leave an empty line to preserve line numbers).
7442   if test "x$srcdir" = x.; then
7443 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7443 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7444   s/:*\$(srcdir):*/:/;
7445   s/:*\${srcdir}:*/:/;
7446   s/:*@srcdir@:*/:/;
7447 < s/^\([^=]*=[    ]*\):*/\1/;
7447 > s/^\([^=]*=[     ]*\):*/\1/;
7448   s/:*$//;
7449 < s/^[^=]*=[      ]*$//;
7449 > s/^[^=]*=[       ]*$//;
7450   }'
7451   fi
7452  
7453   DEFS=-DHAVE_CONFIG_H
7454  
7455 + ac_libobjs=
7456 + ac_ltlibobjs=
7457 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7458 +  # 1. Remove the extension, and $U if already installed.
7459 +  ac_i=`echo "$ac_i" |
7460 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7461 +  # 2. Add them.
7462 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7463 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7464 + done
7465 + LIBOBJS=$ac_libobjs
7466 +
7467 + LTLIBOBJS=$ac_ltlibobjs
7468 +
7469 +
7470 +
7471   : ${CONFIG_STATUS=./config.status}
7472   ac_clean_files_save=$ac_clean_files
7473   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7474 < { echo "$as_me:5473: creating $CONFIG_STATUS" >&5
7474 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7475   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7476   cat >$CONFIG_STATUS <<_ACEOF
7477   #! $SHELL
7478 < # Generated automatically by configure.
7478 > # Generated by $as_me.
7479   # Run this file to recreate the current configuration.
7480   # Compiler output produced by configure, useful for debugging
7481   # configure, is in config.log if it exists.
7482  
7483   debug=false
7484 + ac_cs_recheck=false
7485 + ac_cs_silent=false
7486   SHELL=\${CONFIG_SHELL-$SHELL}
5484 ac_cs_invocation="\$0 \$@"
5485
7487   _ACEOF
7488  
7489   cat >>$CONFIG_STATUS <<\_ACEOF
7490 + ## --------------------- ##
7491 + ## M4sh Initialization.  ##
7492 + ## --------------------- ##
7493 +
7494   # Be Bourne compatible
7495   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7496    emulate sh
7497    NULLCMD=:
7498 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7499 +  # is contrary to our usage.  Disable this feature.
7500 +  alias -g '${1+"$@"}'='"$@"'
7501   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7502    set -o posix
7503   fi
7504 + DUALCASE=1; export DUALCASE # for MKS sh
7505  
7506 + # Support unset when possible.
7507 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7508 +  as_unset=unset
7509 + else
7510 +  as_unset=false
7511 + fi
7512 +
7513 +
7514 + # Work around bugs in pre-3.0 UWIN ksh.
7515 + $as_unset ENV MAIL MAILPATH
7516 + PS1='$ '
7517 + PS2='> '
7518 + PS4='+ '
7519 +
7520 + # NLS nuisances.
7521 + for as_var in \
7522 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7523 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7524 +  LC_TELEPHONE LC_TIME
7525 + do
7526 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7527 +    eval $as_var=C; export $as_var
7528 +  else
7529 +    $as_unset $as_var
7530 +  fi
7531 + done
7532 +
7533 + # Required to use basename.
7534 + if expr a : '\(a\)' >/dev/null 2>&1; then
7535 +  as_expr=expr
7536 + else
7537 +  as_expr=false
7538 + fi
7539 +
7540 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7541 +  as_basename=basename
7542 + else
7543 +  as_basename=false
7544 + fi
7545 +
7546 +
7547   # Name of the executable.
7548 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7548 > as_me=`$as_basename "$0" ||
7549 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7550 >         X"$0" : 'X\(//\)$' \| \
7551 >         X"$0" : 'X\(/\)$' \| \
7552 >         .     : '\(.\)' 2>/dev/null ||
7553 > echo X/"$0" |
7554 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7555 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7556 >          /^X\/\(\/\).*/{ s//\1/; q; }
7557 >          s/.*/./; q'`
7558  
7559 +
7560 + # PATH needs CR, and LINENO needs CR and PATH.
7561 + # Avoid depending upon Character Ranges.
7562 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7563 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7564 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7565 + as_cr_digits='0123456789'
7566 + as_cr_alnum=$as_cr_Letters$as_cr_digits
7567 +
7568 + # The user is always right.
7569 + if test "${PATH_SEPARATOR+set}" != set; then
7570 +  echo "#! /bin/sh" >conf$$.sh
7571 +  echo  "exit 0"   >>conf$$.sh
7572 +  chmod +x conf$$.sh
7573 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7574 +    PATH_SEPARATOR=';'
7575 +  else
7576 +    PATH_SEPARATOR=:
7577 +  fi
7578 +  rm -f conf$$.sh
7579 + fi
7580 +
7581 +
7582 +  as_lineno_1=$LINENO
7583 +  as_lineno_2=$LINENO
7584 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7585 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7586 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7587 +  # Find who we are.  Look in the path if we contain no path at all
7588 +  # relative or not.
7589 +  case $0 in
7590 +    *[\\/]* ) as_myself=$0 ;;
7591 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 + for as_dir in $PATH
7593 + do
7594 +  IFS=$as_save_IFS
7595 +  test -z "$as_dir" && as_dir=.
7596 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7597 + done
7598 +
7599 +       ;;
7600 +  esac
7601 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7602 +  # in which case we are not to be found in the path.
7603 +  if test "x$as_myself" = x; then
7604 +    as_myself=$0
7605 +  fi
7606 +  if test ! -f "$as_myself"; then
7607 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7608 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7609 +   { (exit 1); exit 1; }; }
7610 +  fi
7611 +  case $CONFIG_SHELL in
7612 +  '')
7613 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7615 + do
7616 +  IFS=$as_save_IFS
7617 +  test -z "$as_dir" && as_dir=.
7618 +  for as_base in sh bash ksh sh5; do
7619 +         case $as_dir in
7620 +         /*)
7621 +           if ("$as_dir/$as_base" -c '
7622 +  as_lineno_1=$LINENO
7623 +  as_lineno_2=$LINENO
7624 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7625 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7626 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7627 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7628 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7629 +             CONFIG_SHELL=$as_dir/$as_base
7630 +             export CONFIG_SHELL
7631 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7632 +           fi;;
7633 +         esac
7634 +       done
7635 + done
7636 + ;;
7637 +  esac
7638 +
7639 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7640 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7641 +  # line-number line before each line; the second 'sed' does the real
7642 +  # work.  The second script uses 'N' to pair each line-number line
7643 +  # with the numbered line, and appends trailing '-' during
7644 +  # substitution so that $LINENO is not a special case at line end.
7645 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7646 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7647 +  sed '=' <$as_myself |
7648 +    sed '
7649 +      N
7650 +      s,$,-,
7651 +      : loop
7652 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7653 +      t loop
7654 +      s,-$,,
7655 +      s,^['$as_cr_digits']*\n,,
7656 +    ' >$as_me.lineno &&
7657 +  chmod +x $as_me.lineno ||
7658 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7659 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7660 +   { (exit 1); exit 1; }; }
7661 +
7662 +  # Don't try to exec as it changes $[0], causing all sort of problems
7663 +  # (the dirname of $[0] is not the place where we might find the
7664 +  # original and so on.  Autoconf is especially sensible to this).
7665 +  . ./$as_me.lineno
7666 +  # Exit status is that of the last command.
7667 +  exit
7668 + }
7669 +
7670 +
7671 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7672 +  *c*,-n*) ECHO_N= ECHO_C='
7673 + ' ECHO_T='      ' ;;
7674 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7675 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7676 + esac
7677 +
7678   if expr a : '\(a\)' >/dev/null 2>&1; then
7679    as_expr=expr
7680   else
# Line 5521 | Line 7699 | rm -f conf$$ conf$$.exe conf$$.file
7699   fi
7700   rm -f conf$$ conf$$.exe conf$$.file
7701  
7702 < as_executable_p="test -f"
7703 <
5526 < # Support unset when possible.
5527 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5528 <  as_unset=unset
7702 > if mkdir -p . 2>/dev/null; then
7703 >  as_mkdir_p=:
7704   else
7705 <  as_unset=false
7705 >  test -d ./-p && rmdir ./-p
7706 >  as_mkdir_p=false
7707   fi
7708  
7709 < # NLS nuisances.
5534 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5535 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5536 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5537 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5538 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5539 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5540 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5541 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7709 > as_executable_p="test -f"
7710  
7711 + # Sed expression to map a string onto a valid CPP name.
7712 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7713 +
7714 + # Sed expression to map a string onto a valid variable name.
7715 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7716 +
7717 +
7718   # IFS
7719   # We need space, tab and new line, in precisely that order.
7720   as_nl='
# Line 5547 | Line 7722 | IFS="  $as_nl"
7722   IFS="   $as_nl"
7723  
7724   # CDPATH.
7725 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7725 > $as_unset CDPATH
7726  
7727   exec 6>&1
7728  
7729 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7730 + # report actual input values of CONFIG_FILES etc. instead of their
7731 + # values after options handling.  Logging --version etc. is OK.
7732 + exec 5>>config.log
7733 + {
7734 +  echo
7735 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7736 + ## Running $as_me. ##
7737 + _ASBOX
7738 + } >&5
7739 + cat >&5 <<_CSEOF
7740 +
7741 + This file was extended by OOPSE $as_me 1.0, which was
7742 + generated by GNU Autoconf 2.59.  Invocation command line was
7743 +
7744 +  CONFIG_FILES    = $CONFIG_FILES
7745 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7746 +  CONFIG_LINKS    = $CONFIG_LINKS
7747 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7748 +  $ $0 $@
7749 +
7750 + _CSEOF
7751 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7752 + echo >&5
7753   _ACEOF
7754  
7755   # Files that config.status was made for.
# Line 5570 | Line 7769 | fi
7769    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7770   fi
7771  
7772 < cat >>$CONFIG_STATUS <<\EOF
7772 > cat >>$CONFIG_STATUS <<\_ACEOF
7773  
7774   ac_cs_usage="\
7775   \`$as_me' instantiates files from templates according to the
# Line 5580 | Line 7779 | Usage: $0 [OPTIONS] [FILE]...
7779  
7780    -h, --help       print this help, then exit
7781    -V, --version    print version number, then exit
7782 +  -q, --quiet      do not print progress messages
7783    -d, --debug      don't remove temporary files
7784        --recheck    update $as_me by reconfiguring in the same conditions
7785    --file=FILE[:TEMPLATE]
7786 <                   instantiate the configuration file FILE
7786 >                   instantiate the configuration file FILE
7787    --header=FILE[:TEMPLATE]
7788 <                   instantiate the configuration header FILE
7788 >                   instantiate the configuration header FILE
7789  
7790   Configuration files:
7791   $config_files
# Line 5594 | Line 7794 | Report bugs to <bug-autoconf@gnu.org>."
7794   $config_headers
7795  
7796   Report bugs to <bug-autoconf@gnu.org>."
7797 < EOF
7797 > _ACEOF
7798  
7799 < cat >>$CONFIG_STATUS <<EOF
7799 > cat >>$CONFIG_STATUS <<_ACEOF
7800   ac_cs_version="\\
7801   OOPSE config.status 1.0
7802 < configured by $0, generated by GNU Autoconf 2.50,
7802 > configured by $0, generated by GNU Autoconf 2.59,
7803    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7804  
7805 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5606 < Free Software Foundation, Inc.
7805 > Copyright (C) 2003 Free Software Foundation, Inc.
7806   This config.status script is free software; the Free Software Foundation
7807   gives unlimited permission to copy, distribute and modify it."
7808   srcdir=$srcdir
7809   INSTALL="$INSTALL"
7810 < EOF
7810 > _ACEOF
7811  
7812 < cat >>$CONFIG_STATUS <<\EOF
7812 > cat >>$CONFIG_STATUS <<\_ACEOF
7813   # If no file are specified by the user, then we need to provide default
7814   # value.  By we need to know if files were specified by the user.
7815   ac_need_defaults=:
# Line 5620 | Line 7819 | do
7819    --*=*)
7820      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7821      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7822 <    shift
5624 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5625 <    shift
7822 >    ac_shift=:
7823      ;;
7824 <  -*);;
7824 >  -*)
7825 >    ac_option=$1
7826 >    ac_optarg=$2
7827 >    ac_shift=shift
7828 >    ;;
7829    *) # This is not an option, so the user has probably given explicit
7830       # arguments.
7831 +     ac_option=$1
7832       ac_need_defaults=false;;
7833    esac
7834  
7835 <  case $1 in
7835 >  case $ac_option in
7836    # Handling of the options.
7837 < EOF
7838 < cat >>$CONFIG_STATUS <<EOF
7837 > _ACEOF
7838 > cat >>$CONFIG_STATUS <<\_ACEOF
7839    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7840 <    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5639 <    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5640 < EOF
5641 < cat >>$CONFIG_STATUS <<\EOF
7840 >    ac_cs_recheck=: ;;
7841    --version | --vers* | -V )
7842      echo "$ac_cs_version"; exit 0 ;;
7843    --he | --h)
7844      # Conflict between --help and --header
7845 <    { { echo "$as_me:5646: error: ambiguous option: $1
7845 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7846   Try \`$0 --help' for more information." >&5
7847   echo "$as_me: error: ambiguous option: $1
7848   Try \`$0 --help' for more information." >&2;}
# Line 5653 | Line 7852 | Try \`$0 --help' for more information." >&2;}
7852    --debug | --d* | -d )
7853      debug=: ;;
7854    --file | --fil | --fi | --f )
7855 <    shift
7856 <    CONFIG_FILES="$CONFIG_FILES $1"
7855 >    $ac_shift
7856 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7857      ac_need_defaults=false;;
7858    --header | --heade | --head | --hea )
7859 <    shift
7860 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7859 >    $ac_shift
7860 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7861      ac_need_defaults=false;;
7862 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7863 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7864 +    ac_cs_silent=: ;;
7865  
5664  # Handling of arguments.
5665  'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5666  'libBASS/Makefile' ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
5667  'libmdtools/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
5668  'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5669  'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
5670  'utils/sysbuilder/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
5671  'forceFields/Makefile' ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
5672  'samples/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
5673  'samples/alkane/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
5674  'samples/argon/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
5675  'samples/beadLipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
5676  'samples/lipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
5677  'samples/metals/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
5678  'samples/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
5679  'libmdtools/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
5680
7866    # This is an error.
7867 <  -*) { { echo "$as_me:5682: error: unrecognized option: $1
7867 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7868   Try \`$0 --help' for more information." >&5
7869   echo "$as_me: error: unrecognized option: $1
7870   Try \`$0 --help' for more information." >&2;}
7871     { (exit 1); exit 1; }; } ;;
7872 <  *) { { echo "$as_me:5687: error: invalid argument: $1" >&5
7873 < echo "$as_me: error: invalid argument: $1" >&2;}
7874 <   { (exit 1); exit 1; }; };;
7872 >
7873 >  *) ac_config_targets="$ac_config_targets $1" ;;
7874 >
7875    esac
7876    shift
7877   done
7878  
7879 < exec 5>>config.log
5695 < cat >&5 << _ACEOF
7879 > ac_configure_extra_args=
7880  
7881 < ## ----------------------- ##
7882 < ## Running config.status.  ##
7883 < ## ----------------------- ##
7884 <
5701 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
5702 <  > $ac_cs_invocation
5703 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7881 > if $ac_cs_silent; then
7882 >  exec 6>/dev/null
7883 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7884 > fi
7885  
7886   _ACEOF
7887 < EOF
7887 > cat >>$CONFIG_STATUS <<_ACEOF
7888 > if \$ac_cs_recheck; then
7889 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7890 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7891 > fi
7892  
7893 < cat >>$CONFIG_STATUS <<\EOF
7893 > _ACEOF
7894 >
7895 >
7896 >
7897 >
7898 >
7899 > cat >>$CONFIG_STATUS <<\_ACEOF
7900 > for ac_config_target in $ac_config_targets
7901 > do
7902 >  case "$ac_config_target" in
7903 >  # Handling of arguments.
7904 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7905 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7906 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7907 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7908 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7909 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7910 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7911 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7912 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7913 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7914 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7915 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7916 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7917 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7918 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7919 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7920 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7921 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7922 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7923 >   { (exit 1); exit 1; }; };;
7924 >  esac
7925 > done
7926 >
7927   # If the user did not use the arguments to specify the items to instantiate,
7928   # then the envvar interface is used.  Set only those that are not.
7929   # We use the long form for the default assignment because of an extremely
# Line 5715 | Line 7933 | fi
7933    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7934   fi
7935  
7936 + # Have a temporary directory for convenience.  Make it in the build tree
7937 + # simply because there is no reason to put it here, and in addition,
7938 + # creating and moving files from /tmp can sometimes cause problems.
7939   # Create a temporary directory, and hook for its removal unless debugging.
7940   $debug ||
7941   {
7942    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7943 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7943 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7944   }
7945  
7946   # Create a (secure) tmp directory for tmp files.
7947 < : ${TMPDIR=/tmp}
7947 >
7948   {
7949 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7949 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7950    test -n "$tmp" && test -d "$tmp"
7951   }  ||
7952   {
7953 <  tmp=$TMPDIR/cs$$-$RANDOM
7953 >  tmp=./confstat$$-$RANDOM
7954    (umask 077 && mkdir $tmp)
7955   } ||
7956   {
7957 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7957 >   echo "$me: cannot create a temporary directory in ." >&2
7958     { (exit 1); exit 1; }
7959   }
7960  
7961 < EOF
7961 > _ACEOF
7962  
7963 < cat >>$CONFIG_STATUS <<EOF
7963 > cat >>$CONFIG_STATUS <<_ACEOF
7964  
7965   #
7966   # CONFIG_FILES section.
# Line 5752 | Line 7973 | s,@SHELL@,$SHELL,;t t
7973    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7974     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7975   s,@SHELL@,$SHELL,;t t
7976 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7977 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7978 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7979 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7980 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7981 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7982   s,@exec_prefix@,$exec_prefix,;t t
7983   s,@prefix@,$prefix,;t t
7984   s,@program_transform_name@,$program_transform_name,;t t
# Line 5767 | Line 7994 | s,@mandir@,$mandir,;t t
7994   s,@oldincludedir@,$oldincludedir,;t t
7995   s,@infodir@,$infodir,;t t
7996   s,@mandir@,$mandir,;t t
7997 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7998 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7999 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8000 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5774 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7997 > s,@build_alias@,$build_alias,;t t
7998 > s,@host_alias@,$host_alias,;t t
7999 > s,@target_alias@,$target_alias,;t t
8000 > s,@DEFS@,$DEFS,;t t
8001   s,@ECHO_C@,$ECHO_C,;t t
8002   s,@ECHO_N@,$ECHO_N,;t t
8003   s,@ECHO_T@,$ECHO_T,;t t
5778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5779 s,@DEFS@,$DEFS,;t t
8004   s,@LIBS@,$LIBS,;t t
8005   s,@PROGNAME@,$PROGNAME,;t t
8006 < s,@DEBUG@,$DEBUG,;t t
8006 > s,@debug@,$debug,;t t
8007   s,@build@,$build,;t t
8008   s,@build_cpu@,$build_cpu,;t t
8009   s,@build_vendor@,$build_vendor,;t t
# Line 5798 | Line 8022 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8022   s,@CXX@,$CXX,;t t
8023   s,@CXXFLAGS@,$CXXFLAGS,;t t
8024   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8025 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8026 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8027   s,@F90@,$F90,;t t
8028   s,@F90FLAGS@,$F90FLAGS,;t t
8029   s,@ac_ct_F90@,$ac_ct_F90,;t t
8030   s,@PREPFLAG@,$PREPFLAG,;t t
8031   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8032 + s,@F90LIBS@,$F90LIBS,;t t
8033 + s,@F90_FUNC@,$F90_FUNC,;t t
8034 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8035 + s,@MOD@,$MOD,;t t
8036 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8037 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8038 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8039   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8040   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8041   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 5815 | Line 8048 | s,@AR@,$AR,;t t
8048   s,@LEXLIB@,$LEXLIB,;t t
8049   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8050   s,@AR@,$AR,;t t
8051 < s,@F90LIBS@,$F90LIBS,;t t
5819 < s,@F90_FUNC@,$F90_FUNC,;t t
5820 < s,@F90_FUNC_@,$F90_FUNC_,;t t
5821 < s,@mpi_dir@,$mpi_dir,;t t
8051 > s,@mpi@,$mpi,;t t
8052   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
8053   s,@MPI_INC@,$MPI_INC,;t t
8054 + s,@MPI_F90INC@,$MPI_F90INC,;t t
8055   s,@MPI_LIB@,$MPI_LIB,;t t
8056 < s,@MPIF77@,$MPIF77,;t t
5826 < s,@MPIF90@,$MPIF90,;t t
5827 < s,@MPILIBS@,$MPILIBS,;t t
8056 > s,@MPI_F90LIB@,$MPI_F90LIB,;t t
8057   s,@CPP@,$CPP,;t t
8058 + s,@EGREP@,$EGREP,;t t
8059   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
8060   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
8061   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 5840 | Line 8070 | s,@FFLAGS@,$FFLAGS,;t t
8070   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
8071   s,@SUBDIRS@,$SUBDIRS,;t t
8072   s,@FFLAGS@,$FFLAGS,;t t
8073 + s,@LIBOBJS@,$LIBOBJS,;t t
8074 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8075   CEOF
8076  
8077 < EOF
8077 > _ACEOF
8078  
8079 <  cat >>$CONFIG_STATUS <<\EOF
8079 >  cat >>$CONFIG_STATUS <<\_ACEOF
8080    # Split the substitutions into bite-sized pieces for seds with
8081    # small command number limits, like on Digital OSF/1 and HP-UX.
8082    ac_max_sed_lines=48
# Line 5869 | Line 8101 | EOF
8101        (echo ':t
8102    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8103        if test -z "$ac_sed_cmds"; then
8104 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8104 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8105        else
8106 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8106 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8107        fi
8108        ac_sed_frag=`expr $ac_sed_frag + 1`
8109        ac_beg=$ac_end
# Line 5883 | Line 8115 | fi # test -n "$CONFIG_FILES"
8115    fi
8116   fi # test -n "$CONFIG_FILES"
8117  
8118 < EOF
8119 < cat >>$CONFIG_STATUS <<\EOF
8118 > _ACEOF
8119 > cat >>$CONFIG_STATUS <<\_ACEOF
8120   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8121    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8122    case $ac_file in
8123    - | *:- | *:-:* ) # input from stdin
8124 <        cat >$tmp/stdin
8125 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8126 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8124 >        cat >$tmp/stdin
8125 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8126 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8127    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8128 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8128 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8129    * )   ac_file_in=$ac_file.in ;;
8130    esac
8131  
8132    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8133 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8134 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8135 <         X"$ac_file" : 'X\(//\)$' \| \
8136 <         X"$ac_file" : 'X\(/\)' \| \
8137 <         .     : '\(.\)' 2>/dev/null ||
8133 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8134 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8135 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8136 >         X"$ac_file" : 'X\(//\)$' \| \
8137 >         X"$ac_file" : 'X\(/\)' \| \
8138 >         .     : '\(.\)' 2>/dev/null ||
8139   echo X"$ac_file" |
8140      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8141            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8142            /^X\(\/\/\)$/{ s//\1/; q; }
8143            /^X\(\/\).*/{ s//\1/; q; }
8144            s/.*/./; q'`
8145 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8146 <    { case "$ac_dir" in
5914 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5915 <  *)                      as_incr_dir=.;;
5916 < esac
5917 < as_dummy="$ac_dir"
5918 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5919 <  case $as_mkdir_dir in
5920 <    # Skip DOS drivespec
5921 <    ?:) as_incr_dir=$as_mkdir_dir ;;
5922 <    *)
5923 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
5924 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5925 <    ;;
5926 <  esac
5927 < done; }
5928 <
5929 <    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5930 <    # A "../" for each directory in $ac_dir_suffix.
5931 <    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8145 >  { if $as_mkdir_p; then
8146 >    mkdir -p "$ac_dir"
8147    else
8148 <    ac_dir_suffix= ac_dots=
8149 <  fi
8148 >    as_dir="$ac_dir"
8149 >    as_dirs=
8150 >    while test ! -d "$as_dir"; do
8151 >      as_dirs="$as_dir $as_dirs"
8152 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8153 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8154 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8155 >         X"$as_dir" : 'X\(//\)$' \| \
8156 >         X"$as_dir" : 'X\(/\)' \| \
8157 >         .     : '\(.\)' 2>/dev/null ||
8158 > echo X"$as_dir" |
8159 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8160 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8161 >          /^X\(\/\/\)$/{ s//\1/; q; }
8162 >          /^X\(\/\).*/{ s//\1/; q; }
8163 >          s/.*/./; q'`
8164 >    done
8165 >    test ! -n "$as_dirs" || mkdir $as_dirs
8166 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8167 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8168 >   { (exit 1); exit 1; }; }; }
8169  
8170 <  case $srcdir in
8171 <  .)  ac_srcdir=.
8172 <      if test -z "$ac_dots"; then
8173 <         ac_top_srcdir=.
8174 <      else
8175 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8176 <      fi ;;
8177 <  [\\/]* | ?:[\\/]* )
8178 <      ac_srcdir=$srcdir$ac_dir_suffix;
8179 <      ac_top_srcdir=$srcdir ;;
8170 >  ac_builddir=.
8171 >
8172 > if test "$ac_dir" != .; then
8173 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8174 >  # A "../" for each directory in $ac_dir_suffix.
8175 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8176 > else
8177 >  ac_dir_suffix= ac_top_builddir=
8178 > fi
8179 >
8180 > case $srcdir in
8181 >  .)  # No --srcdir option.  We are building in place.
8182 >    ac_srcdir=.
8183 >    if test -z "$ac_top_builddir"; then
8184 >       ac_top_srcdir=.
8185 >    else
8186 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8187 >    fi ;;
8188 >  [\\/]* | ?:[\\/]* )  # Absolute path.
8189 >    ac_srcdir=$srcdir$ac_dir_suffix;
8190 >    ac_top_srcdir=$srcdir ;;
8191    *) # Relative path.
8192 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8193 <    ac_top_srcdir=$ac_dots$srcdir ;;
8194 <  esac
8192 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8193 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8194 > esac
8195  
8196 + # Do not use `cd foo && pwd` to compute absolute paths, because
8197 + # the directories may not exist.
8198 + case `pwd` in
8199 + .) ac_abs_builddir="$ac_dir";;
8200 + *)
8201 +  case "$ac_dir" in
8202 +  .) ac_abs_builddir=`pwd`;;
8203 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8204 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8205 +  esac;;
8206 + esac
8207 + case $ac_abs_builddir in
8208 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
8209 + *)
8210 +  case ${ac_top_builddir}. in
8211 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
8212 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8213 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8214 +  esac;;
8215 + esac
8216 + case $ac_abs_builddir in
8217 + .) ac_abs_srcdir=$ac_srcdir;;
8218 + *)
8219 +  case $ac_srcdir in
8220 +  .) ac_abs_srcdir=$ac_abs_builddir;;
8221 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8222 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8223 +  esac;;
8224 + esac
8225 + case $ac_abs_builddir in
8226 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
8227 + *)
8228 +  case $ac_top_srcdir in
8229 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8230 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8231 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8232 +  esac;;
8233 + esac
8234 +
8235 +
8236    case $INSTALL in
8237    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8238 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
8238 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8239    esac
8240  
8241    if test x"$ac_file" != x-; then
8242 <    { echo "$as_me:5957: creating $ac_file" >&5
8242 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
8243   echo "$as_me: creating $ac_file" >&6;}
8244      rm -f "$ac_file"
8245    fi
8246    # Let's still pretend it is `configure' which instantiates (i.e., don't
8247    # use $as_me), people would be surprised to read:
8248 <  #    /* config.h.  Generated automatically by config.status.  */
8249 <  configure_input="Generated automatically from `echo $ac_file_in |
8250 <                                                 sed 's,.*/,,'` by configure."
8248 >  #    /* config.h.  Generated by config.status.  */
8249 >  if test x"$ac_file" = x-; then
8250 >    configure_input=
8251 >  else
8252 >    configure_input="$ac_file.  "
8253 >  fi
8254 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
8255 >                                     sed 's,.*/,,'` by configure."
8256  
8257    # First look for the input files in the build tree, otherwise in the
8258    # src tree.
# Line 5971 | Line 8261 | echo "$as_me: creating $ac_file" >&6;}
8261        case $f in
8262        -) echo $tmp/stdin ;;
8263        [\\/$]*)
8264 <         # Absolute (can't be DOS-style, as IFS=:)
8265 <         test -f "$f" || { { echo "$as_me:5975: error: cannot find input file: $f" >&5
8264 >         # Absolute (can't be DOS-style, as IFS=:)
8265 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8266   echo "$as_me: error: cannot find input file: $f" >&2;}
8267     { (exit 1); exit 1; }; }
8268 <         echo $f;;
8268 >         echo "$f";;
8269        *) # Relative
8270 <         if test -f "$f"; then
8271 <           # Build tree
8272 <           echo $f
8273 <         elif test -f "$srcdir/$f"; then
8274 <           # Source tree
8275 <           echo $srcdir/$f
8276 <         else
8277 <           # /dev/null tree
8278 <           { { echo "$as_me:5988: error: cannot find input file: $f" >&5
8270 >         if test -f "$f"; then
8271 >           # Build tree
8272 >           echo "$f"
8273 >         elif test -f "$srcdir/$f"; then
8274 >           # Source tree
8275 >           echo "$srcdir/$f"
8276 >         else
8277 >           # /dev/null tree
8278 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8279   echo "$as_me: error: cannot find input file: $f" >&2;}
8280     { (exit 1); exit 1; }; }
8281 <         fi;;
8281 >         fi;;
8282        esac
8283      done` || { (exit 1); exit 1; }
8284 < EOF
8285 < cat >>$CONFIG_STATUS <<EOF
8284 > _ACEOF
8285 > cat >>$CONFIG_STATUS <<_ACEOF
8286    sed "$ac_vpsub
8287   $extrasub
8288 < EOF
8289 < cat >>$CONFIG_STATUS <<\EOF
8288 > _ACEOF
8289 > cat >>$CONFIG_STATUS <<\_ACEOF
8290   :t
8291   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8292   s,@configure_input@,$configure_input,;t t
8293   s,@srcdir@,$ac_srcdir,;t t
8294 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
8295   s,@top_srcdir@,$ac_top_srcdir,;t t
8296 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8297 + s,@builddir@,$ac_builddir,;t t
8298 + s,@abs_builddir@,$ac_abs_builddir,;t t
8299 + s,@top_builddir@,$ac_top_builddir,;t t
8300 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8301   s,@INSTALL@,$ac_INSTALL,;t t
8302   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8303    rm -f $tmp/stdin
# Line 6013 | Line 8309 | done
8309    fi
8310  
8311   done
8312 < EOF
8313 < cat >>$CONFIG_STATUS <<\EOF
8312 > _ACEOF
8313 > cat >>$CONFIG_STATUS <<\_ACEOF
8314  
8315   #
8316   # CONFIG_HEADER section.
# Line 6024 | Line 8320 | cat >>$CONFIG_STATUS <<\EOF
8320   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8321   #
8322   # ac_d sets the value in "#define NAME VALUE" lines.
8323 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8324 < ac_dB='[        ].*$,\1#\2'
8323 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8324 > ac_dB='[         ].*$,\1#\2'
8325   ac_dC=' '
8326   ac_dD=',;t'
8327   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8328 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8328 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8329   ac_uB='$,\1#\2define\3'
8330   ac_uC=' '
8331   ac_uD=',;t'
# Line 6038 | Line 8334 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8334    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8335    case $ac_file in
8336    - | *:- | *:-:* ) # input from stdin
8337 <        cat >$tmp/stdin
8338 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8339 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8337 >        cat >$tmp/stdin
8338 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8339 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8340    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8341 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8341 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8342    * )   ac_file_in=$ac_file.in ;;
8343    esac
8344  
8345 <  test x"$ac_file" != x- && { echo "$as_me:6049: creating $ac_file" >&5
8345 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8346   echo "$as_me: creating $ac_file" >&6;}
8347  
8348    # First look for the input files in the build tree, otherwise in the
# Line 6056 | Line 8352 | echo "$as_me: creating $ac_file" >&6;}
8352        case $f in
8353        -) echo $tmp/stdin ;;
8354        [\\/$]*)
8355 <         # Absolute (can't be DOS-style, as IFS=:)
8356 <         test -f "$f" || { { echo "$as_me:6060: error: cannot find input file: $f" >&5
8355 >         # Absolute (can't be DOS-style, as IFS=:)
8356 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8357   echo "$as_me: error: cannot find input file: $f" >&2;}
8358     { (exit 1); exit 1; }; }
8359 <         echo $f;;
8359 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8360 >         echo "$f";;
8361        *) # Relative
8362 <         if test -f "$f"; then
8363 <           # Build tree
8364 <           echo $f
8365 <         elif test -f "$srcdir/$f"; then
8366 <           # Source tree
8367 <           echo $srcdir/$f
8368 <         else
8369 <           # /dev/null tree
8370 <           { { echo "$as_me:6073: error: cannot find input file: $f" >&5
8362 >         if test -f "$f"; then
8363 >           # Build tree
8364 >           echo "$f"
8365 >         elif test -f "$srcdir/$f"; then
8366 >           # Source tree
8367 >           echo "$srcdir/$f"
8368 >         else
8369 >           # /dev/null tree
8370 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8371   echo "$as_me: error: cannot find input file: $f" >&2;}
8372     { (exit 1); exit 1; }; }
8373 <         fi;;
8373 >         fi;;
8374        esac
8375      done` || { (exit 1); exit 1; }
8376    # Remove the trailing spaces.
8377 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8377 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8378  
8379 < EOF
8379 > _ACEOF
8380  
8381   # Transform confdefs.h into two sed scripts, `conftest.defines' and
8382   # `conftest.undefs', that substitutes the proper values into
# Line 6095 | Line 8392 | rm -f conftest.defines conftest.undefs
8392   # `end' is used to avoid that the second main sed command (meant for
8393   # 0-ary CPP macros) applies to n-ary macro definitions.
8394   # See the Autoconf documentation for `clear'.
8395 < cat >confdef2sed.sed <<\EOF
8395 > cat >confdef2sed.sed <<\_ACEOF
8396   s/[\\&,]/\\&/g
8397   s,[\\$`],\\&,g
8398   t clear
8399   : clear
8400 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8400 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8401   t end
8402 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8402 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8403   : end
8404 < EOF
8404 > _ACEOF
8405   # If some macros were called several times there might be several times
8406   # the same #defines, which is useless.  Nevertheless, we may not want to
8407   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6115 | Line 8412 | rm -f confdef2sed.sed
8412   # This sed command replaces #undef with comments.  This is necessary, for
8413   # example, in the case of _POSIX_SOURCE, which is predefined and required
8414   # on some systems where configure will not decide to define it.
8415 < cat >>conftest.undefs <<\EOF
8416 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8417 < EOF
8415 > cat >>conftest.undefs <<\_ACEOF
8416 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8417 > _ACEOF
8418  
8419   # Break up conftest.defines because some shells have a limit on the size
8420   # of here documents, and old seds have small limits too (100 cmds).
8421   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8422 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8422 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8423   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8424   echo '  :' >>$CONFIG_STATUS
8425   rm -f conftest.tail
# Line 6131 | Line 8428 | do
8428    # Write a limited-size here document to $tmp/defines.sed.
8429    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8430    # Speed up: don't consider the non `#define' lines.
8431 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8431 >  echo '/^[      ]*#[    ]*define/!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 6146 | Line 8443 | rm -f conftest.defines
8443    mv conftest.tail conftest.defines
8444   done
8445   rm -f conftest.defines
8446 < echo '  fi # egrep' >>$CONFIG_STATUS
8446 > echo '  fi # grep' >>$CONFIG_STATUS
8447   echo >>$CONFIG_STATUS
8448  
8449   # Break up conftest.undefs because some shells have a limit on the size
# Line 6158 | Line 8455 | do
8455    # Write a limited-size here document to $tmp/undefs.sed.
8456    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8457    # Speed up: don't consider the non `#undef'
8458 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8458 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8459    # Work around the forget-to-reset-the-flag bug.
8460    echo 't clr' >>$CONFIG_STATUS
8461    echo ': clr' >>$CONFIG_STATUS
# Line 6174 | Line 8471 | rm -f conftest.undefs
8471   done
8472   rm -f conftest.undefs
8473  
8474 < cat >>$CONFIG_STATUS <<\EOF
8474 > cat >>$CONFIG_STATUS <<\_ACEOF
8475    # Let's still pretend it is `configure' which instantiates (i.e., don't
8476    # use $as_me), people would be surprised to read:
8477 <  #    /* config.h.  Generated automatically by config.status.  */
8477 >  #    /* config.h.  Generated by config.status.  */
8478    if test x"$ac_file" = x-; then
8479 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8479 >    echo "/* Generated by configure.  */" >$tmp/config.h
8480    else
8481 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8481 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8482    fi
8483    cat $tmp/in >>$tmp/config.h
8484    rm -f $tmp/in
8485    if test x"$ac_file" != x-; then
8486 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8487 <      { echo "$as_me:6190: $ac_file is unchanged" >&5
8486 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8487 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8488   echo "$as_me: $ac_file is unchanged" >&6;}
8489      else
8490 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8491 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8492 <         X"$ac_file" : 'X\(//\)$' \| \
8493 <         X"$ac_file" : 'X\(/\)' \| \
8494 <         .     : '\(.\)' 2>/dev/null ||
8490 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8491 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8492 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8493 >         X"$ac_file" : 'X\(//\)$' \| \
8494 >         X"$ac_file" : 'X\(/\)' \| \
8495 >         .     : '\(.\)' 2>/dev/null ||
8496   echo X"$ac_file" |
8497      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8498            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8499            /^X\(\/\/\)$/{ s//\1/; q; }
8500            /^X\(\/\).*/{ s//\1/; q; }
8501            s/.*/./; q'`
8502 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8503 <        { case "$ac_dir" in
8504 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8505 <  *)                      as_incr_dir=.;;
8506 < esac
8507 < as_dummy="$ac_dir"
8508 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8509 <  case $as_mkdir_dir in
8510 <    # Skip DOS drivespec
8511 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8512 <    *)
8513 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8514 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8515 <    ;;
8516 <  esac
8517 < done; }
8502 >      { if $as_mkdir_p; then
8503 >    mkdir -p "$ac_dir"
8504 >  else
8505 >    as_dir="$ac_dir"
8506 >    as_dirs=
8507 >    while test ! -d "$as_dir"; do
8508 >      as_dirs="$as_dir $as_dirs"
8509 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8510 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8511 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8512 >         X"$as_dir" : 'X\(//\)$' \| \
8513 >         X"$as_dir" : 'X\(/\)' \| \
8514 >         .     : '\(.\)' 2>/dev/null ||
8515 > echo X"$as_dir" |
8516 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8517 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8518 >          /^X\(\/\/\)$/{ s//\1/; q; }
8519 >          /^X\(\/\).*/{ s//\1/; q; }
8520 >          s/.*/./; q'`
8521 >    done
8522 >    test ! -n "$as_dirs" || mkdir $as_dirs
8523 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8524 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8525 >   { (exit 1); exit 1; }; }; }
8526  
6221      fi
8527        rm -f $ac_file
8528        mv $tmp/config.h $ac_file
8529      fi
# Line 6227 | Line 8532 | done
8532      rm -f $tmp/config.h
8533    fi
8534   done
8535 < EOF
8535 > _ACEOF
8536  
8537 < cat >>$CONFIG_STATUS <<\EOF
8537 > cat >>$CONFIG_STATUS <<\_ACEOF
8538  
8539   { (exit 0); exit 0; }
8540 < EOF
8540 > _ACEOF
8541   chmod +x $CONFIG_STATUS
8542   ac_clean_files=$ac_clean_files_save
8543  
8544 +
8545   # configure is writing to config.log, and then calls config.status.
8546   # config.status does its own redirection, appending to config.log.
8547   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6246 | Line 8552 | if test "$no_create" != yes; then
8552   # need to make the FD available again.
8553   if test "$no_create" != yes; then
8554    ac_cs_success=:
8555 +  ac_config_status_args=
8556 +  test "$silent" = yes &&
8557 +    ac_config_status_args="$ac_config_status_args --quiet"
8558    exec 5>/dev/null
8559 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8559 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8560    exec 5>>config.log
8561    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8562    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines