ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/configure
Revision: 2024
Committed: Tue Feb 15 05:05:33 2005 UTC (19 years, 5 months ago) by gezelter
File size: 265134 byte(s)
Log Message:
modifications to estimate memory in use by other processes
autoconf fixes
ps syntax checking
config.h file cleaning

File Contents

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

Properties

Name Value
svn:executable *