ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/configure
Revision: 2029
Committed: Tue Feb 15 15:17:01 2005 UTC (19 years, 4 months ago) by gezelter
File size: 218663 byte(s)
Log Message:
*** empty log message ***

File Contents

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

Properties

Name Value
svn:executable *