ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/configure
Revision: 1619
Committed: Wed Oct 20 21:16:01 2004 UTC (19 years, 8 months ago) by chuckv
File size: 268846 byte(s)
Log Message:
Fortran/C++ interface de-obfuscation project appears to be complete!  Woo hoo!

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

Properties

Name Value
svn:executable *