ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 827
Committed: Tue Oct 28 16:02:29 2003 UTC (20 years, 8 months ago) by gezelter
File size: 195659 byte(s)
Log Message:
mod file fixes and portability stuff

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50 for OOPSE 1.0.
4 #
5 # Report bugs to <gezelter@nd.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17 set -o posix
18 fi
19
20 # Name of the executable.
21 as_me=`echo "$0" |sed 's,.*[\\/],,'`
22
23 if expr a : '\(a\)' >/dev/null 2>&1; then
24 as_expr=expr
25 else
26 as_expr=false
27 fi
28
29 rm -f conf$$ conf$$.exe conf$$.file
30 echo >conf$$.file
31 if ln -s conf$$.file conf$$ 2>/dev/null; then
32 # We could just check for DJGPP; but this test a) works b) is more generic
33 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34 if test -f conf$$.exe; then
35 # Don't use ln at all; we don't have any links
36 as_ln_s='cp -p'
37 else
38 as_ln_s='ln -s'
39 fi
40 elif ln conf$$.file conf$$ 2>/dev/null; then
41 as_ln_s=ln
42 else
43 as_ln_s='cp -p'
44 fi
45 rm -f conf$$ conf$$.exe conf$$.file
46
47 as_executable_p="test -f"
48
49 # Support unset when possible.
50 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56 # NLS nuisances.
57 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
58 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
59 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
60 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
61 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
62 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
63 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
64 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
65
66 # IFS
67 # We need space, tab and new line, in precisely that order.
68 as_nl='
69 '
70 IFS=" $as_nl"
71
72 # CDPATH.
73 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
74
75 # Name of the host.
76 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
77 # so uname gets run too.
78 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
79
80 exec 6>&1
81
82 #
83 # Initializations.
84 #
85 ac_default_prefix=/usr/local
86 cross_compiling=no
87 subdirs=
88 MFLAGS= MAKEFLAGS=
89 SHELL=${CONFIG_SHELL-/bin/sh}
90
91 # Maximum number of lines to put in a shell here document.
92 # This variable seems obsolete. It should probably be removed, and
93 # only ac_max_sed_lines should be used.
94 : ${ac_max_here_lines=38}
95
96 # Avoid depending upon Character Ranges.
97 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
98 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
99 ac_cr_09='0123456789'
100 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
101
102 # Sed expression to map a string onto a valid sh and CPP variable names.
103 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
104 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
105
106 ac_unique_file="src/oopse.cpp"
107 ac_default_prefix="/usr/local"
108
109 # Initialize some variables set by options.
110 ac_init_help=
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
114 cache_file=/dev/null
115 exec_prefix=NONE
116 no_create=
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 verbose=
126 x_includes=NONE
127 x_libraries=NONE
128
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME='OOPSE'
149 PACKAGE_TARNAME='oopse'
150 PACKAGE_VERSION='1.0'
151 PACKAGE_STRING='OOPSE 1.0'
152 PACKAGE_BUGREPORT='gezelter@nd.edu'
153
154 ac_prev=
155 for ac_option
156 do
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
160 ac_prev=
161 continue
162 fi
163
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165
166 # Accept the important Cygnus configure options, so we can diagnose typos.
167
168 case $ac_option in
169
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 ac_prev=bindir ;;
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir=$ac_optarg ;;
174
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
179
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
186
187 --config-cache | -C)
188 cache_file=config.cache ;;
189
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191 ac_prev=datadir ;;
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193 | --da=*)
194 datadir=$ac_optarg ;;
195
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
204
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 case $ac_option in
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214 *) ac_optarg=yes ;;
215 esac
216 eval "enable_$ac_feature='$ac_optarg'" ;;
217
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
226
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
229 with_gas=yes ;;
230
231 -help | --help | --hel | --he | -h)
232 ac_init_help=long ;;
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
237
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
242
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
249
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
254
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir=$ac_optarg ;;
259
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
266
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
275
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir=$ac_optarg ;;
280
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
284
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
288
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
292
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
301
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix=$ac_optarg ;;
306
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
313
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
320
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
337
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
341
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir=$ac_optarg ;;
347
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir=$ac_optarg ;;
358
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site=$ac_optarg ;;
363
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir=$ac_optarg ;;
368
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
375
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
380
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
383
384 -version | --version | --versio | --versi | --vers | -V)
385 ac_init_version=: ;;
386
387 -with-* | --with-*)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case $ac_option in
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_$ac_package='$ac_optarg'" ;;
399
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
408
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
412
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
419
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
426
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
430 ;;
431
432 *=*)
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
440 export $ac_envvar ;;
441
442 *)
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
448 ;;
449
450 esac
451 done
452
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
457 fi
458
459 # Be sure to have absolute paths.
460 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
461 localstatedir libdir includedir oldincludedir infodir mandir \
462 exec_prefix prefix
463 do
464 eval ac_val=$`echo $ac_var`
465 case $ac_val in
466 [\\/$]* | ?:[\\/]* ) ;;
467 NONE ) ;;
468 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
469 { (exit 1); exit 1; }; };;
470 esac
471 done
472
473 # There might be people who depend on the old broken behavior: `$host'
474 # used to hold the argument of --host etc.
475 build=$build_alias
476 host=$host_alias
477 target=$target_alias
478
479 # FIXME: should be removed in autoconf 3.0.
480 if test "x$host_alias" != x; then
481 if test "x$build_alias" = x; then
482 cross_compiling=maybe
483 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
484 If a cross compiler is detected then cross compile mode will be used." >&2
485 elif test "x$build_alias" != "x$host_alias"; then
486 cross_compiling=yes
487 fi
488 fi
489
490 ac_tool_prefix=
491 test -n "$host_alias" && ac_tool_prefix=$host_alias-
492
493 test "$silent" = yes && exec 6>/dev/null
494
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted=yes
498 # Try the directory containing this script, then its parent.
499 ac_prog=$0
500 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502 srcdir=$ac_confdir
503 if test ! -r $srcdir/$ac_unique_file; then
504 srcdir=..
505 fi
506 else
507 ac_srcdir_defaulted=no
508 fi
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
512 { (exit 1); exit 1; }; }
513 else
514 { echo "$as_me: error: cannot find sources in $srcdir" >&2
515 { (exit 1); exit 1; }; }
516 fi
517 fi
518 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
519 ac_env_build_alias_set=${build_alias+set}
520 ac_env_build_alias_value=$build_alias
521 ac_cv_env_build_alias_set=${build_alias+set}
522 ac_cv_env_build_alias_value=$build_alias
523 ac_env_host_alias_set=${host_alias+set}
524 ac_env_host_alias_value=$host_alias
525 ac_cv_env_host_alias_set=${host_alias+set}
526 ac_cv_env_host_alias_value=$host_alias
527 ac_env_target_alias_set=${target_alias+set}
528 ac_env_target_alias_value=$target_alias
529 ac_cv_env_target_alias_set=${target_alias+set}
530 ac_cv_env_target_alias_value=$target_alias
531 ac_env_CC_set=${CC+set}
532 ac_env_CC_value=$CC
533 ac_cv_env_CC_set=${CC+set}
534 ac_cv_env_CC_value=$CC
535 ac_env_CFLAGS_set=${CFLAGS+set}
536 ac_env_CFLAGS_value=$CFLAGS
537 ac_cv_env_CFLAGS_set=${CFLAGS+set}
538 ac_cv_env_CFLAGS_value=$CFLAGS
539 ac_env_LDFLAGS_set=${LDFLAGS+set}
540 ac_env_LDFLAGS_value=$LDFLAGS
541 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
542 ac_cv_env_LDFLAGS_value=$LDFLAGS
543 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
544 ac_env_CPPFLAGS_value=$CPPFLAGS
545 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
546 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
547 ac_env_CXX_set=${CXX+set}
548 ac_env_CXX_value=$CXX
549 ac_cv_env_CXX_set=${CXX+set}
550 ac_cv_env_CXX_value=$CXX
551 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
552 ac_env_CXXFLAGS_value=$CXXFLAGS
553 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
554 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
555 ac_env_F90_set=${F90+set}
556 ac_env_F90_value=$F90
557 ac_cv_env_F90_set=${F90+set}
558 ac_cv_env_F90_value=$F90
559 ac_env_F90FLAGS_set=${F90FLAGS+set}
560 ac_env_F90FLAGS_value=$F90FLAGS
561 ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
562 ac_cv_env_F90FLAGS_value=$F90FLAGS
563 ac_env_MPIF77_set=${MPIF77+set}
564 ac_env_MPIF77_value=$MPIF77
565 ac_cv_env_MPIF77_set=${MPIF77+set}
566 ac_cv_env_MPIF77_value=$MPIF77
567 ac_env_CPP_set=${CPP+set}
568 ac_env_CPP_value=$CPP
569 ac_cv_env_CPP_set=${CPP+set}
570 ac_cv_env_CPP_value=$CPP
571
572 #
573 # Report the --help message.
574 #
575 if test "$ac_init_help" = "long"; then
576 # Omit some internal or obsolete options to make the list less imposing.
577 # This message is too long to be a string in the A/UX 3.1 sh.
578 cat <<EOF
579 \`configure' configures OOPSE 1.0 to adapt to many kinds of systems.
580
581 Usage: $0 [OPTION]... [VAR=VALUE]...
582
583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
584 VAR=VALUE. See below for descriptions of some of the useful variables.
585
586 Defaults for the options are specified in brackets.
587
588 Configuration:
589 -h, --help display this help and exit
590 --help=short display options specific to this package
591 --help=recursive display the short help of all the included packages
592 -V, --version display version information and exit
593 -q, --quiet, --silent do not print \`checking...' messages
594 --cache-file=FILE cache test results in FILE [disabled]
595 -C, --config-cache alias for \`--cache-file=config.cache'
596 -n, --no-create do not create output files
597 --srcdir=DIR find the sources in DIR [configure dir or \`..']
598
599 EOF
600
601 cat <<EOF
602 Installation directories:
603 --prefix=PREFIX install architecture-independent files in PREFIX
604 [$ac_default_prefix]
605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
606 [PREFIX]
607
608 By default, \`make install' will install all the files in
609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
611 for instance \`--prefix=\$HOME'.
612
613 For better control, use the options below.
614
615 Fine tuning of the installation directories:
616 --bindir=DIR user executables [EPREFIX/bin]
617 --sbindir=DIR system admin executables [EPREFIX/sbin]
618 --libexecdir=DIR program executables [EPREFIX/libexec]
619 --datadir=DIR read-only architecture-independent data [PREFIX/share]
620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
623 --libdir=DIR object code libraries [EPREFIX/lib]
624 --includedir=DIR C header files [PREFIX/include]
625 --oldincludedir=DIR C header files for non-gcc [/usr/include]
626 --infodir=DIR info documentation [PREFIX/info]
627 --mandir=DIR man documentation [PREFIX/man]
628 EOF
629
630 cat <<\EOF
631
632 System types:
633 --build=BUILD configure for building on BUILD [guessed]
634 --host=HOST build programs to run on HOST [BUILD]
635 EOF
636 fi
637
638 if test -n "$ac_init_help"; then
639 case $ac_init_help in
640 short | recursive ) echo "Configuration of OOPSE 1.0:";;
641 esac
642 cat <<\EOF
643
644 Optional Features:
645 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
646 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
647 --enable-debug Compile OOPSE in debug mode
648 --enable-oopse-home=DIR define oopse home dir PREFIX/oopse
649
650 Optional Packages:
651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
653 --with-mpi_dir=MPIDIR give the path for MPI /usr/local
654 --with-mpi-libdir=dir give the path for MPI-libraries MPI_DIR/lib
655 --with-mpi_inc=dir give the path for MPI-include-files MPI_DIR/include
656 --with-sprng_prefix=PREFIX
657 Prefix where SPRNG is installed
658 --with-sprng-libdir=PREFIX SPRNG library directory
659 --with-sprng-include=PREFIX
660 SPRNG include directory
661 --with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
662 --with-mpi_f90_mods=<dir>
663 Location where MPI f90 modules are installed
664
665 Some influential environment variables:
666 CC C compiler command
667 CFLAGS C compiler flags
668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
669 nonstandard directory <lib dir>
670 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
671 headers in a nonstandard directory <include dir>
672 CXX C++ compiler command
673 CXXFLAGS C++ compiler flags
674 F90 Fortran 90 compiler command
675 F90FLAGS Fortran 90 compiler flags
676 MPIF77 MPI Fortran compiler command
677 CPP C preprocessor
678
679 Use these variables to override the choices made by `configure' or to help
680 it to find libraries and programs with nonstandard names/locations.
681
682 Report bugs to <gezelter@nd.edu>.
683 EOF
684 fi
685
686 if test "$ac_init_help" = "recursive"; then
687 # If there are subdirs, report their specific --help.
688 ac_popdir=`pwd`
689 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
690 cd $ac_subdir
691 # A "../" for each directory in /$ac_subdir.
692 ac_dots=`echo $ac_subdir |
693 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
694
695 case $srcdir in
696 .) # No --srcdir option. We are building in place.
697 ac_sub_srcdir=$srcdir ;;
698 [\\/]* | ?:[\\/]* ) # Absolute path.
699 ac_sub_srcdir=$srcdir/$ac_subdir ;;
700 *) # Relative path.
701 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
702 esac
703
704 # Check for guested configure; otherwise get Cygnus style configure.
705 if test -f $ac_sub_srcdir/configure.gnu; then
706 echo
707 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
708 elif test -f $ac_sub_srcdir/configure; then
709 echo
710 $SHELL $ac_sub_srcdir/configure --help=recursive
711 elif test -f $ac_sub_srcdir/configure.ac ||
712 test -f $ac_sub_srcdir/configure.in; then
713 echo
714 $ac_configure --help
715 else
716 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
717 fi
718 cd $ac_popdir
719 done
720 fi
721
722 test -n "$ac_init_help" && exit 0
723 if $ac_init_version; then
724 cat <<\EOF
725 OOPSE configure 1.0
726 generated by GNU Autoconf 2.50
727
728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
729 Free Software Foundation, Inc.
730 This configure script is free software; the Free Software Foundation
731 gives unlimited permission to copy, distribute and modify it.
732 EOF
733 exit 0
734 fi
735 exec 5>config.log
736 cat >&5 <<EOF
737 This file contains any messages produced by compilers while
738 running configure, to aid debugging if configure makes a mistake.
739
740 It was created by OOPSE $as_me 1.0, which was
741 generated by GNU Autoconf 2.50. Invocation command line was
742
743 $ $0 $@
744
745 EOF
746 {
747 cat <<_ASUNAME
748 ## ---------- ##
749 ## Platform. ##
750 ## ---------- ##
751
752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
757
758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
760
761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
764 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
768
769 PATH = $PATH
770
771 _ASUNAME
772 } >&5
773
774 cat >&5 <<EOF
775 ## ------------ ##
776 ## Core tests. ##
777 ## ------------ ##
778
779 EOF
780
781 # Keep a trace of the command line.
782 # Strip out --no-create and --no-recursion so they do not pile up.
783 # Also quote any args containing shell meta-characters.
784 ac_configure_args=
785 ac_sep=
786 for ac_arg
787 do
788 case $ac_arg in
789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
790 | --no-cr | --no-c) ;;
791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
796 ac_sep=" " ;;
797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
798 ac_sep=" " ;;
799 esac
800 # Get rid of the leading space.
801 done
802
803 # When interrupted or exit'd, cleanup temporary files, and complete
804 # config.log. We remove comments because anyway the quotes in there
805 # would cause problems or look ugly.
806 trap 'exit_status=$?
807 # Save into config.log some information that might help in debugging.
808 echo >&5
809 echo "## ----------------- ##" >&5
810 echo "## Cache variables. ##" >&5
811 echo "## ----------------- ##" >&5
812 echo >&5
813 # The following way of writing the cache mishandles newlines in values,
814 {
815 (set) 2>&1 |
816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
817 *ac_space=\ *)
818 sed -n \
819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
820 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
821 ;;
822 *)
823 sed -n \
824 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
825 ;;
826 esac;
827 } >&5
828 sed "/^$/d" confdefs.h >conftest.log
829 if test -s conftest.log; then
830 echo >&5
831 echo "## ------------ ##" >&5
832 echo "## confdefs.h. ##" >&5
833 echo "## ------------ ##" >&5
834 echo >&5
835 cat conftest.log >&5
836 fi
837 (echo; echo) >&5
838 test "$ac_signal" != 0 &&
839 echo "$as_me: caught signal $ac_signal" >&5
840 echo "$as_me: exit $exit_status" >&5
841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
842 exit $exit_status
843 ' 0
844 for ac_signal in 1 2 13 15; do
845 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
846 done
847 ac_signal=0
848
849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
850 rm -rf conftest* confdefs.h
851 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
852 echo >confdefs.h
853
854 # Let the site file select an alternate cache file if it wants to.
855 # Prefer explicitly selected file to automatically selected ones.
856 if test -z "$CONFIG_SITE"; then
857 if test "x$prefix" != xNONE; then
858 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
859 else
860 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
861 fi
862 fi
863 for ac_site_file in $CONFIG_SITE; do
864 if test -r "$ac_site_file"; then
865 { echo "$as_me:865: loading site script $ac_site_file" >&5
866 echo "$as_me: loading site script $ac_site_file" >&6;}
867 cat "$ac_site_file" >&5
868 . "$ac_site_file"
869 fi
870 done
871
872 if test -r "$cache_file"; then
873 # Some versions of bash will fail to source /dev/null (special
874 # files actually), so we avoid doing that.
875 if test -f "$cache_file"; then
876 { echo "$as_me:876: loading cache $cache_file" >&5
877 echo "$as_me: loading cache $cache_file" >&6;}
878 case $cache_file in
879 [\\/]* | ?:[\\/]* ) . $cache_file;;
880 *) . ./$cache_file;;
881 esac
882 fi
883 else
884 { echo "$as_me:884: creating cache $cache_file" >&5
885 echo "$as_me: creating cache $cache_file" >&6;}
886 >$cache_file
887 fi
888
889 # Check that the precious variables saved in the cache have kept the same
890 # value.
891 ac_suggest_removing_cache=false
892 for ac_var in `(set) 2>&1 |
893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
895 eval ac_new_set=\$ac_env_${ac_var}_set
896 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
897 eval ac_new_val="\$ac_env_${ac_var}_value"
898 case $ac_old_set,$ac_new_set in
899 set,)
900 { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
901 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
902 ac_suggest_removing_cache=: ;;
903 ,set)
904 { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
905 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
906 ac_suggest_removing_cache=: ;;
907 ,);;
908 *)
909 if test "x$ac_old_val" != "x$ac_new_val"; then
910 { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
911 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
912 { echo "$as_me:912: WARNING: former value: $ac_old_val" >&5
913 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
914 { echo "$as_me:914: WARNING: current value: $ac_new_val" >&5
915 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
916 ac_suggest_removing_cache=:
917 fi;;
918 esac
919 done
920 if $ac_suggest_removing_cache; then
921 { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
922 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
923 { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
924 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
925 fi
926
927 ac_ext=c
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
932
933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
934 *c*,-n*) ECHO_N= ECHO_C='
935 ' ECHO_T=' ' ;;
936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
938 esac
939 echo "#! $SHELL" >conftest.sh
940 echo "exit 0" >>conftest.sh
941 chmod +x conftest.sh
942 if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
943 (PATH=".;."; conftest.sh) 2>&5
944 ac_status=$?
945 echo "$as_me:945: \$? = $ac_status" >&5
946 (exit $ac_status); }; then
947 ac_path_separator=';'
948 else
949 ac_path_separator=:
950 fi
951 PATH_SEPARATOR="$ac_path_separator"
952 rm -f conftest.sh
953
954 ac_aux_dir=
955 for ac_dir in ac-tools $srcdir/ac-tools; do
956 if test -f $ac_dir/install-sh; then
957 ac_aux_dir=$ac_dir
958 ac_install_sh="$ac_aux_dir/install-sh -c"
959 break
960 elif test -f $ac_dir/install.sh; then
961 ac_aux_dir=$ac_dir
962 ac_install_sh="$ac_aux_dir/install.sh -c"
963 break
964 elif test -f $ac_dir/shtool; then
965 ac_aux_dir=$ac_dir
966 ac_install_sh="$ac_aux_dir/shtool install -c"
967 break
968 fi
969 done
970 if test -z "$ac_aux_dir"; then
971 { { echo "$as_me:971: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
972 echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
973 { (exit 1); exit 1; }; }
974 fi
975 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
976 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
977 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
978
979 # This file is part of Autoconf. -*- Autoconf -*-
980 # Programming languages support.
981 # Copyright 2000, 2001
982 # Free Software Foundation, Inc.
983 #
984 # This program is free software; you can redistribute it and/or modify
985 # it under the terms of the GNU General Public License as published by
986 # the Free Software Foundation; either version 2, or (at your option)
987 # any later version.
988 #
989 # This program is distributed in the hope that it will be useful,
990 # but WITHOUT ANY WARRANTY; without even the implied warranty of
991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
992 # GNU General Public License for more details.
993 #
994 # You should have received a copy of the GNU General Public License
995 # along with this program; if not, write to the Free Software
996 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
997 # 02111-1307, USA.
998 #
999 # As a special exception, the Free Software Foundation gives unlimited
1000 # permission to copy, distribute and modify the configure scripts that
1001 # are the output of Autoconf. You need not follow the terms of the GNU
1002 # General Public License when using or distributing such scripts, even
1003 # though portions of the text of Autoconf appear in them. The GNU
1004 # General Public License (GPL) does govern all other use of the material
1005 # that constitutes the Autoconf program.
1006 #
1007 # Certain portions of the Autoconf source text are designed to be copied
1008 # (in certain cases, depending on the input) into the output of
1009 # Autoconf. We call these the "data" portions. The rest of the Autoconf
1010 # source text consists of comments plus executable code that decides which
1011 # of the data portions to output in any given case. We call these
1012 # comments and executable code the "non-data" portions. Autoconf never
1013 # copies any of the non-data portions into its output.
1014 #
1015 # This special exception to the GPL applies to versions of Autoconf
1016 # released by the Free Software Foundation. When you make and
1017 # distribute a modified version of Autoconf, you may extend this special
1018 # exception to the GPL to apply to your modified version as well, *unless*
1019 # your modified version has the potential to copy into its output some
1020 # of the text that was the non-data portion of the version that you started
1021 # with. (In other words, unless your change moves or copies text from
1022 # the non-data portions to the data portions.) If your modification has
1023 # such potential, you must delete any notice of this special exception
1024 # to the GPL from your modified version.
1025 #
1026 # Written by Akim Demaille, Christian Marquardt, Martin Wilks (and probably
1027 # many others).
1028
1029 # Table of Contents:
1030 #
1031 # 1. Language selection
1032 # and routines to produce programs in a given language.
1033 # a. Fortran 77 (to be moved from aclang.m4)
1034 # b. Fortran 90
1035 # c. Fortran 95
1036 #
1037 # 2. Producing programs in a given language.
1038 # a. Fortran 77 (to be moved from aclang.m4)
1039 # b. Fortran 90
1040 # c. Fortran 95
1041 #
1042 # 3. Looking for a compiler
1043 # And possibly the associated preprocessor.
1044 # a. Fortran 77 (to be moved from aclang.m4)
1045 # b. Fortran 90
1046 # c. Fortran 95
1047 #
1048 # 4. Compilers' characteristics.
1049 # a. Fortran 77 (to be moved from aclang.m4)
1050 # b. Fortran 90
1051 # c. Fortran 95
1052
1053 # _AC_LIST_MEMBER_IF(ELEMENT, LIST, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1054 # ---------------------------------------------------------------------------
1055 #
1056 # Processing the elements of a list is tedious in shell programming,
1057 # as lists tend to be implemented as space delimited strings.
1058 #
1059 # This macro searches LIST for ELEMENT, and executes ACTION-IF-FOUND
1060 # if ELEMENT is a member of LIST, otherwise it executes
1061 # ACTION-IF-NOT-FOUND.
1062 # _AC_LIST_MEMBER_IF
1063
1064 # _AC_LINKER_OPTION(LINKER-OPTIONS, SHELL-VARIABLE)
1065 # -------------------------------------------------
1066 #
1067 # Specifying options to the compiler (whether it be the C, C++ or
1068 # Fortran 77 compiler) that are meant for the linker is compiler
1069 # dependent. This macro lets you give options to the compiler that
1070 # are meant for the linker in a portable, compiler-independent way.
1071 #
1072 # This macro take two arguments, a list of linker options that the
1073 # compiler should pass to the linker (LINKER-OPTIONS) and the name of
1074 # a shell variable (SHELL-VARIABLE). The list of linker options are
1075 # appended to the shell variable in a compiler-dependent way.
1076 #
1077 # For example, if the selected language is C, then this:
1078 #
1079 # _AC_LINKER_OPTION([-R /usr/local/lib/foo], foo_LDFLAGS)
1080 #
1081 # will expand into this if the selected C compiler is gcc:
1082 #
1083 # foo_LDFLAGS="-Xlinker -R -Xlinker /usr/local/lib/foo"
1084 #
1085 # otherwise, it will expand into this:
1086 #
1087 # foo_LDFLAGS"-R /usr/local/lib/foo"
1088 #
1089 # You are encouraged to add support for compilers that this macro
1090 # doesn't currently support.
1091 # FIXME: Get rid of this macro.
1092 # _AC_LINKER_OPTION
1093
1094 ## ----------------------- ##
1095 ## 1. Language selection. ##
1096 ## ----------------------- ##
1097
1098 # ----------------------------- #
1099 # 1b. The Fortran 90 language. #
1100 # ----------------------------- #
1101
1102 # AC_LANG(Fortran 90)
1103 # -------------------
1104
1105 # _AC_LANG_ABBREV(Fortran 90)
1106 # ---------------------------
1107
1108 # ----------------------------- #
1109 # 1c. The Fortran 95 language. #
1110 # ----------------------------- #
1111
1112 # AC_LANG(Fortran 95)
1113 # -------------------
1114
1115 # _AC_LANG_ABBREV(Fortran 95)
1116 # ---------------------------
1117
1118 ## ---------------------- ##
1119 ## 2.Producing programs. ##
1120 ## ---------------------- ##
1121
1122 # ------------------------ #
1123 # 2b. Fortran 90 sources. #
1124 # ------------------------ #
1125
1126 # AC_LANG_SOURCE(Fortran 90)(BODY)
1127 # --------------------------------
1128
1129 # AC_LANG_PROGRAM(Fortran 90)([PROLOGUE], [BODY])
1130 # -----------------------------------------------
1131
1132 # AC_LANG_CALL(Fortran 90)(PROLOGUE, FUNCTION)
1133 # --------------------------------------------
1134
1135 # ------------------------ #
1136 # 2c. Fortran 95 sources. #
1137 # ------------------------ #
1138
1139 # AC_LANG_SOURCE(Fortran 95)(BODY)
1140 # --------------------------------
1141
1142 # AC_LANG_PROGRAM(Fortran 95)([PROLOGUE], [BODY])
1143 # -----------------------------------------------
1144
1145 # AC_LANG_CALL(Fortran 95)(PROLOGUE, FUNCTION)
1146 # --------------------------------------------
1147
1148 ## -------------------------------------------- ##
1149 ## 3. Looking for Compilers and Preprocessors. ##
1150 ## -------------------------------------------- ##
1151
1152 # ----------------------------- #
1153 # 3b. The Fortran 90 compiler. #
1154 # ----------------------------- #
1155
1156 # AC_LANG_PREPROC(Fortran 90)
1157 # ---------------------------
1158 # Find the Fortran 90 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1159
1160 # AC_LANG_COMPILER(Fortran 90)
1161 # ----------------------------
1162 # Find the Fortran 90 compiler. Must be AC_DEFUN'd to be
1163 # AC_REQUIRE'able.
1164
1165 # AC_PROG_F90([COMPILERS...])
1166 # ---------------------------
1167 # COMPILERS is a space separated list of Fortran 90 compilers to search
1168 # for.
1169 #
1170 # Compilers are ordered by
1171 # 1. F90, F95
1172 # 2. Good/tested native compilers, bad/untested native compilers
1173 #
1174 # pgf90 is the Portland Group F90 compilers.
1175 # xlf90/xlf95 are IBM (AIX) F90/F95 compilers.
1176 # lf95 is the Lahey-Fujitsu compiler.
1177 # epcf90 is the "Edinburgh Portable Compiler" F90.
1178 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1179 # AC_PROG_F90
1180
1181 # ----------------------------- #
1182 # 3c. The Fortran 95 compiler. #
1183 # ----------------------------- #
1184
1185 # AC_LANG_PREPROC(Fortran 95)
1186 # ---------------------------
1187 # Find the Fortran 95 preprocessor. Must be AC_DEFUN'd to be AC_REQUIRE'able.
1188
1189 # AC_LANG_COMPILER(Fortran 95)
1190 # ----------------------------
1191 # Find the Fortran 95 compiler. Must be AC_DEFUN'd to be
1192 # AC_REQUIRE'able.
1193
1194 # AC_PROG_F95([COMPILERS...])
1195 # ---------------------------
1196 # COMPILERS is a space separated list of Fortran 95 compilers to search
1197 # for.
1198 #
1199 # Compilers are ordered by
1200 # 1. Good/tested native compilers, bad/untested native compilers
1201 #
1202 # xlf95 is the IBM (AIX) F95 compiler.
1203 # lf95 is the Lahey-Fujitsu compiler.
1204 # fort is the Compaq Fortran 90 (now 95) compiler for Tru64 and Linux/Alpha.
1205 # AC_PROG_F95
1206
1207 ## ------------------------------- ##
1208 ## 4. Compilers' characteristics. ##
1209 ## ------------------------------- ##
1210
1211 # ---------------------------------------- #
1212 # 4b. Fortan 90 compiler characteristics. #
1213 # ---------------------------------------- #
1214
1215 # _AC_PROG_F90_V_OUTPUT([FLAG = $ac_cv_prog_f90_v])
1216 # -------------------------------------------------
1217 # Link a trivial Fortran program, compiling with a verbose output FLAG
1218 # (which default value, $ac_cv_prog_f90_v, is computed by
1219 # _AC_PROG_F90_V), and return the output in $ac_f90_v_output. This
1220 # output is processed in the way expected by AC_F90_LIBRARY_LDFLAGS,
1221 # so that any link flags that are echoed by the compiler appear as
1222 # space-separated items.
1223 # _AC_PROG_F90_V_OUTPUT
1224
1225 # _AC_PROG_F90_V
1226 # --------------
1227 #
1228 # Determine the flag that causes the Fortran 90 compiler to print
1229 # information of library and object files (normally -v)
1230 # Needed for AC_F90_LIBRARY_FLAGS
1231 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1232 # _AC_PROG_F90_V
1233
1234 # AC_F90_LIBRARY_LDFLAGS
1235 # ----------------------
1236 #
1237 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 90
1238 # intrinsic and run-time libraries that are required to successfully
1239 # link a Fortran 90 program or shared library. The output variable
1240 # F90LIBS is set to these flags.
1241 #
1242 # This macro is intended to be used in those situations when it is
1243 # necessary to mix, e.g. C++ and Fortran 90, source code into a single
1244 # program or shared library.
1245 #
1246 # For example, if object files from a C++ and Fortran 90 compiler must
1247 # be linked together, then the C++ compiler/linker must be used for
1248 # linking (since special C++-ish things need to happen at link time
1249 # like calling global constructors, instantiating templates, enabling
1250 # exception support, etc.).
1251 #
1252 # However, the Fortran 90 intrinsic and run-time libraries must be
1253 # linked in as well, but the C++ compiler/linker doesn't know how to
1254 # add these Fortran 90 libraries. Hence, the macro
1255 # "AC_F90_LIBRARY_LDFLAGS" was created to determine these Fortran 90
1256 # libraries.
1257 #
1258 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1259 # AC_F90_LIBRARY_LDFLAGS
1260
1261 # _AC_F90_NAME_MANGLING
1262 # ---------------------
1263 # Test for the name mangling scheme used by the Fortran 90 compiler.
1264 #
1265 # Sets ac_cv_f90_mangling. The value contains three fields, separated
1266 # by commas:
1267 #
1268 # lower case / upper case:
1269 # case translation of the Fortan 90 symbols
1270 # underscore / no underscore:
1271 # whether the compiler appends "_" to symbol names
1272 # extra underscore / no extra underscore:
1273 # whether the compiler appends an extra "_" to symbol names already
1274 # containing at least one underscore
1275 #
1276 # _AC_F90_NAME_MANGLING
1277
1278 # The replacement is empty.
1279
1280 # AC_F90_WRAPPERS
1281 # ---------------
1282 # Defines C macros F90_FUNC(name,NAME) and F90_FUNC_(name,NAME) to
1283 # properly mangle the names of C identifiers, and C identifiers with
1284 # underscores, respectively, so that they match the name mangling
1285 # scheme used by the Fortran 90 compiler.
1286 # AC_F90_WRAPPERS
1287
1288 # AC_F90_FUNC(NAME, [SHELLVAR = NAME])
1289 # ------------------------------------
1290 # For a Fortran subroutine of given NAME, define a shell variable
1291 # $SHELLVAR to the Fortran 90 mangled name. If the SHELLVAR
1292 # argument is not supplied, it defaults to NAME.
1293 # AC_F90_FUNC
1294
1295 # ---------------------------------------- #
1296 # 4c. Fortan 95 compiler characteristics. #
1297 # ---------------------------------------- #
1298
1299 # _AC_PROG_F95_V_OUTPUT([FLAG = $ac_cv_prog_f95_v])
1300 # -------------------------------------------------
1301 # Link a trivial Fortran program, compiling with a verbose output FLAG
1302 # (which default value, $ac_cv_prog_f95_v, is computed by
1303 # _AC_PROG_F95_V), and return the output in $ac_f95_v_output. This
1304 # output is processed in the way expected by AC_F95_LIBRARY_LDFLAGS,
1305 # so that any link flags that are echoed by the compiler appear as
1306 # space-separated items.
1307 # _AC_PROG_F95_V_OUTPUT
1308
1309 # _AC_PROG_F95_V
1310 # --------------
1311 #
1312 # Determine the flag that causes the Fortran 95 compiler to print
1313 # information of library and object files (normally -v)
1314 # Needed for AC_F95_LIBRARY_FLAGS
1315 # Some compilers don't accept -v (Lahey: -verbose, xlf: -V, Fujitsu: -###)
1316 # _AC_PROG_F95_V
1317
1318 # AC_F95_LIBRARY_LDFLAGS
1319 # ----------------------
1320 #
1321 # Determine the linker flags (e.g. "-L" and "-l") for the Fortran 95
1322 # intrinsic and run-time libraries that are required to successfully
1323 # link a Fortran 95 program or shared library. The output variable
1324 # F95LIBS is set to these flags.
1325 #
1326 # This macro is intended to be used in those situations when it is
1327 # necessary to mix, e.g. C++ and Fortran 95, source code into a single
1328 # program or shared library.
1329 #
1330 # For example, if object files from a C++ and Fortran 95 compiler must
1331 # be linked together, then the C++ compiler/linker must be used for
1332 # linking (since special C++-ish things need to happen at link time
1333 # like calling global constructors, instantiating templates, enabling
1334 # exception support, etc.).
1335 #
1336 # However, the Fortran 95 intrinsic and run-time libraries must be
1337 # linked in as well, but the C++ compiler/linker doesn't know how to
1338 # add these Fortran 95 libraries. Hence, the macro
1339 # "AC_F95_LIBRARY_LDFLAGS" was created to determine these Fortran 95
1340 # libraries.
1341 #
1342 # This macro was copied from the Fortran 77 version by Matthew D. Langston.
1343 # AC_F95_LIBRARY_LDFLAGS
1344
1345 # _AC_F95_NAME_MANGLING
1346 # ---------------------
1347 # Test for the name mangling scheme used by the Fortran 95 compiler.
1348 #
1349 # Sets ac_cv_f95_mangling. The value contains three fields, separated
1350 # by commas:
1351 #
1352 # lower case / upper case:
1353 # case translation of the Fortan 95 symbols
1354 # underscore / no underscore:
1355 # whether the compiler appends "_" to symbol names
1356 # extra underscore / no extra underscore:
1357 # whether the compiler appends an extra "_" to symbol names already
1358 # containing at least one underscore
1359 #
1360 # _AC_F95_NAME_MANGLING
1361
1362 # The replacement is empty.
1363
1364 # AC_F95_WRAPPERS
1365 # ---------------
1366 # Defines C macros F95_FUNC(name,NAME) and F95_FUNC_(name,NAME) to
1367 # properly mangle the names of C identifiers, and C identifiers with
1368 # underscores, respectively, so that they match the name mangling
1369 # scheme used by the Fortran 95 compiler.
1370 # AC_F95_WRAPPERS
1371
1372 # AC_F95_FUNC(NAME, [SHELLVAR = NAME])
1373 # ------------------------------------
1374 # For a Fortran subroutine of given NAME, define a shell variable
1375 # $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR
1376 # argument is not supplied, it defaults to NAME.
1377 # AC_F95_FUNC
1378
1379 # set program name
1380 PROGNAME="oopse"
1381
1382 # there are two ways to do debugging. One with the --enable-debug flag
1383 # and one using the DEBUG environment variable
1384
1385 debug=0
1386 # Check whether --enable-debug or --disable-debug was given.
1387 if test "${enable_debug+set}" = set; then
1388 enableval="$enable_debug"
1389 debug=1
1390 fi;
1391 if test "${DEBUG}"; then
1392
1393 cat >>confdefs.h <<\EOF
1394 #define debug 1
1395 EOF
1396
1397 msg="$msg, debug mode"
1398 fi
1399
1400 # who am i
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:1403: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407 echo "$as_me:1407: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:1416: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:1420: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1422 { (exit 1); exit 1; }; }
1423
1424 fi
1425 echo "$as_me:1425: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1427 build=$ac_cv_build
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432 echo "$as_me:1432: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:1441: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1444
1445 fi
1446 echo "$as_me:1446: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1448 host=$ac_cv_host
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458 if test -n "$ac_tool_prefix"; then
1459 for ac_prog in icc xlc gcc cc
1460 do
1461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1463 echo "$as_me:1463: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 ac_save_IFS=$IFS; IFS=$ac_path_separator
1472 ac_dummy="$PATH"
1473 for ac_dir in $ac_dummy; do
1474 IFS=$ac_save_IFS
1475 test -z "$ac_dir" && ac_dir=.
1476 $as_executable_p "$ac_dir/$ac_word" || continue
1477 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1478 echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1479 break
1480 done
1481
1482 fi
1483 fi
1484 CC=$ac_cv_prog_CC
1485 if test -n "$CC"; then
1486 echo "$as_me:1486: result: $CC" >&5
1487 echo "${ECHO_T}$CC" >&6
1488 else
1489 echo "$as_me:1489: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1491 fi
1492
1493 test -n "$CC" && break
1494 done
1495 fi
1496 if test -z "$CC"; then
1497 ac_ct_CC=$CC
1498 for ac_prog in icc xlc gcc cc
1499 do
1500 # Extract the first word of "$ac_prog", so it can be a program name with args.
1501 set dummy $ac_prog; ac_word=$2
1502 echo "$as_me:1502: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509 else
1510 ac_save_IFS=$IFS; IFS=$ac_path_separator
1511 ac_dummy="$PATH"
1512 for ac_dir in $ac_dummy; do
1513 IFS=$ac_save_IFS
1514 test -z "$ac_dir" && ac_dir=.
1515 $as_executable_p "$ac_dir/$ac_word" || continue
1516 ac_cv_prog_ac_ct_CC="$ac_prog"
1517 echo "$as_me:1517: found $ac_dir/$ac_word" >&5
1518 break
1519 done
1520
1521 fi
1522 fi
1523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1524 if test -n "$ac_ct_CC"; then
1525 echo "$as_me:1525: result: $ac_ct_CC" >&5
1526 echo "${ECHO_T}$ac_ct_CC" >&6
1527 else
1528 echo "$as_me:1528: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1530 fi
1531
1532 test -n "$ac_ct_CC" && break
1533 done
1534
1535 CC=$ac_ct_CC
1536 fi
1537
1538 test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5
1539 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542 cat >conftest.$ac_ext <<_ACEOF
1543 #line 1543 "configure"
1544 #include "confdefs.h"
1545
1546 int
1547 main ()
1548 {
1549
1550 ;
1551 return 0;
1552 }
1553 _ACEOF
1554 ac_clean_files_save=$ac_clean_files
1555 ac_clean_files="$ac_clean_files a.out a.exe"
1556 # Try to create an executable without -o first, disregard a.out.
1557 # It will help us diagnose broken compiler, and finding out an intuition
1558 # of exeext.
1559 echo "$as_me:1559: checking for C compiler default output" >&5
1560 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1561 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1562 if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5
1563 (eval $ac_link_default) 2>&5
1564 ac_status=$?
1565 echo "$as_me:1565: \$? = $ac_status" >&5
1566 (exit $ac_status); }; then
1567 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1568 case $ac_file in
1569 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1570 a.out ) # We found the default executable, but exeext='' is most
1571 # certainly right.
1572 break;;
1573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1574 export ac_cv_exeext
1575 break;;
1576 * ) break;;
1577 esac
1578 done
1579 else
1580 echo "$as_me: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1582 { { echo "$as_me:1582: error: C compiler cannot create executables" >&5
1583 echo "$as_me: error: C compiler cannot create executables" >&2;}
1584 { (exit 77); exit 77; }; }
1585 fi
1586
1587 ac_exeext=$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_file" >&5
1589 echo "${ECHO_T}$ac_file" >&6
1590
1591 # Check the compiler produces executables we can run. If not, either
1592 # the compiler is broken, or we cross compile.
1593 echo "$as_me:1593: checking whether the C compiler works" >&5
1594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1596 # If not cross compiling, check that we can run a simple program.
1597 if test "$cross_compiling" != yes; then
1598 if { ac_try='./$ac_file'
1599 { (eval echo "$as_me:1599: \"$ac_try\"") >&5
1600 (eval $ac_try) 2>&5
1601 ac_status=$?
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; }; then
1604 cross_compiling=no
1605 else
1606 if test "$cross_compiling" = maybe; then
1607 cross_compiling=yes
1608 else
1609 { { echo "$as_me:1609: error: cannot run C compiled programs.
1610 If you meant to cross compile, use \`--host'." >&5
1611 echo "$as_me: error: cannot run C compiled programs.
1612 If you meant to cross compile, use \`--host'." >&2;}
1613 { (exit 1); exit 1; }; }
1614 fi
1615 fi
1616 fi
1617 echo "$as_me:1617: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619
1620 rm -f a.out a.exe conftest$ac_cv_exeext
1621 ac_clean_files=$ac_clean_files_save
1622 # Check the compiler produces executables we can run. If not, either
1623 # the compiler is broken, or we cross compile.
1624 echo "$as_me:1624: checking whether we are cross compiling" >&5
1625 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1626 echo "$as_me:1626: result: $cross_compiling" >&5
1627 echo "${ECHO_T}$cross_compiling" >&6
1628
1629 echo "$as_me:1629: checking for executable suffix" >&5
1630 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1631 if { (eval echo "$as_me:1631: \"$ac_link\"") >&5
1632 (eval $ac_link) 2>&5
1633 ac_status=$?
1634 echo "$as_me:1634: \$? = $ac_status" >&5
1635 (exit $ac_status); }; then
1636 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1637 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1638 # work properly (i.e., refer to `conftest.exe'), while it won't with
1639 # `rm'.
1640 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1641 case $ac_file in
1642 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1644 export ac_cv_exeext
1645 break;;
1646 * ) break;;
1647 esac
1648 done
1649 else
1650 { { echo "$as_me:1650: error: cannot compute EXEEXT: cannot compile and link" >&5
1651 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1652 { (exit 1); exit 1; }; }
1653 fi
1654
1655 rm -f conftest$ac_cv_exeext
1656 echo "$as_me:1656: result: $ac_cv_exeext" >&5
1657 echo "${ECHO_T}$ac_cv_exeext" >&6
1658
1659 rm -f conftest.$ac_ext
1660 EXEEXT=$ac_cv_exeext
1661 ac_exeext=$EXEEXT
1662 echo "$as_me:1662: checking for object suffix" >&5
1663 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1664 if test "${ac_cv_objext+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1670
1671 int
1672 main ()
1673 {
1674
1675 ;
1676 return 0;
1677 }
1678 _ACEOF
1679 rm -f conftest.o conftest.obj
1680 if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1681 (eval $ac_compile) 2>&5
1682 ac_status=$?
1683 echo "$as_me:1683: \$? = $ac_status" >&5
1684 (exit $ac_status); }; then
1685 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1686 case $ac_file in
1687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1689 break;;
1690 esac
1691 done
1692 else
1693 echo "$as_me: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 { { echo "$as_me:1695: error: cannot compute OBJEXT: cannot compile" >&5
1696 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1697 { (exit 1); exit 1; }; }
1698 fi
1699
1700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1701 fi
1702 echo "$as_me:1702: result: $ac_cv_objext" >&5
1703 echo "${ECHO_T}$ac_cv_objext" >&6
1704 OBJEXT=$ac_cv_objext
1705 ac_objext=$OBJEXT
1706 echo "$as_me:1706: checking whether we are using the GNU C compiler" >&5
1707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711 cat >conftest.$ac_ext <<_ACEOF
1712 #line 1712 "configure"
1713 #include "confdefs.h"
1714
1715 int
1716 main ()
1717 {
1718 #ifndef __GNUC__
1719 choke me
1720 #endif
1721
1722 ;
1723 return 0;
1724 }
1725 _ACEOF
1726 rm -f conftest.$ac_objext
1727 if { (eval echo "$as_me:1727: \"$ac_compile\"") >&5
1728 (eval $ac_compile) 2>&5
1729 ac_status=$?
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); } &&
1732 { ac_try='test -s conftest.$ac_objext'
1733 { (eval echo "$as_me:1733: \"$ac_try\"") >&5
1734 (eval $ac_try) 2>&5
1735 ac_status=$?
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); }; }; then
1738 ac_compiler_gnu=yes
1739 else
1740 echo "$as_me: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1742 ac_compiler_gnu=no
1743 fi
1744 rm -f conftest.$ac_objext conftest.$ac_ext
1745 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1746
1747 fi
1748 echo "$as_me:1748: result: $ac_cv_c_compiler_gnu" >&5
1749 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1750 GCC=`test $ac_compiler_gnu = yes && echo yes`
1751 ac_test_CFLAGS=${CFLAGS+set}
1752 ac_save_CFLAGS=$CFLAGS
1753 CFLAGS="-g"
1754 echo "$as_me:1754: checking whether $CC accepts -g" >&5
1755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1756 if test "${ac_cv_prog_cc_g+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 cat >conftest.$ac_ext <<_ACEOF
1760 #line 1760 "configure"
1761 #include "confdefs.h"
1762
1763 int
1764 main ()
1765 {
1766
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 rm -f conftest.$ac_objext
1772 if { (eval echo "$as_me:1772: \"$ac_compile\"") >&5
1773 (eval $ac_compile) 2>&5
1774 ac_status=$?
1775 echo "$as_me:1775: \$? = $ac_status" >&5
1776 (exit $ac_status); } &&
1777 { ac_try='test -s conftest.$ac_objext'
1778 { (eval echo "$as_me:1778: \"$ac_try\"") >&5
1779 (eval $ac_try) 2>&5
1780 ac_status=$?
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); }; }; then
1783 ac_cv_prog_cc_g=yes
1784 else
1785 echo "$as_me: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1787 ac_cv_prog_cc_g=no
1788 fi
1789 rm -f conftest.$ac_objext conftest.$ac_ext
1790 fi
1791 echo "$as_me:1791: result: $ac_cv_prog_cc_g" >&5
1792 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1793 if test "$ac_test_CFLAGS" = set; then
1794 CFLAGS=$ac_save_CFLAGS
1795 elif test $ac_cv_prog_cc_g = yes; then
1796 if test "$GCC" = yes; then
1797 CFLAGS="-g -O2"
1798 else
1799 CFLAGS="-g"
1800 fi
1801 else
1802 if test "$GCC" = yes; then
1803 CFLAGS="-O2"
1804 else
1805 CFLAGS=
1806 fi
1807 fi
1808 # Some people use a C++ compiler to compile C. Since we use `exit',
1809 # in C++ we need to declare it. In case someone uses the same compiler
1810 # for both compiling C and C++ we need to have the C++ compiler decide
1811 # the declaration of exit, since it's the most demanding environment.
1812 cat >conftest.$ac_ext <<_ACEOF
1813 #ifndef __cplusplus
1814 choke me
1815 #endif
1816 _ACEOF
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1820 ac_status=$?
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1825 (eval $ac_try) 2>&5
1826 ac_status=$?
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 for ac_declaration in \
1830 ''\
1831 '#include <stdlib.h>' \
1832 'extern "C" void std::exit (int) throw (); using std::exit;' \
1833 'extern "C" void std::exit (int); using std::exit;' \
1834 'extern "C" void exit (int) throw ();' \
1835 'extern "C" void exit (int);' \
1836 'void exit (int);'
1837 do
1838 cat >conftest.$ac_ext <<_ACEOF
1839 #line 1839 "configure"
1840 #include "confdefs.h"
1841 #include <stdlib.h>
1842 $ac_declaration
1843 int
1844 main ()
1845 {
1846 exit (42);
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 rm -f conftest.$ac_objext
1852 if { (eval echo "$as_me:1852: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
1854 ac_status=$?
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); } &&
1857 { ac_try='test -s conftest.$ac_objext'
1858 { (eval echo "$as_me:1858: \"$ac_try\"") >&5
1859 (eval $ac_try) 2>&5
1860 ac_status=$?
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); }; }; then
1863 :
1864 else
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1867 continue
1868 fi
1869 rm -f conftest.$ac_objext conftest.$ac_ext
1870 cat >conftest.$ac_ext <<_ACEOF
1871 #line 1871 "configure"
1872 #include "confdefs.h"
1873 $ac_declaration
1874 int
1875 main ()
1876 {
1877 exit (42);
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 rm -f conftest.$ac_objext
1883 if { (eval echo "$as_me:1883: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1885 ac_status=$?
1886 echo "$as_me:1886: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try='test -s conftest.$ac_objext'
1889 { (eval echo "$as_me:1889: \"$ac_try\"") >&5
1890 (eval $ac_try) 2>&5
1891 ac_status=$?
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); }; }; then
1894 break
1895 else
1896 echo "$as_me: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1898 fi
1899 rm -f conftest.$ac_objext conftest.$ac_ext
1900 done
1901 echo '#ifdef __cplusplus' >>confdefs.h
1902 echo $ac_declaration >>confdefs.h
1903 echo '#endif' >>confdefs.h
1904
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 fi
1909 rm -f conftest.$ac_objext conftest.$ac_ext
1910 ac_ext=c
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916 ac_ext=cc
1917 ac_cpp='$CXXCPP $CPPFLAGS'
1918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1921 if test -n "$ac_tool_prefix"; then
1922 for ac_prog in $CCC icpc icc xlC CC g++ c++
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:1926: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CXX+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 if test -n "$CXX"; then
1932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1933 else
1934 ac_save_IFS=$IFS; IFS=$ac_path_separator
1935 ac_dummy="$PATH"
1936 for ac_dir in $ac_dummy; do
1937 IFS=$ac_save_IFS
1938 test -z "$ac_dir" && ac_dir=.
1939 $as_executable_p "$ac_dir/$ac_word" || continue
1940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1941 echo "$as_me:1941: found $ac_dir/$ac_word" >&5
1942 break
1943 done
1944
1945 fi
1946 fi
1947 CXX=$ac_cv_prog_CXX
1948 if test -n "$CXX"; then
1949 echo "$as_me:1949: result: $CXX" >&5
1950 echo "${ECHO_T}$CXX" >&6
1951 else
1952 echo "$as_me:1952: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956 test -n "$CXX" && break
1957 done
1958 fi
1959 if test -z "$CXX"; then
1960 ac_ct_CXX=$CXX
1961 for ac_prog in $CCC icpc icc xlC CC g++ c++
1962 do
1963 # Extract the first word of "$ac_prog", so it can be a program name with args.
1964 set dummy $ac_prog; ac_word=$2
1965 echo "$as_me:1965: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 if test -n "$ac_ct_CXX"; then
1971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1972 else
1973 ac_save_IFS=$IFS; IFS=$ac_path_separator
1974 ac_dummy="$PATH"
1975 for ac_dir in $ac_dummy; do
1976 IFS=$ac_save_IFS
1977 test -z "$ac_dir" && ac_dir=.
1978 $as_executable_p "$ac_dir/$ac_word" || continue
1979 ac_cv_prog_ac_ct_CXX="$ac_prog"
1980 echo "$as_me:1980: found $ac_dir/$ac_word" >&5
1981 break
1982 done
1983
1984 fi
1985 fi
1986 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1987 if test -n "$ac_ct_CXX"; then
1988 echo "$as_me:1988: result: $ac_ct_CXX" >&5
1989 echo "${ECHO_T}$ac_ct_CXX" >&6
1990 else
1991 echo "$as_me:1991: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1993 fi
1994
1995 test -n "$ac_ct_CXX" && break
1996 done
1997 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1998
1999 CXX=$ac_ct_CXX
2000 fi
2001
2002 echo "$as_me:2002: checking whether we are using the GNU C++ compiler" >&5
2003 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2004 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2010
2011 int
2012 main ()
2013 {
2014 #ifndef __GNUC__
2015 choke me
2016 #endif
2017
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2025 ac_status=$?
2026 echo "$as_me:2026: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:2029: \"$ac_try\"") >&5
2030 (eval $ac_try) 2>&5
2031 ac_status=$?
2032 echo "$as_me:2032: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 ac_compiler_gnu=yes
2035 else
2036 echo "$as_me: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2038 ac_compiler_gnu=no
2039 fi
2040 rm -f conftest.$ac_objext conftest.$ac_ext
2041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2042
2043 fi
2044 echo "$as_me:2044: result: $ac_cv_cxx_compiler_gnu" >&5
2045 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2046 GXX=`test $ac_compiler_gnu = yes && echo yes`
2047 ac_test_CXXFLAGS=${CXXFLAGS+set}
2048 ac_save_CXXFLAGS=$CXXFLAGS
2049 CXXFLAGS="-g"
2050 echo "$as_me:2050: checking whether $CXX accepts -g" >&5
2051 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2052 if test "${ac_cv_prog_cxx_g+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055 cat >conftest.$ac_ext <<_ACEOF
2056 #line 2056 "configure"
2057 #include "confdefs.h"
2058
2059 int
2060 main ()
2061 {
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 rm -f conftest.$ac_objext
2068 if { (eval echo "$as_me:2068: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>&5
2070 ac_status=$?
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } &&
2073 { ac_try='test -s conftest.$ac_objext'
2074 { (eval echo "$as_me:2074: \"$ac_try\"") >&5
2075 (eval $ac_try) 2>&5
2076 ac_status=$?
2077 echo "$as_me:2077: \$? = $ac_status" >&5
2078 (exit $ac_status); }; }; then
2079 ac_cv_prog_cxx_g=yes
2080 else
2081 echo "$as_me: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2083 ac_cv_prog_cxx_g=no
2084 fi
2085 rm -f conftest.$ac_objext conftest.$ac_ext
2086 fi
2087 echo "$as_me:2087: result: $ac_cv_prog_cxx_g" >&5
2088 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2089 if test "$ac_test_CXXFLAGS" = set; then
2090 CXXFLAGS=$ac_save_CXXFLAGS
2091 elif test $ac_cv_prog_cxx_g = yes; then
2092 if test "$GXX" = yes; then
2093 CXXFLAGS="-g -O2"
2094 else
2095 CXXFLAGS="-g"
2096 fi
2097 else
2098 if test "$GXX" = yes; then
2099 CXXFLAGS="-O2"
2100 else
2101 CXXFLAGS=
2102 fi
2103 fi
2104 for ac_declaration in \
2105 ''\
2106 '#include <stdlib.h>' \
2107 'extern "C" void std::exit (int) throw (); using std::exit;' \
2108 'extern "C" void std::exit (int); using std::exit;' \
2109 'extern "C" void exit (int) throw ();' \
2110 'extern "C" void exit (int);' \
2111 'void exit (int);'
2112 do
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line 2114 "configure"
2115 #include "confdefs.h"
2116 #include <stdlib.h>
2117 $ac_declaration
2118 int
2119 main ()
2120 {
2121 exit (42);
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:2127: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>&5
2129 ac_status=$?
2130 echo "$as_me:2130: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -s conftest.$ac_objext'
2133 { (eval echo "$as_me:2133: \"$ac_try\"") >&5
2134 (eval $ac_try) 2>&5
2135 ac_status=$?
2136 echo "$as_me:2136: \$? = $ac_status" >&5
2137 (exit $ac_status); }; }; then
2138 :
2139 else
2140 echo "$as_me: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2142 continue
2143 fi
2144 rm -f conftest.$ac_objext conftest.$ac_ext
2145 cat >conftest.$ac_ext <<_ACEOF
2146 #line 2146 "configure"
2147 #include "confdefs.h"
2148 $ac_declaration
2149 int
2150 main ()
2151 {
2152 exit (42);
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 rm -f conftest.$ac_objext
2158 if { (eval echo "$as_me:2158: \"$ac_compile\"") >&5
2159 (eval $ac_compile) 2>&5
2160 ac_status=$?
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit $ac_status); } &&
2163 { ac_try='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:2164: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:2167: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 break
2170 else
2171 echo "$as_me: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 fi
2174 rm -f conftest.$ac_objext conftest.$ac_ext
2175 done
2176 echo '#ifdef __cplusplus' >>confdefs.h
2177 echo $ac_declaration >>confdefs.h
2178 echo '#endif' >>confdefs.h
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186 ac_ext=f90
2187 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2188 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2190 if test -n "$ac_tool_prefix"; then
2191 for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2192 do
2193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2195 echo "$as_me:2195: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_F90+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 if test -n "$F90"; then
2201 ac_cv_prog_F90="$F90" # Let the user override the test.
2202 else
2203 ac_save_IFS=$IFS; IFS=$ac_path_separator
2204 ac_dummy="$PATH"
2205 for ac_dir in $ac_dummy; do
2206 IFS=$ac_save_IFS
2207 test -z "$ac_dir" && ac_dir=.
2208 $as_executable_p "$ac_dir/$ac_word" || continue
2209 ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2210 echo "$as_me:2210: found $ac_dir/$ac_word" >&5
2211 break
2212 done
2213
2214 fi
2215 fi
2216 F90=$ac_cv_prog_F90
2217 if test -n "$F90"; then
2218 echo "$as_me:2218: result: $F90" >&5
2219 echo "${ECHO_T}$F90" >&6
2220 else
2221 echo "$as_me:2221: result: no" >&5
2222 echo "${ECHO_T}no" >&6
2223 fi
2224
2225 test -n "$F90" && break
2226 done
2227 fi
2228 if test -z "$F90"; then
2229 ac_ct_F90=$F90
2230 for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2231 do
2232 # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 echo "$as_me:2234: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239 if test -n "$ac_ct_F90"; then
2240 ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
2241 else
2242 ac_save_IFS=$IFS; IFS=$ac_path_separator
2243 ac_dummy="$PATH"
2244 for ac_dir in $ac_dummy; do
2245 IFS=$ac_save_IFS
2246 test -z "$ac_dir" && ac_dir=.
2247 $as_executable_p "$ac_dir/$ac_word" || continue
2248 ac_cv_prog_ac_ct_F90="$ac_prog"
2249 echo "$as_me:2249: found $ac_dir/$ac_word" >&5
2250 break
2251 done
2252
2253 fi
2254 fi
2255 ac_ct_F90=$ac_cv_prog_ac_ct_F90
2256 if test -n "$ac_ct_F90"; then
2257 echo "$as_me:2257: result: $ac_ct_F90" >&5
2258 echo "${ECHO_T}$ac_ct_F90" >&6
2259 else
2260 echo "$as_me:2260: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2262 fi
2263
2264 test -n "$ac_ct_F90" && break
2265 done
2266
2267 F90=$ac_ct_F90
2268 fi
2269
2270 # If we don't use `.F90' as extension, the preprocessor is not run on the
2271 # input file.
2272 ac_save_ext=$ac_ext
2273 ac_ext=F90
2274 echo "$as_me:2274: checking whether we are using the GNU Fortran 90 compiler" >&5
2275 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
2276 if test "${ac_cv_f90_compiler_gnu+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279 cat >conftest.$ac_ext <<_ACEOF
2280
2281 program main
2282
2283 #ifndef __GNUC__
2284 choke me
2285 #endif
2286
2287 end program main
2288
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:2291: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2293 ac_status=$?
2294 echo "$as_me:2294: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:2297: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:2300: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 ac_compiler_gnu=yes
2303 else
2304 echo "$as_me: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 ac_compiler_gnu=no
2307 fi
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
2310
2311 fi
2312 echo "$as_me:2312: result: $ac_cv_f90_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
2314 ac_ext=$ac_save_ext
2315 G95=`test $ac_compiler_gnu = yes && echo yes`
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321
2322 # Try to determine native compiler flags that allow us to use F90 suffix
2323 # for preprocessed f90 source.
2324
2325 if test "$ac_test_PREPFLAG" != "set"; then
2326 PREPFLAG=""
2327 case "${host_cpu}-${host_os}" in
2328
2329 *linux*) if test "$F90" = ifc; then
2330 PREPFLAG="-fpp1 "
2331 fi;;
2332 *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
2333 PREPFLAG="-qsuffix=cpp=F90 "
2334 fi;;
2335 *darwin*)
2336 if test "$F90" = f90 -o "$F90" = xlf90; then
2337 PREPFLAG="-qsuffix=cpp=F90 "
2338 fi;;
2339 esac
2340
2341 if test -z "$PREPFLAG"; then
2342 echo ""
2343 echo "**********************************************************"
2344 echo "* WARNING: Don't know the best PREPFLAG for this system *"
2345 echo "* Use make PREPFLAG=..., or edit the top level Makefile *"
2346 echo "* (otherwise, an empty PREPFLAG will be used) *"
2347 echo "**********************************************************"
2348 echo ""
2349 PREPFLAG=""
2350 fi
2351
2352 echo "$as_me:2352: checking to make sure F90 preprocessor flag works" >&5
2353 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
2354
2355 ac_ext=f90
2356 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2357 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2359
2360 ac_save_ext=$ac_ext
2361 ac_ext=F90
2362 ac_save_F90FLAGS=$F90FLAGS
2363
2364 if test "$PREPFLAG"; then
2365 F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
2366 fi
2367
2368 cat >conftest.$ac_ext <<_ACEOF
2369
2370 program main
2371
2372 integer :: i
2373 i = 1
2374
2375 end program main
2376
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2381 ac_status=$?
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2390 prepflagworks=1
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 prepflagworks=0
2395 fi
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2397
2398 F90FLAGS=$ac_save_F90FLAGS
2399 ac_ext=$ac_save_ext
2400 ac_ext=c
2401 ac_cpp='$CPP $CPPFLAGS'
2402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406 if test "$prepflagworks" = 1; then
2407 echo "$as_me:2407: result: yes" >&5
2408 echo "${ECHO_T}yes" >&6
2409
2410 else
2411 echo "$as_me:2411: result: no" >&5
2412 echo "${ECHO_T}no" >&6
2413 { { echo "$as_me:2413: error: Can't figure out working Fortran90 preprocessor flag" >&5
2414 echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
2415 { (exit 1); exit 1; }; }
2416 fi
2417 fi
2418
2419 # Try to determine native compiler flags that allow us to use F90 suffix
2420 # for preprocessed f90 source with -D type defines
2421
2422 if test "$ac_test_PREPDEFFLAG" != "set"; then
2423 PREPDEFFLAG=""
2424 case "${host_cpu}-${host_os}" in
2425
2426 *linux*) if test "$F90" = ifc; then
2427 PREPDEFFLAG=" "
2428 fi;;
2429 *aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
2430 PREPDEFFLAG="-WF,"
2431 fi;;
2432 *darwin*)
2433 if test "$F90" = f90 -o "$F90" = xlf90; then
2434 PREPDEFFLAG="-WF,"
2435 fi;;
2436 esac
2437
2438 if test -z "$PREPDEFFLAG"; then
2439 echo ""
2440 echo "*************************************************************"
2441 echo "* WARNING: Don't know the best PREPDEFFLAG for this system *"
2442 echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *"
2443 echo "* (otherwise, an empty PREPDEFFLAG will be used) *"
2444 echo "*************************************************************"
2445 echo ""
2446 PREPDEFFLAG=" "
2447 fi
2448
2449 echo "$as_me:2449: checking to make sure F90 preprocessor define flag works" >&5
2450 echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
2451
2452 ac_ext=f90
2453 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2454 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2456
2457 ac_save_ext=$ac_ext
2458 ac_ext=F90
2459 ac_save_F90FLAGS=$F90FLAGS
2460
2461 if test "$PREPDEFFLAG"; then
2462 F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
2463 fi
2464
2465 cat >conftest.$ac_ext <<_ACEOF
2466
2467 program main
2468
2469 integer :: i
2470 #ifdef TEST
2471 i = 1
2472 #else
2473 choke me
2474 #endif
2475
2476 end program main
2477
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:2480: \"$ac_compile\"") >&5
2481 (eval $ac_compile) 2>&5
2482 ac_status=$?
2483 echo "$as_me:2483: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (eval echo "$as_me:2486: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:2489: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 prepdefflagworks=1
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 prepdefflagworks=0
2496 fi
2497 rm -f conftest.$ac_objext conftest.$ac_ext
2498
2499 F90FLAGS=$ac_save_F90FLAGS
2500 ac_ext=$ac_save_ext
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506
2507 if test "$prepdefflagworks" = 1; then
2508 echo "$as_me:2508: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6
2510
2511 else
2512 echo "$as_me:2512: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2514 { { echo "$as_me:2514: error: Can't figure out working Fortran90 preprocessor define flag" >&5
2515 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
2516 { (exit 1); exit 1; }; }
2517 fi
2518 fi
2519
2520 case $debug in
2521 1)
2522 ;;
2523 *)
2524
2525 # Try to determine "good" native compiler flags if none specified on command
2526 # line
2527 if test "$ac_test_CFLAGS" != "set"; then
2528 CFLAGS=""
2529 case "${host_cpu}-${host_os}" in
2530
2531 *linux*) if test "$CC" = icc; then
2532 CFLAGS="-O"
2533 fi;;
2534 sparc-solaris2*) if test "$CC" = cc; then
2535 CFLAGS="-native -fast -xO5 -dalign"
2536 fi;;
2537
2538 alpha*-osf*) if test "$CC" = cc; then
2539 CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
2540 fi;;
2541
2542 hppa*-hpux*) if test "$CC" = cc; then
2543 CFLAGS="-Ae +O3 +Oall"
2544 fi;;
2545
2546 rs6000*-aix*) if test "$CC" = cc -o "$CC" = xlc; then
2547 CFLAGS="-O3 -qtune=auto -qansialias -w"
2548 fi;;
2549 powerpc*-aix*)
2550 if test "$CC" = cc -o "$CC" = xlc; then
2551 CFLAGS="-O3 -qtune=auto -qansialias -w"
2552 echo "*******************************************************"
2553 echo "* You have AIX on an unknown powerpc system. It is *"
2554 echo "* recommended that you use *"
2555 echo "* *"
2556 echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
2557 echo "* ^^^ *"
2558 echo "* where xxx is 601, 603, 604, or whatever kind of *"
2559 echo "* PowerPC CPU you have. For more info, man cc. *"
2560 echo "*******************************************************"
2561 fi;;
2562 *darwin*)
2563 if test "$CC" = xlc -o "$CC" = cc; then
2564 CFLAGS="-O3 -qtune=auto -w"
2565 echo "*******************************************************"
2566 echo "* You have Darwin on an unknown powerpc system. *"
2567 echo "* It is recommended that you use *"
2568 echo "* *"
2569 echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
2570 echo "* ^^^ *"
2571 echo "* where xxx is 601, 603, 604, or whatever kind of *"
2572 echo "* PowerPC CPU you have. For more info, man cc. *"
2573 echo "*******************************************************"
2574 fi;;
2575 esac
2576
2577 # use default flags for gcc on all systems
2578 if test $ac_cv_c_compiler_gnu = yes; then
2579 CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2580 fi
2581
2582 # test for gcc-specific flags:
2583 if test $ac_cv_c_compiler_gnu = yes; then
2584 # -malign-double for x86 systems
2585
2586 echo "$as_me:2586: checking whether ${CC-cc} accepts -malign-double" >&5
2587 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
2588 if test "${ac_align_double+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 echo 'void f(){}' > conftest.c
2592 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
2593 ac_align_double=yes
2594 else
2595 ac_align_double=no
2596 fi
2597 rm -f conftest*
2598
2599 fi
2600 echo "$as_me:2600: result: $ac_align_double" >&5
2601 echo "${ECHO_T}$ac_align_double" >&6
2602 if test "$ac_align_double" = yes; then
2603 :
2604 CFLAGS="$CFLAGS -malign-double"
2605 else
2606 :
2607
2608 fi
2609
2610 # -fstrict-aliasing for gcc-2.95+
2611
2612 echo "$as_me:2612: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2613 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2614 if test "${ac_fstrict_aliasing+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 echo 'void f(){}' > conftest.c
2618 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2619 ac_fstrict_aliasing=yes
2620 else
2621 ac_fstrict_aliasing=no
2622 fi
2623 rm -f conftest*
2624
2625 fi
2626 echo "$as_me:2626: result: $ac_fstrict_aliasing" >&5
2627 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2628 if test "$ac_fstrict_aliasing" = yes; then
2629 :
2630 CFLAGS="$CFLAGS -fstrict-aliasing"
2631 else
2632 :
2633
2634 fi
2635
2636 fi
2637
2638 CPU_FLAGS=""
2639 if test "$GCC" = "yes"; then
2640 case "${host_cpu}" in
2641 i586*)
2642
2643 echo "$as_me:2643: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2644 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2645 if test "${ac_cpu_pentium+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 echo 'void f(){}' > conftest.c
2649 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2650 ac_cpu_pentium=yes
2651 else
2652 ac_cpu_pentium=no
2653 fi
2654 rm -f conftest*
2655
2656 fi
2657 echo "$as_me:2657: result: $ac_cpu_pentium" >&5
2658 echo "${ECHO_T}$ac_cpu_pentium" >&6
2659 if test "$ac_cpu_pentium" = yes; then
2660 :
2661 CPU_FLAGS=-mcpu=pentium
2662 else
2663 :
2664
2665 echo "$as_me:2665: checking whether ${CC-cc} accepts -mpentium" >&5
2666 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
2667 if test "${ac_pentium+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 echo 'void f(){}' > conftest.c
2671 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2672 ac_pentium=yes
2673 else
2674 ac_pentium=no
2675 fi
2676 rm -f conftest*
2677
2678 fi
2679 echo "$as_me:2679: result: $ac_pentium" >&5
2680 echo "${ECHO_T}$ac_pentium" >&6
2681 if test "$ac_pentium" = yes; then
2682 :
2683 CPU_FLAGS=-mpentium
2684 else
2685 :
2686
2687 fi
2688
2689 fi
2690
2691 ;;
2692 i686*)
2693
2694 echo "$as_me:2694: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2695 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2696 if test "${ac_cpu_pentiumpro+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 echo 'void f(){}' > conftest.c
2700 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2701 ac_cpu_pentiumpro=yes
2702 else
2703 ac_cpu_pentiumpro=no
2704 fi
2705 rm -f conftest*
2706
2707 fi
2708 echo "$as_me:2708: result: $ac_cpu_pentiumpro" >&5
2709 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2710 if test "$ac_cpu_pentiumpro" = yes; then
2711 :
2712 CPU_FLAGS=-mcpu=pentiumpro
2713 else
2714 :
2715
2716 echo "$as_me:2716: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2717 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2718 if test "${ac_pentiumpro+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 echo 'void f(){}' > conftest.c
2722 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2723 ac_pentiumpro=yes
2724 else
2725 ac_pentiumpro=no
2726 fi
2727 rm -f conftest*
2728
2729 fi
2730 echo "$as_me:2730: result: $ac_pentiumpro" >&5
2731 echo "${ECHO_T}$ac_pentiumpro" >&6
2732 if test "$ac_pentiumpro" = yes; then
2733 :
2734 CPU_FLAGS=-mpentiumpro
2735 else
2736 :
2737
2738 fi
2739
2740 fi
2741
2742 ;;
2743 powerpc*)
2744 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2745 is60x=`echo $cputype | egrep "^600-9e?$"`
2746 if test -n "$is60x"; then
2747
2748 echo "$as_me:2748: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2749 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2750 if test "${ac_m_cpu_60x+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 echo 'void f(){}' > conftest.c
2754 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2755 ac_m_cpu_60x=yes
2756 else
2757 ac_m_cpu_60x=no
2758 fi
2759 rm -f conftest*
2760
2761 fi
2762 echo "$as_me:2762: result: $ac_m_cpu_60x" >&5
2763 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2764 if test "$ac_m_cpu_60x" = yes; then
2765 :
2766 CPU_FLAGS=-mcpu=$cputype
2767 else
2768 :
2769
2770 fi
2771
2772 elif test "$cputype" = 750; then
2773
2774 echo "$as_me:2774: checking whether we are using gcc 2.95 or later" >&5
2775 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2776 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779
2780 cat > conftest.c <<EOF
2781 #ifdef __GNUC__
2782 # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2783 yes;
2784 # endif
2785 #endif
2786 EOF
2787 if { ac_try='${CC-cc} -E conftest.c'
2788 { (eval echo "$as_me:2788: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:2791: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2793 ac_cv_prog_gcc_2_95=yes
2794 else
2795 ac_cv_prog_gcc_2_95=no
2796 fi
2797
2798 fi
2799 echo "$as_me:2799: result: $ac_cv_prog_gcc_2_95" >&5
2800 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2801 if test "$ac_cv_prog_gcc_2_95" = yes; then
2802 :
2803
2804 echo "$as_me:2804: checking whether ${CC-cc} accepts -mcpu=750" >&5
2805 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2806 if test "${ac_m_cpu_750+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 echo 'void f(){}' > conftest.c
2810 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2811 ac_m_cpu_750=yes
2812 else
2813 ac_m_cpu_750=no
2814 fi
2815 rm -f conftest*
2816
2817 fi
2818 echo "$as_me:2818: result: $ac_m_cpu_750" >&5
2819 echo "${ECHO_T}$ac_m_cpu_750" >&6
2820 if test "$ac_m_cpu_750" = yes; then
2821 :
2822 CPU_FLAGS=-mcpu=750
2823 else
2824 :
2825
2826 fi
2827
2828 else
2829 :
2830
2831 fi
2832
2833 fi
2834 if test -z "$CPU_FLAGS"; then
2835
2836 echo "$as_me:2836: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2837 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2838 if test "${ac_m_cpu_powerpc+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 echo 'void f(){}' > conftest.c
2842 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2843 ac_m_cpu_powerpc=yes
2844 else
2845 ac_m_cpu_powerpc=no
2846 fi
2847 rm -f conftest*
2848
2849 fi
2850 echo "$as_me:2850: result: $ac_m_cpu_powerpc" >&5
2851 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2852 if test "$ac_m_cpu_powerpc" = yes; then
2853 :
2854 CPU_FLAGS=-mcpu=powerpc
2855 else
2856 :
2857
2858 fi
2859
2860 fi
2861 if test -z "$CPU_FLAGS"; then
2862
2863 echo "$as_me:2863: checking whether ${CC-cc} accepts -mpowerpc" >&5
2864 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2865 if test "${ac_m_powerpc+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 echo 'void f(){}' > conftest.c
2869 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2870 ac_m_powerpc=yes
2871 else
2872 ac_m_powerpc=no
2873 fi
2874 rm -f conftest*
2875
2876 fi
2877 echo "$as_me:2877: result: $ac_m_powerpc" >&5
2878 echo "${ECHO_T}$ac_m_powerpc" >&6
2879 if test "$ac_m_powerpc" = yes; then
2880 :
2881 CPU_FLAGS=-mpowerpc
2882 else
2883 :
2884
2885 fi
2886
2887 fi
2888 esac
2889 fi
2890
2891 if test -n "$CPU_FLAGS"; then
2892 CFLAGS="$CFLAGS $CPU_FLAGS"
2893 fi
2894
2895 if test -z "$CFLAGS"; then
2896 echo ""
2897 echo "********************************************************"
2898 echo "* WARNING: Don't know the best CFLAGS for this system *"
2899 echo "* Use make CFLAGS=..., or edit the top level Makefile *"
2900 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
2901 echo "********************************************************"
2902 echo ""
2903 CFLAGS="-O3"
2904 fi
2905
2906 echo "$as_me:2906: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2907 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2908 if test "${ac_guessed_cflags+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 echo 'void f(){}' > conftest.c
2912 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2913 ac_guessed_cflags=yes
2914 else
2915 ac_guessed_cflags=no
2916 fi
2917 rm -f conftest*
2918
2919 fi
2920 echo "$as_me:2920: result: $ac_guessed_cflags" >&5
2921 echo "${ECHO_T}$ac_guessed_cflags" >&6
2922 if test "$ac_guessed_cflags" = yes; then
2923 :
2924
2925 else
2926 :
2927
2928 echo ""
2929 echo "********************************************************"
2930 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
2931 echo "* your compiler. *"
2932 echo "* Use make CFLAGS=..., or edit the top level Makefile *"
2933 echo "********************************************************"
2934 echo ""
2935 CFLAGS=""
2936
2937 fi
2938
2939 fi
2940
2941 # Try to determine "good" native compiler flags if none specified on command
2942 # line
2943 if test "$ac_test_CXXFLAGS" != "set"; then
2944 CXXFLAGS=""
2945 case "${host_cpu}-${host_os}" in
2946
2947 *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
2948 CXXFLAGS="-O"
2949 fi;;
2950 sparc-solaris2*) if test "$CXX" = CC; then
2951 CXXFLAGS="-native -fast -xO5 -dalign"
2952 fi;;
2953 rs6000*-aix*) if test "$CXX" = xlC; then
2954 CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
2955 fi;;
2956 powerpc*-aix*)
2957 if test "$CXX" = xlC; then
2958 CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
2959 echo "*******************************************************"
2960 echo "* You have AIX on an unknown powerpc system. It is *"
2961 echo "* recommended that you use *"
2962 echo "* *"
2963 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
2964 echo "* ^^^ *"
2965 echo "* where xxx is 601, 603, 604, or whatever kind of *"
2966 echo "* PowerPC CPU you have. For more info, man cc. *"
2967 echo "*******************************************************"
2968 fi;;
2969 *darwin*)
2970 if test "$CXX" = xlC; then
2971 CXXFLAGS="-O3 -qtune=auto -qansialias -w"
2972 echo "*******************************************************"
2973 echo "* You have AIX on an unknown powerpc system. It is *"
2974 echo "* recommended that you use *"
2975 echo "* *"
2976 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
2977 echo "* ^^^ *"
2978 echo "* where xxx is 601, 603, 604, or whatever kind of *"
2979 echo "* PowerPC CPU you have. For more info, man cc. *"
2980 echo "*******************************************************"
2981 fi;;
2982 esac
2983
2984 # use default flags for gcc on all systems
2985 if test $ac_cv_c_compiler_gnu = yes; then
2986 CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2987 fi
2988
2989 # test for gcc-specific flags:
2990 if test $ac_cv_c_compiler_gnu = yes; then
2991 # -malign-double for x86 systems
2992
2993 echo "$as_me:2993: checking whether ${CXX-c++} accepts -malign-double" >&5
2994 echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
2995 if test "${ac_align_double+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 echo 'void f(){}' > conftest.cpp
2999 if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3000 ac_align_double=yes
3001 else
3002 ac_align_double=no
3003 fi
3004 rm -f conftest*
3005
3006 fi
3007 echo "$as_me:3007: result: $ac_align_double" >&5
3008 echo "${ECHO_T}$ac_align_double" >&6
3009 if test "$ac_align_double" = yes; then
3010 :
3011 CXXFLAGS="$CXXFLAGS -malign-double"
3012 else
3013 :
3014
3015 fi
3016
3017 # -fstrict-aliasing for gcc-2.95+
3018
3019 echo "$as_me:3019: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3020 echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3021 if test "${ac_fstrict_aliasing+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 echo 'void f(){}' > conftest.cpp
3025 if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3026 ac_fstrict_aliasing=yes
3027 else
3028 ac_fstrict_aliasing=no
3029 fi
3030 rm -f conftest*
3031
3032 fi
3033 echo "$as_me:3033: result: $ac_fstrict_aliasing" >&5
3034 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3035 if test "$ac_fstrict_aliasing" = yes; then
3036 :
3037 CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
3038 else
3039 :
3040
3041 fi
3042
3043 fi
3044
3045 CPU_FLAGS=""
3046 if test "$GCC" = "yes"; then
3047 case "${host_cpu}" in
3048 i586*)
3049
3050 echo "$as_me:3050: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3051 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3052 if test "${ac_cpu_pentium+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055 echo 'void f(){}' > conftest.c
3056 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3057 ac_cpu_pentium=yes
3058 else
3059 ac_cpu_pentium=no
3060 fi
3061 rm -f conftest*
3062
3063 fi
3064 echo "$as_me:3064: result: $ac_cpu_pentium" >&5
3065 echo "${ECHO_T}$ac_cpu_pentium" >&6
3066 if test "$ac_cpu_pentium" = yes; then
3067 :
3068 CPU_FLAGS=-mcpu=pentium
3069 else
3070 :
3071
3072 echo "$as_me:3072: checking whether ${CXX-c++} accepts -mpentium" >&5
3073 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
3074 if test "${ac_pentium+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 echo 'void f(){}' > conftest.cpp
3078 if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
3079 ac_pentium=yes
3080 else
3081 ac_pentium=no
3082 fi
3083 rm -f conftest*
3084
3085 fi
3086 echo "$as_me:3086: result: $ac_pentium" >&5
3087 echo "${ECHO_T}$ac_pentium" >&6
3088 if test "$ac_pentium" = yes; then
3089 :
3090 CPU_FLAGS=-mpentium
3091 else
3092 :
3093
3094 fi
3095
3096 fi
3097
3098 ;;
3099 i686*)
3100
3101 echo "$as_me:3101: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
3102 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3103 if test "${ac_cpu_pentiumpro+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 echo 'void f(){}' > conftest.cpp
3107 if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
3108 ac_cpu_pentiumpro=yes
3109 else
3110 ac_cpu_pentiumpro=no
3111 fi
3112 rm -f conftest*
3113
3114 fi
3115 echo "$as_me:3115: result: $ac_cpu_pentiumpro" >&5
3116 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3117 if test "$ac_cpu_pentiumpro" = yes; then
3118 :
3119 CPU_FLAGS=-mcpu=pentiumpro
3120 else
3121 :
3122
3123 echo "$as_me:3123: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
3124 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
3125 if test "${ac_pentiumpro+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 echo 'void f(){}' > conftest.cpp
3129 if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
3130 ac_pentiumpro=yes
3131 else
3132 ac_pentiumpro=no
3133 fi
3134 rm -f conftest*
3135
3136 fi
3137 echo "$as_me:3137: result: $ac_pentiumpro" >&5
3138 echo "${ECHO_T}$ac_pentiumpro" >&6
3139 if test "$ac_pentiumpro" = yes; then
3140 :
3141 CPU_FLAGS=-mpentiumpro
3142 else
3143 :
3144
3145 fi
3146
3147 fi
3148
3149 ;;
3150 powerpc*)
3151 cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3152 is60x=`echo $cputype | egrep "^600-9e?$"`
3153 if test -n "$is60x"; then
3154
3155 echo "$as_me:3155: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
3156 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
3157 if test "${ac_m_cpu_60x+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 echo 'void f(){}' > conftest.cpp
3161 if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
3162 ac_m_cpu_60x=yes
3163 else
3164 ac_m_cpu_60x=no
3165 fi
3166 rm -f conftest*
3167
3168 fi
3169 echo "$as_me:3169: result: $ac_m_cpu_60x" >&5
3170 echo "${ECHO_T}$ac_m_cpu_60x" >&6
3171 if test "$ac_m_cpu_60x" = yes; then
3172 :
3173 CPU_FLAGS=-mcpu=$cputype
3174 else
3175 :
3176
3177 fi
3178
3179 elif test "$cputype" = 750; then
3180
3181 echo "$as_me:3181: checking whether we are using gcc 2.95 or later" >&5
3182 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3183 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186
3187 cat > conftest.c <<EOF
3188 #ifdef __GNUC__
3189 # if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3190 yes;
3191 # endif
3192 #endif
3193 EOF
3194 if { ac_try='${CC-cc} -E conftest.c'
3195 { (eval echo "$as_me:3195: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:3198: \$? = $ac_status" >&5
3199 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3200 ac_cv_prog_gcc_2_95=yes
3201 else
3202 ac_cv_prog_gcc_2_95=no
3203 fi
3204
3205 fi
3206 echo "$as_me:3206: result: $ac_cv_prog_gcc_2_95" >&5
3207 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3208 if test "$ac_cv_prog_gcc_2_95" = yes; then
3209 :
3210
3211 echo "$as_me:3211: checking whether ${CXX-c++} accepts -mcpu=750" >&5
3212 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
3213 if test "${ac_m_cpu_750+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 echo 'void f(){}' > conftest.cpp
3217 if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
3218 ac_m_cpu_750=yes
3219 else
3220 ac_m_cpu_750=no
3221 fi
3222 rm -f conftest*
3223
3224 fi
3225 echo "$as_me:3225: result: $ac_m_cpu_750" >&5
3226 echo "${ECHO_T}$ac_m_cpu_750" >&6
3227 if test "$ac_m_cpu_750" = yes; then
3228 :
3229 CPU_FLAGS=-mcpu=750
3230 else
3231 :
3232
3233 fi
3234
3235 else
3236 :
3237
3238 fi
3239
3240 fi
3241 if test -z "$CPU_FLAGS"; then
3242
3243 echo "$as_me:3243: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
3244 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
3245 if test "${ac_m_cpu_powerpc+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 echo 'void f(){}' > conftest.cpp
3249 if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
3250 ac_m_cpu_powerpc=yes
3251 else
3252 ac_m_cpu_powerpc=no
3253 fi
3254 rm -f conftest*
3255
3256 fi
3257 echo "$as_me:3257: result: $ac_m_cpu_powerpc" >&5
3258 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
3259 if test "$ac_m_cpu_powerpc" = yes; then
3260 :
3261 CPU_FLAGS=-mcpu=powerpc
3262 else
3263 :
3264
3265 fi
3266
3267 fi
3268 if test -z "$CPU_FLAGS"; then
3269
3270 echo "$as_me:3270: checking whether ${CXX-c++} accepts -mpowerpc" >&5
3271 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
3272 if test "${ac_m_powerpc+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 echo 'void f(){}' > conftest.cpp
3276 if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
3277 ac_m_powerpc=yes
3278 else
3279 ac_m_powerpc=no
3280 fi
3281 rm -f conftest*
3282
3283 fi
3284 echo "$as_me:3284: result: $ac_m_powerpc" >&5
3285 echo "${ECHO_T}$ac_m_powerpc" >&6
3286 if test "$ac_m_powerpc" = yes; then
3287 :
3288 CPU_FLAGS=-mpowerpc
3289 else
3290 :
3291
3292 fi
3293
3294 fi
3295 esac
3296 fi
3297
3298 if test -n "$CPU_FLAGS"; then
3299 CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
3300 fi
3301
3302 if test -z "$CXXFLAGS"; then
3303 echo ""
3304 echo "**********************************************************"
3305 echo "* WARNING: Don't know the best CXXFLAGS for this system *"
3306 echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
3307 echo "* (otherwise, a default of CXXFLAGS=-O3 will be used) *"
3308 echo "**********************************************************"
3309 echo ""
3310 CXXFLAGS="-O3"
3311 fi
3312
3313 echo "$as_me:3313: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
3314 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
3315 if test "${ac_guessed_cxxflags+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 echo 'void f(){}' > conftest.cpp
3319 if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
3320 ac_guessed_cxxflags=yes
3321 else
3322 ac_guessed_cxxflags=no
3323 fi
3324 rm -f conftest*
3325
3326 fi
3327 echo "$as_me:3327: result: $ac_guessed_cxxflags" >&5
3328 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
3329 if test "$ac_guessed_cxxflags" = yes; then
3330 :
3331
3332 else
3333 :
3334
3335 echo ""
3336 echo "**********************************************************"
3337 echo "* WARNING: The guessed CXXFLAGS don't seem to work with *"
3338 echo "* your compiler. *"
3339 echo "* Use make CXXFLAGS=..., or edit the top level Makefile *"
3340 echo "**********************************************************"
3341 echo ""
3342 CXXFLAGS=""
3343
3344 fi
3345
3346 fi
3347
3348 # Try to determine "good" native compiler flags if none specified on command
3349 # line
3350
3351 if test x"$F90FLAGS" = x ; then
3352 F90FLAGS=""
3353 case "${host_cpu}-${host_os}" in
3354
3355 *linux*) if test "$F90" = ifc; then
3356 F90FLAGS="-O"
3357 fi;;
3358 rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then
3359 F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3360 fi;;
3361 powerpc*-aix*)
3362 if test "$F90" = f90 -o "$F90" = xlf90; then
3363 F90FLAGS="-O3 -qarch=ppc -qansialias -w"
3364 echo "*******************************************************"
3365 echo "* You have AIX on an unknown powerpc system. It is *"
3366 echo "* recommended that you use *"
3367 echo "* *"
3368 echo "* F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3369 echo "* ^^^ *"
3370 echo "* where xxx is 601, 603, 604, or whatever kind of *"
3371 echo "* PowerPC CPU you have. For more info, man xlf. *"
3372 echo "*******************************************************"
3373 fi;;
3374 *darwin*)
3375 if test "$F90" = f90 -o "$F90" = xlf90; then
3376 F90FLAGS="-O3 -qtune=auto -w"
3377 echo "*********************************************************"
3378 echo "* You have Darwin on an unknown powerpc system. It is *"
3379 echo "* recommended that you use *"
3380 echo "* *"
3381 echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *"
3382 echo "* ^^^ *"
3383 echo "* where xxx is 601, 603, 604, or whatever kind of *"
3384 echo "* PowerPC CPU you have. For more info, man xlf. *"
3385 echo "*********************************************************"
3386 fi;;
3387 esac
3388
3389 if test -n "$CPU_FLAGS"; then
3390 F90FLAGS="$F90FLAGS $CPU_FLAGS"
3391 fi
3392
3393 if test -z "$F90FLAGS"; then
3394 echo ""
3395 echo "**********************************************************"
3396 echo "* WARNING: Don't know the best F90FLAGS for this system *"
3397 echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
3398 echo "* (otherwise, a default of F90FLAGS=-O3 will be used) *"
3399 echo "**********************************************************"
3400 echo ""
3401 F90FLAGS="-O3"
3402 fi
3403
3404 echo "$as_me:3404: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
3405 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
3406 if test "${ac_guessed_f90flags+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409
3410 ac_ext=f90
3411 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3412 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3414
3415 echo 'program main' > conftest.$ac_ext
3416 echo 'end program main' >> conftest.$ac_ext
3417 ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
3418 if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3420 ac_status=$?
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); }; then
3423 ac_guessed_f90flags=yes
3424 else
3425 ac_guessed_f90flags=no
3426 fi
3427 rm -f conftest*
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433
3434 fi
3435 echo "$as_me:3435: result: $ac_guessed_f90flags" >&5
3436 echo "${ECHO_T}$ac_guessed_f90flags" >&6
3437 if test "$ac_guessed_f90flags" = yes; then
3438 :
3439
3440 else
3441 :
3442
3443 echo ""
3444 echo "**********************************************************"
3445 echo "* WARNING: The guessed F90FLAGS don't seem to work with *"
3446 echo "* your compiler. *"
3447 echo "* Use make F90FLAGS=..., or edit the top level Makefile *"
3448 echo "**********************************************************"
3449 echo ""
3450 F90FLAGS=""
3451
3452 fi
3453
3454 fi
3455
3456 ;;
3457 esac
3458
3459 # Find a good install program. We prefer a C program (faster),
3460 # so one script is as good as another. But avoid the broken or
3461 # incompatible versions:
3462 # SysV /etc/install, /usr/sbin/install
3463 # SunOS /usr/etc/install
3464 # IRIX /sbin/install
3465 # AIX /bin/install
3466 # AmigaOS /C/install, which installs bootblocks on floppy discs
3467 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3468 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3469 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3470 # ./install, which can be erroneously created by make from ./install.sh.
3471 echo "$as_me:3471: checking for a BSD compatible install" >&5
3472 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3473 if test -z "$INSTALL"; then
3474 if test "${ac_cv_path_install+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 ac_save_IFS=$IFS; IFS=$ac_path_separator
3478 for ac_dir in $PATH; do
3479 IFS=$ac_save_IFS
3480 # Account for people who put trailing slashes in PATH elements.
3481 case $ac_dir/ in
3482 / | ./ | .// | /cC/* \
3483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3484 | /usr/ucb/* ) ;;
3485 *)
3486 # OSF1 and SCO ODT 3.0 have their own names for install.
3487 # Don't use installbsd from OSF since it installs stuff as root
3488 # by default.
3489 for ac_prog in ginstall scoinst install; do
3490 if $as_executable_p "$ac_dir/$ac_prog"; then
3491 if test $ac_prog = install &&
3492 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3493 # AIX install. It has an incompatible calling convention.
3494 :
3495 elif test $ac_prog = install &&
3496 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3497 # program-specific install script used by HP pwplus--don't use.
3498 :
3499 else
3500 ac_cv_path_install="$ac_dir/$ac_prog -c"
3501 break 2
3502 fi
3503 fi
3504 done
3505 ;;
3506 esac
3507 done
3508
3509 fi
3510 if test "${ac_cv_path_install+set}" = set; then
3511 INSTALL=$ac_cv_path_install
3512 else
3513 # As a last resort, use the slow shell script. We don't cache a
3514 # path for INSTALL within a source directory, because that will
3515 # break other packages using the cache if that directory is
3516 # removed, or if the path is relative.
3517 INSTALL=$ac_install_sh
3518 fi
3519 fi
3520 echo "$as_me:3520: result: $INSTALL" >&5
3521 echo "${ECHO_T}$INSTALL" >&6
3522
3523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3524 # It thinks the first close brace ends the variable substitution.
3525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3526
3527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3528
3529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3530
3531 echo "$as_me:3531: checking whether ln -s works" >&5
3532 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3533 LN_S=$as_ln_s
3534 if test "$LN_S" = "ln -s"; then
3535 echo "$as_me:3535: result: yes" >&5
3536 echo "${ECHO_T}yes" >&6
3537 else
3538 echo "$as_me:3538: result: no, using $LN_S" >&5
3539 echo "${ECHO_T}no, using $LN_S" >&6
3540 fi
3541
3542 echo "$as_me:3542: checking whether ${MAKE-make} sets \${MAKE}" >&5
3543 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3544 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3545 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 cat >conftest.make <<\EOF
3549 all:
3550 @echo 'ac_maketemp="${MAKE}"'
3551 EOF
3552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3553 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3554 if test -n "$ac_maketemp"; then
3555 eval ac_cv_prog_make_${ac_make}_set=yes
3556 else
3557 eval ac_cv_prog_make_${ac_make}_set=no
3558 fi
3559 rm -f conftest.make
3560 fi
3561 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3562 echo "$as_me:3562: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3564 SET_MAKE=
3565 else
3566 echo "$as_me:3566: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 SET_MAKE="MAKE=${MAKE-make}"
3569 fi
3570
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3574 echo "$as_me:3574: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576 if test "${ac_cv_prog_RANLIB+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 if test -n "$RANLIB"; then
3580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3581 else
3582 ac_save_IFS=$IFS; IFS=$ac_path_separator
3583 ac_dummy="$PATH"
3584 for ac_dir in $ac_dummy; do
3585 IFS=$ac_save_IFS
3586 test -z "$ac_dir" && ac_dir=.
3587 $as_executable_p "$ac_dir/$ac_word" || continue
3588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3589 echo "$as_me:3589: found $ac_dir/$ac_word" >&5
3590 break
3591 done
3592
3593 fi
3594 fi
3595 RANLIB=$ac_cv_prog_RANLIB
3596 if test -n "$RANLIB"; then
3597 echo "$as_me:3597: result: $RANLIB" >&5
3598 echo "${ECHO_T}$RANLIB" >&6
3599 else
3600 echo "$as_me:3600: result: no" >&5
3601 echo "${ECHO_T}no" >&6
3602 fi
3603
3604 fi
3605 if test -z "$ac_cv_prog_RANLIB"; then
3606 ac_ct_RANLIB=$RANLIB
3607 # Extract the first word of "ranlib", so it can be a program name with args.
3608 set dummy ranlib; ac_word=$2
3609 echo "$as_me:3609: checking for $ac_word" >&5
3610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3611 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614 if test -n "$ac_ct_RANLIB"; then
3615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3616 else
3617 ac_save_IFS=$IFS; IFS=$ac_path_separator
3618 ac_dummy="$PATH"
3619 for ac_dir in $ac_dummy; do
3620 IFS=$ac_save_IFS
3621 test -z "$ac_dir" && ac_dir=.
3622 $as_executable_p "$ac_dir/$ac_word" || continue
3623 ac_cv_prog_ac_ct_RANLIB="ranlib"
3624 echo "$as_me:3624: found $ac_dir/$ac_word" >&5
3625 break
3626 done
3627
3628 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3629 fi
3630 fi
3631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3632 if test -n "$ac_ct_RANLIB"; then
3633 echo "$as_me:3633: result: $ac_ct_RANLIB" >&5
3634 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3635 else
3636 echo "$as_me:3636: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640 RANLIB=$ac_ct_RANLIB
3641 else
3642 RANLIB="$ac_cv_prog_RANLIB"
3643 fi
3644
3645 for ac_prog in 'bison -y' byacc
3646 do
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 echo "$as_me:3649: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_YACC+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654 if test -n "$YACC"; then
3655 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3656 else
3657 ac_save_IFS=$IFS; IFS=$ac_path_separator
3658 ac_dummy="$PATH"
3659 for ac_dir in $ac_dummy; do
3660 IFS=$ac_save_IFS
3661 test -z "$ac_dir" && ac_dir=.
3662 $as_executable_p "$ac_dir/$ac_word" || continue
3663 ac_cv_prog_YACC="$ac_prog"
3664 echo "$as_me:3664: found $ac_dir/$ac_word" >&5
3665 break
3666 done
3667
3668 fi
3669 fi
3670 YACC=$ac_cv_prog_YACC
3671 if test -n "$YACC"; then
3672 echo "$as_me:3672: result: $YACC" >&5
3673 echo "${ECHO_T}$YACC" >&6
3674 else
3675 echo "$as_me:3675: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677 fi
3678
3679 test -n "$YACC" && break
3680 done
3681 test -n "$YACC" || YACC="yacc"
3682
3683 for ac_prog in flex lex
3684 do
3685 # Extract the first word of "$ac_prog", so it can be a program name with args.
3686 set dummy $ac_prog; ac_word=$2
3687 echo "$as_me:3687: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_LEX+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 if test -n "$LEX"; then
3693 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3694 else
3695 ac_save_IFS=$IFS; IFS=$ac_path_separator
3696 ac_dummy="$PATH"
3697 for ac_dir in $ac_dummy; do
3698 IFS=$ac_save_IFS
3699 test -z "$ac_dir" && ac_dir=.
3700 $as_executable_p "$ac_dir/$ac_word" || continue
3701 ac_cv_prog_LEX="$ac_prog"
3702 echo "$as_me:3702: found $ac_dir/$ac_word" >&5
3703 break
3704 done
3705
3706 fi
3707 fi
3708 LEX=$ac_cv_prog_LEX
3709 if test -n "$LEX"; then
3710 echo "$as_me:3710: result: $LEX" >&5
3711 echo "${ECHO_T}$LEX" >&6
3712 else
3713 echo "$as_me:3713: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716
3717 test -n "$LEX" && break
3718 done
3719 test -n "$LEX" || LEX=":"
3720
3721 if test -z "$LEXLIB"
3722 then
3723 echo "$as_me:3723: checking for yywrap in -lfl" >&5
3724 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3725 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 ac_check_lib_save_LIBS=$LIBS
3729 LIBS="-lfl $LIBS"
3730 cat >conftest.$ac_ext <<_ACEOF
3731 #line 3731 "configure"
3732 #include "confdefs.h"
3733
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 #ifdef __cplusplus
3736 extern "C"
3737 #endif
3738 /* We use char because int might match the return type of a gcc2
3739 builtin and then its argument prototype would still apply. */
3740 char yywrap ();
3741 int
3742 main ()
3743 {
3744 yywrap ();
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext conftest$ac_exeext
3750 if { (eval echo "$as_me:3750: \"$ac_link\"") >&5
3751 (eval $ac_link) 2>&5
3752 ac_status=$?
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest$ac_exeext'
3756 { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_cv_lib_fl_yywrap=yes
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 cat conftest.$ac_ext >&5
3765 ac_cv_lib_fl_yywrap=no
3766 fi
3767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3768 LIBS=$ac_check_lib_save_LIBS
3769 fi
3770 echo "$as_me:3770: result: $ac_cv_lib_fl_yywrap" >&5
3771 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3772 if test $ac_cv_lib_fl_yywrap = yes; then
3773 LEXLIB="-lfl"
3774 else
3775 echo "$as_me:3775: checking for yywrap in -ll" >&5
3776 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3777 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 ac_check_lib_save_LIBS=$LIBS
3781 LIBS="-ll $LIBS"
3782 cat >conftest.$ac_ext <<_ACEOF
3783 #line 3783 "configure"
3784 #include "confdefs.h"
3785
3786 /* Override any gcc2 internal prototype to avoid an error. */
3787 #ifdef __cplusplus
3788 extern "C"
3789 #endif
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3792 char yywrap ();
3793 int
3794 main ()
3795 {
3796 yywrap ();
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext conftest$ac_exeext
3802 if { (eval echo "$as_me:3802: \"$ac_link\"") >&5
3803 (eval $ac_link) 2>&5
3804 ac_status=$?
3805 echo "$as_me:3805: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -s conftest$ac_exeext'
3808 { (eval echo "$as_me:3808: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:3811: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 ac_cv_lib_l_yywrap=yes
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3817 ac_cv_lib_l_yywrap=no
3818 fi
3819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3820 LIBS=$ac_check_lib_save_LIBS
3821 fi
3822 echo "$as_me:3822: result: $ac_cv_lib_l_yywrap" >&5
3823 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3824 if test $ac_cv_lib_l_yywrap = yes; then
3825 LEXLIB="-ll"
3826 fi
3827
3828 fi
3829
3830 fi
3831
3832 if test "x$LEX" != "x:"; then
3833 echo "$as_me:3833: checking lex output file root" >&5
3834 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3835 if test "${ac_cv_prog_lex_root+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 # The minimal lex program is just a single line: %%. But some broken lexes
3839 # (Solaris, I think it was) want two %% lines, so accommodate them.
3840 echo '%%
3841 %%' | $LEX
3842 if test -f lex.yy.c; then
3843 ac_cv_prog_lex_root=lex.yy
3844 elif test -f lexyy.c; then
3845 ac_cv_prog_lex_root=lexyy
3846 else
3847 { { echo "$as_me:3847: error: cannot find output from $LEX; giving up" >&5
3848 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3849 { (exit 1); exit 1; }; }
3850 fi
3851 fi
3852 echo "$as_me:3852: result: $ac_cv_prog_lex_root" >&5
3853 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3854 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3855
3856 echo "$as_me:3856: checking whether yytext is a pointer" >&5
3857 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3858 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 # POSIX says lex can declare yytext either as a pointer or an array; the
3862 # default is implementation-dependent. Figure out which it is, since
3863 # not all implementations provide the %pointer and %array declarations.
3864 ac_cv_prog_lex_yytext_pointer=no
3865 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3866 ac_save_LIBS=$LIBS
3867 LIBS="$LIBS $LEXLIB"
3868 cat >conftest.$ac_ext <<_ACEOF
3869 `cat $LEX_OUTPUT_ROOT.c`
3870 _ACEOF
3871 rm -f conftest.$ac_objext conftest$ac_exeext
3872 if { (eval echo "$as_me:3872: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>&5
3874 ac_status=$?
3875 echo "$as_me:3875: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:3878: \"$ac_try\"") >&5
3879 (eval $ac_try) 2>&5
3880 ac_status=$?
3881 echo "$as_me:3881: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_prog_lex_yytext_pointer=yes
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3887 fi
3888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3889 LIBS=$ac_save_LIBS
3890 rm -f "${LEX_OUTPUT_ROOT}.c"
3891
3892 fi
3893 echo "$as_me:3893: result: $ac_cv_prog_lex_yytext_pointer" >&5
3894 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3895 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3896
3897 cat >>confdefs.h <<\EOF
3898 #define YYTEXT_POINTER 1
3899 EOF
3900
3901 fi
3902
3903 fi
3904 # Extract the first word of "ar", so it can be a program name with args.
3905 set dummy ar; ac_word=$2
3906 echo "$as_me:3906: checking for $ac_word" >&5
3907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908 if test "${ac_cv_prog_AR+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 if test -n "$AR"; then
3912 ac_cv_prog_AR="$AR" # Let the user override the test.
3913 else
3914 ac_save_IFS=$IFS; IFS=$ac_path_separator
3915 ac_dummy="$PATH"
3916 for ac_dir in $ac_dummy; do
3917 IFS=$ac_save_IFS
3918 test -z "$ac_dir" && ac_dir=.
3919 $as_executable_p "$ac_dir/$ac_word" || continue
3920 ac_cv_prog_AR="ar"
3921 echo "$as_me:3921: found $ac_dir/$ac_word" >&5
3922 break
3923 done
3924
3925 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
3926 fi
3927 fi
3928 AR=$ac_cv_prog_AR
3929 if test -n "$AR"; then
3930 echo "$as_me:3930: result: $AR" >&5
3931 echo "${ECHO_T}$AR" >&6
3932 else
3933 echo "$as_me:3933: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3935 fi
3936
3937 if test "$AR" = "NONE"; then
3938 { { echo "$as_me:3938: error: --> Can't find \`ar'!" >&5
3939 echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3940 { (exit 1); exit 1; }; }
3941 cat >confcache <<\_ACEOF
3942 # This file is a shell script that caches the results of configure
3943 # tests run on this system so they can be shared between configure
3944 # scripts and configure runs, see configure's option --config-cache.
3945 # It is not useful on other systems. If it contains results you don't
3946 # want to keep, you may remove or edit it.
3947 #
3948 # config.status only pays attention to the cache file if you give it
3949 # the --recheck option to rerun configure.
3950 #
3951 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3953 # following values.
3954
3955 _ACEOF
3956
3957 # The following way of writing the cache mishandles newlines in values,
3958 # but we know of no workaround that is simple, portable, and efficient.
3959 # So, don't put newlines in cache variables' values.
3960 # Ultrix sh set writes to stderr and can't be redirected directly,
3961 # and sets the high bit in the cache file unless we assign to the vars.
3962 {
3963 (set) 2>&1 |
3964 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3965 *ac_space=\ *)
3966 # `set' does not quote correctly, so add quotes (double-quote
3967 # substitution turns \\\\ into \\, and sed turns \\ into \).
3968 sed -n \
3969 "s/'/'\\\\''/g;
3970 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3971 ;;
3972 *)
3973 # `set' quotes correctly as required by POSIX, so do not add quotes.
3974 sed -n \
3975 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3976 ;;
3977 esac;
3978 } |
3979 sed '
3980 t clear
3981 : clear
3982 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3983 t end
3984 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3985 : end' >>confcache
3986 if cmp -s $cache_file confcache; then :; else
3987 if test -w $cache_file; then
3988 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3989 cat confcache >$cache_file
3990 else
3991 echo "not updating unwritable cache $cache_file"
3992 fi
3993 fi
3994 rm -f confcache
3995 exit 1
3996 fi
3997
3998 ac_ext=f90
3999 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4000 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4002
4003 ac_ext=f90
4004 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4005 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4007 echo "$as_me:4007: checking how to get verbose linking output from $F90" >&5
4008 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4009 if test "${ac_cv_prog_f90_v+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012
4013 cat >conftest.$ac_ext <<_ACEOF
4014
4015 program main
4016
4017 end program main
4018
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:4021: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4023 ac_status=$?
4024 echo "$as_me:4024: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (eval echo "$as_me:4027: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:4030: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 ac_cv_prog_f90_v=
4033 # Try some options frequently used verbose output
4034 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4035 ac_ext=f90
4036 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4037 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4039
4040 cat >conftest.$ac_ext <<_ACEOF
4041
4042 program main
4043
4044 end program main
4045
4046 _ACEOF
4047
4048 # Compile and link our simple test program by passing a flag (argument
4049 # 1 to this macro) to the Fortran 90 compiler in order to get
4050 # "verbose" output that we can then parse for the Fortran 90 linker
4051 # flags.
4052 ac_save_F90FLAGS=$F90FLAGS
4053 F90FLAGS="$F90FLAGS $ac_verb"
4054
4055 (eval echo $as_me:4055: \"$ac_link\") >&5
4056 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4057 echo "$ac_f90_v_output" >&5
4058 F90FLAGS=$ac_save_F90FLAGS
4059
4060 rm -f conftest.*
4061 ac_ext=f90
4062 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4063 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4065
4066 # If we are using xlf then replace all the commas with spaces.
4067 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4068 ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4069 fi
4070
4071 # If we are using Cray Fortran then delete quotes.
4072 # Use "\"" instead of '"' for font-lock-mode.
4073 # FIXME: a more general fix for quoted arguments with spaces?
4074 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4075 ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4076 fi
4077 # look for -l* and *.a constructs in the output
4078 for ac_arg in $ac_f90_v_output; do
4079 case $ac_arg in
4080 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4081 ac_cv_prog_f90_v=$ac_verb
4082 break 2 ;;
4083 esac
4084 done
4085 done
4086 if test -z "$ac_cv_prog_f90_v"; then
4087 { echo "$as_me:4087: WARNING: cannot determine how to obtain linking information from $F90" >&5
4088 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4089 fi
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4093 { echo "$as_me:4093: WARNING: compilation failed" >&5
4094 echo "$as_me: WARNING: compilation failed" >&2;}
4095 fi
4096 rm -f conftest.$ac_objext conftest.$ac_ext
4097
4098 fi
4099 echo "$as_me:4099: result: $ac_cv_prog_f90_v" >&5
4100 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4101 echo "$as_me:4101: checking for Fortran 90 libraries" >&5
4102 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4103 if test "${ac_cv_flibs+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if test "x$F90LIBS" != "x"; then
4107 ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4108 else
4109
4110 ac_ext=f90
4111 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4112 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4114
4115 cat >conftest.$ac_ext <<_ACEOF
4116
4117 program main
4118
4119 end program main
4120
4121 _ACEOF
4122
4123 # Compile and link our simple test program by passing a flag (argument
4124 # 1 to this macro) to the Fortran 90 compiler in order to get
4125 # "verbose" output that we can then parse for the Fortran 90 linker
4126 # flags.
4127 ac_save_F90FLAGS=$F90FLAGS
4128 F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4129
4130 (eval echo $as_me:4130: \"$ac_link\") >&5
4131 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4132 echo "$ac_f90_v_output" >&5
4133 F90FLAGS=$ac_save_F90FLAGS
4134
4135 rm -f conftest.*
4136 ac_ext=f90
4137 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4138 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4140
4141 # If we are using xlf then replace all the commas with spaces.
4142 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4143 ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4144 fi
4145
4146 # If we are using Cray Fortran then delete quotes.
4147 # Use "\"" instead of '"' for font-lock-mode.
4148 # FIXME: a more general fix for quoted arguments with spaces?
4149 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4150 ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4151 fi
4152
4153 ac_cv_f90libs=
4154
4155 # Save positional arguments (if any)
4156 ac_save_positional="$@"
4157
4158 set X $ac_f90_v_output
4159 while test $# != 1; do
4160 shift
4161 ac_arg=$1
4162 case $ac_arg in
4163 [\\/]*.a | ?:[\\/]*.a)
4164 ac_exists=false
4165 for ac_i in $ac_cv_f90libs; do
4166 if test x"$ac_arg" = x"$ac_i"; then
4167 ac_exists=true
4168 break
4169 fi
4170 done
4171
4172 if test x"$ac_exists" = xtrue; then
4173 :
4174 else
4175 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4176 fi
4177
4178 ;;
4179 -bI:*)
4180 ac_exists=false
4181 for ac_i in $ac_cv_f90libs; do
4182 if test x"$ac_arg" = x"$ac_i"; then
4183 ac_exists=true
4184 break
4185 fi
4186 done
4187
4188 if test x"$ac_exists" = xtrue; then
4189 :
4190 else
4191 if test "$ac_compiler_gnu" = yes; then
4192 for ac_link_opt in $ac_arg; do
4193 ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4194 done
4195 else
4196 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4197 fi
4198 fi
4199
4200 ;;
4201 # Ignore these flags.
4202 -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4203 ;;
4204 -lkernel32)
4205 test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4206 ;;
4207 -[LRuY])
4208 # These flags, when seen by themselves, take an argument.
4209 # We remove the space between option and argument and re-iterate
4210 # unless we find an empty arg or a new option (starting with -)
4211 case $2 in
4212 "" | -*);;
4213 *)
4214 ac_arg="$ac_arg$2"
4215
4216 shift; shift
4217 set X $ac_arg "$@"
4218 ;;
4219 esac
4220 ;;
4221 -YP,*)
4222 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4223 ac_exists=false
4224 for ac_i in $ac_cv_f90libs; do
4225 if test x"$ac_j" = x"$ac_i"; then
4226 ac_exists=true
4227 break
4228 fi
4229 done
4230
4231 if test x"$ac_exists" = xtrue; then
4232 :
4233 else
4234 ac_arg="$ac_arg $ac_j"
4235 ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4236 fi
4237
4238 done
4239 ;;
4240 -[lLR]*)
4241 ac_exists=false
4242 for ac_i in $ac_cv_f90libs; do
4243 if test x"$ac_arg" = x"$ac_i"; then
4244 ac_exists=true
4245 break
4246 fi
4247 done
4248
4249 if test x"$ac_exists" = xtrue; then
4250 :
4251 else
4252 ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4253 fi
4254
4255 ;;
4256 # Ignore everything else.
4257 esac
4258 done
4259 # restore positional arguments
4260 set X $ac_save_positional; shift
4261
4262 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
4263 # then we insist that the "run path" must be an absolute path (i.e. it
4264 # must begin with a "/").
4265 case `(uname -sr) 2>/dev/null` in
4266 "SunOS 5"*)
4267 ac_ld_run_path=`echo $ac_f90_v_output |
4268 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4269 test "x$ac_ld_run_path" != x &&
4270
4271 if test "$ac_compiler_gnu" = yes; then
4272 for ac_link_opt in $ac_ld_run_path; do
4273 ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4274 done
4275 else
4276 ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4277 fi
4278 ;;
4279 esac
4280 fi # test "x$F90LIBS" = "x"
4281
4282 fi
4283 echo "$as_me:4283: result: $ac_cv_flibs" >&5
4284 echo "${ECHO_T}$ac_cv_flibs" >&6
4285 F90LIBS="$ac_cv_f90libs"
4286
4287 ac_ext=f90
4288 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4289 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4291
4292 echo "$as_me:4292: checking for Fortran 90 name-mangling scheme" >&5
4293 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4294 if test "${ac_cv_f90_mangling+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 ac_ext=f90
4298 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4299 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4301 cat >conftest.$ac_ext <<_ACEOF
4302 subroutine foobar()
4303 return
4304 end
4305 subroutine foo_bar()
4306 return
4307 end
4308 _ACEOF
4309 rm -f conftest.$ac_objext
4310 if { (eval echo "$as_me:4310: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>&5
4312 ac_status=$?
4313 echo "$as_me:4313: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (eval echo "$as_me:4316: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:4319: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 mv conftest.$ac_objext cf90_test.$ac_objext
4322
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329 ac_save_LIBS=$LIBS
4330 LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4331
4332 ac_success=no
4333 for ac_foobar in foobar FOOBAR; do
4334 for ac_underscore in "" "_"; do
4335 ac_func="$ac_foobar$ac_underscore"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 #line 4337 "configure"
4338 #include "confdefs.h"
4339
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 #ifdef __cplusplus
4342 extern "C"
4343 #endif
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4346 char $ac_func ();
4347 int
4348 main ()
4349 {
4350 $ac_func ();
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext conftest$ac_exeext
4356 if { (eval echo "$as_me:4356: \"$ac_link\"") >&5
4357 (eval $ac_link) 2>&5
4358 ac_status=$?
4359 echo "$as_me:4359: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest$ac_exeext'
4362 { (eval echo "$as_me:4362: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 ac_success=yes; break 2
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4371 fi
4372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4373 done
4374 done
4375
4376 if test "$ac_success" = "yes"; then
4377 case $ac_foobar in
4378 foobar)
4379 ac_case=lower
4380 ac_foo_bar=foo_bar
4381 ;;
4382 FOOBAR)
4383 ac_case=upper
4384 ac_foo_bar=FOO_BAR
4385 ;;
4386 esac
4387
4388 ac_success_extra=no
4389 for ac_extra in "" "_"; do
4390 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4391
4392 cat >conftest.$ac_ext <<_ACEOF
4393 #line 4393 "configure"
4394 #include "confdefs.h"
4395
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 #ifdef __cplusplus
4398 extern "C"
4399 #endif
4400 /* We use char because int might match the return type of a gcc2
4401 builtin and then its argument prototype would still apply. */
4402 char $ac_func ();
4403 int
4404 main ()
4405 {
4406 $ac_func ();
4407 ;
4408 return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (eval echo "$as_me:4412: \"$ac_link\"") >&5
4413 (eval $ac_link) 2>&5
4414 ac_status=$?
4415 echo "$as_me:4415: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -s conftest$ac_exeext'
4418 { (eval echo "$as_me:4418: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:4421: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_success_extra=yes; break
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4427 fi
4428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4429 done
4430
4431 if test "$ac_success_extra" = "yes"; then
4432 ac_cv_f90_mangling="$ac_case case"
4433 if test -z "$ac_underscore"; then
4434 ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4435 else
4436 ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4437
4438 fi
4439 if test -z "$ac_extra"; then
4440 ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4441 else
4442 ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4443 fi
4444 else
4445 ac_cv_f90_mangling="unknown"
4446 fi
4447 else
4448 ac_cv_f90_mangling="unknown"
4449
4450 fi
4451
4452 LIBS=$ac_save_LIBS
4453 ac_ext=f90
4454 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4455 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4457 rm -f cf90_test* conftest*
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 fi
4462 rm -f conftest.$ac_objext conftest.$ac_ext
4463 ac_ext=f90
4464 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4465 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4467
4468 fi
4469 echo "$as_me:4469: result: $ac_cv_f90_mangling" >&5
4470 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4471
4472 case $ac_cv_f90_mangling in
4473 "lower case, no underscore, no extra underscore")
4474 cat >>confdefs.h <<\EOF
4475 #define F90_FUNC(name,NAME) name
4476 EOF
4477
4478 cat >>confdefs.h <<\EOF
4479 #define F90_FUNC_(name,NAME) name
4480 EOF
4481 ;;
4482 "lower case, no underscore, extra underscore")
4483 cat >>confdefs.h <<\EOF
4484 #define F90_FUNC(name,NAME) name
4485 EOF
4486
4487 cat >>confdefs.h <<\EOF
4488 #define F90_FUNC_(name,NAME) name ## _
4489 EOF
4490 ;;
4491 "lower case, underscore, no extra underscore")
4492 cat >>confdefs.h <<\EOF
4493 #define F90_FUNC(name,NAME) name ## _
4494 EOF
4495
4496 cat >>confdefs.h <<\EOF
4497 #define F90_FUNC_(name,NAME) name ## _
4498 EOF
4499 ;;
4500 "lower case, underscore, extra underscore")
4501 cat >>confdefs.h <<\EOF
4502 #define F90_FUNC(name,NAME) name ## _
4503 EOF
4504
4505 cat >>confdefs.h <<\EOF
4506 #define F90_FUNC_(name,NAME) name ## __
4507 EOF
4508 ;;
4509 "upper case, no underscore, no extra underscore")
4510 cat >>confdefs.h <<\EOF
4511 #define F90_FUNC(name,NAME) NAME
4512 EOF
4513
4514 cat >>confdefs.h <<\EOF
4515 #define F90_FUNC_(name,NAME) NAME
4516 EOF
4517 ;;
4518 "upper case, no underscore, extra underscore")
4519 cat >>confdefs.h <<\EOF
4520 #define F90_FUNC(name,NAME) NAME
4521 EOF
4522
4523 cat >>confdefs.h <<\EOF
4524 #define F90_FUNC_(name,NAME) NAME ## _
4525 EOF
4526 ;;
4527 "upper case, underscore, no extra underscore")
4528 cat >>confdefs.h <<\EOF
4529 #define F90_FUNC(name,NAME) NAME ## _
4530 EOF
4531
4532 cat >>confdefs.h <<\EOF
4533 #define F90_FUNC_(name,NAME) NAME ## _
4534 EOF
4535 ;;
4536 "upper case, underscore, extra underscore")
4537 cat >>confdefs.h <<\EOF
4538 #define F90_FUNC(name,NAME) NAME ## _
4539 EOF
4540
4541 cat >>confdefs.h <<\EOF
4542 #define F90_FUNC_(name,NAME) NAME ## __
4543 EOF
4544 ;;
4545 *)
4546 { echo "$as_me:4546: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4547 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4548 ;;
4549 esac
4550
4551 echo "$as_me:4551: checking for module suffix" >&5
4552 echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4553 rm -f conftest*
4554 # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4555 rm -f work*
4556 cat >conftest.f <<EOF
4557 module conftest
4558 integer n
4559 parameter (n=1)
4560 end module conftest
4561 EOF
4562 # SGI and absoft compilers generates module name in upper case!
4563 testname="conftest"
4564 modcase="lower"
4565 if $F90 -c conftest.f > conftest.out 2>&1 ; then
4566 MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4567 MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4568 if test -z "$MOD" ; then
4569 MOD=`ls CONFTEST* 2>/dev/null \
4570 | grep -v CONFTEST.f | grep -v CONFTEST.o`
4571 MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4572 if test -n "$MOD" ; then
4573 testname="CONFTEST"
4574 modcase="upper"
4575 fi
4576 fi
4577 if test -z "$MOD" ; then
4578 echo "$as_me:4578: result: unknown" >&5
4579 echo "${ECHO_T}unknown" >&6
4580 # Use mod if we can't figure it out
4581 MOD="mod"
4582 else
4583 echo "$as_me:4583: result: $MOD" >&5
4584 echo "${ECHO_T}$MOD" >&6
4585 fi
4586 if test -s work.pcl ; then
4587 { echo "$as_me:4587: WARNING: Compiler generates auxillery files!" >&5
4588 echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4589 fi
4590 else
4591 echo "$as_me:4591: result: unknown" >&5
4592 echo "${ECHO_T}unknown" >&6
4593 fi
4594
4595 # Check for module include path (some use -I, some (Solaris) use -M, some
4596 # (absoft) use -p).
4597 # Intel compilers use a wierd system: -cl,filename.pcl . If no file is
4598 # specified, work.pcl and work.pc are created. However, if you specify
4599 # a file, it must contain a the name of a file ending in .pc . Ugh!
4600 # Use the module made above
4601 echo "$as_me:4601: checking for module directory path flag" >&5
4602 echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4603 madedir=0
4604 if test ! -d conf ; then mkdir conf ; madedir=1; fi
4605 cp $testname.$MOD conf
4606 rm -f conftest* CONFTEST*
4607 cat >conftest1.f <<EOF
4608 program main
4609 use conftest
4610 print *, n
4611 end
4612 EOF
4613 F90_WORK_FILES_ARG=""
4614 F90MODINCSPEC=""
4615 if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
4616 MODDIRFLAG="-I"
4617 F90MODINCSPEC="-I<dir>"
4618 echo "$as_me:4618: result: -I" >&5
4619 echo "${ECHO_T}-I" >&6
4620 elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
4621 MODDIRFLAG="-M"
4622 F90MODINCSPEC="-M<dir>"
4623 echo "$as_me:4623: result: -M" >&5
4624 echo "${ECHO_T}-M" >&6
4625 elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
4626 MODDIRFLAG="-p"
4627 F90MODINCSPEC="-p<dir>"
4628 echo "$as_me:4628: result: -p" >&5
4629 echo "${ECHO_T}-p" >&6
4630 elif test -s work.pc ; then
4631 cp work.pc conf/mpimod.pc
4632 echo "mpimod.pc" > conf/mpimod.pcl
4633 echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4634 if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4635 MODDIRFLAG='-cl,mpimod.pcl'
4636 echo "$as_me:4636: result: -cl,filename where filename contains a list of files and
4637 directories" >&5
4638 echo "${ECHO_T}-cl,filename where filename contains a list of files and
4639 directories" >&6
4640 F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4641 F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4642
4643 else
4644 # The version of the Intel compiler that I have refuses to let
4645 # you put the "work catalog" list anywhere but the current directory.
4646 # For example, you cannot in
4647 :
4648 fi
4649 fi
4650 if test -z "MODDIRFLAG" ; then
4651 echo "$as_me:4651: result: unknown" >&5
4652 echo "${ECHO_T}unknown" >&6
4653 fi
4654
4655 rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4656 if test $madedir = 1 ; then rmdir conf ; fi
4657
4658 echo "$as_me:4658: checking for mpi-directory" >&5
4659 echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
4660
4661 # Check whether --with-mpi_dir or --without-mpi_dir was given.
4662 if test "${with_mpi_dir+set}" = set; then
4663 withval="$with_mpi_dir"
4664 MPI_DIR="$withval"
4665 else
4666 MPI_DIR="/usr/local"
4667 fi;
4668 echo "$as_me:4668: result: $MPI_DIR" >&5
4669 echo "${ECHO_T}$MPI_DIR" >&6
4670
4671 echo "$as_me:4671: checking for mpi-lib-directory" >&5
4672 echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
4673
4674 # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
4675 if test "${with_mpi_libdir+set}" = set; then
4676 withval="$with_mpi_libdir"
4677 MPI_LIBDIR="$withval"
4678 else
4679 MPI_LIBDIR="$MPI_DIR/lib"
4680 fi;
4681 echo "$as_me:4681: result: $MPI_LIBDIR" >&5
4682 echo "${ECHO_T}$MPI_LIBDIR" >&6
4683
4684 echo "$as_me:4684: checking for mpi-inc-directory" >&5
4685 echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
4686
4687 # Check whether --with-mpi_inc or --without-mpi_inc was given.
4688 if test "${with_mpi_inc+set}" = set; then
4689 withval="$with_mpi_inc"
4690 MPI_INC="$withval"
4691 else
4692 MPI_INC="$MPI_DIR/include"
4693 fi;
4694 echo "$as_me:4694: result: $MPI_INC" >&5
4695 echo "${ECHO_T}$MPI_INC" >&6
4696
4697 echo "$as_me:4697: checking for MPI library" >&5
4698 echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4699 MPI_LIB=""
4700 case "$host" in
4701 *-ibm-aix*)
4702 echo "$as_me:4702: checking whether to use signal-based MPI library" >&5
4703 echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4704 echo "$as_me:4704: result: $PACX_SIGNAL" >&5
4705 echo "${ECHO_T}$PACX_SIGNAL" >&6
4706 if test "x$PACX_SIGNAL" = "xyes" ; then
4707 if test -f "$MPI_LIBDIR/libmpi.a" ; then
4708 MPI_LIB="-lmpi"
4709 elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4710 MPI_LIB="-lmpi"
4711 elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4712 MPI_LIB="-lmpich"
4713 else
4714 { { echo "$as_me:4714: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4715 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4716 { (exit 1); exit 1; }; }
4717 fi
4718 else
4719 if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4720 MPI_LIB="-lmpi_r"
4721 else
4722 { { echo "$as_me:4722: error: libmpi_r not found; check path for MPI package..." >&5
4723 echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4724 { (exit 1); exit 1; }; }
4725 fi
4726 fi
4727 echo "$as_me:4727: result: found $MPI_LIB" >&5
4728 echo "${ECHO_T}found $MPI_LIB" >&6
4729 ;;
4730 *) if test -f "$MPI_LIBDIR/libmpi.a" ; then
4731 MPI_LIB="-lmpi"
4732 elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4733 MPI_LIB="-lmpi"
4734 elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4735 MPI_LIB="-lmpich"
4736 else
4737 { { echo "$as_me:4737: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4738 echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4739 { (exit 1); exit 1; }; }
4740 fi
4741 echo "$as_me:4741: result: found $MPI_LIB" >&5
4742 echo "${ECHO_T}found $MPI_LIB" >&6
4743 ;;
4744 esac
4745
4746 for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
4747 do
4748 # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 set dummy $ac_prog; ac_word=$2
4750 echo "$as_me:4750: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4752 if test "${ac_cv_prog_MPIF90+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 if test -n "$MPIF90"; then
4756 ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
4757 else
4758 ac_save_IFS=$IFS; IFS=$ac_path_separator
4759 ac_dummy="$PATH"
4760 for ac_dir in $ac_dummy; do
4761 IFS=$ac_save_IFS
4762 test -z "$ac_dir" && ac_dir=.
4763 $as_executable_p "$ac_dir/$ac_word" || continue
4764 ac_cv_prog_MPIF90="$ac_prog"
4765 echo "$as_me:4765: found $ac_dir/$ac_word" >&5
4766 break
4767 done
4768
4769 fi
4770 fi
4771 MPIF90=$ac_cv_prog_MPIF90
4772 if test -n "$MPIF90"; then
4773 echo "$as_me:4773: result: $MPIF90" >&5
4774 echo "${ECHO_T}$MPIF90" >&6
4775 else
4776 echo "$as_me:4776: result: no" >&5
4777 echo "${ECHO_T}no" >&6
4778 fi
4779
4780 test -n "$MPIF90" && break
4781 done
4782 test -n "$MPIF90" || MPIF90="$F90"
4783
4784 acx_mpi_save_F90="$F90"
4785 F90="$MPIF90"
4786
4787 if test x = x"$MPILIBS"; then
4788 echo "$as_me:4788: checking for MPI_Init" >&5
4789 echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4791
4792 program main
4793
4794 call MPI_Init
4795 end program main
4796
4797 _ACEOF
4798 rm -f conftest.$ac_objext conftest$ac_exeext
4799 if { (eval echo "$as_me:4799: \"$ac_link\"") >&5
4800 (eval $ac_link) 2>&5
4801 ac_status=$?
4802 echo "$as_me:4802: \$? = $ac_status" >&5
4803 (exit $ac_status); } &&
4804 { ac_try='test -s conftest$ac_exeext'
4805 { (eval echo "$as_me:4805: \"$ac_try\"") >&5
4806 (eval $ac_try) 2>&5
4807 ac_status=$?
4808 echo "$as_me:4808: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4810 MPILIBS=" "
4811 echo "$as_me:4811: result: yes" >&5
4812 echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4816 echo "$as_me:4816: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 fi
4821 if test x = x"$MPILIBS"; then
4822 echo "$as_me:4822: checking for MPI_Init in -lmpi" >&5
4823 echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
4824 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 ac_check_lib_save_LIBS=$LIBS
4828 LIBS="-lmpi $LIBS"
4829 cat >conftest.$ac_ext <<_ACEOF
4830
4831 program main
4832
4833 call MPI_Init
4834 end program main
4835
4836 _ACEOF
4837 rm -f conftest.$ac_objext conftest$ac_exeext
4838 if { (eval echo "$as_me:4838: \"$ac_link\"") >&5
4839 (eval $ac_link) 2>&5
4840 ac_status=$?
4841 echo "$as_me:4841: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -s conftest$ac_exeext'
4844 { (eval echo "$as_me:4844: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:4847: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_lib_mpi_MPI_Init=yes
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 ac_cv_lib_mpi_MPI_Init=no
4854 fi
4855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4856 LIBS=$ac_check_lib_save_LIBS
4857 fi
4858 echo "$as_me:4858: result: $ac_cv_lib_mpi_MPI_Init" >&5
4859 echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
4860 if test $ac_cv_lib_mpi_MPI_Init = yes; then
4861 MPILIBS="-lmpi"
4862 fi
4863
4864 fi
4865 if test x = x"$MPILIBS"; then
4866 echo "$as_me:4866: checking for MPI_Init in -lmpich" >&5
4867 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
4868 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 ac_check_lib_save_LIBS=$LIBS
4872 LIBS="-lmpich $LIBS"
4873 cat >conftest.$ac_ext <<_ACEOF
4874
4875 program main
4876
4877 call MPI_Init
4878 end program main
4879
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (eval echo "$as_me:4882: \"$ac_link\"") >&5
4883 (eval $ac_link) 2>&5
4884 ac_status=$?
4885 echo "$as_me:4885: \$? = $ac_status" >&5
4886 (exit $ac_status); } &&
4887 { ac_try='test -s conftest$ac_exeext'
4888 { (eval echo "$as_me:4888: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:4891: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_cv_lib_mpich_MPI_Init=yes
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4897 ac_cv_lib_mpich_MPI_Init=no
4898 fi
4899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4900 LIBS=$ac_check_lib_save_LIBS
4901 fi
4902 echo "$as_me:4902: result: $ac_cv_lib_mpich_MPI_Init" >&5
4903 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
4904 if test $ac_cv_lib_mpich_MPI_Init = yes; then
4905 MPILIBS="-lmpich"
4906 fi
4907
4908 fi
4909
4910 F90="$acx_mpi_save_F90"
4911
4912 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
4913 if test x = x"$MPILIBS"; then
4914
4915 :
4916 else
4917
4918 cat >>confdefs.h <<\EOF
4919 #define HAVE_MPI 1
4920 EOF
4921
4922 :
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930 echo "$as_me:4930: checking how to run the C preprocessor" >&5
4931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4932 # On Suns, sometimes $CPP names a directory.
4933 if test -n "$CPP" && test -d "$CPP"; then
4934 CPP=
4935 fi
4936 if test -z "$CPP"; then
4937 if test "${ac_cv_prog_CPP+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 # Double quotes because CPP needs to be expanded
4941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4942 do
4943 # break 2 since there is a loop in there.
4944 ac_preproc_ok=false
4945 for ac_c_preproc_warn_flag in '' yes
4946 do
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # On the NeXT, cc -E runs the code through the compiler's parser,
4950 # not just through cpp. "Syntax error" is here to catch this case.
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line 4952 "configure"
4953 #include "confdefs.h"
4954 #include <assert.h>
4955 Syntax error
4956 _ACEOF
4957 if { (eval echo "$as_me:4957: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 ac_status=$?
4960 egrep -v '^ *\+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:4963: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_c_preproc_warn_flag
4967 else
4968 ac_cpp_err=
4969 fi
4970 else
4971 ac_cpp_err=yes
4972 fi
4973 if test -z "$ac_cpp_err"; then
4974 :
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 # Broken: fails on valid input.
4979 continue
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982
4983 # OK, works on sane cases. Now check whether non-existent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line 4986 "configure"
4987 #include "confdefs.h"
4988 #include <ac_nonexistent.h>
4989 _ACEOF
4990 if { (eval echo "$as_me:4990: \"$ac_cpp conftest.$ac_ext\"") >&5
4991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 ac_status=$?
4993 egrep -v '^ *\+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:4996: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null; then
4998 if test -s conftest.err; then
4999 ac_cpp_err=$ac_c_preproc_warn_flag
5000 else
5001 ac_cpp_err=
5002 fi
5003 else
5004 ac_cpp_err=yes
5005 fi
5006 if test -z "$ac_cpp_err"; then
5007 # Broken: success on invalid input.
5008 continue
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 # Passes both tests.
5013 ac_preproc_ok=:
5014 break
5015 fi
5016 rm -f conftest.err conftest.$ac_ext
5017
5018 done
5019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5020 rm -f conftest.err conftest.$ac_ext
5021 if $ac_preproc_ok; then
5022 break 2
5023 fi
5024
5025 done
5026 ac_cv_prog_CPP=$CPP
5027
5028 fi
5029 CPP=$ac_cv_prog_CPP
5030 else
5031 ac_cv_prog_CPP=$CPP
5032 fi
5033 echo "$as_me:5033: result: $CPP" >&5
5034 echo "${ECHO_T}$CPP" >&6
5035 ac_preproc_ok=false
5036 for ac_c_preproc_warn_flag in '' yes
5037 do
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line 5043 "configure"
5044 #include "confdefs.h"
5045 #include <assert.h>
5046 Syntax error
5047 _ACEOF
5048 if { (eval echo "$as_me:5048: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5050 ac_status=$?
5051 egrep -v '^ *\+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:5054: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null; then
5056 if test -s conftest.err; then
5057 ac_cpp_err=$ac_c_preproc_warn_flag
5058 else
5059 ac_cpp_err=
5060 fi
5061 else
5062 ac_cpp_err=yes
5063 fi
5064 if test -z "$ac_cpp_err"; then
5065 :
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5069 # Broken: fails on valid input.
5070 continue
5071 fi
5072 rm -f conftest.err conftest.$ac_ext
5073
5074 # OK, works on sane cases. Now check whether non-existent headers
5075 # can be detected and how.
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line 5077 "configure"
5078 #include "confdefs.h"
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:5081: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 ac_status=$?
5084 egrep -v '^ *\+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:5087: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null; then
5089 if test -s conftest.err; then
5090 ac_cpp_err=$ac_c_preproc_warn_flag
5091 else
5092 ac_cpp_err=
5093 fi
5094 else
5095 ac_cpp_err=yes
5096 fi
5097 if test -z "$ac_cpp_err"; then
5098 # Broken: success on invalid input.
5099 continue
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5103 # Passes both tests.
5104 ac_preproc_ok=:
5105 break
5106 fi
5107 rm -f conftest.err conftest.$ac_ext
5108
5109 done
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.$ac_ext
5112 if $ac_preproc_ok; then
5113 :
5114 else
5115 { { echo "$as_me:5115: error: C preprocessor \"$CPP\" fails sanity check" >&5
5116 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5117 { (exit 1); exit 1; }; }
5118 fi
5119
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126 # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
5127 if test "${with_sprng_prefix+set}" = set; then
5128 withval="$with_sprng_prefix"
5129 sprng_prefix="$withval"
5130 else
5131 sprng_prefix="/usr/local"
5132 fi;
5133
5134 # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
5135 if test "${with_sprng_libdir+set}" = set; then
5136 withval="$with_sprng_libdir"
5137 sprng_libdir="$withval"
5138 else
5139 sprng_libdir="/usr/local/lib"
5140 fi;
5141
5142 # Check whether --with-sprng-include or --without-sprng-include was given.
5143 if test "${with_sprng_include+set}" = set; then
5144 withval="$with_sprng_include"
5145 sprng_include="$withval"
5146 else
5147 sprng_include="/usr/local/include/sprng"
5148 fi;
5149
5150 if test x$sprng_libdir = x ; then
5151 sprng_libdir=${sprng_prefix}/lib
5152 fi
5153
5154 if test x$sprng_include = x ; then
5155 sprng_include=${sprng_prefix}/include
5156 fi
5157
5158 echo "$as_me:5158: checking for SPRNG include files in $sprng_include" >&5
5159 echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
5160 if test -f ${sprng_include}/sprng.h; then
5161 have_sprngincl=yes
5162 echo "$as_me:5162: result: yes" >&5
5163 echo "${ECHO_T}yes" >&6
5164 else
5165 have_sprngincl=no
5166 echo "$as_me:5166: result: no" >&5
5167 echo "${ECHO_T}no" >&6
5168 { { echo "$as_me:5168: error: Could not locate the SPRNG include files" >&5
5169 echo "$as_me: error: Could not locate the SPRNG include files" >&2;}
5170 { (exit 1); exit 1; }; }
5171 fi
5172
5173 echo "$as_me:5173: checking for SPRNG libraries in $sprng_libdir" >&5
5174 echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
5175 if test -f ${sprng_libdir}/libsprng.a; then
5176 have_sprnglib=yes
5177 echo "$as_me:5177: result: yes" >&5
5178 echo "${ECHO_T}yes" >&6
5179 else
5180 have_sprnglib=no
5181 echo "$as_me:5181: result: no" >&5
5182 echo "${ECHO_T}no" >&6
5183 { { echo "$as_me:5183: error: Could not locate the SPRNG libraries" >&5
5184 echo "$as_me: error: Could not locate the SPRNG libraries" >&2;}
5185 { (exit 1); exit 1; }; }
5186 fi
5187
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193
5194 ac_save_CPPFLAGS=$CPPFLAGS
5195 CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
5196 ac_save_LDFLAGS=$LDFLAGS
5197 LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
5198 echo "$as_me:5198: checking for sprng.h" >&5
5199 echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
5200 if test "${ac_cv_header_sprng_h+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 cat >conftest.$ac_ext <<_ACEOF
5204 #line 5204 "configure"
5205 #include "confdefs.h"
5206 #include <sprng.h>
5207 _ACEOF
5208 if { (eval echo "$as_me:5208: \"$ac_cpp conftest.$ac_ext\"") >&5
5209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5210 ac_status=$?
5211 egrep -v '^ *\+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:5214: \$? = $ac_status" >&5
5215 (exit $ac_status); } >/dev/null; then
5216 if test -s conftest.err; then
5217 ac_cpp_err=$ac_c_preproc_warn_flag
5218 else
5219 ac_cpp_err=
5220 fi
5221 else
5222 ac_cpp_err=yes
5223 fi
5224 if test -z "$ac_cpp_err"; then
5225 ac_cv_header_sprng_h=yes
5226 else
5227 echo "$as_me: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5229 ac_cv_header_sprng_h=no
5230 fi
5231 rm -f conftest.err conftest.$ac_ext
5232 fi
5233 echo "$as_me:5233: result: $ac_cv_header_sprng_h" >&5
5234 echo "${ECHO_T}$ac_cv_header_sprng_h" >&6
5235 if test $ac_cv_header_sprng_h = yes; then
5236
5237 echo "$as_me:5237: checking for init_rng in -lsprng" >&5
5238 echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
5239 if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 ac_check_lib_save_LIBS=$LIBS
5243 LIBS="-lsprng $LIBS"
5244 cat >conftest.$ac_ext <<_ACEOF
5245 #line 5245 "configure"
5246 #include "confdefs.h"
5247
5248 /* Override any gcc2 internal prototype to avoid an error. */
5249 #ifdef __cplusplus
5250 extern "C"
5251 #endif
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5254 char init_rng ();
5255 int
5256 main ()
5257 {
5258 init_rng ();
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:5264: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>&5
5266 ac_status=$?
5267 echo "$as_me:5267: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -s conftest$ac_exeext'
5270 { (eval echo "$as_me:5270: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_cv_lib_sprng_init_rng=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5279 ac_cv_lib_sprng_init_rng=no
5280 fi
5281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5283 fi
5284 echo "$as_me:5284: result: $ac_cv_lib_sprng_init_rng" >&5
5285 echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
5286 if test $ac_cv_lib_sprng_init_rng = yes; then
5287 SPRNG_LIBDIR="${sprng_libdir}"
5288 SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
5289 HAVE_SPRNG="yes"
5290 fi
5291
5292 fi
5293
5294 CPPFLAGS=$ac_save_CPPFLAGS
5295 LDFLAGS=$ac_save_LDFLAGS
5296 ac_ext=f90
5297 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5298 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5300
5301 if test x_$HAVE_SPRNG != x_yes; then
5302 { { echo "$as_me:5302: error: Can't build with SPRNG" >&5
5303 echo "$as_me: error: Can't build with SPRNG" >&2;}
5304 { (exit 1); exit 1; }; }
5305 fi
5306
5307 echo "$as_me:5307: checking if MKL is wanted" >&5
5308 echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
5309
5310 # Check whether --with-mkl or --without-mkl was given.
5311 if test "${with_mkl+set}" = set; then
5312 withval="$with_mkl"
5313 echo "$as_me:5313: result: yes" >&5
5314 echo "${ECHO_T}yes" >&6
5315 for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
5316 mkldir="$dir"
5317 if test -f "$dir/include/mkl.h"; then
5318 found_mkl="yes";
5319 break;
5320 fi
5321 done
5322 if test x_$found_mkl != x_yes; then
5323 { { echo "$as_me:5323: error: Cannot find MKL includes" >&5
5324 echo "$as_me: error: Cannot find MKL includes" >&2;}
5325 { (exit 1); exit 1; }; }
5326 else
5327 printf "MKL includes found in $mkldir/include\n";
5328 fi
5329
5330 ac_ext=c
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335
5336 ac_save_CPPFLAGS=$CPPFLAGS
5337 CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
5338 ac_save_LDFLAGS=$LDFLAGS
5339 LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
5340 echo "$as_me:5340: checking for mkl.h" >&5
5341 echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
5342 if test "${ac_cv_header_mkl_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 cat >conftest.$ac_ext <<_ACEOF
5346 #line 5346 "configure"
5347 #include "confdefs.h"
5348 #include <mkl.h>
5349 _ACEOF
5350 if { (eval echo "$as_me:5350: \"$ac_cpp conftest.$ac_ext\"") >&5
5351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5352 ac_status=$?
5353 egrep -v '^ *\+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:5356: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null; then
5358 if test -s conftest.err; then
5359 ac_cpp_err=$ac_c_preproc_warn_flag
5360 else
5361 ac_cpp_err=
5362 fi
5363 else
5364 ac_cpp_err=yes
5365 fi
5366 if test -z "$ac_cpp_err"; then
5367 ac_cv_header_mkl_h=yes
5368 else
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5371 ac_cv_header_mkl_h=no
5372 fi
5373 rm -f conftest.err conftest.$ac_ext
5374 fi
5375 echo "$as_me:5375: result: $ac_cv_header_mkl_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
5377 if test $ac_cv_header_mkl_h = yes; then
5378
5379 echo "$as_me:5379: checking for vslNewStream in -lmkl" >&5
5380 echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
5381 if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 ac_check_lib_save_LIBS=$LIBS
5385 LIBS="-lmkl $LIBS"
5386 cat >conftest.$ac_ext <<_ACEOF
5387 #line 5387 "configure"
5388 #include "confdefs.h"
5389
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 #ifdef __cplusplus
5392 extern "C"
5393 #endif
5394 /* We use char because int might match the return type of a gcc2
5395 builtin and then its argument prototype would still apply. */
5396 char vslNewStream ();
5397 int
5398 main ()
5399 {
5400 vslNewStream ();
5401 ;
5402 return 0;
5403 }
5404 _ACEOF
5405 rm -f conftest.$ac_objext conftest$ac_exeext
5406 if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
5407 (eval $ac_link) 2>&5
5408 ac_status=$?
5409 echo "$as_me:5409: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -s conftest$ac_exeext'
5412 { (eval echo "$as_me:5412: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:5415: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_cv_lib_mkl_vslNewStream=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 ac_cv_lib_mkl_vslNewStream=no
5422 fi
5423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5424 LIBS=$ac_check_lib_save_LIBS
5425 fi
5426 echo "$as_me:5426: result: $ac_cv_lib_mkl_vslNewStream" >&5
5427 echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
5428 if test $ac_cv_lib_mkl_vslNewStream = yes; then
5429 MKL_LIBDIR="${mkldir}/lib/32",
5430 MKL_LIB="-lmkl -lvml -lguide",
5431 HAVE_MKL="yes"
5432 fi
5433
5434 else
5435 MKL_INC="-I${mkldir}/include"
5436 fi
5437
5438 CPPFLAGS=$ac_save_CPPFLAGS
5439 LDFLAGS=$ac_save_LDFLAGS
5440 ac_ext=f90
5441 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5442 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5444
5445 if test x_$HAVE_MKL != x_yes; then
5446 { { echo "$as_me:5446: error: Can't build with MKL" >&5
5447 echo "$as_me: error: Can't build with MKL" >&2;}
5448 { (exit 1); exit 1; }; }
5449 fi
5450
5451 else
5452
5453 echo "$as_me:5453: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5455
5456 fi;
5457
5458 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
5459 if test "${with_mpi_f90_mods+set}" = set; then
5460 withval="$with_mpi_f90_mods"
5461 mpi_f90_mods="$withval"
5462 else
5463 mpi_f90_mods="/usr/local/include/f90choice"
5464 fi;
5465
5466 echo "$as_me:5466: checking for MPI F90 modules" >&5
5467 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
5468
5469 ac_ext=f90
5470 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5471 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5473
5474 ac_save_F90FLAGS=$F90FLAGS
5475
5476 if test "$mpi_f90_mods"; then
5477 F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
5478 fi
5479
5480 cat >conftest.$ac_ext <<_ACEOF
5481
5482 program main
5483
5484 use mpi
5485 integer :: ierr
5486 call MPI_Init(ierr)
5487
5488 end program main
5489
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (eval echo "$as_me:5492: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>&5
5494 ac_status=$?
5495 echo "$as_me:5495: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5499 (eval $ac_try) 2>&5
5500 ac_status=$?
5501 echo "$as_me:5501: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 HAVE_MPI_MOD=1
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 HAVE_MPI_MOD=0
5508 fi
5509 rm -f conftest.$ac_objext conftest.$ac_ext
5510
5511 F90FLAGS=$ac_save_F90FLAGS
5512 ac_ext=f90
5513 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5514 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5516
5517 if test "$HAVE_MPI_MOD" = 1; then
5518 echo "$as_me:5518: result: yes" >&5
5519 echo "${ECHO_T}yes" >&6
5520
5521 cat >>confdefs.h <<\EOF
5522 #define MPI_MOD 1
5523 EOF
5524
5525 MPI_F90_MODS="${mpi_f90_mods}"
5526
5527 # The library name:
5528 if test -z "$MPI_LIB" ; then
5529 MPI_LIBNAME=-lmpich
5530 else
5531 MPI_LIBNAME="$MPI_LIB"
5532 fi
5533 if test -z "$MPIMODLIBNAME" ; then
5534 MPIMODLIBNAME="${MPI_LIBNAME}f90"
5535 fi
5536
5537 else
5538 echo "$as_me:5538: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5540 { { echo "$as_me:5540: error: Couldn't locate MPI F90 Modules" >&5
5541 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
5542 { (exit 1); exit 1; }; }
5543 fi
5544
5545 OBJEXT=".$OBJEXT"
5546
5547 OOPSE=oopse
5548
5549 if test "x${prefix}" = "xNONE"
5550 then
5551 OOPSE_HOME=${ac_default_prefix}/oopse
5552 else
5553 OOPSE_HOME=${prefix}/oopse
5554 fi
5555 # Check whether --enable-oopse-home or --disable-oopse-home was given.
5556 if test "${enable_oopse_home+set}" = set; then
5557 enableval="$enable_oopse_home"
5558 OOPSE_HOME="${enableval}"
5559 fi;
5560
5561 case "x$INSTALL" in
5562 x/*) ;;
5563 *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
5564 esac
5565
5566 MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
5567
5568 SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
5569
5570 CFLAGS=${CFLAGS-""}
5571 CXXFLAGS=${CXXFLAGS-""}
5572 CPPFLAGS=${CPPFLAGS-""}
5573 FFLAGS=${FFLAGS-""}
5574 F90FLAGS=${F90FLAGS-""}
5575 LDFLAGS=${LDFLAGS-""}
5576 DEBUG=${DEBUG-"-g"}
5577
5578 case $debug in
5579 1)
5580 FFLAGS="$DEBUG $FFLAGS"
5581 F90FLAGS="$DEBUG $F90FLAGS"
5582 ;;
5583 *)
5584 ;;
5585 esac
5586
5587 ac_config_headers="$ac_config_headers libmdtools/config.h"
5588
5589 ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
5590
5591 cat >confcache <<\_ACEOF
5592 # This file is a shell script that caches the results of configure
5593 # tests run on this system so they can be shared between configure
5594 # scripts and configure runs, see configure's option --config-cache.
5595 # It is not useful on other systems. If it contains results you don't
5596 # want to keep, you may remove or edit it.
5597 #
5598 # config.status only pays attention to the cache file if you give it
5599 # the --recheck option to rerun configure.
5600 #
5601 # `ac_cv_env_foo' variables (set or unset) will be overriden when
5602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5603 # following values.
5604
5605 _ACEOF
5606
5607 # The following way of writing the cache mishandles newlines in values,
5608 # but we know of no workaround that is simple, portable, and efficient.
5609 # So, don't put newlines in cache variables' values.
5610 # Ultrix sh set writes to stderr and can't be redirected directly,
5611 # and sets the high bit in the cache file unless we assign to the vars.
5612 {
5613 (set) 2>&1 |
5614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5615 *ac_space=\ *)
5616 # `set' does not quote correctly, so add quotes (double-quote
5617 # substitution turns \\\\ into \\, and sed turns \\ into \).
5618 sed -n \
5619 "s/'/'\\\\''/g;
5620 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5621 ;;
5622 *)
5623 # `set' quotes correctly as required by POSIX, so do not add quotes.
5624 sed -n \
5625 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5626 ;;
5627 esac;
5628 } |
5629 sed '
5630 t clear
5631 : clear
5632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5633 t end
5634 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5635 : end' >>confcache
5636 if cmp -s $cache_file confcache; then :; else
5637 if test -w $cache_file; then
5638 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5639 cat confcache >$cache_file
5640 else
5641 echo "not updating unwritable cache $cache_file"
5642 fi
5643 fi
5644 rm -f confcache
5645
5646 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5647 # Let make expand exec_prefix.
5648 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5649
5650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5652 # trailing colons and then remove the whole line if VPATH becomes empty
5653 # (actually we leave an empty line to preserve line numbers).
5654 if test "x$srcdir" = x.; then
5655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5656 s/:*\$(srcdir):*/:/;
5657 s/:*\${srcdir}:*/:/;
5658 s/:*@srcdir@:*/:/;
5659 s/^\([^=]*=[ ]*\):*/\1/;
5660 s/:*$//;
5661 s/^[^=]*=[ ]*$//;
5662 }'
5663 fi
5664
5665 DEFS=-DHAVE_CONFIG_H
5666
5667 : ${CONFIG_STATUS=./config.status}
5668 ac_clean_files_save=$ac_clean_files
5669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5670 { echo "$as_me:5670: creating $CONFIG_STATUS" >&5
5671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5672 cat >$CONFIG_STATUS <<_ACEOF
5673 #! $SHELL
5674 # Generated automatically by configure.
5675 # Run this file to recreate the current configuration.
5676 # Compiler output produced by configure, useful for debugging
5677 # configure, is in config.log if it exists.
5678
5679 debug=false
5680 SHELL=\${CONFIG_SHELL-$SHELL}
5681 ac_cs_invocation="\$0 \$@"
5682
5683 _ACEOF
5684
5685 cat >>$CONFIG_STATUS <<\_ACEOF
5686 # Be Bourne compatible
5687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5688 emulate sh
5689 NULLCMD=:
5690 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5691 set -o posix
5692 fi
5693
5694 # Name of the executable.
5695 as_me=`echo "$0" |sed 's,.*[\\/],,'`
5696
5697 if expr a : '\(a\)' >/dev/null 2>&1; then
5698 as_expr=expr
5699 else
5700 as_expr=false
5701 fi
5702
5703 rm -f conf$$ conf$$.exe conf$$.file
5704 echo >conf$$.file
5705 if ln -s conf$$.file conf$$ 2>/dev/null; then
5706 # We could just check for DJGPP; but this test a) works b) is more generic
5707 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5708 if test -f conf$$.exe; then
5709 # Don't use ln at all; we don't have any links
5710 as_ln_s='cp -p'
5711 else
5712 as_ln_s='ln -s'
5713 fi
5714 elif ln conf$$.file conf$$ 2>/dev/null; then
5715 as_ln_s=ln
5716 else
5717 as_ln_s='cp -p'
5718 fi
5719 rm -f conf$$ conf$$.exe conf$$.file
5720
5721 as_executable_p="test -f"
5722
5723 # Support unset when possible.
5724 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5725 as_unset=unset
5726 else
5727 as_unset=false
5728 fi
5729
5730 # NLS nuisances.
5731 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5732 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5733 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5734 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5735 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5736 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5737 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5738 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5739
5740 # IFS
5741 # We need space, tab and new line, in precisely that order.
5742 as_nl='
5743 '
5744 IFS=" $as_nl"
5745
5746 # CDPATH.
5747 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5748
5749 exec 6>&1
5750
5751 _ACEOF
5752
5753 # Files that config.status was made for.
5754 if test -n "$ac_config_files"; then
5755 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5756 fi
5757
5758 if test -n "$ac_config_headers"; then
5759 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5760 fi
5761
5762 if test -n "$ac_config_links"; then
5763 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5764 fi
5765
5766 if test -n "$ac_config_commands"; then
5767 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5768 fi
5769
5770 cat >>$CONFIG_STATUS <<\EOF
5771
5772 ac_cs_usage="\
5773 \`$as_me' instantiates files from templates according to the
5774 current configuration.
5775
5776 Usage: $0 [OPTIONS] [FILE]...
5777
5778 -h, --help print this help, then exit
5779 -V, --version print version number, then exit
5780 -d, --debug don't remove temporary files
5781 --recheck update $as_me by reconfiguring in the same conditions
5782 --file=FILE[:TEMPLATE]
5783 instantiate the configuration file FILE
5784 --header=FILE[:TEMPLATE]
5785 instantiate the configuration header FILE
5786
5787 Configuration files:
5788 $config_files
5789
5790 Configuration headers:
5791 $config_headers
5792
5793 Report bugs to <bug-autoconf@gnu.org>."
5794 EOF
5795
5796 cat >>$CONFIG_STATUS <<EOF
5797 ac_cs_version="\\
5798 OOPSE config.status 1.0
5799 configured by $0, generated by GNU Autoconf 2.50,
5800 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5801
5802 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5803 Free Software Foundation, Inc.
5804 This config.status script is free software; the Free Software Foundation
5805 gives unlimited permission to copy, distribute and modify it."
5806 srcdir=$srcdir
5807 INSTALL="$INSTALL"
5808 EOF
5809
5810 cat >>$CONFIG_STATUS <<\EOF
5811 # If no file are specified by the user, then we need to provide default
5812 # value. By we need to know if files were specified by the user.
5813 ac_need_defaults=:
5814 while test $# != 0
5815 do
5816 case $1 in
5817 --*=*)
5818 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5819 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5820 shift
5821 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5822 shift
5823 ;;
5824 -*);;
5825 *) # This is not an option, so the user has probably given explicit
5826 # arguments.
5827 ac_need_defaults=false;;
5828 esac
5829
5830 case $1 in
5831 # Handling of the options.
5832 EOF
5833 cat >>$CONFIG_STATUS <<EOF
5834 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5835 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5836 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5837 EOF
5838 cat >>$CONFIG_STATUS <<\EOF
5839 --version | --vers* | -V )
5840 echo "$ac_cs_version"; exit 0 ;;
5841 --he | --h)
5842 # Conflict between --help and --header
5843 { { echo "$as_me:5843: error: ambiguous option: $1
5844 Try \`$0 --help' for more information." >&5
5845 echo "$as_me: error: ambiguous option: $1
5846 Try \`$0 --help' for more information." >&2;}
5847 { (exit 1); exit 1; }; };;
5848 --help | --hel | -h )
5849 echo "$ac_cs_usage"; exit 0 ;;
5850 --debug | --d* | -d )
5851 debug=: ;;
5852 --file | --fil | --fi | --f )
5853 shift
5854 CONFIG_FILES="$CONFIG_FILES $1"
5855 ac_need_defaults=false;;
5856 --header | --heade | --head | --hea )
5857 shift
5858 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5859 ac_need_defaults=false;;
5860
5861 # Handling of arguments.
5862 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5863 'libBASS/Makefile' ) CONFIG_FILES="$CONFIG_FILES libBASS/Makefile" ;;
5864 'libmdtools/Makefile' ) CONFIG_FILES="$CONFIG_FILES libmdtools/Makefile" ;;
5865 'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5866 'utils/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
5867 'utils/sysbuilder/Makefile' ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
5868 'forceFields/Makefile' ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
5869 'samples/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
5870 'staticProps/Makefile' ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
5871 'samples/alkane/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
5872 'samples/argon/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
5873 'samples/beadLipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
5874 'samples/lipid/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
5875 'samples/metals/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
5876 'samples/water/Makefile' ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
5877 'libmdtools/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
5878
5879 # This is an error.
5880 -*) { { echo "$as_me:5880: error: unrecognized option: $1
5881 Try \`$0 --help' for more information." >&5
5882 echo "$as_me: error: unrecognized option: $1
5883 Try \`$0 --help' for more information." >&2;}
5884 { (exit 1); exit 1; }; } ;;
5885 *) { { echo "$as_me:5885: error: invalid argument: $1" >&5
5886 echo "$as_me: error: invalid argument: $1" >&2;}
5887 { (exit 1); exit 1; }; };;
5888 esac
5889 shift
5890 done
5891
5892 exec 5>>config.log
5893 cat >&5 << _ACEOF
5894
5895 ## ----------------------- ##
5896 ## Running config.status. ##
5897 ## ----------------------- ##
5898
5899 This file was extended by $as_me (OOPSE 1.0) 2.50, executed with
5900 > $ac_cs_invocation
5901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5902
5903 _ACEOF
5904 EOF
5905
5906 cat >>$CONFIG_STATUS <<\EOF
5907 # If the user did not use the arguments to specify the items to instantiate,
5908 # then the envvar interface is used. Set only those that are not.
5909 # We use the long form for the default assignment because of an extremely
5910 # bizarre bug on SunOS 4.1.3.
5911 if $ac_need_defaults; then
5912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5914 fi
5915
5916 # Create a temporary directory, and hook for its removal unless debugging.
5917 $debug ||
5918 {
5919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5920 trap '{ (exit $?); exit $?; }' 1 2 13 15
5921 }
5922
5923 # Create a (secure) tmp directory for tmp files.
5924 : ${TMPDIR=/tmp}
5925 {
5926 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5927 test -n "$tmp" && test -d "$tmp"
5928 } ||
5929 {
5930 tmp=$TMPDIR/cs$$-$RANDOM
5931 (umask 077 && mkdir $tmp)
5932 } ||
5933 {
5934 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5935 { (exit 1); exit 1; }
5936 }
5937
5938 EOF
5939
5940 cat >>$CONFIG_STATUS <<EOF
5941
5942 #
5943 # CONFIG_FILES section.
5944 #
5945
5946 # No need to generate the scripts if there are no CONFIG_FILES.
5947 # This happens for instance when ./config.status config.h
5948 if test -n "\$CONFIG_FILES"; then
5949 # Protect against being on the right side of a sed subst in config.status.
5950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5952 s,@SHELL@,$SHELL,;t t
5953 s,@exec_prefix@,$exec_prefix,;t t
5954 s,@prefix@,$prefix,;t t
5955 s,@program_transform_name@,$program_transform_name,;t t
5956 s,@bindir@,$bindir,;t t
5957 s,@sbindir@,$sbindir,;t t
5958 s,@libexecdir@,$libexecdir,;t t
5959 s,@datadir@,$datadir,;t t
5960 s,@sysconfdir@,$sysconfdir,;t t
5961 s,@sharedstatedir@,$sharedstatedir,;t t
5962 s,@localstatedir@,$localstatedir,;t t
5963 s,@libdir@,$libdir,;t t
5964 s,@includedir@,$includedir,;t t
5965 s,@oldincludedir@,$oldincludedir,;t t
5966 s,@infodir@,$infodir,;t t
5967 s,@mandir@,$mandir,;t t
5968 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5969 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5970 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5971 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5972 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5973 s,@ECHO_C@,$ECHO_C,;t t
5974 s,@ECHO_N@,$ECHO_N,;t t
5975 s,@ECHO_T@,$ECHO_T,;t t
5976 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5977 s,@DEFS@,$DEFS,;t t
5978 s,@LIBS@,$LIBS,;t t
5979 s,@PROGNAME@,$PROGNAME,;t t
5980 s,@debug@,$debug,;t t
5981 s,@build@,$build,;t t
5982 s,@build_cpu@,$build_cpu,;t t
5983 s,@build_vendor@,$build_vendor,;t t
5984 s,@build_os@,$build_os,;t t
5985 s,@host@,$host,;t t
5986 s,@host_cpu@,$host_cpu,;t t
5987 s,@host_vendor@,$host_vendor,;t t
5988 s,@host_os@,$host_os,;t t
5989 s,@CC@,$CC,;t t
5990 s,@CFLAGS@,$CFLAGS,;t t
5991 s,@LDFLAGS@,$LDFLAGS,;t t
5992 s,@CPPFLAGS@,$CPPFLAGS,;t t
5993 s,@ac_ct_CC@,$ac_ct_CC,;t t
5994 s,@EXEEXT@,$EXEEXT,;t t
5995 s,@OBJEXT@,$OBJEXT,;t t
5996 s,@CXX@,$CXX,;t t
5997 s,@CXXFLAGS@,$CXXFLAGS,;t t
5998 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5999 s,@F90@,$F90,;t t
6000 s,@F90FLAGS@,$F90FLAGS,;t t
6001 s,@ac_ct_F90@,$ac_ct_F90,;t t
6002 s,@PREPFLAG@,$PREPFLAG,;t t
6003 s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
6004 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6005 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6006 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6007 s,@LN_S@,$LN_S,;t t
6008 s,@SET_MAKE@,$SET_MAKE,;t t
6009 s,@RANLIB@,$RANLIB,;t t
6010 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6011 s,@YACC@,$YACC,;t t
6012 s,@LEX@,$LEX,;t t
6013 s,@LEXLIB@,$LEXLIB,;t t
6014 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6015 s,@AR@,$AR,;t t
6016 s,@F90LIBS@,$F90LIBS,;t t
6017 s,@F90_FUNC@,$F90_FUNC,;t t
6018 s,@F90_FUNC_@,$F90_FUNC_,;t t
6019 s,@MOD@,$MOD,;t t
6020 s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
6021 s,@MODDIRFLAG@,$MODDIRFLAG,;t t
6022 s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
6023 s,@mpi_dir@,$mpi_dir,;t t
6024 s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
6025 s,@MPI_INC@,$MPI_INC,;t t
6026 s,@MPI_LIB@,$MPI_LIB,;t t
6027 s,@MPIF77@,$MPIF77,;t t
6028 s,@MPIF90@,$MPIF90,;t t
6029 s,@MPILIBS@,$MPILIBS,;t t
6030 s,@CPP@,$CPP,;t t
6031 s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
6032 s,@SPRNG_LIB@,$SPRNG_LIB,;t t
6033 s,@SPRNG_INC@,$SPRNG_INC,;t t
6034 s,@HAVE_SPRNG@,$HAVE_SPRNG,;t t
6035 s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
6036 s,@MKL_LIB@,$MKL_LIB,;t t
6037 s,@MKL_INC@,$MKL_INC,;t t
6038 s,@HAVE_MKL@,$HAVE_MKL,;t t
6039 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
6040 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
6041 s,@BATEXT@,$BATEXT,;t t
6042 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
6043 s,@OOPSE@,$OOPSE,;t t
6044 s,@OOPSE_HOME@,$OOPSE_HOME,;t t
6045 s,@SUBDIRS@,$SUBDIRS,;t t
6046 s,@FFLAGS@,$FFLAGS,;t t
6047 CEOF
6048
6049 EOF
6050
6051 cat >>$CONFIG_STATUS <<\EOF
6052 # Split the substitutions into bite-sized pieces for seds with
6053 # small command number limits, like on Digital OSF/1 and HP-UX.
6054 ac_max_sed_lines=48
6055 ac_sed_frag=1 # Number of current file.
6056 ac_beg=1 # First line for current file.
6057 ac_end=$ac_max_sed_lines # Line after last line for current file.
6058 ac_more_lines=:
6059 ac_sed_cmds=
6060 while $ac_more_lines; do
6061 if test $ac_beg -gt 1; then
6062 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6063 else
6064 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6065 fi
6066 if test ! -s $tmp/subs.frag; then
6067 ac_more_lines=false
6068 else
6069 # The purpose of the label and of the branching condition is to
6070 # speed up the sed processing (if there are no `@' at all, there
6071 # is no need to browse any of the substitutions).
6072 # These are the two extra sed commands mentioned above.
6073 (echo ':t
6074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6075 if test -z "$ac_sed_cmds"; then
6076 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6077 else
6078 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6079 fi
6080 ac_sed_frag=`expr $ac_sed_frag + 1`
6081 ac_beg=$ac_end
6082 ac_end=`expr $ac_end + $ac_max_sed_lines`
6083 fi
6084 done
6085 if test -z "$ac_sed_cmds"; then
6086 ac_sed_cmds=cat
6087 fi
6088 fi # test -n "$CONFIG_FILES"
6089
6090 EOF
6091 cat >>$CONFIG_STATUS <<\EOF
6092 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6094 case $ac_file in
6095 - | *:- | *:-:* ) # input from stdin
6096 cat >$tmp/stdin
6097 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6098 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6099 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6101 * ) ac_file_in=$ac_file.in ;;
6102 esac
6103
6104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6105 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6106 X"$ac_file" : 'X\(//\)[^/]' \| \
6107 X"$ac_file" : 'X\(//\)$' \| \
6108 X"$ac_file" : 'X\(/\)' \| \
6109 . : '\(.\)' 2>/dev/null ||
6110 echo X"$ac_file" |
6111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6113 /^X\(\/\/\)$/{ s//\1/; q; }
6114 /^X\(\/\).*/{ s//\1/; q; }
6115 s/.*/./; q'`
6116 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6117 { case "$ac_dir" in
6118 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6119 *) as_incr_dir=.;;
6120 esac
6121 as_dummy="$ac_dir"
6122 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6123 case $as_mkdir_dir in
6124 # Skip DOS drivespec
6125 ?:) as_incr_dir=$as_mkdir_dir ;;
6126 *)
6127 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6128 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6129 ;;
6130 esac
6131 done; }
6132
6133 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
6134 # A "../" for each directory in $ac_dir_suffix.
6135 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
6136 else
6137 ac_dir_suffix= ac_dots=
6138 fi
6139
6140 case $srcdir in
6141 .) ac_srcdir=.
6142 if test -z "$ac_dots"; then
6143 ac_top_srcdir=.
6144 else
6145 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
6146 fi ;;
6147 [\\/]* | ?:[\\/]* )
6148 ac_srcdir=$srcdir$ac_dir_suffix;
6149 ac_top_srcdir=$srcdir ;;
6150 *) # Relative path.
6151 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
6152 ac_top_srcdir=$ac_dots$srcdir ;;
6153 esac
6154
6155 case $INSTALL in
6156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6157 *) ac_INSTALL=$ac_dots$INSTALL ;;
6158 esac
6159
6160 if test x"$ac_file" != x-; then
6161 { echo "$as_me:6161: creating $ac_file" >&5
6162 echo "$as_me: creating $ac_file" >&6;}
6163 rm -f "$ac_file"
6164 fi
6165 # Let's still pretend it is `configure' which instantiates (i.e., don't
6166 # use $as_me), people would be surprised to read:
6167 # /* config.h. Generated automatically by config.status. */
6168 configure_input="Generated automatically from `echo $ac_file_in |
6169 sed 's,.*/,,'` by configure."
6170
6171 # First look for the input files in the build tree, otherwise in the
6172 # src tree.
6173 ac_file_inputs=`IFS=:
6174 for f in $ac_file_in; do
6175 case $f in
6176 -) echo $tmp/stdin ;;
6177 [\\/$]*)
6178 # Absolute (can't be DOS-style, as IFS=:)
6179 test -f "$f" || { { echo "$as_me:6179: error: cannot find input file: $f" >&5
6180 echo "$as_me: error: cannot find input file: $f" >&2;}
6181 { (exit 1); exit 1; }; }
6182 echo $f;;
6183 *) # Relative
6184 if test -f "$f"; then
6185 # Build tree
6186 echo $f
6187 elif test -f "$srcdir/$f"; then
6188 # Source tree
6189 echo $srcdir/$f
6190 else
6191 # /dev/null tree
6192 { { echo "$as_me:6192: error: cannot find input file: $f" >&5
6193 echo "$as_me: error: cannot find input file: $f" >&2;}
6194 { (exit 1); exit 1; }; }
6195 fi;;
6196 esac
6197 done` || { (exit 1); exit 1; }
6198 EOF
6199 cat >>$CONFIG_STATUS <<EOF
6200 sed "$ac_vpsub
6201 $extrasub
6202 EOF
6203 cat >>$CONFIG_STATUS <<\EOF
6204 :t
6205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6206 s,@configure_input@,$configure_input,;t t
6207 s,@srcdir@,$ac_srcdir,;t t
6208 s,@top_srcdir@,$ac_top_srcdir,;t t
6209 s,@INSTALL@,$ac_INSTALL,;t t
6210 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6211 rm -f $tmp/stdin
6212 if test x"$ac_file" != x-; then
6213 mv $tmp/out $ac_file
6214 else
6215 cat $tmp/out
6216 rm -f $tmp/out
6217 fi
6218
6219 done
6220 EOF
6221 cat >>$CONFIG_STATUS <<\EOF
6222
6223 #
6224 # CONFIG_HEADER section.
6225 #
6226
6227 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6228 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6229 #
6230 # ac_d sets the value in "#define NAME VALUE" lines.
6231 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6232 ac_dB='[ ].*$,\1#\2'
6233 ac_dC=' '
6234 ac_dD=',;t'
6235 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6236 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6237 ac_uB='$,\1#\2define\3'
6238 ac_uC=' '
6239 ac_uD=',;t'
6240
6241 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6243 case $ac_file in
6244 - | *:- | *:-:* ) # input from stdin
6245 cat >$tmp/stdin
6246 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6248 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6249 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6250 * ) ac_file_in=$ac_file.in ;;
6251 esac
6252
6253 test x"$ac_file" != x- && { echo "$as_me:6253: creating $ac_file" >&5
6254 echo "$as_me: creating $ac_file" >&6;}
6255
6256 # First look for the input files in the build tree, otherwise in the
6257 # src tree.
6258 ac_file_inputs=`IFS=:
6259 for f in $ac_file_in; do
6260 case $f in
6261 -) echo $tmp/stdin ;;
6262 [\\/$]*)
6263 # Absolute (can't be DOS-style, as IFS=:)
6264 test -f "$f" || { { echo "$as_me:6264: error: cannot find input file: $f" >&5
6265 echo "$as_me: error: cannot find input file: $f" >&2;}
6266 { (exit 1); exit 1; }; }
6267 echo $f;;
6268 *) # Relative
6269 if test -f "$f"; then
6270 # Build tree
6271 echo $f
6272 elif test -f "$srcdir/$f"; then
6273 # Source tree
6274 echo $srcdir/$f
6275 else
6276 # /dev/null tree
6277 { { echo "$as_me:6277: error: cannot find input file: $f" >&5
6278 echo "$as_me: error: cannot find input file: $f" >&2;}
6279 { (exit 1); exit 1; }; }
6280 fi;;
6281 esac
6282 done` || { (exit 1); exit 1; }
6283 # Remove the trailing spaces.
6284 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6285
6286 EOF
6287
6288 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6289 # `conftest.undefs', that substitutes the proper values into
6290 # config.h.in to produce config.h. The first handles `#define'
6291 # templates, and the second `#undef' templates.
6292 # And first: Protect against being on the right side of a sed subst in
6293 # config.status. Protect against being in an unquoted here document
6294 # in config.status.
6295 rm -f conftest.defines conftest.undefs
6296 # Using a here document instead of a string reduces the quoting nightmare.
6297 # Putting comments in sed scripts is not portable.
6298 #
6299 # `end' is used to avoid that the second main sed command (meant for
6300 # 0-ary CPP macros) applies to n-ary macro definitions.
6301 # See the Autoconf documentation for `clear'.
6302 cat >confdef2sed.sed <<\EOF
6303 s/[\\&,]/\\&/g
6304 s,[\\$`],\\&,g
6305 t clear
6306 : clear
6307 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
6308 t end
6309 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6310 : end
6311 EOF
6312 # If some macros were called several times there might be several times
6313 # the same #defines, which is useless. Nevertheless, we may not want to
6314 # sort them, since we want the *last* AC-DEFINE to be honored.
6315 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6316 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6317 rm -f confdef2sed.sed
6318
6319 # This sed command replaces #undef with comments. This is necessary, for
6320 # example, in the case of _POSIX_SOURCE, which is predefined and required
6321 # on some systems where configure will not decide to define it.
6322 cat >>conftest.undefs <<\EOF
6323 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6324 EOF
6325
6326 # Break up conftest.defines because some shells have a limit on the size
6327 # of here documents, and old seds have small limits too (100 cmds).
6328 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6329 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6330 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6331 echo ' :' >>$CONFIG_STATUS
6332 rm -f conftest.tail
6333 while grep . conftest.defines >/dev/null
6334 do
6335 # Write a limited-size here document to $tmp/defines.sed.
6336 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6337 # Speed up: don't consider the non `#define' lines.
6338 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6339 # Work around the forget-to-reset-the-flag bug.
6340 echo 't clr' >>$CONFIG_STATUS
6341 echo ': clr' >>$CONFIG_STATUS
6342 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6343 echo 'CEOF
6344 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6345 rm -f $tmp/in
6346 mv $tmp/out $tmp/in
6347 ' >>$CONFIG_STATUS
6348 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6349 rm -f conftest.defines
6350 mv conftest.tail conftest.defines
6351 done
6352 rm -f conftest.defines
6353 echo ' fi # egrep' >>$CONFIG_STATUS
6354 echo >>$CONFIG_STATUS
6355
6356 # Break up conftest.undefs because some shells have a limit on the size
6357 # of here documents, and old seds have small limits too (100 cmds).
6358 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6359 rm -f conftest.tail
6360 while grep . conftest.undefs >/dev/null
6361 do
6362 # Write a limited-size here document to $tmp/undefs.sed.
6363 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6364 # Speed up: don't consider the non `#undef'
6365 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6366 # Work around the forget-to-reset-the-flag bug.
6367 echo 't clr' >>$CONFIG_STATUS
6368 echo ': clr' >>$CONFIG_STATUS
6369 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6370 echo 'CEOF
6371 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6372 rm -f $tmp/in
6373 mv $tmp/out $tmp/in
6374 ' >>$CONFIG_STATUS
6375 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6376 rm -f conftest.undefs
6377 mv conftest.tail conftest.undefs
6378 done
6379 rm -f conftest.undefs
6380
6381 cat >>$CONFIG_STATUS <<\EOF
6382 # Let's still pretend it is `configure' which instantiates (i.e., don't
6383 # use $as_me), people would be surprised to read:
6384 # /* config.h. Generated automatically by config.status. */
6385 if test x"$ac_file" = x-; then
6386 echo "/* Generated automatically by configure. */" >$tmp/config.h
6387 else
6388 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
6389 fi
6390 cat $tmp/in >>$tmp/config.h
6391 rm -f $tmp/in
6392 if test x"$ac_file" != x-; then
6393 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
6394 { echo "$as_me:6394: $ac_file is unchanged" >&5
6395 echo "$as_me: $ac_file is unchanged" >&6;}
6396 else
6397 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6398 X"$ac_file" : 'X\(//\)[^/]' \| \
6399 X"$ac_file" : 'X\(//\)$' \| \
6400 X"$ac_file" : 'X\(/\)' \| \
6401 . : '\(.\)' 2>/dev/null ||
6402 echo X"$ac_file" |
6403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6405 /^X\(\/\/\)$/{ s//\1/; q; }
6406 /^X\(\/\).*/{ s//\1/; q; }
6407 s/.*/./; q'`
6408 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6409 { case "$ac_dir" in
6410 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
6411 *) as_incr_dir=.;;
6412 esac
6413 as_dummy="$ac_dir"
6414 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
6415 case $as_mkdir_dir in
6416 # Skip DOS drivespec
6417 ?:) as_incr_dir=$as_mkdir_dir ;;
6418 *)
6419 as_incr_dir=$as_incr_dir/$as_mkdir_dir
6420 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
6421 ;;
6422 esac
6423 done; }
6424
6425 fi
6426 rm -f $ac_file
6427 mv $tmp/config.h $ac_file
6428 fi
6429 else
6430 cat $tmp/config.h
6431 rm -f $tmp/config.h
6432 fi
6433 done
6434 EOF
6435
6436 cat >>$CONFIG_STATUS <<\EOF
6437
6438 { (exit 0); exit 0; }
6439 EOF
6440 chmod +x $CONFIG_STATUS
6441 ac_clean_files=$ac_clean_files_save
6442
6443 # configure is writing to config.log, and then calls config.status.
6444 # config.status does its own redirection, appending to config.log.
6445 # Unfortunately, on DOS this fails, as config.log is still kept open
6446 # by configure, so config.status won't be able to write to it; its
6447 # output is simply discarded. So we exec the FD to /dev/null,
6448 # effectively closing config.log, so it can be properly (re)opened and
6449 # appended to by config.status. When coming back to configure, we
6450 # need to make the FD available again.
6451 if test "$no_create" != yes; then
6452 ac_cs_success=:
6453 exec 5>/dev/null
6454 $SHELL $CONFIG_STATUS || ac_cs_success=false
6455 exec 5>>config.log
6456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6457 # would make configure fail if this is the last instruction.
6458 $ac_cs_success || { (exit 1); exit 1; }
6459 fi
6460

Properties

Name Value
svn:executable *