ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/configure
Revision: 1998
Committed: Fri Feb 11 22:37:36 2005 UTC (19 years, 4 months ago) by tim
File size: 278723 byte(s)
Log Message:
adding support for physmem

File Contents

# User Rev Content
1 gezelter 1490 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 gezelter 1499 # Generated by GNU Autoconf 2.59 for OOPSE 2.0.
4 gezelter 1490 #
5     # Report bugs to <gezelter@nd.edu>.
6     #
7     # Copyright (C) 2003 Free Software Foundation, Inc.
8     # This configure script is free software; the Free Software Foundation
9     # gives unlimited permission to copy, distribute and modify it.
10     ## --------------------- ##
11     ## M4sh Initialization. ##
12     ## --------------------- ##
13    
14     # Be Bourne compatible
15     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19     # is contrary to our usage. Disable this feature.
20     alias -g '${1+"$@"}'='"$@"'
21     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22     set -o posix
23     fi
24     DUALCASE=1; export DUALCASE # for MKS sh
25    
26     # Support unset when possible.
27     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28     as_unset=unset
29     else
30     as_unset=false
31     fi
32    
33    
34     # Work around bugs in pre-3.0 UWIN ksh.
35     $as_unset ENV MAIL MAILPATH
36     PS1='$ '
37     PS2='> '
38     PS4='+ '
39    
40     # NLS nuisances.
41     for as_var in \
42     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44     LC_TELEPHONE LC_TIME
45     do
46     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48     else
49     $as_unset $as_var
50     fi
51     done
52    
53     # Required to use basename.
54     if expr a : '\(a\)' >/dev/null 2>&1; then
55     as_expr=expr
56     else
57     as_expr=false
58     fi
59    
60     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61     as_basename=basename
62     else
63     as_basename=false
64     fi
65    
66    
67     # Name of the executable.
68     as_me=`$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
199     as_expr=false
200     fi
201    
202     rm -f conf$$ conf$$.exe conf$$.file
203     echo >conf$$.file
204     if ln -s conf$$.file conf$$ 2>/dev/null; then
205     # We could just check for DJGPP; but this test a) works b) is more generic
206     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207     if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210     else
211     as_ln_s='ln -s'
212     fi
213     elif ln conf$$.file conf$$ 2>/dev/null; then
214     as_ln_s=ln
215     else
216     as_ln_s='cp -p'
217     fi
218     rm -f conf$$ conf$$.exe conf$$.file
219    
220     if mkdir -p . 2>/dev/null; then
221     as_mkdir_p=:
222     else
223     test -d ./-p && rmdir ./-p
224     as_mkdir_p=false
225     fi
226    
227     as_executable_p="test -f"
228    
229     # Sed expression to map a string onto a valid CPP name.
230     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231    
232     # Sed expression to map a string onto a valid variable name.
233     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234    
235    
236     # IFS
237     # We need space, tab and new line, in precisely that order.
238     as_nl='
239     '
240     IFS=" $as_nl"
241    
242     # CDPATH.
243     $as_unset CDPATH
244    
245    
246     # Name of the host.
247     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248     # so uname gets run too.
249     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250    
251     exec 6>&1
252    
253     #
254     # Initializations.
255     #
256     ac_default_prefix=/usr/local
257     ac_config_libobj_dir=.
258     cross_compiling=no
259     subdirs=
260     MFLAGS=
261     MAKEFLAGS=
262     SHELL=${CONFIG_SHELL-/bin/sh}
263    
264     # Maximum number of lines to put in a shell here document.
265     # This variable seems obsolete. It should probably be removed, and
266     # only ac_max_sed_lines should be used.
267     : ${ac_max_here_lines=38}
268    
269     # Identity of this package.
270     PACKAGE_NAME='OOPSE'
271     PACKAGE_TARNAME='oopse'
272 gezelter 1499 PACKAGE_VERSION='2.0'
273     PACKAGE_STRING='OOPSE 2.0'
274 gezelter 1490 PACKAGE_BUGREPORT='gezelter@nd.edu'
275    
276 gezelter 1509 ac_unique_file="src/applications/oopse/oopse.cpp"
277 gezelter 1490 ac_default_prefix="/usr/local"
278     # Factoring default headers for most tests.
279     ac_includes_default="\
280     #include <stdio.h>
281     #if HAVE_SYS_TYPES_H
282     # include <sys/types.h>
283     #endif
284     #if HAVE_SYS_STAT_H
285     # include <sys/stat.h>
286     #endif
287     #if STDC_HEADERS
288     # include <stdlib.h>
289     # include <stddef.h>
290     #else
291     # if HAVE_STDLIB_H
292     # include <stdlib.h>
293     # endif
294     #endif
295     #if HAVE_STRING_H
296     # if !STDC_HEADERS && HAVE_MEMORY_H
297     # include <memory.h>
298     # endif
299     # include <string.h>
300     #endif
301     #if HAVE_STRINGS_H
302     # include <strings.h>
303     #endif
304     #if HAVE_INTTYPES_H
305     # include <inttypes.h>
306     #else
307     # if HAVE_STDINT_H
308     # include <stdint.h>
309     # endif
310     #endif
311     #if HAVE_UNISTD_H
312     # include <unistd.h>
313     #endif"
314    
315 gezelter 1540 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 F90_MODULE_NAMES CPP EGREP LIBOBJS 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 SPRNG_LIB_DIR SPRNG_INC_DIR SPRNG_LIB USE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316 gezelter 1490 ac_subst_files=''
317    
318     # Initialize some variables set by options.
319     ac_init_help=
320     ac_init_version=false
321     # The variables have the same names as the options, with
322     # dashes changed to underlines.
323     cache_file=/dev/null
324     exec_prefix=NONE
325     no_create=
326     no_recursion=
327     prefix=NONE
328     program_prefix=NONE
329     program_suffix=NONE
330     program_transform_name=s,x,x,
331     silent=
332     site=
333     srcdir=
334     verbose=
335     x_includes=NONE
336     x_libraries=NONE
337    
338     # Installation directory options.
339     # These are left unexpanded so users can "make install exec_prefix=/foo"
340     # and all the variables that are supposed to be based on exec_prefix
341     # by default will actually change.
342     # Use braces instead of parens because sh, perl, etc. also accept them.
343     bindir='${exec_prefix}/bin'
344     sbindir='${exec_prefix}/sbin'
345     libexecdir='${exec_prefix}/libexec'
346     datadir='${prefix}/share'
347     sysconfdir='${prefix}/etc'
348     sharedstatedir='${prefix}/com'
349     localstatedir='${prefix}/var'
350     libdir='${exec_prefix}/lib'
351     includedir='${prefix}/include'
352     oldincludedir='/usr/include'
353     infodir='${prefix}/info'
354     mandir='${prefix}/man'
355    
356     ac_prev=
357     for ac_option
358     do
359     # If the previous option needs an argument, assign it.
360     if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364     fi
365    
366     ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367    
368     # Accept the important Cygnus configure options, so we can diagnose typos.
369    
370     case $ac_option in
371    
372     -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376    
377     -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381    
382     -cache-file | --cache-file | --cache-fil | --cache-fi \
383     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388    
389     --config-cache | -C)
390     cache_file=config.cache ;;
391    
392     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395     | --da=*)
396     datadir=$ac_optarg ;;
397    
398     -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403     { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406    
407     -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412     { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416     *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419    
420     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422     | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426     | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428    
429     -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432    
433     -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439    
440     -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442     -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444    
445     -includedir | --includedir | --includedi | --included | --include \
446     | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449     | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451    
452     -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456    
457     -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459     -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461    
462     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463     | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466     | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468    
469     -localstatedir | --localstatedir | --localstatedi | --localstated \
470     | --localstate | --localstat | --localsta | --localst \
471     | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477    
478     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482    
483     -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486    
487     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488     | --no-cr | --no-c | -n)
489     no_create=yes ;;
490    
491     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494    
495     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497     | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503    
504     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508    
509     -program-prefix | --program-prefix | --program-prefi | --program-pref \
510     | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512     -program-prefix=* | --program-prefix=* | --program-prefi=* \
513     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515    
516     -program-suffix | --program-suffix | --program-suffi | --program-suff \
517     | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519     -program-suffix=* | --program-suffix=* | --program-suffi=* \
520     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522    
523     -program-transform-name | --program-transform-name \
524     | --program-transform-nam | --program-transform-na \
525     | --program-transform-n | --program-transform- \
526     | --program-transform | --program-transfor \
527     | --program-transfo | --program-transf \
528     | --program-trans | --program-tran \
529     | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531     -program-transform-name=* | --program-transform-name=* \
532     | --program-transform-nam=* | --program-transform-na=* \
533     | --program-transform-n=* | --program-transform-=* \
534     | --program-transform=* | --program-transfor=* \
535     | --program-transfo=* | --program-transf=* \
536     | --program-trans=* | --program-tran=* \
537     | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539    
540     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541     | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543    
544     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547     | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549    
550     -sharedstatedir | --sharedstatedir | --sharedstatedi \
551     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552     | --sharedst | --shareds | --shared | --share | --shar \
553     | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558     | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560    
561     -site | --site | --sit)
562     ac_prev=site ;;
563     -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565    
566     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570    
571     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572     | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577    
578     -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582    
583     -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585    
586     -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588    
589     -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593     { echo "$as_me: error: invalid package name: $ac_package" >&2
594     { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598     *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601    
602     -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606     { echo "$as_me: error: invalid package name: $ac_package" >&2
607     { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610    
611     --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614    
615     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616     | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621    
622     -x-libraries | --x-libraries | --x-librarie | --x-librari \
623     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628    
629     -*) { echo "$as_me: error: unrecognized option: $ac_option
630     Try \`$0 --help' for more information." >&2
631     { (exit 1); exit 1; }; }
632     ;;
633    
634     *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639     { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643    
644     *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651    
652     esac
653     done
654    
655     if test -n "$ac_prev"; then
656     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657     { echo "$as_me: error: missing argument to $ac_option" >&2
658     { (exit 1); exit 1; }; }
659     fi
660    
661     # Be sure to have absolute paths.
662     for ac_var in exec_prefix prefix
663     do
664     eval ac_val=$`echo $ac_var`
665     case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668     { (exit 1); exit 1; }; };;
669     esac
670     done
671    
672     # Be sure to have absolute paths.
673     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674     localstatedir libdir includedir oldincludedir infodir mandir
675     do
676     eval ac_val=$`echo $ac_var`
677     case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680     { (exit 1); exit 1; }; };;
681     esac
682     done
683    
684     # There might be people who depend on the old broken behavior: `$host'
685     # used to hold the argument of --host etc.
686     # FIXME: To remove some day.
687     build=$build_alias
688     host=$host_alias
689     target=$target_alias
690    
691     # FIXME: To remove some day.
692     if test "x$host_alias" != x; then
693     if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697     elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699     fi
700     fi
701    
702     ac_tool_prefix=
703     test -n "$host_alias" && ac_tool_prefix=$host_alias-
704    
705     test "$silent" = yes && exec 6>/dev/null
706    
707    
708     # Find the source files, if location was not specified.
709     if test -z "$srcdir"; then
710     ac_srcdir_defaulted=yes
711     # Try the directory containing this script, then its parent.
712     ac_confdir=`(dirname "$0") 2>/dev/null ||
713     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714     X"$0" : 'X\(//\)[^/]' \| \
715     X"$0" : 'X\(//\)$' \| \
716     X"$0" : 'X\(/\)' \| \
717     . : '\(.\)' 2>/dev/null ||
718     echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721     /^X\(\/\/\)$/{ s//\1/; q; }
722     /^X\(\/\).*/{ s//\1/; q; }
723     s/.*/./; q'`
724     srcdir=$ac_confdir
725     if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727     fi
728     else
729     ac_srcdir_defaulted=no
730     fi
731     if test ! -r $srcdir/$ac_unique_file; then
732     if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734     { (exit 1); exit 1; }; }
735     else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737     { (exit 1); exit 1; }; }
738     fi
739     fi
740     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742     { (exit 1); exit 1; }; }
743     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744     ac_env_build_alias_set=${build_alias+set}
745     ac_env_build_alias_value=$build_alias
746     ac_cv_env_build_alias_set=${build_alias+set}
747     ac_cv_env_build_alias_value=$build_alias
748     ac_env_host_alias_set=${host_alias+set}
749     ac_env_host_alias_value=$host_alias
750     ac_cv_env_host_alias_set=${host_alias+set}
751     ac_cv_env_host_alias_value=$host_alias
752     ac_env_target_alias_set=${target_alias+set}
753     ac_env_target_alias_value=$target_alias
754     ac_cv_env_target_alias_set=${target_alias+set}
755     ac_cv_env_target_alias_value=$target_alias
756     ac_env_CC_set=${CC+set}
757     ac_env_CC_value=$CC
758     ac_cv_env_CC_set=${CC+set}
759     ac_cv_env_CC_value=$CC
760     ac_env_CFLAGS_set=${CFLAGS+set}
761     ac_env_CFLAGS_value=$CFLAGS
762     ac_cv_env_CFLAGS_set=${CFLAGS+set}
763     ac_cv_env_CFLAGS_value=$CFLAGS
764     ac_env_LDFLAGS_set=${LDFLAGS+set}
765     ac_env_LDFLAGS_value=$LDFLAGS
766     ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767     ac_cv_env_LDFLAGS_value=$LDFLAGS
768     ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769     ac_env_CPPFLAGS_value=$CPPFLAGS
770     ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771     ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772     ac_env_CXX_set=${CXX+set}
773     ac_env_CXX_value=$CXX
774     ac_cv_env_CXX_set=${CXX+set}
775     ac_cv_env_CXX_value=$CXX
776     ac_env_CXXFLAGS_set=${CXXFLAGS+set}
777     ac_env_CXXFLAGS_value=$CXXFLAGS
778     ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
779     ac_cv_env_CXXFLAGS_value=$CXXFLAGS
780     ac_env_F90_set=${F90+set}
781     ac_env_F90_value=$F90
782     ac_cv_env_F90_set=${F90+set}
783     ac_cv_env_F90_value=$F90
784     ac_env_F90FLAGS_set=${F90FLAGS+set}
785     ac_env_F90FLAGS_value=$F90FLAGS
786     ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787     ac_cv_env_F90FLAGS_value=$F90FLAGS
788     ac_env_CPP_set=${CPP+set}
789     ac_env_CPP_value=$CPP
790     ac_cv_env_CPP_set=${CPP+set}
791     ac_cv_env_CPP_value=$CPP
792    
793     #
794     # Report the --help message.
795     #
796     if test "$ac_init_help" = "long"; then
797     # Omit some internal or obsolete options to make the list less imposing.
798     # This message is too long to be a string in the A/UX 3.1 sh.
799     cat <<_ACEOF
800 gezelter 1499 \`configure' configures OOPSE 2.0 to adapt to many kinds of systems.
801 gezelter 1490
802     Usage: $0 [OPTION]... [VAR=VALUE]...
803    
804     To assign environment variables (e.g., CC, CFLAGS...), specify them as
805     VAR=VALUE. See below for descriptions of some of the useful variables.
806    
807     Defaults for the options are specified in brackets.
808    
809     Configuration:
810     -h, --help display this help and exit
811     --help=short display options specific to this package
812     --help=recursive display the short help of all the included packages
813     -V, --version display version information and exit
814     -q, --quiet, --silent do not print \`checking...' messages
815     --cache-file=FILE cache test results in FILE [disabled]
816     -C, --config-cache alias for \`--cache-file=config.cache'
817     -n, --no-create do not create output files
818     --srcdir=DIR find the sources in DIR [configure dir or \`..']
819    
820     _ACEOF
821    
822     cat <<_ACEOF
823     Installation directories:
824     --prefix=PREFIX install architecture-independent files in PREFIX
825     [$ac_default_prefix]
826     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
827     [PREFIX]
828    
829     By default, \`make install' will install all the files in
830     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
831     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
832     for instance \`--prefix=\$HOME'.
833    
834     For better control, use the options below.
835    
836     Fine tuning of the installation directories:
837     --bindir=DIR user executables [EPREFIX/bin]
838     --sbindir=DIR system admin executables [EPREFIX/sbin]
839     --libexecdir=DIR program executables [EPREFIX/libexec]
840     --datadir=DIR read-only architecture-independent data [PREFIX/share]
841     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
842     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
843     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
844     --libdir=DIR object code libraries [EPREFIX/lib]
845     --includedir=DIR C header files [PREFIX/include]
846     --oldincludedir=DIR C header files for non-gcc [/usr/include]
847     --infodir=DIR info documentation [PREFIX/info]
848     --mandir=DIR man documentation [PREFIX/man]
849     _ACEOF
850    
851     cat <<\_ACEOF
852    
853     System types:
854     --build=BUILD configure for building on BUILD [guessed]
855     --host=HOST cross-compile to build programs to run on HOST [BUILD]
856     _ACEOF
857     fi
858    
859     if test -n "$ac_init_help"; then
860     case $ac_init_help in
861 gezelter 1499 short | recursive ) echo "Configuration of OOPSE 2.0:";;
862 gezelter 1490 esac
863     cat <<\_ACEOF
864    
865     Optional Features:
866     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868     --enable-debug Compile OOPSE in debug mode
869 gezelter 1540 --enable-doxygen enable documentation generation with doxygen (auto)
870     --enable-dot use 'dot' to generate graphs in doxygen (auto)
871     --enable-html-docs enable HTML generation with doxygen (yes)
872     --enable-latex-docs enable LaTeX documentation generation with doxygen (no)
873 gezelter 1490 --enable-oopse-home=DIR define oopse home dir PREFIX/oopse
874    
875     Optional Packages:
876     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878     --with-mpi=<prefix> compile with MPI installed in <prefix> [default=no]
879     --with-sprng=<prefix> compile with SPRNG installed in <prefix>
880     [default=/usr/local]
881     --with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
882    
883     Some influential environment variables:
884     CC C compiler command
885     CFLAGS C compiler flags
886     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887     nonstandard directory <lib dir>
888     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889     headers in a nonstandard directory <include dir>
890     CXX C++ compiler command
891     CXXFLAGS C++ compiler flags
892     F90 Fortran 90 compiler command
893     F90FLAGS Fortran 90 compiler flags
894     CPP C preprocessor
895    
896     Use these variables to override the choices made by `configure' or to help
897     it to find libraries and programs with nonstandard names/locations.
898    
899     Report bugs to <gezelter@nd.edu>.
900     _ACEOF
901     fi
902    
903     if test "$ac_init_help" = "recursive"; then
904     # If there are subdirs, report their specific --help.
905     ac_popdir=`pwd`
906     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907     test -d $ac_dir || continue
908     ac_builddir=.
909    
910     if test "$ac_dir" != .; then
911     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912     # A "../" for each directory in $ac_dir_suffix.
913     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914     else
915     ac_dir_suffix= ac_top_builddir=
916     fi
917    
918     case $srcdir in
919     .) # No --srcdir option. We are building in place.
920     ac_srcdir=.
921     if test -z "$ac_top_builddir"; then
922     ac_top_srcdir=.
923     else
924     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925     fi ;;
926     [\\/]* | ?:[\\/]* ) # Absolute path.
927     ac_srcdir=$srcdir$ac_dir_suffix;
928     ac_top_srcdir=$srcdir ;;
929     *) # Relative path.
930     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931     ac_top_srcdir=$ac_top_builddir$srcdir ;;
932     esac
933    
934     # Do not use `cd foo && pwd` to compute absolute paths, because
935     # the directories may not exist.
936     case `pwd` in
937     .) ac_abs_builddir="$ac_dir";;
938     *)
939     case "$ac_dir" in
940     .) ac_abs_builddir=`pwd`;;
941     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942     *) ac_abs_builddir=`pwd`/"$ac_dir";;
943     esac;;
944     esac
945     case $ac_abs_builddir in
946     .) ac_abs_top_builddir=${ac_top_builddir}.;;
947     *)
948     case ${ac_top_builddir}. in
949     .) ac_abs_top_builddir=$ac_abs_builddir;;
950     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952     esac;;
953     esac
954     case $ac_abs_builddir in
955     .) ac_abs_srcdir=$ac_srcdir;;
956     *)
957     case $ac_srcdir in
958     .) ac_abs_srcdir=$ac_abs_builddir;;
959     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961     esac;;
962     esac
963     case $ac_abs_builddir in
964     .) ac_abs_top_srcdir=$ac_top_srcdir;;
965     *)
966     case $ac_top_srcdir in
967     .) ac_abs_top_srcdir=$ac_abs_builddir;;
968     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970     esac;;
971     esac
972    
973     cd $ac_dir
974     # Check for guested configure; otherwise get Cygnus style configure.
975     if test -f $ac_srcdir/configure.gnu; then
976     echo
977     $SHELL $ac_srcdir/configure.gnu --help=recursive
978     elif test -f $ac_srcdir/configure; then
979     echo
980     $SHELL $ac_srcdir/configure --help=recursive
981     elif test -f $ac_srcdir/configure.ac ||
982     test -f $ac_srcdir/configure.in; then
983     echo
984     $ac_configure --help
985     else
986     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987     fi
988     cd $ac_popdir
989     done
990     fi
991    
992     test -n "$ac_init_help" && exit 0
993     if $ac_init_version; then
994     cat <<\_ACEOF
995 gezelter 1499 OOPSE configure 2.0
996 gezelter 1490 generated by GNU Autoconf 2.59
997    
998     Copyright (C) 2003 Free Software Foundation, Inc.
999     This configure script is free software; the Free Software Foundation
1000     gives unlimited permission to copy, distribute and modify it.
1001     _ACEOF
1002     exit 0
1003     fi
1004     exec 5>config.log
1005     cat >&5 <<_ACEOF
1006     This file contains any messages produced by compilers while
1007     running configure, to aid debugging if configure makes a mistake.
1008    
1009 gezelter 1499 It was created by OOPSE $as_me 2.0, which was
1010 gezelter 1490 generated by GNU Autoconf 2.59. Invocation command line was
1011    
1012     $ $0 $@
1013    
1014     _ACEOF
1015     {
1016     cat <<_ASUNAME
1017     ## --------- ##
1018     ## Platform. ##
1019     ## --------- ##
1020    
1021     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026    
1027     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029    
1030     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1031     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1032     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1034     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1035     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1036     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037    
1038     _ASUNAME
1039    
1040     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041     for as_dir in $PATH
1042     do
1043     IFS=$as_save_IFS
1044     test -z "$as_dir" && as_dir=.
1045     echo "PATH: $as_dir"
1046     done
1047    
1048     } >&5
1049    
1050     cat >&5 <<_ACEOF
1051    
1052    
1053     ## ----------- ##
1054     ## Core tests. ##
1055     ## ----------- ##
1056    
1057     _ACEOF
1058    
1059    
1060     # Keep a trace of the command line.
1061     # Strip out --no-create and --no-recursion so they do not pile up.
1062     # Strip out --silent because we don't want to record it for future runs.
1063     # Also quote any args containing shell meta-characters.
1064     # Make two passes to allow for proper duplicate-argument suppression.
1065     ac_configure_args=
1066     ac_configure_args0=
1067     ac_configure_args1=
1068     ac_sep=
1069     ac_must_keep_next=false
1070     for ac_pass in 1 2
1071     do
1072     for ac_arg
1073     do
1074     case $ac_arg in
1075     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077     | -silent | --silent | --silen | --sile | --sil)
1078     continue ;;
1079     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081     esac
1082     case $ac_pass in
1083     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084     2)
1085     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086     if test $ac_must_keep_next = true; then
1087     ac_must_keep_next=false # Got value, back to normal.
1088     else
1089     case $ac_arg in
1090     *=* | --config-cache | -C | -disable-* | --disable-* \
1091     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093     | -with-* | --with-* | -without-* | --without-* | --x)
1094     case "$ac_configure_args0 " in
1095     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096     esac
1097     ;;
1098     -* ) ac_must_keep_next=true ;;
1099     esac
1100     fi
1101     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102     # Get rid of the leading space.
1103     ac_sep=" "
1104     ;;
1105     esac
1106     done
1107     done
1108     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110    
1111     # When interrupted or exit'd, cleanup temporary files, and complete
1112     # config.log. We remove comments because anyway the quotes in there
1113     # would cause problems or look ugly.
1114     # WARNING: Be sure not to use single quotes in there, as some shells,
1115     # such as our DU 5.0 friend, will then `close' the trap.
1116     trap 'exit_status=$?
1117     # Save into config.log some information that might help in debugging.
1118     {
1119     echo
1120    
1121     cat <<\_ASBOX
1122     ## ---------------- ##
1123     ## Cache variables. ##
1124     ## ---------------- ##
1125     _ASBOX
1126     echo
1127     # The following way of writing the cache mishandles newlines in values,
1128     {
1129     (set) 2>&1 |
1130     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131     *ac_space=\ *)
1132     sed -n \
1133     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135     ;;
1136     *)
1137     sed -n \
1138     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139     ;;
1140     esac;
1141     }
1142     echo
1143    
1144     cat <<\_ASBOX
1145     ## ----------------- ##
1146     ## Output variables. ##
1147     ## ----------------- ##
1148     _ASBOX
1149     echo
1150     for ac_var in $ac_subst_vars
1151     do
1152     eval ac_val=$`echo $ac_var`
1153     echo "$ac_var='"'"'$ac_val'"'"'"
1154     done | sort
1155     echo
1156    
1157     if test -n "$ac_subst_files"; then
1158     cat <<\_ASBOX
1159     ## ------------- ##
1160     ## Output files. ##
1161     ## ------------- ##
1162     _ASBOX
1163     echo
1164     for ac_var in $ac_subst_files
1165     do
1166     eval ac_val=$`echo $ac_var`
1167     echo "$ac_var='"'"'$ac_val'"'"'"
1168     done | sort
1169     echo
1170     fi
1171    
1172     if test -s confdefs.h; then
1173     cat <<\_ASBOX
1174     ## ----------- ##
1175     ## confdefs.h. ##
1176     ## ----------- ##
1177     _ASBOX
1178     echo
1179     sed "/^$/d" confdefs.h | sort
1180     echo
1181     fi
1182     test "$ac_signal" != 0 &&
1183     echo "$as_me: caught signal $ac_signal"
1184     echo "$as_me: exit $exit_status"
1185     } >&5
1186     rm -f core *.core &&
1187     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188     exit $exit_status
1189     ' 0
1190     for ac_signal in 1 2 13 15; do
1191     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192     done
1193     ac_signal=0
1194    
1195     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1196     rm -rf conftest* confdefs.h
1197     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198     echo >confdefs.h
1199    
1200     # Predefined preprocessor variables.
1201    
1202     cat >>confdefs.h <<_ACEOF
1203     #define PACKAGE_NAME "$PACKAGE_NAME"
1204     _ACEOF
1205    
1206    
1207     cat >>confdefs.h <<_ACEOF
1208     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209     _ACEOF
1210    
1211    
1212     cat >>confdefs.h <<_ACEOF
1213     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214     _ACEOF
1215    
1216    
1217     cat >>confdefs.h <<_ACEOF
1218     #define PACKAGE_STRING "$PACKAGE_STRING"
1219     _ACEOF
1220    
1221    
1222     cat >>confdefs.h <<_ACEOF
1223     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224     _ACEOF
1225    
1226    
1227     # Let the site file select an alternate cache file if it wants to.
1228     # Prefer explicitly selected file to automatically selected ones.
1229     if test -z "$CONFIG_SITE"; then
1230     if test "x$prefix" != xNONE; then
1231     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232     else
1233     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234     fi
1235     fi
1236     for ac_site_file in $CONFIG_SITE; do
1237     if test -r "$ac_site_file"; then
1238     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239     echo "$as_me: loading site script $ac_site_file" >&6;}
1240     sed 's/^/| /' "$ac_site_file" >&5
1241     . "$ac_site_file"
1242     fi
1243     done
1244    
1245     if test -r "$cache_file"; then
1246     # Some versions of bash will fail to source /dev/null (special
1247     # files actually), so we avoid doing that.
1248     if test -f "$cache_file"; then
1249     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250     echo "$as_me: loading cache $cache_file" >&6;}
1251     case $cache_file in
1252     [\\/]* | ?:[\\/]* ) . $cache_file;;
1253     *) . ./$cache_file;;
1254     esac
1255     fi
1256     else
1257     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258     echo "$as_me: creating cache $cache_file" >&6;}
1259     >$cache_file
1260     fi
1261    
1262     # Check that the precious variables saved in the cache have kept the same
1263     # value.
1264     ac_cache_corrupted=false
1265     for ac_var in `(set) 2>&1 |
1266     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268     eval ac_new_set=\$ac_env_${ac_var}_set
1269     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270     eval ac_new_val="\$ac_env_${ac_var}_value"
1271     case $ac_old_set,$ac_new_set in
1272     set,)
1273     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275     ac_cache_corrupted=: ;;
1276     ,set)
1277     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279     ac_cache_corrupted=: ;;
1280     ,);;
1281     *)
1282     if test "x$ac_old_val" != "x$ac_new_val"; then
1283     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1286     echo "$as_me: former value: $ac_old_val" >&2;}
1287     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1288     echo "$as_me: current value: $ac_new_val" >&2;}
1289     ac_cache_corrupted=:
1290     fi;;
1291     esac
1292     # Pass precious variables to config.status.
1293     if test "$ac_new_set" = set; then
1294     case $ac_new_val in
1295     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297     *) ac_arg=$ac_var=$ac_new_val ;;
1298     esac
1299     case " $ac_configure_args " in
1300     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1301     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302     esac
1303     fi
1304     done
1305     if $ac_cache_corrupted; then
1306     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310     { (exit 1); exit 1; }; }
1311     fi
1312    
1313     ac_ext=c
1314     ac_cpp='$CPP $CPPFLAGS'
1315     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318    
1319    
1320    
1321    
1322    
1323    
1324    
1325    
1326    
1327    
1328    
1329    
1330    
1331    
1332    
1333    
1334    
1335    
1336    
1337    
1338    
1339    
1340    
1341    
1342    
1343    
1344    
1345     ac_aux_dir=
1346     for ac_dir in ac-tools $srcdir/ac-tools; do
1347     if test -f $ac_dir/install-sh; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/install-sh -c"
1350     break
1351     elif test -f $ac_dir/install.sh; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/install.sh -c"
1354     break
1355     elif test -f $ac_dir/shtool; then
1356     ac_aux_dir=$ac_dir
1357     ac_install_sh="$ac_aux_dir/shtool install -c"
1358     break
1359     fi
1360     done
1361     if test -z "$ac_aux_dir"; then
1362     { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
1363     echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
1364     { (exit 1); exit 1; }; }
1365     fi
1366     ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1367     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1368     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369    
1370    
1371     # This file is part of Autoconf. -*- Autoconf -*-
1372     # Programming languages support.
1373     # Copyright 2000, 2001
1374     # Free Software Foundation, Inc.
1375     #
1376     # This program is free software; you can redistribute it and/or modify
1377     # it under the terms of the GNU General Public License as published by
1378     # the Free Software Foundation; either version 2, or (at your option)
1379     # any later version.
1380     #
1381     # This program is distributed in the hope that it will be useful,
1382     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1383     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1384     # GNU General Public License for more details.
1385     #
1386     # You should have received a copy of the GNU General Public License
1387     # along with this program; if not, write to the Free Software
1388     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1389     # 02111-1307, USA.
1390     #
1391     # As a special exception, the Free Software Foundation gives unlimited
1392     # permission to copy, distribute and modify the configure scripts that
1393     # are the output of Autoconf. You need not follow the terms of the GNU
1394     # General Public License when using or distributing such scripts, even
1395     # though portions of the text of Autoconf appear in them. The GNU
1396     # General Public License (GPL) does govern all other use of the material
1397     # that constitutes the Autoconf program.
1398     #
1399     # Certain portions of the Autoconf source text are designed to be copied
1400     # (in certain cases, depending on the input) into the output of
1401     # Autoconf. We call these the "data" portions. The rest of the Autoconf
1402     # source text consists of comments plus executable code that decides which
1403     # of the data portions to output in any given case. We call these
1404     # comments and executable code the "non-data" portions. Autoconf never
1405     # copies any of the non-data portions into its output.
1406     #
1407     # This special exception to the GPL applies to versions of Autoconf
1408     # released by the Free Software Foundation. When you make and
1409     # distribute a modified version of Autoconf, you may extend this special
1410     # exception to the GPL to apply to your modified version as well, *unless*
1411     # your modified version has the potential to copy into its output some
1412     # of the text that was the non-data portion of the version that you started
1413     # with. (In other words, unless your change moves or copies text from
1414     # the non-data portions to the data portions.) If your modification has
1415     # such potential, you must delete any notice of this special exception
1416     # to the GPL from your modified version.
1417     #
1418     # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1419     # many others).
1420    
1421    
1422     # Table of Contents:
1423     #
1424     # 1. Language selection
1425     # and routines to produce programs in a given language.
1426     # a. Fortran 77 (to be moved from aclang.m4)
1427     # b. Fortran 90
1428     # c. Fortran 95
1429     #
1430     # 2. Producing programs in a given language.
1431     # a. Fortran 77 (to be moved from aclang.m4)
1432     # b. Fortran 90
1433     # c. Fortran 95
1434     #
1435     # 3. Looking for a compiler
1436     # And possibly the associated preprocessor.
1437     # a. Fortran 77 (to be moved from aclang.m4)
1438     # b. Fortran 90
1439     # c. Fortran 95
1440     #
1441     # 4. Compilers' characteristics.
1442     # a. Fortran 77 (to be moved from aclang.m4)
1443     # b. Fortran 90
1444     # c. Fortran 95
1445    
1446     # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1447     # ---------------------------------------------------------------------------
1448     #
1449     # Processing the elements of a list is tedious in shell programming,
1450     # as lists tend to be implemented as space delimited strings.
1451     #
1452     # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1453     # if ELEMENT is a member of LIST, otherwise it executes
1454     # ACTION-IF-NOT-FOUND.
1455     # _AC_LIST_MEMBER_IF
1456    
1457    
1458    
1459     # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1460     # -------------------------------------------------
1461     #
1462     # Specifying options to the compiler (whether it be the C, C++ or
1463     # Fortran 77 compiler) that are meant for the linker is compiler
1464     # dependent. This macro lets you give options to the compiler that
1465     # are meant for the linker in a portable, compiler-independent way.
1466     #
1467     # This macro take two arguments, a list of linker options that the
1468     # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1469     # a shell variable (SHELL-VARIABLE). The list of linker options are
1470     # appended to the shell variable in a compiler-dependent way.
1471     #
1472     # For example, if the selected language is C, then this:
1473     #
1474     # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1475     #
1476     # will expand into this if the selected C compiler is gcc:
1477     #
1478     # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1479     #
1480     # otherwise, it will expand into this:
1481     #
1482     # foo_LDFLAGS"-R /usr/local/lib/foo"
1483     #
1484     # You are encouraged to add support for compilers that this macro
1485     # doesn't currently support.
1486     # FIXME: Get rid of this macro.
1487     # _AC_LINKER_OPTION
1488    
1489    
1490    
1491     ## ----------------------- ##
1492     ## 1. Language selection. ##
1493     ## ----------------------- ##
1494    
1495     # ----------------------------- #
1496     # 1b. The Fortran 90 language. #
1497     # ----------------------------- #
1498    
1499     # AC_LANG(Fortran 90)
1500     # -------------------
1501    
1502    
1503    
1504     # _AC_LANG_ABBREV(Fortran 90)
1505     # ---------------------------
1506    
1507    
1508    
1509     # ----------------------------- #
1510     # 1c. The Fortran 95 language. #
1511     # ----------------------------- #
1512    
1513     # AC_LANG(Fortran 95)
1514     # -------------------
1515    
1516    
1517    
1518     # _AC_LANG_ABBREV(Fortran 95)
1519     # ---------------------------
1520    
1521    
1522    
1523     ## ---------------------- ##
1524     ## 2.Producing programs. ##
1525     ## ---------------------- ##
1526    
1527     # ------------------------ #
1528     # 2b. Fortran 90 sources. #
1529     # ------------------------ #
1530    
1531     # AC_LANG_SOURCE(Fortran 90)(BODY)
1532     # --------------------------------
1533    
1534    
1535    
1536     # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1537     # -----------------------------------------------
1538    
1539    
1540     # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1541     # --------------------------------------------
1542    
1543    
1544    
1545     # ------------------------ #
1546     # 2c. Fortran 95 sources. #
1547     # ------------------------ #
1548    
1549     # AC_LANG_SOURCE(Fortran 95)(BODY)
1550     # --------------------------------
1551    
1552    
1553     # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1554     # -----------------------------------------------
1555    
1556    
1557     # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1558     # --------------------------------------------
1559    
1560    
1561    
1562     ## -------------------------------------------- ##
1563     ## 3. Looking for Compilers and Preprocessors. ##
1564     ## -------------------------------------------- ##
1565    
1566     # ----------------------------- #
1567     # 3b. The Fortran 90 compiler. #
1568     # ----------------------------- #
1569    
1570    
1571     # AC_LANG_PREPROC(Fortran 90)
1572     # ---------------------------
1573     # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1574    
1575    
1576    
1577     # AC_LANG_COMPILER(Fortran 90)
1578     # ----------------------------
1579     # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1580     # AC_REQUIRE'able.
1581    
1582    
1583    
1584     # AC_PROG_F90([COMPILERS...])
1585     # ---------------------------
1586     # COMPILERS is a space separated list of Fortran 90 compilers to search
1587     # for.
1588     #
1589     # Compilers are ordered by
1590     # 1. F90, F95
1591     # 2. Good/tested native compilers, bad/untested native compilers
1592     #
1593     # pgf90 is the Portland Group F90 compilers.
1594     # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1595     # lf95 is the Lahey-Fujitsu compiler.
1596     # epcf90 is the "Edinburgh Portable Compiler" F90.
1597     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1598     # AC_PROG_F90
1599    
1600    
1601     # ----------------------------- #
1602     # 3c. The Fortran 95 compiler. #
1603     # ----------------------------- #
1604    
1605    
1606     # AC_LANG_PREPROC(Fortran 95)
1607     # ---------------------------
1608     # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1609    
1610    
1611    
1612     # AC_LANG_COMPILER(Fortran 95)
1613     # ----------------------------
1614     # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1615     # AC_REQUIRE'able.
1616    
1617    
1618    
1619     # AC_PROG_F95([COMPILERS...])
1620     # ---------------------------
1621     # COMPILERS is a space separated list of Fortran 95 compilers to search
1622     # for.
1623     #
1624     # Compilers are ordered by
1625     # 1. Good/tested native compilers, bad/untested native compilers
1626     #
1627     # xlf95 is the IBM (AIX) F95 compiler.
1628     # lf95 is the Lahey-Fujitsu compiler.
1629     # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1630     # AC_PROG_F95
1631    
1632    
1633     ## ------------------------------- ##
1634     ## 4. Compilers' characteristics. ##
1635     ## ------------------------------- ##
1636    
1637    
1638     # ---------------------------------------- #
1639     # 4b. Fortan 90 compiler characteristics. #
1640     # ---------------------------------------- #
1641    
1642    
1643     # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1644     # -------------------------------------------------
1645     # Link a trivial Fortran program, compiling with a verbose output FLAG
1646     # (which default value, $ac_cv_prog_f90_v, is computed by
1647     # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1648     # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1649     # so that any link flags that are echoed by the compiler appear as
1650     # space-separated items.
1651     # _AC_PROG_F90_V_OUTPUT
1652    
1653    
1654     # _AC_PROG_F90_V
1655     # --------------
1656     #
1657     # Determine the flag that causes the Fortran 90 compiler to print
1658     # information of library and object files (normally -v)
1659     # Needed for AC_F90_LIBRARY_FLAGS
1660     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1661     # _AC_PROG_F90_V
1662    
1663    
1664     # AC_F90_LIBRARY_LDFLAGS
1665     # ----------------------
1666     #
1667     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1668     # intrinsic and run-time libraries that are required to successfully
1669     # link a Fortran 90 program or shared library. The output variable
1670     # F90LIBS is set to these flags.
1671     #
1672     # This macro is intended to be used in those situations when it is
1673     # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1674     # program or shared library.
1675     #
1676     # For example, if object files from a C++ and Fortran 90 compiler must
1677     # be linked together, then the C++ compiler/linker must be used for
1678     # linking (since special C++-ish things need to happen at link time
1679     # like calling global constructors, instantiating templates, enabling
1680     # exception support, etc.).
1681     #
1682     # However, the Fortran 90 intrinsic and run-time libraries must be
1683     # linked in as well, but the C++ compiler/linker doesn't know how to
1684     # add these Fortran 90 libraries. Hence, the macro
1685     # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1686     # libraries.
1687     #
1688     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1689     # AC_F90_LIBRARY_LDFLAGS
1690    
1691    
1692     # _AC_F90_NAME_MANGLING
1693     # ---------------------
1694     # Test for the name mangling scheme used by the Fortran 90 compiler.
1695     #
1696     # Sets ac_cv_f90_mangling. The value contains three fields, separated
1697     # by commas:
1698     #
1699     # lower case / upper case:
1700     # case translation of the Fortan 90 symbols
1701     # underscore / no underscore:
1702     # whether the compiler appends "_" to symbol names
1703     # extra underscore / no extra underscore:
1704     # whether the compiler appends an extra "_" to symbol names already
1705     # containing at least one underscore
1706     #
1707     # _AC_F90_NAME_MANGLING
1708    
1709     # The replacement is empty.
1710    
1711    
1712    
1713     # AC_F90_WRAPPERS
1714     # ---------------
1715     # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1716     # properly mangle the names of C identifiers, and C identifiers with
1717     # underscores, respectively, so that they match the name mangling
1718     # scheme used by the Fortran 90 compiler.
1719     # AC_F90_WRAPPERS
1720    
1721    
1722     # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1723     # ------------------------------------
1724     # For a Fortran subroutine of given NAME, define a shell variable
1725     # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1726     # argument is not supplied, it defaults to NAME.
1727     # AC_F90_FUNC
1728    
1729    
1730     # ---------------------------------------- #
1731     # 4c. Fortan 95 compiler characteristics. #
1732     # ---------------------------------------- #
1733    
1734    
1735     # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1736     # -------------------------------------------------
1737     # Link a trivial Fortran program, compiling with a verbose output FLAG
1738     # (which default value, $ac_cv_prog_f95_v, is computed by
1739     # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1740     # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1741     # so that any link flags that are echoed by the compiler appear as
1742     # space-separated items.
1743     # _AC_PROG_F95_V_OUTPUT
1744    
1745    
1746     # _AC_PROG_F95_V
1747     # --------------
1748     #
1749     # Determine the flag that causes the Fortran 95 compiler to print
1750     # information of library and object files (normally -v)
1751     # Needed for AC_F95_LIBRARY_FLAGS
1752     # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1753     # _AC_PROG_F95_V
1754    
1755    
1756     # AC_F95_LIBRARY_LDFLAGS
1757     # ----------------------
1758     #
1759     # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1760     # intrinsic and run-time libraries that are required to successfully
1761     # link a Fortran 95 program or shared library. The output variable
1762     # F95LIBS is set to these flags.
1763     #
1764     # This macro is intended to be used in those situations when it is
1765     # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1766     # program or shared library.
1767     #
1768     # For example, if object files from a C++ and Fortran 95 compiler must
1769     # be linked together, then the C++ compiler/linker must be used for
1770     # linking (since special C++-ish things need to happen at link time
1771     # like calling global constructors, instantiating templates, enabling
1772     # exception support, etc.).
1773     #
1774     # However, the Fortran 95 intrinsic and run-time libraries must be
1775     # linked in as well, but the C++ compiler/linker doesn't know how to
1776     # add these Fortran 95 libraries. Hence, the macro
1777     # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1778     # libraries.
1779     #
1780     # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1781     # AC_F95_LIBRARY_LDFLAGS
1782    
1783    
1784     # _AC_F95_NAME_MANGLING
1785     # ---------------------
1786     # Test for the name mangling scheme used by the Fortran 95 compiler.
1787     #
1788     # Sets ac_cv_f95_mangling. The value contains three fields, separated
1789     # by commas:
1790     #
1791     # lower case / upper case:
1792     # case translation of the Fortan 95 symbols
1793     # underscore / no underscore:
1794     # whether the compiler appends "_" to symbol names
1795     # extra underscore / no extra underscore:
1796     # whether the compiler appends an extra "_" to symbol names already
1797     # containing at least one underscore
1798     #
1799     # _AC_F95_NAME_MANGLING
1800    
1801     # The replacement is empty.
1802    
1803    
1804    
1805     # AC_F95_WRAPPERS
1806     # ---------------
1807     # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1808     # properly mangle the names of C identifiers, and C identifiers with
1809     # underscores, respectively, so that they match the name mangling
1810     # scheme used by the Fortran 95 compiler.
1811     # AC_F95_WRAPPERS
1812    
1813    
1814     # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1815     # ------------------------------------
1816     # For a Fortran subroutine of given NAME, define a shell variable
1817     # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1818     # argument is not supplied, it defaults to NAME.
1819     # AC_F95_FUNC
1820    
1821 gezelter 1535 # AC_F90_MODULE_NAMES
1822     # -------------------
1823     #
1824     # Figure out how the Fortran 90 compiler constructs module file names
1825     #
1826     # AC_F90_MODULE_NAMES
1827 gezelter 1490
1828    
1829    
1830    
1831    
1832    
1833    
1834    
1835    
1836    
1837    
1838    
1839    
1840    
1841    
1842    
1843    
1844    
1845    
1846    
1847    
1848    
1849    
1850    
1851    
1852    
1853    
1854    
1855    
1856    
1857    
1858    
1859    
1860    
1861    
1862    
1863    
1864    
1865    
1866    
1867    
1868    
1869    
1870    
1871    
1872    
1873    
1874    
1875    
1876    
1877    
1878    
1879    
1880    
1881 gezelter 1535
1882    
1883 gezelter 1540
1884    
1885    
1886 gezelter 1490 # set program name
1887     PROGNAME="oopse"
1888    
1889    
1890     # there are two ways to do debugging. One with the --enable-debug flag
1891     # and one using the DEBUG environment variable
1892    
1893     debug=0
1894     # Check whether --enable-debug or --disable-debug was given.
1895     if test "${enable_debug+set}" = set; then
1896     enableval="$enable_debug"
1897     debug=1
1898     fi;
1899     if test "${DEBUG}"; then
1900    
1901     cat >>confdefs.h <<\_ACEOF
1902     #define debug 1
1903     _ACEOF
1904    
1905     msg="$msg, debug mode"
1906     fi
1907    
1908    
1909     # who am i
1910     # Make sure we can run config.sub.
1911     $ac_config_sub sun4 >/dev/null 2>&1 ||
1912     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1913     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1914     { (exit 1); exit 1; }; }
1915    
1916     echo "$as_me:$LINENO: checking build system type" >&5
1917     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1918     if test "${ac_cv_build+set}" = set; then
1919     echo $ECHO_N "(cached) $ECHO_C" >&6
1920     else
1921     ac_cv_build_alias=$build_alias
1922     test -z "$ac_cv_build_alias" &&
1923     ac_cv_build_alias=`$ac_config_guess`
1924     test -z "$ac_cv_build_alias" &&
1925     { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1926     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1927     { (exit 1); exit 1; }; }
1928     ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1929     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1930     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1931     { (exit 1); exit 1; }; }
1932    
1933     fi
1934     echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1935     echo "${ECHO_T}$ac_cv_build" >&6
1936     build=$ac_cv_build
1937     build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1938     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1939     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1940    
1941    
1942     echo "$as_me:$LINENO: checking host system type" >&5
1943     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1944     if test "${ac_cv_host+set}" = set; then
1945     echo $ECHO_N "(cached) $ECHO_C" >&6
1946     else
1947     ac_cv_host_alias=$host_alias
1948     test -z "$ac_cv_host_alias" &&
1949     ac_cv_host_alias=$ac_cv_build_alias
1950     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1951     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1952     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1953     { (exit 1); exit 1; }; }
1954    
1955     fi
1956     echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1957     echo "${ECHO_T}$ac_cv_host" >&6
1958     host=$ac_cv_host
1959     host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1960     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1961     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1962    
1963    
1964    
1965 gezelter 1509
1966    
1967 gezelter 1490 ac_ext=c
1968     ac_cpp='$CPP $CPPFLAGS'
1969     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972     if test -n "$ac_tool_prefix"; then
1973     for ac_prog in icc xlc gcc cc
1974     do
1975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977     echo "$as_me:$LINENO: checking for $ac_word" >&5
1978     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979     if test "${ac_cv_prog_CC+set}" = set; then
1980     echo $ECHO_N "(cached) $ECHO_C" >&6
1981     else
1982     if test -n "$CC"; then
1983     ac_cv_prog_CC="$CC" # Let the user override the test.
1984     else
1985     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986     for as_dir in $PATH
1987     do
1988     IFS=$as_save_IFS
1989     test -z "$as_dir" && as_dir=.
1990     for ac_exec_ext in '' $ac_executable_extensions; do
1991     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995     fi
1996     done
1997     done
1998    
1999     fi
2000     fi
2001     CC=$ac_cv_prog_CC
2002     if test -n "$CC"; then
2003     echo "$as_me:$LINENO: result: $CC" >&5
2004     echo "${ECHO_T}$CC" >&6
2005     else
2006     echo "$as_me:$LINENO: result: no" >&5
2007     echo "${ECHO_T}no" >&6
2008     fi
2009    
2010     test -n "$CC" && break
2011     done
2012     fi
2013     if test -z "$CC"; then
2014     ac_ct_CC=$CC
2015     for ac_prog in icc xlc gcc cc
2016     do
2017     # Extract the first word of "$ac_prog", so it can be a program name with args.
2018     set dummy $ac_prog; ac_word=$2
2019     echo "$as_me:$LINENO: checking for $ac_word" >&5
2020     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022     echo $ECHO_N "(cached) $ECHO_C" >&6
2023     else
2024     if test -n "$ac_ct_CC"; then
2025     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026     else
2027     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028     for as_dir in $PATH
2029     do
2030     IFS=$as_save_IFS
2031     test -z "$as_dir" && as_dir=.
2032     for ac_exec_ext in '' $ac_executable_extensions; do
2033     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034     ac_cv_prog_ac_ct_CC="$ac_prog"
2035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036     break 2
2037     fi
2038     done
2039     done
2040    
2041     fi
2042     fi
2043     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044     if test -n "$ac_ct_CC"; then
2045     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046     echo "${ECHO_T}$ac_ct_CC" >&6
2047     else
2048     echo "$as_me:$LINENO: result: no" >&5
2049     echo "${ECHO_T}no" >&6
2050     fi
2051    
2052     test -n "$ac_ct_CC" && break
2053     done
2054    
2055     CC=$ac_ct_CC
2056     fi
2057    
2058    
2059     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2060     See \`config.log' for more details." >&5
2061     echo "$as_me: error: no acceptable C compiler found in \$PATH
2062     See \`config.log' for more details." >&2;}
2063     { (exit 1); exit 1; }; }
2064    
2065     # Provide some information about the compiler.
2066     echo "$as_me:$LINENO:" \
2067     "checking for C compiler version" >&5
2068     ac_compiler=`set X $ac_compile; echo $2`
2069     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2070     (eval $ac_compiler --version </dev/null >&5) 2>&5
2071     ac_status=$?
2072     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073     (exit $ac_status); }
2074     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2075     (eval $ac_compiler -v </dev/null >&5) 2>&5
2076     ac_status=$?
2077     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078     (exit $ac_status); }
2079     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2080     (eval $ac_compiler -V </dev/null >&5) 2>&5
2081     ac_status=$?
2082     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083     (exit $ac_status); }
2084    
2085     cat >conftest.$ac_ext <<_ACEOF
2086     /* confdefs.h. */
2087     _ACEOF
2088     cat confdefs.h >>conftest.$ac_ext
2089     cat >>conftest.$ac_ext <<_ACEOF
2090     /* end confdefs.h. */
2091    
2092     int
2093     main ()
2094     {
2095    
2096     ;
2097     return 0;
2098     }
2099     _ACEOF
2100     ac_clean_files_save=$ac_clean_files
2101     ac_clean_files="$ac_clean_files a.out a.exe b.out"
2102     # Try to create an executable without -o first, disregard a.out.
2103     # It will help us diagnose broken compilers, and finding out an intuition
2104     # of exeext.
2105     echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2106     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2107     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2108     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2109     (eval $ac_link_default) 2>&5
2110     ac_status=$?
2111     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112     (exit $ac_status); }; then
2113     # Find the output, starting from the most likely. This scheme is
2114     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2115     # resort.
2116    
2117     # Be careful to initialize this variable, since it used to be cached.
2118     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2119     ac_cv_exeext=
2120     # b.out is created by i960 compilers.
2121     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2122     do
2123     test -f "$ac_file" || continue
2124     case $ac_file in
2125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2126     ;;
2127     conftest.$ac_ext )
2128     # This is the source file.
2129     ;;
2130     [ab].out )
2131     # We found the default executable, but exeext='' is most
2132     # certainly right.
2133     break;;
2134     *.* )
2135     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136     # FIXME: I believe we export ac_cv_exeext for Libtool,
2137     # but it would be cool to find out if it's true. Does anybody
2138     # maintain Libtool? --akim.
2139     export ac_cv_exeext
2140     break;;
2141     * )
2142     break;;
2143     esac
2144     done
2145     else
2146     echo "$as_me: failed program was:" >&5
2147     sed 's/^/| /' conftest.$ac_ext >&5
2148    
2149     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2150     See \`config.log' for more details." >&5
2151     echo "$as_me: error: C compiler cannot create executables
2152     See \`config.log' for more details." >&2;}
2153     { (exit 77); exit 77; }; }
2154     fi
2155    
2156     ac_exeext=$ac_cv_exeext
2157     echo "$as_me:$LINENO: result: $ac_file" >&5
2158     echo "${ECHO_T}$ac_file" >&6
2159    
2160     # Check the compiler produces executables we can run. If not, either
2161     # the compiler is broken, or we cross compile.
2162     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2163     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2164     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2165     # If not cross compiling, check that we can run a simple program.
2166     if test "$cross_compiling" != yes; then
2167     if { ac_try='./$ac_file'
2168     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169     (eval $ac_try) 2>&5
2170     ac_status=$?
2171     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172     (exit $ac_status); }; }; then
2173     cross_compiling=no
2174     else
2175     if test "$cross_compiling" = maybe; then
2176     cross_compiling=yes
2177     else
2178     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2179     If you meant to cross compile, use \`--host'.
2180     See \`config.log' for more details." >&5
2181     echo "$as_me: error: cannot run C compiled programs.
2182     If you meant to cross compile, use \`--host'.
2183     See \`config.log' for more details." >&2;}
2184     { (exit 1); exit 1; }; }
2185     fi
2186     fi
2187     fi
2188     echo "$as_me:$LINENO: result: yes" >&5
2189     echo "${ECHO_T}yes" >&6
2190    
2191     rm -f a.out a.exe conftest$ac_cv_exeext b.out
2192     ac_clean_files=$ac_clean_files_save
2193     # Check the compiler produces executables we can run. If not, either
2194     # the compiler is broken, or we cross compile.
2195     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2196     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2197     echo "$as_me:$LINENO: result: $cross_compiling" >&5
2198     echo "${ECHO_T}$cross_compiling" >&6
2199    
2200     echo "$as_me:$LINENO: checking for suffix of executables" >&5
2201     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2202     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2203     (eval $ac_link) 2>&5
2204     ac_status=$?
2205     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206     (exit $ac_status); }; then
2207     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2208     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2209     # work properly (i.e., refer to `conftest.exe'), while it won't with
2210     # `rm'.
2211     for ac_file in conftest.exe conftest conftest.*; do
2212     test -f "$ac_file" || continue
2213     case $ac_file in
2214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2215     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216     export ac_cv_exeext
2217     break;;
2218     * ) break;;
2219     esac
2220     done
2221     else
2222     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2223     See \`config.log' for more details." >&5
2224     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2225     See \`config.log' for more details." >&2;}
2226     { (exit 1); exit 1; }; }
2227     fi
2228    
2229     rm -f conftest$ac_cv_exeext
2230     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2231     echo "${ECHO_T}$ac_cv_exeext" >&6
2232    
2233     rm -f conftest.$ac_ext
2234     EXEEXT=$ac_cv_exeext
2235     ac_exeext=$EXEEXT
2236     echo "$as_me:$LINENO: checking for suffix of object files" >&5
2237     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2238     if test "${ac_cv_objext+set}" = set; then
2239     echo $ECHO_N "(cached) $ECHO_C" >&6
2240     else
2241     cat >conftest.$ac_ext <<_ACEOF
2242     /* confdefs.h. */
2243     _ACEOF
2244     cat confdefs.h >>conftest.$ac_ext
2245     cat >>conftest.$ac_ext <<_ACEOF
2246     /* end confdefs.h. */
2247    
2248     int
2249     main ()
2250     {
2251    
2252     ;
2253     return 0;
2254     }
2255     _ACEOF
2256     rm -f conftest.o conftest.obj
2257     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258     (eval $ac_compile) 2>&5
2259     ac_status=$?
2260     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261     (exit $ac_status); }; then
2262     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2263     case $ac_file in
2264     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2265     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2266     break;;
2267     esac
2268     done
2269     else
2270     echo "$as_me: failed program was:" >&5
2271     sed 's/^/| /' conftest.$ac_ext >&5
2272    
2273     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2274     See \`config.log' for more details." >&5
2275     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2276     See \`config.log' for more details." >&2;}
2277     { (exit 1); exit 1; }; }
2278     fi
2279    
2280     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2281     fi
2282     echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2283     echo "${ECHO_T}$ac_cv_objext" >&6
2284     OBJEXT=$ac_cv_objext
2285     ac_objext=$OBJEXT
2286     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2287     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2288     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2289     echo $ECHO_N "(cached) $ECHO_C" >&6
2290     else
2291     cat >conftest.$ac_ext <<_ACEOF
2292     /* confdefs.h. */
2293     _ACEOF
2294     cat confdefs.h >>conftest.$ac_ext
2295     cat >>conftest.$ac_ext <<_ACEOF
2296     /* end confdefs.h. */
2297    
2298     int
2299     main ()
2300     {
2301     #ifndef __GNUC__
2302     choke me
2303     #endif
2304    
2305     ;
2306     return 0;
2307     }
2308     _ACEOF
2309     rm -f conftest.$ac_objext
2310     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311     (eval $ac_compile) 2>conftest.er1
2312     ac_status=$?
2313     grep -v '^ *+' conftest.er1 >conftest.err
2314     rm -f conftest.er1
2315     cat conftest.err >&5
2316     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317     (exit $ac_status); } &&
2318     { ac_try='test -z "$ac_c_werror_flag"
2319     || test ! -s conftest.err'
2320     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321     (eval $ac_try) 2>&5
2322     ac_status=$?
2323     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324     (exit $ac_status); }; } &&
2325     { ac_try='test -s conftest.$ac_objext'
2326     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327     (eval $ac_try) 2>&5
2328     ac_status=$?
2329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330     (exit $ac_status); }; }; then
2331     ac_compiler_gnu=yes
2332     else
2333     echo "$as_me: failed program was:" >&5
2334     sed 's/^/| /' conftest.$ac_ext >&5
2335    
2336     ac_compiler_gnu=no
2337     fi
2338     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2340    
2341     fi
2342     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2343     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2344     GCC=`test $ac_compiler_gnu = yes && echo yes`
2345     ac_test_CFLAGS=${CFLAGS+set}
2346     ac_save_CFLAGS=$CFLAGS
2347     CFLAGS="-g"
2348     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2349     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2350     if test "${ac_cv_prog_cc_g+set}" = set; then
2351     echo $ECHO_N "(cached) $ECHO_C" >&6
2352     else
2353     cat >conftest.$ac_ext <<_ACEOF
2354     /* confdefs.h. */
2355     _ACEOF
2356     cat confdefs.h >>conftest.$ac_ext
2357     cat >>conftest.$ac_ext <<_ACEOF
2358     /* end confdefs.h. */
2359    
2360     int
2361     main ()
2362     {
2363    
2364     ;
2365     return 0;
2366     }
2367     _ACEOF
2368     rm -f conftest.$ac_objext
2369     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370     (eval $ac_compile) 2>conftest.er1
2371     ac_status=$?
2372     grep -v '^ *+' conftest.er1 >conftest.err
2373     rm -f conftest.er1
2374     cat conftest.err >&5
2375     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376     (exit $ac_status); } &&
2377     { ac_try='test -z "$ac_c_werror_flag"
2378     || test ! -s conftest.err'
2379     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380     (eval $ac_try) 2>&5
2381     ac_status=$?
2382     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383     (exit $ac_status); }; } &&
2384     { ac_try='test -s conftest.$ac_objext'
2385     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386     (eval $ac_try) 2>&5
2387     ac_status=$?
2388     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389     (exit $ac_status); }; }; then
2390     ac_cv_prog_cc_g=yes
2391     else
2392     echo "$as_me: failed program was:" >&5
2393     sed 's/^/| /' conftest.$ac_ext >&5
2394    
2395     ac_cv_prog_cc_g=no
2396     fi
2397     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398     fi
2399     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2400     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2401     if test "$ac_test_CFLAGS" = set; then
2402     CFLAGS=$ac_save_CFLAGS
2403     elif test $ac_cv_prog_cc_g = yes; then
2404     if test "$GCC" = yes; then
2405     CFLAGS="-g -O2"
2406     else
2407     CFLAGS="-g"
2408     fi
2409     else
2410     if test "$GCC" = yes; then
2411     CFLAGS="-O2"
2412     else
2413     CFLAGS=
2414     fi
2415     fi
2416     echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2417     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2418     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2419     echo $ECHO_N "(cached) $ECHO_C" >&6
2420     else
2421     ac_cv_prog_cc_stdc=no
2422     ac_save_CC=$CC
2423     cat >conftest.$ac_ext <<_ACEOF
2424     /* confdefs.h. */
2425     _ACEOF
2426     cat confdefs.h >>conftest.$ac_ext
2427     cat >>conftest.$ac_ext <<_ACEOF
2428     /* end confdefs.h. */
2429     #include <stdarg.h>
2430     #include <stdio.h>
2431     #include <sys/types.h>
2432     #include <sys/stat.h>
2433     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2434     struct buf { int x; };
2435     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2436     static char *e (p, i)
2437     char **p;
2438     int i;
2439     {
2440     return p[i];
2441     }
2442     static char *f (char * (*g) (char **, int), char **p, ...)
2443     {
2444     char *s;
2445     va_list v;
2446     va_start (v,p);
2447     s = g (p, va_arg (v,int));
2448     va_end (v);
2449     return s;
2450     }
2451    
2452     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2453     function prototypes and stuff, but not '\xHH' hex character constants.
2454     These don't provoke an error unfortunately, instead are silently treated
2455     as 'x'. The following induces an error, until -std1 is added to get
2456     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2457     array size at least. It's necessary to write '\x00'==0 to get something
2458     that's true only with -std1. */
2459     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2460    
2461     int test (int i, double x);
2462     struct s1 {int (*f) (int a);};
2463     struct s2 {int (*f) (double a);};
2464     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2465     int argc;
2466     char **argv;
2467     int
2468     main ()
2469     {
2470     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2471     ;
2472     return 0;
2473     }
2474     _ACEOF
2475     # Don't try gcc -ansi; that turns off useful extensions and
2476     # breaks some systems' header files.
2477     # AIX -qlanglvl=ansi
2478     # Ultrix and OSF/1 -std1
2479     # HP-UX 10.20 and later -Ae
2480     # HP-UX older versions -Aa -D_HPUX_SOURCE
2481     # SVR4 -Xc -D__EXTENSIONS__
2482     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2483     do
2484     CC="$ac_save_CC $ac_arg"
2485     rm -f conftest.$ac_objext
2486     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487     (eval $ac_compile) 2>conftest.er1
2488     ac_status=$?
2489     grep -v '^ *+' conftest.er1 >conftest.err
2490     rm -f conftest.er1
2491     cat conftest.err >&5
2492     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493     (exit $ac_status); } &&
2494     { ac_try='test -z "$ac_c_werror_flag"
2495     || test ! -s conftest.err'
2496     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497     (eval $ac_try) 2>&5
2498     ac_status=$?
2499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500     (exit $ac_status); }; } &&
2501     { ac_try='test -s conftest.$ac_objext'
2502     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503     (eval $ac_try) 2>&5
2504     ac_status=$?
2505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506     (exit $ac_status); }; }; then
2507     ac_cv_prog_cc_stdc=$ac_arg
2508     break
2509     else
2510     echo "$as_me: failed program was:" >&5
2511     sed 's/^/| /' conftest.$ac_ext >&5
2512    
2513     fi
2514     rm -f conftest.err conftest.$ac_objext
2515     done
2516     rm -f conftest.$ac_ext conftest.$ac_objext
2517     CC=$ac_save_CC
2518    
2519     fi
2520    
2521     case "x$ac_cv_prog_cc_stdc" in
2522     x|xno)
2523     echo "$as_me:$LINENO: result: none needed" >&5
2524     echo "${ECHO_T}none needed" >&6 ;;
2525     *)
2526     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2527     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2528     CC="$CC $ac_cv_prog_cc_stdc" ;;
2529     esac
2530    
2531     # Some people use a C++ compiler to compile C. Since we use `exit',
2532     # in C++ we need to declare it. In case someone uses the same compiler
2533     # for both compiling C and C++ we need to have the C++ compiler decide
2534     # the declaration of exit, since it's the most demanding environment.
2535     cat >conftest.$ac_ext <<_ACEOF
2536     #ifndef __cplusplus
2537     choke me
2538     #endif
2539     _ACEOF
2540     rm -f conftest.$ac_objext
2541     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542     (eval $ac_compile) 2>conftest.er1
2543     ac_status=$?
2544     grep -v '^ *+' conftest.er1 >conftest.err
2545     rm -f conftest.er1
2546     cat conftest.err >&5
2547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548     (exit $ac_status); } &&
2549     { ac_try='test -z "$ac_c_werror_flag"
2550     || test ! -s conftest.err'
2551     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552     (eval $ac_try) 2>&5
2553     ac_status=$?
2554     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555     (exit $ac_status); }; } &&
2556     { ac_try='test -s conftest.$ac_objext'
2557     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558     (eval $ac_try) 2>&5
2559     ac_status=$?
2560     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561     (exit $ac_status); }; }; then
2562     for ac_declaration in \
2563     '' \
2564     'extern "C" void std::exit (int) throw (); using std::exit;' \
2565     'extern "C" void std::exit (int); using std::exit;' \
2566     'extern "C" void exit (int) throw ();' \
2567     'extern "C" void exit (int);' \
2568     'void exit (int);'
2569     do
2570     cat >conftest.$ac_ext <<_ACEOF
2571     /* confdefs.h. */
2572     _ACEOF
2573     cat confdefs.h >>conftest.$ac_ext
2574     cat >>conftest.$ac_ext <<_ACEOF
2575     /* end confdefs.h. */
2576     $ac_declaration
2577     #include <stdlib.h>
2578     int
2579     main ()
2580     {
2581     exit (42);
2582     ;
2583     return 0;
2584     }
2585     _ACEOF
2586     rm -f conftest.$ac_objext
2587     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588     (eval $ac_compile) 2>conftest.er1
2589     ac_status=$?
2590     grep -v '^ *+' conftest.er1 >conftest.err
2591     rm -f conftest.er1
2592     cat conftest.err >&5
2593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594     (exit $ac_status); } &&
2595     { ac_try='test -z "$ac_c_werror_flag"
2596     || test ! -s conftest.err'
2597     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598     (eval $ac_try) 2>&5
2599     ac_status=$?
2600     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601     (exit $ac_status); }; } &&
2602     { ac_try='test -s conftest.$ac_objext'
2603     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604     (eval $ac_try) 2>&5
2605     ac_status=$?
2606     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607     (exit $ac_status); }; }; then
2608     :
2609     else
2610     echo "$as_me: failed program was:" >&5
2611     sed 's/^/| /' conftest.$ac_ext >&5
2612    
2613     continue
2614     fi
2615     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2616     cat >conftest.$ac_ext <<_ACEOF
2617     /* confdefs.h. */
2618     _ACEOF
2619     cat confdefs.h >>conftest.$ac_ext
2620     cat >>conftest.$ac_ext <<_ACEOF
2621     /* end confdefs.h. */
2622     $ac_declaration
2623     int
2624     main ()
2625     {
2626     exit (42);
2627     ;
2628     return 0;
2629     }
2630     _ACEOF
2631     rm -f conftest.$ac_objext
2632     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633     (eval $ac_compile) 2>conftest.er1
2634     ac_status=$?
2635     grep -v '^ *+' conftest.er1 >conftest.err
2636     rm -f conftest.er1
2637     cat conftest.err >&5
2638     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639     (exit $ac_status); } &&
2640     { ac_try='test -z "$ac_c_werror_flag"
2641     || test ! -s conftest.err'
2642     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643     (eval $ac_try) 2>&5
2644     ac_status=$?
2645     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646     (exit $ac_status); }; } &&
2647     { ac_try='test -s conftest.$ac_objext'
2648     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649     (eval $ac_try) 2>&5
2650     ac_status=$?
2651     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652     (exit $ac_status); }; }; then
2653     break
2654     else
2655     echo "$as_me: failed program was:" >&5
2656     sed 's/^/| /' conftest.$ac_ext >&5
2657    
2658     fi
2659     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660     done
2661     rm -f conftest*
2662     if test -n "$ac_declaration"; then
2663     echo '#ifdef __cplusplus' >>confdefs.h
2664     echo $ac_declaration >>confdefs.h
2665     echo '#endif' >>confdefs.h
2666     fi
2667    
2668     else
2669     echo "$as_me: failed program was:" >&5
2670     sed 's/^/| /' conftest.$ac_ext >&5
2671    
2672     fi
2673     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674     ac_ext=c
2675     ac_cpp='$CPP $CPPFLAGS'
2676     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679    
2680    
2681     ac_ext=cc
2682     ac_cpp='$CXXCPP $CPPFLAGS'
2683     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2686     if test -n "$ac_tool_prefix"; then
2687     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2688     do
2689     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2690     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2691     echo "$as_me:$LINENO: checking for $ac_word" >&5
2692     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2693     if test "${ac_cv_prog_CXX+set}" = set; then
2694     echo $ECHO_N "(cached) $ECHO_C" >&6
2695     else
2696     if test -n "$CXX"; then
2697     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2698     else
2699     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700     for as_dir in $PATH
2701     do
2702     IFS=$as_save_IFS
2703     test -z "$as_dir" && as_dir=.
2704     for ac_exec_ext in '' $ac_executable_extensions; do
2705     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709     fi
2710     done
2711     done
2712    
2713     fi
2714     fi
2715     CXX=$ac_cv_prog_CXX
2716     if test -n "$CXX"; then
2717     echo "$as_me:$LINENO: result: $CXX" >&5
2718     echo "${ECHO_T}$CXX" >&6
2719     else
2720     echo "$as_me:$LINENO: result: no" >&5
2721     echo "${ECHO_T}no" >&6
2722     fi
2723    
2724     test -n "$CXX" && break
2725     done
2726     fi
2727     if test -z "$CXX"; then
2728     ac_ct_CXX=$CXX
2729     for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2730     do
2731     # Extract the first word of "$ac_prog", so it can be a program name with args.
2732     set dummy $ac_prog; ac_word=$2
2733     echo "$as_me:$LINENO: checking for $ac_word" >&5
2734     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2735     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2736     echo $ECHO_N "(cached) $ECHO_C" >&6
2737     else
2738     if test -n "$ac_ct_CXX"; then
2739     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2740     else
2741     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742     for as_dir in $PATH
2743     do
2744     IFS=$as_save_IFS
2745     test -z "$as_dir" && as_dir=.
2746     for ac_exec_ext in '' $ac_executable_extensions; do
2747     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748     ac_cv_prog_ac_ct_CXX="$ac_prog"
2749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750     break 2
2751     fi
2752     done
2753     done
2754    
2755     fi
2756     fi
2757     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2758     if test -n "$ac_ct_CXX"; then
2759     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2760     echo "${ECHO_T}$ac_ct_CXX" >&6
2761     else
2762     echo "$as_me:$LINENO: result: no" >&5
2763     echo "${ECHO_T}no" >&6
2764     fi
2765    
2766     test -n "$ac_ct_CXX" && break
2767     done
2768     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2769    
2770     CXX=$ac_ct_CXX
2771     fi
2772    
2773    
2774     # Provide some information about the compiler.
2775     echo "$as_me:$LINENO:" \
2776     "checking for C++ compiler version" >&5
2777     ac_compiler=`set X $ac_compile; echo $2`
2778     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2779     (eval $ac_compiler --version </dev/null >&5) 2>&5
2780     ac_status=$?
2781     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782     (exit $ac_status); }
2783     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2784     (eval $ac_compiler -v </dev/null >&5) 2>&5
2785     ac_status=$?
2786     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787     (exit $ac_status); }
2788     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2789     (eval $ac_compiler -V </dev/null >&5) 2>&5
2790     ac_status=$?
2791     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792     (exit $ac_status); }
2793    
2794     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2795     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2796     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2797     echo $ECHO_N "(cached) $ECHO_C" >&6
2798     else
2799     cat >conftest.$ac_ext <<_ACEOF
2800     /* confdefs.h. */
2801     _ACEOF
2802     cat confdefs.h >>conftest.$ac_ext
2803     cat >>conftest.$ac_ext <<_ACEOF
2804     /* end confdefs.h. */
2805    
2806     int
2807     main ()
2808     {
2809     #ifndef __GNUC__
2810     choke me
2811     #endif
2812    
2813     ;
2814     return 0;
2815     }
2816     _ACEOF
2817     rm -f conftest.$ac_objext
2818     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819     (eval $ac_compile) 2>conftest.er1
2820     ac_status=$?
2821     grep -v '^ *+' conftest.er1 >conftest.err
2822     rm -f conftest.er1
2823     cat conftest.err >&5
2824     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825     (exit $ac_status); } &&
2826     { ac_try='test -z "$ac_cxx_werror_flag"
2827     || test ! -s conftest.err'
2828     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829     (eval $ac_try) 2>&5
2830     ac_status=$?
2831     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832     (exit $ac_status); }; } &&
2833     { ac_try='test -s conftest.$ac_objext'
2834     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835     (eval $ac_try) 2>&5
2836     ac_status=$?
2837     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838     (exit $ac_status); }; }; then
2839     ac_compiler_gnu=yes
2840     else
2841     echo "$as_me: failed program was:" >&5
2842     sed 's/^/| /' conftest.$ac_ext >&5
2843    
2844     ac_compiler_gnu=no
2845     fi
2846     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2848    
2849     fi
2850     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2851     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2852     GXX=`test $ac_compiler_gnu = yes && echo yes`
2853     ac_test_CXXFLAGS=${CXXFLAGS+set}
2854     ac_save_CXXFLAGS=$CXXFLAGS
2855     CXXFLAGS="-g"
2856     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2857     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2858     if test "${ac_cv_prog_cxx_g+set}" = set; then
2859     echo $ECHO_N "(cached) $ECHO_C" >&6
2860     else
2861     cat >conftest.$ac_ext <<_ACEOF
2862     /* confdefs.h. */
2863     _ACEOF
2864     cat confdefs.h >>conftest.$ac_ext
2865     cat >>conftest.$ac_ext <<_ACEOF
2866     /* end confdefs.h. */
2867    
2868     int
2869     main ()
2870     {
2871    
2872     ;
2873     return 0;
2874     }
2875     _ACEOF
2876     rm -f conftest.$ac_objext
2877     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878     (eval $ac_compile) 2>conftest.er1
2879     ac_status=$?
2880     grep -v '^ *+' conftest.er1 >conftest.err
2881     rm -f conftest.er1
2882     cat conftest.err >&5
2883     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884     (exit $ac_status); } &&
2885     { ac_try='test -z "$ac_cxx_werror_flag"
2886     || test ! -s conftest.err'
2887     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888     (eval $ac_try) 2>&5
2889     ac_status=$?
2890     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891     (exit $ac_status); }; } &&
2892     { ac_try='test -s conftest.$ac_objext'
2893     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894     (eval $ac_try) 2>&5
2895     ac_status=$?
2896     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897     (exit $ac_status); }; }; then
2898     ac_cv_prog_cxx_g=yes
2899     else
2900     echo "$as_me: failed program was:" >&5
2901     sed 's/^/| /' conftest.$ac_ext >&5
2902    
2903     ac_cv_prog_cxx_g=no
2904     fi
2905     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906     fi
2907     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2908     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2909     if test "$ac_test_CXXFLAGS" = set; then
2910     CXXFLAGS=$ac_save_CXXFLAGS
2911     elif test $ac_cv_prog_cxx_g = yes; then
2912     if test "$GXX" = yes; then
2913     CXXFLAGS="-g -O2"
2914     else
2915     CXXFLAGS="-g"
2916     fi
2917     else
2918     if test "$GXX" = yes; then
2919     CXXFLAGS="-O2"
2920     else
2921     CXXFLAGS=
2922     fi
2923     fi
2924     for ac_declaration in \
2925     '' \
2926     'extern "C" void std::exit (int) throw (); using std::exit;' \
2927     'extern "C" void std::exit (int); using std::exit;' \
2928     'extern "C" void exit (int) throw ();' \
2929     'extern "C" void exit (int);' \
2930     'void exit (int);'
2931     do
2932     cat >conftest.$ac_ext <<_ACEOF
2933     /* confdefs.h. */
2934     _ACEOF
2935     cat confdefs.h >>conftest.$ac_ext
2936     cat >>conftest.$ac_ext <<_ACEOF
2937     /* end confdefs.h. */
2938     $ac_declaration
2939     #include <stdlib.h>
2940     int
2941     main ()
2942     {
2943     exit (42);
2944     ;
2945     return 0;
2946     }
2947     _ACEOF
2948     rm -f conftest.$ac_objext
2949     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950     (eval $ac_compile) 2>conftest.er1
2951     ac_status=$?
2952     grep -v '^ *+' conftest.er1 >conftest.err
2953     rm -f conftest.er1
2954     cat conftest.err >&5
2955     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956     (exit $ac_status); } &&
2957     { ac_try='test -z "$ac_cxx_werror_flag"
2958     || test ! -s conftest.err'
2959     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960     (eval $ac_try) 2>&5
2961     ac_status=$?
2962     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963     (exit $ac_status); }; } &&
2964     { ac_try='test -s conftest.$ac_objext'
2965     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966     (eval $ac_try) 2>&5
2967     ac_status=$?
2968     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969     (exit $ac_status); }; }; then
2970     :
2971     else
2972     echo "$as_me: failed program was:" >&5
2973     sed 's/^/| /' conftest.$ac_ext >&5
2974    
2975     continue
2976     fi
2977     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978     cat >conftest.$ac_ext <<_ACEOF
2979     /* confdefs.h. */
2980     _ACEOF
2981     cat confdefs.h >>conftest.$ac_ext
2982     cat >>conftest.$ac_ext <<_ACEOF
2983     /* end confdefs.h. */
2984     $ac_declaration
2985     int
2986     main ()
2987     {
2988     exit (42);
2989     ;
2990     return 0;
2991     }
2992     _ACEOF
2993     rm -f conftest.$ac_objext
2994     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995     (eval $ac_compile) 2>conftest.er1
2996     ac_status=$?
2997     grep -v '^ *+' conftest.er1 >conftest.err
2998     rm -f conftest.er1
2999     cat conftest.err >&5
3000     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001     (exit $ac_status); } &&
3002     { ac_try='test -z "$ac_cxx_werror_flag"
3003     || test ! -s conftest.err'
3004     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005     (eval $ac_try) 2>&5
3006     ac_status=$?
3007     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008     (exit $ac_status); }; } &&
3009     { ac_try='test -s conftest.$ac_objext'
3010     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011     (eval $ac_try) 2>&5
3012     ac_status=$?
3013     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014     (exit $ac_status); }; }; then
3015     break
3016     else
3017     echo "$as_me: failed program was:" >&5
3018     sed 's/^/| /' conftest.$ac_ext >&5
3019    
3020     fi
3021     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3022     done
3023     rm -f conftest*
3024     if test -n "$ac_declaration"; then
3025     echo '#ifdef __cplusplus' >>confdefs.h
3026     echo $ac_declaration >>confdefs.h
3027     echo '#endif' >>confdefs.h
3028     fi
3029    
3030     ac_ext=c
3031     ac_cpp='$CPP $CPPFLAGS'
3032     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035    
3036    
3037     OOPSE_TEMPLATE_FLAGS=""
3038     if test $ac_cv_cxx_compiler_gnu = no; then
3039     echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3040     echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3041     echo 'void f(){}' > conftest.cc
3042     if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3043     echo "$as_me:$LINENO: result: yes" >&5
3044     echo "${ECHO_T}yes" >&6
3045     OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3046     else
3047     echo "$as_me:$LINENO: result: no" >&5
3048     echo "${ECHO_T}no" >&6
3049     fi
3050     rm -f conftest*
3051     echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3052     echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3053     echo 'void f(){}' > conftest.cc
3054     if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3055     echo "$as_me:$LINENO: result: yes" >&5
3056     echo "${ECHO_T}yes" >&6
3057     OOPSE_TEMPLATE_FLAGS="-instances=static"
3058     else
3059     echo "$as_me:$LINENO: result: no" >&5
3060     echo "${ECHO_T}no" >&6
3061     fi
3062     rm -f conftest*
3063     echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3064     echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3065     echo 'void f(){}' > conftest.cc
3066     if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3067     echo "$as_me:$LINENO: result: yes" >&5
3068     echo "${ECHO_T}yes" >&6
3069     OOPSE_TEMPLATE_FLAGS="-pto"
3070     else
3071     echo "$as_me:$LINENO: result: no" >&5
3072     echo "${ECHO_T}no" >&6
3073     fi
3074     rm -f conftest*
3075     echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3076     echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3077     echo 'void f(){}' > conftest.cc
3078     if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3079     echo "$as_me:$LINENO: result: yes" >&5
3080     echo "${ECHO_T}yes" >&6
3081    
3082    
3083     EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3084     else
3085     echo "$as_me:$LINENO: result: no" >&5
3086     echo "${ECHO_T}no" >&6
3087     fi
3088     fi
3089    
3090    
3091    
3092    
3093     ac_ext=f90
3094     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3095     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3097     if test -n "$ac_tool_prefix"; then
3098     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3099     do
3100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3102     echo "$as_me:$LINENO: checking for $ac_word" >&5
3103     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104     if test "${ac_cv_prog_F90+set}" = set; then
3105     echo $ECHO_N "(cached) $ECHO_C" >&6
3106     else
3107     if test -n "$F90"; then
3108     ac_cv_prog_F90="$F90" # Let the user override the test.
3109     else
3110     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111     for as_dir in $PATH
3112     do
3113     IFS=$as_save_IFS
3114     test -z "$as_dir" && as_dir=.
3115     for ac_exec_ext in '' $ac_executable_extensions; do
3116     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117     ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120     fi
3121     done
3122     done
3123    
3124     fi
3125     fi
3126     F90=$ac_cv_prog_F90
3127     if test -n "$F90"; then
3128     echo "$as_me:$LINENO: result: $F90" >&5
3129     echo "${ECHO_T}$F90" >&6
3130     else
3131     echo "$as_me:$LINENO: result: no" >&5
3132     echo "${ECHO_T}no" >&6
3133     fi
3134    
3135     test -n "$F90" && break
3136     done
3137     fi
3138     if test -z "$F90"; then
3139     ac_ct_F90=$F90
3140     for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3141     do
3142     # Extract the first word of "$ac_prog", so it can be a program name with args.
3143     set dummy $ac_prog; ac_word=$2
3144     echo "$as_me:$LINENO: checking for $ac_word" >&5
3145     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146     if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3147     echo $ECHO_N "(cached) $ECHO_C" >&6
3148     else
3149     if test -n "$ac_ct_F90"; then
3150     ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3151     else
3152     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153     for as_dir in $PATH
3154     do
3155     IFS=$as_save_IFS
3156     test -z "$as_dir" && as_dir=.
3157     for ac_exec_ext in '' $ac_executable_extensions; do
3158     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159     ac_cv_prog_ac_ct_F90="$ac_prog"
3160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162     fi
3163     done
3164     done
3165    
3166     fi
3167     fi
3168     ac_ct_F90=$ac_cv_prog_ac_ct_F90
3169     if test -n "$ac_ct_F90"; then
3170     echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3171     echo "${ECHO_T}$ac_ct_F90" >&6
3172     else
3173     echo "$as_me:$LINENO: result: no" >&5
3174     echo "${ECHO_T}no" >&6
3175     fi
3176    
3177     test -n "$ac_ct_F90" && break
3178     done
3179    
3180     F90=$ac_ct_F90
3181     fi
3182    
3183    
3184     # If we don't use `.F90' as extension, the preprocessor is not run on the
3185     # input file.
3186     ac_save_ext=$ac_ext
3187     ac_ext=F90
3188     echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3189     echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3190     if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3191     echo $ECHO_N "(cached) $ECHO_C" >&6
3192     else
3193     cat >conftest.$ac_ext <<_ACEOF
3194    
3195     program main
3196    
3197     #ifndef __GNUC__
3198     choke me
3199     #endif
3200    
3201     end program main
3202    
3203     _ACEOF
3204     rm -f conftest.$ac_objext
3205     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3206     (eval $ac_compile) 2>conftest.er1
3207     ac_status=$?
3208     grep -v '^ *+' conftest.er1 >conftest.err
3209     rm -f conftest.er1
3210     cat conftest.err >&5
3211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212     (exit $ac_status); } &&
3213     { ac_try='test -z "$ac_f90_werror_flag"
3214     || test ! -s conftest.err'
3215     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216     (eval $ac_try) 2>&5
3217     ac_status=$?
3218     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219     (exit $ac_status); }; } &&
3220     { ac_try='test -s conftest.$ac_objext'
3221     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222     (eval $ac_try) 2>&5
3223     ac_status=$?
3224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225     (exit $ac_status); }; }; then
3226     ac_compiler_gnu=yes
3227     else
3228     echo "$as_me: failed program was:" >&5
3229     sed 's/^/| /' conftest.$ac_ext >&5
3230    
3231     ac_compiler_gnu=no
3232     fi
3233     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234     ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3235    
3236     fi
3237     echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3238     echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3239     ac_ext=$ac_save_ext
3240     G95=`test $ac_compiler_gnu = yes && echo yes`
3241     ac_ext=c
3242     ac_cpp='$CPP $CPPFLAGS'
3243     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246    
3247    
3248    
3249    
3250    
3251     # Try to determine native compiler flags that allow us to use F90 suffix
3252     # for preprocessed f90 source.
3253    
3254     if test "$ac_test_PREPFLAG" != "set"; then
3255     PREPFLAG=""
3256     case "${host_cpu}-${host_os}" in
3257    
3258     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3259     PREPFLAG="-fpp1 "
3260     fi;;
3261     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3262     PREPFLAG="-qsuffix=cpp=F90 "
3263     fi;;
3264     *darwin*)
3265     if test "$F90" = f90 -o "$F90" = xlf90; then
3266     PREPFLAG="-qsuffix=cpp=F90 "
3267     fi;;
3268     esac
3269    
3270     if test -z "$PREPFLAG"; then
3271     { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3272     echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3273     PREPFLAG=""
3274     fi
3275    
3276     echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3277     echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3278    
3279    
3280     ac_ext=f90
3281     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3282     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3284    
3285     ac_save_ext=$ac_ext
3286     ac_ext=F90
3287     ac_save_F90FLAGS=$F90FLAGS
3288    
3289     if test "$PREPFLAG"; then
3290     F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3291     fi
3292    
3293     cat >conftest.$ac_ext <<_ACEOF
3294    
3295    
3296     program main
3297    
3298     integer :: i
3299     i = 1
3300    
3301    
3302     end program main
3303    
3304     _ACEOF
3305     rm -f conftest.$ac_objext
3306     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307     (eval $ac_compile) 2>conftest.er1
3308     ac_status=$?
3309     grep -v '^ *+' conftest.er1 >conftest.err
3310     rm -f conftest.er1
3311     cat conftest.err >&5
3312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313     (exit $ac_status); } &&
3314     { ac_try='test -z "$ac_f90_werror_flag"
3315     || test ! -s conftest.err'
3316     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317     (eval $ac_try) 2>&5
3318     ac_status=$?
3319     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320     (exit $ac_status); }; } &&
3321     { ac_try='test -s conftest.$ac_objext'
3322     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323     (eval $ac_try) 2>&5
3324     ac_status=$?
3325     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326     (exit $ac_status); }; }; then
3327     prepflagworks=1
3328     else
3329     echo "$as_me: failed program was:" >&5
3330     sed 's/^/| /' conftest.$ac_ext >&5
3331    
3332     prepflagworks=0
3333     fi
3334     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335    
3336     F90FLAGS=$ac_save_F90FLAGS
3337     ac_ext=$ac_save_ext
3338     ac_ext=c
3339     ac_cpp='$CPP $CPPFLAGS'
3340     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343    
3344    
3345     if test "$prepflagworks" = 1; then
3346     echo "$as_me:$LINENO: result: yes" >&5
3347     echo "${ECHO_T}yes" >&6
3348    
3349     else
3350     echo "$as_me:$LINENO: result: no" >&5
3351     echo "${ECHO_T}no" >&6
3352     { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3353     echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3354     { (exit 1); exit 1; }; }
3355     fi
3356     fi
3357    
3358    
3359    
3360    
3361    
3362     # Try to determine native compiler flags that allow us to use F90 suffix
3363     # for preprocessed f90 source with -D type defines
3364    
3365     if test "$ac_test_PREPDEFFLAG" != "set"; then
3366     PREPDEFFLAG=""
3367     case "${host_cpu}-${host_os}" in
3368    
3369     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3370     PREPDEFFLAG=" "
3371     fi;;
3372     *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3373     PREPDEFFLAG="-WF,"
3374     fi;;
3375     *darwin*)
3376     if test "$F90" = f90 -o "$F90" = xlf90; then
3377     PREPDEFFLAG="-WF,"
3378     fi;;
3379     esac
3380    
3381     if test -z "$PREPDEFFLAG"; then
3382     { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3383     echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3384     PREPDEFFLAG=" "
3385     fi
3386    
3387     echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3388     echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3389    
3390    
3391     ac_ext=f90
3392     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3393     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3395    
3396     ac_save_ext=$ac_ext
3397     ac_ext=F90
3398     ac_save_F90FLAGS=$F90FLAGS
3399    
3400     if test "$PREPDEFFLAG"; then
3401     F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3402     fi
3403    
3404     cat >conftest.$ac_ext <<_ACEOF
3405    
3406    
3407     program main
3408    
3409     integer :: i
3410     #ifdef TEST
3411     i = 1
3412     #else
3413     choke me
3414     #endif
3415    
3416    
3417     end program main
3418    
3419     _ACEOF
3420     rm -f conftest.$ac_objext
3421     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422     (eval $ac_compile) 2>conftest.er1
3423     ac_status=$?
3424     grep -v '^ *+' conftest.er1 >conftest.err
3425     rm -f conftest.er1
3426     cat conftest.err >&5
3427     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428     (exit $ac_status); } &&
3429     { ac_try='test -z "$ac_f90_werror_flag"
3430     || test ! -s conftest.err'
3431     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432     (eval $ac_try) 2>&5
3433     ac_status=$?
3434     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435     (exit $ac_status); }; } &&
3436     { ac_try='test -s conftest.$ac_objext'
3437     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438     (eval $ac_try) 2>&5
3439     ac_status=$?
3440     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441     (exit $ac_status); }; }; then
3442     prepdefflagworks=1
3443     else
3444     echo "$as_me: failed program was:" >&5
3445     sed 's/^/| /' conftest.$ac_ext >&5
3446    
3447     prepdefflagworks=0
3448     fi
3449     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450    
3451     F90FLAGS=$ac_save_F90FLAGS
3452     ac_ext=$ac_save_ext
3453     ac_ext=c
3454     ac_cpp='$CPP $CPPFLAGS'
3455     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458    
3459    
3460    
3461     if test "$prepdefflagworks" = 1; then
3462     echo "$as_me:$LINENO: result: yes" >&5
3463     echo "${ECHO_T}yes" >&6
3464    
3465     else
3466     echo "$as_me:$LINENO: result: no" >&5
3467     echo "${ECHO_T}no" >&6
3468     { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3469     echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3470     { (exit 1); exit 1; }; }
3471     fi
3472     fi
3473    
3474     ac_ext=f90
3475     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3476     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3478    
3479    
3480    
3481     ac_ext=f90
3482     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3483     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3485     echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3486     echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3487     if test "${ac_cv_prog_f90_v+set}" = set; then
3488     echo $ECHO_N "(cached) $ECHO_C" >&6
3489     else
3490    
3491     cat >conftest.$ac_ext <<_ACEOF
3492    
3493     program main
3494    
3495    
3496     end program main
3497    
3498     _ACEOF
3499     rm -f conftest.$ac_objext
3500     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501     (eval $ac_compile) 2>conftest.er1
3502     ac_status=$?
3503     grep -v '^ *+' conftest.er1 >conftest.err
3504     rm -f conftest.er1
3505     cat conftest.err >&5
3506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507     (exit $ac_status); } &&
3508     { ac_try='test -z "$ac_f90_werror_flag"
3509     || test ! -s conftest.err'
3510     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511     (eval $ac_try) 2>&5
3512     ac_status=$?
3513     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514     (exit $ac_status); }; } &&
3515     { ac_try='test -s conftest.$ac_objext'
3516     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517     (eval $ac_try) 2>&5
3518     ac_status=$?
3519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520     (exit $ac_status); }; }; then
3521     ac_cv_prog_f90_v=
3522     # Try some options frequently used verbose output
3523     for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3524     ac_ext=f90
3525     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3526     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3528    
3529     cat >conftest.$ac_ext <<_ACEOF
3530    
3531     program main
3532    
3533    
3534     end program main
3535    
3536     _ACEOF
3537    
3538     # Compile and link our simple test program by passing a flag (argument
3539     # 1 to this macro) to the Fortran 90 compiler in order to get
3540     # "verbose" output that we can then parse for the Fortran 90 linker
3541     # flags.
3542     ac_save_F90FLAGS=$F90FLAGS
3543     F90FLAGS="$F90FLAGS $ac_verb"
3544    
3545 gezelter 1540 (eval echo $as_me:3545: \"$ac_link\") >&5
3546 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3547     echo "$ac_f90_v_output" >&5
3548     F90FLAGS=$ac_save_F90FLAGS
3549    
3550     rm -f conftest.*
3551     ac_ext=f90
3552     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3553     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3555    
3556     # If we are using xlf then replace all the commas with spaces.
3557     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3558     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3559     fi
3560    
3561     # If we are using Cray Fortran then delete quotes.
3562     # Use "\"" instead of '"' for font-lock-mode.
3563     # FIXME: a more general fix for quoted arguments with spaces?
3564     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3565     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3566     fi
3567     # look for -l* and *.a constructs in the output
3568     for ac_arg in $ac_f90_v_output; do
3569     case $ac_arg in
3570     [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3571     ac_cv_prog_f90_v=$ac_verb
3572     break 2 ;;
3573     esac
3574     done
3575     done
3576     if test -z "$ac_cv_prog_f90_v"; then
3577     { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3578     echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3579     fi
3580     else
3581     echo "$as_me: failed program was:" >&5
3582     sed 's/^/| /' conftest.$ac_ext >&5
3583    
3584     { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3585     echo "$as_me: WARNING: compilation failed" >&2;}
3586     fi
3587     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3588    
3589     fi
3590     echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3591     echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3592     echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3593     echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3594     if test "${ac_cv_flibs+set}" = set; then
3595     echo $ECHO_N "(cached) $ECHO_C" >&6
3596     else
3597     if test "x$F90LIBS" != "x"; then
3598     ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3599     else
3600    
3601     ac_ext=f90
3602     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3603     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3605    
3606     cat >conftest.$ac_ext <<_ACEOF
3607    
3608     program main
3609    
3610    
3611     end program main
3612    
3613     _ACEOF
3614    
3615     # Compile and link our simple test program by passing a flag (argument
3616     # 1 to this macro) to the Fortran 90 compiler in order to get
3617     # "verbose" output that we can then parse for the Fortran 90 linker
3618     # flags.
3619     ac_save_F90FLAGS=$F90FLAGS
3620     F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3621    
3622 gezelter 1540 (eval echo $as_me:3622: \"$ac_link\") >&5
3623 gezelter 1490 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3624     echo "$ac_f90_v_output" >&5
3625     F90FLAGS=$ac_save_F90FLAGS
3626    
3627     rm -f conftest.*
3628     ac_ext=f90
3629     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3630     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3632    
3633     # If we are using xlf then replace all the commas with spaces.
3634     if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3635     ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3636     fi
3637    
3638     # If we are using Cray Fortran then delete quotes.
3639     # Use "\"" instead of '"' for font-lock-mode.
3640     # FIXME: a more general fix for quoted arguments with spaces?
3641     if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3642     ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3643     fi
3644    
3645     ac_cv_f90libs=
3646    
3647     # Save positional arguments (if any)
3648     ac_save_positional="$@"
3649    
3650     set X $ac_f90_v_output
3651     while test $# != 1; do
3652     shift
3653     ac_arg=$1
3654     case $ac_arg in
3655     [\\/]*.a | ?:[\\/]*.a)
3656     ac_exists=false
3657     for ac_i in $ac_cv_f90libs; do
3658     if test x"$ac_arg" = x"$ac_i"; then
3659     ac_exists=true
3660     break
3661     fi
3662     done
3663    
3664     if test x"$ac_exists" = xtrue; then
3665     :
3666     else
3667     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3668     fi
3669    
3670     ;;
3671     -bI:*)
3672     ac_exists=false
3673     for ac_i in $ac_cv_f90libs; do
3674     if test x"$ac_arg" = x"$ac_i"; then
3675     ac_exists=true
3676     break
3677     fi
3678     done
3679    
3680     if test x"$ac_exists" = xtrue; then
3681     :
3682     else
3683     if test "$ac_compiler_gnu" = yes; then
3684     for ac_link_opt in $ac_arg; do
3685     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3686     done
3687     else
3688     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3689     fi
3690     fi
3691    
3692     ;;
3693     # Ignore these flags.
3694     -lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*)
3695     ;;
3696     -lkernel32)
3697     test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3698     ;;
3699     -[LRuY])
3700     # These flags, when seen by themselves, take an argument.
3701     # We remove the space between option and argument and re-iterate
3702     # unless we find an empty arg or a new option (starting with -)
3703     case $2 in
3704     "" | -*);;
3705     *)
3706     ac_arg="$ac_arg$2"
3707    
3708     shift; shift
3709     set X $ac_arg "$@"
3710     ;;
3711     esac
3712     ;;
3713     -YP,*)
3714     for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3715     ac_exists=false
3716     for ac_i in $ac_cv_f90libs; do
3717     if test x"$ac_j" = x"$ac_i"; then
3718     ac_exists=true
3719     break
3720     fi
3721     done
3722    
3723     if test x"$ac_exists" = xtrue; then
3724     :
3725     else
3726     ac_arg="$ac_arg $ac_j"
3727     ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3728     fi
3729    
3730     done
3731     ;;
3732     -[lLR]*)
3733     ac_exists=false
3734     for ac_i in $ac_cv_f90libs; do
3735     if test x"$ac_arg" = x"$ac_i"; then
3736     ac_exists=true
3737     break
3738     fi
3739     done
3740    
3741     if test x"$ac_exists" = xtrue; then
3742     :
3743     else
3744     ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3745     fi
3746    
3747     ;;
3748     # Ignore everything else.
3749     esac
3750     done
3751     # restore positional arguments
3752     set X $ac_save_positional; shift
3753    
3754     # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
3755     # then we insist that the "run path" must be an absolute path (i.e. it
3756     # must begin with a "/").
3757     case `(uname -sr) 2>/dev/null` in
3758     "SunOS 5"*)
3759     ac_ld_run_path=`echo $ac_f90_v_output |
3760     sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3761     test "x$ac_ld_run_path" != x &&
3762    
3763     if test "$ac_compiler_gnu" = yes; then
3764     for ac_link_opt in $ac_ld_run_path; do
3765     ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3766     done
3767     else
3768     ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3769     fi
3770     ;;
3771     esac
3772     fi # test "x$F90LIBS" = "x"
3773    
3774     fi
3775     echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3776     echo "${ECHO_T}$ac_cv_flibs" >&6
3777     F90LIBS="$ac_cv_f90libs"
3778    
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    
3785     echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3786     echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3787     if test "${ac_cv_f90_mangling+set}" = set; then
3788     echo $ECHO_N "(cached) $ECHO_C" >&6
3789     else
3790     ac_ext=f90
3791     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3792     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3794     cat >conftest.$ac_ext <<_ACEOF
3795     subroutine foobar()
3796     return
3797     end
3798     subroutine foo_bar()
3799     return
3800     end
3801     _ACEOF
3802     rm -f conftest.$ac_objext
3803     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804     (eval $ac_compile) 2>conftest.er1
3805     ac_status=$?
3806     grep -v '^ *+' conftest.er1 >conftest.err
3807     rm -f conftest.er1
3808     cat conftest.err >&5
3809     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810     (exit $ac_status); } &&
3811     { ac_try='test -z "$ac_f90_werror_flag"
3812     || test ! -s conftest.err'
3813     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814     (eval $ac_try) 2>&5
3815     ac_status=$?
3816     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817     (exit $ac_status); }; } &&
3818     { ac_try='test -s conftest.$ac_objext'
3819     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820     (eval $ac_try) 2>&5
3821     ac_status=$?
3822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823     (exit $ac_status); }; }; then
3824     mv conftest.$ac_objext cf90_test.$ac_objext
3825    
3826     ac_ext=c
3827     ac_cpp='$CPP $CPPFLAGS'
3828     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831    
3832     ac_save_LIBS=$LIBS
3833     LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3834    
3835     ac_success=no
3836     for ac_foobar in foobar FOOBAR; do
3837     for ac_underscore in "" "_"; do
3838     ac_func="$ac_foobar$ac_underscore"
3839     cat >conftest.$ac_ext <<_ACEOF
3840     /* confdefs.h. */
3841     _ACEOF
3842     cat confdefs.h >>conftest.$ac_ext
3843     cat >>conftest.$ac_ext <<_ACEOF
3844     /* end confdefs.h. */
3845    
3846     /* Override any gcc2 internal prototype to avoid an error. */
3847     #ifdef __cplusplus
3848     extern "C"
3849     #endif
3850     /* We use char because int might match the return type of a gcc2
3851     builtin and then its argument prototype would still apply. */
3852     char $ac_func ();
3853     int
3854     main ()
3855     {
3856     $ac_func ();
3857     ;
3858     return 0;
3859     }
3860     _ACEOF
3861     rm -f conftest.$ac_objext conftest$ac_exeext
3862     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3863     (eval $ac_link) 2>conftest.er1
3864     ac_status=$?
3865     grep -v '^ *+' conftest.er1 >conftest.err
3866     rm -f conftest.er1
3867     cat conftest.err >&5
3868     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869     (exit $ac_status); } &&
3870     { ac_try='test -z "$ac_c_werror_flag"
3871     || test ! -s conftest.err'
3872     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873     (eval $ac_try) 2>&5
3874     ac_status=$?
3875     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876     (exit $ac_status); }; } &&
3877     { ac_try='test -s conftest$ac_exeext'
3878     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879     (eval $ac_try) 2>&5
3880     ac_status=$?
3881     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882     (exit $ac_status); }; }; then
3883     ac_success=yes; break 2
3884     else
3885     echo "$as_me: failed program was:" >&5
3886     sed 's/^/| /' conftest.$ac_ext >&5
3887    
3888     fi
3889     rm -f conftest.err conftest.$ac_objext \
3890     conftest$ac_exeext conftest.$ac_ext
3891     done
3892     done
3893    
3894     if test "$ac_success" = "yes"; then
3895     case $ac_foobar in
3896     foobar)
3897     ac_case=lower
3898     ac_foo_bar=foo_bar
3899     ;;
3900     FOOBAR)
3901     ac_case=upper
3902     ac_foo_bar=FOO_BAR
3903     ;;
3904     esac
3905    
3906     ac_success_extra=no
3907     for ac_extra in "" "_"; do
3908     ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3909    
3910     cat >conftest.$ac_ext <<_ACEOF
3911     /* confdefs.h. */
3912     _ACEOF
3913     cat confdefs.h >>conftest.$ac_ext
3914     cat >>conftest.$ac_ext <<_ACEOF
3915     /* end confdefs.h. */
3916    
3917     /* Override any gcc2 internal prototype to avoid an error. */
3918     #ifdef __cplusplus
3919     extern "C"
3920     #endif
3921     /* We use char because int might match the return type of a gcc2
3922     builtin and then its argument prototype would still apply. */
3923     char $ac_func ();
3924     int
3925     main ()
3926     {
3927     $ac_func ();
3928     ;
3929     return 0;
3930     }
3931     _ACEOF
3932     rm -f conftest.$ac_objext conftest$ac_exeext
3933     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934     (eval $ac_link) 2>conftest.er1
3935     ac_status=$?
3936     grep -v '^ *+' conftest.er1 >conftest.err
3937     rm -f conftest.er1
3938     cat conftest.err >&5
3939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940     (exit $ac_status); } &&
3941     { ac_try='test -z "$ac_c_werror_flag"
3942     || test ! -s conftest.err'
3943     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944     (eval $ac_try) 2>&5
3945     ac_status=$?
3946     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947     (exit $ac_status); }; } &&
3948     { ac_try='test -s conftest$ac_exeext'
3949     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950     (eval $ac_try) 2>&5
3951     ac_status=$?
3952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953     (exit $ac_status); }; }; then
3954     ac_success_extra=yes; break
3955     else
3956     echo "$as_me: failed program was:" >&5
3957     sed 's/^/| /' conftest.$ac_ext >&5
3958    
3959     fi
3960     rm -f conftest.err conftest.$ac_objext \
3961     conftest$ac_exeext conftest.$ac_ext
3962     done
3963    
3964     if test "$ac_success_extra" = "yes"; then
3965     ac_cv_f90_mangling="$ac_case case"
3966     if test -z "$ac_underscore"; then
3967     ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3968     else
3969     ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3970    
3971     fi
3972     if test -z "$ac_extra"; then
3973     ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3974     else
3975     ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3976     fi
3977     else
3978     ac_cv_f90_mangling="unknown"
3979     fi
3980     else
3981     ac_cv_f90_mangling="unknown"
3982    
3983     fi
3984    
3985     LIBS=$ac_save_LIBS
3986     ac_ext=f90
3987     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3988     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3990     rm -f cf90_test* conftest*
3991     else
3992     echo "$as_me: failed program was:" >&5
3993     sed 's/^/| /' conftest.$ac_ext >&5
3994    
3995     fi
3996     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3997     ac_ext=f90
3998     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3999     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4001    
4002     fi
4003     echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4004     echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4005    
4006    
4007    
4008     case $ac_cv_f90_mangling in
4009     "lower case, no underscore, no extra underscore")
4010     cat >>confdefs.h <<\_ACEOF
4011     #define F90_FUNC(name,NAME) name
4012     _ACEOF
4013    
4014     cat >>confdefs.h <<\_ACEOF
4015     #define F90_FUNC_(name,NAME) name
4016     _ACEOF
4017     ;;
4018     "lower case, no underscore, extra underscore")
4019     cat >>confdefs.h <<\_ACEOF
4020     #define F90_FUNC(name,NAME) name
4021     _ACEOF
4022    
4023     cat >>confdefs.h <<\_ACEOF
4024     #define F90_FUNC_(name,NAME) name ## _
4025     _ACEOF
4026     ;;
4027     "lower case, underscore, no extra underscore")
4028     cat >>confdefs.h <<\_ACEOF
4029     #define F90_FUNC(name,NAME) name ## _
4030     _ACEOF
4031    
4032     cat >>confdefs.h <<\_ACEOF
4033     #define F90_FUNC_(name,NAME) name ## _
4034     _ACEOF
4035     ;;
4036     "lower case, underscore, extra underscore")
4037     cat >>confdefs.h <<\_ACEOF
4038     #define F90_FUNC(name,NAME) name ## _
4039     _ACEOF
4040    
4041     cat >>confdefs.h <<\_ACEOF
4042     #define F90_FUNC_(name,NAME) name ## __
4043     _ACEOF
4044     ;;
4045     "upper case, no underscore, no extra underscore")
4046     cat >>confdefs.h <<\_ACEOF
4047     #define F90_FUNC(name,NAME) NAME
4048     _ACEOF
4049    
4050     cat >>confdefs.h <<\_ACEOF
4051     #define F90_FUNC_(name,NAME) NAME
4052     _ACEOF
4053     ;;
4054     "upper case, no underscore, extra underscore")
4055     cat >>confdefs.h <<\_ACEOF
4056     #define F90_FUNC(name,NAME) NAME
4057     _ACEOF
4058    
4059     cat >>confdefs.h <<\_ACEOF
4060     #define F90_FUNC_(name,NAME) NAME ## _
4061     _ACEOF
4062     ;;
4063     "upper case, underscore, no extra underscore")
4064     cat >>confdefs.h <<\_ACEOF
4065     #define F90_FUNC(name,NAME) NAME ## _
4066     _ACEOF
4067    
4068     cat >>confdefs.h <<\_ACEOF
4069     #define F90_FUNC_(name,NAME) NAME ## _
4070     _ACEOF
4071     ;;
4072     "upper case, underscore, extra underscore")
4073     cat >>confdefs.h <<\_ACEOF
4074     #define F90_FUNC(name,NAME) NAME ## _
4075     _ACEOF
4076    
4077     cat >>confdefs.h <<\_ACEOF
4078     #define F90_FUNC_(name,NAME) NAME ## __
4079     _ACEOF
4080     ;;
4081     *)
4082     { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4083     echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4084     ;;
4085     esac
4086    
4087    
4088    
4089    
4090    
4091     echo "$as_me:$LINENO: checking for module suffix" >&5
4092     echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4093     rm -f conftest*
4094     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4095     rm -f work*
4096     cat >conftest.f90 <<EOF
4097     module conftest
4098     integer n
4099     parameter (n=1)
4100     end module conftest
4101     EOF
4102     # SGI and absoft compilers generates module name in upper case!
4103     testname="conftest"
4104     modcase="lower"
4105     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4106     MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4107     MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4108     if test -z "$MOD" ; then
4109     MOD=`ls CONFTEST* 2>/dev/null \
4110     | grep -v CONFTEST.f | grep -v CONFTEST.o`
4111     MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4112     if test -n "$MOD" ; then
4113     testname="CONFTEST"
4114     modcase="upper"
4115     fi
4116     fi
4117     if test -z "$MOD" ; then
4118     echo "$as_me:$LINENO: result: unknown" >&5
4119     echo "${ECHO_T}unknown" >&6
4120     # Use mod if we can't figure it out
4121     MOD="mod"
4122     else
4123     echo "$as_me:$LINENO: result: $MOD" >&5
4124     echo "${ECHO_T}$MOD" >&6
4125     fi
4126     if test -s work.pcl ; then
4127     { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4128     echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4129     fi
4130     else
4131     echo "$as_me:$LINENO: result: unknown" >&5
4132     echo "${ECHO_T}unknown" >&6
4133     fi
4134    
4135    
4136    
4137    
4138    
4139     # Check for module include path (some use -I, some (Solaris) use -M, some
4140     # (absoft) use -p).
4141     # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4142     # specified, work.pcl and work.pc are created. However, if you specify
4143     # a file, it must contain a the name of a file ending in .pc . Ugh!
4144     # Use the module made above
4145     echo "$as_me:$LINENO: checking for module directory path flag" >&5
4146     echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4147     rm -f conftest*
4148     # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4149     rm -f work*
4150     cat >conftest.f90 <<EOF
4151     module conftest
4152     integer n
4153     parameter (n=1)
4154     end module conftest
4155     EOF
4156     # SGI and absoft compilers generates module name in upper case!
4157     testname="conftest"
4158     if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4159     mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4160     mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4161     if test -n "$mod" ; then
4162     testname="CONFTEST"
4163     fi
4164     madedir=0
4165     if test ! -d conf ; then mkdir conf ; madedir=1; fi
4166     cp $testname.$MOD conf
4167     rm -f conftest* CONFTEST*
4168     cat >conftest1.f90 <<EOF
4169     program main
4170     use conftest
4171     print *, n
4172     end
4173     EOF
4174     F90_WORK_FILES_ARG=""
4175     F90MODINCSPEC=""
4176     if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4177     MODDIRFLAG="-I"
4178     F90MODINCSPEC="-I<dir>"
4179     echo "$as_me:$LINENO: result: -I" >&5
4180     echo "${ECHO_T}-I" >&6
4181     elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4182     MODDIRFLAG="-M"
4183     F90MODINCSPEC="-M<dir>"
4184     echo "$as_me:$LINENO: result: -M" >&5
4185     echo "${ECHO_T}-M" >&6
4186     elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4187     MODDIRFLAG="-p"
4188     F90MODINCSPEC="-p<dir>"
4189     echo "$as_me:$LINENO: result: -p" >&5
4190     echo "${ECHO_T}-p" >&6
4191     elif test -s work.pc ; then
4192     cp work.pc conf/mpimod.pc
4193     echo "mpimod.pc" > conf/mpimod.pcl
4194     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4195     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4196     MODDIRFLAG='-cl,mpimod.pcl'
4197     echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4198     echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4199     F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4200     F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4201    
4202     else
4203     # The version of the Intel compiler that I have refuses to let
4204     # you put the "work catalog" list anywhere but the current
4205     # directory. For example, you cannot in
4206     :
4207     fi
4208     fi
4209     if test -z "MODDIRFLAG" ; then
4210     echo "$as_me:$LINENO: result: unknown" >&5
4211     echo "${ECHO_T}unknown" >&6
4212     fi
4213    
4214    
4215     rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4216     if test $madedir = 1 ; then rmdir conf ; fi
4217     fi
4218    
4219    
4220 gezelter 1535 echo "$as_me:$LINENO: checking for Fortran 90 module file names" >&5
4221     echo $ECHO_N "checking for Fortran 90 module file names... $ECHO_C" >&6
4222     if test "${ac_cv_f90_module_names+set}" = set; then
4223     echo $ECHO_N "(cached) $ECHO_C" >&6
4224     else
4225     ac_ext=f90
4226     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4227     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4229    
4230     # carry out the test in a new directory, so that we don't miss anything
4231     mkdir conftest
4232     cd conftest
4233     cat >conftest.$ac_ext <<_ACEOF
4234     MODULE Bar
4235     END MODULE Bar
4236     _ACEOF
4237     rm -f conftest.$ac_objext
4238     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239     (eval $ac_compile) 2>conftest.er1
4240     ac_status=$?
4241     grep -v '^ *+' conftest.er1 >conftest.err
4242     rm -f conftest.er1
4243     cat conftest.err >&5
4244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245     (exit $ac_status); } &&
4246     { ac_try='test -z "$ac_f90_werror_flag"
4247     || test ! -s conftest.err'
4248     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249     (eval $ac_try) 2>&5
4250     ac_status=$?
4251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252     (exit $ac_status); }; } &&
4253     { ac_try='test -s conftest.$ac_objext'
4254     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255     (eval $ac_try) 2>&5
4256     ac_status=$?
4257     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258     (exit $ac_status); }; }; then
4259     ac_cv_f90_module_names=
4260     ac_file_list=*
4261     for ac_file in $ac_file_list; do
4262     case $ac_file in
4263     # don't care for original source and object files
4264     conftest.$ac_ext | conftest.$ac_objext | conftest.err )
4265     :
4266     ;;
4267     # look for new files derived from the file name
4268     *conftest*)
4269     ac_pat=`echo $ac_file | sed s/conftest/%FILE%/`
4270     ac_exists=false
4271     for ac_i in $ac_cv_f90_module_names; do
4272     if test x"$ac_pat" = x"$ac_i"; then
4273     ac_exists=true
4274     break
4275     fi
4276     done
4277    
4278     if test x"$ac_exists" = xtrue; then
4279     :
4280     else
4281     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4282     fi
4283    
4284     ;;
4285     # look for new files derived from the module name,
4286     # with different case translation schemes
4287     *Bar*)
4288     ac_pat=`echo $ac_file | sed s/Bar/%Module%/`
4289     ac_exists=false
4290     for ac_i in $ac_cv_f90_module_names; do
4291     if test x"$ac_pat" = x"$ac_i"; then
4292     ac_exists=true
4293     break
4294     fi
4295     done
4296    
4297     if test x"$ac_exists" = xtrue; then
4298     :
4299     else
4300     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4301     fi
4302    
4303     ;;
4304     *bar*)
4305     ac_pat=`echo $ac_file | sed s/bar/%module%/`
4306     ac_exists=false
4307     for ac_i in $ac_cv_f90_module_names; do
4308     if test x"$ac_pat" = x"$ac_i"; then
4309     ac_exists=true
4310     break
4311     fi
4312     done
4313    
4314     if test x"$ac_exists" = xtrue; then
4315     :
4316     else
4317     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4318     fi
4319    
4320     ;;
4321     *BAR*)
4322     ac_pat=`echo $ac_file | sed s/BAR/%MODULE%/`
4323     ac_exists=false
4324     for ac_i in $ac_cv_f90_module_names; do
4325     if test x"$ac_pat" = x"$ac_i"; then
4326     ac_exists=true
4327     break
4328     fi
4329     done
4330    
4331     if test x"$ac_exists" = xtrue; then
4332     :
4333     else
4334     ac_cv_f90_module_names="$ac_cv_f90_module_names $ac_pat"
4335     fi
4336    
4337     ;;
4338     # Other files - we have no idea how they are generated
4339     *)
4340     { echo "$as_me:$LINENO: WARNING: Bogus file found: $ac_file" >&5
4341     echo "$as_me: WARNING: Bogus file found: $ac_file" >&2;}
4342     ;;
4343     esac
4344     done
4345     if test "x$ac_cv_f90_module_names" = "x"; then
4346     { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4347     echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4348     fi
4349    
4350     else
4351     echo "$as_me: failed program was:" >&5
4352     sed 's/^/| /' conftest.$ac_ext >&5
4353    
4354     ac_cv_f90_module_names=
4355     { echo "$as_me:$LINENO: WARNING: Couldn't determine module file names" >&5
4356     echo "$as_me: WARNING: Couldn't determine module file names" >&2;}
4357     fi
4358     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359     cd ..
4360     # cleanup
4361     rm -rf conftest
4362     ac_ext=f90
4363     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4364     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4366    
4367     fi
4368     echo "$as_me:$LINENO: result: $ac_cv_f90_module_names" >&5
4369     echo "${ECHO_T}$ac_cv_f90_module_names" >&6 # AC_CACHE_CHECK
4370    
4371     # We now generate a shell script that will help us to figure out the correct
4372     # module file names, using the value of ac_cv_f90_module_names
4373    
4374     echo "Generating shell script modnam"
4375    
4376     cat > scripts/modnam << EOF
4377     #! /bin/sh
4378     # This script is auto-generated by configure
4379     #
4380     usage="\\
4381     Usage: \$0 [FILES]
4382    
4383     [FILES] are Fortran 90 source files.
4384     The output is a list of module file names that the Fortran 90 compiler
4385     generates when compiling [FILES]."
4386    
4387     list=
4388     empty=
4389    
4390     if test \$# -eq 0; then
4391     echo "\$usage"; exit 0
4392     fi
4393    
4394     while test \$# != 0; do
4395    
4396     file=\$1
4397     shift
4398    
4399     # strip suffix
4400     base=\`echo \$file | sed 's/[.][^.]*$//'\`
4401    
4402     test ! -f \$file && continue
4403    
4404     # Look for module definitions and transform them to upper / lower case
4405     mods=\`cat \$file | sed '/^ *[mM][oO][dD][uU][lL][eE]/!d;s/^ *[mM][oO][dD][uU][lL][eE] *\([A-Za-z_][A-Za-z0-9_]*\).*\$/\1/'\`
4406     upper=\`echo \$mods | tr a-z A-Z\`
4407     lower=\`echo \$mods | tr A-Z a-z\`
4408    
4409     # Here, the patterns for generating module file names were inserted by configure
4410     for trans in $ac_cv_f90_module_names; do
4411    
4412     pat=\`echo \$trans | sed 's/.*\(%.*%\).*/\1/'\`
4413     var=empty
4414     case \$pat in
4415     %MODULE%)
4416     var=upper ;;
4417     %Module%)
4418     var=mods ;;
4419     %module%)
4420     var=lower ;;
4421     %FILE%)
4422     test -n "\$mods" && var=base ;;
4423     esac
4424     new=\`eval '(for i in \$'\$var '; do echo \$trans | sed s/\$pat/\$i/; done)'\`
4425     list="\$list \$new"
4426     done
4427     done
4428    
4429     echo \$list
4430     # end of configure-generated script
4431     EOF
4432     chmod 755 scripts/modnam
4433    
4434     pat=`echo $ac_cv_f90_module_names | sed 's/.*\(%.*%\).*/\1/'`
4435     F90_MODULE_NAMES=empty
4436     case $pat in
4437     %MODULE%)
4438     F90_MODULE_NAMES=UPPER ;;
4439     %Module%)
4440     F90_MODULE_NAMES=Mixed ;;
4441     %module%)
4442     F90_MODULE_NAMES=lower ;;
4443     *)
4444     F90_MODULE_NAMES=unknown ;;
4445     esac
4446    
4447 gezelter 1490 ac_ext=c
4448     ac_cpp='$CPP $CPPFLAGS'
4449     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452    
4453    
4454     ac_ext=c
4455     ac_cpp='$CPP $CPPFLAGS'
4456     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459    
4460     ac_ext=c
4461     ac_cpp='$CPP $CPPFLAGS'
4462     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4466     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4467     # On Suns, sometimes $CPP names a directory.
4468     if test -n "$CPP" && test -d "$CPP"; then
4469     CPP=
4470     fi
4471     if test -z "$CPP"; then
4472     if test "${ac_cv_prog_CPP+set}" = set; then
4473     echo $ECHO_N "(cached) $ECHO_C" >&6
4474     else
4475     # Double quotes because CPP needs to be expanded
4476     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4477     do
4478     ac_preproc_ok=false
4479     for ac_c_preproc_warn_flag in '' yes
4480     do
4481     # Use a header file that comes with gcc, so configuring glibc
4482     # with a fresh cross-compiler works.
4483     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484     # <limits.h> exists even on freestanding compilers.
4485     # On the NeXT, cc -E runs the code through the compiler's parser,
4486     # not just through cpp. "Syntax error" is here to catch this case.
4487     cat >conftest.$ac_ext <<_ACEOF
4488     /* confdefs.h. */
4489     _ACEOF
4490     cat confdefs.h >>conftest.$ac_ext
4491     cat >>conftest.$ac_ext <<_ACEOF
4492     /* end confdefs.h. */
4493     #ifdef __STDC__
4494     # include <limits.h>
4495     #else
4496     # include <assert.h>
4497     #endif
4498     Syntax error
4499     _ACEOF
4500     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502     ac_status=$?
4503     grep -v '^ *+' conftest.er1 >conftest.err
4504     rm -f conftest.er1
4505     cat conftest.err >&5
4506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507     (exit $ac_status); } >/dev/null; then
4508     if test -s conftest.err; then
4509     ac_cpp_err=$ac_c_preproc_warn_flag
4510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4511     else
4512     ac_cpp_err=
4513     fi
4514     else
4515     ac_cpp_err=yes
4516     fi
4517     if test -z "$ac_cpp_err"; then
4518     :
4519     else
4520     echo "$as_me: failed program was:" >&5
4521     sed 's/^/| /' conftest.$ac_ext >&5
4522    
4523     # Broken: fails on valid input.
4524     continue
4525     fi
4526     rm -f conftest.err conftest.$ac_ext
4527    
4528     # OK, works on sane cases. Now check whether non-existent headers
4529     # can be detected and how.
4530     cat >conftest.$ac_ext <<_ACEOF
4531     /* confdefs.h. */
4532     _ACEOF
4533     cat confdefs.h >>conftest.$ac_ext
4534     cat >>conftest.$ac_ext <<_ACEOF
4535     /* end confdefs.h. */
4536     #include <ac_nonexistent.h>
4537     _ACEOF
4538     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540     ac_status=$?
4541     grep -v '^ *+' conftest.er1 >conftest.err
4542     rm -f conftest.er1
4543     cat conftest.err >&5
4544     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545     (exit $ac_status); } >/dev/null; then
4546     if test -s conftest.err; then
4547     ac_cpp_err=$ac_c_preproc_warn_flag
4548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4549     else
4550     ac_cpp_err=
4551     fi
4552     else
4553     ac_cpp_err=yes
4554     fi
4555     if test -z "$ac_cpp_err"; then
4556     # Broken: success on invalid input.
4557     continue
4558     else
4559     echo "$as_me: failed program was:" >&5
4560     sed 's/^/| /' conftest.$ac_ext >&5
4561    
4562     # Passes both tests.
4563     ac_preproc_ok=:
4564     break
4565     fi
4566     rm -f conftest.err conftest.$ac_ext
4567    
4568     done
4569     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570     rm -f conftest.err conftest.$ac_ext
4571     if $ac_preproc_ok; then
4572     break
4573     fi
4574    
4575     done
4576     ac_cv_prog_CPP=$CPP
4577    
4578     fi
4579     CPP=$ac_cv_prog_CPP
4580     else
4581     ac_cv_prog_CPP=$CPP
4582     fi
4583     echo "$as_me:$LINENO: result: $CPP" >&5
4584     echo "${ECHO_T}$CPP" >&6
4585     ac_preproc_ok=false
4586     for ac_c_preproc_warn_flag in '' yes
4587     do
4588     # Use a header file that comes with gcc, so configuring glibc
4589     # with a fresh cross-compiler works.
4590     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591     # <limits.h> exists even on freestanding compilers.
4592     # On the NeXT, cc -E runs the code through the compiler's parser,
4593     # not just through cpp. "Syntax error" is here to catch this case.
4594     cat >conftest.$ac_ext <<_ACEOF
4595     /* confdefs.h. */
4596     _ACEOF
4597     cat confdefs.h >>conftest.$ac_ext
4598     cat >>conftest.$ac_ext <<_ACEOF
4599     /* end confdefs.h. */
4600     #ifdef __STDC__
4601     # include <limits.h>
4602     #else
4603     # include <assert.h>
4604     #endif
4605     Syntax error
4606     _ACEOF
4607     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609     ac_status=$?
4610     grep -v '^ *+' conftest.er1 >conftest.err
4611     rm -f conftest.er1
4612     cat conftest.err >&5
4613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614     (exit $ac_status); } >/dev/null; then
4615     if test -s conftest.err; then
4616     ac_cpp_err=$ac_c_preproc_warn_flag
4617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618     else
4619     ac_cpp_err=
4620     fi
4621     else
4622     ac_cpp_err=yes
4623     fi
4624     if test -z "$ac_cpp_err"; then
4625     :
4626     else
4627     echo "$as_me: failed program was:" >&5
4628     sed 's/^/| /' conftest.$ac_ext >&5
4629    
4630     # Broken: fails on valid input.
4631     continue
4632     fi
4633     rm -f conftest.err conftest.$ac_ext
4634    
4635     # OK, works on sane cases. Now check whether non-existent headers
4636     # can be detected and how.
4637     cat >conftest.$ac_ext <<_ACEOF
4638     /* confdefs.h. */
4639     _ACEOF
4640     cat confdefs.h >>conftest.$ac_ext
4641     cat >>conftest.$ac_ext <<_ACEOF
4642     /* end confdefs.h. */
4643     #include <ac_nonexistent.h>
4644     _ACEOF
4645     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647     ac_status=$?
4648     grep -v '^ *+' conftest.er1 >conftest.err
4649     rm -f conftest.er1
4650     cat conftest.err >&5
4651     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652     (exit $ac_status); } >/dev/null; then
4653     if test -s conftest.err; then
4654     ac_cpp_err=$ac_c_preproc_warn_flag
4655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656     else
4657     ac_cpp_err=
4658     fi
4659     else
4660     ac_cpp_err=yes
4661     fi
4662     if test -z "$ac_cpp_err"; then
4663     # Broken: success on invalid input.
4664     continue
4665     else
4666     echo "$as_me: failed program was:" >&5
4667     sed 's/^/| /' conftest.$ac_ext >&5
4668    
4669     # Passes both tests.
4670     ac_preproc_ok=:
4671     break
4672     fi
4673     rm -f conftest.err conftest.$ac_ext
4674    
4675     done
4676     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677     rm -f conftest.err conftest.$ac_ext
4678     if $ac_preproc_ok; then
4679     :
4680     else
4681     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4682     See \`config.log' for more details." >&5
4683     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4684     See \`config.log' for more details." >&2;}
4685     { (exit 1); exit 1; }; }
4686     fi
4687    
4688     ac_ext=c
4689     ac_cpp='$CPP $CPPFLAGS'
4690     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693    
4694    
4695     echo "$as_me:$LINENO: checking for egrep" >&5
4696     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4697     if test "${ac_cv_prog_egrep+set}" = set; then
4698     echo $ECHO_N "(cached) $ECHO_C" >&6
4699     else
4700     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4701     then ac_cv_prog_egrep='grep -E'
4702     else ac_cv_prog_egrep='egrep'
4703     fi
4704     fi
4705     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4706     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4707     EGREP=$ac_cv_prog_egrep
4708    
4709    
4710     echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4711     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4712     if test "${ac_cv_header_stdc+set}" = set; then
4713     echo $ECHO_N "(cached) $ECHO_C" >&6
4714     else
4715     cat >conftest.$ac_ext <<_ACEOF
4716     /* confdefs.h. */
4717     _ACEOF
4718     cat confdefs.h >>conftest.$ac_ext
4719     cat >>conftest.$ac_ext <<_ACEOF
4720     /* end confdefs.h. */
4721     #include <stdlib.h>
4722     #include <stdarg.h>
4723     #include <string.h>
4724     #include <float.h>
4725    
4726     int
4727     main ()
4728     {
4729    
4730     ;
4731     return 0;
4732     }
4733     _ACEOF
4734     rm -f conftest.$ac_objext
4735     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4736     (eval $ac_compile) 2>conftest.er1
4737     ac_status=$?
4738     grep -v '^ *+' conftest.er1 >conftest.err
4739     rm -f conftest.er1
4740     cat conftest.err >&5
4741     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742     (exit $ac_status); } &&
4743     { ac_try='test -z "$ac_c_werror_flag"
4744     || test ! -s conftest.err'
4745     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746     (eval $ac_try) 2>&5
4747     ac_status=$?
4748     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749     (exit $ac_status); }; } &&
4750     { ac_try='test -s conftest.$ac_objext'
4751     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752     (eval $ac_try) 2>&5
4753     ac_status=$?
4754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755     (exit $ac_status); }; }; then
4756     ac_cv_header_stdc=yes
4757     else
4758     echo "$as_me: failed program was:" >&5
4759     sed 's/^/| /' conftest.$ac_ext >&5
4760    
4761     ac_cv_header_stdc=no
4762     fi
4763     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764    
4765     if test $ac_cv_header_stdc = yes; then
4766     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4767     cat >conftest.$ac_ext <<_ACEOF
4768     /* confdefs.h. */
4769     _ACEOF
4770     cat confdefs.h >>conftest.$ac_ext
4771     cat >>conftest.$ac_ext <<_ACEOF
4772     /* end confdefs.h. */
4773     #include <string.h>
4774    
4775     _ACEOF
4776     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777     $EGREP "memchr" >/dev/null 2>&1; then
4778     :
4779     else
4780     ac_cv_header_stdc=no
4781     fi
4782     rm -f conftest*
4783    
4784     fi
4785    
4786     if test $ac_cv_header_stdc = yes; then
4787     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4788     cat >conftest.$ac_ext <<_ACEOF
4789     /* confdefs.h. */
4790     _ACEOF
4791     cat confdefs.h >>conftest.$ac_ext
4792     cat >>conftest.$ac_ext <<_ACEOF
4793     /* end confdefs.h. */
4794     #include <stdlib.h>
4795    
4796     _ACEOF
4797     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4798     $EGREP "free" >/dev/null 2>&1; then
4799     :
4800     else
4801     ac_cv_header_stdc=no
4802     fi
4803     rm -f conftest*
4804    
4805     fi
4806    
4807     if test $ac_cv_header_stdc = yes; then
4808     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4809     if test "$cross_compiling" = yes; then
4810     :
4811     else
4812     cat >conftest.$ac_ext <<_ACEOF
4813     /* confdefs.h. */
4814     _ACEOF
4815     cat confdefs.h >>conftest.$ac_ext
4816     cat >>conftest.$ac_ext <<_ACEOF
4817     /* end confdefs.h. */
4818     #include <ctype.h>
4819     #if ((' ' & 0x0FF) == 0x020)
4820     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4821     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822     #else
4823     # define ISLOWER(c) \
4824     (('a' <= (c) && (c) <= 'i') \
4825     || ('j' <= (c) && (c) <= 'r') \
4826     || ('s' <= (c) && (c) <= 'z'))
4827     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4828     #endif
4829    
4830     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4831     int
4832     main ()
4833     {
4834     int i;
4835     for (i = 0; i < 256; i++)
4836     if (XOR (islower (i), ISLOWER (i))
4837     || toupper (i) != TOUPPER (i))
4838     exit(2);
4839     exit (0);
4840     }
4841     _ACEOF
4842     rm -f conftest$ac_exeext
4843     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4844     (eval $ac_link) 2>&5
4845     ac_status=$?
4846     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4848     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849     (eval $ac_try) 2>&5
4850     ac_status=$?
4851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852     (exit $ac_status); }; }; then
4853     :
4854     else
4855     echo "$as_me: program exited with status $ac_status" >&5
4856     echo "$as_me: failed program was:" >&5
4857     sed 's/^/| /' conftest.$ac_ext >&5
4858    
4859     ( exit $ac_status )
4860     ac_cv_header_stdc=no
4861     fi
4862     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4863     fi
4864     fi
4865     fi
4866     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4867     echo "${ECHO_T}$ac_cv_header_stdc" >&6
4868     if test $ac_cv_header_stdc = yes; then
4869    
4870     cat >>confdefs.h <<\_ACEOF
4871     #define STDC_HEADERS 1
4872     _ACEOF
4873    
4874     fi
4875    
4876     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4877    
4878    
4879    
4880    
4881    
4882    
4883    
4884    
4885    
4886     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4887     inttypes.h stdint.h unistd.h
4888     do
4889     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4890     echo "$as_me:$LINENO: checking for $ac_header" >&5
4891     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4892     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4893     echo $ECHO_N "(cached) $ECHO_C" >&6
4894     else
4895     cat >conftest.$ac_ext <<_ACEOF
4896     /* confdefs.h. */
4897     _ACEOF
4898     cat confdefs.h >>conftest.$ac_ext
4899     cat >>conftest.$ac_ext <<_ACEOF
4900     /* end confdefs.h. */
4901     $ac_includes_default
4902    
4903     #include <$ac_header>
4904     _ACEOF
4905     rm -f conftest.$ac_objext
4906     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907     (eval $ac_compile) 2>conftest.er1
4908     ac_status=$?
4909     grep -v '^ *+' conftest.er1 >conftest.err
4910     rm -f conftest.er1
4911     cat conftest.err >&5
4912     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913     (exit $ac_status); } &&
4914     { ac_try='test -z "$ac_c_werror_flag"
4915     || test ! -s conftest.err'
4916     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917     (eval $ac_try) 2>&5
4918     ac_status=$?
4919     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920     (exit $ac_status); }; } &&
4921     { ac_try='test -s conftest.$ac_objext'
4922     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923     (eval $ac_try) 2>&5
4924     ac_status=$?
4925     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926     (exit $ac_status); }; }; then
4927     eval "$as_ac_Header=yes"
4928     else
4929     echo "$as_me: failed program was:" >&5
4930     sed 's/^/| /' conftest.$ac_ext >&5
4931    
4932     eval "$as_ac_Header=no"
4933     fi
4934     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4935     fi
4936     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4937     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4938     if test `eval echo '${'$as_ac_Header'}'` = yes; then
4939     cat >>confdefs.h <<_ACEOF
4940     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4941     _ACEOF
4942    
4943     fi
4944    
4945     done
4946    
4947    
4948 tim 1998
4949    
4950    
4951    
4952    
4953    
4954    
4955    
4956    
4957     for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
4958     do
4959     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4961     echo "$as_me:$LINENO: checking for $ac_header" >&5
4962     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963     if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964     echo $ECHO_N "(cached) $ECHO_C" >&6
4965     fi
4966     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968     else
4969     # Is the header compilable?
4970     echo "$as_me:$LINENO: checking $ac_header usability" >&5
4971     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4972     cat >conftest.$ac_ext <<_ACEOF
4973     /* confdefs.h. */
4974     _ACEOF
4975     cat confdefs.h >>conftest.$ac_ext
4976     cat >>conftest.$ac_ext <<_ACEOF
4977     /* end confdefs.h. */
4978     $ac_includes_default
4979     #include <$ac_header>
4980     _ACEOF
4981     rm -f conftest.$ac_objext
4982     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983     (eval $ac_compile) 2>conftest.er1
4984     ac_status=$?
4985     grep -v '^ *+' conftest.er1 >conftest.err
4986     rm -f conftest.er1
4987     cat conftest.err >&5
4988     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989     (exit $ac_status); } &&
4990     { ac_try='test -z "$ac_c_werror_flag"
4991     || test ! -s conftest.err'
4992     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993     (eval $ac_try) 2>&5
4994     ac_status=$?
4995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996     (exit $ac_status); }; } &&
4997     { ac_try='test -s conftest.$ac_objext'
4998     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999     (eval $ac_try) 2>&5
5000     ac_status=$?
5001     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002     (exit $ac_status); }; }; then
5003     ac_header_compiler=yes
5004     else
5005     echo "$as_me: failed program was:" >&5
5006     sed 's/^/| /' conftest.$ac_ext >&5
5007    
5008     ac_header_compiler=no
5009     fi
5010     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5012     echo "${ECHO_T}$ac_header_compiler" >&6
5013    
5014     # Is the header present?
5015     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5016     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5017     cat >conftest.$ac_ext <<_ACEOF
5018     /* confdefs.h. */
5019     _ACEOF
5020     cat confdefs.h >>conftest.$ac_ext
5021     cat >>conftest.$ac_ext <<_ACEOF
5022     /* end confdefs.h. */
5023     #include <$ac_header>
5024     _ACEOF
5025     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5026     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027     ac_status=$?
5028     grep -v '^ *+' conftest.er1 >conftest.err
5029     rm -f conftest.er1
5030     cat conftest.err >&5
5031     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032     (exit $ac_status); } >/dev/null; then
5033     if test -s conftest.err; then
5034     ac_cpp_err=$ac_c_preproc_warn_flag
5035     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036     else
5037     ac_cpp_err=
5038     fi
5039     else
5040     ac_cpp_err=yes
5041     fi
5042     if test -z "$ac_cpp_err"; then
5043     ac_header_preproc=yes
5044     else
5045     echo "$as_me: failed program was:" >&5
5046     sed 's/^/| /' conftest.$ac_ext >&5
5047    
5048     ac_header_preproc=no
5049     fi
5050     rm -f conftest.err conftest.$ac_ext
5051     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5052     echo "${ECHO_T}$ac_header_preproc" >&6
5053    
5054     # So? What about this header?
5055     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5056     yes:no: )
5057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5058     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5060     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5061     ac_header_preproc=yes
5062     ;;
5063     no:yes:* )
5064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5065     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5066     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5067     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5069     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5070     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5071     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5073     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5075     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5076     (
5077     cat <<\_ASBOX
5078     ## ------------------------------ ##
5079     ## Report this to gezelter@nd.edu ##
5080     ## ------------------------------ ##
5081     _ASBOX
5082     ) |
5083     sed "s/^/$as_me: WARNING: /" >&2
5084     ;;
5085     esac
5086     echo "$as_me:$LINENO: checking for $ac_header" >&5
5087     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5088     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5089     echo $ECHO_N "(cached) $ECHO_C" >&6
5090     else
5091     eval "$as_ac_Header=\$ac_header_preproc"
5092     fi
5093     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5094     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5095    
5096     fi
5097     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5098     cat >>confdefs.h <<_ACEOF
5099     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5100     _ACEOF
5101    
5102     fi
5103    
5104     done
5105    
5106    
5107    
5108    
5109    
5110    
5111     for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
5112     do
5113     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5114     echo "$as_me:$LINENO: checking for $ac_func" >&5
5115     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5116     if eval "test \"\${$as_ac_var+set}\" = set"; then
5117     echo $ECHO_N "(cached) $ECHO_C" >&6
5118     else
5119     cat >conftest.$ac_ext <<_ACEOF
5120     /* confdefs.h. */
5121     _ACEOF
5122     cat confdefs.h >>conftest.$ac_ext
5123     cat >>conftest.$ac_ext <<_ACEOF
5124     /* end confdefs.h. */
5125     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5126     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5127     #define $ac_func innocuous_$ac_func
5128    
5129     /* System header to define __stub macros and hopefully few prototypes,
5130     which can conflict with char $ac_func (); below.
5131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132     <limits.h> exists even on freestanding compilers. */
5133    
5134     #ifdef __STDC__
5135     # include <limits.h>
5136     #else
5137     # include <assert.h>
5138     #endif
5139    
5140     #undef $ac_func
5141    
5142     /* Override any gcc2 internal prototype to avoid an error. */
5143     #ifdef __cplusplus
5144     extern "C"
5145     {
5146     #endif
5147     /* We use char because int might match the return type of a gcc2
5148     builtin and then its argument prototype would still apply. */
5149     char $ac_func ();
5150     /* The GNU C library defines this for functions which it implements
5151     to always fail with ENOSYS. Some functions are actually named
5152     something starting with __ and the normal name is an alias. */
5153     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5154     choke me
5155     #else
5156     char (*f) () = $ac_func;
5157     #endif
5158     #ifdef __cplusplus
5159     }
5160     #endif
5161    
5162     int
5163     main ()
5164     {
5165     return f != $ac_func;
5166     ;
5167     return 0;
5168     }
5169     _ACEOF
5170     rm -f conftest.$ac_objext conftest$ac_exeext
5171     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5172     (eval $ac_link) 2>conftest.er1
5173     ac_status=$?
5174     grep -v '^ *+' conftest.er1 >conftest.err
5175     rm -f conftest.er1
5176     cat conftest.err >&5
5177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178     (exit $ac_status); } &&
5179     { ac_try='test -z "$ac_c_werror_flag"
5180     || test ! -s conftest.err'
5181     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182     (eval $ac_try) 2>&5
5183     ac_status=$?
5184     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185     (exit $ac_status); }; } &&
5186     { ac_try='test -s conftest$ac_exeext'
5187     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188     (eval $ac_try) 2>&5
5189     ac_status=$?
5190     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191     (exit $ac_status); }; }; then
5192     eval "$as_ac_var=yes"
5193     else
5194     echo "$as_me: failed program was:" >&5
5195     sed 's/^/| /' conftest.$ac_ext >&5
5196    
5197     eval "$as_ac_var=no"
5198     fi
5199     rm -f conftest.err conftest.$ac_objext \
5200     conftest$ac_exeext conftest.$ac_ext
5201     fi
5202     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5203     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5204     if test `eval echo '${'$as_ac_var'}'` = yes; then
5205     cat >>confdefs.h <<_ACEOF
5206     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5207     _ACEOF
5208    
5209     fi
5210     done
5211    
5212     # special check for _system_configuration because AIX <4.3.2 do not
5213     # contain the `physmem' member.
5214     echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5215     echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5216     cat >conftest.$ac_ext <<_ACEOF
5217     /* confdefs.h. */
5218     _ACEOF
5219     cat confdefs.h >>conftest.$ac_ext
5220     cat >>conftest.$ac_ext <<_ACEOF
5221     /* end confdefs.h. */
5222     #include <sys/systemcfg.h>
5223     int
5224     main ()
5225     {
5226     double x = _system_configuration.physmem;
5227     ;
5228     return 0;
5229     }
5230     _ACEOF
5231     rm -f conftest.$ac_objext
5232     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233     (eval $ac_compile) 2>conftest.er1
5234     ac_status=$?
5235     grep -v '^ *+' conftest.er1 >conftest.err
5236     rm -f conftest.er1
5237     cat conftest.err >&5
5238     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239     (exit $ac_status); } &&
5240     { ac_try='test -z "$ac_c_werror_flag"
5241     || test ! -s conftest.err'
5242     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243     (eval $ac_try) 2>&5
5244     ac_status=$?
5245     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246     (exit $ac_status); }; } &&
5247     { ac_try='test -s conftest.$ac_objext'
5248     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249     (eval $ac_try) 2>&5
5250     ac_status=$?
5251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252     (exit $ac_status); }; }; then
5253     echo "$as_me:$LINENO: result: yes" >&5
5254     echo "${ECHO_T}yes" >&6
5255    
5256     cat >>confdefs.h <<\_ACEOF
5257     #define HAVE__SYSTEM_CONFIGURATION 1
5258     _ACEOF
5259    
5260     else
5261     echo "$as_me: failed program was:" >&5
5262     sed 's/^/| /' conftest.$ac_ext >&5
5263    
5264     echo "$as_me:$LINENO: result: no" >&5
5265     echo "${ECHO_T}no" >&6
5266     fi
5267     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5268    
5269    
5270    
5271    
5272 gezelter 1490 # clean out junk possibly left behind by a previous configuration
5273 gezelter 1947 rm -f src/getopt.h
5274 gezelter 1490 # Check for getopt_long support
5275    
5276     for ac_header in getopt.h
5277     do
5278     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5279     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5280     echo "$as_me:$LINENO: checking for $ac_header" >&5
5281     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5282     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5283     echo $ECHO_N "(cached) $ECHO_C" >&6
5284     fi
5285     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5286     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5287     else
5288     # Is the header compilable?
5289     echo "$as_me:$LINENO: checking $ac_header usability" >&5
5290     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5291     cat >conftest.$ac_ext <<_ACEOF
5292     /* confdefs.h. */
5293     _ACEOF
5294     cat confdefs.h >>conftest.$ac_ext
5295     cat >>conftest.$ac_ext <<_ACEOF
5296     /* end confdefs.h. */
5297     $ac_includes_default
5298     #include <$ac_header>
5299     _ACEOF
5300     rm -f conftest.$ac_objext
5301     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302     (eval $ac_compile) 2>conftest.er1
5303     ac_status=$?
5304     grep -v '^ *+' conftest.er1 >conftest.err
5305     rm -f conftest.er1
5306     cat conftest.err >&5
5307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308     (exit $ac_status); } &&
5309     { ac_try='test -z "$ac_c_werror_flag"
5310     || test ! -s conftest.err'
5311     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312     (eval $ac_try) 2>&5
5313     ac_status=$?
5314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315     (exit $ac_status); }; } &&
5316     { ac_try='test -s conftest.$ac_objext'
5317     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318     (eval $ac_try) 2>&5
5319     ac_status=$?
5320     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321     (exit $ac_status); }; }; then
5322     ac_header_compiler=yes
5323     else
5324     echo "$as_me: failed program was:" >&5
5325     sed 's/^/| /' conftest.$ac_ext >&5
5326    
5327     ac_header_compiler=no
5328     fi
5329     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5331     echo "${ECHO_T}$ac_header_compiler" >&6
5332    
5333     # Is the header present?
5334     echo "$as_me:$LINENO: checking $ac_header presence" >&5
5335     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5336     cat >conftest.$ac_ext <<_ACEOF
5337     /* confdefs.h. */
5338     _ACEOF
5339     cat confdefs.h >>conftest.$ac_ext
5340     cat >>conftest.$ac_ext <<_ACEOF
5341     /* end confdefs.h. */
5342     #include <$ac_header>
5343     _ACEOF
5344     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5345     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5346     ac_status=$?
5347     grep -v '^ *+' conftest.er1 >conftest.err
5348     rm -f conftest.er1
5349     cat conftest.err >&5
5350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351     (exit $ac_status); } >/dev/null; then
5352     if test -s conftest.err; then
5353     ac_cpp_err=$ac_c_preproc_warn_flag
5354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5355     else
5356     ac_cpp_err=
5357     fi
5358     else
5359     ac_cpp_err=yes
5360     fi
5361     if test -z "$ac_cpp_err"; then
5362     ac_header_preproc=yes
5363     else
5364     echo "$as_me: failed program was:" >&5
5365     sed 's/^/| /' conftest.$ac_ext >&5
5366    
5367     ac_header_preproc=no
5368     fi
5369     rm -f conftest.err conftest.$ac_ext
5370     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5371     echo "${ECHO_T}$ac_header_preproc" >&6
5372    
5373     # So? What about this header?
5374     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5375     yes:no: )
5376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5377     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5379     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5380     ac_header_preproc=yes
5381     ;;
5382     no:yes:* )
5383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5384     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5385     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5386     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5388     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5389     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5390     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5392     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5394     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5395     (
5396     cat <<\_ASBOX
5397     ## ------------------------------ ##
5398     ## Report this to gezelter@nd.edu ##
5399     ## ------------------------------ ##
5400     _ASBOX
5401     ) |
5402     sed "s/^/$as_me: WARNING: /" >&2
5403     ;;
5404     esac
5405     echo "$as_me:$LINENO: checking for $ac_header" >&5
5406     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5407     if eval "test \"\${$as_ac_Header+set}\" = set"; then
5408     echo $ECHO_N "(cached) $ECHO_C" >&6
5409     else
5410     eval "$as_ac_Header=\$ac_header_preproc"
5411     fi
5412     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5413     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5414    
5415     fi
5416     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5417     cat >>confdefs.h <<_ACEOF
5418     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419     _ACEOF
5420    
5421     fi
5422    
5423     done
5424    
5425    
5426     for ac_func in getopt_long
5427     do
5428     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5429     echo "$as_me:$LINENO: checking for $ac_func" >&5
5430     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5431     if eval "test \"\${$as_ac_var+set}\" = set"; then
5432     echo $ECHO_N "(cached) $ECHO_C" >&6
5433     else
5434     cat >conftest.$ac_ext <<_ACEOF
5435     /* confdefs.h. */
5436     _ACEOF
5437     cat confdefs.h >>conftest.$ac_ext
5438     cat >>conftest.$ac_ext <<_ACEOF
5439     /* end confdefs.h. */
5440     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5441     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5442     #define $ac_func innocuous_$ac_func
5443    
5444     /* System header to define __stub macros and hopefully few prototypes,
5445     which can conflict with char $ac_func (); below.
5446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447     <limits.h> exists even on freestanding compilers. */
5448    
5449     #ifdef __STDC__
5450     # include <limits.h>
5451     #else
5452     # include <assert.h>
5453     #endif
5454    
5455     #undef $ac_func
5456    
5457     /* Override any gcc2 internal prototype to avoid an error. */
5458     #ifdef __cplusplus
5459     extern "C"
5460     {
5461     #endif
5462     /* We use char because int might match the return type of a gcc2
5463     builtin and then its argument prototype would still apply. */
5464     char $ac_func ();
5465     /* The GNU C library defines this for functions which it implements
5466     to always fail with ENOSYS. Some functions are actually named
5467     something starting with __ and the normal name is an alias. */
5468     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5469     choke me
5470     #else
5471     char (*f) () = $ac_func;
5472     #endif
5473     #ifdef __cplusplus
5474     }
5475     #endif
5476    
5477     int
5478     main ()
5479     {
5480     return f != $ac_func;
5481     ;
5482     return 0;
5483     }
5484     _ACEOF
5485     rm -f conftest.$ac_objext conftest$ac_exeext
5486     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487     (eval $ac_link) 2>conftest.er1
5488     ac_status=$?
5489     grep -v '^ *+' conftest.er1 >conftest.err
5490     rm -f conftest.er1
5491     cat conftest.err >&5
5492     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493     (exit $ac_status); } &&
5494     { ac_try='test -z "$ac_c_werror_flag"
5495     || test ! -s conftest.err'
5496     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497     (eval $ac_try) 2>&5
5498     ac_status=$?
5499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500     (exit $ac_status); }; } &&
5501     { ac_try='test -s conftest$ac_exeext'
5502     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503     (eval $ac_try) 2>&5
5504     ac_status=$?
5505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506     (exit $ac_status); }; }; then
5507     eval "$as_ac_var=yes"
5508     else
5509     echo "$as_me: failed program was:" >&5
5510     sed 's/^/| /' conftest.$ac_ext >&5
5511    
5512     eval "$as_ac_var=no"
5513     fi
5514     rm -f conftest.err conftest.$ac_objext \
5515     conftest$ac_exeext conftest.$ac_ext
5516     fi
5517     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5518     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5519     if test `eval echo '${'$as_ac_var'}'` = yes; then
5520     cat >>confdefs.h <<_ACEOF
5521     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5522     _ACEOF
5523    
5524     else
5525     # FreeBSD has a gnugetopt library for this
5526     echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5527     echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5528     if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5529     echo $ECHO_N "(cached) $ECHO_C" >&6
5530     else
5531     ac_check_lib_save_LIBS=$LIBS
5532     LIBS="-lgnugetopt $LIBS"
5533     cat >conftest.$ac_ext <<_ACEOF
5534     /* confdefs.h. */
5535     _ACEOF
5536     cat confdefs.h >>conftest.$ac_ext
5537     cat >>conftest.$ac_ext <<_ACEOF
5538     /* end confdefs.h. */
5539    
5540     /* Override any gcc2 internal prototype to avoid an error. */
5541     #ifdef __cplusplus
5542     extern "C"
5543     #endif
5544     /* We use char because int might match the return type of a gcc2
5545     builtin and then its argument prototype would still apply. */
5546     char getopt_long ();
5547     int
5548     main ()
5549     {
5550     getopt_long ();
5551     ;
5552     return 0;
5553     }
5554     _ACEOF
5555     rm -f conftest.$ac_objext conftest$ac_exeext
5556     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557     (eval $ac_link) 2>conftest.er1
5558     ac_status=$?
5559     grep -v '^ *+' conftest.er1 >conftest.err
5560     rm -f conftest.er1
5561     cat conftest.err >&5
5562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563     (exit $ac_status); } &&
5564     { ac_try='test -z "$ac_c_werror_flag"
5565     || test ! -s conftest.err'
5566     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567     (eval $ac_try) 2>&5
5568     ac_status=$?
5569     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570     (exit $ac_status); }; } &&
5571     { ac_try='test -s conftest$ac_exeext'
5572     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573     (eval $ac_try) 2>&5
5574     ac_status=$?
5575     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576     (exit $ac_status); }; }; then
5577     ac_cv_lib_gnugetopt_getopt_long=yes
5578     else
5579     echo "$as_me: failed program was:" >&5
5580     sed 's/^/| /' conftest.$ac_ext >&5
5581    
5582     ac_cv_lib_gnugetopt_getopt_long=no
5583     fi
5584     rm -f conftest.err conftest.$ac_objext \
5585     conftest$ac_exeext conftest.$ac_ext
5586     LIBS=$ac_check_lib_save_LIBS
5587     fi
5588     echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5589     echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5590     if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5591     cat >>confdefs.h <<\_ACEOF
5592     #define HAVE_GETOPT_LONG 1
5593     _ACEOF
5594    
5595     else
5596     # use the GNU replacement
5597     case $LIBOBJS in
5598     "getopt.$ac_objext" | \
5599     *" getopt.$ac_objext" | \
5600     "getopt.$ac_objext "* | \
5601     *" getopt.$ac_objext "* ) ;;
5602     *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5603     esac
5604    
5605     case $LIBOBJS in
5606     "getopt1.$ac_objext" | \
5607     *" getopt1.$ac_objext" | \
5608     "getopt1.$ac_objext "* | \
5609     *" getopt1.$ac_objext "* ) ;;
5610     *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5611     esac
5612    
5613 gezelter 1947 ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
5614 gezelter 1490
5615     fi
5616    
5617     fi
5618     done
5619    
5620    
5621    
5622     case $debug in
5623     1)
5624     ;;
5625     *)
5626    
5627    
5628    
5629    
5630    
5631    
5632     echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
5633     echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
5634     if test "${ac_cv_prog_really_gcc+set}" = set; then
5635     echo $ECHO_N "(cached) $ECHO_C" >&6
5636     else
5637    
5638     cat > conftest.c <<EOF
5639     #ifdef __GNUC__
5640     #ifndef __INTEL_COMPILER
5641     yes;
5642     #endif
5643     #endif
5644     EOF
5645     if { ac_try='${CC-cc} -E conftest.c'
5646     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647     (eval $ac_try) 2>&5
5648     ac_status=$?
5649     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650     (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5651     ac_cv_prog_really_gcc=yes
5652     else
5653     ac_cv_prog_really_gcc=no
5654     fi
5655    
5656     fi
5657     echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
5658     echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
5659     if test "$ac_cv_prog_really_gcc" = yes; then
5660     :
5661    
5662     else
5663     :
5664    
5665     fi
5666    
5667    
5668     # Try to determine "good" native compiler flags if none specified on command
5669     # line
5670     if test "$ac_test_CFLAGS" != "set"; then
5671     CFLAGS=""
5672     case "${host_cpu}-${host_os}" in
5673    
5674     *linux*) if test "$CC" = icc; then
5675     CFLAGS="-O"
5676     fi;;
5677     sparc-solaris2*) if test "$CC" = cc; then
5678     CFLAGS="-native -fast -xO5 -dalign"
5679     fi;;
5680    
5681     alpha*-osf*) if test "$CC" = cc; then
5682     CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
5683     fi;;
5684    
5685     hppa*-hpux*) if test "$CC" = cc; then
5686     CFLAGS="-Ae +O3 +Oall"
5687     fi;;
5688    
5689     rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
5690     CFLAGS="-O3 -qtune=auto -qansialias -w"
5691     fi;;
5692     powerpc*-aix*)
5693     if test "$CC" = cc -o "$CC" = xlc; then
5694     CFLAGS="-O3 -qtune=auto -qansialias -w"
5695     echo "*******************************************************"
5696     echo "* You have AIX on an unknown powerpc system. It is *"
5697     echo "* recommended that you use *"
5698     echo "* *"
5699     echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
5700     echo "* ^^^ *"
5701     echo "* where xxx is 601, 603, 604, or whatever kind of *"
5702     echo "* PowerPC CPU you have. For more info, man cc. *"
5703     echo "*******************************************************"
5704     fi;;
5705     *darwin*)
5706     if test "$CC" = xlc -o "$CC" = cc; then
5707 chuckv 1579 CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
5708 gezelter 1490 fi;;
5709     esac
5710    
5711     # use default flags for gcc on all systems
5712     if test $ac_cv_prog_really_gcc = yes; then
5713     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
5714     fi
5715    
5716     # test for gcc-specific flags:
5717     if test $ac_cv_prog_really_gcc = yes; then
5718     # -malign-double for x86 systems
5719    
5720    
5721     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
5722     echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
5723     if test "${ac_align_double+set}" = set; then
5724     echo $ECHO_N "(cached) $ECHO_C" >&6
5725     else
5726     echo 'void f(){}' > conftest.c
5727     if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
5728     ac_align_double=yes
5729     else
5730     ac_align_double=no
5731     fi
5732     rm -f conftest*
5733    
5734     fi
5735     echo "$as_me:$LINENO: result: $ac_align_double" >&5
5736     echo "${ECHO_T}$ac_align_double" >&6
5737     if test "$ac_align_double" = yes; then
5738     :
5739     CFLAGS="$CFLAGS -malign-double"
5740     else
5741     :
5742    
5743     fi
5744    
5745     # -fstrict-aliasing for gcc-2.95+
5746    
5747    
5748     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
5749     echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
5750     if test "${ac_fstrict_aliasing+set}" = set; then
5751     echo $ECHO_N "(cached) $ECHO_C" >&6
5752     else
5753     echo 'void f(){}' > conftest.c
5754     if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
5755     ac_fstrict_aliasing=yes
5756     else
5757     ac_fstrict_aliasing=no
5758     fi
5759     rm -f conftest*
5760    
5761     fi
5762     echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
5763     echo "${ECHO_T}$ac_fstrict_aliasing" >&6
5764     if test "$ac_fstrict_aliasing" = yes; then
5765     :
5766     CFLAGS="$CFLAGS -fstrict-aliasing"
5767     else
5768     :
5769    
5770     fi
5771    
5772     fi
5773    
5774     CPU_FLAGS=""
5775     if test $ac_cv_prog_really_gcc = yes; then
5776     case "${host_cpu}" in
5777     i586*)
5778    
5779     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
5780     echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
5781     if test "${ac_cpu_pentium+set}" = set; then
5782     echo $ECHO_N "(cached) $ECHO_C" >&6
5783     else
5784     echo 'void f(){}' > conftest.c
5785     if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
5786     ac_cpu_pentium=yes
5787     else
5788     ac_cpu_pentium=no
5789     fi
5790     rm -f conftest*
5791    
5792     fi
5793     echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
5794     echo "${ECHO_T}$ac_cpu_pentium" >&6
5795     if test "$ac_cpu_pentium" = yes; then
5796     :
5797     CPU_FLAGS=-mcpu=pentium
5798     else
5799     :
5800    
5801    
5802     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
5803     echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
5804     if test "${ac_pentium+set}" = set; then
5805     echo $ECHO_N "(cached) $ECHO_C" >&6
5806     else
5807     echo 'void f(){}' > conftest.c
5808     if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
5809     ac_pentium=yes
5810     else
5811     ac_pentium=no
5812     fi
5813     rm -f conftest*
5814    
5815     fi
5816     echo "$as_me:$LINENO: result: $ac_pentium" >&5
5817     echo "${ECHO_T}$ac_pentium" >&6
5818     if test "$ac_pentium" = yes; then
5819     :
5820     CPU_FLAGS=-mpentium
5821     else
5822     :
5823    
5824     fi
5825    
5826     fi
5827    
5828     ;;
5829     i686*)
5830    
5831     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
5832     echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
5833     if test "${ac_cpu_pentiumpro+set}" = set; then
5834     echo $ECHO_N "(cached) $ECHO_C" >&6
5835     else
5836     echo 'void f(){}' > conftest.c
5837     if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
5838     ac_cpu_pentiumpro=yes
5839     else
5840     ac_cpu_pentiumpro=no
5841     fi
5842     rm -f conftest*
5843    
5844     fi
5845     echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
5846     echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
5847     if test "$ac_cpu_pentiumpro" = yes; then
5848     :
5849     CPU_FLAGS=-mcpu=pentiumpro
5850     else
5851     :
5852    
5853    
5854     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
5855     echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
5856     if test "${ac_pentiumpro+set}" = set; then
5857     echo $ECHO_N "(cached) $ECHO_C" >&6
5858     else
5859     echo 'void f(){}' > conftest.c
5860     if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
5861     ac_pentiumpro=yes
5862     else
5863     ac_pentiumpro=no
5864     fi
5865     rm -f conftest*
5866    
5867     fi
5868     echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
5869     echo "${ECHO_T}$ac_pentiumpro" >&6
5870     if test "$ac_pentiumpro" = yes; then
5871     :
5872     CPU_FLAGS=-mpentiumpro
5873     else
5874     :
5875    
5876     fi
5877    
5878     fi
5879    
5880     ;;
5881     powerpc*)
5882     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
5883     is60x=`echo $cputype | egrep "^600-9e?$"`
5884     if test -n "$is60x"; then
5885    
5886    
5887     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
5888     echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
5889     if test "${ac_m_cpu_60x+set}" = set; then
5890     echo $ECHO_N "(cached) $ECHO_C" >&6
5891     else
5892     echo 'void f(){}' > conftest.c
5893     if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
5894     ac_m_cpu_60x=yes
5895     else
5896     ac_m_cpu_60x=no
5897     fi
5898     rm -f conftest*
5899    
5900     fi
5901     echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
5902     echo "${ECHO_T}$ac_m_cpu_60x" >&6
5903     if test "$ac_m_cpu_60x" = yes; then
5904     :
5905     CPU_FLAGS=-mcpu=$cputype
5906     else
5907     :
5908    
5909     fi
5910    
5911     elif test "$cputype" = 750; then
5912    
5913    
5914     echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
5915     echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
5916     if test "${ac_cv_prog_gcc_2_95+set}" = set; then
5917     echo $ECHO_N "(cached) $ECHO_C" >&6
5918     else
5919    
5920     cat > conftest.c <<EOF
5921     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
5922     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
5923     yes;
5924     # endif
5925     #endif
5926     EOF
5927     if { ac_try='${CC-cc} -E conftest.c'
5928     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929     (eval $ac_try) 2>&5
5930     ac_status=$?
5931     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932     (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5933     ac_cv_prog_gcc_2_95=yes
5934     else
5935     ac_cv_prog_gcc_2_95=no
5936     fi
5937    
5938     fi
5939     echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
5940     echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
5941     if test "$ac_cv_prog_gcc_2_95" = yes; then
5942     :
5943    
5944    
5945     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
5946     echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
5947     if test "${ac_m_cpu_750+set}" = set; then
5948     echo $ECHO_N "(cached) $ECHO_C" >&6
5949     else
5950     echo 'void f(){}' > conftest.c
5951     if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
5952     ac_m_cpu_750=yes
5953     else
5954     ac_m_cpu_750=no
5955     fi
5956     rm -f conftest*
5957    
5958     fi
5959     echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
5960     echo "${ECHO_T}$ac_m_cpu_750" >&6
5961     if test "$ac_m_cpu_750" = yes; then
5962     :
5963     CPU_FLAGS=-mcpu=750
5964     else
5965     :
5966    
5967     fi
5968    
5969     else
5970     :
5971    
5972     fi
5973    
5974     fi
5975     if test -z "$CPU_FLAGS"; then
5976    
5977    
5978     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
5979     echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
5980     if test "${ac_m_cpu_powerpc+set}" = set; then
5981     echo $ECHO_N "(cached) $ECHO_C" >&6
5982     else
5983     echo 'void f(){}' > conftest.c
5984     if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
5985     ac_m_cpu_powerpc=yes
5986     else
5987     ac_m_cpu_powerpc=no
5988     fi
5989     rm -f conftest*
5990    
5991     fi
5992     echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5993     echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5994     if test "$ac_m_cpu_powerpc" = yes; then
5995     :
5996     CPU_FLAGS=-mcpu=powerpc
5997     else
5998     :
5999    
6000     fi
6001    
6002     fi
6003     if test -z "$CPU_FLAGS"; then
6004    
6005    
6006     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
6007     echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
6008     if test "${ac_m_powerpc+set}" = set; then
6009     echo $ECHO_N "(cached) $ECHO_C" >&6
6010     else
6011     echo 'void f(){}' > conftest.c
6012     if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
6013     ac_m_powerpc=yes
6014     else
6015     ac_m_powerpc=no
6016     fi
6017     rm -f conftest*
6018    
6019     fi
6020     echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6021     echo "${ECHO_T}$ac_m_powerpc" >&6
6022     if test "$ac_m_powerpc" = yes; then
6023     :
6024     CPU_FLAGS=-mpowerpc
6025     else
6026     :
6027    
6028     fi
6029    
6030     fi
6031     esac
6032     fi
6033    
6034     if test -n "$CPU_FLAGS"; then
6035     CFLAGS="$CFLAGS $CPU_FLAGS"
6036     fi
6037    
6038     if test -z "$CFLAGS"; then
6039     echo ""
6040     echo "********************************************************"
6041     echo "* WARNING: Don't know the best CFLAGS for this system *"
6042     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6043     echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
6044     echo "********************************************************"
6045     echo ""
6046     CFLAGS="-O3"
6047     fi
6048    
6049    
6050    
6051     echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
6052     echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
6053     if test "${ac_guessed_cflags+set}" = set; then
6054     echo $ECHO_N "(cached) $ECHO_C" >&6
6055     else
6056     echo 'void f(){}' > conftest.c
6057     if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
6058     ac_guessed_cflags=yes
6059     else
6060     ac_guessed_cflags=no
6061     fi
6062     rm -f conftest*
6063    
6064     fi
6065     echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
6066     echo "${ECHO_T}$ac_guessed_cflags" >&6
6067     if test "$ac_guessed_cflags" = yes; then
6068     :
6069    
6070     else
6071     :
6072    
6073     echo ""
6074     echo "********************************************************"
6075     echo "* WARNING: The guessed CFLAGS don't seem to work with *"
6076     echo "* your compiler. *"
6077     echo "* Use make CFLAGS=..., or edit the top level Makefile *"
6078     echo "********************************************************"
6079     echo ""
6080     CFLAGS=""
6081    
6082     fi
6083    
6084    
6085     fi
6086    
6087    
6088    
6089    
6090    
6091    
6092    
6093     echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
6094     echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
6095     if test "${ac_cv_prog_really_gxx+set}" = set; then
6096     echo $ECHO_N "(cached) $ECHO_C" >&6
6097     else
6098    
6099     cat > conftest.cpp <<EOF
6100     #ifdef __GNUC__
6101     #ifndef __INTEL_COMPILER
6102     yes;
6103     #endif
6104     #endif
6105     EOF
6106     if { ac_try='${CXX-c++} -E conftest.cpp'
6107     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108     (eval $ac_try) 2>&5
6109     ac_status=$?
6110     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111     (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6112     ac_cv_prog_really_gxx=yes
6113     else
6114     ac_cv_prog_really_gxx=no
6115     fi
6116    
6117     fi
6118     echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
6119     echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
6120     if test "$ac_cv_prog_really_gxx" = yes; then
6121     :
6122    
6123     else
6124     :
6125    
6126     fi
6127    
6128    
6129     # Try to determine "good" native compiler flags if none specified on command
6130     # line
6131     if test "$ac_test_CXXFLAGS" != "set"; then
6132     CXXFLAGS=""
6133     case "${host_cpu}-${host_os}" in
6134    
6135     *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
6136     CXXFLAGS="-O"
6137     fi;;
6138     sparc-solaris2*) if test "$CXX" = CC; then
6139     CXXFLAGS="-native -fast -xO5 -dalign"
6140     fi;;
6141     rs6000*-aix*) if test "$CXX" = xlC; then
6142     CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6143     fi;;
6144     powerpc*-aix*)
6145     if test "$CXX" = xlC; then
6146     CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
6147     echo "*******************************************************"
6148     echo "* You have AIX on an unknown powerpc system. It is *"
6149     echo "* recommended that you use *"
6150     echo "* *"
6151     echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6152     echo "* ^^^ *"
6153     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6154     echo "* PowerPC CPU you have. For more info, man cc. *"
6155     echo "*******************************************************"
6156     fi;;
6157     *darwin*)
6158     if test "$CXX" = xlc++; then
6159 chuckv 1579 CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6160 gezelter 1490 fi;;
6161     esac
6162    
6163     # use default flags for gcc on all systems
6164     if test $ac_cv_prog_really_gxx = yes; then
6165     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6166     fi
6167    
6168     # test for gcc-specific flags:
6169     if test $ac_cv_prog_really_gxx = yes; then
6170     # -malign-double for x86 systems
6171    
6172    
6173     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
6174     echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
6175     if test "${ac_align_double+set}" = set; then
6176     echo $ECHO_N "(cached) $ECHO_C" >&6
6177     else
6178     echo 'void f(){}' > conftest.cpp
6179     if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
6180     ac_align_double=yes
6181     else
6182     ac_align_double=no
6183     fi
6184     rm -f conftest*
6185    
6186     fi
6187     echo "$as_me:$LINENO: result: $ac_align_double" >&5
6188     echo "${ECHO_T}$ac_align_double" >&6
6189     if test "$ac_align_double" = yes; then
6190     :
6191     CXXFLAGS="$CXXFLAGS -malign-double"
6192     else
6193     :
6194    
6195     fi
6196    
6197     # -fstrict-aliasing for gcc-2.95+
6198    
6199    
6200     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
6201     echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
6202     if test "${ac_fstrict_aliasing+set}" = set; then
6203     echo $ECHO_N "(cached) $ECHO_C" >&6
6204     else
6205     echo 'void f(){}' > conftest.cpp
6206     if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
6207     ac_fstrict_aliasing=yes
6208     else
6209     ac_fstrict_aliasing=no
6210     fi
6211     rm -f conftest*
6212    
6213     fi
6214     echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6215     echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6216     if test "$ac_fstrict_aliasing" = yes; then
6217     :
6218     CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
6219     else
6220     :
6221    
6222     fi
6223    
6224     fi
6225    
6226     CPU_FLAGS=""
6227     if test $ac_cv_prog_really_gxx = yes; then
6228     case "${host_cpu}" in
6229     i586*)
6230    
6231     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
6232     echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
6233     if test "${ac_cpu_pentium+set}" = set; then
6234     echo $ECHO_N "(cached) $ECHO_C" >&6
6235     else
6236     echo 'void f(){}' > conftest.cpp
6237     if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
6238     ac_cpu_pentium=yes
6239     else
6240     ac_cpu_pentium=no
6241     fi
6242     rm -f conftest*
6243    
6244     fi
6245     echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6246     echo "${ECHO_T}$ac_cpu_pentium" >&6
6247     if test "$ac_cpu_pentium" = yes; then
6248     :
6249     CPU_FLAGS=-mcpu=pentium
6250     else
6251     :
6252    
6253    
6254     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
6255     echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
6256     if test "${ac_pentium+set}" = set; then
6257     echo $ECHO_N "(cached) $ECHO_C" >&6
6258     else
6259     echo 'void f(){}' > conftest.cpp
6260     if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
6261     ac_pentium=yes
6262     else
6263     ac_pentium=no
6264     fi
6265     rm -f conftest*
6266    
6267     fi
6268     echo "$as_me:$LINENO: result: $ac_pentium" >&5
6269     echo "${ECHO_T}$ac_pentium" >&6
6270     if test "$ac_pentium" = yes; then
6271     :
6272     CPU_FLAGS=-mpentium
6273     else
6274     :
6275    
6276     fi
6277    
6278     fi
6279    
6280     ;;
6281     i686*)
6282    
6283     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
6284     echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6285     if test "${ac_cpu_pentiumpro+set}" = set; then
6286     echo $ECHO_N "(cached) $ECHO_C" >&6
6287     else
6288     echo 'void f(){}' > conftest.cpp
6289     if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
6290     ac_cpu_pentiumpro=yes
6291     else
6292     ac_cpu_pentiumpro=no
6293     fi
6294     rm -f conftest*
6295    
6296     fi
6297     echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6298     echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6299     if test "$ac_cpu_pentiumpro" = yes; then
6300     :
6301     CPU_FLAGS=-mcpu=pentiumpro
6302     else
6303     :
6304    
6305    
6306     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
6307     echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
6308     if test "${ac_pentiumpro+set}" = set; then
6309     echo $ECHO_N "(cached) $ECHO_C" >&6
6310     else
6311     echo 'void f(){}' > conftest.cpp
6312     if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
6313     ac_pentiumpro=yes
6314     else
6315     ac_pentiumpro=no
6316     fi
6317     rm -f conftest*
6318    
6319     fi
6320     echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6321     echo "${ECHO_T}$ac_pentiumpro" >&6
6322     if test "$ac_pentiumpro" = yes; then
6323     :
6324     CPU_FLAGS=-mpentiumpro
6325     else
6326     :
6327    
6328     fi
6329    
6330     fi
6331    
6332     ;;
6333     powerpc*)
6334     cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6335     is60x=`echo $cputype | egrep "^600-9e?$"`
6336     if test -n "$is60x"; then
6337    
6338    
6339     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
6340     echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
6341     if test "${ac_m_cpu_60x+set}" = set; then
6342     echo $ECHO_N "(cached) $ECHO_C" >&6
6343     else
6344     echo 'void f(){}' > conftest.cpp
6345     if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
6346     ac_m_cpu_60x=yes
6347     else
6348     ac_m_cpu_60x=no
6349     fi
6350     rm -f conftest*
6351    
6352     fi
6353     echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6354     echo "${ECHO_T}$ac_m_cpu_60x" >&6
6355     if test "$ac_m_cpu_60x" = yes; then
6356     :
6357     CPU_FLAGS=-mcpu=$cputype
6358     else
6359     :
6360    
6361     fi
6362    
6363     elif test "$cputype" = 750; then
6364    
6365    
6366     echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
6367     echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
6368     if test "${ac_cv_prog_gxx_2_95+set}" = set; then
6369     echo $ECHO_N "(cached) $ECHO_C" >&6
6370     else
6371    
6372     cat > conftest.cpp <<EOF
6373     #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6374     # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6375     yes;
6376     # endif
6377     #endif
6378     EOF
6379     if { ac_try='${CXX-c++} -E conftest.cpp'
6380     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381     (eval $ac_try) 2>&5
6382     ac_status=$?
6383     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384     (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6385     ac_cv_prog_gxx_2_95=yes
6386     else
6387     ac_cv_prog_gxx_2_95=no
6388     fi
6389    
6390     fi
6391     echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
6392     echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
6393     if test "$ac_cv_prog_gxx_2_95" = yes; then
6394     :
6395    
6396    
6397     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
6398     echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
6399     if test "${ac_m_cpu_750+set}" = set; then
6400     echo $ECHO_N "(cached) $ECHO_C" >&6
6401     else
6402     echo 'void f(){}' > conftest.cpp
6403     if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
6404     ac_m_cpu_750=yes
6405     else
6406     ac_m_cpu_750=no
6407     fi
6408     rm -f conftest*
6409    
6410     fi
6411     echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6412     echo "${ECHO_T}$ac_m_cpu_750" >&6
6413     if test "$ac_m_cpu_750" = yes; then
6414     :
6415     CPU_FLAGS=-mcpu=750
6416     else
6417     :
6418    
6419     fi
6420    
6421     else
6422     :
6423    
6424     fi
6425    
6426     fi
6427     if test -z "$CPU_FLAGS"; then
6428    
6429    
6430     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
6431     echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
6432     if test "${ac_m_cpu_powerpc+set}" = set; then
6433     echo $ECHO_N "(cached) $ECHO_C" >&6
6434     else
6435     echo 'void f(){}' > conftest.cpp
6436     if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
6437     ac_m_cpu_powerpc=yes
6438     else
6439     ac_m_cpu_powerpc=no
6440     fi
6441     rm -f conftest*
6442    
6443     fi
6444     echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6445     echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6446     if test "$ac_m_cpu_powerpc" = yes; then
6447     :
6448     CPU_FLAGS=-mcpu=powerpc
6449     else
6450     :
6451    
6452     fi
6453    
6454     fi
6455     if test -z "$CPU_FLAGS"; then
6456    
6457    
6458     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
6459     echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
6460     if test "${ac_m_powerpc+set}" = set; then
6461     echo $ECHO_N "(cached) $ECHO_C" >&6
6462     else
6463     echo 'void f(){}' > conftest.cpp
6464     if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
6465     ac_m_powerpc=yes
6466     else
6467     ac_m_powerpc=no
6468     fi
6469     rm -f conftest*
6470    
6471     fi
6472     echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6473     echo "${ECHO_T}$ac_m_powerpc" >&6
6474     if test "$ac_m_powerpc" = yes; then
6475     :
6476     CPU_FLAGS=-mpowerpc
6477     else
6478     :
6479    
6480     fi
6481    
6482     fi
6483     esac
6484     fi
6485    
6486     if test -n "$CPU_FLAGS"; then
6487     CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
6488     fi
6489    
6490     if test -z "$CXXFLAGS"; then
6491     echo ""
6492     echo "**********************************************************"
6493     echo "* WARNING: Don't know the best CXXFLAGS for this system *"
6494     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6495     echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
6496     echo "**********************************************************"
6497     echo ""
6498     CXXFLAGS="-O3"
6499     fi
6500    
6501    
6502    
6503     echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
6504     echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
6505     if test "${ac_guessed_cxxflags+set}" = set; then
6506     echo $ECHO_N "(cached) $ECHO_C" >&6
6507     else
6508     echo 'void f(){}' > conftest.cpp
6509     if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
6510     ac_guessed_cxxflags=yes
6511     else
6512     ac_guessed_cxxflags=no
6513     fi
6514     rm -f conftest*
6515    
6516     fi
6517     echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
6518     echo "${ECHO_T}$ac_guessed_cxxflags" >&6
6519     if test "$ac_guessed_cxxflags" = yes; then
6520     :
6521    
6522     else
6523     :
6524    
6525     echo ""
6526     echo "**********************************************************"
6527     echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
6528     echo "* your compiler. *"
6529     echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
6530     echo "**********************************************************"
6531     echo ""
6532     CXXFLAGS=""
6533    
6534     fi
6535    
6536    
6537     fi
6538    
6539    
6540    
6541    
6542    
6543     # Try to determine "good" native compiler flags if none specified on command
6544     # line
6545    
6546     if test x"$F90FLAGS" = x ; then
6547     F90FLAGS=""
6548     case "${host_cpu}-${host_os}" in
6549    
6550     *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
6551     F90FLAGS="-O"
6552     fi;;
6553     rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
6554     F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6555     fi;;
6556     powerpc*-aix*)
6557     if test "$F90" = f90 -o "$F90" = xlf90; then
6558     F90FLAGS="-O3 -qarch=ppc -qansialias -w"
6559     echo "*******************************************************"
6560     echo "* You have AIX on an unknown powerpc system. It is *"
6561     echo "* recommended that you use *"
6562     echo "* *"
6563     echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
6564     echo "* ^^^ *"
6565     echo "* where xxx is 601, 603, 604, or whatever kind of *"
6566     echo "* PowerPC CPU you have. For more info, man xlf. *"
6567     echo "*******************************************************"
6568     fi;;
6569     *darwin*)
6570     if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
6571 chuckv 1579 F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
6572 gezelter 1490 fi;;
6573     esac
6574    
6575     if test -n "$CPU_FLAGS"; then
6576     F90FLAGS="$F90FLAGS $CPU_FLAGS"
6577     fi
6578    
6579     if test -z "$F90FLAGS"; then
6580     echo ""
6581     echo "**********************************************************"
6582     echo "* WARNING: Don't know the best F90FLAGS for this system *"
6583     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6584     echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
6585     echo "**********************************************************"
6586     echo ""
6587     F90FLAGS="-O3"
6588     fi
6589    
6590    
6591     echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
6592     echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
6593     if test "${ac_guessed_f90flags+set}" = set; then
6594     echo $ECHO_N "(cached) $ECHO_C" >&6
6595     else
6596    
6597    
6598    
6599     ac_ext=f90
6600     ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6601     ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602     ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6603    
6604     echo 'program main' > conftest.$ac_ext
6605     echo 'end program main' >> conftest.$ac_ext
6606     ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
6607     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608     (eval $ac_compile) 2>&5
6609     ac_status=$?
6610     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611     (exit $ac_status); }; then
6612     ac_guessed_f90flags=yes
6613     else
6614     ac_guessed_f90flags=no
6615     fi
6616     rm -f conftest*
6617     ac_ext=c
6618     ac_cpp='$CPP $CPPFLAGS'
6619     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6622    
6623    
6624     fi
6625     echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
6626     echo "${ECHO_T}$ac_guessed_f90flags" >&6
6627     if test "$ac_guessed_f90flags" = yes; then
6628     :
6629    
6630     else
6631     :
6632    
6633     echo ""
6634     echo "**********************************************************"
6635     echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
6636     echo "* your compiler. *"
6637     echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
6638     echo "**********************************************************"
6639     echo ""
6640     F90FLAGS=""
6641    
6642     fi
6643    
6644    
6645     fi
6646    
6647     ;;
6648     esac
6649    
6650     # Find a good install program. We prefer a C program (faster),
6651     # so one script is as good as another. But avoid the broken or
6652     # incompatible versions:
6653     # SysV /etc/install, /usr/sbin/install
6654     # SunOS /usr/etc/install
6655     # IRIX /sbin/install
6656     # AIX /bin/install
6657     # AmigaOS /C/install, which installs bootblocks on floppy discs
6658     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6659     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6660     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6661     # OS/2's system install, which has a completely different semantic
6662     # ./install, which can be erroneously created by make from ./install.sh.
6663     echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6664     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6665     if test -z "$INSTALL"; then
6666     if test "${ac_cv_path_install+set}" = set; then
6667     echo $ECHO_N "(cached) $ECHO_C" >&6
6668     else
6669     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670     for as_dir in $PATH
6671     do
6672     IFS=$as_save_IFS
6673     test -z "$as_dir" && as_dir=.
6674     # Account for people who put trailing slashes in PATH elements.
6675     case $as_dir/ in
6676     ./ | .// | /cC/* | \
6677     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6678     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6679     /usr/ucb/* ) ;;
6680     *)
6681     # OSF1 and SCO ODT 3.0 have their own names for install.
6682     # Don't use installbsd from OSF since it installs stuff as root
6683     # by default.
6684     for ac_prog in ginstall scoinst install; do
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6687     if test $ac_prog = install &&
6688     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6689     # AIX install. It has an incompatible calling convention.
6690     :
6691     elif test $ac_prog = install &&
6692     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6693     # program-specific install script used by HP pwplus--don't use.
6694     :
6695     else
6696     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6697     break 3
6698     fi
6699     fi
6700     done
6701     done
6702     ;;
6703     esac
6704     done
6705    
6706    
6707     fi
6708     if test "${ac_cv_path_install+set}" = set; then
6709     INSTALL=$ac_cv_path_install
6710     else
6711     # As a last resort, use the slow shell script. We don't cache a
6712     # path for INSTALL within a source directory, because that will
6713     # break other packages using the cache if that directory is
6714     # removed, or if the path is relative.
6715     INSTALL=$ac_install_sh
6716     fi
6717     fi
6718     echo "$as_me:$LINENO: result: $INSTALL" >&5
6719     echo "${ECHO_T}$INSTALL" >&6
6720    
6721     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6722     # It thinks the first close brace ends the variable substitution.
6723     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6724    
6725     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6726    
6727     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6728    
6729     echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730     echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6731     LN_S=$as_ln_s
6732     if test "$LN_S" = "ln -s"; then
6733     echo "$as_me:$LINENO: result: yes" >&5
6734     echo "${ECHO_T}yes" >&6
6735     else
6736     echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737     echo "${ECHO_T}no, using $LN_S" >&6
6738     fi
6739    
6740     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6741     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6742     set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6743     if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6744     echo $ECHO_N "(cached) $ECHO_C" >&6
6745     else
6746     cat >conftest.make <<\_ACEOF
6747     all:
6748     @echo 'ac_maketemp="$(MAKE)"'
6749     _ACEOF
6750     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6751     eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6752     if test -n "$ac_maketemp"; then
6753     eval ac_cv_prog_make_${ac_make}_set=yes
6754     else
6755     eval ac_cv_prog_make_${ac_make}_set=no
6756     fi
6757     rm -f conftest.make
6758     fi
6759     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6760     echo "$as_me:$LINENO: result: yes" >&5
6761     echo "${ECHO_T}yes" >&6
6762     SET_MAKE=
6763     else
6764     echo "$as_me:$LINENO: result: no" >&5
6765     echo "${ECHO_T}no" >&6
6766     SET_MAKE="MAKE=${MAKE-make}"
6767     fi
6768    
6769     if test -n "$ac_tool_prefix"; then
6770     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6771     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6772     echo "$as_me:$LINENO: checking for $ac_word" >&5
6773     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6774     if test "${ac_cv_prog_RANLIB+set}" = set; then
6775     echo $ECHO_N "(cached) $ECHO_C" >&6
6776     else
6777     if test -n "$RANLIB"; then
6778     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6779     else
6780     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781     for as_dir in $PATH
6782     do
6783     IFS=$as_save_IFS
6784     test -z "$as_dir" && as_dir=.
6785     for ac_exec_ext in '' $ac_executable_extensions; do
6786     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790     fi
6791     done
6792     done
6793    
6794     fi
6795     fi
6796     RANLIB=$ac_cv_prog_RANLIB
6797     if test -n "$RANLIB"; then
6798     echo "$as_me:$LINENO: result: $RANLIB" >&5
6799     echo "${ECHO_T}$RANLIB" >&6
6800     else
6801     echo "$as_me:$LINENO: result: no" >&5
6802     echo "${ECHO_T}no" >&6
6803     fi
6804    
6805     fi
6806     if test -z "$ac_cv_prog_RANLIB"; then
6807     ac_ct_RANLIB=$RANLIB
6808     # Extract the first word of "ranlib", so it can be a program name with args.
6809     set dummy ranlib; ac_word=$2
6810     echo "$as_me:$LINENO: checking for $ac_word" >&5
6811     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6812     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6813     echo $ECHO_N "(cached) $ECHO_C" >&6
6814     else
6815     if test -n "$ac_ct_RANLIB"; then
6816     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817     else
6818     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819     for as_dir in $PATH
6820     do
6821     IFS=$as_save_IFS
6822     test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_ac_ct_RANLIB="ranlib"
6826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828     fi
6829     done
6830     done
6831    
6832     test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6833     fi
6834     fi
6835     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6836     if test -n "$ac_ct_RANLIB"; then
6837     echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6838     echo "${ECHO_T}$ac_ct_RANLIB" >&6
6839     else
6840     echo "$as_me:$LINENO: result: no" >&5
6841     echo "${ECHO_T}no" >&6
6842     fi
6843    
6844     RANLIB=$ac_ct_RANLIB
6845     else
6846     RANLIB="$ac_cv_prog_RANLIB"
6847     fi
6848    
6849     for ac_prog in 'bison -y' byacc
6850     do
6851     # Extract the first word of "$ac_prog", so it can be a program name with args.
6852     set dummy $ac_prog; ac_word=$2
6853     echo "$as_me:$LINENO: checking for $ac_word" >&5
6854     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855     if test "${ac_cv_prog_YACC+set}" = set; then
6856     echo $ECHO_N "(cached) $ECHO_C" >&6
6857     else
6858     if test -n "$YACC"; then
6859     ac_cv_prog_YACC="$YACC" # Let the user override the test.
6860     else
6861     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862     for as_dir in $PATH
6863     do
6864     IFS=$as_save_IFS
6865     test -z "$as_dir" && as_dir=.
6866     for ac_exec_ext in '' $ac_executable_extensions; do
6867     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868     ac_cv_prog_YACC="$ac_prog"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871     fi
6872     done
6873     done
6874    
6875     fi
6876     fi
6877     YACC=$ac_cv_prog_YACC
6878     if test -n "$YACC"; then
6879     echo "$as_me:$LINENO: result: $YACC" >&5
6880     echo "${ECHO_T}$YACC" >&6
6881     else
6882     echo "$as_me:$LINENO: result: no" >&5
6883     echo "${ECHO_T}no" >&6
6884     fi
6885    
6886     test -n "$YACC" && break
6887     done
6888     test -n "$YACC" || YACC="yacc"
6889    
6890     for ac_prog in flex lex
6891     do
6892     # Extract the first word of "$ac_prog", so it can be a program name with args.
6893     set dummy $ac_prog; ac_word=$2
6894     echo "$as_me:$LINENO: checking for $ac_word" >&5
6895     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896     if test "${ac_cv_prog_LEX+set}" = set; then
6897     echo $ECHO_N "(cached) $ECHO_C" >&6
6898     else
6899     if test -n "$LEX"; then
6900     ac_cv_prog_LEX="$LEX" # Let the user override the test.
6901     else
6902     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903     for as_dir in $PATH
6904     do
6905     IFS=$as_save_IFS
6906     test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_prog_LEX="$ac_prog"
6910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912     fi
6913     done
6914     done
6915    
6916     fi
6917     fi
6918     LEX=$ac_cv_prog_LEX
6919     if test -n "$LEX"; then
6920     echo "$as_me:$LINENO: result: $LEX" >&5
6921     echo "${ECHO_T}$LEX" >&6
6922     else
6923     echo "$as_me:$LINENO: result: no" >&5
6924     echo "${ECHO_T}no" >&6
6925     fi
6926    
6927     test -n "$LEX" && break
6928     done
6929     test -n "$LEX" || LEX=":"
6930    
6931     if test -z "$LEXLIB"
6932     then
6933     echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6934     echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6935     if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6936     echo $ECHO_N "(cached) $ECHO_C" >&6
6937     else
6938     ac_check_lib_save_LIBS=$LIBS
6939     LIBS="-lfl $LIBS"
6940     cat >conftest.$ac_ext <<_ACEOF
6941     /* confdefs.h. */
6942     _ACEOF
6943     cat confdefs.h >>conftest.$ac_ext
6944     cat >>conftest.$ac_ext <<_ACEOF
6945     /* end confdefs.h. */
6946    
6947     /* Override any gcc2 internal prototype to avoid an error. */
6948     #ifdef __cplusplus
6949     extern "C"
6950     #endif
6951     /* We use char because int might match the return type of a gcc2
6952     builtin and then its argument prototype would still apply. */
6953     char yywrap ();
6954     int
6955     main ()
6956     {
6957     yywrap ();
6958     ;
6959     return 0;
6960     }
6961     _ACEOF
6962     rm -f conftest.$ac_objext conftest$ac_exeext
6963     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964     (eval $ac_link) 2>conftest.er1
6965     ac_status=$?
6966     grep -v '^ *+' conftest.er1 >conftest.err
6967     rm -f conftest.er1
6968     cat conftest.err >&5
6969     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970     (exit $ac_status); } &&
6971     { ac_try='test -z "$ac_c_werror_flag"
6972     || test ! -s conftest.err'
6973     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974     (eval $ac_try) 2>&5
6975     ac_status=$?
6976     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977     (exit $ac_status); }; } &&
6978     { ac_try='test -s conftest$ac_exeext'
6979     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980     (eval $ac_try) 2>&5
6981     ac_status=$?
6982     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983     (exit $ac_status); }; }; then
6984     ac_cv_lib_fl_yywrap=yes
6985     else
6986     echo "$as_me: failed program was:" >&5
6987     sed 's/^/| /' conftest.$ac_ext >&5
6988    
6989     ac_cv_lib_fl_yywrap=no
6990     fi
6991     rm -f conftest.err conftest.$ac_objext \
6992     conftest$ac_exeext conftest.$ac_ext
6993     LIBS=$ac_check_lib_save_LIBS
6994     fi
6995     echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6996     echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6997     if test $ac_cv_lib_fl_yywrap = yes; then
6998     LEXLIB="-lfl"
6999     else
7000     echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7001     echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7002     if test "${ac_cv_lib_l_yywrap+set}" = set; then
7003     echo $ECHO_N "(cached) $ECHO_C" >&6
7004     else
7005     ac_check_lib_save_LIBS=$LIBS
7006     LIBS="-ll $LIBS"
7007     cat >conftest.$ac_ext <<_ACEOF
7008     /* confdefs.h. */
7009     _ACEOF
7010     cat confdefs.h >>conftest.$ac_ext
7011     cat >>conftest.$ac_ext <<_ACEOF
7012     /* end confdefs.h. */
7013    
7014     /* Override any gcc2 internal prototype to avoid an error. */
7015     #ifdef __cplusplus
7016     extern "C"
7017     #endif
7018     /* We use char because int might match the return type of a gcc2
7019     builtin and then its argument prototype would still apply. */
7020     char yywrap ();
7021     int
7022     main ()
7023     {
7024     yywrap ();
7025     ;
7026     return 0;
7027     }
7028     _ACEOF
7029     rm -f conftest.$ac_objext conftest$ac_exeext
7030     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031     (eval $ac_link) 2>conftest.er1
7032     ac_status=$?
7033     grep -v '^ *+' conftest.er1 >conftest.err
7034     rm -f conftest.er1
7035     cat conftest.err >&5
7036     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037     (exit $ac_status); } &&
7038     { ac_try='test -z "$ac_c_werror_flag"
7039     || test ! -s conftest.err'
7040     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041     (eval $ac_try) 2>&5
7042     ac_status=$?
7043     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044     (exit $ac_status); }; } &&
7045     { ac_try='test -s conftest$ac_exeext'
7046     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047     (eval $ac_try) 2>&5
7048     ac_status=$?
7049     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050     (exit $ac_status); }; }; then
7051     ac_cv_lib_l_yywrap=yes
7052     else
7053     echo "$as_me: failed program was:" >&5
7054     sed 's/^/| /' conftest.$ac_ext >&5
7055    
7056     ac_cv_lib_l_yywrap=no
7057     fi
7058     rm -f conftest.err conftest.$ac_objext \
7059     conftest$ac_exeext conftest.$ac_ext
7060     LIBS=$ac_check_lib_save_LIBS
7061     fi
7062     echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7063     echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7064     if test $ac_cv_lib_l_yywrap = yes; then
7065     LEXLIB="-ll"
7066     fi
7067    
7068     fi
7069    
7070     fi
7071    
7072     if test "x$LEX" != "x:"; then
7073     echo "$as_me:$LINENO: checking lex output file root" >&5
7074     echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7075     if test "${ac_cv_prog_lex_root+set}" = set; then
7076     echo $ECHO_N "(cached) $ECHO_C" >&6
7077     else
7078     # The minimal lex program is just a single line: %%. But some broken lexes
7079     # (Solaris, I think it was) want two %% lines, so accommodate them.
7080     cat >conftest.l <<_ACEOF
7081     %%
7082     %%
7083     _ACEOF
7084     { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7085     (eval $LEX conftest.l) 2>&5
7086     ac_status=$?
7087     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088     (exit $ac_status); }
7089     if test -f lex.yy.c; then
7090     ac_cv_prog_lex_root=lex.yy
7091     elif test -f lexyy.c; then
7092     ac_cv_prog_lex_root=lexyy
7093     else
7094     { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7095     echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7096     { (exit 1); exit 1; }; }
7097     fi
7098     fi
7099     echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7100     echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7101     rm -f conftest.l
7102     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7103    
7104     echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7105     echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7106     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7107     echo $ECHO_N "(cached) $ECHO_C" >&6
7108     else
7109     # POSIX says lex can declare yytext either as a pointer or an array; the
7110     # default is implementation-dependent. Figure out which it is, since
7111     # not all implementations provide the %pointer and %array declarations.
7112     ac_cv_prog_lex_yytext_pointer=no
7113     echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7114     ac_save_LIBS=$LIBS
7115     LIBS="$LIBS $LEXLIB"
7116     cat >conftest.$ac_ext <<_ACEOF
7117     `cat $LEX_OUTPUT_ROOT.c`
7118     _ACEOF
7119     rm -f conftest.$ac_objext conftest$ac_exeext
7120     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121     (eval $ac_link) 2>conftest.er1
7122     ac_status=$?
7123     grep -v '^ *+' conftest.er1 >conftest.err
7124     rm -f conftest.er1
7125     cat conftest.err >&5
7126     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127     (exit $ac_status); } &&
7128     { ac_try='test -z "$ac_c_werror_flag"
7129     || test ! -s conftest.err'
7130     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131     (eval $ac_try) 2>&5
7132     ac_status=$?
7133     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134     (exit $ac_status); }; } &&
7135     { ac_try='test -s conftest$ac_exeext'
7136     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137     (eval $ac_try) 2>&5
7138     ac_status=$?
7139     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140     (exit $ac_status); }; }; then
7141     ac_cv_prog_lex_yytext_pointer=yes
7142     else
7143     echo "$as_me: failed program was:" >&5
7144     sed 's/^/| /' conftest.$ac_ext >&5
7145    
7146     fi
7147     rm -f conftest.err conftest.$ac_objext \
7148     conftest$ac_exeext conftest.$ac_ext
7149     LIBS=$ac_save_LIBS
7150     rm -f "${LEX_OUTPUT_ROOT}.c"
7151    
7152     fi
7153     echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7154     echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7155     if test $ac_cv_prog_lex_yytext_pointer = yes; then
7156    
7157     cat >>confdefs.h <<\_ACEOF
7158     #define YYTEXT_POINTER 1
7159     _ACEOF
7160    
7161     fi
7162    
7163     fi
7164     # Extract the first word of "ar", so it can be a program name with args.
7165     set dummy ar; ac_word=$2
7166     echo "$as_me:$LINENO: checking for $ac_word" >&5
7167     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7168     if test "${ac_cv_prog_AR+set}" = set; then
7169     echo $ECHO_N "(cached) $ECHO_C" >&6
7170     else
7171     if test -n "$AR"; then
7172     ac_cv_prog_AR="$AR" # Let the user override the test.
7173     else
7174     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175     for as_dir in $PATH
7176     do
7177     IFS=$as_save_IFS
7178     test -z "$as_dir" && as_dir=.
7179     for ac_exec_ext in '' $ac_executable_extensions; do
7180     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181     ac_cv_prog_AR="ar"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184     fi
7185     done
7186     done
7187    
7188     test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
7189     fi
7190     fi
7191     AR=$ac_cv_prog_AR
7192     if test -n "$AR"; then
7193     echo "$as_me:$LINENO: result: $AR" >&5
7194     echo "${ECHO_T}$AR" >&6
7195     else
7196     echo "$as_me:$LINENO: result: no" >&5
7197     echo "${ECHO_T}no" >&6
7198     fi
7199    
7200     if test "$AR" = "NONE"; then
7201     { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
7202     echo "$as_me: error: --> Can't find \`ar'!" >&2;}
7203     { (exit 1); exit 1; }; }
7204     cat >confcache <<\_ACEOF
7205     # This file is a shell script that caches the results of configure
7206     # tests run on this system so they can be shared between configure
7207     # scripts and configure runs, see configure's option --config-cache.
7208     # It is not useful on other systems. If it contains results you don't
7209     # want to keep, you may remove or edit it.
7210     #
7211     # config.status only pays attention to the cache file if you give it
7212     # the --recheck option to rerun configure.
7213     #
7214     # `ac_cv_env_foo' variables (set or unset) will be overridden when
7215     # loading this file, other *unset* `ac_cv_foo' will be assigned the
7216     # following values.
7217    
7218     _ACEOF
7219    
7220     # The following way of writing the cache mishandles newlines in values,
7221     # but we know of no workaround that is simple, portable, and efficient.
7222     # So, don't put newlines in cache variables' values.
7223     # Ultrix sh set writes to stderr and can't be redirected directly,
7224     # and sets the high bit in the cache file unless we assign to the vars.
7225     {
7226     (set) 2>&1 |
7227     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7228     *ac_space=\ *)
7229     # `set' does not quote correctly, so add quotes (double-quote
7230     # substitution turns \\\\ into \\, and sed turns \\ into \).
7231     sed -n \
7232     "s/'/'\\\\''/g;
7233     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7234     ;;
7235     *)
7236     # `set' quotes correctly as required by POSIX, so do not add quotes.
7237     sed -n \
7238     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7239     ;;
7240     esac;
7241     } |
7242     sed '
7243     t clear
7244     : clear
7245     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7246     t end
7247     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7248     : end' >>confcache
7249     if diff $cache_file confcache >/dev/null 2>&1; then :; else
7250     if test -w $cache_file; then
7251     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7252     cat confcache >$cache_file
7253     else
7254     echo "not updating unwritable cache $cache_file"
7255     fi
7256     fi
7257     rm -f confcache
7258     exit 1
7259     fi
7260    
7261    
7262    
7263     # Check whether --with-mpi or --without-mpi was given.
7264     if test "${with_mpi+set}" = set; then
7265     withval="$with_mpi"
7266     with_mpi=$withval
7267     else
7268     with_mpi="no"
7269     fi;
7270    
7271     case "x$with_mpi" in
7272     xyes | "x") USE_MPI=yes;;
7273     xno) USE_MPI=no ;;
7274     *) MPI="$with_mpi"; USE_MPI=yes ;;
7275     esac
7276     if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
7277     MPI="/usr/local"
7278     fi
7279     if test "$USE_MPI" = "yes"; then
7280    
7281    
7282     # Set variables...
7283     MPI_LIB_DIR="$MPI/lib"
7284     MPI_INC_DIR="$MPI/include"
7285    
7286    
7287    
7288     echo "$as_me:$LINENO: checking for mpi.h" >&5
7289     echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
7290     have_mpi_h=0
7291     echo '#include <mpi.h>' > conftest.cc
7292     if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
7293     echo "$as_me:$LINENO: result: yes" >&5
7294     echo "${ECHO_T}yes" >&6
7295     have_mpi_h=1
7296     else
7297     echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7298     echo "${ECHO_T}no! Check MPI include paths" >&6
7299     USE_MPI="no"
7300     fi
7301     rm -f conftest*
7302     if test "$have_mpi_h" = 1; then
7303    
7304     cat >>confdefs.h <<\_ACEOF
7305     #define HAVE_MPI_H 1
7306     _ACEOF
7307    
7308     fi
7309    
7310     echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
7311     echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
7312     have_mpif_h=0
7313     rm -f conftest*
7314     cat >conftest.f90 <<EOF
7315     program main
7316     include 'mpif.h'
7317     end
7318     EOF
7319     if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
7320     echo "$as_me:$LINENO: result: yes" >&5
7321     echo "${ECHO_T}yes" >&6
7322     MPI_F90_INC="$MPI_INC_DIR"
7323     have_mpif_h=1
7324     else
7325     if test -s conftest.out ; then
7326     cat conftest.out >> config.log
7327     fi
7328     echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7329     echo "${ECHO_T}no! Check MPI include paths" >&6
7330     USE_MPI="no"
7331     fi
7332     rm -f conftest*
7333    
7334     if test "$have_mpif_h" = 1; then
7335    
7336     cat >>confdefs.h <<\_ACEOF
7337     #define HAVE_MPIF_H 1
7338     _ACEOF
7339    
7340     fi
7341    
7342     ac_ext=c
7343     ac_cpp='$CPP $CPPFLAGS'
7344     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347    
7348     ac_save_LDFLAGS=$LDFLAGS
7349     LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
7350    
7351     if test x = x"$MPI_LIB"; then
7352     echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7353     echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7354     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7355     echo $ECHO_N "(cached) $ECHO_C" >&6
7356     else
7357     ac_check_lib_save_LIBS=$LIBS
7358     LIBS="-lmpich $LIBS"
7359     cat >conftest.$ac_ext <<_ACEOF
7360     /* confdefs.h. */
7361     _ACEOF
7362     cat confdefs.h >>conftest.$ac_ext
7363     cat >>conftest.$ac_ext <<_ACEOF
7364     /* end confdefs.h. */
7365    
7366     /* Override any gcc2 internal prototype to avoid an error. */
7367     #ifdef __cplusplus
7368     extern "C"
7369     #endif
7370     /* We use char because int might match the return type of a gcc2
7371     builtin and then its argument prototype would still apply. */
7372     char MPI_Init ();
7373     int
7374     main ()
7375     {
7376     MPI_Init ();
7377     ;
7378     return 0;
7379     }
7380     _ACEOF
7381     rm -f conftest.$ac_objext conftest$ac_exeext
7382     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7383     (eval $ac_link) 2>conftest.er1
7384     ac_status=$?
7385     grep -v '^ *+' conftest.er1 >conftest.err
7386     rm -f conftest.er1
7387     cat conftest.err >&5
7388     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389     (exit $ac_status); } &&
7390     { ac_try='test -z "$ac_c_werror_flag"
7391     || test ! -s conftest.err'
7392     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393     (eval $ac_try) 2>&5
7394     ac_status=$?
7395     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396     (exit $ac_status); }; } &&
7397     { ac_try='test -s conftest$ac_exeext'
7398     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399     (eval $ac_try) 2>&5
7400     ac_status=$?
7401     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402     (exit $ac_status); }; }; then
7403     ac_cv_lib_mpich_MPI_Init=yes
7404     else
7405     echo "$as_me: failed program was:" >&5
7406     sed 's/^/| /' conftest.$ac_ext >&5
7407    
7408     ac_cv_lib_mpich_MPI_Init=no
7409     fi
7410     rm -f conftest.err conftest.$ac_objext \
7411     conftest$ac_exeext conftest.$ac_ext
7412     LIBS=$ac_check_lib_save_LIBS
7413     fi
7414     echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7415     echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7416     if test $ac_cv_lib_mpich_MPI_Init = yes; then
7417     MPI_LIB="-lmpich"
7418     fi
7419    
7420     fi
7421     if test x = x"$MPI_LIB"; then
7422     echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7423     echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7424     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7425     echo $ECHO_N "(cached) $ECHO_C" >&6
7426     else
7427     ac_check_lib_save_LIBS=$LIBS
7428     LIBS="-lmpi $LIBS"
7429     cat >conftest.$ac_ext <<_ACEOF
7430     /* confdefs.h. */
7431     _ACEOF
7432     cat confdefs.h >>conftest.$ac_ext
7433     cat >>conftest.$ac_ext <<_ACEOF
7434     /* end confdefs.h. */
7435    
7436     /* Override any gcc2 internal prototype to avoid an error. */
7437     #ifdef __cplusplus
7438     extern "C"
7439     #endif
7440     /* We use char because int might match the return type of a gcc2
7441     builtin and then its argument prototype would still apply. */
7442     char MPI_Init ();
7443     int
7444     main ()
7445     {
7446     MPI_Init ();
7447     ;
7448     return 0;
7449     }
7450     _ACEOF
7451     rm -f conftest.$ac_objext conftest$ac_exeext
7452     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7453     (eval $ac_link) 2>conftest.er1
7454     ac_status=$?
7455     grep -v '^ *+' conftest.er1 >conftest.err
7456     rm -f conftest.er1
7457     cat conftest.err >&5
7458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459     (exit $ac_status); } &&
7460     { ac_try='test -z "$ac_c_werror_flag"
7461     || test ! -s conftest.err'
7462     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463     (eval $ac_try) 2>&5
7464     ac_status=$?
7465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466     (exit $ac_status); }; } &&
7467     { ac_try='test -s conftest$ac_exeext'
7468     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469     (eval $ac_try) 2>&5
7470     ac_status=$?
7471     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472     (exit $ac_status); }; }; then
7473     ac_cv_lib_mpi_MPI_Init=yes
7474     else
7475     echo "$as_me: failed program was:" >&5
7476     sed 's/^/| /' conftest.$ac_ext >&5
7477    
7478     ac_cv_lib_mpi_MPI_Init=no
7479     fi
7480     rm -f conftest.err conftest.$ac_objext \
7481     conftest$ac_exeext conftest.$ac_ext
7482     LIBS=$ac_check_lib_save_LIBS
7483     fi
7484     echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7485     echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7486     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7487     MPI_LIB="-lmpi"
7488     fi
7489    
7490     fi
7491     $as_unset ac_cv_lib_mpi_MPI_Init
7492     if test x = x"$MPI_LIB"; then
7493     echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7494     echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7495     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7496     echo $ECHO_N "(cached) $ECHO_C" >&6
7497     else
7498     ac_check_lib_save_LIBS=$LIBS
7499     LIBS="-lmpi "-llam" $LIBS"
7500     cat >conftest.$ac_ext <<_ACEOF
7501     /* confdefs.h. */
7502     _ACEOF
7503     cat confdefs.h >>conftest.$ac_ext
7504     cat >>conftest.$ac_ext <<_ACEOF
7505     /* end confdefs.h. */
7506    
7507     /* Override any gcc2 internal prototype to avoid an error. */
7508     #ifdef __cplusplus
7509     extern "C"
7510     #endif
7511     /* We use char because int might match the return type of a gcc2
7512     builtin and then its argument prototype would still apply. */
7513     char MPI_Init ();
7514     int
7515     main ()
7516     {
7517     MPI_Init ();
7518     ;
7519     return 0;
7520     }
7521     _ACEOF
7522     rm -f conftest.$ac_objext conftest$ac_exeext
7523     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524     (eval $ac_link) 2>conftest.er1
7525     ac_status=$?
7526     grep -v '^ *+' conftest.er1 >conftest.err
7527     rm -f conftest.er1
7528     cat conftest.err >&5
7529     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530     (exit $ac_status); } &&
7531     { ac_try='test -z "$ac_c_werror_flag"
7532     || test ! -s conftest.err'
7533     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534     (eval $ac_try) 2>&5
7535     ac_status=$?
7536     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537     (exit $ac_status); }; } &&
7538     { ac_try='test -s conftest$ac_exeext'
7539     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540     (eval $ac_try) 2>&5
7541     ac_status=$?
7542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543     (exit $ac_status); }; }; then
7544     ac_cv_lib_mpi_MPI_Init=yes
7545     else
7546     echo "$as_me: failed program was:" >&5
7547     sed 's/^/| /' conftest.$ac_ext >&5
7548    
7549     ac_cv_lib_mpi_MPI_Init=no
7550     fi
7551     rm -f conftest.err conftest.$ac_objext \
7552     conftest$ac_exeext conftest.$ac_ext
7553     LIBS=$ac_check_lib_save_LIBS
7554     fi
7555     echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7556     echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7557     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7558     MPI_LIB="-lmpi -llam"
7559     fi
7560    
7561     fi
7562 chuckv 1619 $as_unset ac_cv_lib_mpich_MPI_Init
7563     if test x = x"$MPI_LIB"; then
7564     echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7565     echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7566     if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7567     echo $ECHO_N "(cached) $ECHO_C" >&6
7568     else
7569     ac_check_lib_save_LIBS=$LIBS
7570     LIBS="-lmpich "-lpmpich" $LIBS"
7571     cat >conftest.$ac_ext <<_ACEOF
7572     /* confdefs.h. */
7573     _ACEOF
7574     cat confdefs.h >>conftest.$ac_ext
7575     cat >>conftest.$ac_ext <<_ACEOF
7576     /* end confdefs.h. */
7577 gezelter 1490
7578 chuckv 1619 /* Override any gcc2 internal prototype to avoid an error. */
7579     #ifdef __cplusplus
7580     extern "C"
7581     #endif
7582     /* We use char because int might match the return type of a gcc2
7583     builtin and then its argument prototype would still apply. */
7584     char MPI_Init ();
7585     int
7586     main ()
7587     {
7588     MPI_Init ();
7589     ;
7590     return 0;
7591     }
7592     _ACEOF
7593     rm -f conftest.$ac_objext conftest$ac_exeext
7594     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595     (eval $ac_link) 2>conftest.er1
7596     ac_status=$?
7597     grep -v '^ *+' conftest.er1 >conftest.err
7598     rm -f conftest.er1
7599     cat conftest.err >&5
7600     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601     (exit $ac_status); } &&
7602     { ac_try='test -z "$ac_c_werror_flag"
7603     || test ! -s conftest.err'
7604     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605     (eval $ac_try) 2>&5
7606     ac_status=$?
7607     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608     (exit $ac_status); }; } &&
7609     { ac_try='test -s conftest$ac_exeext'
7610     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611     (eval $ac_try) 2>&5
7612     ac_status=$?
7613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614     (exit $ac_status); }; }; then
7615     ac_cv_lib_mpich_MPI_Init=yes
7616     else
7617     echo "$as_me: failed program was:" >&5
7618     sed 's/^/| /' conftest.$ac_ext >&5
7619    
7620     ac_cv_lib_mpich_MPI_Init=no
7621     fi
7622     rm -f conftest.err conftest.$ac_objext \
7623     conftest$ac_exeext conftest.$ac_ext
7624     LIBS=$ac_check_lib_save_LIBS
7625     fi
7626     echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7627     echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7628     if test $ac_cv_lib_mpich_MPI_Init = yes; then
7629     MPI_LIB="-lmpich -lpmpich"
7630     fi
7631    
7632     fi
7633    
7634 gezelter 1490 $as_unset ac_cv_lib_mpi_MPI_Init
7635     if test x = x"$MPI_LIB"; then
7636     echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7637     echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7638     if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7639     echo $ECHO_N "(cached) $ECHO_C" >&6
7640     else
7641     ac_check_lib_save_LIBS=$LIBS
7642     LIBS="-lmpi -llam -lpthread $LIBS"
7643     cat >conftest.$ac_ext <<_ACEOF
7644     /* confdefs.h. */
7645     _ACEOF
7646     cat confdefs.h >>conftest.$ac_ext
7647     cat >>conftest.$ac_ext <<_ACEOF
7648     /* end confdefs.h. */
7649    
7650     /* Override any gcc2 internal prototype to avoid an error. */
7651     #ifdef __cplusplus
7652     extern "C"
7653     #endif
7654     /* We use char because int might match the return type of a gcc2
7655     builtin and then its argument prototype would still apply. */
7656     char MPI_Init ();
7657     int
7658     main ()
7659     {
7660     MPI_Init ();
7661     ;
7662     return 0;
7663     }
7664     _ACEOF
7665     rm -f conftest.$ac_objext conftest$ac_exeext
7666     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7667     (eval $ac_link) 2>conftest.er1
7668     ac_status=$?
7669     grep -v '^ *+' conftest.er1 >conftest.err
7670     rm -f conftest.er1
7671     cat conftest.err >&5
7672     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673     (exit $ac_status); } &&
7674     { ac_try='test -z "$ac_c_werror_flag"
7675     || test ! -s conftest.err'
7676     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677     (eval $ac_try) 2>&5
7678     ac_status=$?
7679     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680     (exit $ac_status); }; } &&
7681     { ac_try='test -s conftest$ac_exeext'
7682     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683     (eval $ac_try) 2>&5
7684     ac_status=$?
7685     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686     (exit $ac_status); }; }; then
7687     ac_cv_lib_mpi_MPI_Init=yes
7688     else
7689     echo "$as_me: failed program was:" >&5
7690     sed 's/^/| /' conftest.$ac_ext >&5
7691    
7692     ac_cv_lib_mpi_MPI_Init=no
7693     fi
7694     rm -f conftest.err conftest.$ac_objext \
7695     conftest$ac_exeext conftest.$ac_ext
7696     LIBS=$ac_check_lib_save_LIBS
7697     fi
7698     echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7699     echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7700     if test $ac_cv_lib_mpi_MPI_Init = yes; then
7701     MPI_LIB="-lmpi -llam -lpthread"
7702     else
7703    
7704     { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
7705     echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
7706     { (exit 1); exit 1; }; }
7707     USE_MPI="no"
7708    
7709     fi
7710    
7711     fi
7712    
7713    
7714    
7715     echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
7716     echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
7717     MPI_F90_LIB=""
7718     if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
7719     MPI_F90_LIB="-lfmpich"
7720     elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
7721     MPI_F90_LIB="-llamf77mpi"
7722     else
7723     MPI_F90_LIB=" "
7724     fi
7725     echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
7726     echo "${ECHO_T}found $MPI_F90_LIB" >&6
7727    
7728    
7729     fi
7730    
7731    
7732    
7733     # Check whether --with-sprng or --without-sprng was given.
7734     if test "${with_sprng+set}" = set; then
7735     withval="$with_sprng"
7736     with_sprng=$withval
7737     else
7738     with_sprng="/usr/local"
7739     fi;
7740    
7741     case "x$with_sprng" in
7742     xyes | "x") USE_SPRNG=yes;;
7743     xno) USE_SPRNG=no ;;
7744     *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
7745     esac
7746     if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
7747     SPRNG="/usr/local"
7748     fi
7749     if test "$USE_SPRNG" = "yes"; then
7750    
7751    
7752     # Set variables...
7753     SPRNG_LIB_DIR="$SPRNG/lib"
7754     SPRNG_INC_DIR="$SPRNG/include"
7755    
7756    
7757    
7758     echo "$as_me:$LINENO: checking for sprng.h" >&5
7759     echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
7760     have_sprng_h=0
7761     echo '#include <sprng.h>' > conftest.cc
7762     if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then
7763     echo "$as_me:$LINENO: result: yes" >&5
7764     echo "${ECHO_T}yes" >&6
7765     have_sprng_h=1
7766     else
7767     echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5
7768     echo "${ECHO_T}no! Check SPRNG include path!" >&6
7769     USE_SPRNG="no"
7770     fi
7771     rm -f conftest*
7772     if test "$have_sprng_h" = 1; then
7773    
7774     cat >>confdefs.h <<\_ACEOF
7775     #define HAVE_SPRNG_H 1
7776     _ACEOF
7777    
7778     fi
7779    
7780     ac_ext=c
7781     ac_cpp='$CPP $CPPFLAGS'
7782     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785    
7786     ac_save_LDFLAGS=$LDFLAGS
7787     LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} "
7788    
7789     echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
7790     echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
7791     if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
7792     echo $ECHO_N "(cached) $ECHO_C" >&6
7793     else
7794     ac_check_lib_save_LIBS=$LIBS
7795     LIBS="-lsprng $LIBS"
7796     cat >conftest.$ac_ext <<_ACEOF
7797     /* confdefs.h. */
7798     _ACEOF
7799     cat confdefs.h >>conftest.$ac_ext
7800     cat >>conftest.$ac_ext <<_ACEOF
7801     /* end confdefs.h. */
7802    
7803     /* Override any gcc2 internal prototype to avoid an error. */
7804     #ifdef __cplusplus
7805     extern "C"
7806     #endif
7807     /* We use char because int might match the return type of a gcc2
7808     builtin and then its argument prototype would still apply. */
7809     char init_rng ();
7810     int
7811     main ()
7812     {
7813     init_rng ();
7814     ;
7815     return 0;
7816     }
7817     _ACEOF
7818     rm -f conftest.$ac_objext conftest$ac_exeext
7819     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820     (eval $ac_link) 2>conftest.er1
7821     ac_status=$?
7822     grep -v '^ *+' conftest.er1 >conftest.err
7823     rm -f conftest.er1
7824     cat conftest.err >&5
7825     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826     (exit $ac_status); } &&
7827     { ac_try='test -z "$ac_c_werror_flag"
7828     || test ! -s conftest.err'
7829     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830     (eval $ac_try) 2>&5
7831     ac_status=$?
7832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833     (exit $ac_status); }; } &&
7834     { ac_try='test -s conftest$ac_exeext'
7835     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836     (eval $ac_try) 2>&5
7837     ac_status=$?
7838     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839     (exit $ac_status); }; }; then
7840     ac_cv_lib_sprng_init_rng=yes
7841     else
7842     echo "$as_me: failed program was:" >&5
7843     sed 's/^/| /' conftest.$ac_ext >&5
7844    
7845     ac_cv_lib_sprng_init_rng=no
7846     fi
7847     rm -f conftest.err conftest.$ac_objext \
7848     conftest$ac_exeext conftest.$ac_ext
7849     LIBS=$ac_check_lib_save_LIBS
7850     fi
7851     echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
7852     echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
7853     if test $ac_cv_lib_sprng_init_rng = yes; then
7854     SPRNG_LIB="-lsprng"
7855     else
7856    
7857     { { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5
7858     echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;}
7859     { (exit 1); exit 1; }; }
7860     USE_SPRNG="no"
7861    
7862     fi
7863    
7864    
7865     if test "$USE_SPRNG" = "no"; then
7866     { { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5
7867     echo "$as_me: error: No working SPRNG library found" >&2;}
7868     { (exit 1); exit 1; }; }
7869     fi
7870    
7871    
7872     fi
7873    
7874    
7875    
7876     echo "$as_me:$LINENO: checking if MKL is wanted" >&5
7877     echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
7878    
7879     # Check whether --with-mkl or --without-mkl was given.
7880     if test "${with_mkl+set}" = set; then
7881     withval="$with_mkl"
7882     echo "$as_me:$LINENO: result: yes" >&5
7883     echo "${ECHO_T}yes" >&6
7884     for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7885     mkldir="$dir"
7886     if test -f "$dir/include/mkl.h"; then
7887     found_mkl="yes";
7888     break;
7889     fi
7890     done
7891     if test x_$found_mkl != x_yes; then
7892     { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
7893     echo "$as_me: error: Cannot find MKL includes" >&2;}
7894     { (exit 1); exit 1; }; }
7895     else
7896     printf "MKL includes found in $mkldir/include\n";
7897     fi
7898    
7899    
7900    
7901     ac_ext=c
7902     ac_cpp='$CPP $CPPFLAGS'
7903     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7904     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7905     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906    
7907     ac_save_CPPFLAGS=$CPPFLAGS
7908     CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
7909     ac_save_LDFLAGS=$LDFLAGS
7910     LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
7911     if test "${ac_cv_header_mkl_h+set}" = set; then
7912     echo "$as_me:$LINENO: checking for mkl.h" >&5
7913     echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
7914     if test "${ac_cv_header_mkl_h+set}" = set; then
7915     echo $ECHO_N "(cached) $ECHO_C" >&6
7916     fi
7917     echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
7918     echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
7919     else
7920     # Is the header compilable?
7921     echo "$as_me:$LINENO: checking mkl.h usability" >&5
7922     echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7923     cat >conftest.$ac_ext <<_ACEOF
7924     /* confdefs.h. */
7925     _ACEOF
7926     cat confdefs.h >>conftest.$ac_ext
7927     cat >>conftest.$ac_ext <<_ACEOF
7928     /* end confdefs.h. */
7929     $ac_includes_default
7930     #include <mkl.h>
7931     _ACEOF
7932     rm -f conftest.$ac_objext
7933     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934     (eval $ac_compile) 2>conftest.er1
7935     ac_status=$?
7936     grep -v '^ *+' conftest.er1 >conftest.err
7937     rm -f conftest.er1
7938     cat conftest.err >&5
7939     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940     (exit $ac_status); } &&
7941     { ac_try='test -z "$ac_c_werror_flag"
7942     || test ! -s conftest.err'
7943     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944     (eval $ac_try) 2>&5
7945     ac_status=$?
7946     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947     (exit $ac_status); }; } &&
7948     { ac_try='test -s conftest.$ac_objext'
7949     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950     (eval $ac_try) 2>&5
7951     ac_status=$?
7952     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953     (exit $ac_status); }; }; then
7954     ac_header_compiler=yes
7955     else
7956     echo "$as_me: failed program was:" >&5
7957     sed 's/^/| /' conftest.$ac_ext >&5
7958    
7959     ac_header_compiler=no
7960     fi
7961     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7963     echo "${ECHO_T}$ac_header_compiler" >&6
7964    
7965     # Is the header present?
7966     echo "$as_me:$LINENO: checking mkl.h presence" >&5
7967     echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7968     cat >conftest.$ac_ext <<_ACEOF
7969     /* confdefs.h. */
7970     _ACEOF
7971     cat confdefs.h >>conftest.$ac_ext
7972     cat >>conftest.$ac_ext <<_ACEOF
7973     /* end confdefs.h. */
7974     #include <mkl.h>
7975     _ACEOF
7976     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7977     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7978     ac_status=$?
7979     grep -v '^ *+' conftest.er1 >conftest.err
7980     rm -f conftest.er1
7981     cat conftest.err >&5
7982     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983     (exit $ac_status); } >/dev/null; then
7984     if test -s conftest.err; then
7985     ac_cpp_err=$ac_c_preproc_warn_flag
7986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7987     else
7988     ac_cpp_err=
7989     fi
7990     else
7991     ac_cpp_err=yes
7992     fi
7993     if test -z "$ac_cpp_err"; then
7994     ac_header_preproc=yes
7995     else
7996     echo "$as_me: failed program was:" >&5
7997     sed 's/^/| /' conftest.$ac_ext >&5
7998    
7999     ac_header_preproc=no
8000     fi
8001     rm -f conftest.err conftest.$ac_ext
8002     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8003     echo "${ECHO_T}$ac_header_preproc" >&6
8004    
8005     # So? What about this header?
8006     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8007     yes:no: )
8008     { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8009     echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8010     { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
8011     echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
8012     ac_header_preproc=yes
8013     ;;
8014     no:yes:* )
8015     { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
8016     echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
8017     { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
8018     echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
8019     { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
8020     echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
8021     { echo "$as_me:$LINENO: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&5
8022     echo "$as_me: WARNING: mkl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8023     { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
8024     echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
8025     { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
8026     echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
8027     (
8028     cat <<\_ASBOX
8029     ## ------------------------------ ##
8030     ## Report this to gezelter@nd.edu ##
8031     ## ------------------------------ ##
8032     _ASBOX
8033     ) |
8034     sed "s/^/$as_me: WARNING: /" >&2
8035     ;;
8036     esac
8037     echo "$as_me:$LINENO: checking for mkl.h" >&5
8038     echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
8039     if test "${ac_cv_header_mkl_h+set}" = set; then
8040     echo $ECHO_N "(cached) $ECHO_C" >&6
8041     else
8042     ac_cv_header_mkl_h=$ac_header_preproc
8043     fi
8044     echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
8045     echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
8046    
8047     fi
8048     if test $ac_cv_header_mkl_h = yes; then
8049    
8050     echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
8051     echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
8052     if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
8053     echo $ECHO_N "(cached) $ECHO_C" >&6
8054     else
8055     ac_check_lib_save_LIBS=$LIBS
8056     LIBS="-lmkl $LIBS"
8057     cat >conftest.$ac_ext <<_ACEOF
8058     /* confdefs.h. */
8059     _ACEOF
8060     cat confdefs.h >>conftest.$ac_ext
8061     cat >>conftest.$ac_ext <<_ACEOF
8062     /* end confdefs.h. */
8063    
8064     /* Override any gcc2 internal prototype to avoid an error. */
8065     #ifdef __cplusplus
8066     extern "C"
8067     #endif
8068     /* We use char because int might match the return type of a gcc2
8069     builtin and then its argument prototype would still apply. */
8070     char vslNewStream ();
8071     int
8072     main ()
8073     {
8074     vslNewStream ();
8075     ;
8076     return 0;
8077     }
8078     _ACEOF
8079     rm -f conftest.$ac_objext conftest$ac_exeext
8080     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8081     (eval $ac_link) 2>conftest.er1
8082     ac_status=$?
8083     grep -v '^ *+' conftest.er1 >conftest.err
8084     rm -f conftest.er1
8085     cat conftest.err >&5
8086     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087     (exit $ac_status); } &&
8088     { ac_try='test -z "$ac_c_werror_flag"
8089     || test ! -s conftest.err'
8090     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091     (eval $ac_try) 2>&5
8092     ac_status=$?
8093     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094     (exit $ac_status); }; } &&
8095     { ac_try='test -s conftest$ac_exeext'
8096     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8097     (eval $ac_try) 2>&5
8098     ac_status=$?
8099     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100     (exit $ac_status); }; }; then
8101     ac_cv_lib_mkl_vslNewStream=yes
8102     else
8103     echo "$as_me: failed program was:" >&5
8104     sed 's/^/| /' conftest.$ac_ext >&5
8105    
8106     ac_cv_lib_mkl_vslNewStream=no
8107     fi
8108     rm -f conftest.err conftest.$ac_objext \
8109     conftest$ac_exeext conftest.$ac_ext
8110     LIBS=$ac_check_lib_save_LIBS
8111     fi
8112     echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
8113     echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
8114     if test $ac_cv_lib_mkl_vslNewStream = yes; then
8115     MKL_LIBDIR="${mkldir}/lib/32",
8116     MKL_LIB="-lmkl -lvml -lguide",
8117     HAVE_MKL="yes"
8118     fi
8119    
8120    
8121     else
8122     MKL_INC="-I${mkldir}/include"
8123     fi
8124    
8125    
8126     CPPFLAGS=$ac_save_CPPFLAGS
8127     LDFLAGS=$ac_save_LDFLAGS
8128     ac_ext=c
8129     ac_cpp='$CPP $CPPFLAGS'
8130     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133    
8134    
8135     if test x_$HAVE_MKL != x_yes; then
8136     { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
8137     echo "$as_me: error: Can't build with MKL" >&2;}
8138     { (exit 1); exit 1; }; }
8139     fi
8140    
8141    
8142    
8143    
8144    
8145     else
8146    
8147     echo "$as_me:$LINENO: result: no" >&5
8148     echo "${ECHO_T}no" >&6
8149    
8150     fi;
8151    
8152    
8153    
8154 gezelter 1540 # Check whether --enable-doxygen or --disable-doxygen was given.
8155     if test "${enable_doxygen+set}" = set; then
8156     enableval="$enable_doxygen"
8157 gezelter 1490
8158 gezelter 1540 fi;
8159     # Check whether --enable-dot or --disable-dot was given.
8160     if test "${enable_dot+set}" = set; then
8161     enableval="$enable_dot"
8162 gezelter 1490
8163 gezelter 1540 fi;
8164     # Check whether --enable-html-docs or --disable-html-docs was given.
8165     if test "${enable_html_docs+set}" = set; then
8166     enableval="$enable_html_docs"
8167    
8168     else
8169     enable_html_docs=yes
8170     fi;
8171     # Check whether --enable-latex-docs or --disable-latex-docs was given.
8172     if test "${enable_latex_docs+set}" = set; then
8173     enableval="$enable_latex_docs"
8174    
8175     else
8176     enable_latex_docs=no
8177     fi;
8178     if test "x$enable_doxygen" = xno; then
8179     enable_doc=no
8180     else
8181     # Extract the first word of "doxygen", so it can be a program name with args.
8182     set dummy doxygen; ac_word=$2
8183     echo "$as_me:$LINENO: checking for $ac_word" >&5
8184     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185     if test "${ac_cv_path_DOXYGEN+set}" = set; then
8186     echo $ECHO_N "(cached) $ECHO_C" >&6
8187     else
8188     case $DOXYGEN in
8189     [\\/]* | ?:[\\/]*)
8190     ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8191     ;;
8192     *)
8193     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194     for as_dir in $PATH
8195     do
8196     IFS=$as_save_IFS
8197     test -z "$as_dir" && as_dir=.
8198     for ac_exec_ext in '' $ac_executable_extensions; do
8199     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202     break 2
8203     fi
8204     done
8205     done
8206    
8207     ;;
8208     esac
8209     fi
8210     DOXYGEN=$ac_cv_path_DOXYGEN
8211    
8212     if test -n "$DOXYGEN"; then
8213     echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8214     echo "${ECHO_T}$DOXYGEN" >&6
8215     else
8216     echo "$as_me:$LINENO: result: no" >&5
8217     echo "${ECHO_T}no" >&6
8218     fi
8219    
8220     if test "x$DOXYGEN" = x; then
8221     if test "x$enable_doxygen" = xyes; then
8222     { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
8223     echo "$as_me: error: could not find doxygen" >&2;}
8224     { (exit 1); exit 1; }; }
8225     fi
8226     enable_doc=no
8227     else
8228     enable_doc=yes
8229     # Extract the first word of "dot", so it can be a program name with args.
8230     set dummy dot; ac_word=$2
8231     echo "$as_me:$LINENO: checking for $ac_word" >&5
8232     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8233     if test "${ac_cv_path_DOT+set}" = set; then
8234     echo $ECHO_N "(cached) $ECHO_C" >&6
8235     else
8236     case $DOT in
8237     [\\/]* | ?:[\\/]*)
8238     ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8239     ;;
8240     *)
8241     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242     for as_dir in $PATH
8243     do
8244     IFS=$as_save_IFS
8245     test -z "$as_dir" && as_dir=.
8246     for ac_exec_ext in '' $ac_executable_extensions; do
8247     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250     break 2
8251     fi
8252     done
8253     done
8254    
8255     ;;
8256     esac
8257     fi
8258     DOT=$ac_cv_path_DOT
8259    
8260     if test -n "$DOT"; then
8261     echo "$as_me:$LINENO: result: $DOT" >&5
8262     echo "${ECHO_T}$DOT" >&6
8263     else
8264     echo "$as_me:$LINENO: result: no" >&5
8265     echo "${ECHO_T}no" >&6
8266     fi
8267    
8268     fi
8269     fi
8270    
8271     if test "x$enable_doc" = xyes; then
8272     DOC=1
8273     else
8274     DOC=0
8275     fi
8276    
8277    
8278     if test x$DOT = x; then
8279     if test "x$enable_dot" = xyes; then
8280     { { echo "$as_me:$LINENO: error: could not find dot" >&5
8281     echo "$as_me: error: could not find dot" >&2;}
8282     { (exit 1); exit 1; }; }
8283     fi
8284     enable_dot=no
8285     else
8286     enable_dot=yes
8287     fi
8288    
8289    
8290    
8291    
8292    
8293    
8294    
8295 gezelter 1490 OBJEXT=".$OBJEXT"
8296    
8297     OOPSE=oopse
8298    
8299     if test "x${prefix}" = "xNONE"
8300     then
8301     OOPSE_HOME=${ac_default_prefix}/oopse
8302     else
8303     OOPSE_HOME=${prefix}/oopse
8304     fi
8305     # Check whether --enable-oopse-home or --disable-oopse-home was given.
8306     if test "${enable_oopse_home+set}" = set; then
8307     enableval="$enable_oopse_home"
8308     OOPSE_HOME="${enableval}"
8309     fi;
8310    
8311     case "x$INSTALL" in
8312     x/*) ;;
8313     *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
8314     esac
8315    
8316     MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
8317    
8318     CFLAGS=${CFLAGS-""}
8319     CXXFLAGS=${CXXFLAGS-""}
8320     CPPFLAGS=${CPPFLAGS-""}
8321     FFLAGS=${FFLAGS-""}
8322     F90FLAGS=${F90FLAGS-""}
8323     LDFLAGS=${LDFLAGS-""}
8324     DEBUG=${DEBUG-"-g"}
8325    
8326     case $debug in
8327     1)
8328     FFLAGS="$DEBUG $FFLAGS"
8329     F90FLAGS="$DEBUG $F90FLAGS"
8330     ;;
8331     *)
8332     ;;
8333     esac
8334    
8335    
8336    
8337    
8338    
8339    
8340    
8341    
8342    
8343    
8344    
8345    
8346    
8347    
8348    
8349    
8350    
8351 gezelter 1535
8352 gezelter 1499 ac_config_headers="$ac_config_headers src/config.h"
8353 gezelter 1490
8354 gezelter 1946 ac_config_files="$ac_config_files make/Makefile src/utils/Makefile"
8355 gezelter 1490
8356    
8357     cat >confcache <<\_ACEOF
8358     # This file is a shell script that caches the results of configure
8359     # tests run on this system so they can be shared between configure
8360     # scripts and configure runs, see configure's option --config-cache.
8361     # It is not useful on other systems. If it contains results you don't
8362     # want to keep, you may remove or edit it.
8363     #
8364     # config.status only pays attention to the cache file if you give it
8365     # the --recheck option to rerun configure.
8366     #
8367     # `ac_cv_env_foo' variables (set or unset) will be overridden when
8368     # loading this file, other *unset* `ac_cv_foo' will be assigned the
8369     # following values.
8370    
8371     _ACEOF
8372    
8373     # The following way of writing the cache mishandles newlines in values,
8374     # but we know of no workaround that is simple, portable, and efficient.
8375     # So, don't put newlines in cache variables' values.
8376     # Ultrix sh set writes to stderr and can't be redirected directly,
8377     # and sets the high bit in the cache file unless we assign to the vars.
8378     {
8379     (set) 2>&1 |
8380     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8381     *ac_space=\ *)
8382     # `set' does not quote correctly, so add quotes (double-quote
8383     # substitution turns \\\\ into \\, and sed turns \\ into \).
8384     sed -n \
8385     "s/'/'\\\\''/g;
8386     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8387     ;;
8388     *)
8389     # `set' quotes correctly as required by POSIX, so do not add quotes.
8390     sed -n \
8391     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8392     ;;
8393     esac;
8394     } |
8395     sed '
8396     t clear
8397     : clear
8398     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8399     t end
8400     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8401     : end' >>confcache
8402     if diff $cache_file confcache >/dev/null 2>&1; then :; else
8403     if test -w $cache_file; then
8404     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8405     cat confcache >$cache_file
8406     else
8407     echo "not updating unwritable cache $cache_file"
8408     fi
8409     fi
8410     rm -f confcache
8411    
8412     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8413     # Let make expand exec_prefix.
8414     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8415    
8416     # VPATH may cause trouble with some makes, so we remove $(srcdir),
8417     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8418     # trailing colons and then remove the whole line if VPATH becomes empty
8419     # (actually we leave an empty line to preserve line numbers).
8420     if test "x$srcdir" = x.; then
8421     ac_vpsub='/^[ ]*VPATH[ ]*=/{
8422     s/:*\$(srcdir):*/:/;
8423     s/:*\${srcdir}:*/:/;
8424     s/:*@srcdir@:*/:/;
8425     s/^\([^=]*=[ ]*\):*/\1/;
8426     s/:*$//;
8427     s/^[^=]*=[ ]*$//;
8428     }'
8429     fi
8430    
8431     DEFS=-DHAVE_CONFIG_H
8432    
8433     ac_libobjs=
8434     ac_ltlibobjs=
8435     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8436     # 1. Remove the extension, and $U if already installed.
8437     ac_i=`echo "$ac_i" |
8438     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8439     # 2. Add them.
8440     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8441     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8442     done
8443     LIBOBJS=$ac_libobjs
8444    
8445     LTLIBOBJS=$ac_ltlibobjs
8446    
8447    
8448    
8449     : ${CONFIG_STATUS=./config.status}
8450     ac_clean_files_save=$ac_clean_files
8451     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8452     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8453     echo "$as_me: creating $CONFIG_STATUS" >&6;}
8454     cat >$CONFIG_STATUS <<_ACEOF
8455     #! $SHELL
8456     # Generated by $as_me.
8457     # Run this file to recreate the current configuration.
8458     # Compiler output produced by configure, useful for debugging
8459     # configure, is in config.log if it exists.
8460    
8461     debug=false
8462     ac_cs_recheck=false
8463     ac_cs_silent=false
8464     SHELL=\${CONFIG_SHELL-$SHELL}
8465     _ACEOF
8466    
8467     cat >>$CONFIG_STATUS <<\_ACEOF
8468     ## --------------------- ##
8469     ## M4sh Initialization. ##
8470     ## --------------------- ##
8471    
8472     # Be Bourne compatible
8473     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8474     emulate sh
8475     NULLCMD=:
8476     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8477     # is contrary to our usage. Disable this feature.
8478     alias -g '${1+"$@"}'='"$@"'
8479     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8480     set -o posix
8481     fi
8482     DUALCASE=1; export DUALCASE # for MKS sh
8483    
8484     # Support unset when possible.
8485     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8486     as_unset=unset
8487     else
8488     as_unset=false
8489     fi
8490    
8491    
8492     # Work around bugs in pre-3.0 UWIN ksh.
8493     $as_unset ENV MAIL MAILPATH
8494     PS1='$ '
8495     PS2='> '
8496     PS4='+ '
8497    
8498     # NLS nuisances.
8499     for as_var in \
8500     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8501     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8502     LC_TELEPHONE LC_TIME
8503     do
8504     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8505     eval $as_var=C; export $as_var
8506     else
8507     $as_unset $as_var
8508     fi
8509     done
8510    
8511     # Required to use basename.
8512     if expr a : '\(a\)' >/dev/null 2>&1; then
8513     as_expr=expr
8514     else
8515     as_expr=false
8516     fi
8517    
8518     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8519     as_basename=basename
8520     else
8521     as_basename=false
8522     fi
8523    
8524    
8525     # Name of the executable.
8526     as_me=`$as_basename "$0" ||
8527     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8528     X"$0" : 'X\(//\)$' \| \
8529     X"$0" : 'X\(/\)$' \| \
8530     . : '\(.\)' 2>/dev/null ||
8531     echo X/"$0" |
8532     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8533     /^X\/\(\/\/\)$/{ s//\1/; q; }
8534     /^X\/\(\/\).*/{ s//\1/; q; }
8535     s/.*/./; q'`
8536    
8537    
8538     # PATH needs CR, and LINENO needs CR and PATH.
8539     # Avoid depending upon Character Ranges.
8540     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8541     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8542     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8543     as_cr_digits='0123456789'
8544     as_cr_alnum=$as_cr_Letters$as_cr_digits
8545    
8546     # The user is always right.
8547     if test "${PATH_SEPARATOR+set}" != set; then
8548     echo "#! /bin/sh" >conf$$.sh
8549     echo "exit 0" >>conf$$.sh
8550     chmod +x conf$$.sh
8551     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8552     PATH_SEPARATOR=';'
8553     else
8554     PATH_SEPARATOR=:
8555     fi
8556     rm -f conf$$.sh
8557     fi
8558    
8559    
8560     as_lineno_1=$LINENO
8561     as_lineno_2=$LINENO
8562     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8563     test "x$as_lineno_1" != "x$as_lineno_2" &&
8564     test "x$as_lineno_3" = "x$as_lineno_2" || {
8565     # Find who we are. Look in the path if we contain no path at all
8566     # relative or not.
8567     case $0 in
8568     *[\\/]* ) as_myself=$0 ;;
8569     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570     for as_dir in $PATH
8571     do
8572     IFS=$as_save_IFS
8573     test -z "$as_dir" && as_dir=.
8574     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8575     done
8576    
8577     ;;
8578     esac
8579     # We did not find ourselves, most probably we were run as `sh COMMAND'
8580     # in which case we are not to be found in the path.
8581     if test "x$as_myself" = x; then
8582     as_myself=$0
8583     fi
8584     if test ! -f "$as_myself"; then
8585     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8586     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8587     { (exit 1); exit 1; }; }
8588     fi
8589     case $CONFIG_SHELL in
8590     '')
8591     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8593     do
8594     IFS=$as_save_IFS
8595     test -z "$as_dir" && as_dir=.
8596     for as_base in sh bash ksh sh5; do
8597     case $as_dir in
8598     /*)
8599     if ("$as_dir/$as_base" -c '
8600     as_lineno_1=$LINENO
8601     as_lineno_2=$LINENO
8602     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8603     test "x$as_lineno_1" != "x$as_lineno_2" &&
8604     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8605     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8606     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8607     CONFIG_SHELL=$as_dir/$as_base
8608     export CONFIG_SHELL
8609     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8610     fi;;
8611     esac
8612     done
8613     done
8614     ;;
8615     esac
8616    
8617     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8618     # uniformly replaced by the line number. The first 'sed' inserts a
8619     # line-number line before each line; the second 'sed' does the real
8620     # work. The second script uses 'N' to pair each line-number line
8621     # with the numbered line, and appends trailing '-' during
8622     # substitution so that $LINENO is not a special case at line end.
8623     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8624     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8625     sed '=' <$as_myself |
8626     sed '
8627     N
8628     s,$,-,
8629     : loop
8630     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8631     t loop
8632     s,-$,,
8633     s,^['$as_cr_digits']*\n,,
8634     ' >$as_me.lineno &&
8635     chmod +x $as_me.lineno ||
8636     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8637     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8638     { (exit 1); exit 1; }; }
8639    
8640     # Don't try to exec as it changes $[0], causing all sort of problems
8641     # (the dirname of $[0] is not the place where we might find the
8642     # original and so on. Autoconf is especially sensible to this).
8643     . ./$as_me.lineno
8644     # Exit status is that of the last command.
8645     exit
8646     }
8647    
8648    
8649     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8650     *c*,-n*) ECHO_N= ECHO_C='
8651     ' ECHO_T=' ' ;;
8652     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8653     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8654     esac
8655    
8656     if expr a : '\(a\)' >/dev/null 2>&1; then
8657     as_expr=expr
8658     else
8659     as_expr=false
8660     fi
8661    
8662     rm -f conf$$ conf$$.exe conf$$.file
8663     echo >conf$$.file
8664     if ln -s conf$$.file conf$$ 2>/dev/null; then
8665     # We could just check for DJGPP; but this test a) works b) is more generic
8666     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8667     if test -f conf$$.exe; then
8668     # Don't use ln at all; we don't have any links
8669     as_ln_s='cp -p'
8670     else
8671     as_ln_s='ln -s'
8672     fi
8673     elif ln conf$$.file conf$$ 2>/dev/null; then
8674     as_ln_s=ln
8675     else
8676     as_ln_s='cp -p'
8677     fi
8678     rm -f conf$$ conf$$.exe conf$$.file
8679    
8680     if mkdir -p . 2>/dev/null; then
8681     as_mkdir_p=:
8682     else
8683     test -d ./-p && rmdir ./-p
8684     as_mkdir_p=false
8685     fi
8686    
8687     as_executable_p="test -f"
8688    
8689     # Sed expression to map a string onto a valid CPP name.
8690     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8691    
8692     # Sed expression to map a string onto a valid variable name.
8693     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8694    
8695    
8696     # IFS
8697     # We need space, tab and new line, in precisely that order.
8698     as_nl='
8699     '
8700     IFS=" $as_nl"
8701    
8702     # CDPATH.
8703     $as_unset CDPATH
8704    
8705     exec 6>&1
8706    
8707     # Open the log real soon, to keep \$[0] and so on meaningful, and to
8708     # report actual input values of CONFIG_FILES etc. instead of their
8709     # values after options handling. Logging --version etc. is OK.
8710     exec 5>>config.log
8711     {
8712     echo
8713     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8714     ## Running $as_me. ##
8715     _ASBOX
8716     } >&5
8717     cat >&5 <<_CSEOF
8718    
8719 gezelter 1499 This file was extended by OOPSE $as_me 2.0, which was
8720 gezelter 1490 generated by GNU Autoconf 2.59. Invocation command line was
8721    
8722     CONFIG_FILES = $CONFIG_FILES
8723     CONFIG_HEADERS = $CONFIG_HEADERS
8724     CONFIG_LINKS = $CONFIG_LINKS
8725     CONFIG_COMMANDS = $CONFIG_COMMANDS
8726     $ $0 $@
8727    
8728     _CSEOF
8729     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8730     echo >&5
8731     _ACEOF
8732    
8733     # Files that config.status was made for.
8734     if test -n "$ac_config_files"; then
8735     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8736     fi
8737    
8738     if test -n "$ac_config_headers"; then
8739     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8740     fi
8741    
8742     if test -n "$ac_config_links"; then
8743     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8744     fi
8745    
8746     if test -n "$ac_config_commands"; then
8747     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8748     fi
8749    
8750     cat >>$CONFIG_STATUS <<\_ACEOF
8751    
8752     ac_cs_usage="\
8753     \`$as_me' instantiates files from templates according to the
8754     current configuration.
8755    
8756     Usage: $0 [OPTIONS] [FILE]...
8757    
8758     -h, --help print this help, then exit
8759     -V, --version print version number, then exit
8760     -q, --quiet do not print progress messages
8761     -d, --debug don't remove temporary files
8762     --recheck update $as_me by reconfiguring in the same conditions
8763     --file=FILE[:TEMPLATE]
8764     instantiate the configuration file FILE
8765     --header=FILE[:TEMPLATE]
8766     instantiate the configuration header FILE
8767    
8768     Configuration files:
8769     $config_files
8770    
8771     Configuration headers:
8772     $config_headers
8773    
8774     Configuration links:
8775     $config_links
8776    
8777     Report bugs to <bug-autoconf@gnu.org>."
8778     _ACEOF
8779    
8780     cat >>$CONFIG_STATUS <<_ACEOF
8781     ac_cs_version="\\
8782 gezelter 1499 OOPSE config.status 2.0
8783 gezelter 1490 configured by $0, generated by GNU Autoconf 2.59,
8784     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8785    
8786     Copyright (C) 2003 Free Software Foundation, Inc.
8787     This config.status script is free software; the Free Software Foundation
8788     gives unlimited permission to copy, distribute and modify it."
8789     srcdir=$srcdir
8790     INSTALL="$INSTALL"
8791     _ACEOF
8792    
8793     cat >>$CONFIG_STATUS <<\_ACEOF
8794     # If no file are specified by the user, then we need to provide default
8795     # value. By we need to know if files were specified by the user.
8796     ac_need_defaults=:
8797     while test $# != 0
8798     do
8799     case $1 in
8800     --*=*)
8801     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8802     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8803     ac_shift=:
8804     ;;
8805     -*)
8806     ac_option=$1
8807     ac_optarg=$2
8808     ac_shift=shift
8809     ;;
8810     *) # This is not an option, so the user has probably given explicit
8811     # arguments.
8812     ac_option=$1
8813     ac_need_defaults=false;;
8814     esac
8815    
8816     case $ac_option in
8817     # Handling of the options.
8818     _ACEOF
8819     cat >>$CONFIG_STATUS <<\_ACEOF
8820     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8821     ac_cs_recheck=: ;;
8822     --version | --vers* | -V )
8823     echo "$ac_cs_version"; exit 0 ;;
8824     --he | --h)
8825     # Conflict between --help and --header
8826     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8827     Try \`$0 --help' for more information." >&5
8828     echo "$as_me: error: ambiguous option: $1
8829     Try \`$0 --help' for more information." >&2;}
8830     { (exit 1); exit 1; }; };;
8831     --help | --hel | -h )
8832     echo "$ac_cs_usage"; exit 0 ;;
8833     --debug | --d* | -d )
8834     debug=: ;;
8835     --file | --fil | --fi | --f )
8836     $ac_shift
8837     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8838     ac_need_defaults=false;;
8839     --header | --heade | --head | --hea )
8840     $ac_shift
8841     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8842     ac_need_defaults=false;;
8843     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8844     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8845     ac_cs_silent=: ;;
8846    
8847     # This is an error.
8848     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8849     Try \`$0 --help' for more information." >&5
8850     echo "$as_me: error: unrecognized option: $1
8851     Try \`$0 --help' for more information." >&2;}
8852     { (exit 1); exit 1; }; } ;;
8853    
8854     *) ac_config_targets="$ac_config_targets $1" ;;
8855    
8856     esac
8857     shift
8858     done
8859    
8860     ac_configure_extra_args=
8861    
8862     if $ac_cs_silent; then
8863     exec 6>/dev/null
8864     ac_configure_extra_args="$ac_configure_extra_args --silent"
8865     fi
8866    
8867     _ACEOF
8868     cat >>$CONFIG_STATUS <<_ACEOF
8869     if \$ac_cs_recheck; then
8870     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8871     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8872     fi
8873    
8874     _ACEOF
8875    
8876    
8877    
8878    
8879    
8880     cat >>$CONFIG_STATUS <<\_ACEOF
8881     for ac_config_target in $ac_config_targets
8882     do
8883     case "$ac_config_target" in
8884     # Handling of arguments.
8885 gezelter 1509 "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
8886 gezelter 1946 "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
8887 gezelter 1947 "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
8888 gezelter 1499 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8889 gezelter 1490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8890     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8891     { (exit 1); exit 1; }; };;
8892     esac
8893     done
8894    
8895     # If the user did not use the arguments to specify the items to instantiate,
8896     # then the envvar interface is used. Set only those that are not.
8897     # We use the long form for the default assignment because of an extremely
8898     # bizarre bug on SunOS 4.1.3.
8899     if $ac_need_defaults; then
8900     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8901     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8902     test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8903     fi
8904    
8905     # Have a temporary directory for convenience. Make it in the build tree
8906     # simply because there is no reason to put it here, and in addition,
8907     # creating and moving files from /tmp can sometimes cause problems.
8908     # Create a temporary directory, and hook for its removal unless debugging.
8909     $debug ||
8910     {
8911     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8912     trap '{ (exit 1); exit 1; }' 1 2 13 15
8913     }
8914    
8915     # Create a (secure) tmp directory for tmp files.
8916    
8917     {
8918     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8919     test -n "$tmp" && test -d "$tmp"
8920     } ||
8921     {
8922     tmp=./confstat$$-$RANDOM
8923     (umask 077 && mkdir $tmp)
8924     } ||
8925     {
8926     echo "$me: cannot create a temporary directory in ." >&2
8927     { (exit 1); exit 1; }
8928     }
8929    
8930     _ACEOF
8931    
8932     cat >>$CONFIG_STATUS <<_ACEOF
8933    
8934     #
8935     # CONFIG_FILES section.
8936     #
8937    
8938     # No need to generate the scripts if there are no CONFIG_FILES.
8939     # This happens for instance when ./config.status config.h
8940     if test -n "\$CONFIG_FILES"; then
8941     # Protect against being on the right side of a sed subst in config.status.
8942     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8943     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8944     s,@SHELL@,$SHELL,;t t
8945     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8946     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8947     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8948     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8949     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8950     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8951     s,@exec_prefix@,$exec_prefix,;t t
8952     s,@prefix@,$prefix,;t t
8953     s,@program_transform_name@,$program_transform_name,;t t
8954     s,@bindir@,$bindir,;t t
8955     s,@sbindir@,$sbindir,;t t
8956     s,@libexecdir@,$libexecdir,;t t
8957     s,@datadir@,$datadir,;t t
8958     s,@sysconfdir@,$sysconfdir,;t t
8959     s,@sharedstatedir@,$sharedstatedir,;t t
8960     s,@localstatedir@,$localstatedir,;t t
8961     s,@libdir@,$libdir,;t t
8962     s,@includedir@,$includedir,;t t
8963     s,@oldincludedir@,$oldincludedir,;t t
8964     s,@infodir@,$infodir,;t t
8965     s,@mandir@,$mandir,;t t
8966     s,@build_alias@,$build_alias,;t t
8967     s,@host_alias@,$host_alias,;t t
8968     s,@target_alias@,$target_alias,;t t
8969     s,@DEFS@,$DEFS,;t t
8970     s,@ECHO_C@,$ECHO_C,;t t
8971     s,@ECHO_N@,$ECHO_N,;t t
8972     s,@ECHO_T@,$ECHO_T,;t t
8973     s,@LIBS@,$LIBS,;t t
8974     s,@PROGNAME@,$PROGNAME,;t t
8975     s,@debug@,$debug,;t t
8976     s,@build@,$build,;t t
8977     s,@build_cpu@,$build_cpu,;t t
8978     s,@build_vendor@,$build_vendor,;t t
8979     s,@build_os@,$build_os,;t t
8980     s,@host@,$host,;t t
8981     s,@host_cpu@,$host_cpu,;t t
8982     s,@host_vendor@,$host_vendor,;t t
8983     s,@host_os@,$host_os,;t t
8984     s,@CC@,$CC,;t t
8985     s,@CFLAGS@,$CFLAGS,;t t
8986     s,@LDFLAGS@,$LDFLAGS,;t t
8987     s,@CPPFLAGS@,$CPPFLAGS,;t t
8988     s,@ac_ct_CC@,$ac_ct_CC,;t t
8989     s,@EXEEXT@,$EXEEXT,;t t
8990     s,@OBJEXT@,$OBJEXT,;t t
8991     s,@CXX@,$CXX,;t t
8992     s,@CXXFLAGS@,$CXXFLAGS,;t t
8993     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8994     s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8995     s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8996     s,@F90@,$F90,;t t
8997     s,@F90FLAGS@,$F90FLAGS,;t t
8998     s,@ac_ct_F90@,$ac_ct_F90,;t t
8999     s,@PREPFLAG@,$PREPFLAG,;t t
9000     s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
9001     s,@F90LIBS@,$F90LIBS,;t t
9002     s,@F90_FUNC@,$F90_FUNC,;t t
9003     s,@F90_FUNC_@,$F90_FUNC_,;t t
9004     s,@MOD@,$MOD,;t t
9005     s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
9006     s,@MODDIRFLAG@,$MODDIRFLAG,;t t
9007     s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
9008 gezelter 1535 s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
9009 gezelter 1490 s,@CPP@,$CPP,;t t
9010     s,@EGREP@,$EGREP,;t t
9011     s,@LIBOBJS@,$LIBOBJS,;t t
9012     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9013     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9014     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9015     s,@LN_S@,$LN_S,;t t
9016     s,@SET_MAKE@,$SET_MAKE,;t t
9017     s,@RANLIB@,$RANLIB,;t t
9018     s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9019     s,@YACC@,$YACC,;t t
9020     s,@LEX@,$LEX,;t t
9021     s,@LEXLIB@,$LEXLIB,;t t
9022     s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9023     s,@AR@,$AR,;t t
9024     s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
9025     s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
9026     s,@MPI_F90_INC@,$MPI_F90_INC,;t t
9027     s,@MPI_LIB@,$MPI_LIB,;t t
9028     s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
9029     s,@USE_MPI@,$USE_MPI,;t t
9030     s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t
9031     s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t
9032     s,@SPRNG_LIB@,$SPRNG_LIB,;t t
9033     s,@USE_SPRNG@,$USE_SPRNG,;t t
9034     s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
9035     s,@MKL_LIB@,$MKL_LIB,;t t
9036     s,@MKL_INC@,$MKL_INC,;t t
9037     s,@HAVE_MKL@,$HAVE_MKL,;t t
9038 gezelter 1540 s,@DOXYGEN@,$DOXYGEN,;t t
9039     s,@DOT@,$DOT,;t t
9040     s,@DOC@,$DOC,;t t
9041     s,@enable_dot@,$enable_dot,;t t
9042     s,@enable_html_docs@,$enable_html_docs,;t t
9043     s,@enable_latex_docs@,$enable_latex_docs,;t t
9044 gezelter 1490 s,@BATEXT@,$BATEXT,;t t
9045     s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9046     s,@OOPSE@,$OOPSE,;t t
9047     s,@OOPSE_HOME@,$OOPSE_HOME,;t t
9048     s,@SUBDIRS@,$SUBDIRS,;t t
9049     s,@FFLAGS@,$FFLAGS,;t t
9050     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9051     CEOF
9052    
9053     _ACEOF
9054    
9055     cat >>$CONFIG_STATUS <<\_ACEOF
9056     # Split the substitutions into bite-sized pieces for seds with
9057     # small command number limits, like on Digital OSF/1 and HP-UX.
9058     ac_max_sed_lines=48
9059     ac_sed_frag=1 # Number of current file.
9060     ac_beg=1 # First line for current file.
9061     ac_end=$ac_max_sed_lines # Line after last line for current file.
9062     ac_more_lines=:
9063     ac_sed_cmds=
9064     while $ac_more_lines; do
9065     if test $ac_beg -gt 1; then
9066     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9067     else
9068     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9069     fi
9070     if test ! -s $tmp/subs.frag; then
9071     ac_more_lines=false
9072     else
9073     # The purpose of the label and of the branching condition is to
9074     # speed up the sed processing (if there are no `@' at all, there
9075     # is no need to browse any of the substitutions).
9076     # These are the two extra sed commands mentioned above.
9077     (echo ':t
9078     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9079     if test -z "$ac_sed_cmds"; then
9080     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9081     else
9082     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9083     fi
9084     ac_sed_frag=`expr $ac_sed_frag + 1`
9085     ac_beg=$ac_end
9086     ac_end=`expr $ac_end + $ac_max_sed_lines`
9087     fi
9088     done
9089     if test -z "$ac_sed_cmds"; then
9090     ac_sed_cmds=cat
9091     fi
9092     fi # test -n "$CONFIG_FILES"
9093    
9094     _ACEOF
9095     cat >>$CONFIG_STATUS <<\_ACEOF
9096     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9097     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9098     case $ac_file in
9099     - | *:- | *:-:* ) # input from stdin
9100     cat >$tmp/stdin
9101     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9102     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9103     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9104     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9105     * ) ac_file_in=$ac_file.in ;;
9106     esac
9107    
9108     # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9109     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9110     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9111     X"$ac_file" : 'X\(//\)[^/]' \| \
9112     X"$ac_file" : 'X\(//\)$' \| \
9113     X"$ac_file" : 'X\(/\)' \| \
9114     . : '\(.\)' 2>/dev/null ||
9115     echo X"$ac_file" |
9116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9117     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9118     /^X\(\/\/\)$/{ s//\1/; q; }
9119     /^X\(\/\).*/{ s//\1/; q; }
9120     s/.*/./; q'`
9121     { if $as_mkdir_p; then
9122     mkdir -p "$ac_dir"
9123     else
9124     as_dir="$ac_dir"
9125     as_dirs=
9126     while test ! -d "$as_dir"; do
9127     as_dirs="$as_dir $as_dirs"
9128     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9129     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9130     X"$as_dir" : 'X\(//\)[^/]' \| \
9131     X"$as_dir" : 'X\(//\)$' \| \
9132     X"$as_dir" : 'X\(/\)' \| \
9133     . : '\(.\)' 2>/dev/null ||
9134     echo X"$as_dir" |
9135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9136     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9137     /^X\(\/\/\)$/{ s//\1/; q; }
9138     /^X\(\/\).*/{ s//\1/; q; }
9139     s/.*/./; q'`
9140     done
9141     test ! -n "$as_dirs" || mkdir $as_dirs
9142     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9143     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9144     { (exit 1); exit 1; }; }; }
9145    
9146     ac_builddir=.
9147    
9148     if test "$ac_dir" != .; then
9149     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9150     # A "../" for each directory in $ac_dir_suffix.
9151     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9152     else
9153     ac_dir_suffix= ac_top_builddir=
9154     fi
9155    
9156     case $srcdir in
9157     .) # No --srcdir option. We are building in place.
9158     ac_srcdir=.
9159     if test -z "$ac_top_builddir"; then
9160     ac_top_srcdir=.
9161     else
9162     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9163     fi ;;
9164     [\\/]* | ?:[\\/]* ) # Absolute path.
9165     ac_srcdir=$srcdir$ac_dir_suffix;
9166     ac_top_srcdir=$srcdir ;;
9167     *) # Relative path.
9168     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9169     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9170     esac
9171    
9172     # Do not use `cd foo && pwd` to compute absolute paths, because
9173     # the directories may not exist.
9174     case `pwd` in
9175     .) ac_abs_builddir="$ac_dir";;
9176     *)
9177     case "$ac_dir" in
9178     .) ac_abs_builddir=`pwd`;;
9179     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9180     *) ac_abs_builddir=`pwd`/"$ac_dir";;
9181     esac;;
9182     esac
9183     case $ac_abs_builddir in
9184     .) ac_abs_top_builddir=${ac_top_builddir}.;;
9185     *)
9186     case ${ac_top_builddir}. in
9187     .) ac_abs_top_builddir=$ac_abs_builddir;;
9188     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9189     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9190     esac;;
9191     esac
9192     case $ac_abs_builddir in
9193     .) ac_abs_srcdir=$ac_srcdir;;
9194     *)
9195     case $ac_srcdir in
9196     .) ac_abs_srcdir=$ac_abs_builddir;;
9197     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9198     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9199     esac;;
9200     esac
9201     case $ac_abs_builddir in
9202     .) ac_abs_top_srcdir=$ac_top_srcdir;;
9203     *)
9204     case $ac_top_srcdir in
9205     .) ac_abs_top_srcdir=$ac_abs_builddir;;
9206     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9207     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9208     esac;;
9209     esac
9210    
9211    
9212     case $INSTALL in
9213     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9214     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9215     esac
9216    
9217     if test x"$ac_file" != x-; then
9218     { echo "$as_me:$LINENO: creating $ac_file" >&5
9219     echo "$as_me: creating $ac_file" >&6;}
9220     rm -f "$ac_file"
9221     fi
9222     # Let's still pretend it is `configure' which instantiates (i.e., don't
9223     # use $as_me), people would be surprised to read:
9224     # /* config.h. Generated by config.status. */
9225     if test x"$ac_file" = x-; then
9226     configure_input=
9227     else
9228     configure_input="$ac_file. "
9229     fi
9230     configure_input=$configure_input"Generated from `echo $ac_file_in |
9231     sed 's,.*/,,'` by configure."
9232    
9233     # First look for the input files in the build tree, otherwise in the
9234     # src tree.
9235     ac_file_inputs=`IFS=:
9236     for f in $ac_file_in; do
9237     case $f in
9238     -) echo $tmp/stdin ;;
9239     [\\/$]*)
9240     # Absolute (can't be DOS-style, as IFS=:)
9241     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9242     echo "$as_me: error: cannot find input file: $f" >&2;}
9243     { (exit 1); exit 1; }; }
9244     echo "$f";;
9245     *) # Relative
9246     if test -f "$f"; then
9247     # Build tree
9248     echo "$f"
9249     elif test -f "$srcdir/$f"; then
9250     # Source tree
9251     echo "$srcdir/$f"
9252     else
9253     # /dev/null tree
9254     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9255     echo "$as_me: error: cannot find input file: $f" >&2;}
9256     { (exit 1); exit 1; }; }
9257     fi;;
9258     esac
9259     done` || { (exit 1); exit 1; }
9260     _ACEOF
9261     cat >>$CONFIG_STATUS <<_ACEOF
9262     sed "$ac_vpsub
9263     $extrasub
9264     _ACEOF
9265     cat >>$CONFIG_STATUS <<\_ACEOF
9266     :t
9267     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9268     s,@configure_input@,$configure_input,;t t
9269     s,@srcdir@,$ac_srcdir,;t t
9270     s,@abs_srcdir@,$ac_abs_srcdir,;t t
9271     s,@top_srcdir@,$ac_top_srcdir,;t t
9272     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9273     s,@builddir@,$ac_builddir,;t t
9274     s,@abs_builddir@,$ac_abs_builddir,;t t
9275     s,@top_builddir@,$ac_top_builddir,;t t
9276     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9277     s,@INSTALL@,$ac_INSTALL,;t t
9278     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9279     rm -f $tmp/stdin
9280     if test x"$ac_file" != x-; then
9281     mv $tmp/out $ac_file
9282     else
9283     cat $tmp/out
9284     rm -f $tmp/out
9285     fi
9286    
9287     done
9288     _ACEOF
9289     cat >>$CONFIG_STATUS <<\_ACEOF
9290    
9291     #
9292     # CONFIG_HEADER section.
9293     #
9294    
9295     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9296     # NAME is the cpp macro being defined and VALUE is the value it is being given.
9297     #
9298     # ac_d sets the value in "#define NAME VALUE" lines.
9299     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9300     ac_dB='[ ].*$,\1#\2'
9301     ac_dC=' '
9302     ac_dD=',;t'
9303     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9304     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9305     ac_uB='$,\1#\2define\3'
9306     ac_uC=' '
9307     ac_uD=',;t'
9308    
9309     for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9310     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9311     case $ac_file in
9312     - | *:- | *:-:* ) # input from stdin
9313     cat >$tmp/stdin
9314     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9315     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9316     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9317     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9318     * ) ac_file_in=$ac_file.in ;;
9319     esac
9320    
9321     test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9322     echo "$as_me: creating $ac_file" >&6;}
9323    
9324     # First look for the input files in the build tree, otherwise in the
9325     # src tree.
9326     ac_file_inputs=`IFS=:
9327     for f in $ac_file_in; do
9328     case $f in
9329     -) echo $tmp/stdin ;;
9330     [\\/$]*)
9331     # Absolute (can't be DOS-style, as IFS=:)
9332     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9333     echo "$as_me: error: cannot find input file: $f" >&2;}
9334     { (exit 1); exit 1; }; }
9335     # Do quote $f, to prevent DOS paths from being IFS'd.
9336     echo "$f";;
9337     *) # Relative
9338     if test -f "$f"; then
9339     # Build tree
9340     echo "$f"
9341     elif test -f "$srcdir/$f"; then
9342     # Source tree
9343     echo "$srcdir/$f"
9344     else
9345     # /dev/null tree
9346     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9347     echo "$as_me: error: cannot find input file: $f" >&2;}
9348     { (exit 1); exit 1; }; }
9349     fi;;
9350     esac
9351     done` || { (exit 1); exit 1; }
9352     # Remove the trailing spaces.
9353     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9354    
9355     _ACEOF
9356    
9357     # Transform confdefs.h into two sed scripts, `conftest.defines' and
9358     # `conftest.undefs', that substitutes the proper values into
9359     # config.h.in to produce config.h. The first handles `#define'
9360     # templates, and the second `#undef' templates.
9361     # And first: Protect against being on the right side of a sed subst in
9362     # config.status. Protect against being in an unquoted here document
9363     # in config.status.
9364     rm -f conftest.defines conftest.undefs
9365     # Using a here document instead of a string reduces the quoting nightmare.
9366     # Putting comments in sed scripts is not portable.
9367     #
9368     # `end' is used to avoid that the second main sed command (meant for
9369     # 0-ary CPP macros) applies to n-ary macro definitions.
9370     # See the Autoconf documentation for `clear'.
9371     cat >confdef2sed.sed <<\_ACEOF
9372     s/[\\&,]/\\&/g
9373     s,[\\$`],\\&,g
9374     t clear
9375     : clear
9376     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9377     t end
9378     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9379     : end
9380     _ACEOF
9381     # If some macros were called several times there might be several times
9382     # the same #defines, which is useless. Nevertheless, we may not want to
9383     # sort them, since we want the *last* AC-DEFINE to be honored.
9384     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9385     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9386     rm -f confdef2sed.sed
9387    
9388     # This sed command replaces #undef with comments. This is necessary, for
9389     # example, in the case of _POSIX_SOURCE, which is predefined and required
9390     # on some systems where configure will not decide to define it.
9391     cat >>conftest.undefs <<\_ACEOF
9392     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9393     _ACEOF
9394    
9395     # Break up conftest.defines because some shells have a limit on the size
9396     # of here documents, and old seds have small limits too (100 cmds).
9397     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9398     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9399     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9400     echo ' :' >>$CONFIG_STATUS
9401     rm -f conftest.tail
9402     while grep . conftest.defines >/dev/null
9403     do
9404     # Write a limited-size here document to $tmp/defines.sed.
9405     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9406     # Speed up: don't consider the non `#define' lines.
9407     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9408     # Work around the forget-to-reset-the-flag bug.
9409     echo 't clr' >>$CONFIG_STATUS
9410     echo ': clr' >>$CONFIG_STATUS
9411     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9412     echo 'CEOF
9413     sed -f $tmp/defines.sed $tmp/in >$tmp/out
9414     rm -f $tmp/in
9415     mv $tmp/out $tmp/in
9416     ' >>$CONFIG_STATUS
9417     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9418     rm -f conftest.defines
9419     mv conftest.tail conftest.defines
9420     done
9421     rm -f conftest.defines
9422     echo ' fi # grep' >>$CONFIG_STATUS
9423     echo >>$CONFIG_STATUS
9424    
9425     # Break up conftest.undefs because some shells have a limit on the size
9426     # of here documents, and old seds have small limits too (100 cmds).
9427     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9428     rm -f conftest.tail
9429     while grep . conftest.undefs >/dev/null
9430     do
9431     # Write a limited-size here document to $tmp/undefs.sed.
9432     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9433     # Speed up: don't consider the non `#undef'
9434     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9435     # Work around the forget-to-reset-the-flag bug.
9436     echo 't clr' >>$CONFIG_STATUS
9437     echo ': clr' >>$CONFIG_STATUS
9438     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9439     echo 'CEOF
9440     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9441     rm -f $tmp/in
9442     mv $tmp/out $tmp/in
9443     ' >>$CONFIG_STATUS
9444     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9445     rm -f conftest.undefs
9446     mv conftest.tail conftest.undefs
9447     done
9448     rm -f conftest.undefs
9449    
9450     cat >>$CONFIG_STATUS <<\_ACEOF
9451     # Let's still pretend it is `configure' which instantiates (i.e., don't
9452     # use $as_me), people would be surprised to read:
9453     # /* config.h. Generated by config.status. */
9454     if test x"$ac_file" = x-; then
9455     echo "/* Generated by configure. */" >$tmp/config.h
9456     else
9457     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9458     fi
9459     cat $tmp/in >>$tmp/config.h
9460     rm -f $tmp/in
9461     if test x"$ac_file" != x-; then
9462     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9463     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9464     echo "$as_me: $ac_file is unchanged" >&6;}
9465     else
9466     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9467     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9468     X"$ac_file" : 'X\(//\)[^/]' \| \
9469     X"$ac_file" : 'X\(//\)$' \| \
9470     X"$ac_file" : 'X\(/\)' \| \
9471     . : '\(.\)' 2>/dev/null ||
9472     echo X"$ac_file" |
9473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9474     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9475     /^X\(\/\/\)$/{ s//\1/; q; }
9476     /^X\(\/\).*/{ s//\1/; q; }
9477     s/.*/./; q'`
9478     { if $as_mkdir_p; then
9479     mkdir -p "$ac_dir"
9480     else
9481     as_dir="$ac_dir"
9482     as_dirs=
9483     while test ! -d "$as_dir"; do
9484     as_dirs="$as_dir $as_dirs"
9485     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9486     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9487     X"$as_dir" : 'X\(//\)[^/]' \| \
9488     X"$as_dir" : 'X\(//\)$' \| \
9489     X"$as_dir" : 'X\(/\)' \| \
9490     . : '\(.\)' 2>/dev/null ||
9491     echo X"$as_dir" |
9492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9493     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9494     /^X\(\/\/\)$/{ s//\1/; q; }
9495     /^X\(\/\).*/{ s//\1/; q; }
9496     s/.*/./; q'`
9497     done
9498     test ! -n "$as_dirs" || mkdir $as_dirs
9499     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9500     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9501     { (exit 1); exit 1; }; }; }
9502    
9503     rm -f $ac_file
9504     mv $tmp/config.h $ac_file
9505     fi
9506     else
9507     cat $tmp/config.h
9508     rm -f $tmp/config.h
9509     fi
9510     done
9511     _ACEOF
9512     cat >>$CONFIG_STATUS <<\_ACEOF
9513    
9514     #
9515     # CONFIG_LINKS section.
9516     #
9517    
9518     for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9519     ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9520     ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9521    
9522     { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9523     echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9524    
9525     if test ! -r $srcdir/$ac_source; then
9526     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9527     echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9528     { (exit 1); exit 1; }; }
9529     fi
9530     rm -f $ac_dest
9531    
9532     # Make relative symlinks.
9533     ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9534     $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9535     X"$ac_dest" : 'X\(//\)[^/]' \| \
9536     X"$ac_dest" : 'X\(//\)$' \| \
9537     X"$ac_dest" : 'X\(/\)' \| \
9538     . : '\(.\)' 2>/dev/null ||
9539     echo X"$ac_dest" |
9540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9541     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9542     /^X\(\/\/\)$/{ s//\1/; q; }
9543     /^X\(\/\).*/{ s//\1/; q; }
9544     s/.*/./; q'`
9545     { if $as_mkdir_p; then
9546     mkdir -p "$ac_dest_dir"
9547     else
9548     as_dir="$ac_dest_dir"
9549     as_dirs=
9550     while test ! -d "$as_dir"; do
9551     as_dirs="$as_dir $as_dirs"
9552     as_dir=`(dirname "$as_dir") 2>/dev/null ||
9553     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9554     X"$as_dir" : 'X\(//\)[^/]' \| \
9555     X"$as_dir" : 'X\(//\)$' \| \
9556     X"$as_dir" : 'X\(/\)' \| \
9557     . : '\(.\)' 2>/dev/null ||
9558     echo X"$as_dir" |
9559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9560     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9561     /^X\(\/\/\)$/{ s//\1/; q; }
9562     /^X\(\/\).*/{ s//\1/; q; }
9563     s/.*/./; q'`
9564     done
9565     test ! -n "$as_dirs" || mkdir $as_dirs
9566     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9567     echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9568     { (exit 1); exit 1; }; }; }
9569    
9570     ac_builddir=.
9571    
9572     if test "$ac_dest_dir" != .; then
9573     ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9574     # A "../" for each directory in $ac_dir_suffix.
9575     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9576     else
9577     ac_dir_suffix= ac_top_builddir=
9578     fi
9579    
9580     case $srcdir in
9581     .) # No --srcdir option. We are building in place.
9582     ac_srcdir=.
9583     if test -z "$ac_top_builddir"; then
9584     ac_top_srcdir=.
9585     else
9586     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9587     fi ;;
9588     [\\/]* | ?:[\\/]* ) # Absolute path.
9589     ac_srcdir=$srcdir$ac_dir_suffix;
9590     ac_top_srcdir=$srcdir ;;
9591     *) # Relative path.
9592     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9593     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9594     esac
9595    
9596     # Do not use `cd foo && pwd` to compute absolute paths, because
9597     # the directories may not exist.
9598     case `pwd` in
9599     .) ac_abs_builddir="$ac_dest_dir";;
9600     *)
9601     case "$ac_dest_dir" in
9602     .) ac_abs_builddir=`pwd`;;
9603     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9604     *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9605     esac;;
9606     esac
9607     case $ac_abs_builddir in
9608     .) ac_abs_top_builddir=${ac_top_builddir}.;;
9609     *)
9610     case ${ac_top_builddir}. in
9611     .) ac_abs_top_builddir=$ac_abs_builddir;;
9612     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9613     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9614     esac;;
9615     esac
9616     case $ac_abs_builddir in
9617     .) ac_abs_srcdir=$ac_srcdir;;
9618     *)
9619     case $ac_srcdir in
9620     .) ac_abs_srcdir=$ac_abs_builddir;;
9621     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9622     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9623     esac;;
9624     esac
9625     case $ac_abs_builddir in
9626     .) ac_abs_top_srcdir=$ac_top_srcdir;;
9627     *)
9628     case $ac_top_srcdir in
9629     .) ac_abs_top_srcdir=$ac_abs_builddir;;
9630     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9631     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9632     esac;;
9633     esac
9634    
9635    
9636     case $srcdir in
9637     [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9638     *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9639     esac
9640    
9641     # Try a symlink, then a hard link, then a copy.
9642     ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9643     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9644     cp -p $srcdir/$ac_source $ac_dest ||
9645     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9646     echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9647     { (exit 1); exit 1; }; }
9648     done
9649     _ACEOF
9650    
9651     cat >>$CONFIG_STATUS <<\_ACEOF
9652    
9653     { (exit 0); exit 0; }
9654     _ACEOF
9655     chmod +x $CONFIG_STATUS
9656     ac_clean_files=$ac_clean_files_save
9657    
9658    
9659     # configure is writing to config.log, and then calls config.status.
9660     # config.status does its own redirection, appending to config.log.
9661     # Unfortunately, on DOS this fails, as config.log is still kept open
9662     # by configure, so config.status won't be able to write to it; its
9663     # output is simply discarded. So we exec the FD to /dev/null,
9664     # effectively closing config.log, so it can be properly (re)opened and
9665     # appended to by config.status. When coming back to configure, we
9666     # need to make the FD available again.
9667     if test "$no_create" != yes; then
9668     ac_cs_success=:
9669     ac_config_status_args=
9670     test "$silent" = yes &&
9671     ac_config_status_args="$ac_config_status_args --quiet"
9672     exec 5>/dev/null
9673     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9674     exec 5>>config.log
9675     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9676     # would make configure fail if this is the last instruction.
9677     $ac_cs_success || { (exit 1); exit 1; }
9678     fi
9679    

Properties

Name Value
svn:executable *