ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
Revision: 790
Committed: Mon Sep 29 21:16:11 2003 UTC (20 years, 9 months ago) by mmeineke
File size: 189647 byte(s)
Log Message:
fixed a lot of warnings and errors found with SUN's SUNWspro.s1s7

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

Properties

Name Value
svn:executable *