ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 1202
Committed: Thu May 27 16:20:36 2004 UTC (20 years, 2 months ago) by gezelter
File size: 237175 byte(s)
Log Message:
Fixes for xlc++

File Contents

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

Properties

Name Value
svn:executable *