ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/configure
Revision: 1356
Committed: Mon Jul 19 21:58:37 2004 UTC (20 years ago) by gezelter
File size: 249790 byte(s)
Log Message:
*** empty log message ***

File Contents

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

Properties

Name Value
svn:executable *