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 1233 by gezelter, Fri Jun 4 02:38:23 2004 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines