ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/configure
Revision: 1535
Committed: Wed Oct 6 21:22:43 2004 UTC (19 years, 8 months ago) by gezelter
File size: 262847 byte(s)
Log Message:
cleaning up build process

File Contents

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

Properties

Name Value
svn:executable *