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 1238 by gezelter, Fri Jun 4 14:59:17 2004 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by Autoconf 2.50 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10 + ## --------------------- ##
11 + ## M4sh Initialization.  ##
12 + ## --------------------- ##
13  
14   # Be Bourne compatible
15   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16    emulate sh
17    NULLCMD=:
18 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 +  # is contrary to our usage.  Disable this feature.
20 +  alias -g '${1+"$@"}'='"$@"'
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26 + # Support unset when possible.
27 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 +  as_unset=unset
29 + else
30 +  as_unset=false
31 + fi
32 +
33 +
34 + # Work around bugs in pre-3.0 UWIN ksh.
35 + $as_unset ENV MAIL MAILPATH
36 + PS1='$ '
37 + PS2='> '
38 + PS4='+ '
39 +
40 + # NLS nuisances.
41 + for as_var in \
42 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 +  LC_TELEPHONE LC_TIME
45 + do
46 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 +    eval $as_var=C; export $as_var
48 +  else
49 +    $as_unset $as_var
50 +  fi
51 + done
52 +
53 + # Required to use basename.
54 + if expr a : '\(a\)' >/dev/null 2>&1; then
55 +  as_expr=expr
56 + else
57 +  as_expr=false
58 + fi
59 +
60 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 +  as_basename=basename
62 + else
63 +  as_basename=false
64 + fi
65 +
66 +
67   # Name of the executable.
68 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
68 > as_me=`$as_basename "$0" ||
69 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 >         X"$0" : 'X\(//\)$' \| \
71 >         X"$0" : 'X\(/\)$' \| \
72 >         .     : '\(.\)' 2>/dev/null ||
73 > echo X/"$0" |
74 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
76 >          /^X\/\(\/\).*/{ s//\1/; q; }
77 >          s/.*/./; q'`
78  
79 +
80 + # PATH needs CR, and LINENO needs CR and PATH.
81 + # Avoid depending upon Character Ranges.
82 + as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 + as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 + as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 + as_cr_digits='0123456789'
86 + as_cr_alnum=$as_cr_Letters$as_cr_digits
87 +
88 + # The user is always right.
89 + if test "${PATH_SEPARATOR+set}" != set; then
90 +  echo "#! /bin/sh" >conf$$.sh
91 +  echo  "exit 0"   >>conf$$.sh
92 +  chmod +x conf$$.sh
93 +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 +    PATH_SEPARATOR=';'
95 +  else
96 +    PATH_SEPARATOR=:
97 +  fi
98 +  rm -f conf$$.sh
99 + fi
100 +
101 +
102 +  as_lineno_1=$LINENO
103 +  as_lineno_2=$LINENO
104 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
106 +  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107 +  # Find who we are.  Look in the path if we contain no path at all
108 +  # relative or not.
109 +  case $0 in
110 +    *[\\/]* ) as_myself=$0 ;;
111 +    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 + for as_dir in $PATH
113 + do
114 +  IFS=$as_save_IFS
115 +  test -z "$as_dir" && as_dir=.
116 +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 + done
118 +
119 +       ;;
120 +  esac
121 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
122 +  # in which case we are not to be found in the path.
123 +  if test "x$as_myself" = x; then
124 +    as_myself=$0
125 +  fi
126 +  if test ! -f "$as_myself"; then
127 +    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 +   { (exit 1); exit 1; }; }
129 +  fi
130 +  case $CONFIG_SHELL in
131 +  '')
132 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 + do
135 +  IFS=$as_save_IFS
136 +  test -z "$as_dir" && as_dir=.
137 +  for as_base in sh bash ksh sh5; do
138 +         case $as_dir in
139 +         /*)
140 +           if ("$as_dir/$as_base" -c '
141 +  as_lineno_1=$LINENO
142 +  as_lineno_2=$LINENO
143 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
145 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 +             CONFIG_SHELL=$as_dir/$as_base
149 +             export CONFIG_SHELL
150 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 +           fi;;
152 +         esac
153 +       done
154 + done
155 + ;;
156 +  esac
157 +
158 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 +  # uniformly replaced by the line number.  The first 'sed' inserts a
160 +  # line-number line before each line; the second 'sed' does the real
161 +  # work.  The second script uses 'N' to pair each line-number line
162 +  # with the numbered line, and appends trailing '-' during
163 +  # substitution so that $LINENO is not a special case at line end.
164 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166 +  sed '=' <$as_myself |
167 +    sed '
168 +      N
169 +      s,$,-,
170 +      : loop
171 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 +      t loop
173 +      s,-$,,
174 +      s,^['$as_cr_digits']*\n,,
175 +    ' >$as_me.lineno &&
176 +  chmod +x $as_me.lineno ||
177 +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 +   { (exit 1); exit 1; }; }
179 +
180 +  # Don't try to exec as it changes $[0], causing all sort of problems
181 +  # (the dirname of $[0] is not the place where we might find the
182 +  # original and so on.  Autoconf is especially sensible to this).
183 +  . ./$as_me.lineno
184 +  # Exit status is that of the last command.
185 +  exit
186 + }
187 +
188 +
189 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 +  *c*,-n*) ECHO_N= ECHO_C='
191 + ' ECHO_T='      ' ;;
192 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 + esac
195 +
196   if expr a : '\(a\)' >/dev/null 2>&1; then
197    as_expr=expr
198   else
# Line 44 | Line 217 | as_executable_p="test -f"
217   fi
218   rm -f conf$$ conf$$.exe conf$$.file
219  
220 < as_executable_p="test -f"
221 <
49 < # Support unset when possible.
50 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 <  as_unset=unset
220 > if mkdir -p . 2>/dev/null; then
221 >  as_mkdir_p=:
222   else
223 <  as_unset=false
223 >  test -d ./-p && rmdir ./-p
224 >  as_mkdir_p=false
225   fi
226  
227 < # NLS nuisances.
57 < $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 < $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 < $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 < $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 < $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 < $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 < $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 < $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
227 > as_executable_p="test -f"
228  
229 + # Sed expression to map a string onto a valid CPP name.
230 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 +
232 + # Sed expression to map a string onto a valid variable name.
233 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 +
235 +
236   # IFS
237   # We need space, tab and new line, in precisely that order.
238   as_nl='
# Line 70 | Line 240 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
240   IFS="   $as_nl"
241  
242   # CDPATH.
243 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243 > $as_unset CDPATH
244  
245 +
246   # Name of the host.
247   # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248   # so uname gets run too.
# Line 83 | Line 254 | cross_compiling=no
254   # Initializations.
255   #
256   ac_default_prefix=/usr/local
257 + ac_config_libobj_dir=.
258   cross_compiling=no
259   subdirs=
260 < MFLAGS= MAKEFLAGS=
260 > MFLAGS=
261 > MAKEFLAGS=
262   SHELL=${CONFIG_SHELL-/bin/sh}
263  
264   # Maximum number of lines to put in a shell here document.
# Line 93 | Line 266 | SHELL=${CONFIG_SHELL-/bin/sh}
266   # only ac_max_sed_lines should be used.
267   : ${ac_max_here_lines=38}
268  
269 < # Avoid depending upon Character Ranges.
270 < ac_cr_az='abcdefghijklmnopqrstuvwxyz'
271 < ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
272 < ac_cr_09='0123456789'
273 < ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
269 > # Identity of this package.
270 > PACKAGE_NAME='OOPSE'
271 > PACKAGE_TARNAME='oopse'
272 > PACKAGE_VERSION='1.0'
273 > PACKAGE_STRING='OOPSE 1.0'
274 > PACKAGE_BUGREPORT='gezelter@nd.edu'
275  
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
276   ac_unique_file="src/oopse.cpp"
277   ac_default_prefix="/usr/local"
278 + # Factoring default headers for most tests.
279 + ac_includes_default="\
280 + #include <stdio.h>
281 + #if HAVE_SYS_TYPES_H
282 + # include <sys/types.h>
283 + #endif
284 + #if HAVE_SYS_STAT_H
285 + # include <sys/stat.h>
286 + #endif
287 + #if STDC_HEADERS
288 + # include <stdlib.h>
289 + # include <stddef.h>
290 + #else
291 + # if HAVE_STDLIB_H
292 + #  include <stdlib.h>
293 + # endif
294 + #endif
295 + #if HAVE_STRING_H
296 + # if !STDC_HEADERS && HAVE_MEMORY_H
297 + #  include <memory.h>
298 + # endif
299 + # include <string.h>
300 + #endif
301 + #if HAVE_STRINGS_H
302 + # include <strings.h>
303 + #endif
304 + #if HAVE_INTTYPES_H
305 + # include <inttypes.h>
306 + #else
307 + # if HAVE_STDINT_H
308 + #  include <stdint.h>
309 + # endif
310 + #endif
311 + #if HAVE_UNISTD_H
312 + # include <unistd.h>
313 + #endif"
314  
315 + ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
316 + ac_subst_files=''
317 +
318   # Initialize some variables set by options.
319   ac_init_help=
320   ac_init_version=false
# Line 144 | Line 353 | mandir='${prefix}/man'
353   infodir='${prefix}/info'
354   mandir='${prefix}/man'
355  
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='1.0'
151 PACKAGE_STRING='OOPSE 1.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
153
356   ac_prev=
357   for ac_option
358   do
# Line 196 | Line 398 | do
398    -disable-* | --disable-*)
399      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400      # Reject names that are not valid shell variable names.
401 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
401 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 205 | Line 407 | do
407    -enable-* | --enable-*)
408      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409      # Reject names that are not valid shell variable names.
410 <    expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
410 >    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
# Line 283 | Line 485 | do
485      with_fp=no ;;
486  
487    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 <  | --no-cr | --no-c)
488 >  | --no-cr | --no-c | -n)
489      no_create=yes ;;
490  
491    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
# Line 387 | Line 589 | do
589    -with-* | --with-*)
590      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591      # Reject names that are not valid shell variable names.
592 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
592 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593        { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595      ac_package=`echo $ac_package| sed 's/-/_/g'`
# Line 400 | Line 602 | do
602    -without-* | --without-*)
603      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604      # Reject names that are not valid shell variable names.
605 <    expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
605 >    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606        { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608      ac_package=`echo $ac_package | sed 's/-/_/g'`
# Line 432 | Line 634 | Try \`$0 --help' for more information." >&2
634    *=*)
635      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636      # Reject names that are not valid shell variable names.
637 <    expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
637 >    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638        { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640      ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
# Line 442 | Line 644 | Try \`$0 --help' for more information." >&2
644    *)
645      # FIXME: should be removed in autoconf 3.0.
646      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 <    expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
647 >    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650      ;;
# Line 457 | Line 659 | for ac_var in bindir sbindir libexecdir datadir syscon
659   fi
660  
661   # Be sure to have absolute paths.
662 + for ac_var in exec_prefix prefix
663 + do
664 +  eval ac_val=$`echo $ac_var`
665 +  case $ac_val in
666 +    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 +    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 +   { (exit 1); exit 1; }; };;
669 +  esac
670 + done
671 +
672 + # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir \
462 <              exec_prefix prefix
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
678      [\\/$]* | ?:[\\/]* ) ;;
679 <    NONE ) ;;
468 <    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
679 >    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681    esac
682   done
683  
684   # There might be people who depend on the old broken behavior: `$host'
685   # used to hold the argument of --host etc.
686 + # FIXME: To remove some day.
687   build=$build_alias
688   host=$host_alias
689   target=$target_alias
690  
691 < # FIXME: should be removed in autoconf 3.0.
691 > # FIXME: To remove some day.
692   if test "x$host_alias" != x; then
693    if test "x$build_alias" = x; then
694      cross_compiling=maybe
# Line 492 | Line 704 | test "$silent" = yes && exec 6>/dev/null
704  
705   test "$silent" = yes && exec 6>/dev/null
706  
707 +
708   # Find the source files, if location was not specified.
709   if test -z "$srcdir"; then
710    ac_srcdir_defaulted=yes
711    # Try the directory containing this script, then its parent.
712 <  ac_prog=$0
713 <  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
714 <  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
712 >  ac_confdir=`(dirname "$0") 2>/dev/null ||
713 > $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718 > echo X"$0" |
719 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 >          /^X\(\/\/\)$/{ s//\1/; q; }
722 >          /^X\(\/\).*/{ s//\1/; q; }
723 >          s/.*/./; q'`
724    srcdir=$ac_confdir
725    if test ! -r $srcdir/$ac_unique_file; then
726      srcdir=..
# Line 508 | Line 730 | if test ! -r $srcdir/$ac_unique_file; then
730   fi
731   if test ! -r $srcdir/$ac_unique_file; then
732    if test "$ac_srcdir_defaulted" = yes; then
733 <    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
733 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735    else
736 <    { echo "$as_me: error: cannot find sources in $srcdir" >&2
736 >    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738    fi
739   fi
740 + (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 +  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 +   { (exit 1); exit 1; }; }
743   srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744   ac_env_build_alias_set=${build_alias+set}
745   ac_env_build_alias_value=$build_alias
# Line 560 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   ac_cv_env_F90FLAGS_value=$F90FLAGS
563 ac_env_MPIF77_set=${MPIF77+set}
564 ac_env_MPIF77_value=$MPIF77
565 ac_cv_env_MPIF77_set=${MPIF77+set}
566 ac_cv_env_MPIF77_value=$MPIF77
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 575 | Line 796 | if test "$ac_init_help" = "long"; then
796   if test "$ac_init_help" = "long"; then
797    # Omit some internal or obsolete options to make the list less imposing.
798    # This message is too long to be a string in the A/UX 3.1 sh.
799 <  cat <<EOF
799 >  cat <<_ACEOF
800   \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
801  
802   Usage: $0 [OPTION]... [VAR=VALUE]...
# Line 596 | Line 817 | EOF
817    -n, --no-create         do not create output files
818        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
819  
820 < EOF
820 > _ACEOF
821  
822 <  cat <<EOF
822 >  cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 625 | Line 846 | EOF
846    --oldincludedir=DIR    C header files for non-gcc [/usr/include]
847    --infodir=DIR          info documentation [PREFIX/info]
848    --mandir=DIR           man documentation [PREFIX/man]
849 < EOF
849 > _ACEOF
850  
851 <  cat <<\EOF
851 >  cat <<\_ACEOF
852  
853   System types:
854    --build=BUILD     configure for building on BUILD [guessed]
855 <  --host=HOST       build programs to run on HOST [BUILD]
856 < EOF
855 >  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
856 > _ACEOF
857   fi
858  
859   if test -n "$ac_init_help"; then
860    case $ac_init_help in
861       short | recursive ) echo "Configuration of OOPSE 1.0:";;
862     esac
863 <  cat <<\EOF
863 >  cat <<\_ACEOF
864  
865   Optional Features:
866    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
# Line 650 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
654 <  --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
655 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
874 >  --with-mpi=<prefix>     compile with MPI libraries in <prefix> [default=no]
875    --with-sprng_prefix=PREFIX
876                            Prefix where SPRNG is installed
877 <  --with-sprng_lib_prefix=PREFIX  SPRNG library directory
878 <  --with-sprng_include_prefix=PREFIX
877 >  --with-sprng-libdir=PREFIX  SPRNG library directory
878 >  --with-sprng-include=PREFIX
879                            SPRNG include directory
880 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
880 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
881  
882   Some influential environment variables:
883    CC          C compiler command
# Line 671 | Line 890 | Some influential environment variables:
890    CXXFLAGS    C++ compiler flags
891    F90         Fortran 90 compiler command
892    F90FLAGS    Fortran 90 compiler flags
674  MPIF77      MPI Fortran compiler command
893    CPP         C preprocessor
894  
895   Use these variables to override the choices made by `configure' or to help
896   it to find libraries and programs with nonstandard names/locations.
897  
898   Report bugs to <gezelter@nd.edu>.
899 < EOF
899 > _ACEOF
900   fi
901  
902   if test "$ac_init_help" = "recursive"; then
903    # If there are subdirs, report their specific --help.
904    ac_popdir=`pwd`
905 <  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
906 <    cd $ac_subdir
907 <    # A "../" for each directory in /$ac_subdir.
690 <    ac_dots=`echo $ac_subdir |
691 <             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
905 >  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 >    test -d $ac_dir || continue
907 >    ac_builddir=.
908  
909 <    case $srcdir in
910 <    .) # No --srcdir option.  We are building in place.
911 <      ac_sub_srcdir=$srcdir ;;
912 <    [\\/]* | ?:[\\/]* ) # Absolute path.
913 <      ac_sub_srcdir=$srcdir/$ac_subdir ;;
914 <    *) # Relative path.
915 <      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
700 <    esac
909 > if test "$ac_dir" != .; then
910 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 >  # A "../" for each directory in $ac_dir_suffix.
912 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 > else
914 >  ac_dir_suffix= ac_top_builddir=
915 > fi
916  
917 <    # Check for guested configure; otherwise get Cygnus style configure.
918 <    if test -f $ac_sub_srcdir/configure.gnu; then
919 <      echo
920 <      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
921 <    elif test -f $ac_sub_srcdir/configure; then
917 > case $srcdir in
918 >  .)  # No --srcdir option.  We are building in place.
919 >    ac_srcdir=.
920 >    if test -z "$ac_top_builddir"; then
921 >       ac_top_srcdir=.
922 >    else
923 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 >    fi ;;
925 >  [\\/]* | ?:[\\/]* )  # Absolute path.
926 >    ac_srcdir=$srcdir$ac_dir_suffix;
927 >    ac_top_srcdir=$srcdir ;;
928 >  *) # Relative path.
929 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 > esac
932 >
933 > # Do not use `cd foo && pwd` to compute absolute paths, because
934 > # the directories may not exist.
935 > case `pwd` in
936 > .) ac_abs_builddir="$ac_dir";;
937 > *)
938 >  case "$ac_dir" in
939 >  .) ac_abs_builddir=`pwd`;;
940 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 >  esac;;
943 > esac
944 > case $ac_abs_builddir in
945 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 > *)
947 >  case ${ac_top_builddir}. in
948 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
949 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 >  esac;;
952 > esac
953 > case $ac_abs_builddir in
954 > .) ac_abs_srcdir=$ac_srcdir;;
955 > *)
956 >  case $ac_srcdir in
957 >  .) ac_abs_srcdir=$ac_abs_builddir;;
958 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 >  esac;;
961 > esac
962 > case $ac_abs_builddir in
963 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 > *)
965 >  case $ac_top_srcdir in
966 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 >  esac;;
970 > esac
971 >
972 >    cd $ac_dir
973 >    # Check for guested configure; otherwise get Cygnus style configure.
974 >    if test -f $ac_srcdir/configure.gnu; then
975        echo
976 <      $SHELL $ac_sub_srcdir/configure  --help=recursive
977 <    elif test -f $ac_sub_srcdir/configure.ac ||
710 <           test -f $ac_sub_srcdir/configure.in; then
976 >      $SHELL $ac_srcdir/configure.gnu  --help=recursive
977 >    elif test -f $ac_srcdir/configure; then
978        echo
979 +      $SHELL $ac_srcdir/configure  --help=recursive
980 +    elif test -f $ac_srcdir/configure.ac ||
981 +           test -f $ac_srcdir/configure.in; then
982 +      echo
983        $ac_configure --help
984      else
985 <      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
985 >      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986      fi
987      cd $ac_popdir
988    done
# Line 719 | Line 990 | if $ac_init_version; then
990  
991   test -n "$ac_init_help" && exit 0
992   if $ac_init_version; then
993 <  cat <<\EOF
993 >  cat <<\_ACEOF
994   OOPSE configure 1.0
995 < generated by GNU Autoconf 2.50
995 > generated by GNU Autoconf 2.59
996  
997 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
727 < Free Software Foundation, Inc.
997 > Copyright (C) 2003 Free Software Foundation, Inc.
998   This configure script is free software; the Free Software Foundation
999   gives unlimited permission to copy, distribute and modify it.
1000 < EOF
1000 > _ACEOF
1001    exit 0
1002   fi
1003   exec 5>config.log
1004 < cat >&5 <<EOF
1004 > cat >&5 <<_ACEOF
1005   This file contains any messages produced by compilers while
1006   running configure, to aid debugging if configure makes a mistake.
1007  
1008   It was created by OOPSE $as_me 1.0, which was
1009 < generated by GNU Autoconf 2.50.  Invocation command line was
1009 > generated by GNU Autoconf 2.59.  Invocation command line was
1010  
1011    $ $0 $@
1012  
1013 < EOF
1013 > _ACEOF
1014   {
1015   cat <<_ASUNAME
1016 < ## ---------- ##
1017 < ## Platform.  ##
1018 < ## ---------- ##
1016 > ## --------- ##
1017 > ## Platform. ##
1018 > ## --------- ##
1019  
1020   hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021   uname -m = `(uname -m) 2>/dev/null || echo unknown`
# Line 764 | Line 1034 | PATH = $PATH
1034   /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035   /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036  
767 PATH = $PATH
768
1037   _ASUNAME
1038 +
1039 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 + for as_dir in $PATH
1041 + do
1042 +  IFS=$as_save_IFS
1043 +  test -z "$as_dir" && as_dir=.
1044 +  echo "PATH: $as_dir"
1045 + done
1046 +
1047   } >&5
1048  
1049 < cat >&5 <<EOF
773 < ## ------------ ##
774 < ## Core tests.  ##
775 < ## ------------ ##
1049 > cat >&5 <<_ACEOF
1050  
777 EOF
1051  
1052 + ## ----------- ##
1053 + ## Core tests. ##
1054 + ## ----------- ##
1055 +
1056 + _ACEOF
1057 +
1058 +
1059   # Keep a trace of the command line.
1060   # Strip out --no-create and --no-recursion so they do not pile up.
1061 + # Strip out --silent because we don't want to record it for future runs.
1062   # Also quote any args containing shell meta-characters.
1063 + # Make two passes to allow for proper duplicate-argument suppression.
1064   ac_configure_args=
1065 + ac_configure_args0=
1066 + ac_configure_args1=
1067   ac_sep=
1068 < for ac_arg
1068 > ac_must_keep_next=false
1069 > for ac_pass in 1 2
1070   do
1071 <  case $ac_arg in
1072 <  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 <  | --no-cr | --no-c) ;;
1074 <  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 <  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1076 <  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 <    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1078 <    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 <    ac_sep=" " ;;
1080 <  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1081 <     ac_sep=" " ;;
1082 <  esac
1083 <  # Get rid of the leading space.
1071 >  for ac_arg
1072 >  do
1073 >    case $ac_arg in
1074 >    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 >    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 >    | -silent | --silent | --silen | --sile | --sil)
1077 >      continue ;;
1078 >    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 >      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080 >    esac
1081 >    case $ac_pass in
1082 >    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 >    2)
1084 >      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 >      if test $ac_must_keep_next = true; then
1086 >        ac_must_keep_next=false # Got value, back to normal.
1087 >      else
1088 >        case $ac_arg in
1089 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1090 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 >          | -with-* | --with-* | -without-* | --without-* | --x)
1093 >            case "$ac_configure_args0 " in
1094 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 >            esac
1096 >            ;;
1097 >          -* ) ac_must_keep_next=true ;;
1098 >        esac
1099 >      fi
1100 >      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 >      # Get rid of the leading space.
1102 >      ac_sep=" "
1103 >      ;;
1104 >    esac
1105 >  done
1106   done
1107 + $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 + $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109  
1110   # When interrupted or exit'd, cleanup temporary files, and complete
1111   # config.log.  We remove comments because anyway the quotes in there
1112   # would cause problems or look ugly.
1113 + # WARNING: Be sure not to use single quotes in there, as some shells,
1114 + # such as our DU 5.0 friend, will then `close' the trap.
1115   trap 'exit_status=$?
1116    # Save into config.log some information that might help in debugging.
1117 <  echo >&5
1118 <  echo "## ----------------- ##" >&5
1119 <  echo "## Cache variables.  ##" >&5
1120 <  echo "## ----------------- ##" >&5
1121 <  echo >&5
1122 <  # The following way of writing the cache mishandles newlines in values,
1117 >  {
1118 >    echo
1119 >
1120 >    cat <<\_ASBOX
1121 > ## ---------------- ##
1122 > ## Cache variables. ##
1123 > ## ---------------- ##
1124 > _ASBOX
1125 >    echo
1126 >    # The following way of writing the cache mishandles newlines in values,
1127   {
1128    (set) 2>&1 |
1129      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130      *ac_space=\ *)
1131        sed -n \
1132 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134        ;;
1135      *)
1136        sed -n \
1137 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138        ;;
1139      esac;
1140 < } >&5
1141 <  sed "/^$/d" confdefs.h >conftest.log
1142 <  if test -s conftest.log; then
1143 <    echo >&5
1144 <    echo "## ------------ ##" >&5
1145 <    echo "## confdefs.h.  ##" >&5
1146 <    echo "## ------------ ##" >&5
1147 <    echo >&5
1148 <    cat conftest.log >&5
1149 <  fi
1150 <  (echo; echo) >&5
1151 <  test "$ac_signal" != 0 &&
1152 <    echo "$as_me: caught signal $ac_signal" >&5
1153 <  echo "$as_me: exit $exit_status" >&5
1154 <  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1140 > }
1141 >    echo
1142 >
1143 >    cat <<\_ASBOX
1144 > ## ----------------- ##
1145 > ## Output variables. ##
1146 > ## ----------------- ##
1147 > _ASBOX
1148 >    echo
1149 >    for ac_var in $ac_subst_vars
1150 >    do
1151 >      eval ac_val=$`echo $ac_var`
1152 >      echo "$ac_var='"'"'$ac_val'"'"'"
1153 >    done | sort
1154 >    echo
1155 >
1156 >    if test -n "$ac_subst_files"; then
1157 >      cat <<\_ASBOX
1158 > ## ------------- ##
1159 > ## Output files. ##
1160 > ## ------------- ##
1161 > _ASBOX
1162 >      echo
1163 >      for ac_var in $ac_subst_files
1164 >      do
1165 >        eval ac_val=$`echo $ac_var`
1166 >        echo "$ac_var='"'"'$ac_val'"'"'"
1167 >      done | sort
1168 >      echo
1169 >    fi
1170 >
1171 >    if test -s confdefs.h; then
1172 >      cat <<\_ASBOX
1173 > ## ----------- ##
1174 > ## confdefs.h. ##
1175 > ## ----------- ##
1176 > _ASBOX
1177 >      echo
1178 >      sed "/^$/d" confdefs.h | sort
1179 >      echo
1180 >    fi
1181 >    test "$ac_signal" != 0 &&
1182 >      echo "$as_me: caught signal $ac_signal"
1183 >    echo "$as_me: exit $exit_status"
1184 >  } >&5
1185 >  rm -f core *.core &&
1186 >  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187      exit $exit_status
1188       ' 0
1189   for ac_signal in 1 2 13 15; do
1190 <  trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1190 >  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191   done
1192   ac_signal=0
1193  
# Line 849 | Line 1196 | echo >confdefs.h
1196   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197   echo >confdefs.h
1198  
1199 + # Predefined preprocessor variables.
1200 +
1201 + cat >>confdefs.h <<_ACEOF
1202 + #define PACKAGE_NAME "$PACKAGE_NAME"
1203 + _ACEOF
1204 +
1205 +
1206 + cat >>confdefs.h <<_ACEOF
1207 + #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 + _ACEOF
1209 +
1210 +
1211 + cat >>confdefs.h <<_ACEOF
1212 + #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 + _ACEOF
1214 +
1215 +
1216 + cat >>confdefs.h <<_ACEOF
1217 + #define PACKAGE_STRING "$PACKAGE_STRING"
1218 + _ACEOF
1219 +
1220 +
1221 + cat >>confdefs.h <<_ACEOF
1222 + #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 + _ACEOF
1224 +
1225 +
1226   # Let the site file select an alternate cache file if it wants to.
1227   # Prefer explicitly selected file to automatically selected ones.
1228   if test -z "$CONFIG_SITE"; then
# Line 860 | Line 1234 | for ac_site_file in $CONFIG_SITE; do
1234   fi
1235   for ac_site_file in $CONFIG_SITE; do
1236    if test -r "$ac_site_file"; then
1237 <    { echo "$as_me:863: loading site script $ac_site_file" >&5
1237 >    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238   echo "$as_me: loading site script $ac_site_file" >&6;}
1239 <    cat "$ac_site_file" >&5
1239 >    sed 's/^/| /' "$ac_site_file" >&5
1240      . "$ac_site_file"
1241    fi
1242   done
# Line 871 | Line 1245 | if test -r "$cache_file"; then
1245    # Some versions of bash will fail to source /dev/null (special
1246    # files actually), so we avoid doing that.
1247    if test -f "$cache_file"; then
1248 <    { echo "$as_me:874: loading cache $cache_file" >&5
1248 >    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249   echo "$as_me: loading cache $cache_file" >&6;}
1250      case $cache_file in
1251        [\\/]* | ?:[\\/]* ) . $cache_file;;
# Line 879 | Line 1253 | else
1253      esac
1254    fi
1255   else
1256 <  { echo "$as_me:882: creating cache $cache_file" >&5
1256 >  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257   echo "$as_me: creating cache $cache_file" >&6;}
1258    >$cache_file
1259   fi
1260  
1261   # Check that the precious variables saved in the cache have kept the same
1262   # value.
1263 < ac_suggest_removing_cache=false
1263 > ac_cache_corrupted=false
1264   for ac_var in `(set) 2>&1 |
1265 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267    eval ac_new_set=\$ac_env_${ac_var}_set
1268    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269    eval ac_new_val="\$ac_env_${ac_var}_value"
1270    case $ac_old_set,$ac_new_set in
1271      set,)
1272 <      { echo "$as_me:898: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 < echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 <      ac_suggest_removing_cache=: ;;
1272 >      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 > echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 >      ac_cache_corrupted=: ;;
1275      ,set)
1276 <      { echo "$as_me:902: WARNING: \`$ac_var' was not set in the previous run" >&5
1277 < echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1278 <      ac_suggest_removing_cache=: ;;
1276 >      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 > echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 >      ac_cache_corrupted=: ;;
1279      ,);;
1280      *)
1281        if test "x$ac_old_val" != "x$ac_new_val"; then
1282 <        { echo "$as_me:908: WARNING: \`$ac_var' has changed since the previous run:" >&5
1283 < echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1284 <        { echo "$as_me:910: WARNING:   former value:  $ac_old_val" >&5
1285 < echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
1286 <        { echo "$as_me:912: WARNING:   current value: $ac_new_val" >&5
1287 < echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
1288 <        ac_suggest_removing_cache=:
1282 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 > echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1286 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 > echo "$as_me:   current value: $ac_new_val" >&2;}
1288 >        ac_cache_corrupted=:
1289        fi;;
1290    esac
1291 +  # Pass precious variables to config.status.
1292 +  if test "$ac_new_set" = set; then
1293 +    case $ac_new_val in
1294 +    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 +      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 +    *) ac_arg=$ac_var=$ac_new_val ;;
1297 +    esac
1298 +    case " $ac_configure_args " in
1299 +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300 +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301 +    esac
1302 +  fi
1303   done
1304 < if $ac_suggest_removing_cache; then
1305 <  { echo "$as_me:919: WARNING: changes in the environment can compromise the build" >&5
1306 < echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1307 <  { echo "$as_me:921: WARNING: consider removing $cache_file and starting over" >&5
1308 < echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1304 > if $ac_cache_corrupted; then
1305 >  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 > echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 >  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 > echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 >   { (exit 1); exit 1; }; }
1310   fi
1311  
1312   ac_ext=c
# Line 928 | Line 1315 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing;
1315   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316   ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317  
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
1318  
1319 +
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   ac_aux_dir=
1345   for ac_dir in ac-tools $srcdir/ac-tools; do
1346    if test -f $ac_dir/install-sh; then
# Line 966 | Line 1358 | if test -z "$ac_aux_dir"; then
1358    fi
1359   done
1360   if test -z "$ac_aux_dir"; then
1361 <  { { echo "$as_me:969: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1361 >  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1362   echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1363     { (exit 1); exit 1; }; }
1364   fi
# Line 974 | Line 1366 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1366   ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367   ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1368  
1369 +
1370   # This file is part of Autoconf.                       -*- Autoconf -*-
1371   # Programming languages support.
1372   # Copyright 2000, 2001
# Line 1024 | Line 1417 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1417   # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1418   # many others).
1419  
1420 +
1421   # Table of Contents:
1422   #
1423   # 1. Language selection
# Line 1059 | Line 1453 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1453   # ACTION-IF-NOT-FOUND.
1454   # _AC_LIST_MEMBER_IF
1455  
1456 +
1457 +
1458   # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1459   # -------------------------------------------------
1460   #
# Line 1089 | Line 1485 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1485   # FIXME: Get rid of this macro.
1486   # _AC_LINKER_OPTION
1487  
1488 +
1489 +
1490   ## ----------------------- ##
1491   ## 1. Language selection.  ##
1492   ## ----------------------- ##
# Line 1100 | Line 1498 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1498   # AC_LANG(Fortran 90)
1499   # -------------------
1500  
1501 +
1502 +
1503   # _AC_LANG_ABBREV(Fortran 90)
1504   # ---------------------------
1505  
1506 +
1507 +
1508   # ----------------------------- #
1509   # 1c. The Fortran 95 language.  #
1510   # ----------------------------- #
# Line 1110 | Line 1512 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1512   # AC_LANG(Fortran 95)
1513   # -------------------
1514  
1515 +
1516 +
1517   # _AC_LANG_ABBREV(Fortran 95)
1518   # ---------------------------
1519  
1520 +
1521 +
1522   ## ---------------------- ##
1523   ## 2.Producing programs.  ##
1524   ## ---------------------- ##
# Line 1124 | Line 1530 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1530   # AC_LANG_SOURCE(Fortran 90)(BODY)
1531   # --------------------------------
1532  
1533 +
1534 +
1535   # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1536   # -----------------------------------------------
1537  
1538 +
1539   # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1540   # --------------------------------------------
1541  
1542 +
1543 +
1544   # ------------------------ #
1545   # 2c. Fortran 95 sources.  #
1546   # ------------------------ #
1547  
1548   # AC_LANG_SOURCE(Fortran 95)(BODY)
1549   # --------------------------------
1550 +
1551  
1552   # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1553   # -----------------------------------------------
1554  
1555 +
1556   # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1557   # --------------------------------------------
1558  
1559 +
1560 +
1561   ## -------------------------------------------- ##
1562   ## 3. Looking for Compilers and Preprocessors.  ##
1563   ## -------------------------------------------- ##
# Line 1151 | Line 1566 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1566   # 3b. The Fortran 90 compiler.  #
1567   # ----------------------------- #
1568  
1569 +
1570   # AC_LANG_PREPROC(Fortran 90)
1571   # ---------------------------
1572   # Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1573  
1574 +
1575 +
1576   # AC_LANG_COMPILER(Fortran 90)
1577   # ----------------------------
1578   # Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
1579   # AC_REQUIRE'able.
1580  
1581 +
1582 +
1583   # AC_PROG_F90([COMPILERS...])
1584   # ---------------------------
1585   # COMPILERS is a space separated list of Fortran 90 compilers to search
# Line 1176 | Line 1596 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1596   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1597   # AC_PROG_F90
1598  
1599 +
1600   # ----------------------------- #
1601   # 3c. The Fortran 95 compiler.  #
1602   # ----------------------------- #
1603  
1604 +
1605   # AC_LANG_PREPROC(Fortran 95)
1606   # ---------------------------
1607   # Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be AC_REQUIRE'able.
1608  
1609 +
1610 +
1611   # AC_LANG_COMPILER(Fortran 95)
1612   # ----------------------------
1613   # Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
1614   # AC_REQUIRE'able.
1615  
1616 +
1617 +
1618   # AC_PROG_F95([COMPILERS...])
1619   # ---------------------------
1620   # COMPILERS is a space separated list of Fortran 95 compilers to search
# Line 1202 | Line 1628 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1628   # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1629   # AC_PROG_F95
1630  
1631 +
1632   ## ------------------------------- ##
1633   ## 4. Compilers' characteristics.  ##
1634   ## ------------------------------- ##
1635  
1636 +
1637   # ---------------------------------------- #
1638   # 4b. Fortan 90 compiler characteristics.  #
1639   # ---------------------------------------- #
1640  
1641 +
1642   # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1643   # -------------------------------------------------
1644   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1220 | Line 1649 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1649   # space-separated items.
1650   # _AC_PROG_F90_V_OUTPUT
1651  
1652 +
1653   # _AC_PROG_F90_V
1654   # --------------
1655   #
# Line 1229 | Line 1659 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1659   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1660   # _AC_PROG_F90_V
1661  
1662 +
1663   # AC_F90_LIBRARY_LDFLAGS
1664   # ----------------------
1665   #
# Line 1256 | Line 1687 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1687   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1688   # AC_F90_LIBRARY_LDFLAGS
1689  
1690 +
1691   # _AC_F90_NAME_MANGLING
1692   # ---------------------
1693   # Test for the name mangling scheme used by the Fortran 90 compiler.
# Line 1275 | Line 1707 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1707  
1708   # The replacement is empty.
1709  
1710 +
1711 +
1712   # AC_F90_WRAPPERS
1713   # ---------------
1714   # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
# Line 1283 | Line 1717 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1717   # scheme used by the Fortran 90 compiler.
1718   # AC_F90_WRAPPERS
1719  
1720 +
1721   # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1722   # ------------------------------------
1723   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1290 | Line 1725 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1725   # argument is not supplied, it defaults to NAME.
1726   # AC_F90_FUNC
1727  
1728 +
1729   # ---------------------------------------- #
1730   # 4c. Fortan 95 compiler characteristics.  #
1731   # ---------------------------------------- #
1732  
1733 +
1734   # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1735   # -------------------------------------------------
1736   # Link a trivial Fortran program, compiling with a verbose output FLAG
# Line 1304 | Line 1741 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1741   # space-separated items.
1742   # _AC_PROG_F95_V_OUTPUT
1743  
1744 +
1745   # _AC_PROG_F95_V
1746   # --------------
1747   #
# Line 1313 | Line 1751 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1751   # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1752   # _AC_PROG_F95_V
1753  
1754 +
1755   # AC_F95_LIBRARY_LDFLAGS
1756   # ----------------------
1757   #
# Line 1340 | Line 1779 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1779   # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1780   # AC_F95_LIBRARY_LDFLAGS
1781  
1782 +
1783   # _AC_F95_NAME_MANGLING
1784   # ---------------------
1785   # Test for the name mangling scheme used by the Fortran 95 compiler.
# Line 1359 | Line 1799 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1799  
1800   # The replacement is empty.
1801  
1802 +
1803 +
1804   # AC_F95_WRAPPERS
1805   # ---------------
1806   # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
# Line 1367 | Line 1809 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1809   # scheme used by the Fortran 95 compiler.
1810   # AC_F95_WRAPPERS
1811  
1812 +
1813   # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1814   # ------------------------------------
1815   # For a Fortran subroutine of given NAME, define a shell variable
# Line 1374 | Line 1817 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1817   # argument is not supplied, it defaults to NAME.
1818   # AC_F95_FUNC
1819  
1377 # what should I build?
1820  
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;
1821  
1822 +
1823 +
1824 +
1825 +
1826 +
1827 +
1828 +
1829 +
1830 +
1831 +
1832 +
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839 +
1840 +
1841 +
1842 +
1843 +
1844 +
1845 +
1846 +
1847 +
1848 +
1849 +
1850 +
1851 +
1852 +
1853 +
1854 +
1855 +
1856 +
1857 +
1858 +
1859 +
1860 +
1861 +
1862 +
1863 +
1864 +
1865 +
1866 +
1867 +
1868 +
1869 +
1870   # set program name
1871   PROGNAME="oopse"
1872  
1873 +
1874 + # there are two ways to do debugging.  One with the --enable-debug flag
1875 + # and one using the DEBUG environment variable
1876 +
1877 + debug=0
1878 + # Check whether --enable-debug or --disable-debug was given.
1879 + if test "${enable_debug+set}" = set; then
1880 +  enableval="$enable_debug"
1881 +  debug=1
1882 + fi;
1883   if test "${DEBUG}"; then
1884  
1885 < cat >>confdefs.h <<\EOF
1886 < #define DEBUG 1
1887 < EOF
1885 > cat >>confdefs.h <<\_ACEOF
1886 > #define debug 1
1887 > _ACEOF
1888  
1889    msg="$msg, debug mode"
1890   fi
1891  
1892 +
1893   # who am i
1894   # Make sure we can run config.sub.
1895   $ac_config_sub sun4 >/dev/null 2>&1 ||
1896 <  { { echo "$as_me:1400: error: cannot run $ac_config_sub" >&5
1896 >  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1897   echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1898     { (exit 1); exit 1; }; }
1899  
1900 < echo "$as_me:1404: checking build system type" >&5
1900 > echo "$as_me:$LINENO: checking build system type" >&5
1901   echo $ECHO_N "checking build system type... $ECHO_C" >&6
1902   if test "${ac_cv_build+set}" = set; then
1903    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1410 | Line 1906 | test -z "$ac_cv_build_alias" &&
1906   test -z "$ac_cv_build_alias" &&
1907    ac_cv_build_alias=`$ac_config_guess`
1908   test -z "$ac_cv_build_alias" &&
1909 <  { { echo "$as_me:1413: error: cannot guess build type; you must specify one" >&5
1909 >  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1910   echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1911     { (exit 1); exit 1; }; }
1912   ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1913 <  { { echo "$as_me:1417: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1914 < echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1913 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1914 > echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1915     { (exit 1); exit 1; }; }
1916  
1917   fi
1918 < echo "$as_me:1422: result: $ac_cv_build" >&5
1918 > echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1919   echo "${ECHO_T}$ac_cv_build" >&6
1920   build=$ac_cv_build
1921   build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1922   build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1923   build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1924  
1925 < echo "$as_me:1429: checking host system type" >&5
1925 >
1926 > echo "$as_me:$LINENO: checking host system type" >&5
1927   echo $ECHO_N "checking host system type... $ECHO_C" >&6
1928   if test "${ac_cv_host+set}" = set; then
1929    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1435 | Line 1932 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1932   test -z "$ac_cv_host_alias" &&
1933    ac_cv_host_alias=$ac_cv_build_alias
1934   ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1935 <  { { echo "$as_me:1438: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1935 >  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1936   echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1937     { (exit 1); exit 1; }; }
1938  
1939   fi
1940 < echo "$as_me:1443: result: $ac_cv_host" >&5
1940 > echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941   echo "${ECHO_T}$ac_cv_host" >&6
1942   host=$ac_cv_host
1943   host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1944   host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1945   host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1946  
1947 +
1948 +
1949   ac_ext=c
1950   ac_cpp='$CPP $CPPFLAGS'
1951   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 1457 | Line 1956 | echo "$as_me:1460: checking for $ac_word" >&5
1956    do
1957      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 < echo "$as_me:1460: checking for $ac_word" >&5
1959 > echo "$as_me:$LINENO: checking for $ac_word" >&5
1960   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961   if test "${ac_cv_prog_CC+set}" = set; then
1962    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1465 | Line 1964 | else
1964    if test -n "$CC"; then
1965    ac_cv_prog_CC="$CC" # Let the user override the test.
1966   else
1967 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
1968 < ac_dummy="$PATH"
1969 < for ac_dir in $ac_dummy; do
1970 <  IFS=$ac_save_IFS
1971 <  test -z "$ac_dir" && ac_dir=.
1972 <  $as_executable_p "$ac_dir/$ac_word" || continue
1973 < ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1974 < echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1975 < break
1967 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 > for as_dir in $PATH
1969 > do
1970 >  IFS=$as_save_IFS
1971 >  test -z "$as_dir" && as_dir=.
1972 >  for ac_exec_ext in '' $ac_executable_extensions; do
1973 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 >    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1975 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 >    break 2
1977 >  fi
1978   done
1979 + done
1980  
1981   fi
1982   fi
1983   CC=$ac_cv_prog_CC
1984   if test -n "$CC"; then
1985 <  echo "$as_me:1483: result: $CC" >&5
1985 >  echo "$as_me:$LINENO: result: $CC" >&5
1986   echo "${ECHO_T}$CC" >&6
1987   else
1988 <  echo "$as_me:1486: result: no" >&5
1988 >  echo "$as_me:$LINENO: result: no" >&5
1989   echo "${ECHO_T}no" >&6
1990   fi
1991  
# Line 1496 | Line 1998 | echo "$as_me:1499: checking for $ac_word" >&5
1998   do
1999    # Extract the first word of "$ac_prog", so it can be a program name with args.
2000   set dummy $ac_prog; ac_word=$2
2001 < echo "$as_me:1499: checking for $ac_word" >&5
2001 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2002   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003   if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 1504 | Line 2006 | else
2006    if test -n "$ac_ct_CC"; then
2007    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008   else
2009 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2010 < ac_dummy="$PATH"
2011 < for ac_dir in $ac_dummy; do
2012 <  IFS=$ac_save_IFS
2013 <  test -z "$ac_dir" && ac_dir=.
2014 <  $as_executable_p "$ac_dir/$ac_word" || continue
2015 < ac_cv_prog_ac_ct_CC="$ac_prog"
2016 < echo "$as_me:1514: found $ac_dir/$ac_word" >&5
2017 < break
2009 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 > for as_dir in $PATH
2011 > do
2012 >  IFS=$as_save_IFS
2013 >  test -z "$as_dir" && as_dir=.
2014 >  for ac_exec_ext in '' $ac_executable_extensions; do
2015 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 >    ac_cv_prog_ac_ct_CC="$ac_prog"
2017 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 >    break 2
2019 >  fi
2020   done
2021 + done
2022  
2023   fi
2024   fi
2025   ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026   if test -n "$ac_ct_CC"; then
2027 <  echo "$as_me:1522: result: $ac_ct_CC" >&5
2027 >  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028   echo "${ECHO_T}$ac_ct_CC" >&6
2029   else
2030 <  echo "$as_me:1525: result: no" >&5
2030 >  echo "$as_me:$LINENO: result: no" >&5
2031   echo "${ECHO_T}no" >&6
2032   fi
2033  
# Line 1532 | Line 2037 | test -z "$CC" && { { echo "$as_me:1535: error: no acce
2037    CC=$ac_ct_CC
2038   fi
2039  
2040 < test -z "$CC" && { { echo "$as_me:1535: error: no acceptable cc found in \$PATH" >&5
2041 < echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2040 >
2041 > test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2042 > See \`config.log' for more details." >&5
2043 > echo "$as_me: error: no acceptable C compiler found in \$PATH
2044 > See \`config.log' for more details." >&2;}
2045     { (exit 1); exit 1; }; }
2046  
2047 + # Provide some information about the compiler.
2048 + echo "$as_me:$LINENO:" \
2049 +     "checking for C compiler version" >&5
2050 + ac_compiler=`set X $ac_compile; echo $2`
2051 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2052 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2053 +  ac_status=$?
2054 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 +  (exit $ac_status); }
2056 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2057 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2058 +  ac_status=$?
2059 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 +  (exit $ac_status); }
2061 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2062 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2063 +  ac_status=$?
2064 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 +  (exit $ac_status); }
2066 +
2067   cat >conftest.$ac_ext <<_ACEOF
2068 < #line 1540 "configure"
2069 < #include "confdefs.h"
2068 > /* confdefs.h.  */
2069 > _ACEOF
2070 > cat confdefs.h >>conftest.$ac_ext
2071 > cat >>conftest.$ac_ext <<_ACEOF
2072 > /* end confdefs.h.  */
2073  
2074   int
2075   main ()
# Line 1549 | Line 2080 | ac_clean_files="$ac_clean_files a.out a.exe"
2080   }
2081   _ACEOF
2082   ac_clean_files_save=$ac_clean_files
2083 < ac_clean_files="$ac_clean_files a.out a.exe"
2083 > ac_clean_files="$ac_clean_files a.out a.exe b.out"
2084   # Try to create an executable without -o first, disregard a.out.
2085 < # It will help us diagnose broken compiler, and finding out an intuition
2085 > # It will help us diagnose broken compilers, and finding out an intuition
2086   # of exeext.
2087 < echo "$as_me:1556: checking for C compiler default output" >&5
2088 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2087 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090 < if { (eval echo "$as_me:1559: \"$ac_link_default\"") >&5
2090 > if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091    (eval $ac_link_default) 2>&5
2092    ac_status=$?
2093 <  echo "$as_me:1562: \$? = $ac_status" >&5
2093 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094    (exit $ac_status); }; then
2095 <  for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
2095 >  # Find the output, starting from the most likely.  This scheme is
2096 > # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2097 > # resort.
2098 >
2099 > # Be careful to initialize this variable, since it used to be cached.
2100 > # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2101 > ac_cv_exeext=
2102 > # b.out is created by i960 compilers.
2103 > for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2104 > do
2105 >  test -f "$ac_file" || continue
2106    case $ac_file in
2107 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2108 <    a.out ) # We found the default executable, but exeext='' is most
2109 <            # certainly right.
2110 <            break;;
2111 <    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2112 <          export ac_cv_exeext
2113 <          break;;
2114 <    * ) break;;
2107 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108 >        ;;
2109 >    conftest.$ac_ext )
2110 >        # This is the source file.
2111 >        ;;
2112 >    [ab].out )
2113 >        # We found the default executable, but exeext='' is most
2114 >        # certainly right.
2115 >        break;;
2116 >    *.* )
2117 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 >        # but it would be cool to find out if it's true.  Does anybody
2120 >        # maintain Libtool? --akim.
2121 >        export ac_cv_exeext
2122 >        break;;
2123 >    * )
2124 >        break;;
2125    esac
2126   done
2127   else
2128    echo "$as_me: failed program was:" >&5
2129 < cat conftest.$ac_ext >&5
2130 < { { echo "$as_me:1579: error: C compiler cannot create executables" >&5
2131 < echo "$as_me: error: C compiler cannot create executables" >&2;}
2129 > sed 's/^/| /' conftest.$ac_ext >&5
2130 >
2131 > { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2132 > See \`config.log' for more details." >&5
2133 > echo "$as_me: error: C compiler cannot create executables
2134 > See \`config.log' for more details." >&2;}
2135     { (exit 77); exit 77; }; }
2136   fi
2137  
2138   ac_exeext=$ac_cv_exeext
2139 < echo "$as_me:1585: result: $ac_file" >&5
2139 > echo "$as_me:$LINENO: result: $ac_file" >&5
2140   echo "${ECHO_T}$ac_file" >&6
2141  
2142   # Check the compiler produces executables we can run.  If not, either
2143   # the compiler is broken, or we cross compile.
2144 < echo "$as_me:1590: checking whether the C compiler works" >&5
2144 > echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2145   echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2146   # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2147   # If not cross compiling, check that we can run a simple program.
2148   if test "$cross_compiling" != yes; then
2149    if { ac_try='./$ac_file'
2150 <  { (eval echo "$as_me:1596: \"$ac_try\"") >&5
2150 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151    (eval $ac_try) 2>&5
2152    ac_status=$?
2153 <  echo "$as_me:1599: \$? = $ac_status" >&5
2153 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154    (exit $ac_status); }; }; then
2155      cross_compiling=no
2156    else
2157      if test "$cross_compiling" = maybe; then
2158          cross_compiling=yes
2159      else
2160 <        { { echo "$as_me:1606: error: cannot run C compiled programs.
2161 < If you meant to cross compile, use \`--host'." >&5
2160 >        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2161 > If you meant to cross compile, use \`--host'.
2162 > See \`config.log' for more details." >&5
2163   echo "$as_me: error: cannot run C compiled programs.
2164 < If you meant to cross compile, use \`--host'." >&2;}
2164 > If you meant to cross compile, use \`--host'.
2165 > See \`config.log' for more details." >&2;}
2166     { (exit 1); exit 1; }; }
2167      fi
2168    fi
2169   fi
2170 < echo "$as_me:1614: result: yes" >&5
2170 > echo "$as_me:$LINENO: result: yes" >&5
2171   echo "${ECHO_T}yes" >&6
2172  
2173 < rm -f a.out a.exe conftest$ac_cv_exeext
2173 > rm -f a.out a.exe conftest$ac_cv_exeext b.out
2174   ac_clean_files=$ac_clean_files_save
2175   # Check the compiler produces executables we can run.  If not, either
2176   # the compiler is broken, or we cross compile.
2177 < echo "$as_me:1621: checking whether we are cross compiling" >&5
2177 > echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178   echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179 < echo "$as_me:1623: result: $cross_compiling" >&5
2179 > echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180   echo "${ECHO_T}$cross_compiling" >&6
2181  
2182 < echo "$as_me:1626: checking for executable suffix" >&5
2183 < echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2184 < if { (eval echo "$as_me:1628: \"$ac_link\"") >&5
2182 > echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183 > echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185    (eval $ac_link) 2>&5
2186    ac_status=$?
2187 <  echo "$as_me:1631: \$? = $ac_status" >&5
2187 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188    (exit $ac_status); }; then
2189    # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190   # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2191   # work properly (i.e., refer to `conftest.exe'), while it won't with
2192   # `rm'.
2193 < for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2193 > for ac_file in conftest.exe conftest conftest.*; do
2194 >  test -f "$ac_file" || continue
2195    case $ac_file in
2196 <    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2196 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 <          export ac_cv_exeext
2199 <          break;;
2198 >          export ac_cv_exeext
2199 >          break;;
2200      * ) break;;
2201    esac
2202   done
2203   else
2204 <  { { echo "$as_me:1647: error: cannot compute EXEEXT: cannot compile and link" >&5
2205 < echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2204 >  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2205 > See \`config.log' for more details." >&5
2206 > echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2207 > See \`config.log' for more details." >&2;}
2208     { (exit 1); exit 1; }; }
2209   fi
2210  
2211   rm -f conftest$ac_cv_exeext
2212 < echo "$as_me:1653: result: $ac_cv_exeext" >&5
2212 > echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2213   echo "${ECHO_T}$ac_cv_exeext" >&6
2214  
2215   rm -f conftest.$ac_ext
2216   EXEEXT=$ac_cv_exeext
2217   ac_exeext=$EXEEXT
2218 < echo "$as_me:1659: checking for object suffix" >&5
2219 < echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2218 > echo "$as_me:$LINENO: checking for suffix of object files" >&5
2219 > echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2220   if test "${ac_cv_objext+set}" = set; then
2221    echo $ECHO_N "(cached) $ECHO_C" >&6
2222   else
2223    cat >conftest.$ac_ext <<_ACEOF
2224 < #line 1665 "configure"
2225 < #include "confdefs.h"
2224 > /* confdefs.h.  */
2225 > _ACEOF
2226 > cat confdefs.h >>conftest.$ac_ext
2227 > cat >>conftest.$ac_ext <<_ACEOF
2228 > /* end confdefs.h.  */
2229  
2230   int
2231   main ()
# Line 1674 | Line 2236 | if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2236   }
2237   _ACEOF
2238   rm -f conftest.o conftest.obj
2239 < if { (eval echo "$as_me:1677: \"$ac_compile\"") >&5
2239 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240    (eval $ac_compile) 2>&5
2241    ac_status=$?
2242 <  echo "$as_me:1680: \$? = $ac_status" >&5
2242 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243    (exit $ac_status); }; then
2244    for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245    case $ac_file in
2246 <    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2246 >    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2247      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2248         break;;
2249    esac
2250   done
2251   else
2252    echo "$as_me: failed program was:" >&5
2253 < cat conftest.$ac_ext >&5
2254 < { { echo "$as_me:1692: error: cannot compute OBJEXT: cannot compile" >&5
2255 < echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2253 > sed 's/^/| /' conftest.$ac_ext >&5
2254 >
2255 > { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2256 > See \`config.log' for more details." >&5
2257 > echo "$as_me: error: cannot compute suffix of object files: cannot compile
2258 > See \`config.log' for more details." >&2;}
2259     { (exit 1); exit 1; }; }
2260   fi
2261  
2262   rm -f conftest.$ac_cv_objext conftest.$ac_ext
2263   fi
2264 < echo "$as_me:1699: result: $ac_cv_objext" >&5
2264 > echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2265   echo "${ECHO_T}$ac_cv_objext" >&6
2266   OBJEXT=$ac_cv_objext
2267   ac_objext=$OBJEXT
2268 < echo "$as_me:1703: checking whether we are using the GNU C compiler" >&5
2268 > echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2269   echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2270   if test "${ac_cv_c_compiler_gnu+set}" = set; then
2271    echo $ECHO_N "(cached) $ECHO_C" >&6
2272   else
2273    cat >conftest.$ac_ext <<_ACEOF
2274 < #line 1709 "configure"
2275 < #include "confdefs.h"
2274 > /* confdefs.h.  */
2275 > _ACEOF
2276 > cat confdefs.h >>conftest.$ac_ext
2277 > cat >>conftest.$ac_ext <<_ACEOF
2278 > /* end confdefs.h.  */
2279  
2280   int
2281   main ()
# Line 1721 | Line 2289 | if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2289   }
2290   _ACEOF
2291   rm -f conftest.$ac_objext
2292 < if { (eval echo "$as_me:1724: \"$ac_compile\"") >&5
2293 <  (eval $ac_compile) 2>&5
2292 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 >  (eval $ac_compile) 2>conftest.er1
2294    ac_status=$?
2295 <  echo "$as_me:1727: \$? = $ac_status" >&5
2295 >  grep -v '^ *+' conftest.er1 >conftest.err
2296 >  rm -f conftest.er1
2297 >  cat conftest.err >&5
2298 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299    (exit $ac_status); } &&
2300 <         { ac_try='test -s conftest.$ac_objext'
2301 <  { (eval echo "$as_me:1730: \"$ac_try\"") >&5
2300 >         { ac_try='test -z "$ac_c_werror_flag"
2301 >                         || test ! -s conftest.err'
2302 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303    (eval $ac_try) 2>&5
2304    ac_status=$?
2305 <  echo "$as_me:1733: \$? = $ac_status" >&5
2305 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 >  (exit $ac_status); }; } &&
2307 >         { ac_try='test -s conftest.$ac_objext'
2308 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 >  (eval $ac_try) 2>&5
2310 >  ac_status=$?
2311 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312    (exit $ac_status); }; }; then
2313    ac_compiler_gnu=yes
2314   else
2315    echo "$as_me: failed program was:" >&5
2316 < cat conftest.$ac_ext >&5
2316 > sed 's/^/| /' conftest.$ac_ext >&5
2317 >
2318   ac_compiler_gnu=no
2319   fi
2320 < rm -f conftest.$ac_objext conftest.$ac_ext
2320 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2322  
2323   fi
2324 < echo "$as_me:1745: result: $ac_cv_c_compiler_gnu" >&5
2324 > echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2325   echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2326   GCC=`test $ac_compiler_gnu = yes && echo yes`
2327   ac_test_CFLAGS=${CFLAGS+set}
2328   ac_save_CFLAGS=$CFLAGS
2329   CFLAGS="-g"
2330 < echo "$as_me:1751: checking whether $CC accepts -g" >&5
2330 > echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2331   echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2332   if test "${ac_cv_prog_cc_g+set}" = set; then
2333    echo $ECHO_N "(cached) $ECHO_C" >&6
2334   else
2335    cat >conftest.$ac_ext <<_ACEOF
2336 < #line 1757 "configure"
2337 < #include "confdefs.h"
2336 > /* confdefs.h.  */
2337 > _ACEOF
2338 > cat confdefs.h >>conftest.$ac_ext
2339 > cat >>conftest.$ac_ext <<_ACEOF
2340 > /* end confdefs.h.  */
2341  
2342   int
2343   main ()
# Line 1766 | Line 2348 | if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2348   }
2349   _ACEOF
2350   rm -f conftest.$ac_objext
2351 < if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
2352 <  (eval $ac_compile) 2>&5
2351 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 >  (eval $ac_compile) 2>conftest.er1
2353    ac_status=$?
2354 <  echo "$as_me:1772: \$? = $ac_status" >&5
2354 >  grep -v '^ *+' conftest.er1 >conftest.err
2355 >  rm -f conftest.er1
2356 >  cat conftest.err >&5
2357 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358    (exit $ac_status); } &&
2359 <         { ac_try='test -s conftest.$ac_objext'
2360 <  { (eval echo "$as_me:1775: \"$ac_try\"") >&5
2359 >         { ac_try='test -z "$ac_c_werror_flag"
2360 >                         || test ! -s conftest.err'
2361 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362    (eval $ac_try) 2>&5
2363    ac_status=$?
2364 <  echo "$as_me:1778: \$? = $ac_status" >&5
2364 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 >  (exit $ac_status); }; } &&
2366 >         { ac_try='test -s conftest.$ac_objext'
2367 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 >  (eval $ac_try) 2>&5
2369 >  ac_status=$?
2370 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371    (exit $ac_status); }; }; then
2372    ac_cv_prog_cc_g=yes
2373   else
2374    echo "$as_me: failed program was:" >&5
2375 < cat conftest.$ac_ext >&5
2375 > sed 's/^/| /' conftest.$ac_ext >&5
2376 >
2377   ac_cv_prog_cc_g=no
2378   fi
2379 < rm -f conftest.$ac_objext conftest.$ac_ext
2379 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380   fi
2381 < echo "$as_me:1788: result: $ac_cv_prog_cc_g" >&5
2381 > echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2382   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2383   if test "$ac_test_CFLAGS" = set; then
2384    CFLAGS=$ac_save_CFLAGS
# Line 1801 | Line 2394 | fi
2394    else
2395      CFLAGS=
2396    fi
2397 + fi
2398 + echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2399 + echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2400 + if test "${ac_cv_prog_cc_stdc+set}" = set; then
2401 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2402 + else
2403 +  ac_cv_prog_cc_stdc=no
2404 + ac_save_CC=$CC
2405 + cat >conftest.$ac_ext <<_ACEOF
2406 + /* confdefs.h.  */
2407 + _ACEOF
2408 + cat confdefs.h >>conftest.$ac_ext
2409 + cat >>conftest.$ac_ext <<_ACEOF
2410 + /* end confdefs.h.  */
2411 + #include <stdarg.h>
2412 + #include <stdio.h>
2413 + #include <sys/types.h>
2414 + #include <sys/stat.h>
2415 + /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2416 + struct buf { int x; };
2417 + FILE * (*rcsopen) (struct buf *, struct stat *, int);
2418 + static char *e (p, i)
2419 +     char **p;
2420 +     int i;
2421 + {
2422 +  return p[i];
2423 + }
2424 + static char *f (char * (*g) (char **, int), char **p, ...)
2425 + {
2426 +  char *s;
2427 +  va_list v;
2428 +  va_start (v,p);
2429 +  s = g (p, va_arg (v,int));
2430 +  va_end (v);
2431 +  return s;
2432 + }
2433 +
2434 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435 +   function prototypes and stuff, but not '\xHH' hex character constants.
2436 +   These don't provoke an error unfortunately, instead are silently treated
2437 +   as 'x'.  The following induces an error, until -std1 is added to get
2438 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2439 +   array size at least.  It's necessary to write '\x00'==0 to get something
2440 +   that's true only with -std1.  */
2441 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2442 +
2443 + int test (int i, double x);
2444 + struct s1 {int (*f) (int a);};
2445 + struct s2 {int (*f) (double a);};
2446 + int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2447 + int argc;
2448 + char **argv;
2449 + int
2450 + main ()
2451 + {
2452 + return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2453 +  ;
2454 +  return 0;
2455 + }
2456 + _ACEOF
2457 + # Don't try gcc -ansi; that turns off useful extensions and
2458 + # breaks some systems' header files.
2459 + # AIX                   -qlanglvl=ansi
2460 + # Ultrix and OSF/1      -std1
2461 + # HP-UX 10.20 and later -Ae
2462 + # HP-UX older versions  -Aa -D_HPUX_SOURCE
2463 + # SVR4                  -Xc -D__EXTENSIONS__
2464 + for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2465 + do
2466 +  CC="$ac_save_CC $ac_arg"
2467 +  rm -f conftest.$ac_objext
2468 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 +  (eval $ac_compile) 2>conftest.er1
2470 +  ac_status=$?
2471 +  grep -v '^ *+' conftest.er1 >conftest.err
2472 +  rm -f conftest.er1
2473 +  cat conftest.err >&5
2474 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 +  (exit $ac_status); } &&
2476 +         { ac_try='test -z "$ac_c_werror_flag"
2477 +                         || test ! -s conftest.err'
2478 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 +  (eval $ac_try) 2>&5
2480 +  ac_status=$?
2481 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 +  (exit $ac_status); }; } &&
2483 +         { ac_try='test -s conftest.$ac_objext'
2484 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 +  (eval $ac_try) 2>&5
2486 +  ac_status=$?
2487 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 +  (exit $ac_status); }; }; then
2489 +  ac_cv_prog_cc_stdc=$ac_arg
2490 + break
2491 + else
2492 +  echo "$as_me: failed program was:" >&5
2493 + sed 's/^/| /' conftest.$ac_ext >&5
2494 +
2495   fi
2496 + rm -f conftest.err conftest.$ac_objext
2497 + done
2498 + rm -f conftest.$ac_ext conftest.$ac_objext
2499 + CC=$ac_save_CC
2500 +
2501 + fi
2502 +
2503 + case "x$ac_cv_prog_cc_stdc" in
2504 +  x|xno)
2505 +    echo "$as_me:$LINENO: result: none needed" >&5
2506 + echo "${ECHO_T}none needed" >&6 ;;
2507 +  *)
2508 +    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2509 + echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2510 +    CC="$CC $ac_cv_prog_cc_stdc" ;;
2511 + esac
2512 +
2513   # Some people use a C++ compiler to compile C.  Since we use `exit',
2514   # in C++ we need to declare it.  In case someone uses the same compiler
2515   # for both compiling C and C++ we need to have the C++ compiler decide
# Line 1812 | Line 2520 | if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2520   #endif
2521   _ACEOF
2522   rm -f conftest.$ac_objext
2523 < if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
2524 <  (eval $ac_compile) 2>&5
2523 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 >  (eval $ac_compile) 2>conftest.er1
2525    ac_status=$?
2526 <  echo "$as_me:1818: \$? = $ac_status" >&5
2526 >  grep -v '^ *+' conftest.er1 >conftest.err
2527 >  rm -f conftest.er1
2528 >  cat conftest.err >&5
2529 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530    (exit $ac_status); } &&
2531 <         { ac_try='test -s conftest.$ac_objext'
2532 <  { (eval echo "$as_me:1821: \"$ac_try\"") >&5
2531 >         { ac_try='test -z "$ac_c_werror_flag"
2532 >                         || test ! -s conftest.err'
2533 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534    (eval $ac_try) 2>&5
2535    ac_status=$?
2536 <  echo "$as_me:1824: \$? = $ac_status" >&5
2536 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 >  (exit $ac_status); }; } &&
2538 >         { ac_try='test -s conftest.$ac_objext'
2539 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 >  (eval $ac_try) 2>&5
2541 >  ac_status=$?
2542 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543    (exit $ac_status); }; }; then
2544    for ac_declaration in \
2545 <   ''\
1828 <   '#include <stdlib.h>' \
2545 >   '' \
2546     'extern "C" void std::exit (int) throw (); using std::exit;' \
2547     'extern "C" void std::exit (int); using std::exit;' \
2548     'extern "C" void exit (int) throw ();' \
# Line 1833 | Line 2550 | do
2550     'void exit (int);'
2551   do
2552    cat >conftest.$ac_ext <<_ACEOF
2553 < #line 1836 "configure"
2554 < #include "confdefs.h"
2555 < #include <stdlib.h>
2553 > /* confdefs.h.  */
2554 > _ACEOF
2555 > cat confdefs.h >>conftest.$ac_ext
2556 > cat >>conftest.$ac_ext <<_ACEOF
2557 > /* end confdefs.h.  */
2558   $ac_declaration
2559 + #include <stdlib.h>
2560   int
2561   main ()
2562   {
# Line 1846 | Line 2566 | if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2566   }
2567   _ACEOF
2568   rm -f conftest.$ac_objext
2569 < if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
2570 <  (eval $ac_compile) 2>&5
2569 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 >  (eval $ac_compile) 2>conftest.er1
2571    ac_status=$?
2572 <  echo "$as_me:1852: \$? = $ac_status" >&5
2572 >  grep -v '^ *+' conftest.er1 >conftest.err
2573 >  rm -f conftest.er1
2574 >  cat conftest.err >&5
2575 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576    (exit $ac_status); } &&
2577 <         { ac_try='test -s conftest.$ac_objext'
2578 <  { (eval echo "$as_me:1855: \"$ac_try\"") >&5
2577 >         { ac_try='test -z "$ac_c_werror_flag"
2578 >                         || test ! -s conftest.err'
2579 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580    (eval $ac_try) 2>&5
2581    ac_status=$?
2582 <  echo "$as_me:1858: \$? = $ac_status" >&5
2582 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 >  (exit $ac_status); }; } &&
2584 >         { ac_try='test -s conftest.$ac_objext'
2585 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 >  (eval $ac_try) 2>&5
2587 >  ac_status=$?
2588 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589    (exit $ac_status); }; }; then
2590    :
2591   else
2592    echo "$as_me: failed program was:" >&5
2593 < cat conftest.$ac_ext >&5
2593 > sed 's/^/| /' conftest.$ac_ext >&5
2594 >
2595   continue
2596   fi
2597 < rm -f conftest.$ac_objext conftest.$ac_ext
2597 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598    cat >conftest.$ac_ext <<_ACEOF
2599 < #line 1868 "configure"
2600 < #include "confdefs.h"
2599 > /* confdefs.h.  */
2600 > _ACEOF
2601 > cat confdefs.h >>conftest.$ac_ext
2602 > cat >>conftest.$ac_ext <<_ACEOF
2603 > /* end confdefs.h.  */
2604   $ac_declaration
2605   int
2606   main ()
# Line 1877 | Line 2611 | if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2611   }
2612   _ACEOF
2613   rm -f conftest.$ac_objext
2614 < if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
2615 <  (eval $ac_compile) 2>&5
2614 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 >  (eval $ac_compile) 2>conftest.er1
2616    ac_status=$?
2617 <  echo "$as_me:1883: \$? = $ac_status" >&5
2617 >  grep -v '^ *+' conftest.er1 >conftest.err
2618 >  rm -f conftest.er1
2619 >  cat conftest.err >&5
2620 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621    (exit $ac_status); } &&
2622 <         { ac_try='test -s conftest.$ac_objext'
2623 <  { (eval echo "$as_me:1886: \"$ac_try\"") >&5
2622 >         { ac_try='test -z "$ac_c_werror_flag"
2623 >                         || test ! -s conftest.err'
2624 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625    (eval $ac_try) 2>&5
2626    ac_status=$?
2627 <  echo "$as_me:1889: \$? = $ac_status" >&5
2627 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 >  (exit $ac_status); }; } &&
2629 >         { ac_try='test -s conftest.$ac_objext'
2630 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 >  (eval $ac_try) 2>&5
2632 >  ac_status=$?
2633 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634    (exit $ac_status); }; }; then
2635    break
2636   else
2637    echo "$as_me: failed program was:" >&5
2638 < cat conftest.$ac_ext >&5
2638 > sed 's/^/| /' conftest.$ac_ext >&5
2639 >
2640   fi
2641 < rm -f conftest.$ac_objext conftest.$ac_ext
2641 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642   done
2643 < echo '#ifdef __cplusplus' >>confdefs.h
2644 < echo $ac_declaration      >>confdefs.h
2645 < echo '#endif'             >>confdefs.h
2643 > rm -f conftest*
2644 > if test -n "$ac_declaration"; then
2645 >  echo '#ifdef __cplusplus' >>confdefs.h
2646 >  echo $ac_declaration      >>confdefs.h
2647 >  echo '#endif'             >>confdefs.h
2648 > fi
2649  
2650   else
2651    echo "$as_me: failed program was:" >&5
2652 < cat conftest.$ac_ext >&5
2652 > sed 's/^/| /' conftest.$ac_ext >&5
2653 >
2654   fi
2655 < rm -f conftest.$ac_objext conftest.$ac_ext
2655 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656   ac_ext=c
2657   ac_cpp='$CPP $CPPFLAGS'
2658   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661  
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
2662  
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
2663   ac_ext=cc
2664   ac_cpp='$CXXCPP $CPPFLAGS'
2665   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2668   if test -n "$ac_tool_prefix"; then
2669 <  for ac_prog in $CCC icpc icc xlC g++ c++
2669 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2670    do
2671      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 < echo "$as_me:2339: checking for $ac_word" >&5
2673 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2674   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675   if test "${ac_cv_prog_CXX+set}" = set; then
2676    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2344 | Line 2678 | else
2678    if test -n "$CXX"; then
2679    ac_cv_prog_CXX="$CXX" # Let the user override the test.
2680   else
2681 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2682 < ac_dummy="$PATH"
2683 < for ac_dir in $ac_dummy; do
2684 <  IFS=$ac_save_IFS
2685 <  test -z "$ac_dir" && ac_dir=.
2686 <  $as_executable_p "$ac_dir/$ac_word" || continue
2687 < ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2688 < echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2689 < break
2681 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 > for as_dir in $PATH
2683 > do
2684 >  IFS=$as_save_IFS
2685 >  test -z "$as_dir" && as_dir=.
2686 >  for ac_exec_ext in '' $ac_executable_extensions; do
2687 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 >    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2689 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 >    break 2
2691 >  fi
2692   done
2693 + done
2694  
2695   fi
2696   fi
2697   CXX=$ac_cv_prog_CXX
2698   if test -n "$CXX"; then
2699 <  echo "$as_me:2362: result: $CXX" >&5
2699 >  echo "$as_me:$LINENO: result: $CXX" >&5
2700   echo "${ECHO_T}$CXX" >&6
2701   else
2702 <  echo "$as_me:2365: result: no" >&5
2702 >  echo "$as_me:$LINENO: result: no" >&5
2703   echo "${ECHO_T}no" >&6
2704   fi
2705  
# Line 2371 | Line 2708 | if test -z "$CXX"; then
2708   fi
2709   if test -z "$CXX"; then
2710    ac_ct_CXX=$CXX
2711 <  for ac_prog in $CCC icpc icc xlC g++ c++
2711 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2712   do
2713    # Extract the first word of "$ac_prog", so it can be a program name with args.
2714   set dummy $ac_prog; ac_word=$2
2715 < echo "$as_me:2378: checking for $ac_word" >&5
2715 > echo "$as_me:$LINENO: checking for $ac_word" >&5
2716   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2717   if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2718    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 2383 | Line 2720 | else
2720    if test -n "$ac_ct_CXX"; then
2721    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2722   else
2723 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
2724 < ac_dummy="$PATH"
2725 < for ac_dir in $ac_dummy; do
2726 <  IFS=$ac_save_IFS
2727 <  test -z "$ac_dir" && ac_dir=.
2728 <  $as_executable_p "$ac_dir/$ac_word" || continue
2729 < ac_cv_prog_ac_ct_CXX="$ac_prog"
2730 < echo "$as_me:2393: found $ac_dir/$ac_word" >&5
2731 < break
2723 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 > for as_dir in $PATH
2725 > do
2726 >  IFS=$as_save_IFS
2727 >  test -z "$as_dir" && as_dir=.
2728 >  for ac_exec_ext in '' $ac_executable_extensions; do
2729 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 >    ac_cv_prog_ac_ct_CXX="$ac_prog"
2731 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 >    break 2
2733 >  fi
2734   done
2735 + done
2736  
2737   fi
2738   fi
2739   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2740   if test -n "$ac_ct_CXX"; then
2741 <  echo "$as_me:2401: result: $ac_ct_CXX" >&5
2741 >  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2742   echo "${ECHO_T}$ac_ct_CXX" >&6
2743   else
2744 <  echo "$as_me:2404: result: no" >&5
2744 >  echo "$as_me:$LINENO: result: no" >&5
2745   echo "${ECHO_T}no" >&6
2746   fi
2747  
# Line 2412 | Line 2752 | echo "$as_me:2415: checking whether we are using the G
2752    CXX=$ac_ct_CXX
2753   fi
2754  
2755 < echo "$as_me:2415: checking whether we are using the GNU C++ compiler" >&5
2755 >
2756 > # Provide some information about the compiler.
2757 > echo "$as_me:$LINENO:" \
2758 >     "checking for C++ compiler version" >&5
2759 > ac_compiler=`set X $ac_compile; echo $2`
2760 > { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2761 >  (eval $ac_compiler --version </dev/null >&5) 2>&5
2762 >  ac_status=$?
2763 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 >  (exit $ac_status); }
2765 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2766 >  (eval $ac_compiler -v </dev/null >&5) 2>&5
2767 >  ac_status=$?
2768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 >  (exit $ac_status); }
2770 > { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2771 >  (eval $ac_compiler -V </dev/null >&5) 2>&5
2772 >  ac_status=$?
2773 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 >  (exit $ac_status); }
2775 >
2776 > echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2777   echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2778   if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2779    echo $ECHO_N "(cached) $ECHO_C" >&6
2780   else
2781    cat >conftest.$ac_ext <<_ACEOF
2782 < #line 2421 "configure"
2783 < #include "confdefs.h"
2782 > /* confdefs.h.  */
2783 > _ACEOF
2784 > cat confdefs.h >>conftest.$ac_ext
2785 > cat >>conftest.$ac_ext <<_ACEOF
2786 > /* end confdefs.h.  */
2787  
2788   int
2789   main ()
# Line 2433 | Line 2797 | if { (eval echo "$as_me:2436: \"$ac_compile\"") >&5
2797   }
2798   _ACEOF
2799   rm -f conftest.$ac_objext
2800 < if { (eval echo "$as_me:2436: \"$ac_compile\"") >&5
2801 <  (eval $ac_compile) 2>&5
2800 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 >  (eval $ac_compile) 2>conftest.er1
2802    ac_status=$?
2803 <  echo "$as_me:2439: \$? = $ac_status" >&5
2803 >  grep -v '^ *+' conftest.er1 >conftest.err
2804 >  rm -f conftest.er1
2805 >  cat conftest.err >&5
2806 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807    (exit $ac_status); } &&
2808 <         { ac_try='test -s conftest.$ac_objext'
2809 <  { (eval echo "$as_me:2442: \"$ac_try\"") >&5
2808 >         { ac_try='test -z "$ac_cxx_werror_flag"
2809 >                         || test ! -s conftest.err'
2810 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811    (eval $ac_try) 2>&5
2812    ac_status=$?
2813 <  echo "$as_me:2445: \$? = $ac_status" >&5
2813 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 >  (exit $ac_status); }; } &&
2815 >         { ac_try='test -s conftest.$ac_objext'
2816 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 >  (eval $ac_try) 2>&5
2818 >  ac_status=$?
2819 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820    (exit $ac_status); }; }; then
2821    ac_compiler_gnu=yes
2822   else
2823    echo "$as_me: failed program was:" >&5
2824 < cat conftest.$ac_ext >&5
2824 > sed 's/^/| /' conftest.$ac_ext >&5
2825 >
2826   ac_compiler_gnu=no
2827   fi
2828 < rm -f conftest.$ac_objext conftest.$ac_ext
2828 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2830  
2831   fi
2832 < echo "$as_me:2457: result: $ac_cv_cxx_compiler_gnu" >&5
2832 > echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2833   echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2834   GXX=`test $ac_compiler_gnu = yes && echo yes`
2835   ac_test_CXXFLAGS=${CXXFLAGS+set}
2836   ac_save_CXXFLAGS=$CXXFLAGS
2837   CXXFLAGS="-g"
2838 < echo "$as_me:2463: checking whether $CXX accepts -g" >&5
2838 > echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2839   echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2840   if test "${ac_cv_prog_cxx_g+set}" = set; then
2841    echo $ECHO_N "(cached) $ECHO_C" >&6
2842   else
2843    cat >conftest.$ac_ext <<_ACEOF
2844 < #line 2469 "configure"
2845 < #include "confdefs.h"
2844 > /* confdefs.h.  */
2845 > _ACEOF
2846 > cat confdefs.h >>conftest.$ac_ext
2847 > cat >>conftest.$ac_ext <<_ACEOF
2848 > /* end confdefs.h.  */
2849  
2850   int
2851   main ()
# Line 2478 | Line 2856 | if { (eval echo "$as_me:2481: \"$ac_compile\"") >&5
2856   }
2857   _ACEOF
2858   rm -f conftest.$ac_objext
2859 < if { (eval echo "$as_me:2481: \"$ac_compile\"") >&5
2860 <  (eval $ac_compile) 2>&5
2859 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 >  (eval $ac_compile) 2>conftest.er1
2861    ac_status=$?
2862 <  echo "$as_me:2484: \$? = $ac_status" >&5
2862 >  grep -v '^ *+' conftest.er1 >conftest.err
2863 >  rm -f conftest.er1
2864 >  cat conftest.err >&5
2865 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866    (exit $ac_status); } &&
2867 <         { ac_try='test -s conftest.$ac_objext'
2868 <  { (eval echo "$as_me:2487: \"$ac_try\"") >&5
2867 >         { ac_try='test -z "$ac_cxx_werror_flag"
2868 >                         || test ! -s conftest.err'
2869 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870    (eval $ac_try) 2>&5
2871    ac_status=$?
2872 <  echo "$as_me:2490: \$? = $ac_status" >&5
2872 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 >  (exit $ac_status); }; } &&
2874 >         { ac_try='test -s conftest.$ac_objext'
2875 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 >  (eval $ac_try) 2>&5
2877 >  ac_status=$?
2878 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879    (exit $ac_status); }; }; then
2880    ac_cv_prog_cxx_g=yes
2881   else
2882    echo "$as_me: failed program was:" >&5
2883 < cat conftest.$ac_ext >&5
2883 > sed 's/^/| /' conftest.$ac_ext >&5
2884 >
2885   ac_cv_prog_cxx_g=no
2886   fi
2887 < rm -f conftest.$ac_objext conftest.$ac_ext
2887 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888   fi
2889 < echo "$as_me:2500: result: $ac_cv_prog_cxx_g" >&5
2889 > echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2890   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2891   if test "$ac_test_CXXFLAGS" = set; then
2892    CXXFLAGS=$ac_save_CXXFLAGS
# Line 2515 | Line 2904 | for ac_declaration in \
2904    fi
2905   fi
2906   for ac_declaration in \
2907 <   ''\
2519 <   '#include <stdlib.h>' \
2907 >   '' \
2908     'extern "C" void std::exit (int) throw (); using std::exit;' \
2909     'extern "C" void std::exit (int); using std::exit;' \
2910     'extern "C" void exit (int) throw ();' \
# Line 2524 | Line 2912 | do
2912     'void exit (int);'
2913   do
2914    cat >conftest.$ac_ext <<_ACEOF
2915 < #line 2527 "configure"
2916 < #include "confdefs.h"
2917 < #include <stdlib.h>
2915 > /* confdefs.h.  */
2916 > _ACEOF
2917 > cat confdefs.h >>conftest.$ac_ext
2918 > cat >>conftest.$ac_ext <<_ACEOF
2919 > /* end confdefs.h.  */
2920   $ac_declaration
2921 + #include <stdlib.h>
2922   int
2923   main ()
2924   {
# Line 2537 | Line 2928 | if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2928   }
2929   _ACEOF
2930   rm -f conftest.$ac_objext
2931 < if { (eval echo "$as_me:2540: \"$ac_compile\"") >&5
2932 <  (eval $ac_compile) 2>&5
2931 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 >  (eval $ac_compile) 2>conftest.er1
2933    ac_status=$?
2934 <  echo "$as_me:2543: \$? = $ac_status" >&5
2934 >  grep -v '^ *+' conftest.er1 >conftest.err
2935 >  rm -f conftest.er1
2936 >  cat conftest.err >&5
2937 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938    (exit $ac_status); } &&
2939 <         { ac_try='test -s conftest.$ac_objext'
2940 <  { (eval echo "$as_me:2546: \"$ac_try\"") >&5
2941 <  (eval $ac_try) 2>&5
2942 <  ac_status=$?
2943 <  echo "$as_me:2549: \$? = $ac_status" >&5
2939 >         { ac_try='test -z "$ac_cxx_werror_flag"
2940 >                         || test ! -s conftest.err'
2941 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 >  (eval $ac_try) 2>&5
2943 >  ac_status=$?
2944 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 >  (exit $ac_status); }; } &&
2946 >         { ac_try='test -s conftest.$ac_objext'
2947 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 >  (eval $ac_try) 2>&5
2949 >  ac_status=$?
2950 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951    (exit $ac_status); }; }; then
2952    :
2953   else
2954    echo "$as_me: failed program was:" >&5
2955 < cat conftest.$ac_ext >&5
2955 > sed 's/^/| /' conftest.$ac_ext >&5
2956 >
2957   continue
2958   fi
2959 < rm -f conftest.$ac_objext conftest.$ac_ext
2959 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960    cat >conftest.$ac_ext <<_ACEOF
2961 < #line 2559 "configure"
2962 < #include "confdefs.h"
2961 > /* confdefs.h.  */
2962 > _ACEOF
2963 > cat confdefs.h >>conftest.$ac_ext
2964 > cat >>conftest.$ac_ext <<_ACEOF
2965 > /* end confdefs.h.  */
2966   $ac_declaration
2967   int
2968   main ()
# Line 2568 | Line 2973 | if { (eval echo "$as_me:2571: \"$ac_compile\"") >&5
2973   }
2974   _ACEOF
2975   rm -f conftest.$ac_objext
2976 < if { (eval echo "$as_me:2571: \"$ac_compile\"") >&5
2977 <  (eval $ac_compile) 2>&5
2976 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 >  (eval $ac_compile) 2>conftest.er1
2978    ac_status=$?
2979 <  echo "$as_me:2574: \$? = $ac_status" >&5
2979 >  grep -v '^ *+' conftest.er1 >conftest.err
2980 >  rm -f conftest.er1
2981 >  cat conftest.err >&5
2982 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983    (exit $ac_status); } &&
2984 <         { ac_try='test -s conftest.$ac_objext'
2985 <  { (eval echo "$as_me:2577: \"$ac_try\"") >&5
2984 >         { ac_try='test -z "$ac_cxx_werror_flag"
2985 >                         || test ! -s conftest.err'
2986 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987    (eval $ac_try) 2>&5
2988    ac_status=$?
2989 <  echo "$as_me:2580: \$? = $ac_status" >&5
2989 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 >  (exit $ac_status); }; } &&
2991 >         { ac_try='test -s conftest.$ac_objext'
2992 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 >  (eval $ac_try) 2>&5
2994 >  ac_status=$?
2995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996    (exit $ac_status); }; }; then
2997    break
2998   else
2999    echo "$as_me: failed program was:" >&5
3000 < cat conftest.$ac_ext >&5
3000 > sed 's/^/| /' conftest.$ac_ext >&5
3001 >
3002   fi
3003 < rm -f conftest.$ac_objext conftest.$ac_ext
3003 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004   done
3005 < echo '#ifdef __cplusplus' >>confdefs.h
3006 < echo $ac_declaration      >>confdefs.h
3007 < echo '#endif'             >>confdefs.h
3005 > rm -f conftest*
3006 > if test -n "$ac_declaration"; then
3007 >  echo '#ifdef __cplusplus' >>confdefs.h
3008 >  echo $ac_declaration      >>confdefs.h
3009 >  echo '#endif'             >>confdefs.h
3010 > fi
3011  
3012   ac_ext=c
3013   ac_cpp='$CPP $CPPFLAGS'
# Line 2596 | Line 3015 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017  
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
3018  
3019 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3020 <                    CXXFLAGS="-O"
3021 <                fi;;
3022 <  sparc-solaris2*) if test "$CXX" = CC; then
3023 <                    CXXFLAGS="-native -fast -xO5 -dalign"
3024 <                 fi;;
3025 <   rs6000*-aix*)  if test "$CXX" = xlC; then
3026 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3027 <                fi;;
3028 <   powerpc*-aix*)
3029 <        if test "$CXX" = xlC; then
3030 <                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"
3019 > OOPSE_TEMPLATE_FLAGS=""
3020 > if test $ac_cv_cxx_compiler_gnu = no; then
3021 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3022 > echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3023 >  echo 'void f(){}' > conftest.cc
3024 >  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3025 >    echo "$as_me:$LINENO: result: yes" >&5
3026 > echo "${ECHO_T}yes" >&6
3027 >    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3028 >  else
3029 >    echo "$as_me:$LINENO: result: no" >&5
3030 > echo "${ECHO_T}no" >&6
3031    fi
3032 <
3033 <  # test for gcc-specific flags:
3034 <  if test $ac_cv_c_compiler_gnu = yes; then
3035 <    # -malign-double for x86 systems
3036 <
3037 < echo "$as_me:2651: checking whether ${CXX-c++} accepts -malign-double" >&5
3038 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3039 < if test "${ac_align_double+set}" = set; then
3040 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3041 < else
3042 <  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 <
3032 >  rm -f conftest*
3033 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3034 > echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3035 >  echo 'void f(){}' > conftest.cc
3036 >  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3037 >    echo "$as_me:$LINENO: result: yes" >&5
3038 > echo "${ECHO_T}yes" >&6
3039 >    OOPSE_TEMPLATE_FLAGS="-instances=static"
3040 >  else
3041 >    echo "$as_me:$LINENO: result: no" >&5
3042 > echo "${ECHO_T}no" >&6
3043    fi
3044 <
3045 <  CPU_FLAGS=""
3046 <  if test "$GCC" = "yes"; then
3047 <                  case "${host_cpu}" in
3048 <          i586*)
3049 <
3050 < echo "$as_me:2708: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3051 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3052 < if test "${ac_cpu_pentium+set}" = set; then
3053 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3054 < 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
3044 >  rm -f conftest*
3045 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3046 > echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3047 >  echo 'void f(){}' > conftest.cc
3048 >  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3049 >    echo "$as_me:$LINENO: result: yes" >&5
3050 > echo "${ECHO_T}yes" >&6
3051 >    OOPSE_TEMPLATE_FLAGS="-pto"
3052 >  else
3053 >    echo "$as_me:$LINENO: result: no" >&5
3054 > echo "${ECHO_T}no" >&6
3055    fi
3056 +  rm -f conftest*
3057 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3058 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3059 +  echo 'void f(){}' > conftest.cc
3060 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3061 +    echo "$as_me:$LINENO: result: yes" >&5
3062 + echo "${ECHO_T}yes" >&6
3063  
2956  if test -n "$CPU_FLAGS"; then
2957        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
2958  fi
3064  
3065 <  if test -z "$CXXFLAGS"; then
3066 <        echo ""
3067 <        echo "**********************************************************"
3068 <        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"
3065 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3066 >  else
3067 >    echo "$as_me:$LINENO: result: no" >&5
3068 > echo "${ECHO_T}no" >&6
3069    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
3070   fi
2982 rm -f conftest*
3071  
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        :
3072  
2990 else
2991        :
3073  
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=""
3074  
3002 fi
3003
3004 fi
3005
3075   ac_ext=f90
3076   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3077   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3079   if test -n "$ac_tool_prefix"; then
3080 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3080 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3081    do
3082      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 < echo "$as_me:3015: checking for $ac_word" >&5
3084 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3085   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086   if test "${ac_cv_prog_F90+set}" = set; then
3087    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3020 | Line 3089 | else
3089    if test -n "$F90"; then
3090    ac_cv_prog_F90="$F90" # Let the user override the test.
3091   else
3092 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3093 < ac_dummy="$PATH"
3094 < for ac_dir in $ac_dummy; do
3095 <  IFS=$ac_save_IFS
3096 <  test -z "$ac_dir" && ac_dir=.
3097 <  $as_executable_p "$ac_dir/$ac_word" || continue
3098 < ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3099 < echo "$as_me:3030: found $ac_dir/$ac_word" >&5
3100 < break
3092 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 > for as_dir in $PATH
3094 > do
3095 >  IFS=$as_save_IFS
3096 >  test -z "$as_dir" && as_dir=.
3097 >  for ac_exec_ext in '' $ac_executable_extensions; do
3098 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3100 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 >    break 2
3102 >  fi
3103   done
3104 + done
3105  
3106   fi
3107   fi
3108   F90=$ac_cv_prog_F90
3109   if test -n "$F90"; then
3110 <  echo "$as_me:3038: result: $F90" >&5
3110 >  echo "$as_me:$LINENO: result: $F90" >&5
3111   echo "${ECHO_T}$F90" >&6
3112   else
3113 <  echo "$as_me:3041: result: no" >&5
3113 >  echo "$as_me:$LINENO: result: no" >&5
3114   echo "${ECHO_T}no" >&6
3115   fi
3116  
# Line 3047 | Line 3119 | if test -z "$F90"; then
3119   fi
3120   if test -z "$F90"; then
3121    ac_ct_F90=$F90
3122 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3122 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3123   do
3124    # Extract the first word of "$ac_prog", so it can be a program name with args.
3125   set dummy $ac_prog; ac_word=$2
3126 < echo "$as_me:3054: checking for $ac_word" >&5
3126 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3127   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128   if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3129    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3059 | Line 3131 | else
3131    if test -n "$ac_ct_F90"; then
3132    ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3133   else
3134 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3135 < ac_dummy="$PATH"
3136 < for ac_dir in $ac_dummy; do
3137 <  IFS=$ac_save_IFS
3138 <  test -z "$ac_dir" && ac_dir=.
3139 <  $as_executable_p "$ac_dir/$ac_word" || continue
3140 < ac_cv_prog_ac_ct_F90="$ac_prog"
3141 < echo "$as_me:3069: found $ac_dir/$ac_word" >&5
3142 < break
3134 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 > for as_dir in $PATH
3136 > do
3137 >  IFS=$as_save_IFS
3138 >  test -z "$as_dir" && as_dir=.
3139 >  for ac_exec_ext in '' $ac_executable_extensions; do
3140 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3142 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 >    break 2
3144 >  fi
3145   done
3146 + done
3147  
3148   fi
3149   fi
3150   ac_ct_F90=$ac_cv_prog_ac_ct_F90
3151   if test -n "$ac_ct_F90"; then
3152 <  echo "$as_me:3077: result: $ac_ct_F90" >&5
3152 >  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3153   echo "${ECHO_T}$ac_ct_F90" >&6
3154   else
3155 <  echo "$as_me:3080: result: no" >&5
3155 >  echo "$as_me:$LINENO: result: no" >&5
3156   echo "${ECHO_T}no" >&6
3157   fi
3158  
# Line 3087 | Line 3162 | fi
3162    F90=$ac_ct_F90
3163   fi
3164  
3165 +
3166   # If we don't use `.F90' as extension, the preprocessor is not run on the
3167   # input file.
3168   ac_save_ext=$ac_ext
3169   ac_ext=F90
3170 < echo "$as_me:3094: checking whether we are using the GNU Fortran 90 compiler" >&5
3170 > echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3171   echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3172   if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3173    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 3108 | Line 3184 | if { (eval echo "$as_me:3111: \"$ac_compile\"") >&5
3184  
3185   _ACEOF
3186   rm -f conftest.$ac_objext
3187 < if { (eval echo "$as_me:3111: \"$ac_compile\"") >&5
3188 <  (eval $ac_compile) 2>&5
3187 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 >  (eval $ac_compile) 2>conftest.er1
3189    ac_status=$?
3190 <  echo "$as_me:3114: \$? = $ac_status" >&5
3190 >  grep -v '^ *+' conftest.er1 >conftest.err
3191 >  rm -f conftest.er1
3192 >  cat conftest.err >&5
3193 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194    (exit $ac_status); } &&
3195 <         { ac_try='test -s conftest.$ac_objext'
3196 <  { (eval echo "$as_me:3117: \"$ac_try\"") >&5
3195 >         { ac_try='test -z "$ac_f90_werror_flag"
3196 >                         || test ! -s conftest.err'
3197 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198    (eval $ac_try) 2>&5
3199    ac_status=$?
3200 <  echo "$as_me:3120: \$? = $ac_status" >&5
3200 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 >  (exit $ac_status); }; } &&
3202 >         { ac_try='test -s conftest.$ac_objext'
3203 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 >  (eval $ac_try) 2>&5
3205 >  ac_status=$?
3206 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207    (exit $ac_status); }; }; then
3208    ac_compiler_gnu=yes
3209   else
3210    echo "$as_me: failed program was:" >&5
3211 < cat conftest.$ac_ext >&5
3211 > sed 's/^/| /' conftest.$ac_ext >&5
3212 >
3213   ac_compiler_gnu=no
3214   fi
3215 < rm -f conftest.$ac_objext conftest.$ac_ext
3215 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3217  
3218   fi
3219 < echo "$as_me:3132: result: $ac_cv_f90_compiler_gnu" >&5
3219 > echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3220   echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3221   ac_ext=$ac_save_ext
3222   G95=`test $ac_compiler_gnu = yes && echo yes`
# Line 3139 | Line 3226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228  
3142 # Try to determine "good" native compiler flags if none specified on command
3143 # line
3229  
3145 if test "$ac_test_F90FLAGS" != "set"; then
3146  F90FLAGS=""
3147  case "${host_cpu}-${host_os}" in
3230  
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
3231  
3183  if test -n "$CPU_FLAGS"; then
3184        F90FLAGS="$F90FLAGS $CPU_FLAGS"
3185  fi
3232  
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
3233   # Try to determine native compiler flags that allow us to use F90 suffix
3234   # for preprocessed f90 source.
3235  
# Line 3254 | Line 3237 | if test "$ac_test_PREPFLAG" != "set"; then
3237    PREPFLAG=""
3238    case "${host_cpu}-${host_os}" in
3239  
3240 <  *linux*) if test "$F90" = ifc; then
3240 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3241                      PREPFLAG="-fpp1 "
3242                  fi;;
3243    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3267 | Line 3250 | if test "$ac_test_PREPFLAG" != "set"; then
3250    esac
3251  
3252    if test -z "$PREPFLAG"; then
3253 <        echo ""
3254 <        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 ""
3253 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3254 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3255          PREPFLAG=""
3256    fi
3257  
3258 <  echo "$as_me:3280: checking to make sure F90 preprocessor flag works" >&5
3258 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3259   echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3260  
3261 +
3262    ac_ext=f90
3263   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3264   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3295 | Line 3274 | program main
3274  
3275      cat >conftest.$ac_ext <<_ACEOF
3276  
3277 +
3278   program main
3279  
3280    integer :: i
3281    i = 1
3282  
3283 +
3284   end program main
3285  
3286   _ACEOF
3287   rm -f conftest.$ac_objext
3288 < if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3289 <  (eval $ac_compile) 2>&5
3288 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 >  (eval $ac_compile) 2>conftest.er1
3290    ac_status=$?
3291 <  echo "$as_me:3310: \$? = $ac_status" >&5
3291 >  grep -v '^ *+' conftest.er1 >conftest.err
3292 >  rm -f conftest.er1
3293 >  cat conftest.err >&5
3294 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295    (exit $ac_status); } &&
3296 <         { ac_try='test -s conftest.$ac_objext'
3297 <  { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3296 >         { ac_try='test -z "$ac_f90_werror_flag"
3297 >                         || test ! -s conftest.err'
3298 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299    (eval $ac_try) 2>&5
3300    ac_status=$?
3301 <  echo "$as_me:3316: \$? = $ac_status" >&5
3301 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 >  (exit $ac_status); }; } &&
3303 >         { ac_try='test -s conftest.$ac_objext'
3304 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 >  (eval $ac_try) 2>&5
3306 >  ac_status=$?
3307 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308    (exit $ac_status); }; }; then
3309    prepflagworks=1
3310   else
3311    echo "$as_me: failed program was:" >&5
3312 < cat conftest.$ac_ext >&5
3312 > sed 's/^/| /' conftest.$ac_ext >&5
3313 >
3314   prepflagworks=0
3315   fi
3316 < rm -f conftest.$ac_objext conftest.$ac_ext
3316 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317  
3318    F90FLAGS=$ac_save_F90FLAGS
3319    ac_ext=$ac_save_ext
# Line 3331 | Line 3323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325  
3326 +
3327    if test "$prepflagworks" = 1; then
3328 <    echo "$as_me:3335: result: yes" >&5
3328 >    echo "$as_me:$LINENO: result: yes" >&5
3329   echo "${ECHO_T}yes" >&6
3330  
3331    else
3332 <    echo "$as_me:3339: result: no" >&5
3332 >    echo "$as_me:$LINENO: result: no" >&5
3333   echo "${ECHO_T}no" >&6
3334 <    { { echo "$as_me:3341: error: Can't figure out working Fortran90 preprocessor flag" >&5
3334 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3335   echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3336     { (exit 1); exit 1; }; }
3337    fi
3338   fi
3339  
3340 +
3341 +
3342 +
3343 +
3344   # Try to determine native compiler flags that allow us to use F90 suffix
3345   # for preprocessed f90 source with -D type defines
3346  
# Line 3351 | Line 3348 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3348    PREPDEFFLAG=""
3349    case "${host_cpu}-${host_os}" in
3350  
3351 <  *linux*) if test "$F90" = ifc; then
3351 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3352                      PREPDEFFLAG=" "
3353                  fi;;
3354    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3364 | Line 3361 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3361    esac
3362  
3363    if test -z "$PREPDEFFLAG"; then
3364 <        echo ""
3365 <        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 ""
3364 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3365 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3366          PREPDEFFLAG=" "
3367    fi
3368  
3369 <  echo "$as_me:3377: checking to make sure F90 preprocessor define flag works" >&5
3369 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3370   echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3371  
3372 +
3373    ac_ext=f90
3374   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3375   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3392 | Line 3385 | program main
3385  
3386      cat >conftest.$ac_ext <<_ACEOF
3387  
3388 +
3389   program main
3390  
3391    integer :: i
# Line 3401 | Line 3395 | end program main
3395    choke me
3396   #endif
3397  
3398 +
3399   end program main
3400  
3401   _ACEOF
3402   rm -f conftest.$ac_objext
3403 < if { (eval echo "$as_me:3408: \"$ac_compile\"") >&5
3404 <  (eval $ac_compile) 2>&5
3403 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 >  (eval $ac_compile) 2>conftest.er1
3405    ac_status=$?
3406 <  echo "$as_me:3411: \$? = $ac_status" >&5
3406 >  grep -v '^ *+' conftest.er1 >conftest.err
3407 >  rm -f conftest.er1
3408 >  cat conftest.err >&5
3409 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410    (exit $ac_status); } &&
3411 <         { ac_try='test -s conftest.$ac_objext'
3412 <  { (eval echo "$as_me:3414: \"$ac_try\"") >&5
3411 >         { ac_try='test -z "$ac_f90_werror_flag"
3412 >                         || test ! -s conftest.err'
3413 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414    (eval $ac_try) 2>&5
3415    ac_status=$?
3416 <  echo "$as_me:3417: \$? = $ac_status" >&5
3416 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 >  (exit $ac_status); }; } &&
3418 >         { ac_try='test -s conftest.$ac_objext'
3419 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 >  (eval $ac_try) 2>&5
3421 >  ac_status=$?
3422 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423    (exit $ac_status); }; }; then
3424    prepdefflagworks=1
3425   else
3426    echo "$as_me: failed program was:" >&5
3427 < cat conftest.$ac_ext >&5
3427 > sed 's/^/| /' conftest.$ac_ext >&5
3428 >
3429   prepdefflagworks=0
3430   fi
3431 < rm -f conftest.$ac_objext conftest.$ac_ext
3431 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432  
3433    F90FLAGS=$ac_save_F90FLAGS
3434    ac_ext=$ac_save_ext
# Line 3432 | Line 3438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440  
3441 +
3442 +
3443    if test "$prepdefflagworks" = 1; then
3444 <    echo "$as_me:3436: result: yes" >&5
3444 >    echo "$as_me:$LINENO: result: yes" >&5
3445   echo "${ECHO_T}yes" >&6
3446  
3447    else
3448 <    echo "$as_me:3440: result: no" >&5
3448 >    echo "$as_me:$LINENO: result: no" >&5
3449   echo "${ECHO_T}no" >&6
3450 <    { { echo "$as_me:3442: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3450 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3451   echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3452     { (exit 1); exit 1; }; }
3453    fi
3454   fi
3455  
3456 < # Find a good install program.  We prefer a C program (faster),
3457 < # so one script is as good as another.  But avoid the broken or
3458 < # incompatible versions:
3459 < # SysV /etc/install, /usr/sbin/install
3460 < # SunOS /usr/etc/install
3461 < # IRIX /sbin/install
3462 < # AIX /bin/install
3463 < # AmigaOS /C/install, which installs bootblocks on floppy discs
3464 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467 < # ./install, which can be erroneously created by make from ./install.sh.
3468 < echo "$as_me:3460: checking for a BSD compatible install" >&5
3469 < 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
3456 > ac_ext=f90
3457 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3458 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3460 >
3461 >
3462 >
3463 > ac_ext=f90
3464 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3465 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3467 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3468 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3469 > if test "${ac_cv_prog_f90_v+set}" = set; then
3470    echo $ECHO_N "(cached) $ECHO_C" >&6
3471   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
3472  
3473 < 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
3473 > cat >conftest.$ac_ext <<_ACEOF
3474  
3475 < # 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}'
3475 > program main
3476  
3516 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3477  
3478 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478 > end program main
3479  
3480 < echo "$as_me:3520: checking whether ln -s works" >&5
3481 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3482 < LN_S=$as_ln_s
3483 < if test "$LN_S" = "ln -s"; then
3484 <  echo "$as_me:3524: result: yes" >&5
3485 < echo "${ECHO_T}yes" >&6
3486 < else
3487 <  echo "$as_me:3527: result: no, using $LN_S" >&5
3488 < echo "${ECHO_T}no, using $LN_S" >&6
3480 > _ACEOF
3481 > rm -f conftest.$ac_objext
3482 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 >  (eval $ac_compile) 2>conftest.er1
3484 >  ac_status=$?
3485 >  grep -v '^ *+' conftest.er1 >conftest.err
3486 >  rm -f conftest.er1
3487 >  cat conftest.err >&5
3488 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 >  (exit $ac_status); } &&
3490 >         { ac_try='test -z "$ac_f90_werror_flag"
3491 >                         || test ! -s conftest.err'
3492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 >  (eval $ac_try) 2>&5
3494 >  ac_status=$?
3495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 >  (exit $ac_status); }; } &&
3497 >         { ac_try='test -s conftest.$ac_objext'
3498 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 >  (eval $ac_try) 2>&5
3500 >  ac_status=$?
3501 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 >  (exit $ac_status); }; }; then
3503 >  ac_cv_prog_f90_v=
3504 > # Try some options frequently used verbose output
3505 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3506 >  ac_ext=f90
3507 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3508 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3510 >
3511 > cat >conftest.$ac_ext <<_ACEOF
3512 >
3513 > program main
3514 >
3515 >
3516 > end program main
3517 >
3518 > _ACEOF
3519 >
3520 > # Compile and link our simple test program by passing a flag (argument
3521 > # 1 to this macro) to the Fortran 90 compiler in order to get
3522 > # "verbose" output that we can then parse for the Fortran 90 linker
3523 > # flags.
3524 > ac_save_F90FLAGS=$F90FLAGS
3525 > F90FLAGS="$F90FLAGS $ac_verb"
3526 >
3527 > (eval echo $as_me:3527: \"$ac_link\") >&5
3528 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3529 > echo "$ac_f90_v_output" >&5
3530 > F90FLAGS=$ac_save_F90FLAGS
3531 >
3532 > rm -f conftest.*
3533 > ac_ext=f90
3534 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3535 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3537 >
3538 > # If we are using xlf then replace all the commas with spaces.
3539 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3540 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3541   fi
3542  
3543 < echo "$as_me:3531: checking whether ${MAKE-make} sets \${MAKE}" >&5
3544 < echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3545 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3546 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3547 <  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
3543 > # If we are using Cray Fortran then delete quotes.
3544 > # Use "\"" instead of '"' for font-lock-mode.
3545 > # FIXME: a more general fix for quoted arguments with spaces?
3546 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3547 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3548   fi
3549 < rm -f conftest.make
3549 >  # look for -l* and *.a constructs in the output
3550 >  for ac_arg in $ac_f90_v_output; do
3551 >     case $ac_arg in
3552 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3553 >          ac_cv_prog_f90_v=$ac_verb
3554 >          break 2 ;;
3555 >     esac
3556 >  done
3557 > done
3558 > if test -z "$ac_cv_prog_f90_v"; then
3559 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3560 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3561   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=
3562   else
3563 <  echo "$as_me:3555: result: no" >&5
3564 < echo "${ECHO_T}no" >&6
3565 <  SET_MAKE="MAKE=${MAKE-make}"
3563 >  echo "$as_me: failed program was:" >&5
3564 > sed 's/^/| /' conftest.$ac_ext >&5
3565 >
3566 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3567 > echo "$as_me: WARNING: compilation failed" >&2;}
3568   fi
3569 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570  
3571 < if test -n "$ac_tool_prefix"; then
3572 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3573 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3574 < echo "$as_me:3563: checking for $ac_word" >&5
3575 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 < if test "${ac_cv_prog_RANLIB+set}" = set; then
3571 > fi
3572 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3573 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3574 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3575 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3576 > if test "${ac_cv_flibs+set}" = set; then
3577    echo $ECHO_N "(cached) $ECHO_C" >&6
3578   else
3579 <  if test -n "$RANLIB"; then
3580 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3579 >  if test "x$F90LIBS" != "x"; then
3580 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3581   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
3582  
3583 < fi
3584 < fi
3585 < RANLIB=$ac_cv_prog_RANLIB
3586 < if test -n "$RANLIB"; then
3587 <  echo "$as_me:3586: result: $RANLIB" >&5
3588 < echo "${ECHO_T}$RANLIB" >&6
3589 < else
3590 <  echo "$as_me:3589: result: no" >&5
3591 < echo "${ECHO_T}no" >&6
3592 < fi
3593 <
3594 < fi
3595 < if test -z "$ac_cv_prog_RANLIB"; then
3596 <  ac_ct_RANLIB=$RANLIB
3597 <  # Extract the first word of "ranlib", so it can be a program name with args.
3598 < set dummy ranlib; ac_word=$2
3599 < echo "$as_me:3598: checking for $ac_word" >&5
3600 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3602 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3603 < else
3604 <  if test -n "$ac_ct_RANLIB"; then
3605 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3606 < else
3607 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3608 < ac_dummy="$PATH"
3609 < for ac_dir in $ac_dummy; do
3610 <  IFS=$ac_save_IFS
3611 <  test -z "$ac_dir" && ac_dir=.
3612 <  $as_executable_p "$ac_dir/$ac_word" || continue
3613 < ac_cv_prog_ac_ct_RANLIB="ranlib"
3614 < echo "$as_me:3613: found $ac_dir/$ac_word" >&5
3615 < break
3616 < done
3617 <
3618 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3619 < fi
3620 < fi
3621 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3622 < if test -n "$ac_ct_RANLIB"; then
3623 <  echo "$as_me:3622: result: $ac_ct_RANLIB" >&5
3624 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
3625 < else
3626 <  echo "$as_me:3625: result: no" >&5
3627 < echo "${ECHO_T}no" >&6
3628 < fi
3629 <
3630 <  RANLIB=$ac_ct_RANLIB
3631 < else
3632 <  RANLIB="$ac_cv_prog_RANLIB"
3633 < fi
3634 <
3635 < for ac_prog in 'bison -y' byacc
3636 < do
3637 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3638 < set dummy $ac_prog; ac_word=$2
3639 < echo "$as_me:3638: checking for $ac_word" >&5
3640 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 < if test "${ac_cv_prog_YACC+set}" = set; then
3642 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3643 < else
3644 <  if test -n "$YACC"; then
3645 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3646 < else
3647 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3648 < ac_dummy="$PATH"
3649 < for ac_dir in $ac_dummy; do
3650 <  IFS=$ac_save_IFS
3651 <  test -z "$ac_dir" && ac_dir=.
3652 <  $as_executable_p "$ac_dir/$ac_word" || continue
3653 < ac_cv_prog_YACC="$ac_prog"
3654 < echo "$as_me:3653: found $ac_dir/$ac_word" >&5
3655 < break
3656 < done
3657 <
3658 < fi
3659 < fi
3660 < YACC=$ac_cv_prog_YACC
3661 < if test -n "$YACC"; then
3662 <  echo "$as_me:3661: result: $YACC" >&5
3663 < echo "${ECHO_T}$YACC" >&6
3664 < else
3665 <  echo "$as_me:3664: result: no" >&5
3666 < echo "${ECHO_T}no" >&6
3667 < fi
3668 <
3669 <  test -n "$YACC" && break
3670 < done
3671 < test -n "$YACC" || YACC="yacc"
3672 <
3673 < for ac_prog in flex lex
3674 < do
3675 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 < set dummy $ac_prog; ac_word=$2
3677 < echo "$as_me:3676: checking for $ac_word" >&5
3678 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3679 < if test "${ac_cv_prog_LEX+set}" = set; then
3680 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3681 < else
3682 <  if test -n "$LEX"; then
3683 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3684 < else
3685 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3686 < ac_dummy="$PATH"
3687 < for ac_dir in $ac_dummy; do
3688 <  IFS=$ac_save_IFS
3689 <  test -z "$ac_dir" && ac_dir=.
3690 <  $as_executable_p "$ac_dir/$ac_word" || continue
3691 < ac_cv_prog_LEX="$ac_prog"
3692 < echo "$as_me:3691: found $ac_dir/$ac_word" >&5
3693 < break
3694 < done
3695 <
3696 < fi
3697 < fi
3698 < LEX=$ac_cv_prog_LEX
3699 < if test -n "$LEX"; then
3700 <  echo "$as_me:3699: result: $LEX" >&5
3701 < echo "${ECHO_T}$LEX" >&6
3702 < else
3703 <  echo "$as_me:3702: result: no" >&5
3704 < echo "${ECHO_T}no" >&6
3705 < fi
3706 <
3707 <  test -n "$LEX" && break
3708 < done
3709 < test -n "$LEX" || LEX=":"
3710 <
3711 < if test -z "$LEXLIB"
3712 < then
3713 <  echo "$as_me:3712: checking for yywrap in -lfl" >&5
3714 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3715 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3716 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3717 < else
3718 <  ac_check_lib_save_LIBS=$LIBS
3719 < LIBS="-lfl  $LIBS"
3720 < cat >conftest.$ac_ext <<_ACEOF
3721 < #line 3720 "configure"
3722 < #include "confdefs.h"
3723 <
3724 < /* Override any gcc2 internal prototype to avoid an error.  */
3725 < #ifdef __cplusplus
3726 < extern "C"
3727 < #endif
3728 < /* We use char because int might match the return type of a gcc2
3729 <   builtin and then its argument prototype would still apply.  */
3730 < char yywrap ();
3731 < int
3732 < main ()
3733 < {
3734 < yywrap ();
3735 <  ;
3736 <  return 0;
3737 < }
3738 < _ACEOF
3739 < rm -f conftest.$ac_objext conftest$ac_exeext
3740 < if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
3741 <  (eval $ac_link) 2>&5
3742 <  ac_status=$?
3743 <  echo "$as_me:3742: \$? = $ac_status" >&5
3744 <  (exit $ac_status); } &&
3745 <         { ac_try='test -s conftest$ac_exeext'
3746 <  { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3747 <  (eval $ac_try) 2>&5
3748 <  ac_status=$?
3749 <  echo "$as_me:3748: \$? = $ac_status" >&5
3750 <  (exit $ac_status); }; }; then
3751 <  ac_cv_lib_fl_yywrap=yes
3752 < else
3753 <  echo "$as_me: failed program was:" >&5
3754 < cat conftest.$ac_ext >&5
3755 < ac_cv_lib_fl_yywrap=no
3756 < fi
3757 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3758 < LIBS=$ac_check_lib_save_LIBS
3759 < fi
3760 < echo "$as_me:3759: result: $ac_cv_lib_fl_yywrap" >&5
3761 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3762 < if test $ac_cv_lib_fl_yywrap = yes; then
3763 <  LEXLIB="-lfl"
3764 < else
3765 <  echo "$as_me:3764: checking for yywrap in -ll" >&5
3766 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3767 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
3768 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3769 < else
3770 <  ac_check_lib_save_LIBS=$LIBS
3771 < LIBS="-ll  $LIBS"
3772 < cat >conftest.$ac_ext <<_ACEOF
3773 < #line 3772 "configure"
3774 < #include "confdefs.h"
3775 <
3776 < /* Override any gcc2 internal prototype to avoid an error.  */
3777 < #ifdef __cplusplus
3778 < extern "C"
3779 < #endif
3780 < /* We use char because int might match the return type of a gcc2
3781 <   builtin and then its argument prototype would still apply.  */
3782 < char yywrap ();
3783 < int
3784 < main ()
3785 < {
3786 < yywrap ();
3787 <  ;
3788 <  return 0;
3789 < }
3790 < _ACEOF
3791 < rm -f conftest.$ac_objext conftest$ac_exeext
3792 < if { (eval echo "$as_me:3791: \"$ac_link\"") >&5
3793 <  (eval $ac_link) 2>&5
3794 <  ac_status=$?
3795 <  echo "$as_me:3794: \$? = $ac_status" >&5
3796 <  (exit $ac_status); } &&
3797 <         { ac_try='test -s conftest$ac_exeext'
3798 <  { (eval echo "$as_me:3797: \"$ac_try\"") >&5
3799 <  (eval $ac_try) 2>&5
3800 <  ac_status=$?
3801 <  echo "$as_me:3800: \$? = $ac_status" >&5
3802 <  (exit $ac_status); }; }; then
3803 <  ac_cv_lib_l_yywrap=yes
3804 < else
3805 <  echo "$as_me: failed program was:" >&5
3806 < cat conftest.$ac_ext >&5
3807 < ac_cv_lib_l_yywrap=no
3808 < fi
3809 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3810 < LIBS=$ac_check_lib_save_LIBS
3811 < fi
3812 < echo "$as_me:3811: result: $ac_cv_lib_l_yywrap" >&5
3813 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3814 < if test $ac_cv_lib_l_yywrap = yes; then
3815 <  LEXLIB="-ll"
3816 < fi
3817 <
3818 < fi
3819 <
3820 < fi
3821 <
3822 < if test "x$LEX" != "x:"; then
3823 <  echo "$as_me:3822: checking lex output file root" >&5
3824 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3825 < if test "${ac_cv_prog_lex_root+set}" = set; then
3826 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3827 < else
3828 <  # The minimal lex program is just a single line: %%.  But some broken lexes
3829 < # (Solaris, I think it was) want two %% lines, so accommodate them.
3830 < echo '%%
3831 < %%' | $LEX
3832 < if test -f lex.yy.c; then
3833 <  ac_cv_prog_lex_root=lex.yy
3834 < elif test -f lexyy.c; then
3835 <  ac_cv_prog_lex_root=lexyy
3836 < else
3837 <  { { echo "$as_me:3836: error: cannot find output from $LEX; giving up" >&5
3838 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3839 <   { (exit 1); exit 1; }; }
3840 < fi
3841 < fi
3842 < echo "$as_me:3841: result: $ac_cv_prog_lex_root" >&5
3843 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3844 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3845 <
3846 < echo "$as_me:3845: checking whether yytext is a pointer" >&5
3847 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3848 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3849 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3850 < else
3851 <  # POSIX says lex can declare yytext either as a pointer or an array; the
3852 < # default is implementation-dependent. Figure out which it is, since
3853 < # not all implementations provide the %pointer and %array declarations.
3854 < ac_cv_prog_lex_yytext_pointer=no
3855 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3856 < ac_save_LIBS=$LIBS
3857 < LIBS="$LIBS $LEXLIB"
3858 < cat >conftest.$ac_ext <<_ACEOF
3859 < `cat $LEX_OUTPUT_ROOT.c`
3860 < _ACEOF
3861 < rm -f conftest.$ac_objext conftest$ac_exeext
3862 < if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
3863 <  (eval $ac_link) 2>&5
3864 <  ac_status=$?
3865 <  echo "$as_me:3864: \$? = $ac_status" >&5
3866 <  (exit $ac_status); } &&
3867 <         { ac_try='test -s conftest$ac_exeext'
3868 <  { (eval echo "$as_me:3867: \"$ac_try\"") >&5
3869 <  (eval $ac_try) 2>&5
3870 <  ac_status=$?
3871 <  echo "$as_me:3870: \$? = $ac_status" >&5
3872 <  (exit $ac_status); }; }; then
3873 <  ac_cv_prog_lex_yytext_pointer=yes
3874 < else
3875 <  echo "$as_me: failed program was:" >&5
3876 < cat conftest.$ac_ext >&5
3877 < fi
3878 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3879 < LIBS=$ac_save_LIBS
3880 < rm -f "${LEX_OUTPUT_ROOT}.c"
3881 <
3882 < fi
3883 < echo "$as_me:3882: result: $ac_cv_prog_lex_yytext_pointer" >&5
3884 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3885 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
3886 <
3887 < cat >>confdefs.h <<\EOF
3888 < #define YYTEXT_POINTER 1
3889 < EOF
3890 <
3891 < fi
3892 <
3893 < fi
3894 < # Extract the first word of "ar", so it can be a program name with args.
3895 < set dummy ar; ac_word=$2
3896 < echo "$as_me:3895: checking for $ac_word" >&5
3897 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 < if test "${ac_cv_prog_AR+set}" = set; then
3899 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3900 < else
3901 <  if test -n "$AR"; then
3902 <  ac_cv_prog_AR="$AR" # Let the user override the test.
3903 < else
3904 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
3905 < ac_dummy="$PATH"
3906 < for ac_dir in $ac_dummy; do
3907 <  IFS=$ac_save_IFS
3908 <  test -z "$ac_dir" && ac_dir=.
3909 <  $as_executable_p "$ac_dir/$ac_word" || continue
3910 < ac_cv_prog_AR="ar"
3911 < echo "$as_me:3910: found $ac_dir/$ac_word" >&5
3912 < break
3913 < done
3914 <
3915 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
3916 < fi
3917 < fi
3918 < AR=$ac_cv_prog_AR
3919 < if test -n "$AR"; then
3920 <  echo "$as_me:3919: result: $AR" >&5
3921 < echo "${ECHO_T}$AR" >&6
3922 < else
3923 <  echo "$as_me:3922: result: no" >&5
3924 < echo "${ECHO_T}no" >&6
3925 < fi
3926 <
3927 < if test "$AR" = "NONE"; then
3928 <  { { echo "$as_me:3927: error: --> Can't find \`ar'!" >&5
3929 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3930 <   { (exit 1); exit 1; }; }
3931 <  cat >confcache <<\_ACEOF
3932 < # This file is a shell script that caches the results of configure
3933 < # tests run on this system so they can be shared between configure
3934 < # scripts and configure runs, see configure's option --config-cache.
3935 < # It is not useful on other systems.  If it contains results you don't
3936 < # want to keep, you may remove or edit it.
3937 < #
3938 < # config.status only pays attention to the cache file if you give it
3939 < # the --recheck option to rerun configure.
3940 < #
3941 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
3942 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
3943 < # following values.
3944 <
3945 < _ACEOF
3946 <
3947 < # The following way of writing the cache mishandles newlines in values,
3948 < # but we know of no workaround that is simple, portable, and efficient.
3949 < # So, don't put newlines in cache variables' values.
3950 < # Ultrix sh set writes to stderr and can't be redirected directly,
3951 < # and sets the high bit in the cache file unless we assign to the vars.
3952 < {
3953 <  (set) 2>&1 |
3954 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3955 <    *ac_space=\ *)
3956 <      # `set' does not quote correctly, so add quotes (double-quote
3957 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
3958 <      sed -n \
3959 <        "s/'/'\\\\''/g;
3960 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3961 <      ;;
3962 <    *)
3963 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
3964 <      sed -n \
3965 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3966 <      ;;
3967 <    esac;
3968 < } |
3969 <  sed '
3970 <     t clear
3971 <     : clear
3972 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3973 <     t end
3974 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3975 <     : end' >>confcache
3976 < if cmp -s $cache_file confcache; then :; else
3977 <  if test -w $cache_file; then
3978 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3979 <    cat confcache >$cache_file
3980 <  else
3981 <    echo "not updating unwritable cache $cache_file"
3982 <  fi
3983 < fi
3984 < rm -f confcache
3985 <  exit 1
3986 < fi
3987 <
3988 < ac_ext=f90
3989 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3990 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3992 <
3993 < ac_ext=f90
3994 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3995 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3997 < echo "$as_me:3996: checking how to get verbose linking output from $F90" >&5
3998 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3999 < if test "${ac_cv_prog_f90_v+set}" = set; then
4000 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4001 < else
4002 <
4003 < cat >conftest.$ac_ext <<_ACEOF
4004 <
4005 < program main
4006 <
4007 < end program main
4008 <
4009 < _ACEOF
4010 < rm -f conftest.$ac_objext
4011 < if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4012 <  (eval $ac_compile) 2>&5
4013 <  ac_status=$?
4014 <  echo "$as_me:4013: \$? = $ac_status" >&5
4015 <  (exit $ac_status); } &&
4016 <         { ac_try='test -s conftest.$ac_objext'
4017 <  { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4018 <  (eval $ac_try) 2>&5
4019 <  ac_status=$?
4020 <  echo "$as_me:4019: \$? = $ac_status" >&5
4021 <  (exit $ac_status); }; }; then
4022 <  ac_cv_prog_f90_v=
4023 < # Try some options frequently used verbose output
4024 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4025 <  ac_ext=f90
4026 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4027 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4029 <
4030 < cat >conftest.$ac_ext <<_ACEOF
4031 <
4032 < program main
4033 <
4034 < end program main
4035 <
4036 < _ACEOF
4037 <
4038 < # Compile and link our simple test program by passing a flag (argument
4039 < # 1 to this macro) to the Fortran 90 compiler in order to get
4040 < # "verbose" output that we can then parse for the Fortran 90 linker
4041 < # flags.
4042 < ac_save_F90FLAGS=$F90FLAGS
4043 < F90FLAGS="$F90FLAGS $ac_verb"
4044 <
4045 < (eval echo $as_me:4044: \"$ac_link\") >&5
4046 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4047 < echo "$ac_f90_v_output" >&5
4048 < F90FLAGS=$ac_save_F90FLAGS
4049 <
4050 < rm -f conftest.*
4051 < ac_ext=f90
4052 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4053 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4055 <
4056 < # If we are using xlf then replace all the commas with spaces.
4057 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4058 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4059 < fi
4060 <
4061 < # If we are using Cray Fortran then delete quotes.
4062 < # Use "\"" instead of '"' for font-lock-mode.
4063 < # FIXME: a more general fix for quoted arguments with spaces?
4064 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4065 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4066 < fi
4067 <  # look for -l* and *.a constructs in the output
4068 <  for ac_arg in $ac_f90_v_output; do
4069 <     case $ac_arg in
4070 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4071 <          ac_cv_prog_f90_v=$ac_verb
4072 <          break 2 ;;
4073 <     esac
4074 <  done
4075 < done
4076 < if test -z "$ac_cv_prog_f90_v"; then
4077 <   { echo "$as_me:4076: WARNING: cannot determine how to obtain linking information from $F90" >&5
4078 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4079 < fi
4080 < else
4081 <  echo "$as_me: failed program was:" >&5
4082 < cat conftest.$ac_ext >&5
4083 < { echo "$as_me:4082: WARNING: compilation failed" >&5
4084 < echo "$as_me: WARNING: compilation failed" >&2;}
4085 < fi
4086 < rm -f conftest.$ac_objext conftest.$ac_ext
4087 <
4088 < fi
4089 < echo "$as_me:4088: result: $ac_cv_prog_f90_v" >&5
4090 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4091 < echo "$as_me:4090: checking for Fortran 90 libraries" >&5
4092 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4093 < if test "${ac_cv_flibs+set}" = set; then
4094 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4095 < else
4096 <  if test "x$F90LIBS" != "x"; then
4097 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4098 < else
4099 <
4100 < ac_ext=f90
4101 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4102 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4104 <
4105 < cat >conftest.$ac_ext <<_ACEOF
4106 <
4107 < program main
4108 <
4109 < end program main
4110 <
4111 < _ACEOF
4112 <
4113 < # Compile and link our simple test program by passing a flag (argument
4114 < # 1 to this macro) to the Fortran 90 compiler in order to get
4115 < # "verbose" output that we can then parse for the Fortran 90 linker
4116 < # flags.
4117 < ac_save_F90FLAGS=$F90FLAGS
4118 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4119 <
4120 < (eval echo $as_me:4119: \"$ac_link\") >&5
4121 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4122 < echo "$ac_f90_v_output" >&5
4123 < F90FLAGS=$ac_save_F90FLAGS
4124 <
4125 < rm -f conftest.*
4126 < ac_ext=f90
4127 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4128 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4130 <
4131 < # If we are using xlf then replace all the commas with spaces.
4132 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4133 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4134 < fi
4135 <
4136 < # If we are using Cray Fortran then delete quotes.
4137 < # Use "\"" instead of '"' for font-lock-mode.
4138 < # FIXME: a more general fix for quoted arguments with spaces?
4139 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4140 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4141 < fi
4142 <
4143 < ac_cv_f90libs=
4144 <
4145 < # Save positional arguments (if any)
4146 < ac_save_positional="$@"
4147 <
4148 < set X $ac_f90_v_output
4149 < while test $# != 1; do
4150 <  shift
4151 <  ac_arg=$1
4152 <  case $ac_arg in
4153 <        [\\/]*.a | ?:[\\/]*.a)
4154 <            ac_exists=false
4155 <  for ac_i in $ac_cv_f90libs; do
4156 <    if test x"$ac_arg" = x"$ac_i"; then
4157 <      ac_exists=true
4158 <      break
4159 <    fi
4160 <  done
4161 <
4162 <  if test x"$ac_exists" = xtrue; then
4163 <  :
4164 < else
4165 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4166 < fi
4167 <
4168 <          ;;
4169 <        -bI:*)
4170 <            ac_exists=false
4171 <  for ac_i in $ac_cv_f90libs; do
4172 <    if test x"$ac_arg" = x"$ac_i"; then
4173 <      ac_exists=true
4174 <      break
4175 <    fi
4176 <  done
4177 <
4178 <  if test x"$ac_exists" = xtrue; then
4179 <  :
4180 < else
4181 <  if test "$ac_compiler_gnu" = yes; then
4182 <  for ac_link_opt in $ac_arg; do
4183 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4184 <  done
4185 < else
4186 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4187 < fi
4188 < fi
4189 <
4190 <          ;;
4191 <          # Ignore these flags.
4192 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4193 <          ;;
4194 <        -lkernel32)
4195 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4196 <          ;;
4197 <        -[LRuY])
4198 <          # These flags, when seen by themselves, take an argument.
4199 <          # We remove the space between option and argument and re-iterate
4200 <          # unless we find an empty arg or a new option (starting with -)
4201 <          case $2 in
4202 <             "" | -*);;
4203 <             *)
4204 <                ac_arg="$ac_arg$2"
4205 <
4206 <                shift; shift
4207 <                set X $ac_arg "$@"
4208 <                ;;
4209 <          esac
4210 <          ;;
4211 <        -YP,*)
4212 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4213 <              ac_exists=false
4214 <  for ac_i in $ac_cv_f90libs; do
4215 <    if test x"$ac_j" = x"$ac_i"; then
4216 <      ac_exists=true
4217 <      break
4218 <    fi
4219 <  done
4220 <
4221 <  if test x"$ac_exists" = xtrue; then
4222 <  :
4223 < else
4224 <  ac_arg="$ac_arg $ac_j"
4225 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4226 < fi
4227 <
4228 <          done
4229 <          ;;
4230 <        -[lLR]*)
4231 <            ac_exists=false
4232 <  for ac_i in $ac_cv_f90libs; do
4233 <    if test x"$ac_arg" = x"$ac_i"; then
4234 <      ac_exists=true
4235 <      break
4236 <    fi
4237 <  done
4238 <
4239 <  if test x"$ac_exists" = xtrue; then
4240 <  :
4241 < else
4242 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4243 < fi
4244 <
4245 <          ;;
4246 <          # Ignore everything else.
4247 <  esac
4248 < done
4249 < # restore positional arguments
4250 < set X $ac_save_positional; shift
4251 <
4252 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4253 < # then we insist that the "run path" must be an absolute path (i.e. it
4254 < # must begin with a "/").
4255 < case `(uname -sr) 2>/dev/null` in
4256 <   "SunOS 5"*)
4257 <      ac_ld_run_path=`echo $ac_f90_v_output |
4258 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4259 <      test "x$ac_ld_run_path" != x &&
4260 <
4261 <        if test "$ac_compiler_gnu" = yes; then
4262 <  for ac_link_opt in $ac_ld_run_path; do
4263 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4264 <  done
4265 < else
4266 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4267 < fi
4268 <      ;;
4269 < esac
4270 < fi # test "x$F90LIBS" = "x"
4271 <
4272 < fi
4273 < echo "$as_me:4272: result: $ac_cv_flibs" >&5
4274 < echo "${ECHO_T}$ac_cv_flibs" >&6
4275 < F90LIBS="$ac_cv_f90libs"
4276 <
4277 < ac_ext=f90
4278 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4279 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4281 <
4282 < echo "$as_me:4281: checking for Fortran 90 name-mangling scheme" >&5
4283 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4284 < if test "${ac_cv_f90_mangling+set}" = set; then
4285 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4286 < else
4287 <  ac_ext=f90
4288 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4289 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4291 < cat >conftest.$ac_ext <<_ACEOF
4292 < subroutine foobar()
4293 < return
4294 < end
4295 < subroutine foo_bar()
4296 < return
4297 < end
4298 < _ACEOF
4299 < rm -f conftest.$ac_objext
4300 < if { (eval echo "$as_me:4299: \"$ac_compile\"") >&5
4301 <  (eval $ac_compile) 2>&5
4302 <  ac_status=$?
4303 <  echo "$as_me:4302: \$? = $ac_status" >&5
4304 <  (exit $ac_status); } &&
4305 <         { ac_try='test -s conftest.$ac_objext'
4306 <  { (eval echo "$as_me:4305: \"$ac_try\"") >&5
4307 <  (eval $ac_try) 2>&5
4308 <  ac_status=$?
4309 <  echo "$as_me:4308: \$? = $ac_status" >&5
4310 <  (exit $ac_status); }; }; then
4311 <  mv conftest.$ac_objext cf90_test.$ac_objext
4312 <
4313 <  ac_ext=c
4314 < ac_cpp='$CPP $CPPFLAGS'
4315 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 <
4319 <  ac_save_LIBS=$LIBS
4320 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4321 <
4322 <  ac_success=no
4323 <  for ac_foobar in foobar FOOBAR; do
4324 <    for ac_underscore in "" "_"; do
4325 <      ac_func="$ac_foobar$ac_underscore"
4326 <      cat >conftest.$ac_ext <<_ACEOF
4327 < #line 4326 "configure"
4328 < #include "confdefs.h"
4329 <
4330 < /* Override any gcc2 internal prototype to avoid an error.  */
4331 < #ifdef __cplusplus
4332 < extern "C"
4333 < #endif
4334 < /* We use char because int might match the return type of a gcc2
4335 <   builtin and then its argument prototype would still apply.  */
4336 < char $ac_func ();
4337 < int
4338 < main ()
4339 < {
4340 < $ac_func ();
4341 <  ;
4342 <  return 0;
4343 < }
4344 < _ACEOF
4345 < rm -f conftest.$ac_objext conftest$ac_exeext
4346 < if { (eval echo "$as_me:4345: \"$ac_link\"") >&5
4347 <  (eval $ac_link) 2>&5
4348 <  ac_status=$?
4349 <  echo "$as_me:4348: \$? = $ac_status" >&5
4350 <  (exit $ac_status); } &&
4351 <         { ac_try='test -s conftest$ac_exeext'
4352 <  { (eval echo "$as_me:4351: \"$ac_try\"") >&5
4353 <  (eval $ac_try) 2>&5
4354 <  ac_status=$?
4355 <  echo "$as_me:4354: \$? = $ac_status" >&5
4356 <  (exit $ac_status); }; }; then
4357 <  ac_success=yes; break 2
4358 < else
4359 <  echo "$as_me: failed program was:" >&5
4360 < cat conftest.$ac_ext >&5
4361 < fi
4362 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4363 <    done
4364 <  done
4365 <
4366 <  if test "$ac_success" = "yes"; then
4367 <     case $ac_foobar in
4368 <        foobar)
4369 <           ac_case=lower
4370 <           ac_foo_bar=foo_bar
4371 <           ;;
4372 <        FOOBAR)
4373 <           ac_case=upper
4374 <           ac_foo_bar=FOO_BAR
4375 <           ;;
4376 <     esac
4377 <
4378 <     ac_success_extra=no
4379 <     for ac_extra in "" "_"; do
4380 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4381 <
4382 <        cat >conftest.$ac_ext <<_ACEOF
4383 < #line 4382 "configure"
4384 < #include "confdefs.h"
4385 <
4386 < /* Override any gcc2 internal prototype to avoid an error.  */
4387 < #ifdef __cplusplus
4388 < extern "C"
4389 < #endif
4390 < /* We use char because int might match the return type of a gcc2
4391 <   builtin and then its argument prototype would still apply.  */
4392 < char $ac_func ();
4393 < int
4394 < main ()
4395 < {
4396 < $ac_func ();
4397 <  ;
4398 <  return 0;
4399 < }
4400 < _ACEOF
4401 < rm -f conftest.$ac_objext conftest$ac_exeext
4402 < if { (eval echo "$as_me:4401: \"$ac_link\"") >&5
4403 <  (eval $ac_link) 2>&5
4404 <  ac_status=$?
4405 <  echo "$as_me:4404: \$? = $ac_status" >&5
4406 <  (exit $ac_status); } &&
4407 <         { ac_try='test -s conftest$ac_exeext'
4408 <  { (eval echo "$as_me:4407: \"$ac_try\"") >&5
4409 <  (eval $ac_try) 2>&5
4410 <  ac_status=$?
4411 <  echo "$as_me:4410: \$? = $ac_status" >&5
4412 <  (exit $ac_status); }; }; then
4413 <  ac_success_extra=yes; break
4414 < else
4415 <  echo "$as_me: failed program was:" >&5
4416 < cat conftest.$ac_ext >&5
4417 < fi
4418 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4419 <     done
4420 <
4421 <     if test "$ac_success_extra" = "yes"; then
4422 <        ac_cv_f90_mangling="$ac_case case"
4423 <        if test -z "$ac_underscore"; then
4424 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4425 <        else
4426 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4427 <
4428 <        fi
4429 <        if test -z "$ac_extra"; then
4430 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4431 <        else
4432 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4433 <        fi
4434 <      else
4435 <        ac_cv_f90_mangling="unknown"
4436 <      fi
4437 <  else
4438 <     ac_cv_f90_mangling="unknown"
4439 <
4440 <  fi
4441 <
4442 <  LIBS=$ac_save_LIBS
4443 <  ac_ext=f90
4444 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4445 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4447 <  rm -f cf90_test* conftest*
4448 < else
4449 <  echo "$as_me: failed program was:" >&5
4450 < cat conftest.$ac_ext >&5
4451 < fi
4452 < rm -f conftest.$ac_objext conftest.$ac_ext
4453 < ac_ext=f90
4454 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4455 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4457 <
4458 < fi
4459 < echo "$as_me:4458: result: $ac_cv_f90_mangling" >&5
4460 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4461 <
4462 < case $ac_cv_f90_mangling in
4463 <  "lower case, no underscore, no extra underscore")
4464 <          cat >>confdefs.h <<\EOF
4465 < #define F90_FUNC(name,NAME) name
4466 < EOF
4467 <
4468 <          cat >>confdefs.h <<\EOF
4469 < #define F90_FUNC_(name,NAME) name
4470 < EOF
4471 < ;;
4472 <  "lower case, no underscore, extra underscore")
4473 <          cat >>confdefs.h <<\EOF
4474 < #define F90_FUNC(name,NAME) name
4475 < EOF
4476 <
4477 <          cat >>confdefs.h <<\EOF
4478 < #define F90_FUNC_(name,NAME) name ## _
4479 < EOF
4480 < ;;
4481 <  "lower case, underscore, no extra underscore")
4482 <          cat >>confdefs.h <<\EOF
4483 < #define F90_FUNC(name,NAME) name ## _
4484 < EOF
4485 <
4486 <          cat >>confdefs.h <<\EOF
4487 < #define F90_FUNC_(name,NAME) name ## _
4488 < EOF
4489 < ;;
4490 <  "lower case, underscore, extra underscore")
4491 <          cat >>confdefs.h <<\EOF
4492 < #define F90_FUNC(name,NAME) name ## _
4493 < EOF
4494 <
4495 <          cat >>confdefs.h <<\EOF
4496 < #define F90_FUNC_(name,NAME) name ## __
4497 < EOF
4498 < ;;
4499 <  "upper case, no underscore, no extra underscore")
4500 <          cat >>confdefs.h <<\EOF
4501 < #define F90_FUNC(name,NAME) NAME
4502 < EOF
4503 <
4504 <          cat >>confdefs.h <<\EOF
4505 < #define F90_FUNC_(name,NAME) NAME
4506 < EOF
4507 < ;;
4508 <  "upper case, no underscore, extra underscore")
4509 <          cat >>confdefs.h <<\EOF
4510 < #define F90_FUNC(name,NAME) NAME
4511 < EOF
4512 <
4513 <          cat >>confdefs.h <<\EOF
4514 < #define F90_FUNC_(name,NAME) NAME ## _
4515 < EOF
4516 < ;;
4517 <  "upper case, underscore, no extra underscore")
4518 <          cat >>confdefs.h <<\EOF
4519 < #define F90_FUNC(name,NAME) NAME ## _
4520 < EOF
4521 <
4522 <          cat >>confdefs.h <<\EOF
4523 < #define F90_FUNC_(name,NAME) NAME ## _
4524 < EOF
4525 < ;;
4526 <  "upper case, underscore, extra underscore")
4527 <          cat >>confdefs.h <<\EOF
4528 < #define F90_FUNC(name,NAME) NAME ## _
4529 < EOF
4530 <
4531 <          cat >>confdefs.h <<\EOF
4532 < #define F90_FUNC_(name,NAME) NAME ## __
4533 < EOF
4534 < ;;
4535 <  *)
4536 <          { echo "$as_me:4535: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4537 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4538 <          ;;
4539 < esac
4540 <
4541 < echo "$as_me:4540: checking for mpi-directory" >&5
4542 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
4543 <
4544 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
4545 < if test "${with_mpi_dir+set}" = set; then
4546 <  withval="$with_mpi_dir"
4547 <  MPI_DIR="$withval"
4548 < else
4549 <  MPI_DIR="/usr/local"
4550 < fi;
4551 < echo "$as_me:4550: result: $MPI_DIR" >&5
4552 < echo "${ECHO_T}$MPI_DIR" >&6
4553 <
4554 < echo "$as_me:4553: checking for mpi-lib-directory" >&5
4555 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
4556 <
4557 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
4558 < if test "${with_mpi_libdir+set}" = set; then
4559 <  withval="$with_mpi_libdir"
4560 <  MPI_LIBDIR="$withval"
4561 < else
4562 <  MPI_LIBDIR="$MPI_DIR/lib"
4563 < fi;
4564 < echo "$as_me:4563: result: $MPI_LIBDIR" >&5
4565 < echo "${ECHO_T}$MPI_LIBDIR" >&6
4566 <
4567 < echo "$as_me:4566: checking for mpi-inc-directory" >&5
4568 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
4569 <
4570 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
4571 < if test "${with_mpi_inc+set}" = set; then
4572 <  withval="$with_mpi_inc"
4573 <  MPI_INC="$withval"
4574 < else
4575 <  MPI_INC="$MPI_DIR/include"
4576 < fi;
4577 < echo "$as_me:4576: result: $MPI_INC" >&5
4578 < echo "${ECHO_T}$MPI_INC" >&6
4579 <
4580 < echo "$as_me:4579: checking for MPI library" >&5
4581 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4582 < MPI_LIB=""
4583 < case "$host" in
4584 <  *-ibm-aix*)
4585 <    echo "$as_me:4584: checking whether to use signal-based MPI library" >&5
4586 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4587 <    echo "$as_me:4586: result: $PACX_SIGNAL" >&5
4588 < echo "${ECHO_T}$PACX_SIGNAL" >&6
4589 <    if test "x$PACX_SIGNAL" = "xyes" ; then
4590 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
4591 <        MPI_LIB="-lmpi"
4592 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4593 <        MPI_LIB="-lmpi"
4594 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4595 <        MPI_LIB="-lmpich"
4596 <      else
4597 <        { { echo "$as_me:4596: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4598 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4599 <   { (exit 1); exit 1; }; }
4600 <      fi
4601 <    else
4602 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4603 <         MPI_LIB="-lmpi_r"
4604 <      else
4605 <         { { echo "$as_me:4604: error: libmpi_r not found; check path for MPI package..." >&5
4606 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4607 <   { (exit 1); exit 1; }; }
4608 <      fi
4609 <    fi
4610 <    echo "$as_me:4609: result: found $MPI_LIB" >&5
4611 < echo "${ECHO_T}found $MPI_LIB" >&6
4612 <  ;;
4613 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
4614 <      MPI_LIB="-lmpi"
4615 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4616 <      MPI_LIB="-lmpi"
4617 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4618 <      MPI_LIB="-lmpich"
4619 <    else
4620 <      { { echo "$as_me:4619: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4621 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4622 <   { (exit 1); exit 1; }; }
4623 <    fi
4624 <    echo "$as_me:4623: result: found $MPI_LIB" >&5
4625 < echo "${ECHO_T}found $MPI_LIB" >&6
4626 <  ;;
4627 < esac
4628 <
4629 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
4630 < do
4631 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
4632 < set dummy $ac_prog; ac_word=$2
4633 < echo "$as_me:4632: checking for $ac_word" >&5
4634 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4635 < if test "${ac_cv_prog_MPIF90+set}" = set; then
4636 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4637 < else
4638 <  if test -n "$MPIF90"; then
4639 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
4640 < else
4641 <  ac_save_IFS=$IFS; IFS=$ac_path_separator
4642 < ac_dummy="$PATH"
4643 < for ac_dir in $ac_dummy; do
4644 <  IFS=$ac_save_IFS
4645 <  test -z "$ac_dir" && ac_dir=.
4646 <  $as_executable_p "$ac_dir/$ac_word" || continue
4647 < ac_cv_prog_MPIF90="$ac_prog"
4648 < echo "$as_me:4647: found $ac_dir/$ac_word" >&5
4649 < break
4650 < done
4651 <
4652 < fi
4653 < fi
4654 < MPIF90=$ac_cv_prog_MPIF90
4655 < if test -n "$MPIF90"; then
4656 <  echo "$as_me:4655: result: $MPIF90" >&5
4657 < echo "${ECHO_T}$MPIF90" >&6
4658 < else
4659 <  echo "$as_me:4658: result: no" >&5
4660 < echo "${ECHO_T}no" >&6
4661 < fi
4662 <
4663 <  test -n "$MPIF90" && break
4664 < done
4665 < test -n "$MPIF90" || MPIF90="$F90"
4666 <
4667 <        acx_mpi_save_F90="$F90"
4668 <        F90="$MPIF90"
4669 <
4670 < if test x = x"$MPILIBS"; then
4671 <        echo "$as_me:4670: checking for MPI_Init" >&5
4672 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
4673 <                        cat >conftest.$ac_ext <<_ACEOF
4674 <
4675 < program main
4676 <
4677 <      call MPI_Init
4678 < end program main
4679 <
3583 > ac_ext=f90
3584 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3585 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3587 >
3588 > cat >conftest.$ac_ext <<_ACEOF
3589 >
3590 > program main
3591 >
3592 >
3593 > end program main
3594 >
3595 > _ACEOF
3596 >
3597 > # Compile and link our simple test program by passing a flag (argument
3598 > # 1 to this macro) to the Fortran 90 compiler in order to get
3599 > # "verbose" output that we can then parse for the Fortran 90 linker
3600 > # flags.
3601 > ac_save_F90FLAGS=$F90FLAGS
3602 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3603 >
3604 > (eval echo $as_me:3604: \"$ac_link\") >&5
3605 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3606 > echo "$ac_f90_v_output" >&5
3607 > F90FLAGS=$ac_save_F90FLAGS
3608 >
3609 > rm -f conftest.*
3610 > ac_ext=f90
3611 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3612 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3614 >
3615 > # If we are using xlf then replace all the commas with spaces.
3616 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3617 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3618 > fi
3619 >
3620 > # If we are using Cray Fortran then delete quotes.
3621 > # Use "\"" instead of '"' for font-lock-mode.
3622 > # FIXME: a more general fix for quoted arguments with spaces?
3623 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3624 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3625 > fi
3626 >
3627 > ac_cv_f90libs=
3628 >
3629 > # Save positional arguments (if any)
3630 > ac_save_positional="$@"
3631 >
3632 > set X $ac_f90_v_output
3633 > while test $# != 1; do
3634 >  shift
3635 >  ac_arg=$1
3636 >  case $ac_arg in
3637 >        [\\/]*.a | ?:[\\/]*.a)
3638 >            ac_exists=false
3639 >  for ac_i in $ac_cv_f90libs; do
3640 >    if test x"$ac_arg" = x"$ac_i"; then
3641 >      ac_exists=true
3642 >      break
3643 >    fi
3644 >  done
3645 >
3646 >  if test x"$ac_exists" = xtrue; then
3647 >  :
3648 > else
3649 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3650 > fi
3651 >
3652 >          ;;
3653 >        -bI:*)
3654 >            ac_exists=false
3655 >  for ac_i in $ac_cv_f90libs; do
3656 >    if test x"$ac_arg" = x"$ac_i"; then
3657 >      ac_exists=true
3658 >      break
3659 >    fi
3660 >  done
3661 >
3662 >  if test x"$ac_exists" = xtrue; then
3663 >  :
3664 > else
3665 >  if test "$ac_compiler_gnu" = yes; then
3666 >  for ac_link_opt in $ac_arg; do
3667 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3668 >  done
3669 > else
3670 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3671 > fi
3672 > fi
3673 >
3674 >          ;;
3675 >          # Ignore these flags.
3676 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3677 >          ;;
3678 >        -lkernel32)
3679 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3680 >          ;;
3681 >        -[LRuY])
3682 >          # These flags, when seen by themselves, take an argument.
3683 >          # We remove the space between option and argument and re-iterate
3684 >          # unless we find an empty arg or a new option (starting with -)
3685 >          case $2 in
3686 >             "" | -*);;
3687 >             *)
3688 >                ac_arg="$ac_arg$2"
3689 >
3690 >                shift; shift
3691 >                set X $ac_arg "$@"
3692 >                ;;
3693 >          esac
3694 >          ;;
3695 >        -YP,*)
3696 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3697 >              ac_exists=false
3698 >  for ac_i in $ac_cv_f90libs; do
3699 >    if test x"$ac_j" = x"$ac_i"; then
3700 >      ac_exists=true
3701 >      break
3702 >    fi
3703 >  done
3704 >
3705 >  if test x"$ac_exists" = xtrue; then
3706 >  :
3707 > else
3708 >  ac_arg="$ac_arg $ac_j"
3709 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3710 > fi
3711 >
3712 >          done
3713 >          ;;
3714 >        -[lLR]*)
3715 >            ac_exists=false
3716 >  for ac_i in $ac_cv_f90libs; do
3717 >    if test x"$ac_arg" = x"$ac_i"; then
3718 >      ac_exists=true
3719 >      break
3720 >    fi
3721 >  done
3722 >
3723 >  if test x"$ac_exists" = xtrue; then
3724 >  :
3725 > else
3726 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3727 > fi
3728 >
3729 >          ;;
3730 >          # Ignore everything else.
3731 >  esac
3732 > done
3733 > # restore positional arguments
3734 > set X $ac_save_positional; shift
3735 >
3736 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3737 > # then we insist that the "run path" must be an absolute path (i.e. it
3738 > # must begin with a "/").
3739 > case `(uname -sr) 2>/dev/null` in
3740 >   "SunOS 5"*)
3741 >      ac_ld_run_path=`echo $ac_f90_v_output |
3742 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3743 >      test "x$ac_ld_run_path" != x &&
3744 >
3745 >        if test "$ac_compiler_gnu" = yes; then
3746 >  for ac_link_opt in $ac_ld_run_path; do
3747 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3748 >  done
3749 > else
3750 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3751 > fi
3752 >      ;;
3753 > esac
3754 > fi # test "x$F90LIBS" = "x"
3755 >
3756 > fi
3757 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3758 > echo "${ECHO_T}$ac_cv_flibs" >&6
3759 > F90LIBS="$ac_cv_f90libs"
3760 >
3761 > ac_ext=f90
3762 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3763 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3765 >
3766 >
3767 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3768 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3769 > if test "${ac_cv_f90_mangling+set}" = set; then
3770 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3771 > else
3772 >  ac_ext=f90
3773 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3774 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3776 > cat >conftest.$ac_ext <<_ACEOF
3777 > subroutine foobar()
3778 > return
3779 > end
3780 > subroutine foo_bar()
3781 > return
3782 > end
3783 > _ACEOF
3784 > rm -f conftest.$ac_objext
3785 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 >  (eval $ac_compile) 2>conftest.er1
3787 >  ac_status=$?
3788 >  grep -v '^ *+' conftest.er1 >conftest.err
3789 >  rm -f conftest.er1
3790 >  cat conftest.err >&5
3791 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 >  (exit $ac_status); } &&
3793 >         { ac_try='test -z "$ac_f90_werror_flag"
3794 >                         || test ! -s conftest.err'
3795 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 >  (eval $ac_try) 2>&5
3797 >  ac_status=$?
3798 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 >  (exit $ac_status); }; } &&
3800 >         { ac_try='test -s conftest.$ac_objext'
3801 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 >  (eval $ac_try) 2>&5
3803 >  ac_status=$?
3804 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 >  (exit $ac_status); }; }; then
3806 >  mv conftest.$ac_objext cf90_test.$ac_objext
3807 >
3808 >  ac_ext=c
3809 > ac_cpp='$CPP $CPPFLAGS'
3810 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 >
3814 >  ac_save_LIBS=$LIBS
3815 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3816 >
3817 >  ac_success=no
3818 >  for ac_foobar in foobar FOOBAR; do
3819 >    for ac_underscore in "" "_"; do
3820 >      ac_func="$ac_foobar$ac_underscore"
3821 >      cat >conftest.$ac_ext <<_ACEOF
3822 > /* confdefs.h.  */
3823 > _ACEOF
3824 > cat confdefs.h >>conftest.$ac_ext
3825 > cat >>conftest.$ac_ext <<_ACEOF
3826 > /* end confdefs.h.  */
3827 >
3828 > /* Override any gcc2 internal prototype to avoid an error.  */
3829 > #ifdef __cplusplus
3830 > extern "C"
3831 > #endif
3832 > /* We use char because int might match the return type of a gcc2
3833 >   builtin and then its argument prototype would still apply.  */
3834 > char $ac_func ();
3835 > int
3836 > main ()
3837 > {
3838 > $ac_func ();
3839 >  ;
3840 >  return 0;
3841 > }
3842 > _ACEOF
3843 > rm -f conftest.$ac_objext conftest$ac_exeext
3844 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 >  (eval $ac_link) 2>conftest.er1
3846 >  ac_status=$?
3847 >  grep -v '^ *+' conftest.er1 >conftest.err
3848 >  rm -f conftest.er1
3849 >  cat conftest.err >&5
3850 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 >  (exit $ac_status); } &&
3852 >         { ac_try='test -z "$ac_c_werror_flag"
3853 >                         || test ! -s conftest.err'
3854 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 >  (eval $ac_try) 2>&5
3856 >  ac_status=$?
3857 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 >  (exit $ac_status); }; } &&
3859 >         { ac_try='test -s conftest$ac_exeext'
3860 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 >  (eval $ac_try) 2>&5
3862 >  ac_status=$?
3863 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 >  (exit $ac_status); }; }; then
3865 >  ac_success=yes; break 2
3866 > else
3867 >  echo "$as_me: failed program was:" >&5
3868 > sed 's/^/| /' conftest.$ac_ext >&5
3869 >
3870 > fi
3871 > rm -f conftest.err conftest.$ac_objext \
3872 >      conftest$ac_exeext conftest.$ac_ext
3873 >    done
3874 >  done
3875 >
3876 >  if test "$ac_success" = "yes"; then
3877 >     case $ac_foobar in
3878 >        foobar)
3879 >           ac_case=lower
3880 >           ac_foo_bar=foo_bar
3881 >           ;;
3882 >        FOOBAR)
3883 >           ac_case=upper
3884 >           ac_foo_bar=FOO_BAR
3885 >           ;;
3886 >     esac
3887 >
3888 >     ac_success_extra=no
3889 >     for ac_extra in "" "_"; do
3890 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3891 >
3892 >        cat >conftest.$ac_ext <<_ACEOF
3893 > /* confdefs.h.  */
3894 > _ACEOF
3895 > cat confdefs.h >>conftest.$ac_ext
3896 > cat >>conftest.$ac_ext <<_ACEOF
3897 > /* end confdefs.h.  */
3898 >
3899 > /* Override any gcc2 internal prototype to avoid an error.  */
3900 > #ifdef __cplusplus
3901 > extern "C"
3902 > #endif
3903 > /* We use char because int might match the return type of a gcc2
3904 >   builtin and then its argument prototype would still apply.  */
3905 > char $ac_func ();
3906 > int
3907 > main ()
3908 > {
3909 > $ac_func ();
3910 >  ;
3911 >  return 0;
3912 > }
3913 > _ACEOF
3914 > rm -f conftest.$ac_objext conftest$ac_exeext
3915 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 >  (eval $ac_link) 2>conftest.er1
3917 >  ac_status=$?
3918 >  grep -v '^ *+' conftest.er1 >conftest.err
3919 >  rm -f conftest.er1
3920 >  cat conftest.err >&5
3921 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 >  (exit $ac_status); } &&
3923 >         { ac_try='test -z "$ac_c_werror_flag"
3924 >                         || test ! -s conftest.err'
3925 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 >  (eval $ac_try) 2>&5
3927 >  ac_status=$?
3928 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 >  (exit $ac_status); }; } &&
3930 >         { ac_try='test -s conftest$ac_exeext'
3931 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 >  (eval $ac_try) 2>&5
3933 >  ac_status=$?
3934 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 >  (exit $ac_status); }; }; then
3936 >  ac_success_extra=yes; break
3937 > else
3938 >  echo "$as_me: failed program was:" >&5
3939 > sed 's/^/| /' conftest.$ac_ext >&5
3940 >
3941 > fi
3942 > rm -f conftest.err conftest.$ac_objext \
3943 >      conftest$ac_exeext conftest.$ac_ext
3944 >     done
3945 >
3946 >     if test "$ac_success_extra" = "yes"; then
3947 >        ac_cv_f90_mangling="$ac_case case"
3948 >        if test -z "$ac_underscore"; then
3949 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3950 >        else
3951 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3952 >
3953 >        fi
3954 >        if test -z "$ac_extra"; then
3955 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3956 >        else
3957 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3958 >        fi
3959 >      else
3960 >        ac_cv_f90_mangling="unknown"
3961 >      fi
3962 >  else
3963 >     ac_cv_f90_mangling="unknown"
3964 >
3965 >  fi
3966 >
3967 >  LIBS=$ac_save_LIBS
3968 >  ac_ext=f90
3969 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3970 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3972 >  rm -f cf90_test* conftest*
3973 > else
3974 >  echo "$as_me: failed program was:" >&5
3975 > sed 's/^/| /' conftest.$ac_ext >&5
3976 >
3977 > fi
3978 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 > ac_ext=f90
3980 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3981 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3983 >
3984 > fi
3985 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3986 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3987 >
3988 >
3989 >
3990 > case $ac_cv_f90_mangling in
3991 >  "lower case, no underscore, no extra underscore")
3992 >          cat >>confdefs.h <<\_ACEOF
3993 > #define F90_FUNC(name,NAME) name
3994 > _ACEOF
3995 >
3996 >          cat >>confdefs.h <<\_ACEOF
3997 > #define F90_FUNC_(name,NAME) name
3998 > _ACEOF
3999 > ;;
4000 >  "lower case, no underscore, extra underscore")
4001 >          cat >>confdefs.h <<\_ACEOF
4002 > #define F90_FUNC(name,NAME) name
4003 > _ACEOF
4004 >
4005 >          cat >>confdefs.h <<\_ACEOF
4006 > #define F90_FUNC_(name,NAME) name ## _
4007 > _ACEOF
4008 > ;;
4009 >  "lower case, underscore, no extra underscore")
4010 >          cat >>confdefs.h <<\_ACEOF
4011 > #define F90_FUNC(name,NAME) name ## _
4012 > _ACEOF
4013 >
4014 >          cat >>confdefs.h <<\_ACEOF
4015 > #define F90_FUNC_(name,NAME) name ## _
4016 > _ACEOF
4017 > ;;
4018 >  "lower case, underscore, extra underscore")
4019 >          cat >>confdefs.h <<\_ACEOF
4020 > #define F90_FUNC(name,NAME) name ## _
4021 > _ACEOF
4022 >
4023 >          cat >>confdefs.h <<\_ACEOF
4024 > #define F90_FUNC_(name,NAME) name ## __
4025 > _ACEOF
4026 > ;;
4027 >  "upper case, no underscore, no extra underscore")
4028 >          cat >>confdefs.h <<\_ACEOF
4029 > #define F90_FUNC(name,NAME) NAME
4030 > _ACEOF
4031 >
4032 >          cat >>confdefs.h <<\_ACEOF
4033 > #define F90_FUNC_(name,NAME) NAME
4034 > _ACEOF
4035 > ;;
4036 >  "upper case, no underscore, extra underscore")
4037 >          cat >>confdefs.h <<\_ACEOF
4038 > #define F90_FUNC(name,NAME) NAME
4039 > _ACEOF
4040 >
4041 >          cat >>confdefs.h <<\_ACEOF
4042 > #define F90_FUNC_(name,NAME) NAME ## _
4043 > _ACEOF
4044 > ;;
4045 >  "upper case, underscore, no extra underscore")
4046 >          cat >>confdefs.h <<\_ACEOF
4047 > #define F90_FUNC(name,NAME) NAME ## _
4048 > _ACEOF
4049 >
4050 >          cat >>confdefs.h <<\_ACEOF
4051 > #define F90_FUNC_(name,NAME) NAME ## _
4052 > _ACEOF
4053 > ;;
4054 >  "upper case, underscore, extra underscore")
4055 >          cat >>confdefs.h <<\_ACEOF
4056 > #define F90_FUNC(name,NAME) NAME ## _
4057 > _ACEOF
4058 >
4059 >          cat >>confdefs.h <<\_ACEOF
4060 > #define F90_FUNC_(name,NAME) NAME ## __
4061 > _ACEOF
4062 > ;;
4063 >  *)
4064 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4065 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4066 >          ;;
4067 > esac
4068 >
4069 >
4070 >
4071 >
4072 >
4073 > echo "$as_me:$LINENO: checking for module suffix" >&5
4074 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4075 > rm -f conftest*
4076 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4077 > rm -f work*
4078 > cat >conftest.f90 <<EOF
4079 >        module conftest
4080 >        integer n
4081 >        parameter (n=1)
4082 >        end module conftest
4083 > EOF
4084 > # SGI and absoft compilers generates module name in upper case!
4085 > testname="conftest"
4086 > modcase="lower"
4087 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4088 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4089 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4090 >    if test -z "$MOD" ; then
4091 >        MOD=`ls CONFTEST* 2>/dev/null \
4092 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4093 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4094 >        if test -n "$MOD" ; then
4095 >            testname="CONFTEST"
4096 >            modcase="upper"
4097 >        fi
4098 >    fi
4099 >    if test -z "$MOD" ; then
4100 >        echo "$as_me:$LINENO: result: unknown" >&5
4101 > echo "${ECHO_T}unknown" >&6
4102 >        # Use mod if we can't figure it out
4103 >        MOD="mod"
4104 >    else
4105 >        echo "$as_me:$LINENO: result: $MOD" >&5
4106 > echo "${ECHO_T}$MOD" >&6
4107 >    fi
4108 >    if test -s work.pcl ; then
4109 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4110 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4111 >    fi
4112 > else
4113 >    echo "$as_me:$LINENO: result: unknown" >&5
4114 > echo "${ECHO_T}unknown" >&6
4115 > fi
4116 >
4117 >
4118 >
4119 >
4120 >
4121 > # Check for module include path (some use -I, some (Solaris) use -M, some
4122 > # (absoft) use -p).
4123 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4124 > # specified, work.pcl and work.pc are created.  However, if you specify
4125 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
4126 > # Use the module made above
4127 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
4128 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4129 > rm -f conftest*
4130 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4131 > rm -f work*
4132 > cat >conftest.f90 <<EOF
4133 >        module conftest
4134 >        integer n
4135 >        parameter (n=1)
4136 >        end module conftest
4137 > EOF
4138 > # SGI and absoft compilers generates module name in upper case!
4139 > testname="conftest"
4140 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4141 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4142 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4143 >   if test -n "$mod" ; then
4144 >      testname="CONFTEST"
4145 >   fi
4146 >   madedir=0
4147 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4148 >   cp $testname.$MOD conf
4149 >   rm -f conftest* CONFTEST*
4150 >   cat >conftest1.f90 <<EOF
4151 >        program main
4152 >        use conftest
4153 >        print *, n
4154 >        end
4155 > EOF
4156 >   F90_WORK_FILES_ARG=""
4157 >   F90MODINCSPEC=""
4158 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4159 >       MODDIRFLAG="-I"
4160 >       F90MODINCSPEC="-I<dir>"
4161 >       echo "$as_me:$LINENO: result: -I" >&5
4162 > echo "${ECHO_T}-I" >&6
4163 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4164 >       MODDIRFLAG="-M"
4165 >       F90MODINCSPEC="-M<dir>"
4166 >       echo "$as_me:$LINENO: result: -M" >&5
4167 > echo "${ECHO_T}-M" >&6
4168 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4169 >       MODDIRFLAG="-p"
4170 >       F90MODINCSPEC="-p<dir>"
4171 >       echo "$as_me:$LINENO: result: -p" >&5
4172 > echo "${ECHO_T}-p" >&6
4173 >   elif test -s work.pc ; then
4174 >        cp work.pc conf/mpimod.pc
4175 >        echo "mpimod.pc" > conf/mpimod.pcl
4176 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4177 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4178 >            MODDIRFLAG='-cl,mpimod.pcl'
4179 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4180 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4181 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4182 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4183 >
4184 >        else
4185 >            # The version of the Intel compiler that I have refuses to let
4186 >            # you put the "work catalog" list anywhere but the current
4187 >            # directory. For example, you cannot in
4188 >         :
4189 >        fi
4190 >   fi
4191 >   if test -z "MODDIRFLAG" ; then
4192 >       echo "$as_me:$LINENO: result: unknown" >&5
4193 > echo "${ECHO_T}unknown" >&6
4194 >   fi
4195 >
4196 >
4197 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4198 >   if test $madedir = 1 ; then rmdir conf ; fi
4199 > fi
4200 >
4201 >
4202 >
4203 >
4204 > case $debug in
4205 >  1)
4206 >     ;;
4207 >  *)
4208 >
4209 >
4210 >
4211 >
4212 >
4213 >
4214 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4215 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4216 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4217 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4218 > else
4219 >
4220 > cat > conftest.c <<EOF
4221 > #ifdef __GNUC__
4222 >  #ifndef __INTEL_COMPILER
4223 >     yes;
4224 >  #endif
4225 > #endif
4226 > EOF
4227 > if { ac_try='${CC-cc} -E conftest.c'
4228 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 >  (eval $ac_try) 2>&5
4230 >  ac_status=$?
4231 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4233 >  ac_cv_prog_really_gcc=yes
4234 > else
4235 >  ac_cv_prog_really_gcc=no
4236 > fi
4237 >
4238 > fi
4239 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4240 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4241 > if test "$ac_cv_prog_really_gcc" = yes; then
4242 >        :
4243 >
4244 > else
4245 >        :
4246 >
4247 > fi
4248 >
4249 >
4250 > # Try to determine "good" native compiler flags if none specified on command
4251 > # line
4252 > if test "$ac_test_CFLAGS" != "set"; then
4253 >  CFLAGS=""
4254 >  case "${host_cpu}-${host_os}" in
4255 >
4256 >  *linux*) if test "$CC" = icc; then
4257 >                    CFLAGS="-O"
4258 >                fi;;
4259 >  sparc-solaris2*) if test "$CC" = cc; then
4260 >                    CFLAGS="-native -fast -xO5 -dalign"
4261 >                 fi;;
4262 >
4263 >  alpha*-osf*)  if test "$CC" = cc; then
4264 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4265 >                fi;;
4266 >
4267 >  hppa*-hpux*)  if test "$CC" = cc; then
4268 >                    CFLAGS="-Ae +O3 +Oall"
4269 >                fi;;
4270 >
4271 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4272 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4273 >                fi;;
4274 >   powerpc*-aix*)
4275 >        if test "$CC" = cc -o "$CC" = xlc; then
4276 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4277 >                echo "*******************************************************"
4278 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4279 >                echo "*  recommended that you use                           *"
4280 >                echo "*                                                     *"
4281 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4282 >                echo "*                                 ^^^                 *"
4283 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4284 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4285 >                echo "*******************************************************"
4286 >        fi;;
4287 >   *darwin*)
4288 >        if test "$CC" = xlc -o "$CC" = cc; then
4289 >                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4290 >        fi;;
4291 >  esac
4292 >
4293 >  # use default flags for gcc on all systems
4294 >  if test $ac_cv_prog_really_gcc = yes; then
4295 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4296 >  fi
4297 >
4298 >  # test for gcc-specific flags:
4299 >  if test $ac_cv_prog_really_gcc = yes; then
4300 >    # -malign-double for x86 systems
4301 >
4302 >
4303 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4304 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4305 > if test "${ac_align_double+set}" = set; then
4306 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4307 > else
4308 >  echo 'void f(){}' > conftest.c
4309 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4310 >        ac_align_double=yes
4311 > else
4312 >        ac_align_double=no
4313 > fi
4314 > rm -f conftest*
4315 >
4316 > fi
4317 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4318 > echo "${ECHO_T}$ac_align_double" >&6
4319 > if test "$ac_align_double" = yes; then
4320 >        :
4321 >        CFLAGS="$CFLAGS -malign-double"
4322 > else
4323 >        :
4324 >
4325 > fi
4326 >
4327 >    # -fstrict-aliasing for gcc-2.95+
4328 >
4329 >
4330 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4331 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4332 > if test "${ac_fstrict_aliasing+set}" = set; then
4333 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4334 > else
4335 >  echo 'void f(){}' > conftest.c
4336 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4337 >        ac_fstrict_aliasing=yes
4338 > else
4339 >        ac_fstrict_aliasing=no
4340 > fi
4341 > rm -f conftest*
4342 >
4343 > fi
4344 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4345 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4346 > if test "$ac_fstrict_aliasing" = yes; then
4347 >        :
4348 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4349 > else
4350 >        :
4351 >
4352 > fi
4353 >
4354 >  fi
4355 >
4356 >  CPU_FLAGS=""
4357 >  if test $ac_cv_prog_really_gcc = yes; then
4358 >                  case "${host_cpu}" in
4359 >          i586*)
4360 >
4361 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4362 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4363 > if test "${ac_cpu_pentium+set}" = set; then
4364 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4365 > else
4366 >  echo 'void f(){}' > conftest.c
4367 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4368 >        ac_cpu_pentium=yes
4369 > else
4370 >        ac_cpu_pentium=no
4371 > fi
4372 > rm -f conftest*
4373 >
4374 > fi
4375 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4376 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4377 > if test "$ac_cpu_pentium" = yes; then
4378 >        :
4379 >        CPU_FLAGS=-mcpu=pentium
4380 > else
4381 >        :
4382 >
4383 >
4384 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4385 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4386 > if test "${ac_pentium+set}" = set; then
4387 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4388 > else
4389 >  echo 'void f(){}' > conftest.c
4390 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4391 >        ac_pentium=yes
4392 > else
4393 >        ac_pentium=no
4394 > fi
4395 > rm -f conftest*
4396 >
4397 > fi
4398 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4399 > echo "${ECHO_T}$ac_pentium" >&6
4400 > if test "$ac_pentium" = yes; then
4401 >        :
4402 >        CPU_FLAGS=-mpentium
4403 > else
4404 >        :
4405 >
4406 > fi
4407 >
4408 > fi
4409 >
4410 >                  ;;
4411 >          i686*)
4412 >
4413 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4414 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4415 > if test "${ac_cpu_pentiumpro+set}" = set; then
4416 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4417 > else
4418 >  echo 'void f(){}' > conftest.c
4419 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4420 >        ac_cpu_pentiumpro=yes
4421 > else
4422 >        ac_cpu_pentiumpro=no
4423 > fi
4424 > rm -f conftest*
4425 >
4426 > fi
4427 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4428 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4429 > if test "$ac_cpu_pentiumpro" = yes; then
4430 >        :
4431 >        CPU_FLAGS=-mcpu=pentiumpro
4432 > else
4433 >        :
4434 >
4435 >
4436 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4437 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4438 > if test "${ac_pentiumpro+set}" = set; then
4439 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4440 > else
4441 >  echo 'void f(){}' > conftest.c
4442 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4443 >        ac_pentiumpro=yes
4444 > else
4445 >        ac_pentiumpro=no
4446 > fi
4447 > rm -f conftest*
4448 >
4449 > fi
4450 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4451 > echo "${ECHO_T}$ac_pentiumpro" >&6
4452 > if test "$ac_pentiumpro" = yes; then
4453 >        :
4454 >        CPU_FLAGS=-mpentiumpro
4455 > else
4456 >        :
4457 >
4458 > fi
4459 >
4460 > fi
4461 >
4462 >                  ;;
4463 >          powerpc*)
4464 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4465 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4466 >                if test -n "$is60x"; then
4467 >
4468 >
4469 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4470 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4471 > if test "${ac_m_cpu_60x+set}" = set; then
4472 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4473 > else
4474 >  echo 'void f(){}' > conftest.c
4475 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4476 >        ac_m_cpu_60x=yes
4477 > else
4478 >        ac_m_cpu_60x=no
4479 > fi
4480 > rm -f conftest*
4481 >
4482 > fi
4483 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4484 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4485 > if test "$ac_m_cpu_60x" = yes; then
4486 >        :
4487 >        CPU_FLAGS=-mcpu=$cputype
4488 > else
4489 >        :
4490 >
4491 > fi
4492 >
4493 >                elif test "$cputype" = 750; then
4494 >
4495 >
4496 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4497 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4498 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4499 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4500 > else
4501 >
4502 > cat > conftest.c <<EOF
4503 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4504 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4505 >     yes;
4506 > #  endif
4507 > #endif
4508 > EOF
4509 > if { ac_try='${CC-cc} -E conftest.c'
4510 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 >  (eval $ac_try) 2>&5
4512 >  ac_status=$?
4513 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4515 >  ac_cv_prog_gcc_2_95=yes
4516 > else
4517 >  ac_cv_prog_gcc_2_95=no
4518 > fi
4519 >
4520 > fi
4521 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4522 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4523 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4524 >        :
4525 >
4526 >
4527 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4528 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4529 > if test "${ac_m_cpu_750+set}" = set; then
4530 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4531 > else
4532 >  echo 'void f(){}' > conftest.c
4533 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4534 >        ac_m_cpu_750=yes
4535 > else
4536 >        ac_m_cpu_750=no
4537 > fi
4538 > rm -f conftest*
4539 >
4540 > fi
4541 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4542 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4543 > if test "$ac_m_cpu_750" = yes; then
4544 >        :
4545 >        CPU_FLAGS=-mcpu=750
4546 > else
4547 >        :
4548 >
4549 > fi
4550 >
4551 > else
4552 >        :
4553 >
4554 > fi
4555 >
4556 >                fi
4557 >                if test -z "$CPU_FLAGS"; then
4558 >
4559 >
4560 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4561 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4562 > if test "${ac_m_cpu_powerpc+set}" = set; then
4563 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4564 > else
4565 >  echo 'void f(){}' > conftest.c
4566 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4567 >        ac_m_cpu_powerpc=yes
4568 > else
4569 >        ac_m_cpu_powerpc=no
4570 > fi
4571 > rm -f conftest*
4572 >
4573 > fi
4574 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4575 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4576 > if test "$ac_m_cpu_powerpc" = yes; then
4577 >        :
4578 >        CPU_FLAGS=-mcpu=powerpc
4579 > else
4580 >        :
4581 >
4582 > fi
4583 >
4584 >                fi
4585 >                if test -z "$CPU_FLAGS"; then
4586 >
4587 >
4588 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4589 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4590 > if test "${ac_m_powerpc+set}" = set; then
4591 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4592 > else
4593 >  echo 'void f(){}' > conftest.c
4594 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4595 >        ac_m_powerpc=yes
4596 > else
4597 >        ac_m_powerpc=no
4598 > fi
4599 > rm -f conftest*
4600 >
4601 > fi
4602 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4603 > echo "${ECHO_T}$ac_m_powerpc" >&6
4604 > if test "$ac_m_powerpc" = yes; then
4605 >        :
4606 >        CPU_FLAGS=-mpowerpc
4607 > else
4608 >        :
4609 >
4610 > fi
4611 >
4612 >                fi
4613 >          esac
4614 >  fi
4615 >
4616 >  if test -n "$CPU_FLAGS"; then
4617 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4618 >  fi
4619 >
4620 >  if test -z "$CFLAGS"; then
4621 >        echo ""
4622 >        echo "********************************************************"
4623 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4624 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4625 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4626 >        echo "********************************************************"
4627 >        echo ""
4628 >        CFLAGS="-O3"
4629 >  fi
4630 >
4631 >
4632 >
4633 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4634 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4635 > if test "${ac_guessed_cflags+set}" = set; then
4636 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4637 > else
4638 >  echo 'void f(){}' > conftest.c
4639 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4640 >        ac_guessed_cflags=yes
4641 > else
4642 >        ac_guessed_cflags=no
4643 > fi
4644 > rm -f conftest*
4645 >
4646 > fi
4647 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4648 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4649 > if test "$ac_guessed_cflags" = yes; then
4650 >        :
4651 >
4652 > else
4653 >        :
4654 >
4655 >        echo ""
4656 >        echo "********************************************************"
4657 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4658 >        echo "* your compiler.                                       *"
4659 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4660 >        echo "********************************************************"
4661 >        echo ""
4662 >        CFLAGS=""
4663 >
4664 > fi
4665 >
4666 >
4667 > fi
4668 >
4669 >
4670 >
4671 >
4672 >
4673 >
4674 >
4675 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4676 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4677 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4678 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4679 > else
4680 >
4681 > cat > conftest.cpp <<EOF
4682 > #ifdef __GNUC__
4683 >  #ifndef __INTEL_COMPILER
4684 >     yes;
4685 >  #endif
4686 > #endif
4687 > EOF
4688 > if { ac_try='${CXX-c++} -E conftest.cpp'
4689 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 >  (eval $ac_try) 2>&5
4691 >  ac_status=$?
4692 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4694 >  ac_cv_prog_really_gxx=yes
4695 > else
4696 >  ac_cv_prog_really_gxx=no
4697 > fi
4698 >
4699 > fi
4700 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4701 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4702 > if test "$ac_cv_prog_really_gxx" = yes; then
4703 >        :
4704 >
4705 > else
4706 >        :
4707 >
4708 > fi
4709 >
4710 >
4711 > # Try to determine "good" native compiler flags if none specified on command
4712 > # line
4713 > if test "$ac_test_CXXFLAGS" != "set"; then
4714 >  CXXFLAGS=""
4715 >  case "${host_cpu}-${host_os}" in
4716 >
4717 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4718 >                    CXXFLAGS="-O"
4719 >                fi;;
4720 >  sparc-solaris2*) if test "$CXX" = CC; then
4721 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4722 >                 fi;;
4723 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4724 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4725 >                fi;;
4726 >   powerpc*-aix*)
4727 >        if test "$CXX" = xlC; then
4728 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4729 >                echo "*******************************************************"
4730 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4731 >                echo "*  recommended that you use                           *"
4732 >                echo "*                                                     *"
4733 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4734 >                echo "*                                 ^^^                 *"
4735 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4736 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4737 >                echo "*******************************************************"
4738 >        fi;;
4739 >   *darwin*)
4740 >        if test "$CXX" = xlc++; then
4741 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4742 >        fi;;
4743 >  esac
4744 >
4745 >  # use default flags for gcc on all systems
4746 >  if test $ac_cv_prog_really_gxx = yes; then
4747 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4748 >  fi
4749 >
4750 >  # test for gcc-specific flags:
4751 >  if test $ac_cv_prog_really_gxx = yes; then
4752 >    # -malign-double for x86 systems
4753 >
4754 >
4755 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4756 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4757 > if test "${ac_align_double+set}" = set; then
4758 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4759 > else
4760 >  echo 'void f(){}' > conftest.cpp
4761 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4762 >        ac_align_double=yes
4763 > else
4764 >        ac_align_double=no
4765 > fi
4766 > rm -f conftest*
4767 >
4768 > fi
4769 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4770 > echo "${ECHO_T}$ac_align_double" >&6
4771 > if test "$ac_align_double" = yes; then
4772 >        :
4773 >        CXXFLAGS="$CXXFLAGS -malign-double"
4774 > else
4775 >        :
4776 >
4777 > fi
4778 >
4779 >    # -fstrict-aliasing for gcc-2.95+
4780 >
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4783 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4784 > if test "${ac_fstrict_aliasing+set}" = set; then
4785 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4786 > else
4787 >  echo 'void f(){}' > conftest.cpp
4788 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4789 >        ac_fstrict_aliasing=yes
4790 > else
4791 >        ac_fstrict_aliasing=no
4792 > fi
4793 > rm -f conftest*
4794 >
4795 > fi
4796 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4797 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4798 > if test "$ac_fstrict_aliasing" = yes; then
4799 >        :
4800 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4801 > else
4802 >        :
4803 >
4804 > fi
4805 >
4806 >  fi
4807 >
4808 >  CPU_FLAGS=""
4809 >  if test $ac_cv_prog_really_gxx = yes; then
4810 >                  case "${host_cpu}" in
4811 >          i586*)
4812 >
4813 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4814 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4815 > if test "${ac_cpu_pentium+set}" = set; then
4816 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4817 > else
4818 >  echo 'void f(){}' > conftest.cpp
4819 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4820 >        ac_cpu_pentium=yes
4821 > else
4822 >        ac_cpu_pentium=no
4823 > fi
4824 > rm -f conftest*
4825 >
4826 > fi
4827 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4828 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4829 > if test "$ac_cpu_pentium" = yes; then
4830 >        :
4831 >        CPU_FLAGS=-mcpu=pentium
4832 > else
4833 >        :
4834 >
4835 >
4836 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4837 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4838 > if test "${ac_pentium+set}" = set; then
4839 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4840 > else
4841 >  echo 'void f(){}' > conftest.cpp
4842 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4843 >        ac_pentium=yes
4844 > else
4845 >        ac_pentium=no
4846 > fi
4847 > rm -f conftest*
4848 >
4849 > fi
4850 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4851 > echo "${ECHO_T}$ac_pentium" >&6
4852 > if test "$ac_pentium" = yes; then
4853 >        :
4854 >        CPU_FLAGS=-mpentium
4855 > else
4856 >        :
4857 >
4858 > fi
4859 >
4860 > fi
4861 >
4862 >                  ;;
4863 >          i686*)
4864 >
4865 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4866 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4867 > if test "${ac_cpu_pentiumpro+set}" = set; then
4868 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4869 > else
4870 >  echo 'void f(){}' > conftest.cpp
4871 > if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4872 >        ac_cpu_pentiumpro=yes
4873 > else
4874 >        ac_cpu_pentiumpro=no
4875 > fi
4876 > rm -f conftest*
4877 >
4878 > fi
4879 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4880 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4881 > if test "$ac_cpu_pentiumpro" = yes; then
4882 >        :
4883 >        CPU_FLAGS=-mcpu=pentiumpro
4884 > else
4885 >        :
4886 >
4887 >
4888 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4889 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4890 > if test "${ac_pentiumpro+set}" = set; then
4891 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4892 > else
4893 >  echo 'void f(){}' > conftest.cpp
4894 > if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4895 >        ac_pentiumpro=yes
4896 > else
4897 >        ac_pentiumpro=no
4898 > fi
4899 > rm -f conftest*
4900 >
4901 > fi
4902 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4903 > echo "${ECHO_T}$ac_pentiumpro" >&6
4904 > if test "$ac_pentiumpro" = yes; then
4905 >        :
4906 >        CPU_FLAGS=-mpentiumpro
4907 > else
4908 >        :
4909 >
4910 > fi
4911 >
4912 > fi
4913 >
4914 >                  ;;
4915 >          powerpc*)
4916 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4917 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4918 >                if test -n "$is60x"; then
4919 >
4920 >
4921 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4922 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4923 > if test "${ac_m_cpu_60x+set}" = set; then
4924 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4925 > else
4926 >  echo 'void f(){}' > conftest.cpp
4927 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4928 >        ac_m_cpu_60x=yes
4929 > else
4930 >        ac_m_cpu_60x=no
4931 > fi
4932 > rm -f conftest*
4933 >
4934 > fi
4935 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4936 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4937 > if test "$ac_m_cpu_60x" = yes; then
4938 >        :
4939 >        CPU_FLAGS=-mcpu=$cputype
4940 > else
4941 >        :
4942 >
4943 > fi
4944 >
4945 >                elif test "$cputype" = 750; then
4946 >
4947 >
4948 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4949 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4950 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4951 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4952 > else
4953 >
4954 > cat > conftest.cpp <<EOF
4955 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4956 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4957 >     yes;
4958 > #  endif
4959 > #endif
4960 > EOF
4961 > if { ac_try='${CXX-c++} -E conftest.cpp'
4962 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 >  (eval $ac_try) 2>&5
4964 >  ac_status=$?
4965 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4967 >  ac_cv_prog_gxx_2_95=yes
4968 > else
4969 >  ac_cv_prog_gxx_2_95=no
4970 > fi
4971 >
4972 > fi
4973 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4974 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4975 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4976 >        :
4977 >
4978 >
4979 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4980 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4981 > if test "${ac_m_cpu_750+set}" = set; then
4982 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4983 > else
4984 >  echo 'void f(){}' > conftest.cpp
4985 > if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4986 >        ac_m_cpu_750=yes
4987 > else
4988 >        ac_m_cpu_750=no
4989 > fi
4990 > rm -f conftest*
4991 >
4992 > fi
4993 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4994 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4995 > if test "$ac_m_cpu_750" = yes; then
4996 >        :
4997 >        CPU_FLAGS=-mcpu=750
4998 > else
4999 >        :
5000 >
5001 > fi
5002 >
5003 > else
5004 >        :
5005 >
5006 > fi
5007 >
5008 >                fi
5009 >                if test -z "$CPU_FLAGS"; then
5010 >
5011 >
5012 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5013 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5014 > if test "${ac_m_cpu_powerpc+set}" = set; then
5015 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5016 > else
5017 >  echo 'void f(){}' > conftest.cpp
5018 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
5019 >        ac_m_cpu_powerpc=yes
5020 > else
5021 >        ac_m_cpu_powerpc=no
5022 > fi
5023 > rm -f conftest*
5024 >
5025 > fi
5026 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5027 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5028 > if test "$ac_m_cpu_powerpc" = yes; then
5029 >        :
5030 >        CPU_FLAGS=-mcpu=powerpc
5031 > else
5032 >        :
5033 >
5034 > fi
5035 >
5036 >                fi
5037 >                if test -z "$CPU_FLAGS"; then
5038 >
5039 >
5040 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5041 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5042 > if test "${ac_m_powerpc+set}" = set; then
5043 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5044 > else
5045 >  echo 'void f(){}' > conftest.cpp
5046 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
5047 >        ac_m_powerpc=yes
5048 > else
5049 >        ac_m_powerpc=no
5050 > fi
5051 > rm -f conftest*
5052 >
5053 > fi
5054 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5055 > echo "${ECHO_T}$ac_m_powerpc" >&6
5056 > if test "$ac_m_powerpc" = yes; then
5057 >        :
5058 >        CPU_FLAGS=-mpowerpc
5059 > else
5060 >        :
5061 >
5062 > fi
5063 >
5064 >                fi
5065 >          esac
5066 >  fi
5067 >
5068 >  if test -n "$CPU_FLAGS"; then
5069 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
5070 >  fi
5071 >
5072 >  if test -z "$CXXFLAGS"; then
5073 >        echo ""
5074 >        echo "**********************************************************"
5075 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
5076 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5077 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
5078 >        echo "**********************************************************"
5079 >        echo ""
5080 >        CXXFLAGS="-O3"
5081 >  fi
5082 >
5083 >
5084 >
5085 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5086 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5087 > if test "${ac_guessed_cxxflags+set}" = set; then
5088 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5089 > else
5090 >  echo 'void f(){}' > conftest.cpp
5091 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
5092 >        ac_guessed_cxxflags=yes
5093 > else
5094 >        ac_guessed_cxxflags=no
5095 > fi
5096 > rm -f conftest*
5097 >
5098 > fi
5099 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5100 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5101 > if test "$ac_guessed_cxxflags" = yes; then
5102 >        :
5103 >
5104 > else
5105 >        :
5106 >
5107 >        echo ""
5108 >        echo "**********************************************************"
5109 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
5110 >        echo "* your compiler.                                         *"
5111 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5112 >        echo "**********************************************************"
5113 >        echo ""
5114 >        CXXFLAGS=""
5115 >
5116 > fi
5117 >
5118 >
5119 > fi
5120 >
5121 >
5122 >
5123 >
5124 >
5125 > # Try to determine "good" native compiler flags if none specified on command
5126 > # line
5127 >
5128 > if test x"$F90FLAGS" = x ; then
5129 >  F90FLAGS=""
5130 >  case "${host_cpu}-${host_os}" in
5131 >
5132 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5133 >                    F90FLAGS="-O"
5134 >                fi;;
5135 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5136 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
5137 >                fi;;
5138 >   powerpc*-aix*)
5139 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5140 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
5141 >                echo "*******************************************************"
5142 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
5143 >                echo "*  recommended that you use                           *"
5144 >                echo "*                                                     *"
5145 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
5146 >                echo "*                                 ^^^                 *"
5147 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
5148 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
5149 >                echo "*******************************************************"
5150 >        fi;;
5151 >   *darwin*)
5152 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
5153 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
5154 >        fi;;
5155 >  esac
5156 >
5157 >  if test -n "$CPU_FLAGS"; then
5158 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
5159 >  fi
5160 >
5161 >  if test -z "$F90FLAGS"; then
5162 >        echo ""
5163 >        echo "**********************************************************"
5164 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
5165 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5166 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
5167 >        echo "**********************************************************"
5168 >        echo ""
5169 >        F90FLAGS="-O3"
5170 >  fi
5171 >
5172 >
5173 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5174 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5175 > if test "${ac_guessed_f90flags+set}" = set; then
5176 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5177 > else
5178 >
5179 >
5180 >
5181 > ac_ext=f90
5182 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5183 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5185 >
5186 > echo 'program main' > conftest.$ac_ext
5187 > echo 'end program main' >> conftest.$ac_ext
5188 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5189 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190 >  (eval $ac_compile) 2>&5
5191 >  ac_status=$?
5192 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 >  (exit $ac_status); }; then
5194 >        ac_guessed_f90flags=yes
5195 > else
5196 >        ac_guessed_f90flags=no
5197 > fi
5198 > rm -f conftest*
5199 > ac_ext=f90
5200 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5201 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5203 >
5204 >
5205 > fi
5206 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5207 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
5208 > if test "$ac_guessed_f90flags" = yes; then
5209 >        :
5210 >
5211 > else
5212 >        :
5213 >
5214 >        echo ""
5215 >        echo "**********************************************************"
5216 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5217 >        echo "* your compiler.                                         *"
5218 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5219 >        echo "**********************************************************"
5220 >        echo ""
5221 >        F90FLAGS=""
5222 >
5223 > fi
5224 >
5225 >
5226 > fi
5227 >
5228 >     ;;
5229 > esac
5230 >
5231 > # Find a good install program.  We prefer a C program (faster),
5232 > # so one script is as good as another.  But avoid the broken or
5233 > # incompatible versions:
5234 > # SysV /etc/install, /usr/sbin/install
5235 > # SunOS /usr/etc/install
5236 > # IRIX /sbin/install
5237 > # AIX /bin/install
5238 > # AmigaOS /C/install, which installs bootblocks on floppy discs
5239 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5240 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5241 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5242 > # OS/2's system install, which has a completely different semantic
5243 > # ./install, which can be erroneously created by make from ./install.sh.
5244 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5245 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5246 > if test -z "$INSTALL"; then
5247 > if test "${ac_cv_path_install+set}" = set; then
5248 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5249 > else
5250 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 > for as_dir in $PATH
5252 > do
5253 >  IFS=$as_save_IFS
5254 >  test -z "$as_dir" && as_dir=.
5255 >  # Account for people who put trailing slashes in PATH elements.
5256 > case $as_dir/ in
5257 >  ./ | .// | /cC/* | \
5258 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5259 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5260 >  /usr/ucb/* ) ;;
5261 >  *)
5262 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5263 >    # Don't use installbsd from OSF since it installs stuff as root
5264 >    # by default.
5265 >    for ac_prog in ginstall scoinst install; do
5266 >      for ac_exec_ext in '' $ac_executable_extensions; do
5267 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5268 >          if test $ac_prog = install &&
5269 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270 >            # AIX install.  It has an incompatible calling convention.
5271 >            :
5272 >          elif test $ac_prog = install &&
5273 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5274 >            # program-specific install script used by HP pwplus--don't use.
5275 >            :
5276 >          else
5277 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5278 >            break 3
5279 >          fi
5280 >        fi
5281 >      done
5282 >    done
5283 >    ;;
5284 > esac
5285 > done
5286 >
5287 >
5288 > fi
5289 >  if test "${ac_cv_path_install+set}" = set; then
5290 >    INSTALL=$ac_cv_path_install
5291 >  else
5292 >    # As a last resort, use the slow shell script.  We don't cache a
5293 >    # path for INSTALL within a source directory, because that will
5294 >    # break other packages using the cache if that directory is
5295 >    # removed, or if the path is relative.
5296 >    INSTALL=$ac_install_sh
5297 >  fi
5298 > fi
5299 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5300 > echo "${ECHO_T}$INSTALL" >&6
5301 >
5302 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5303 > # It thinks the first close brace ends the variable substitution.
5304 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5305 >
5306 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5307 >
5308 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5309 >
5310 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5311 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5312 > LN_S=$as_ln_s
5313 > if test "$LN_S" = "ln -s"; then
5314 >  echo "$as_me:$LINENO: result: yes" >&5
5315 > echo "${ECHO_T}yes" >&6
5316 > else
5317 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5318 > echo "${ECHO_T}no, using $LN_S" >&6
5319 > fi
5320 >
5321 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5322 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5323 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5324 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5325 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5326 > else
5327 >  cat >conftest.make <<\_ACEOF
5328 > all:
5329 >        @echo 'ac_maketemp="$(MAKE)"'
5330 > _ACEOF
5331 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5332 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5333 > if test -n "$ac_maketemp"; then
5334 >  eval ac_cv_prog_make_${ac_make}_set=yes
5335 > else
5336 >  eval ac_cv_prog_make_${ac_make}_set=no
5337 > fi
5338 > rm -f conftest.make
5339 > fi
5340 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5341 >  echo "$as_me:$LINENO: result: yes" >&5
5342 > echo "${ECHO_T}yes" >&6
5343 >  SET_MAKE=
5344 > else
5345 >  echo "$as_me:$LINENO: result: no" >&5
5346 > echo "${ECHO_T}no" >&6
5347 >  SET_MAKE="MAKE=${MAKE-make}"
5348 > fi
5349 >
5350 > if test -n "$ac_tool_prefix"; then
5351 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5352 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5353 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 > if test "${ac_cv_prog_RANLIB+set}" = set; then
5356 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5357 > else
5358 >  if test -n "$RANLIB"; then
5359 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5360 > else
5361 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 > for as_dir in $PATH
5363 > do
5364 >  IFS=$as_save_IFS
5365 >  test -z "$as_dir" && as_dir=.
5366 >  for ac_exec_ext in '' $ac_executable_extensions; do
5367 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5369 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 >    break 2
5371 >  fi
5372 > done
5373 > done
5374 >
5375 > fi
5376 > fi
5377 > RANLIB=$ac_cv_prog_RANLIB
5378 > if test -n "$RANLIB"; then
5379 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5380 > echo "${ECHO_T}$RANLIB" >&6
5381 > else
5382 >  echo "$as_me:$LINENO: result: no" >&5
5383 > echo "${ECHO_T}no" >&6
5384 > fi
5385 >
5386 > fi
5387 > if test -z "$ac_cv_prog_RANLIB"; then
5388 >  ac_ct_RANLIB=$RANLIB
5389 >  # Extract the first word of "ranlib", so it can be a program name with args.
5390 > set dummy ranlib; ac_word=$2
5391 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5393 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5394 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5395 > else
5396 >  if test -n "$ac_ct_RANLIB"; then
5397 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5398 > else
5399 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 > for as_dir in $PATH
5401 > do
5402 >  IFS=$as_save_IFS
5403 >  test -z "$as_dir" && as_dir=.
5404 >  for ac_exec_ext in '' $ac_executable_extensions; do
5405 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5407 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 >    break 2
5409 >  fi
5410 > done
5411 > done
5412 >
5413 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5414 > fi
5415 > fi
5416 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417 > if test -n "$ac_ct_RANLIB"; then
5418 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5419 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
5420 > else
5421 >  echo "$as_me:$LINENO: result: no" >&5
5422 > echo "${ECHO_T}no" >&6
5423 > fi
5424 >
5425 >  RANLIB=$ac_ct_RANLIB
5426 > else
5427 >  RANLIB="$ac_cv_prog_RANLIB"
5428 > fi
5429 >
5430 > for ac_prog in 'bison -y' byacc
5431 > do
5432 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5433 > set dummy $ac_prog; ac_word=$2
5434 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436 > if test "${ac_cv_prog_YACC+set}" = set; then
5437 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5438 > else
5439 >  if test -n "$YACC"; then
5440 >  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5441 > else
5442 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 > for as_dir in $PATH
5444 > do
5445 >  IFS=$as_save_IFS
5446 >  test -z "$as_dir" && as_dir=.
5447 >  for ac_exec_ext in '' $ac_executable_extensions; do
5448 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 >    ac_cv_prog_YACC="$ac_prog"
5450 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 >    break 2
5452 >  fi
5453 > done
5454 > done
5455 >
5456 > fi
5457 > fi
5458 > YACC=$ac_cv_prog_YACC
5459 > if test -n "$YACC"; then
5460 >  echo "$as_me:$LINENO: result: $YACC" >&5
5461 > echo "${ECHO_T}$YACC" >&6
5462 > else
5463 >  echo "$as_me:$LINENO: result: no" >&5
5464 > echo "${ECHO_T}no" >&6
5465 > fi
5466 >
5467 >  test -n "$YACC" && break
5468 > done
5469 > test -n "$YACC" || YACC="yacc"
5470 >
5471 > for ac_prog in flex lex
5472 > do
5473 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5474 > set dummy $ac_prog; ac_word=$2
5475 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477 > if test "${ac_cv_prog_LEX+set}" = set; then
5478 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5479 > else
5480 >  if test -n "$LEX"; then
5481 >  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5482 > else
5483 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 > for as_dir in $PATH
5485 > do
5486 >  IFS=$as_save_IFS
5487 >  test -z "$as_dir" && as_dir=.
5488 >  for ac_exec_ext in '' $ac_executable_extensions; do
5489 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 >    ac_cv_prog_LEX="$ac_prog"
5491 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 >    break 2
5493 >  fi
5494 > done
5495 > done
5496 >
5497 > fi
5498 > fi
5499 > LEX=$ac_cv_prog_LEX
5500 > if test -n "$LEX"; then
5501 >  echo "$as_me:$LINENO: result: $LEX" >&5
5502 > echo "${ECHO_T}$LEX" >&6
5503 > else
5504 >  echo "$as_me:$LINENO: result: no" >&5
5505 > echo "${ECHO_T}no" >&6
5506 > fi
5507 >
5508 >  test -n "$LEX" && break
5509 > done
5510 > test -n "$LEX" || LEX=":"
5511 >
5512 > if test -z "$LEXLIB"
5513 > then
5514 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5515 > echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5516 > if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5517 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5518 > else
5519 >  ac_check_lib_save_LIBS=$LIBS
5520 > LIBS="-lfl  $LIBS"
5521 > cat >conftest.$ac_ext <<_ACEOF
5522 >
5523 > program main
5524 >
5525 > call yywrap
5526 > end program main
5527 >
5528 > _ACEOF
5529 > rm -f conftest.$ac_objext conftest$ac_exeext
5530 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 >  (eval $ac_link) 2>conftest.er1
5532 >  ac_status=$?
5533 >  grep -v '^ *+' conftest.er1 >conftest.err
5534 >  rm -f conftest.er1
5535 >  cat conftest.err >&5
5536 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 >  (exit $ac_status); } &&
5538 >         { ac_try='test -z "$ac_f90_werror_flag"
5539 >                         || test ! -s conftest.err'
5540 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 >  (eval $ac_try) 2>&5
5542 >  ac_status=$?
5543 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 >  (exit $ac_status); }; } &&
5545 >         { ac_try='test -s conftest$ac_exeext'
5546 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 >  (eval $ac_try) 2>&5
5548 >  ac_status=$?
5549 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 >  (exit $ac_status); }; }; then
5551 >  ac_cv_lib_fl_yywrap=yes
5552 > else
5553 >  echo "$as_me: failed program was:" >&5
5554 > sed 's/^/| /' conftest.$ac_ext >&5
5555 >
5556 > ac_cv_lib_fl_yywrap=no
5557 > fi
5558 > rm -f conftest.err conftest.$ac_objext \
5559 >      conftest$ac_exeext conftest.$ac_ext
5560 > LIBS=$ac_check_lib_save_LIBS
5561 > fi
5562 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5563 > echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5564 > if test $ac_cv_lib_fl_yywrap = yes; then
5565 >  LEXLIB="-lfl"
5566 > else
5567 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5568 > echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5569 > if test "${ac_cv_lib_l_yywrap+set}" = set; then
5570 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5571 > else
5572 >  ac_check_lib_save_LIBS=$LIBS
5573 > LIBS="-ll  $LIBS"
5574 > cat >conftest.$ac_ext <<_ACEOF
5575 >
5576 > program main
5577 >
5578 > call yywrap
5579 > end program main
5580 >
5581 > _ACEOF
5582 > rm -f conftest.$ac_objext conftest$ac_exeext
5583 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 >  (eval $ac_link) 2>conftest.er1
5585 >  ac_status=$?
5586 >  grep -v '^ *+' conftest.er1 >conftest.err
5587 >  rm -f conftest.er1
5588 >  cat conftest.err >&5
5589 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 >  (exit $ac_status); } &&
5591 >         { ac_try='test -z "$ac_f90_werror_flag"
5592 >                         || test ! -s conftest.err'
5593 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 >  (eval $ac_try) 2>&5
5595 >  ac_status=$?
5596 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 >  (exit $ac_status); }; } &&
5598 >         { ac_try='test -s conftest$ac_exeext'
5599 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 >  (eval $ac_try) 2>&5
5601 >  ac_status=$?
5602 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 >  (exit $ac_status); }; }; then
5604 >  ac_cv_lib_l_yywrap=yes
5605 > else
5606 >  echo "$as_me: failed program was:" >&5
5607 > sed 's/^/| /' conftest.$ac_ext >&5
5608 >
5609 > ac_cv_lib_l_yywrap=no
5610 > fi
5611 > rm -f conftest.err conftest.$ac_objext \
5612 >      conftest$ac_exeext conftest.$ac_ext
5613 > LIBS=$ac_check_lib_save_LIBS
5614 > fi
5615 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5616 > echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5617 > if test $ac_cv_lib_l_yywrap = yes; then
5618 >  LEXLIB="-ll"
5619 > fi
5620 >
5621 > fi
5622 >
5623 > fi
5624 >
5625 > if test "x$LEX" != "x:"; then
5626 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5627 > echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5628 > if test "${ac_cv_prog_lex_root+set}" = set; then
5629 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5630 > else
5631 >  # The minimal lex program is just a single line: %%.  But some broken lexes
5632 > # (Solaris, I think it was) want two %% lines, so accommodate them.
5633 > cat >conftest.l <<_ACEOF
5634 > %%
5635 > %%
5636 > _ACEOF
5637 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5638 >  (eval $LEX conftest.l) 2>&5
5639 >  ac_status=$?
5640 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 >  (exit $ac_status); }
5642 > if test -f lex.yy.c; then
5643 >  ac_cv_prog_lex_root=lex.yy
5644 > elif test -f lexyy.c; then
5645 >  ac_cv_prog_lex_root=lexyy
5646 > else
5647 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5648 > echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5649 >   { (exit 1); exit 1; }; }
5650 > fi
5651 > fi
5652 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5653 > echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5654 > rm -f conftest.l
5655 > LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5656 >
5657 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5658 > echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5659 > if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5660 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5661 > else
5662 >  # POSIX says lex can declare yytext either as a pointer or an array; the
5663 > # default is implementation-dependent. Figure out which it is, since
5664 > # not all implementations provide the %pointer and %array declarations.
5665 > ac_cv_prog_lex_yytext_pointer=no
5666 > echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5667 > ac_save_LIBS=$LIBS
5668 > LIBS="$LIBS $LEXLIB"
5669 > cat >conftest.$ac_ext <<_ACEOF
5670 > `cat $LEX_OUTPUT_ROOT.c`
5671 > _ACEOF
5672 > rm -f conftest.$ac_objext conftest$ac_exeext
5673 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 >  (eval $ac_link) 2>conftest.er1
5675 >  ac_status=$?
5676 >  grep -v '^ *+' conftest.er1 >conftest.err
5677 >  rm -f conftest.er1
5678 >  cat conftest.err >&5
5679 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 >  (exit $ac_status); } &&
5681 >         { ac_try='test -z "$ac_f90_werror_flag"
5682 >                         || test ! -s conftest.err'
5683 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 >  (eval $ac_try) 2>&5
5685 >  ac_status=$?
5686 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 >  (exit $ac_status); }; } &&
5688 >         { ac_try='test -s conftest$ac_exeext'
5689 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 >  (eval $ac_try) 2>&5
5691 >  ac_status=$?
5692 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 >  (exit $ac_status); }; }; then
5694 >  ac_cv_prog_lex_yytext_pointer=yes
5695 > else
5696 >  echo "$as_me: failed program was:" >&5
5697 > sed 's/^/| /' conftest.$ac_ext >&5
5698 >
5699 > fi
5700 > rm -f conftest.err conftest.$ac_objext \
5701 >      conftest$ac_exeext conftest.$ac_ext
5702 > LIBS=$ac_save_LIBS
5703 > rm -f "${LEX_OUTPUT_ROOT}.c"
5704 >
5705 > fi
5706 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5707 > echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5708 > if test $ac_cv_prog_lex_yytext_pointer = yes; then
5709 >
5710 > cat >>confdefs.h <<\_ACEOF
5711 > #define YYTEXT_POINTER 1
5712 > _ACEOF
5713 >
5714 > fi
5715 >
5716 > fi
5717 > # Extract the first word of "ar", so it can be a program name with args.
5718 > set dummy ar; ac_word=$2
5719 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5720 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5721 > if test "${ac_cv_prog_AR+set}" = set; then
5722 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5723 > else
5724 >  if test -n "$AR"; then
5725 >  ac_cv_prog_AR="$AR" # Let the user override the test.
5726 > else
5727 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 > for as_dir in $PATH
5729 > do
5730 >  IFS=$as_save_IFS
5731 >  test -z "$as_dir" && as_dir=.
5732 >  for ac_exec_ext in '' $ac_executable_extensions; do
5733 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 >    ac_cv_prog_AR="ar"
5735 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 >    break 2
5737 >  fi
5738 > done
5739 > done
5740 >
5741 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5742 > fi
5743 > fi
5744 > AR=$ac_cv_prog_AR
5745 > if test -n "$AR"; then
5746 >  echo "$as_me:$LINENO: result: $AR" >&5
5747 > echo "${ECHO_T}$AR" >&6
5748 > else
5749 >  echo "$as_me:$LINENO: result: no" >&5
5750 > echo "${ECHO_T}no" >&6
5751 > fi
5752 >
5753 > if test "$AR" = "NONE"; then
5754 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5755 > echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5756 >   { (exit 1); exit 1; }; }
5757 >  cat >confcache <<\_ACEOF
5758 > # This file is a shell script that caches the results of configure
5759 > # tests run on this system so they can be shared between configure
5760 > # scripts and configure runs, see configure's option --config-cache.
5761 > # It is not useful on other systems.  If it contains results you don't
5762 > # want to keep, you may remove or edit it.
5763 > #
5764 > # config.status only pays attention to the cache file if you give it
5765 > # the --recheck option to rerun configure.
5766 > #
5767 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5768 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
5769 > # following values.
5770 >
5771 > _ACEOF
5772 >
5773 > # The following way of writing the cache mishandles newlines in values,
5774 > # but we know of no workaround that is simple, portable, and efficient.
5775 > # So, don't put newlines in cache variables' values.
5776 > # Ultrix sh set writes to stderr and can't be redirected directly,
5777 > # and sets the high bit in the cache file unless we assign to the vars.
5778 > {
5779 >  (set) 2>&1 |
5780 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5781 >    *ac_space=\ *)
5782 >      # `set' does not quote correctly, so add quotes (double-quote
5783 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
5784 >      sed -n \
5785 >        "s/'/'\\\\''/g;
5786 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5787 >      ;;
5788 >    *)
5789 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
5790 >      sed -n \
5791 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5792 >      ;;
5793 >    esac;
5794 > } |
5795 >  sed '
5796 >     t clear
5797 >     : clear
5798 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5799 >     t end
5800 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5801 >     : end' >>confcache
5802 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5803 >  if test -w $cache_file; then
5804 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5805 >    cat confcache >$cache_file
5806 >  else
5807 >    echo "not updating unwritable cache $cache_file"
5808 >  fi
5809 > fi
5810 > rm -f confcache
5811 >  exit 1
5812 > fi
5813 >
5814 >
5815 >
5816 > # Check whether --with-mpi or --without-mpi was given.
5817 > if test "${with_mpi+set}" = set; then
5818 >  withval="$with_mpi"
5819 >  with_mpi=$withval
5820 > else
5821 >  with_mpi="no"
5822 > fi;
5823 >
5824 > case "x$with_mpi" in
5825 >        xyes | "x")  USE_MPI=yes;;
5826 >        xno) USE_MPI=no ;;
5827 >        *) MPI="$with_mpi"; USE_MPI=yes ;;
5828 > esac
5829 > if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
5830 >        MPI="/usr/local"
5831 > fi
5832 > if test "$USE_MPI" = "yes"; then
5833 >        echo "MPI = $MPI"
5834 >
5835 >
5836 > # Set variables...
5837 > MPI_LIB_DIR="$MPI/lib"
5838 > MPI_INC_DIR="$MPI/include"
5839 >
5840 >
5841 >
5842 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5843 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5844 > have_mpi_h=0
5845 > echo '#include <mpi.h>' > conftest.cc
5846 > if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
5847 >        echo "$as_me:$LINENO: result: yes" >&5
5848 > echo "${ECHO_T}yes" >&6
5849 >        have_mpi_h=1
5850 > else
5851 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5852 > echo "${ECHO_T}no! Check MPI include paths" >&6
5853 >        USE_MPI="no"
5854 > fi
5855 > rm -f conftest*
5856 > if test "$have_mpi_h" = 1; then
5857 >
5858 > cat >>confdefs.h <<\_ACEOF
5859 > #define HAVE_MPI_H 1
5860 > _ACEOF
5861 >
5862 > fi
5863 >
5864 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5865 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5866 > have_mpif_h=0
5867 > rm -f conftest*
5868 > cat >conftest.f90 <<EOF
5869 > program main
5870 >   include 'mpif.h'
5871 > end
5872 > EOF
5873 > if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
5874 >        echo "$as_me:$LINENO: result: yes" >&5
5875 > echo "${ECHO_T}yes" >&6
5876 >        MPI_F90_INC="$MPI_INC_DIR"
5877 >        have_mpif_h=1
5878 > else
5879 >        if test -s conftest.out ; then
5880 >                cat conftest.out >> config.log
5881 >        fi
5882 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5883 > echo "${ECHO_T}no! Check MPI include paths" >&6
5884 >        USE_MPI="no"
5885 > fi
5886 > rm -f conftest*
5887 >
5888 > if test "$have_mpif_h" = 1; then
5889 >
5890 > cat >>confdefs.h <<\_ACEOF
5891 > #define HAVE_MPIF_H 1
5892 > _ACEOF
5893 >
5894 > fi
5895 >
5896 > ac_ext=c
5897 > ac_cpp='$CPP $CPPFLAGS'
5898 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901 >
5902 > ac_save_LDFLAGS=$LDFLAGS
5903 > LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
5904 >
5905 > if test x = x"$MPI_LIB"; then
5906 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5907 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5908 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5909 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5910 > else
5911 >  ac_check_lib_save_LIBS=$LIBS
5912 > LIBS="-lmpi  $LIBS"
5913 > cat >conftest.$ac_ext <<_ACEOF
5914 > /* confdefs.h.  */
5915 > _ACEOF
5916 > cat confdefs.h >>conftest.$ac_ext
5917 > cat >>conftest.$ac_ext <<_ACEOF
5918 > /* end confdefs.h.  */
5919 >
5920 > /* Override any gcc2 internal prototype to avoid an error.  */
5921 > #ifdef __cplusplus
5922 > extern "C"
5923 > #endif
5924 > /* We use char because int might match the return type of a gcc2
5925 >   builtin and then its argument prototype would still apply.  */
5926 > char MPI_Init ();
5927 > int
5928 > main ()
5929 > {
5930 > MPI_Init ();
5931 >  ;
5932 >  return 0;
5933 > }
5934 > _ACEOF
5935 > rm -f conftest.$ac_objext conftest$ac_exeext
5936 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 >  (eval $ac_link) 2>conftest.er1
5938 >  ac_status=$?
5939 >  grep -v '^ *+' conftest.er1 >conftest.err
5940 >  rm -f conftest.er1
5941 >  cat conftest.err >&5
5942 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 >  (exit $ac_status); } &&
5944 >         { ac_try='test -z "$ac_c_werror_flag"
5945 >                         || test ! -s conftest.err'
5946 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 >  (eval $ac_try) 2>&5
5948 >  ac_status=$?
5949 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 >  (exit $ac_status); }; } &&
5951 >         { ac_try='test -s conftest$ac_exeext'
5952 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 >  (eval $ac_try) 2>&5
5954 >  ac_status=$?
5955 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 >  (exit $ac_status); }; }; then
5957 >  ac_cv_lib_mpi_MPI_Init=yes
5958 > else
5959 >  echo "$as_me: failed program was:" >&5
5960 > sed 's/^/| /' conftest.$ac_ext >&5
5961 >
5962 > ac_cv_lib_mpi_MPI_Init=no
5963 > fi
5964 > rm -f conftest.err conftest.$ac_objext \
5965 >      conftest$ac_exeext conftest.$ac_ext
5966 > LIBS=$ac_check_lib_save_LIBS
5967 > fi
5968 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5969 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5970 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5971 >  MPI_LIB="-lmpi"
5972 > fi
5973 >
5974 > fi
5975 > if test x = x"$MPI_LIB"; then
5976 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5977 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5978 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5979 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5980 > else
5981 >  ac_check_lib_save_LIBS=$LIBS
5982 > LIBS="-lmpich  $LIBS"
5983 > cat >conftest.$ac_ext <<_ACEOF
5984 > /* confdefs.h.  */
5985 > _ACEOF
5986 > cat confdefs.h >>conftest.$ac_ext
5987 > cat >>conftest.$ac_ext <<_ACEOF
5988 > /* end confdefs.h.  */
5989 >
5990 > /* Override any gcc2 internal prototype to avoid an error.  */
5991 > #ifdef __cplusplus
5992 > extern "C"
5993 > #endif
5994 > /* We use char because int might match the return type of a gcc2
5995 >   builtin and then its argument prototype would still apply.  */
5996 > char MPI_Init ();
5997 > int
5998 > main ()
5999 > {
6000 > MPI_Init ();
6001 >  ;
6002 >  return 0;
6003 > }
6004   _ACEOF
6005   rm -f conftest.$ac_objext conftest$ac_exeext
6006 < if { (eval echo "$as_me:4681: \"$ac_link\"") >&5
6007 <  (eval $ac_link) 2>&5
6006 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 >  (eval $ac_link) 2>conftest.er1
6008    ac_status=$?
6009 <  echo "$as_me:4684: \$? = $ac_status" >&5
6009 >  grep -v '^ *+' conftest.er1 >conftest.err
6010 >  rm -f conftest.er1
6011 >  cat conftest.err >&5
6012 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013    (exit $ac_status); } &&
6014 <         { ac_try='test -s conftest$ac_exeext'
6015 <  { (eval echo "$as_me:4687: \"$ac_try\"") >&5
6014 >         { ac_try='test -z "$ac_c_werror_flag"
6015 >                         || test ! -s conftest.err'
6016 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017    (eval $ac_try) 2>&5
6018    ac_status=$?
6019 <  echo "$as_me:4690: \$? = $ac_status" >&5
6019 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 >  (exit $ac_status); }; } &&
6021 >         { ac_try='test -s conftest$ac_exeext'
6022 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 >  (eval $ac_try) 2>&5
6024 >  ac_status=$?
6025 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026    (exit $ac_status); }; }; then
6027 <  MPILIBS=" "
4693 <                                echo "$as_me:4693: result: yes" >&5
4694 < echo "${ECHO_T}yes" >&6
6027 >  ac_cv_lib_mpich_MPI_Init=yes
6028   else
6029    echo "$as_me: failed program was:" >&5
6030 < cat conftest.$ac_ext >&5
6031 < echo "$as_me:4698: result: no" >&5
6032 < echo "${ECHO_T}no" >&6
6030 > sed 's/^/| /' conftest.$ac_ext >&5
6031 >
6032 > ac_cv_lib_mpich_MPI_Init=no
6033   fi
6034 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 > rm -f conftest.err conftest.$ac_objext \
6035 >      conftest$ac_exeext conftest.$ac_ext
6036 > LIBS=$ac_check_lib_save_LIBS
6037   fi
6038 < if test x = x"$MPILIBS"; then
6039 <        echo "$as_me:4704: checking for MPI_Init in -lmpi" >&5
6038 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6039 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6040 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6041 >  MPI_LIB="-lmpich"
6042 > fi
6043 >
6044 > fi
6045 > $as_unset ac_cv_lib_mpi_MPI_Init
6046 > if test x = x"$MPI_LIB"; then
6047 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6048   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6049   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6050    echo $ECHO_N "(cached) $ECHO_C" >&6
6051   else
6052    ac_check_lib_save_LIBS=$LIBS
6053 < LIBS="-lmpi  $LIBS"
6053 > LIBS="-lmpi "-llam" $LIBS"
6054   cat >conftest.$ac_ext <<_ACEOF
6055 + /* confdefs.h.  */
6056 + _ACEOF
6057 + cat confdefs.h >>conftest.$ac_ext
6058 + cat >>conftest.$ac_ext <<_ACEOF
6059 + /* end confdefs.h.  */
6060  
6061 < program main
6062 <
6063 < call MPI_Init
6064 < end program main
6065 <
6061 > /* Override any gcc2 internal prototype to avoid an error.  */
6062 > #ifdef __cplusplus
6063 > extern "C"
6064 > #endif
6065 > /* We use char because int might match the return type of a gcc2
6066 >   builtin and then its argument prototype would still apply.  */
6067 > char MPI_Init ();
6068 > int
6069 > main ()
6070 > {
6071 > MPI_Init ();
6072 >  ;
6073 >  return 0;
6074 > }
6075   _ACEOF
6076   rm -f conftest.$ac_objext conftest$ac_exeext
6077 < if { (eval echo "$as_me:4720: \"$ac_link\"") >&5
6078 <  (eval $ac_link) 2>&5
6077 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 >  (eval $ac_link) 2>conftest.er1
6079    ac_status=$?
6080 <  echo "$as_me:4723: \$? = $ac_status" >&5
6080 >  grep -v '^ *+' conftest.er1 >conftest.err
6081 >  rm -f conftest.er1
6082 >  cat conftest.err >&5
6083 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084    (exit $ac_status); } &&
6085 <         { ac_try='test -s conftest$ac_exeext'
6086 <  { (eval echo "$as_me:4726: \"$ac_try\"") >&5
6085 >         { ac_try='test -z "$ac_c_werror_flag"
6086 >                         || test ! -s conftest.err'
6087 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088    (eval $ac_try) 2>&5
6089    ac_status=$?
6090 <  echo "$as_me:4729: \$? = $ac_status" >&5
6090 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 >  (exit $ac_status); }; } &&
6092 >         { ac_try='test -s conftest$ac_exeext'
6093 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 >  (eval $ac_try) 2>&5
6095 >  ac_status=$?
6096 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097    (exit $ac_status); }; }; then
6098    ac_cv_lib_mpi_MPI_Init=yes
6099   else
6100    echo "$as_me: failed program was:" >&5
6101 < cat conftest.$ac_ext >&5
6101 > sed 's/^/| /' conftest.$ac_ext >&5
6102 >
6103   ac_cv_lib_mpi_MPI_Init=no
6104   fi
6105 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 > rm -f conftest.err conftest.$ac_objext \
6106 >      conftest$ac_exeext conftest.$ac_ext
6107   LIBS=$ac_check_lib_save_LIBS
6108   fi
6109 < echo "$as_me:4740: result: $ac_cv_lib_mpi_MPI_Init" >&5
6109 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6110   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6111   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6112 <  MPILIBS="-lmpi"
6112 >  MPI_LIB="-lmpi -llam"
6113   fi
6114  
6115   fi
6116 < if test x = x"$MPILIBS"; then
6117 <        echo "$as_me:4748: checking for MPI_Init in -lmpich" >&5
6118 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6119 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6116 >
6117 > $as_unset ac_cv_lib_mpi_MPI_Init
6118 > if test x = x"$MPI_LIB"; then
6119 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6120 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6121 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6122    echo $ECHO_N "(cached) $ECHO_C" >&6
6123   else
6124    ac_check_lib_save_LIBS=$LIBS
6125 < LIBS="-lmpich  $LIBS"
6125 > LIBS="-lmpi -llam -lpthread $LIBS"
6126   cat >conftest.$ac_ext <<_ACEOF
6127 + /* confdefs.h.  */
6128 + _ACEOF
6129 + cat confdefs.h >>conftest.$ac_ext
6130 + cat >>conftest.$ac_ext <<_ACEOF
6131 + /* end confdefs.h.  */
6132  
6133 < program main
6134 <
6135 < call MPI_Init
6136 < end program main
6137 <
6133 > /* Override any gcc2 internal prototype to avoid an error.  */
6134 > #ifdef __cplusplus
6135 > extern "C"
6136 > #endif
6137 > /* We use char because int might match the return type of a gcc2
6138 >   builtin and then its argument prototype would still apply.  */
6139 > char MPI_Init ();
6140 > int
6141 > main ()
6142 > {
6143 > MPI_Init ();
6144 >  ;
6145 >  return 0;
6146 > }
6147   _ACEOF
6148   rm -f conftest.$ac_objext conftest$ac_exeext
6149 < if { (eval echo "$as_me:4764: \"$ac_link\"") >&5
6150 <  (eval $ac_link) 2>&5
6149 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 >  (eval $ac_link) 2>conftest.er1
6151    ac_status=$?
6152 <  echo "$as_me:4767: \$? = $ac_status" >&5
6152 >  grep -v '^ *+' conftest.er1 >conftest.err
6153 >  rm -f conftest.er1
6154 >  cat conftest.err >&5
6155 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156    (exit $ac_status); } &&
6157 <         { ac_try='test -s conftest$ac_exeext'
6158 <  { (eval echo "$as_me:4770: \"$ac_try\"") >&5
6157 >         { ac_try='test -z "$ac_c_werror_flag"
6158 >                         || test ! -s conftest.err'
6159 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160    (eval $ac_try) 2>&5
6161    ac_status=$?
6162 <  echo "$as_me:4773: \$? = $ac_status" >&5
6162 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 >  (exit $ac_status); }; } &&
6164 >         { ac_try='test -s conftest$ac_exeext'
6165 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 >  (eval $ac_try) 2>&5
6167 >  ac_status=$?
6168 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169    (exit $ac_status); }; }; then
6170 <  ac_cv_lib_mpich_MPI_Init=yes
6170 >  ac_cv_lib_mpi_MPI_Init=yes
6171   else
6172    echo "$as_me: failed program was:" >&5
6173 < cat conftest.$ac_ext >&5
6174 < ac_cv_lib_mpich_MPI_Init=no
6173 > sed 's/^/| /' conftest.$ac_ext >&5
6174 >
6175 > ac_cv_lib_mpi_MPI_Init=no
6176   fi
6177 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6177 > rm -f conftest.err conftest.$ac_objext \
6178 >      conftest$ac_exeext conftest.$ac_ext
6179   LIBS=$ac_check_lib_save_LIBS
6180   fi
6181 < echo "$as_me:4784: result: $ac_cv_lib_mpich_MPI_Init" >&5
6182 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6183 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
6184 <  MPILIBS="-lmpich"
6181 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6182 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6183 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6184 >  MPI_LIB="-lmpi -llam -lpthread"
6185 > else
6186 >
6187 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6188 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6189 >   { (exit 1); exit 1; }; }
6190 >             USE_MPI="no"
6191 >
6192   fi
6193  
6194   fi
6195  
4792 F90="$acx_mpi_save_F90"
6196  
4794 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4795 if test x = x"$MPILIBS"; then
6197  
6198 <        :
6198 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6199 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6200 > MPI_F90_LIB=""
6201 > if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
6202 >        MPI_F90_LIB="-lfmpich"
6203 > elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
6204 >        MPI_F90_LIB="-llamf77mpi"
6205   else
6206 +                        MPI_F90_LIB="  "
6207 + fi
6208 + echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
6209 + echo "${ECHO_T}found $MPI_F90_LIB" >&6
6210  
4800 cat >>confdefs.h <<\EOF
4801 #define HAVE_MPI 1
4802 EOF
6211  
4804        :
6212   fi
6213  
6214 +
6215 +
6216   ac_ext=c
6217   ac_cpp='$CPP $CPPFLAGS'
6218   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221 < echo "$as_me:4812: checking how to run the C preprocessor" >&5
6221 > echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6222   echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6223   # On Suns, sometimes $CPP names a directory.
6224   if test -n "$CPP" && test -d "$CPP"; then
# Line 4822 | Line 6231 | else
6231        # Double quotes because CPP needs to be expanded
6232      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6233      do
4825      # break 2 since there is a loop in there.
6234        ac_preproc_ok=false
6235   for ac_c_preproc_warn_flag in '' yes
6236   do
6237    # Use a header file that comes with gcc, so configuring glibc
6238    # with a fresh cross-compiler works.
6239 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240 +  # <limits.h> exists even on freestanding compilers.
6241    # On the NeXT, cc -E runs the code through the compiler's parser,
6242    # not just through cpp. "Syntax error" is here to catch this case.
6243    cat >conftest.$ac_ext <<_ACEOF
6244 < #line 4834 "configure"
4835 < #include "confdefs.h"
4836 < #include <assert.h>
4837 <                     Syntax error
6244 > /* confdefs.h.  */
6245   _ACEOF
6246 < if { (eval echo "$as_me:4839: \"$ac_cpp conftest.$ac_ext\"") >&5
6246 > cat confdefs.h >>conftest.$ac_ext
6247 > cat >>conftest.$ac_ext <<_ACEOF
6248 > /* end confdefs.h.  */
6249 > #ifdef __STDC__
6250 > # include <limits.h>
6251 > #else
6252 > # include <assert.h>
6253 > #endif
6254 >                     Syntax error
6255 > _ACEOF
6256 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258    ac_status=$?
6259 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6259 >  grep -v '^ *+' conftest.er1 >conftest.err
6260    rm -f conftest.er1
6261    cat conftest.err >&5
6262 <  echo "$as_me:4845: \$? = $ac_status" >&5
6262 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263    (exit $ac_status); } >/dev/null; then
6264    if test -s conftest.err; then
6265      ac_cpp_err=$ac_c_preproc_warn_flag
6266 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267    else
6268      ac_cpp_err=
6269    fi
# Line 4856 | Line 6274 | else
6274    :
6275   else
6276    echo "$as_me: failed program was:" >&5
6277 <  cat conftest.$ac_ext >&5
6277 > sed 's/^/| /' conftest.$ac_ext >&5
6278 >
6279    # Broken: fails on valid input.
6280   continue
6281   fi
# Line 4865 | Line 6284 | rm -f conftest.err conftest.$ac_ext
6284    # OK, works on sane cases.  Now check whether non-existent headers
6285    # can be detected and how.
6286    cat >conftest.$ac_ext <<_ACEOF
6287 < #line 4868 "configure"
6288 < #include "confdefs.h"
6287 > /* confdefs.h.  */
6288 > _ACEOF
6289 > cat confdefs.h >>conftest.$ac_ext
6290 > cat >>conftest.$ac_ext <<_ACEOF
6291 > /* end confdefs.h.  */
6292   #include <ac_nonexistent.h>
6293   _ACEOF
6294 < if { (eval echo "$as_me:4872: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296    ac_status=$?
6297 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6297 >  grep -v '^ *+' conftest.er1 >conftest.err
6298    rm -f conftest.er1
6299    cat conftest.err >&5
6300 <  echo "$as_me:4878: \$? = $ac_status" >&5
6300 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301    (exit $ac_status); } >/dev/null; then
6302    if test -s conftest.err; then
6303      ac_cpp_err=$ac_c_preproc_warn_flag
6304 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305    else
6306      ac_cpp_err=
6307    fi
# Line 4890 | Line 6313 | else
6313   continue
6314   else
6315    echo "$as_me: failed program was:" >&5
6316 <  cat conftest.$ac_ext >&5
6316 > sed 's/^/| /' conftest.$ac_ext >&5
6317 >
6318    # Passes both tests.
6319   ac_preproc_ok=:
6320   break
# Line 4901 | Line 6325 | if $ac_preproc_ok; then
6325   # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6326   rm -f conftest.err conftest.$ac_ext
6327   if $ac_preproc_ok; then
6328 <  break 2
6328 >  break
6329   fi
6330  
6331      done
# Line 4912 | Line 6336 | echo "$as_me:4915: result: $CPP" >&5
6336   else
6337    ac_cv_prog_CPP=$CPP
6338   fi
6339 < echo "$as_me:4915: result: $CPP" >&5
6339 > echo "$as_me:$LINENO: result: $CPP" >&5
6340   echo "${ECHO_T}$CPP" >&6
6341   ac_preproc_ok=false
6342   for ac_c_preproc_warn_flag in '' yes
6343   do
6344    # Use a header file that comes with gcc, so configuring glibc
6345    # with a fresh cross-compiler works.
6346 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6347 +  # <limits.h> exists even on freestanding compilers.
6348    # On the NeXT, cc -E runs the code through the compiler's parser,
6349    # not just through cpp. "Syntax error" is here to catch this case.
6350    cat >conftest.$ac_ext <<_ACEOF
6351 < #line 4925 "configure"
4926 < #include "confdefs.h"
4927 < #include <assert.h>
4928 <                     Syntax error
6351 > /* confdefs.h.  */
6352   _ACEOF
6353 < if { (eval echo "$as_me:4930: \"$ac_cpp conftest.$ac_ext\"") >&5
6353 > cat confdefs.h >>conftest.$ac_ext
6354 > cat >>conftest.$ac_ext <<_ACEOF
6355 > /* end confdefs.h.  */
6356 > #ifdef __STDC__
6357 > # include <limits.h>
6358 > #else
6359 > # include <assert.h>
6360 > #endif
6361 >                     Syntax error
6362 > _ACEOF
6363 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365    ac_status=$?
6366 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6366 >  grep -v '^ *+' conftest.er1 >conftest.err
6367    rm -f conftest.er1
6368    cat conftest.err >&5
6369 <  echo "$as_me:4936: \$? = $ac_status" >&5
6369 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370    (exit $ac_status); } >/dev/null; then
6371    if test -s conftest.err; then
6372      ac_cpp_err=$ac_c_preproc_warn_flag
6373 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374    else
6375      ac_cpp_err=
6376    fi
# Line 4947 | Line 6381 | else
6381    :
6382   else
6383    echo "$as_me: failed program was:" >&5
6384 <  cat conftest.$ac_ext >&5
6384 > sed 's/^/| /' conftest.$ac_ext >&5
6385 >
6386    # Broken: fails on valid input.
6387   continue
6388   fi
# Line 4956 | Line 6391 | rm -f conftest.err conftest.$ac_ext
6391    # OK, works on sane cases.  Now check whether non-existent headers
6392    # can be detected and how.
6393    cat >conftest.$ac_ext <<_ACEOF
6394 < #line 4959 "configure"
6395 < #include "confdefs.h"
6394 > /* confdefs.h.  */
6395 > _ACEOF
6396 > cat confdefs.h >>conftest.$ac_ext
6397 > cat >>conftest.$ac_ext <<_ACEOF
6398 > /* end confdefs.h.  */
6399   #include <ac_nonexistent.h>
6400   _ACEOF
6401 < if { (eval echo "$as_me:4963: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6402    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403    ac_status=$?
6404 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6404 >  grep -v '^ *+' conftest.er1 >conftest.err
6405    rm -f conftest.er1
6406    cat conftest.err >&5
6407 <  echo "$as_me:4969: \$? = $ac_status" >&5
6407 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408    (exit $ac_status); } >/dev/null; then
6409    if test -s conftest.err; then
6410      ac_cpp_err=$ac_c_preproc_warn_flag
6411 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412    else
6413      ac_cpp_err=
6414    fi
# Line 4981 | Line 6420 | else
6420   continue
6421   else
6422    echo "$as_me: failed program was:" >&5
6423 <  cat conftest.$ac_ext >&5
6423 > sed 's/^/| /' conftest.$ac_ext >&5
6424 >
6425    # Passes both tests.
6426   ac_preproc_ok=:
6427   break
# Line 4994 | Line 6434 | else
6434   if $ac_preproc_ok; then
6435    :
6436   else
6437 <  { { echo "$as_me:4997: error: C preprocessor \"$CPP\" fails sanity check" >&5
6438 < echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
6437 >  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6438 > See \`config.log' for more details." >&5
6439 > echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6440 > See \`config.log' for more details." >&2;}
6441     { (exit 1); exit 1; }; }
6442   fi
6443  
# Line 5005 | Line 6447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449  
6450 +
6451 + echo "$as_me:$LINENO: checking for egrep" >&5
6452 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6453 + if test "${ac_cv_prog_egrep+set}" = set; then
6454 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6455 + else
6456 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6457 +    then ac_cv_prog_egrep='grep -E'
6458 +    else ac_cv_prog_egrep='egrep'
6459 +    fi
6460 + fi
6461 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6462 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6463 + EGREP=$ac_cv_prog_egrep
6464 +
6465 +
6466 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6467 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6468 + if test "${ac_cv_header_stdc+set}" = set; then
6469 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6470 + else
6471 +  cat >conftest.$ac_ext <<_ACEOF
6472 + /* confdefs.h.  */
6473 + _ACEOF
6474 + cat confdefs.h >>conftest.$ac_ext
6475 + cat >>conftest.$ac_ext <<_ACEOF
6476 + /* end confdefs.h.  */
6477 + #include <stdlib.h>
6478 + #include <stdarg.h>
6479 + #include <string.h>
6480 + #include <float.h>
6481 +
6482 + int
6483 + main ()
6484 + {
6485 +
6486 +  ;
6487 +  return 0;
6488 + }
6489 + _ACEOF
6490 + rm -f conftest.$ac_objext
6491 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 +  (eval $ac_compile) 2>conftest.er1
6493 +  ac_status=$?
6494 +  grep -v '^ *+' conftest.er1 >conftest.err
6495 +  rm -f conftest.er1
6496 +  cat conftest.err >&5
6497 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 +  (exit $ac_status); } &&
6499 +         { ac_try='test -z "$ac_c_werror_flag"
6500 +                         || test ! -s conftest.err'
6501 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 +  (eval $ac_try) 2>&5
6503 +  ac_status=$?
6504 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 +  (exit $ac_status); }; } &&
6506 +         { ac_try='test -s conftest.$ac_objext'
6507 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 +  (eval $ac_try) 2>&5
6509 +  ac_status=$?
6510 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 +  (exit $ac_status); }; }; then
6512 +  ac_cv_header_stdc=yes
6513 + else
6514 +  echo "$as_me: failed program was:" >&5
6515 + sed 's/^/| /' conftest.$ac_ext >&5
6516 +
6517 + ac_cv_header_stdc=no
6518 + fi
6519 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520 +
6521 + if test $ac_cv_header_stdc = yes; then
6522 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6523 +  cat >conftest.$ac_ext <<_ACEOF
6524 + /* confdefs.h.  */
6525 + _ACEOF
6526 + cat confdefs.h >>conftest.$ac_ext
6527 + cat >>conftest.$ac_ext <<_ACEOF
6528 + /* end confdefs.h.  */
6529 + #include <string.h>
6530 +
6531 + _ACEOF
6532 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 +  $EGREP "memchr" >/dev/null 2>&1; then
6534 +  :
6535 + else
6536 +  ac_cv_header_stdc=no
6537 + fi
6538 + rm -f conftest*
6539 +
6540 + fi
6541 +
6542 + if test $ac_cv_header_stdc = yes; then
6543 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6544 +  cat >conftest.$ac_ext <<_ACEOF
6545 + /* confdefs.h.  */
6546 + _ACEOF
6547 + cat confdefs.h >>conftest.$ac_ext
6548 + cat >>conftest.$ac_ext <<_ACEOF
6549 + /* end confdefs.h.  */
6550 + #include <stdlib.h>
6551 +
6552 + _ACEOF
6553 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 +  $EGREP "free" >/dev/null 2>&1; then
6555 +  :
6556 + else
6557 +  ac_cv_header_stdc=no
6558 + fi
6559 + rm -f conftest*
6560 +
6561 + fi
6562 +
6563 + if test $ac_cv_header_stdc = yes; then
6564 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6565 +  if test "$cross_compiling" = yes; then
6566 +  :
6567 + else
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 <ctype.h>
6575 + #if ((' ' & 0x0FF) == 0x020)
6576 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6577 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6578 + #else
6579 + # define ISLOWER(c) \
6580 +                   (('a' <= (c) && (c) <= 'i') \
6581 +                     || ('j' <= (c) && (c) <= 'r') \
6582 +                     || ('s' <= (c) && (c) <= 'z'))
6583 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6584 + #endif
6585 +
6586 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6587 + int
6588 + main ()
6589 + {
6590 +  int i;
6591 +  for (i = 0; i < 256; i++)
6592 +    if (XOR (islower (i), ISLOWER (i))
6593 +        || toupper (i) != TOUPPER (i))
6594 +      exit(2);
6595 +  exit (0);
6596 + }
6597 + _ACEOF
6598 + rm -f conftest$ac_exeext
6599 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 +  (eval $ac_link) 2>&5
6601 +  ac_status=$?
6602 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6604 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 +  (eval $ac_try) 2>&5
6606 +  ac_status=$?
6607 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 +  (exit $ac_status); }; }; then
6609 +  :
6610 + else
6611 +  echo "$as_me: program exited with status $ac_status" >&5
6612 + echo "$as_me: failed program was:" >&5
6613 + sed 's/^/| /' conftest.$ac_ext >&5
6614 +
6615 + ( exit $ac_status )
6616 + ac_cv_header_stdc=no
6617 + fi
6618 + rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6619 + fi
6620 + fi
6621 + fi
6622 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6623 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6624 + if test $ac_cv_header_stdc = yes; then
6625 +
6626 + cat >>confdefs.h <<\_ACEOF
6627 + #define STDC_HEADERS 1
6628 + _ACEOF
6629 +
6630 + fi
6631 +
6632 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6633 +
6634 +
6635 +
6636 +
6637 +
6638 +
6639 +
6640 +
6641 +
6642 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6643 +                  inttypes.h stdint.h unistd.h
6644 + do
6645 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6647 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6648 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6649 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6650 + else
6651 +  cat >conftest.$ac_ext <<_ACEOF
6652 + /* confdefs.h.  */
6653 + _ACEOF
6654 + cat confdefs.h >>conftest.$ac_ext
6655 + cat >>conftest.$ac_ext <<_ACEOF
6656 + /* end confdefs.h.  */
6657 + $ac_includes_default
6658 +
6659 + #include <$ac_header>
6660 + _ACEOF
6661 + rm -f conftest.$ac_objext
6662 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 +  (eval $ac_compile) 2>conftest.er1
6664 +  ac_status=$?
6665 +  grep -v '^ *+' conftest.er1 >conftest.err
6666 +  rm -f conftest.er1
6667 +  cat conftest.err >&5
6668 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 +  (exit $ac_status); } &&
6670 +         { ac_try='test -z "$ac_c_werror_flag"
6671 +                         || test ! -s conftest.err'
6672 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 +  (eval $ac_try) 2>&5
6674 +  ac_status=$?
6675 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 +  (exit $ac_status); }; } &&
6677 +         { ac_try='test -s conftest.$ac_objext'
6678 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 +  (eval $ac_try) 2>&5
6680 +  ac_status=$?
6681 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 +  (exit $ac_status); }; }; then
6683 +  eval "$as_ac_Header=yes"
6684 + else
6685 +  echo "$as_me: failed program was:" >&5
6686 + sed 's/^/| /' conftest.$ac_ext >&5
6687 +
6688 + eval "$as_ac_Header=no"
6689 + fi
6690 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 + fi
6692 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6693 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6694 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6695 +  cat >>confdefs.h <<_ACEOF
6696 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 + _ACEOF
6698 +
6699 + fi
6700 +
6701 + done
6702 +
6703 +
6704 +
6705 +
6706 +
6707   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6708   if test "${with_sprng_prefix+set}" = set; then
6709    withval="$with_sprng_prefix"
# Line 5013 | Line 6712 | fi;
6712    sprng_prefix="/usr/local"
6713   fi;
6714  
6715 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6716 < if test "${with_sprng_lib_prefix+set}" = set; then
6717 <  withval="$with_sprng_lib_prefix"
6718 <  sprng_lib_prefix="$withval"
6715 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6716 > if test "${with_sprng_libdir+set}" = set; then
6717 >  withval="$with_sprng_libdir"
6718 >  sprng_libdir="$withval"
6719   else
6720 <  sprng_lib_prefix="/usr/local/lib"
6720 >  sprng_libdir="/usr/local/lib"
6721   fi;
6722  
6723 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6724 < if test "${with_sprng_include_prefix+set}" = set; then
6725 <  withval="$with_sprng_include_prefix"
6726 <  sprng_include_prefix="$withval"
6723 > # Check whether --with-sprng-include or --without-sprng-include was given.
6724 > if test "${with_sprng_include+set}" = set; then
6725 >  withval="$with_sprng_include"
6726 >  sprng_include="$withval"
6727   else
6728 <  sprng_include_prefix="/usr/local/include/sprng"
6728 >  sprng_include="/usr/local/include/sprng"
6729   fi;
6730  
6731 <  if test x$sprng_lib_prefix = x ; then
6732 <    sprng_lib_prefix=${sprng_prefix}/lib
6731 >  if test x$sprng_libdir = x ; then
6732 >    sprng_libdir=${sprng_prefix}/lib
6733    fi
6734  
6735 <  if test x$sprng_include_prefix = x ; then
6736 <    sprng_include_prefix=${sprng_prefix}/include
6735 >  if test x$sprng_include = x ; then
6736 >    sprng_include=${sprng_prefix}/include
6737    fi
6738  
6739 <  echo "$as_me:5040: checking for SPRNG include files in $sprng_include_prefix" >&5
6740 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6741 <  if test -f ${sprng_include_prefix}/sprng.h; then
6739 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6740 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6741 >  if test -f ${sprng_include}/sprng.h; then
6742      have_sprngincl=yes
6743 <    echo "$as_me:5044: result: yes" >&5
6743 >    echo "$as_me:$LINENO: result: yes" >&5
6744   echo "${ECHO_T}yes" >&6
6745    else
6746      have_sprngincl=no
6747 <    echo "$as_me:5048: result: no" >&5
6747 >    echo "$as_me:$LINENO: result: no" >&5
6748   echo "${ECHO_T}no" >&6
6749 <    { { echo "$as_me:5050: error: Could not locate the SPRNG include files" >&5
6749 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG include files" >&5
6750   echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
6751     { (exit 1); exit 1; }; }
6752    fi
6753  
6754 <  echo "$as_me:5055: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6755 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6756 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6754 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6755 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6756 >  if test -f ${sprng_libdir}/libsprng.a; then
6757      have_sprnglib=yes
6758 <    echo "$as_me:5059: result: yes" >&5
6758 >    echo "$as_me:$LINENO: result: yes" >&5
6759   echo "${ECHO_T}yes" >&6
6760    else
6761      have_sprnglib=no
6762 <    echo "$as_me:5063: result: no" >&5
6762 >    echo "$as_me:$LINENO: result: no" >&5
6763   echo "${ECHO_T}no" >&6
6764 <    { { echo "$as_me:5065: error: Could not locate the SPRNG libraries" >&5
6764 >    { { echo "$as_me:$LINENO: error: Could not locate the SPRNG libraries" >&5
6765   echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
6766     { (exit 1); exit 1; }; }
6767    fi
6768  
6769 +
6770 +
6771    ac_ext=c
6772   ac_cpp='$CPP $CPPFLAGS'
6773   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5074 | Line 6775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6775   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776  
6777    ac_save_CPPFLAGS=$CPPFLAGS
6778 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6778 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6779    ac_save_LDFLAGS=$LDFLAGS
6780 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6781 <  echo "$as_me:5080: checking for sprng.h" >&5
6780 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6781 >  if test "${ac_cv_header_sprng_h+set}" = set; then
6782 >  echo "$as_me:$LINENO: checking for sprng.h" >&5
6783   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6784   if test "${ac_cv_header_sprng_h+set}" = set; then
6785    echo $ECHO_N "(cached) $ECHO_C" >&6
6786 + fi
6787 + echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6788 + echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6789   else
6790 <  cat >conftest.$ac_ext <<_ACEOF
6791 < #line 5086 "configure"
6792 < #include "confdefs.h"
6790 >  # Is the header compilable?
6791 > echo "$as_me:$LINENO: checking sprng.h usability" >&5
6792 > echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6793 > cat >conftest.$ac_ext <<_ACEOF
6794 > /* confdefs.h.  */
6795 > _ACEOF
6796 > cat confdefs.h >>conftest.$ac_ext
6797 > cat >>conftest.$ac_ext <<_ACEOF
6798 > /* end confdefs.h.  */
6799 > $ac_includes_default
6800   #include <sprng.h>
6801   _ACEOF
6802 < if { (eval echo "$as_me:5090: \"$ac_cpp conftest.$ac_ext\"") >&5
6802 > rm -f conftest.$ac_objext
6803 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 >  (eval $ac_compile) 2>conftest.er1
6805 >  ac_status=$?
6806 >  grep -v '^ *+' conftest.er1 >conftest.err
6807 >  rm -f conftest.er1
6808 >  cat conftest.err >&5
6809 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 >  (exit $ac_status); } &&
6811 >         { ac_try='test -z "$ac_c_werror_flag"
6812 >                         || test ! -s conftest.err'
6813 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 >  (eval $ac_try) 2>&5
6815 >  ac_status=$?
6816 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 >  (exit $ac_status); }; } &&
6818 >         { ac_try='test -s conftest.$ac_objext'
6819 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 >  (eval $ac_try) 2>&5
6821 >  ac_status=$?
6822 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 >  (exit $ac_status); }; }; then
6824 >  ac_header_compiler=yes
6825 > else
6826 >  echo "$as_me: failed program was:" >&5
6827 > sed 's/^/| /' conftest.$ac_ext >&5
6828 >
6829 > ac_header_compiler=no
6830 > fi
6831 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6833 > echo "${ECHO_T}$ac_header_compiler" >&6
6834 >
6835 > # Is the header present?
6836 > echo "$as_me:$LINENO: checking sprng.h presence" >&5
6837 > echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6838 > cat >conftest.$ac_ext <<_ACEOF
6839 > /* confdefs.h.  */
6840 > _ACEOF
6841 > cat confdefs.h >>conftest.$ac_ext
6842 > cat >>conftest.$ac_ext <<_ACEOF
6843 > /* end confdefs.h.  */
6844 > #include <sprng.h>
6845 > _ACEOF
6846 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6847    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848    ac_status=$?
6849 <  egrep -v '^ *\+' conftest.er1 >conftest.err
6849 >  grep -v '^ *+' conftest.er1 >conftest.err
6850    rm -f conftest.er1
6851    cat conftest.err >&5
6852 <  echo "$as_me:5096: \$? = $ac_status" >&5
6852 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853    (exit $ac_status); } >/dev/null; then
6854    if test -s conftest.err; then
6855      ac_cpp_err=$ac_c_preproc_warn_flag
6856 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6857    else
6858      ac_cpp_err=
6859    fi
# Line 5104 | Line 6861 | if test -z "$ac_cpp_err"; then
6861    ac_cpp_err=yes
6862   fi
6863   if test -z "$ac_cpp_err"; then
6864 <  ac_cv_header_sprng_h=yes
6864 >  ac_header_preproc=yes
6865   else
6866    echo "$as_me: failed program was:" >&5
6867 <  cat conftest.$ac_ext >&5
6868 <  ac_cv_header_sprng_h=no
6867 > sed 's/^/| /' conftest.$ac_ext >&5
6868 >
6869 >  ac_header_preproc=no
6870   fi
6871   rm -f conftest.err conftest.$ac_ext
6872 < fi
6873 < echo "$as_me:5115: result: $ac_cv_header_sprng_h" >&5
6872 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6873 > echo "${ECHO_T}$ac_header_preproc" >&6
6874 >
6875 > # So?  What about this header?
6876 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6877 >  yes:no: )
6878 >    { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6879 > echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6880 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6881 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6882 >    ac_header_preproc=yes
6883 >    ;;
6884 >  no:yes:* )
6885 >    { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6886 > echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6887 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6888 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6889 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6890 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6891 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6892 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6893 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6894 > echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6895 >    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6896 > echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6897 >    (
6898 >      cat <<\_ASBOX
6899 > ## ------------------------------ ##
6900 > ## Report this to gezelter@nd.edu ##
6901 > ## ------------------------------ ##
6902 > _ASBOX
6903 >    ) |
6904 >      sed "s/^/$as_me: WARNING:     /" >&2
6905 >    ;;
6906 > esac
6907 > echo "$as_me:$LINENO: checking for sprng.h" >&5
6908 > echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
6909 > if test "${ac_cv_header_sprng_h+set}" = set; then
6910 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6911 > else
6912 >  ac_cv_header_sprng_h=$ac_header_preproc
6913 > fi
6914 > echo "$as_me:$LINENO: result: $ac_cv_header_sprng_h" >&5
6915   echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
6916 +
6917 + fi
6918   if test $ac_cv_header_sprng_h = yes; then
6919  
6920 <    echo "$as_me:5119: checking for init_rng in -lsprng" >&5
6920 >    echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
6921   echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
6922   if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
6923    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5124 | Line 6925 | cat >conftest.$ac_ext <<_ACEOF
6925    ac_check_lib_save_LIBS=$LIBS
6926   LIBS="-lsprng  $LIBS"
6927   cat >conftest.$ac_ext <<_ACEOF
6928 < #line 5127 "configure"
6929 < #include "confdefs.h"
6928 > /* confdefs.h.  */
6929 > _ACEOF
6930 > cat confdefs.h >>conftest.$ac_ext
6931 > cat >>conftest.$ac_ext <<_ACEOF
6932 > /* end confdefs.h.  */
6933  
6934   /* Override any gcc2 internal prototype to avoid an error.  */
6935   #ifdef __cplusplus
# Line 5143 | Line 6947 | if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6947   }
6948   _ACEOF
6949   rm -f conftest.$ac_objext conftest$ac_exeext
6950 < if { (eval echo "$as_me:5146: \"$ac_link\"") >&5
6951 <  (eval $ac_link) 2>&5
6950 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 >  (eval $ac_link) 2>conftest.er1
6952    ac_status=$?
6953 <  echo "$as_me:5149: \$? = $ac_status" >&5
6953 >  grep -v '^ *+' conftest.er1 >conftest.err
6954 >  rm -f conftest.er1
6955 >  cat conftest.err >&5
6956 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957    (exit $ac_status); } &&
6958 <         { ac_try='test -s conftest$ac_exeext'
6959 <  { (eval echo "$as_me:5152: \"$ac_try\"") >&5
6958 >         { ac_try='test -z "$ac_c_werror_flag"
6959 >                         || test ! -s conftest.err'
6960 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961    (eval $ac_try) 2>&5
6962    ac_status=$?
6963 <  echo "$as_me:5155: \$? = $ac_status" >&5
6963 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 >  (exit $ac_status); }; } &&
6965 >         { ac_try='test -s conftest$ac_exeext'
6966 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 >  (eval $ac_try) 2>&5
6968 >  ac_status=$?
6969 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970    (exit $ac_status); }; }; then
6971    ac_cv_lib_sprng_init_rng=yes
6972   else
6973    echo "$as_me: failed program was:" >&5
6974 < cat conftest.$ac_ext >&5
6974 > sed 's/^/| /' conftest.$ac_ext >&5
6975 >
6976   ac_cv_lib_sprng_init_rng=no
6977   fi
6978 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 > rm -f conftest.err conftest.$ac_objext \
6979 >      conftest$ac_exeext conftest.$ac_ext
6980   LIBS=$ac_check_lib_save_LIBS
6981   fi
6982 < echo "$as_me:5166: result: $ac_cv_lib_sprng_init_rng" >&5
6982 > echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6983   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6984   if test $ac_cv_lib_sprng_init_rng = yes; then
6985 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6986 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6985 >  SPRNG_LIBDIR="${sprng_libdir}"
6986 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6987                       HAVE_SPRNG="yes"
6988   fi
6989  
6990   fi
6991  
6992 +
6993    CPPFLAGS=$ac_save_CPPFLAGS
6994    LDFLAGS=$ac_save_LDFLAGS
6995 <  ac_ext=f90
6996 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6997 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6995 >  ac_ext=c
6996 > ac_cpp='$CPP $CPPFLAGS'
6997 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000  
7001 +
7002    if test x_$HAVE_SPRNG != x_yes; then
7003 <        { { echo "$as_me:5184: error: Can't build with SPRNG" >&5
7003 >        { { echo "$as_me:$LINENO: error: Can't build with SPRNG" >&5
7004   echo "$as_me: error: Can't build with SPRNG" >&2;}
7005     { (exit 1); exit 1; }; }
7006    fi
7007  
7008 < echo "$as_me:5189: checking if MKL is wanted" >&5
7008 >
7009 >
7010 >
7011 >
7012 > echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7013   echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
7014  
7015   # Check whether --with-mkl or --without-mkl was given.
7016   if test "${with_mkl+set}" = set; then
7017    withval="$with_mkl"
7018 <     echo "$as_me:5195: result: yes" >&5
7018 >     echo "$as_me:$LINENO: result: yes" >&5
7019   echo "${ECHO_T}yes" >&6
7020 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7020 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7021          mkldir="$dir"
7022          if test -f "$dir/include/mkl.h"; then
7023              found_mkl="yes";
# Line 5202 | Line 7025 | echo "${ECHO_T}yes" >&6
7025          fi
7026      done
7027      if test x_$found_mkl != x_yes; then
7028 <        { { echo "$as_me:5205: error: Cannot find MKL includes" >&5
7028 >        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
7029   echo "$as_me: error: Cannot find MKL includes" >&2;}
7030     { (exit 1); exit 1; }; }
7031      else
7032          printf "MKL includes found in $mkldir/include\n";
7033      fi
7034  
7035 +
7036 +
7037    ac_ext=c
7038   ac_cpp='$CPP $CPPFLAGS'
7039   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5219 | Line 7044 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
7044    CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
7045    ac_save_LDFLAGS=$LDFLAGS
7046    LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
7047 <  echo "$as_me:5222: checking for mkl.h" >&5
7047 >  if test "${ac_cv_header_mkl_h+set}" = set; then
7048 >  echo "$as_me:$LINENO: checking for mkl.h" >&5
7049   echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7050   if test "${ac_cv_header_mkl_h+set}" = set; then
7051    echo $ECHO_N "(cached) $ECHO_C" >&6
7052 + fi
7053 + echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7054 + echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7055   else
7056 <  cat >conftest.$ac_ext <<_ACEOF
7057 < #line 5228 "configure"
7058 < #include "confdefs.h"
7056 >  # Is the header compilable?
7057 > echo "$as_me:$LINENO: checking mkl.h usability" >&5
7058 > echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7059 > cat >conftest.$ac_ext <<_ACEOF
7060 > /* confdefs.h.  */
7061 > _ACEOF
7062 > cat confdefs.h >>conftest.$ac_ext
7063 > cat >>conftest.$ac_ext <<_ACEOF
7064 > /* end confdefs.h.  */
7065 > $ac_includes_default
7066   #include <mkl.h>
7067   _ACEOF
7068 < if { (eval echo "$as_me:5232: \"$ac_cpp conftest.$ac_ext\"") >&5
7068 > rm -f conftest.$ac_objext
7069 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 >  (eval $ac_compile) 2>conftest.er1
7071 >  ac_status=$?
7072 >  grep -v '^ *+' conftest.er1 >conftest.err
7073 >  rm -f conftest.er1
7074 >  cat conftest.err >&5
7075 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 >  (exit $ac_status); } &&
7077 >         { ac_try='test -z "$ac_c_werror_flag"
7078 >                         || test ! -s conftest.err'
7079 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 >  (eval $ac_try) 2>&5
7081 >  ac_status=$?
7082 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 >  (exit $ac_status); }; } &&
7084 >         { ac_try='test -s conftest.$ac_objext'
7085 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 >  (eval $ac_try) 2>&5
7087 >  ac_status=$?
7088 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 >  (exit $ac_status); }; }; then
7090 >  ac_header_compiler=yes
7091 > else
7092 >  echo "$as_me: failed program was:" >&5
7093 > sed 's/^/| /' conftest.$ac_ext >&5
7094 >
7095 > ac_header_compiler=no
7096 > fi
7097 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7099 > echo "${ECHO_T}$ac_header_compiler" >&6
7100 >
7101 > # Is the header present?
7102 > echo "$as_me:$LINENO: checking mkl.h presence" >&5
7103 > echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7104 > cat >conftest.$ac_ext <<_ACEOF
7105 > /* confdefs.h.  */
7106 > _ACEOF
7107 > cat confdefs.h >>conftest.$ac_ext
7108 > cat >>conftest.$ac_ext <<_ACEOF
7109 > /* end confdefs.h.  */
7110 > #include <mkl.h>
7111 > _ACEOF
7112 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7113    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7114    ac_status=$?
7115 <  egrep -v '^ *\+' conftest.er1 >conftest.err
7115 >  grep -v '^ *+' conftest.er1 >conftest.err
7116    rm -f conftest.er1
7117    cat conftest.err >&5
7118 <  echo "$as_me:5238: \$? = $ac_status" >&5
7118 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119    (exit $ac_status); } >/dev/null; then
7120    if test -s conftest.err; then
7121      ac_cpp_err=$ac_c_preproc_warn_flag
7122 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7123    else
7124      ac_cpp_err=
7125    fi
7126 + else
7127 +  ac_cpp_err=yes
7128 + fi
7129 + if test -z "$ac_cpp_err"; then
7130 +  ac_header_preproc=yes
7131 + else
7132 +  echo "$as_me: failed program was:" >&5
7133 + sed 's/^/| /' conftest.$ac_ext >&5
7134 +
7135 +  ac_header_preproc=no
7136 + fi
7137 + rm -f conftest.err conftest.$ac_ext
7138 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7139 + echo "${ECHO_T}$ac_header_preproc" >&6
7140 +
7141 + # So?  What about this header?
7142 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7143 +  yes:no: )
7144 +    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7145 + echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7146 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7147 + echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7148 +    ac_header_preproc=yes
7149 +    ;;
7150 +  no:yes:* )
7151 +    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7152 + echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7153 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7154 + echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7155 +    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7156 + echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7157 +    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7158 + echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7159 +    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7160 + echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7161 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7162 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7163 +    (
7164 +      cat <<\_ASBOX
7165 + ## ------------------------------ ##
7166 + ## Report this to gezelter@nd.edu ##
7167 + ## ------------------------------ ##
7168 + _ASBOX
7169 +    ) |
7170 +      sed "s/^/$as_me: WARNING:     /" >&2
7171 +    ;;
7172 + esac
7173 + echo "$as_me:$LINENO: checking for mkl.h" >&5
7174 + echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7175 + if test "${ac_cv_header_mkl_h+set}" = set; then
7176 +  echo $ECHO_N "(cached) $ECHO_C" >&6
7177   else
7178 <  ac_cpp_err=yes
7178 >  ac_cv_header_mkl_h=$ac_header_preproc
7179   fi
7180 < 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
7180 > echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7181   echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7182 +
7183 + fi
7184   if test $ac_cv_header_mkl_h = yes; then
7185  
7186 <    echo "$as_me:5261: checking for vslNewStream in -lmkl" >&5
7186 >    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
7187   echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
7188   if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
7189    echo $ECHO_N "(cached) $ECHO_C" >&6
# Line 5266 | Line 7191 | cat >conftest.$ac_ext <<_ACEOF
7191    ac_check_lib_save_LIBS=$LIBS
7192   LIBS="-lmkl  $LIBS"
7193   cat >conftest.$ac_ext <<_ACEOF
7194 < #line 5269 "configure"
7195 < #include "confdefs.h"
7194 > /* confdefs.h.  */
7195 > _ACEOF
7196 > cat confdefs.h >>conftest.$ac_ext
7197 > cat >>conftest.$ac_ext <<_ACEOF
7198 > /* end confdefs.h.  */
7199  
7200   /* Override any gcc2 internal prototype to avoid an error.  */
7201   #ifdef __cplusplus
# Line 5285 | Line 7213 | if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
7213   }
7214   _ACEOF
7215   rm -f conftest.$ac_objext conftest$ac_exeext
7216 < if { (eval echo "$as_me:5288: \"$ac_link\"") >&5
7217 <  (eval $ac_link) 2>&5
7216 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 >  (eval $ac_link) 2>conftest.er1
7218    ac_status=$?
7219 <  echo "$as_me:5291: \$? = $ac_status" >&5
7219 >  grep -v '^ *+' conftest.er1 >conftest.err
7220 >  rm -f conftest.er1
7221 >  cat conftest.err >&5
7222 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223    (exit $ac_status); } &&
7224 <         { ac_try='test -s conftest$ac_exeext'
7225 <  { (eval echo "$as_me:5294: \"$ac_try\"") >&5
7224 >         { ac_try='test -z "$ac_c_werror_flag"
7225 >                         || test ! -s conftest.err'
7226 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227    (eval $ac_try) 2>&5
7228    ac_status=$?
7229 <  echo "$as_me:5297: \$? = $ac_status" >&5
7229 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 >  (exit $ac_status); }; } &&
7231 >         { ac_try='test -s conftest$ac_exeext'
7232 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 >  (eval $ac_try) 2>&5
7234 >  ac_status=$?
7235 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236    (exit $ac_status); }; }; then
7237    ac_cv_lib_mkl_vslNewStream=yes
7238   else
7239    echo "$as_me: failed program was:" >&5
7240 < cat conftest.$ac_ext >&5
7240 > sed 's/^/| /' conftest.$ac_ext >&5
7241 >
7242   ac_cv_lib_mkl_vslNewStream=no
7243   fi
7244 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7244 > rm -f conftest.err conftest.$ac_objext \
7245 >      conftest$ac_exeext conftest.$ac_ext
7246   LIBS=$ac_check_lib_save_LIBS
7247   fi
7248 < echo "$as_me:5308: result: $ac_cv_lib_mkl_vslNewStream" >&5
7248 > echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
7249   echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
7250   if test $ac_cv_lib_mkl_vslNewStream = yes; then
7251    MKL_LIBDIR="${mkldir}/lib/32",
# Line 5313 | Line 7253 | else
7253                       HAVE_MKL="yes"
7254   fi
7255  
7256 +
7257   else
7258    MKL_INC="-I${mkldir}/include"
7259   fi
7260  
7261 +
7262    CPPFLAGS=$ac_save_CPPFLAGS
7263    LDFLAGS=$ac_save_LDFLAGS
7264 <  ac_ext=f90
7265 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7266 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7264 >  ac_ext=c
7265 > ac_cpp='$CPP $CPPFLAGS'
7266 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269  
7270 +
7271    if test x_$HAVE_MKL != x_yes; then
7272 <        { { echo "$as_me:5328: error: Can't build with MKL" >&5
7272 >        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
7273   echo "$as_me: error: Can't build with MKL" >&2;}
7274     { (exit 1); exit 1; }; }
7275    fi
7276  
7277 +
7278 +
7279 +
7280 +
7281   else
7282  
7283 <    echo "$as_me:5335: result: no" >&5
7283 >    echo "$as_me:$LINENO: result: no" >&5
7284   echo "${ECHO_T}no" >&6
7285  
7286   fi;
7287  
5340 #AC_CHECK_MPI_F90MOD
7288  
7289 +
7290 +
7291 +
7292   OBJEXT=".$OBJEXT"
7293  
7294   OOPSE=oopse
# Line 5362 | Line 7312 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7312  
7313   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7314  
7315 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
7315 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party "
7316  
7317 < #CFLAGS=${CFLAGS-""}
7318 < #CXXFLAGS=${CXXFLAGS-""}
7319 < #CPPFLAGS=${CPPFLAGS-""}
7320 < #FFLAGS=${FFLAGS-""}
7321 < #LDFLAGS=${LDFLAGS-""}
7322 < #OPTIMIZE=${OPTIMIZE-"-O"}
7323 < #DEBUG=${DEBUG-"-g"}
7317 > CFLAGS=${CFLAGS-""}
7318 > CXXFLAGS=${CXXFLAGS-""}
7319 > CPPFLAGS=${CPPFLAGS-""}
7320 > FFLAGS=${FFLAGS-""}
7321 > F90FLAGS=${F90FLAGS-""}
7322 > LDFLAGS=${LDFLAGS-""}
7323 > DEBUG=${DEBUG-"-g"}
7324  
7325   case $debug in
7326 <  true)
5377 <     CFLAGS="$DEBUG $CFLAGS"
5378 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7326 >  1)
7327       FFLAGS="$DEBUG $FFLAGS"
7328       F90FLAGS="$DEBUG $F90FLAGS"
7329       ;;
7330    *)
5383     CFLAGS="$OPTIMIZE $CFLAGS"
5384     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
5385     FFLAGS="$OPTIMIZE $FFLAGS"
5386     F90FLAGS="$OPTIMIZE $F90FLAGS"
7331       ;;
7332   esac
7333  
5390 ac_config_headers="$ac_config_headers libmdtools/config.h"
7334  
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"
7335  
7336 +
7337 +
7338 +
7339 +
7340 +
7341 +
7342 +
7343 +
7344 +
7345 +
7346 +
7347 +
7348 +
7349 +
7350 +                    ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h"
7351 +
7352 +                                                                                                                                                                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"
7353 +
7354 +
7355   cat >confcache <<\_ACEOF
7356   # This file is a shell script that caches the results of configure
7357   # tests run on this system so they can be shared between configure
# Line 5401 | Line 7362 | cat >confcache <<\_ACEOF
7362   # config.status only pays attention to the cache file if you give it
7363   # the --recheck option to rerun configure.
7364   #
7365 < # `ac_cv_env_foo' variables (set or unset) will be overriden when
7365 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
7366   # loading this file, other *unset* `ac_cv_foo' will be assigned the
7367   # following values.
7368  
# Line 5419 | Line 7380 | _ACEOF
7380        # `set' does not quote correctly, so add quotes (double-quote
7381        # substitution turns \\\\ into \\, and sed turns \\ into \).
7382        sed -n \
7383 <        "s/'/'\\\\''/g;
7384 <          s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7383 >        "s/'/'\\\\''/g;
7384 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7385        ;;
7386      *)
7387        # `set' quotes correctly as required by POSIX, so do not add quotes.
7388        sed -n \
7389 <        "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7389 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7390        ;;
7391      esac;
7392   } |
# Line 5436 | Line 7397 | if cmp -s $cache_file confcache; then :; else
7397       t end
7398       /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7399       : end' >>confcache
7400 < if cmp -s $cache_file confcache; then :; else
7400 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
7401    if test -w $cache_file; then
7402      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7403      cat confcache >$cache_file
# Line 5455 | Line 7416 | if test "x$srcdir" = x.; then
7416   # trailing colons and then remove the whole line if VPATH becomes empty
7417   # (actually we leave an empty line to preserve line numbers).
7418   if test "x$srcdir" = x.; then
7419 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7419 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7420   s/:*\$(srcdir):*/:/;
7421   s/:*\${srcdir}:*/:/;
7422   s/:*@srcdir@:*/:/;
7423 < s/^\([^=]*=[    ]*\):*/\1/;
7423 > s/^\([^=]*=[     ]*\):*/\1/;
7424   s/:*$//;
7425 < s/^[^=]*=[      ]*$//;
7425 > s/^[^=]*=[       ]*$//;
7426   }'
7427   fi
7428  
7429   DEFS=-DHAVE_CONFIG_H
7430  
7431 + ac_libobjs=
7432 + ac_ltlibobjs=
7433 + for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7434 +  # 1. Remove the extension, and $U if already installed.
7435 +  ac_i=`echo "$ac_i" |
7436 +         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7437 +  # 2. Add them.
7438 +  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7439 +  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7440 + done
7441 + LIBOBJS=$ac_libobjs
7442 +
7443 + LTLIBOBJS=$ac_ltlibobjs
7444 +
7445 +
7446 +
7447   : ${CONFIG_STATUS=./config.status}
7448   ac_clean_files_save=$ac_clean_files
7449   ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7450 < { echo "$as_me:5473: creating $CONFIG_STATUS" >&5
7450 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7451   echo "$as_me: creating $CONFIG_STATUS" >&6;}
7452   cat >$CONFIG_STATUS <<_ACEOF
7453   #! $SHELL
7454 < # Generated automatically by configure.
7454 > # Generated by $as_me.
7455   # Run this file to recreate the current configuration.
7456   # Compiler output produced by configure, useful for debugging
7457   # configure, is in config.log if it exists.
7458  
7459   debug=false
7460 + ac_cs_recheck=false
7461 + ac_cs_silent=false
7462   SHELL=\${CONFIG_SHELL-$SHELL}
5484 ac_cs_invocation="\$0 \$@"
5485
7463   _ACEOF
7464  
7465   cat >>$CONFIG_STATUS <<\_ACEOF
7466 + ## --------------------- ##
7467 + ## M4sh Initialization.  ##
7468 + ## --------------------- ##
7469 +
7470   # Be Bourne compatible
7471   if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7472    emulate sh
7473    NULLCMD=:
7474 +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7475 +  # is contrary to our usage.  Disable this feature.
7476 +  alias -g '${1+"$@"}'='"$@"'
7477   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7478    set -o posix
7479   fi
7480 + DUALCASE=1; export DUALCASE # for MKS sh
7481  
7482 + # Support unset when possible.
7483 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7484 +  as_unset=unset
7485 + else
7486 +  as_unset=false
7487 + fi
7488 +
7489 +
7490 + # Work around bugs in pre-3.0 UWIN ksh.
7491 + $as_unset ENV MAIL MAILPATH
7492 + PS1='$ '
7493 + PS2='> '
7494 + PS4='+ '
7495 +
7496 + # NLS nuisances.
7497 + for as_var in \
7498 +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7499 +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7500 +  LC_TELEPHONE LC_TIME
7501 + do
7502 +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7503 +    eval $as_var=C; export $as_var
7504 +  else
7505 +    $as_unset $as_var
7506 +  fi
7507 + done
7508 +
7509 + # Required to use basename.
7510 + if expr a : '\(a\)' >/dev/null 2>&1; then
7511 +  as_expr=expr
7512 + else
7513 +  as_expr=false
7514 + fi
7515 +
7516 + if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7517 +  as_basename=basename
7518 + else
7519 +  as_basename=false
7520 + fi
7521 +
7522 +
7523   # Name of the executable.
7524 < as_me=`echo "$0" |sed 's,.*[\\/],,'`
7524 > as_me=`$as_basename "$0" ||
7525 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7526 >         X"$0" : 'X\(//\)$' \| \
7527 >         X"$0" : 'X\(/\)$' \| \
7528 >         .     : '\(.\)' 2>/dev/null ||
7529 > echo X/"$0" |
7530 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7531 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
7532 >          /^X\/\(\/\).*/{ s//\1/; q; }
7533 >          s/.*/./; q'`
7534 >
7535 >
7536 > # PATH needs CR, and LINENO needs CR and PATH.
7537 > # Avoid depending upon Character Ranges.
7538 > as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7539 > as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7540 > as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7541 > as_cr_digits='0123456789'
7542 > as_cr_alnum=$as_cr_Letters$as_cr_digits
7543 >
7544 > # The user is always right.
7545 > if test "${PATH_SEPARATOR+set}" != set; then
7546 >  echo "#! /bin/sh" >conf$$.sh
7547 >  echo  "exit 0"   >>conf$$.sh
7548 >  chmod +x conf$$.sh
7549 >  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7550 >    PATH_SEPARATOR=';'
7551 >  else
7552 >    PATH_SEPARATOR=:
7553 >  fi
7554 >  rm -f conf$$.sh
7555 > fi
7556 >
7557 >
7558 >  as_lineno_1=$LINENO
7559 >  as_lineno_2=$LINENO
7560 >  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7561 >  test "x$as_lineno_1" != "x$as_lineno_2" &&
7562 >  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7563 >  # Find who we are.  Look in the path if we contain no path at all
7564 >  # relative or not.
7565 >  case $0 in
7566 >    *[\\/]* ) as_myself=$0 ;;
7567 >    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 > for as_dir in $PATH
7569 > do
7570 >  IFS=$as_save_IFS
7571 >  test -z "$as_dir" && as_dir=.
7572 >  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7573 > done
7574  
7575 +       ;;
7576 +  esac
7577 +  # We did not find ourselves, most probably we were run as `sh COMMAND'
7578 +  # in which case we are not to be found in the path.
7579 +  if test "x$as_myself" = x; then
7580 +    as_myself=$0
7581 +  fi
7582 +  if test ! -f "$as_myself"; then
7583 +    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7584 + echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7585 +   { (exit 1); exit 1; }; }
7586 +  fi
7587 +  case $CONFIG_SHELL in
7588 +  '')
7589 +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 + for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7591 + do
7592 +  IFS=$as_save_IFS
7593 +  test -z "$as_dir" && as_dir=.
7594 +  for as_base in sh bash ksh sh5; do
7595 +         case $as_dir in
7596 +         /*)
7597 +           if ("$as_dir/$as_base" -c '
7598 +  as_lineno_1=$LINENO
7599 +  as_lineno_2=$LINENO
7600 +  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7601 +  test "x$as_lineno_1" != "x$as_lineno_2" &&
7602 +  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7603 +             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7604 +             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7605 +             CONFIG_SHELL=$as_dir/$as_base
7606 +             export CONFIG_SHELL
7607 +             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7608 +           fi;;
7609 +         esac
7610 +       done
7611 + done
7612 + ;;
7613 +  esac
7614 +
7615 +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7616 +  # uniformly replaced by the line number.  The first 'sed' inserts a
7617 +  # line-number line before each line; the second 'sed' does the real
7618 +  # work.  The second script uses 'N' to pair each line-number line
7619 +  # with the numbered line, and appends trailing '-' during
7620 +  # substitution so that $LINENO is not a special case at line end.
7621 +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7622 +  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7623 +  sed '=' <$as_myself |
7624 +    sed '
7625 +      N
7626 +      s,$,-,
7627 +      : loop
7628 +      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7629 +      t loop
7630 +      s,-$,,
7631 +      s,^['$as_cr_digits']*\n,,
7632 +    ' >$as_me.lineno &&
7633 +  chmod +x $as_me.lineno ||
7634 +    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7635 + echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7636 +   { (exit 1); exit 1; }; }
7637 +
7638 +  # Don't try to exec as it changes $[0], causing all sort of problems
7639 +  # (the dirname of $[0] is not the place where we might find the
7640 +  # original and so on.  Autoconf is especially sensible to this).
7641 +  . ./$as_me.lineno
7642 +  # Exit status is that of the last command.
7643 +  exit
7644 + }
7645 +
7646 +
7647 + case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7648 +  *c*,-n*) ECHO_N= ECHO_C='
7649 + ' ECHO_T='      ' ;;
7650 +  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7651 +  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7652 + esac
7653 +
7654   if expr a : '\(a\)' >/dev/null 2>&1; then
7655    as_expr=expr
7656   else
# Line 5521 | Line 7675 | as_executable_p="test -f"
7675   fi
7676   rm -f conf$$ conf$$.exe conf$$.file
7677  
7678 < as_executable_p="test -f"
7679 <
5526 < # Support unset when possible.
5527 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5528 <  as_unset=unset
7678 > if mkdir -p . 2>/dev/null; then
7679 >  as_mkdir_p=:
7680   else
7681 <  as_unset=false
7681 >  test -d ./-p && rmdir ./-p
7682 >  as_mkdir_p=false
7683   fi
7684  
7685 < # 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; }
7685 > as_executable_p="test -f"
7686  
7687 + # Sed expression to map a string onto a valid CPP name.
7688 + as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7689 +
7690 + # Sed expression to map a string onto a valid variable name.
7691 + as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7692 +
7693 +
7694   # IFS
7695   # We need space, tab and new line, in precisely that order.
7696   as_nl='
# Line 5547 | Line 7698 | $as_unset CDPATH || test "${CDPATH+set}" != set || { C
7698   IFS="   $as_nl"
7699  
7700   # CDPATH.
7701 < $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7701 > $as_unset CDPATH
7702  
7703   exec 6>&1
7704  
7705 + # Open the log real soon, to keep \$[0] and so on meaningful, and to
7706 + # report actual input values of CONFIG_FILES etc. instead of their
7707 + # values after options handling.  Logging --version etc. is OK.
7708 + exec 5>>config.log
7709 + {
7710 +  echo
7711 +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7712 + ## Running $as_me. ##
7713 + _ASBOX
7714 + } >&5
7715 + cat >&5 <<_CSEOF
7716 +
7717 + This file was extended by OOPSE $as_me 1.0, which was
7718 + generated by GNU Autoconf 2.59.  Invocation command line was
7719 +
7720 +  CONFIG_FILES    = $CONFIG_FILES
7721 +  CONFIG_HEADERS  = $CONFIG_HEADERS
7722 +  CONFIG_LINKS    = $CONFIG_LINKS
7723 +  CONFIG_COMMANDS = $CONFIG_COMMANDS
7724 +  $ $0 $@
7725 +
7726 + _CSEOF
7727 + echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7728 + echo >&5
7729   _ACEOF
7730  
7731   # Files that config.status was made for.
# Line 5570 | Line 7745 | cat >>$CONFIG_STATUS <<\EOF
7745    echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7746   fi
7747  
7748 < cat >>$CONFIG_STATUS <<\EOF
7748 > cat >>$CONFIG_STATUS <<\_ACEOF
7749  
7750   ac_cs_usage="\
7751   \`$as_me' instantiates files from templates according to the
# Line 5580 | Line 7755 | Usage: $0 [OPTIONS] [FILE]...
7755  
7756    -h, --help       print this help, then exit
7757    -V, --version    print version number, then exit
7758 +  -q, --quiet      do not print progress messages
7759    -d, --debug      don't remove temporary files
7760        --recheck    update $as_me by reconfiguring in the same conditions
7761    --file=FILE[:TEMPLATE]
7762 <                   instantiate the configuration file FILE
7762 >                   instantiate the configuration file FILE
7763    --header=FILE[:TEMPLATE]
7764 <                   instantiate the configuration header FILE
7764 >                   instantiate the configuration header FILE
7765  
7766   Configuration files:
7767   $config_files
# Line 5594 | Line 7770 | EOF
7770   $config_headers
7771  
7772   Report bugs to <bug-autoconf@gnu.org>."
7773 < EOF
7773 > _ACEOF
7774  
7775 < cat >>$CONFIG_STATUS <<EOF
7775 > cat >>$CONFIG_STATUS <<_ACEOF
7776   ac_cs_version="\\
7777   OOPSE config.status 1.0
7778 < configured by $0, generated by GNU Autoconf 2.50,
7778 > configured by $0, generated by GNU Autoconf 2.59,
7779    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7780  
7781 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5606 < Free Software Foundation, Inc.
7781 > Copyright (C) 2003 Free Software Foundation, Inc.
7782   This config.status script is free software; the Free Software Foundation
7783   gives unlimited permission to copy, distribute and modify it."
7784   srcdir=$srcdir
7785   INSTALL="$INSTALL"
7786 < EOF
7786 > _ACEOF
7787  
7788 < cat >>$CONFIG_STATUS <<\EOF
7788 > cat >>$CONFIG_STATUS <<\_ACEOF
7789   # If no file are specified by the user, then we need to provide default
7790   # value.  By we need to know if files were specified by the user.
7791   ac_need_defaults=:
# Line 5620 | Line 7795 | do
7795    --*=*)
7796      ac_option=`expr "x$1" : 'x\([^=]*\)='`
7797      ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7798 <    shift
5624 <    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5625 <    shift
7798 >    ac_shift=:
7799      ;;
7800 <  -*);;
7800 >  -*)
7801 >    ac_option=$1
7802 >    ac_optarg=$2
7803 >    ac_shift=shift
7804 >    ;;
7805    *) # This is not an option, so the user has probably given explicit
7806       # arguments.
7807 +     ac_option=$1
7808       ac_need_defaults=false;;
7809    esac
7810  
7811 <  case $1 in
7811 >  case $ac_option in
7812    # Handling of the options.
7813 < EOF
7814 < cat >>$CONFIG_STATUS <<EOF
7813 > _ACEOF
7814 > cat >>$CONFIG_STATUS <<\_ACEOF
7815    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7816 <    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
7816 >    ac_cs_recheck=: ;;
7817    --version | --vers* | -V )
7818      echo "$ac_cs_version"; exit 0 ;;
7819    --he | --h)
7820      # Conflict between --help and --header
7821 <    { { echo "$as_me:5646: error: ambiguous option: $1
7821 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7822   Try \`$0 --help' for more information." >&5
7823   echo "$as_me: error: ambiguous option: $1
7824   Try \`$0 --help' for more information." >&2;}
# Line 5653 | Line 7828 | Try \`$0 --help' for more information." >&2;}
7828    --debug | --d* | -d )
7829      debug=: ;;
7830    --file | --fil | --fi | --f )
7831 <    shift
7832 <    CONFIG_FILES="$CONFIG_FILES $1"
7831 >    $ac_shift
7832 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7833      ac_need_defaults=false;;
7834    --header | --heade | --head | --hea )
7835 <    shift
7836 <    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7835 >    $ac_shift
7836 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7837      ac_need_defaults=false;;
7838 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7839 +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7840 +    ac_cs_silent=: ;;
7841  
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
7842    # This is an error.
7843 <  -*) { { echo "$as_me:5682: error: unrecognized option: $1
7843 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7844   Try \`$0 --help' for more information." >&5
7845   echo "$as_me: error: unrecognized option: $1
7846   Try \`$0 --help' for more information." >&2;}
7847     { (exit 1); exit 1; }; } ;;
7848 <  *) { { echo "$as_me:5687: error: invalid argument: $1" >&5
7849 < echo "$as_me: error: invalid argument: $1" >&2;}
7850 <   { (exit 1); exit 1; }; };;
7848 >
7849 >  *) ac_config_targets="$ac_config_targets $1" ;;
7850 >
7851    esac
7852    shift
7853   done
7854  
7855 < exec 5>>config.log
5695 < cat >&5 << _ACEOF
7855 > ac_configure_extra_args=
7856  
7857 < ## ----------------------- ##
7858 < ## Running config.status.  ##
7859 < ## ----------------------- ##
7857 > if $ac_cs_silent; then
7858 >  exec 6>/dev/null
7859 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
7860 > fi
7861  
7862 < This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
7863 <  > $ac_cs_invocation
7864 < on `(hostname || uname -n) 2>/dev/null | sed 1q`
7862 > _ACEOF
7863 > cat >>$CONFIG_STATUS <<_ACEOF
7864 > if \$ac_cs_recheck; then
7865 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7866 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7867 > fi
7868  
7869   _ACEOF
5706 EOF
7870  
7871 < cat >>$CONFIG_STATUS <<\EOF
7871 >
7872 >
7873 >
7874 >
7875 > cat >>$CONFIG_STATUS <<\_ACEOF
7876 > for ac_config_target in $ac_config_targets
7877 > do
7878 >  case "$ac_config_target" in
7879 >  # Handling of arguments.
7880 >  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7881 >  "libBASS/Makefile" ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
7882 >  "libmdtools/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
7883 >  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7884 >  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
7885 >  "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7886 >  "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7887 >  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7888 >  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7889 >  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7890 >  "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7891 >  "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7892 >  "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7893 >  "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7894 >  "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7895 >  "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7896 >  "libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;;
7897 >  "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7898 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7899 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7900 >   { (exit 1); exit 1; }; };;
7901 >  esac
7902 > done
7903 >
7904   # If the user did not use the arguments to specify the items to instantiate,
7905   # then the envvar interface is used.  Set only those that are not.
7906   # We use the long form for the default assignment because of an extremely
# Line 5715 | Line 7910 | fi
7910    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7911   fi
7912  
7913 + # Have a temporary directory for convenience.  Make it in the build tree
7914 + # simply because there is no reason to put it here, and in addition,
7915 + # creating and moving files from /tmp can sometimes cause problems.
7916   # Create a temporary directory, and hook for its removal unless debugging.
7917   $debug ||
7918   {
7919    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7920 <  trap '{ (exit $?); exit $?; }' 1 2 13 15
7920 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
7921   }
7922  
7923   # Create a (secure) tmp directory for tmp files.
7924 < : ${TMPDIR=/tmp}
7924 >
7925   {
7926 <  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7926 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7927    test -n "$tmp" && test -d "$tmp"
7928   }  ||
7929   {
7930 <  tmp=$TMPDIR/cs$$-$RANDOM
7930 >  tmp=./confstat$$-$RANDOM
7931    (umask 077 && mkdir $tmp)
7932   } ||
7933   {
7934 <   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7934 >   echo "$me: cannot create a temporary directory in ." >&2
7935     { (exit 1); exit 1; }
7936   }
7937  
7938 < EOF
7938 > _ACEOF
7939  
7940 < cat >>$CONFIG_STATUS <<EOF
7940 > cat >>$CONFIG_STATUS <<_ACEOF
7941  
7942   #
7943   # CONFIG_FILES section.
# Line 5752 | Line 7950 | s,@exec_prefix@,$exec_prefix,;t t
7950    sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7951     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7952   s,@SHELL@,$SHELL,;t t
7953 + s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7954 + s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7955 + s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7956 + s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7957 + s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7958 + s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7959   s,@exec_prefix@,$exec_prefix,;t t
7960   s,@prefix@,$prefix,;t t
7961   s,@program_transform_name@,$program_transform_name,;t t
# Line 5767 | Line 7971 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7971   s,@oldincludedir@,$oldincludedir,;t t
7972   s,@infodir@,$infodir,;t t
7973   s,@mandir@,$mandir,;t t
7974 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7975 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7976 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7977 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5774 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7974 > s,@build_alias@,$build_alias,;t t
7975 > s,@host_alias@,$host_alias,;t t
7976 > s,@target_alias@,$target_alias,;t t
7977 > s,@DEFS@,$DEFS,;t t
7978   s,@ECHO_C@,$ECHO_C,;t t
7979   s,@ECHO_N@,$ECHO_N,;t t
7980   s,@ECHO_T@,$ECHO_T,;t t
5778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5779 s,@DEFS@,$DEFS,;t t
7981   s,@LIBS@,$LIBS,;t t
7982   s,@PROGNAME@,$PROGNAME,;t t
7983 < s,@DEBUG@,$DEBUG,;t t
7983 > s,@debug@,$debug,;t t
7984   s,@build@,$build,;t t
7985   s,@build_cpu@,$build_cpu,;t t
7986   s,@build_vendor@,$build_vendor,;t t
# Line 5798 | Line 7999 | s,@F90@,$F90,;t t
7999   s,@CXX@,$CXX,;t t
8000   s,@CXXFLAGS@,$CXXFLAGS,;t t
8001   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8002 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8003 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8004   s,@F90@,$F90,;t t
8005   s,@F90FLAGS@,$F90FLAGS,;t t
8006   s,@ac_ct_F90@,$ac_ct_F90,;t t
8007   s,@PREPFLAG@,$PREPFLAG,;t t
8008   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8009 + s,@F90LIBS@,$F90LIBS,;t t
8010 + s,@F90_FUNC@,$F90_FUNC,;t t
8011 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8012 + s,@MOD@,$MOD,;t t
8013 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8014 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8015 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8016   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8017   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8018   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 5815 | Line 8025 | s,@F90LIBS@,$F90LIBS,;t t
8025   s,@LEXLIB@,$LEXLIB,;t t
8026   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8027   s,@AR@,$AR,;t t
8028 < s,@F90LIBS@,$F90LIBS,;t t
8029 < s,@F90_FUNC@,$F90_FUNC,;t t
8030 < s,@F90_FUNC_@,$F90_FUNC_,;t t
5821 < s,@mpi_dir@,$mpi_dir,;t t
5822 < s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
5823 < s,@MPI_INC@,$MPI_INC,;t t
8028 > s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
8029 > s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
8030 > s,@MPI_F90_INC@,$MPI_F90_INC,;t t
8031   s,@MPI_LIB@,$MPI_LIB,;t t
8032 < s,@MPIF77@,$MPIF77,;t t
8033 < s,@MPIF90@,$MPIF90,;t t
5827 < s,@MPILIBS@,$MPILIBS,;t t
8032 > s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
8033 > s,@USE_MPI@,$USE_MPI,;t t
8034   s,@CPP@,$CPP,;t t
8035 + s,@EGREP@,$EGREP,;t t
8036   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
8037   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
8038   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 5840 | Line 8047 | CEOF
8047   s,@OOPSE_HOME@,$OOPSE_HOME,;t t
8048   s,@SUBDIRS@,$SUBDIRS,;t t
8049   s,@FFLAGS@,$FFLAGS,;t t
8050 + s,@LIBOBJS@,$LIBOBJS,;t t
8051 + s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8052   CEOF
8053  
8054 < EOF
8054 > _ACEOF
8055  
8056 <  cat >>$CONFIG_STATUS <<\EOF
8056 >  cat >>$CONFIG_STATUS <<\_ACEOF
8057    # Split the substitutions into bite-sized pieces for seds with
8058    # small command number limits, like on Digital OSF/1 and HP-UX.
8059    ac_max_sed_lines=48
# Line 5869 | Line 8078 | EOF
8078        (echo ':t
8079    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8080        if test -z "$ac_sed_cmds"; then
8081 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8081 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8082        else
8083 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8083 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8084        fi
8085        ac_sed_frag=`expr $ac_sed_frag + 1`
8086        ac_beg=$ac_end
# Line 5883 | Line 8092 | EOF
8092    fi
8093   fi # test -n "$CONFIG_FILES"
8094  
8095 < EOF
8096 < cat >>$CONFIG_STATUS <<\EOF
8095 > _ACEOF
8096 > cat >>$CONFIG_STATUS <<\_ACEOF
8097   for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8098    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8099    case $ac_file in
8100    - | *:- | *:-:* ) # input from stdin
8101 <        cat >$tmp/stdin
8102 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101 >        cat >$tmp/stdin
8102 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8104    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8105 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8105 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8106    * )   ac_file_in=$ac_file.in ;;
8107    esac
8108  
8109    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8110 <  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8111 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8112 <         X"$ac_file" : 'X\(//\)$' \| \
8113 <         X"$ac_file" : 'X\(/\)' \| \
8114 <         .     : '\(.\)' 2>/dev/null ||
8110 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8111 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8112 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8113 >         X"$ac_file" : 'X\(//\)$' \| \
8114 >         X"$ac_file" : 'X\(/\)' \| \
8115 >         .     : '\(.\)' 2>/dev/null ||
8116   echo X"$ac_file" |
8117      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8118            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8119            /^X\(\/\/\)$/{ s//\1/; q; }
8120            /^X\(\/\).*/{ s//\1/; q; }
8121            s/.*/./; q'`
8122 <  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8123 <    { 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'`
8122 >  { if $as_mkdir_p; then
8123 >    mkdir -p "$ac_dir"
8124    else
8125 <    ac_dir_suffix= ac_dots=
8126 <  fi
8125 >    as_dir="$ac_dir"
8126 >    as_dirs=
8127 >    while test ! -d "$as_dir"; do
8128 >      as_dirs="$as_dir $as_dirs"
8129 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8130 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8131 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8132 >         X"$as_dir" : 'X\(//\)$' \| \
8133 >         X"$as_dir" : 'X\(/\)' \| \
8134 >         .     : '\(.\)' 2>/dev/null ||
8135 > echo X"$as_dir" |
8136 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8137 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8138 >          /^X\(\/\/\)$/{ s//\1/; q; }
8139 >          /^X\(\/\).*/{ s//\1/; q; }
8140 >          s/.*/./; q'`
8141 >    done
8142 >    test ! -n "$as_dirs" || mkdir $as_dirs
8143 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8144 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8145 >   { (exit 1); exit 1; }; }; }
8146  
8147 <  case $srcdir in
8148 <  .)  ac_srcdir=.
8149 <      if test -z "$ac_dots"; then
8150 <         ac_top_srcdir=.
8151 <      else
8152 <         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8153 <      fi ;;
8154 <  [\\/]* | ?:[\\/]* )
8155 <      ac_srcdir=$srcdir$ac_dir_suffix;
8156 <      ac_top_srcdir=$srcdir ;;
8147 >  ac_builddir=.
8148 >
8149 > if test "$ac_dir" != .; then
8150 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8151 >  # A "../" for each directory in $ac_dir_suffix.
8152 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8153 > else
8154 >  ac_dir_suffix= ac_top_builddir=
8155 > fi
8156 >
8157 > case $srcdir in
8158 >  .)  # No --srcdir option.  We are building in place.
8159 >    ac_srcdir=.
8160 >    if test -z "$ac_top_builddir"; then
8161 >       ac_top_srcdir=.
8162 >    else
8163 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8164 >    fi ;;
8165 >  [\\/]* | ?:[\\/]* )  # Absolute path.
8166 >    ac_srcdir=$srcdir$ac_dir_suffix;
8167 >    ac_top_srcdir=$srcdir ;;
8168    *) # Relative path.
8169 <    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
8170 <    ac_top_srcdir=$ac_dots$srcdir ;;
8171 <  esac
8169 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8170 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8171 > esac
8172 >
8173 > # Do not use `cd foo && pwd` to compute absolute paths, because
8174 > # the directories may not exist.
8175 > case `pwd` in
8176 > .) ac_abs_builddir="$ac_dir";;
8177 > *)
8178 >  case "$ac_dir" in
8179 >  .) ac_abs_builddir=`pwd`;;
8180 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8181 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8182 >  esac;;
8183 > esac
8184 > case $ac_abs_builddir in
8185 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
8186 > *)
8187 >  case ${ac_top_builddir}. in
8188 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
8189 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8190 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8191 >  esac;;
8192 > esac
8193 > case $ac_abs_builddir in
8194 > .) ac_abs_srcdir=$ac_srcdir;;
8195 > *)
8196 >  case $ac_srcdir in
8197 >  .) ac_abs_srcdir=$ac_abs_builddir;;
8198 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8199 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8200 >  esac;;
8201 > esac
8202 > case $ac_abs_builddir in
8203 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
8204 > *)
8205 >  case $ac_top_srcdir in
8206 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8207 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8208 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8209 >  esac;;
8210 > esac
8211  
8212 +
8213    case $INSTALL in
8214    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8215 <  *) ac_INSTALL=$ac_dots$INSTALL ;;
8215 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8216    esac
8217  
8218    if test x"$ac_file" != x-; then
8219 <    { echo "$as_me:5957: creating $ac_file" >&5
8219 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
8220   echo "$as_me: creating $ac_file" >&6;}
8221      rm -f "$ac_file"
8222    fi
8223    # Let's still pretend it is `configure' which instantiates (i.e., don't
8224    # use $as_me), people would be surprised to read:
8225 <  #    /* config.h.  Generated automatically by config.status.  */
8226 <  configure_input="Generated automatically from `echo $ac_file_in |
8227 <                                                 sed 's,.*/,,'` by configure."
8225 >  #    /* config.h.  Generated by config.status.  */
8226 >  if test x"$ac_file" = x-; then
8227 >    configure_input=
8228 >  else
8229 >    configure_input="$ac_file.  "
8230 >  fi
8231 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
8232 >                                     sed 's,.*/,,'` by configure."
8233  
8234    # First look for the input files in the build tree, otherwise in the
8235    # src tree.
# Line 5971 | Line 8238 | echo "$as_me: creating $ac_file" >&6;}
8238        case $f in
8239        -) echo $tmp/stdin ;;
8240        [\\/$]*)
8241 <         # Absolute (can't be DOS-style, as IFS=:)
8242 <         test -f "$f" || { { echo "$as_me:5975: error: cannot find input file: $f" >&5
8241 >         # Absolute (can't be DOS-style, as IFS=:)
8242 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8243   echo "$as_me: error: cannot find input file: $f" >&2;}
8244     { (exit 1); exit 1; }; }
8245 <         echo $f;;
8245 >         echo "$f";;
8246        *) # Relative
8247 <         if test -f "$f"; then
8248 <           # Build tree
8249 <           echo $f
8250 <         elif test -f "$srcdir/$f"; then
8251 <           # Source tree
8252 <           echo $srcdir/$f
8253 <         else
8254 <           # /dev/null tree
8255 <           { { echo "$as_me:5988: error: cannot find input file: $f" >&5
8247 >         if test -f "$f"; then
8248 >           # Build tree
8249 >           echo "$f"
8250 >         elif test -f "$srcdir/$f"; then
8251 >           # Source tree
8252 >           echo "$srcdir/$f"
8253 >         else
8254 >           # /dev/null tree
8255 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8256   echo "$as_me: error: cannot find input file: $f" >&2;}
8257     { (exit 1); exit 1; }; }
8258 <         fi;;
8258 >         fi;;
8259        esac
8260      done` || { (exit 1); exit 1; }
8261 < EOF
8262 < cat >>$CONFIG_STATUS <<EOF
8261 > _ACEOF
8262 > cat >>$CONFIG_STATUS <<_ACEOF
8263    sed "$ac_vpsub
8264   $extrasub
8265 < EOF
8266 < cat >>$CONFIG_STATUS <<\EOF
8265 > _ACEOF
8266 > cat >>$CONFIG_STATUS <<\_ACEOF
8267   :t
8268   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8269   s,@configure_input@,$configure_input,;t t
8270   s,@srcdir@,$ac_srcdir,;t t
8271 + s,@abs_srcdir@,$ac_abs_srcdir,;t t
8272   s,@top_srcdir@,$ac_top_srcdir,;t t
8273 + s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8274 + s,@builddir@,$ac_builddir,;t t
8275 + s,@abs_builddir@,$ac_abs_builddir,;t t
8276 + s,@top_builddir@,$ac_top_builddir,;t t
8277 + s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8278   s,@INSTALL@,$ac_INSTALL,;t t
8279   " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8280    rm -f $tmp/stdin
# Line 6013 | Line 8286 | EOF
8286    fi
8287  
8288   done
8289 < EOF
8290 < cat >>$CONFIG_STATUS <<\EOF
8289 > _ACEOF
8290 > cat >>$CONFIG_STATUS <<\_ACEOF
8291  
8292   #
8293   # CONFIG_HEADER section.
# Line 6024 | Line 8297 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8297   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8298   #
8299   # ac_d sets the value in "#define NAME VALUE" lines.
8300 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8301 < ac_dB='[        ].*$,\1#\2'
8300 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8301 > ac_dB='[         ].*$,\1#\2'
8302   ac_dC=' '
8303   ac_dD=',;t'
8304   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8305 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8305 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8306   ac_uB='$,\1#\2define\3'
8307   ac_uC=' '
8308   ac_uD=',;t'
# Line 6038 | Line 8311 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8311    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8312    case $ac_file in
8313    - | *:- | *:-:* ) # input from stdin
8314 <        cat >$tmp/stdin
8315 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 >        cat >$tmp/stdin
8315 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8317    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8318 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8318 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8319    * )   ac_file_in=$ac_file.in ;;
8320    esac
8321  
8322 <  test x"$ac_file" != x- && { echo "$as_me:6049: creating $ac_file" >&5
8322 >  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8323   echo "$as_me: creating $ac_file" >&6;}
8324  
8325    # First look for the input files in the build tree, otherwise in the
# Line 6056 | Line 8329 | echo "$as_me: creating $ac_file" >&6;}
8329        case $f in
8330        -) echo $tmp/stdin ;;
8331        [\\/$]*)
8332 <         # Absolute (can't be DOS-style, as IFS=:)
8333 <         test -f "$f" || { { echo "$as_me:6060: error: cannot find input file: $f" >&5
8332 >         # Absolute (can't be DOS-style, as IFS=:)
8333 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8334   echo "$as_me: error: cannot find input file: $f" >&2;}
8335     { (exit 1); exit 1; }; }
8336 <         echo $f;;
8336 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8337 >         echo "$f";;
8338        *) # Relative
8339 <         if test -f "$f"; then
8340 <           # Build tree
8341 <           echo $f
8342 <         elif test -f "$srcdir/$f"; then
8343 <           # Source tree
8344 <           echo $srcdir/$f
8345 <         else
8346 <           # /dev/null tree
8347 <           { { echo "$as_me:6073: error: cannot find input file: $f" >&5
8339 >         if test -f "$f"; then
8340 >           # Build tree
8341 >           echo "$f"
8342 >         elif test -f "$srcdir/$f"; then
8343 >           # Source tree
8344 >           echo "$srcdir/$f"
8345 >         else
8346 >           # /dev/null tree
8347 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8348   echo "$as_me: error: cannot find input file: $f" >&2;}
8349     { (exit 1); exit 1; }; }
8350 <         fi;;
8350 >         fi;;
8351        esac
8352      done` || { (exit 1); exit 1; }
8353    # Remove the trailing spaces.
8354 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8354 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8355  
8356 < EOF
8356 > _ACEOF
8357  
8358   # Transform confdefs.h into two sed scripts, `conftest.defines' and
8359   # `conftest.undefs', that substitutes the proper values into
# Line 6095 | Line 8369 | cat >confdef2sed.sed <<\EOF
8369   # `end' is used to avoid that the second main sed command (meant for
8370   # 0-ary CPP macros) applies to n-ary macro definitions.
8371   # See the Autoconf documentation for `clear'.
8372 < cat >confdef2sed.sed <<\EOF
8372 > cat >confdef2sed.sed <<\_ACEOF
8373   s/[\\&,]/\\&/g
8374   s,[\\$`],\\&,g
8375   t clear
8376   : clear
8377 < s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8377 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8378   t end
8379 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8379 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8380   : end
8381 < EOF
8381 > _ACEOF
8382   # If some macros were called several times there might be several times
8383   # the same #defines, which is useless.  Nevertheless, we may not want to
8384   # sort them, since we want the *last* AC-DEFINE to be honored.
# Line 6115 | Line 8389 | cat >>conftest.undefs <<\EOF
8389   # This sed command replaces #undef with comments.  This is necessary, for
8390   # example, in the case of _POSIX_SOURCE, which is predefined and required
8391   # on some systems where configure will not decide to define it.
8392 < cat >>conftest.undefs <<\EOF
8393 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8394 < EOF
8392 > cat >>conftest.undefs <<\_ACEOF
8393 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8394 > _ACEOF
8395  
8396   # Break up conftest.defines because some shells have a limit on the size
8397   # of here documents, and old seds have small limits too (100 cmds).
8398   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8399 < echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8399 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8400   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8401   echo '  :' >>$CONFIG_STATUS
8402   rm -f conftest.tail
# Line 6131 | Line 8405 | do
8405    # Write a limited-size here document to $tmp/defines.sed.
8406    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8407    # Speed up: don't consider the non `#define' lines.
8408 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8408 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8409    # Work around the forget-to-reset-the-flag bug.
8410    echo 't clr' >>$CONFIG_STATUS
8411    echo ': clr' >>$CONFIG_STATUS
# Line 6146 | Line 8420 | echo '  fi # egrep' >>$CONFIG_STATUS
8420    mv conftest.tail conftest.defines
8421   done
8422   rm -f conftest.defines
8423 < echo '  fi # egrep' >>$CONFIG_STATUS
8423 > echo '  fi # grep' >>$CONFIG_STATUS
8424   echo >>$CONFIG_STATUS
8425  
8426   # Break up conftest.undefs because some shells have a limit on the size
# Line 6158 | Line 8432 | do
8432    # Write a limited-size here document to $tmp/undefs.sed.
8433    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8434    # Speed up: don't consider the non `#undef'
8435 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8435 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8436    # Work around the forget-to-reset-the-flag bug.
8437    echo 't clr' >>$CONFIG_STATUS
8438    echo ': clr' >>$CONFIG_STATUS
# Line 6174 | Line 8448 | cat >>$CONFIG_STATUS <<\EOF
8448   done
8449   rm -f conftest.undefs
8450  
8451 < cat >>$CONFIG_STATUS <<\EOF
8451 > cat >>$CONFIG_STATUS <<\_ACEOF
8452    # Let's still pretend it is `configure' which instantiates (i.e., don't
8453    # use $as_me), people would be surprised to read:
8454 <  #    /* config.h.  Generated automatically by config.status.  */
8454 >  #    /* config.h.  Generated by config.status.  */
8455    if test x"$ac_file" = x-; then
8456 <    echo "/* Generated automatically by configure.  */" >$tmp/config.h
8456 >    echo "/* Generated by configure.  */" >$tmp/config.h
8457    else
8458 <    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
8458 >    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8459    fi
8460    cat $tmp/in >>$tmp/config.h
8461    rm -f $tmp/in
8462    if test x"$ac_file" != x-; then
8463 <    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8464 <      { echo "$as_me:6190: $ac_file is unchanged" >&5
8463 >    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8464 >      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8465   echo "$as_me: $ac_file is unchanged" >&6;}
8466      else
8467 <      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8468 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8469 <         X"$ac_file" : 'X\(//\)$' \| \
8470 <         X"$ac_file" : 'X\(/\)' \| \
8471 <         .     : '\(.\)' 2>/dev/null ||
8467 >      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8468 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8469 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8470 >         X"$ac_file" : 'X\(//\)$' \| \
8471 >         X"$ac_file" : 'X\(/\)' \| \
8472 >         .     : '\(.\)' 2>/dev/null ||
8473   echo X"$ac_file" |
8474      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8475            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8476            /^X\(\/\/\)$/{ s//\1/; q; }
8477            /^X\(\/\).*/{ s//\1/; q; }
8478            s/.*/./; q'`
8479 <      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8480 <        { case "$ac_dir" in
8481 <  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8482 <  *)                      as_incr_dir=.;;
8483 < esac
8484 < as_dummy="$ac_dir"
8485 < for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8486 <  case $as_mkdir_dir in
8487 <    # Skip DOS drivespec
8488 <    ?:) as_incr_dir=$as_mkdir_dir ;;
8489 <    *)
8490 <      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8491 <      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8492 <    ;;
8493 <  esac
8494 < done; }
8479 >      { if $as_mkdir_p; then
8480 >    mkdir -p "$ac_dir"
8481 >  else
8482 >    as_dir="$ac_dir"
8483 >    as_dirs=
8484 >    while test ! -d "$as_dir"; do
8485 >      as_dirs="$as_dir $as_dirs"
8486 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8487 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8488 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8489 >         X"$as_dir" : 'X\(//\)$' \| \
8490 >         X"$as_dir" : 'X\(/\)' \| \
8491 >         .     : '\(.\)' 2>/dev/null ||
8492 > echo X"$as_dir" |
8493 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8494 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8495 >          /^X\(\/\/\)$/{ s//\1/; q; }
8496 >          /^X\(\/\).*/{ s//\1/; q; }
8497 >          s/.*/./; q'`
8498 >    done
8499 >    test ! -n "$as_dirs" || mkdir $as_dirs
8500 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8501 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8502 >   { (exit 1); exit 1; }; }; }
8503  
6221      fi
8504        rm -f $ac_file
8505        mv $tmp/config.h $ac_file
8506      fi
# Line 6227 | Line 8509 | EOF
8509      rm -f $tmp/config.h
8510    fi
8511   done
8512 < EOF
8512 > _ACEOF
8513  
8514 < cat >>$CONFIG_STATUS <<\EOF
8514 > cat >>$CONFIG_STATUS <<\_ACEOF
8515  
8516   { (exit 0); exit 0; }
8517 < EOF
8517 > _ACEOF
8518   chmod +x $CONFIG_STATUS
8519   ac_clean_files=$ac_clean_files_save
8520  
8521 +
8522   # configure is writing to config.log, and then calls config.status.
8523   # config.status does its own redirection, appending to config.log.
8524   # Unfortunately, on DOS this fails, as config.log is still kept open
# Line 6246 | Line 8529 | if test "$no_create" != yes; then
8529   # need to make the FD available again.
8530   if test "$no_create" != yes; then
8531    ac_cs_success=:
8532 +  ac_config_status_args=
8533 +  test "$silent" = yes &&
8534 +    ac_config_status_args="$ac_config_status_args --quiet"
8535    exec 5>/dev/null
8536 <  $SHELL $CONFIG_STATUS || ac_cs_success=false
8536 >  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8537    exec 5>>config.log
8538    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8539    # would make configure fail if this is the last instruction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines