ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 1323
Committed: Wed Jul 14 20:11:29 2004 UTC (19 years, 11 months ago) by gezelter
File size: 236658 byte(s)
Log Message:
Fixes for MacOS X with xlc++ and xlf

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

Properties

Name Value
svn:executable *