]> git.ipfire.org Git - thirdparty/gcc.git/blame - libada/configure
configure.ac: Include multi.m4 and do not call AC_CANONICAL_SYSTEM.
[thirdparty/gcc.git] / libada / configure
CommitLineData
b0b70d84
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8ab705be 3# Generated by GNU Autoconf 2.59.
b0b70d84 4#
8ab705be 5# Copyright (C) 2003 Free Software Foundation, Inc.
b0b70d84
AC
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
8ab705be 22DUALCASE=1; export DUALCASE # for MKS sh
b0b70d84
AC
23
24# Support unset when possible.
8ab705be 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b0b70d84
AC
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
8ab705be 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
b0b70d84
AC
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
8ab705be 221 test -d ./-p && rmdir ./-p
b0b70d84
AC
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
8ab705be 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b0b70d84
AC
229
230# Sed expression to map a string onto a valid variable name.
8ab705be 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b0b70d84
AC
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
f0d3c336
AC
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
b0b70d84 273
f0d3c336 274ac_unique_file="Makefile.in"
7193e639 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS enable_shared LN_S default_gnatlib_target LDFLAGS CPPFLAGS warn_cflags LIBOBJS LTLIBOBJS'
b0b70d84 276ac_subst_files=''
18c04407 277ac_pwd=`pwd`
b0b70d84
AC
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
8ab705be 635 localstatedir libdir includedir oldincludedir infodir mandir
b0b70d84
AC
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
b0b70d84
AC
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
47ad7893
PB
717ac_env_CC_set=${CC+set}
718ac_env_CC_value=$CC
719ac_cv_env_CC_set=${CC+set}
720ac_cv_env_CC_value=$CC
721ac_env_CFLAGS_set=${CFLAGS+set}
722ac_env_CFLAGS_value=$CFLAGS
723ac_cv_env_CFLAGS_set=${CFLAGS+set}
724ac_cv_env_CFLAGS_value=$CFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
b0b70d84
AC
733
734#
735# Report the --help message.
736#
737if test "$ac_init_help" = "long"; then
738 # Omit some internal or obsolete options to make the list less imposing.
739 # This message is too long to be a string in the A/UX 3.1 sh.
740 cat <<_ACEOF
f0d3c336 741\`configure' configures this package to adapt to many kinds of systems.
b0b70d84
AC
742
743Usage: $0 [OPTION]... [VAR=VALUE]...
744
745To assign environment variables (e.g., CC, CFLAGS...), specify them as
746VAR=VALUE. See below for descriptions of some of the useful variables.
747
748Defaults for the options are specified in brackets.
749
750Configuration:
751 -h, --help display this help and exit
752 --help=short display options specific to this package
753 --help=recursive display the short help of all the included packages
754 -V, --version display version information and exit
755 -q, --quiet, --silent do not print \`checking...' messages
756 --cache-file=FILE cache test results in FILE [disabled]
757 -C, --config-cache alias for \`--cache-file=config.cache'
758 -n, --no-create do not create output files
759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
760
761_ACEOF
762
763 cat <<_ACEOF
764Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
8ab705be 766 [$ac_default_prefix]
b0b70d84 767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8ab705be 768 [PREFIX]
b0b70d84
AC
769
770By default, \`make install' will install all the files in
771\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773for instance \`--prefix=\$HOME'.
774
775For better control, use the options below.
776
777Fine tuning of the installation directories:
778 --bindir=DIR user executables [EPREFIX/bin]
779 --sbindir=DIR system admin executables [EPREFIX/sbin]
780 --libexecdir=DIR program executables [EPREFIX/libexec]
781 --datadir=DIR read-only architecture-independent data [PREFIX/share]
782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
785 --libdir=DIR object code libraries [EPREFIX/lib]
786 --includedir=DIR C header files [PREFIX/include]
787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
788 --infodir=DIR info documentation [PREFIX/info]
789 --mandir=DIR man documentation [PREFIX/man]
790_ACEOF
791
792 cat <<\_ACEOF
793
794System types:
795 --build=BUILD configure for building on BUILD [guessed]
796 --host=HOST cross-compile to build programs to run on HOST [BUILD]
797 --target=TARGET configure for building compilers for TARGET [HOST]
798_ACEOF
799fi
800
801if test -n "$ac_init_help"; then
f0d3c336 802
b0b70d84
AC
803 cat <<\_ACEOF
804
805Optional Features:
806 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
807 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
808 --enable-maintainer-mode
809 enable make rules and dependencies not useful (and
810 sometimes confusing) to the casual installer
7193e639 811 --enable-multilib build many library versions (default)
b0b70d84
AC
812 --disable-shared don't provide a shared libgnat
813
9bd6112c
PB
814Optional Packages:
815 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
816 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
817 --with-build-libsubdir=DIR Directory where to find libraries for build system
818
47ad7893
PB
819Some influential environment variables:
820 CC C compiler command
821 CFLAGS C compiler flags
822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
823 nonstandard directory <lib dir>
824 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
825 headers in a nonstandard directory <include dir>
826
827Use these variables to override the choices made by `configure' or to help
828it to find libraries and programs with nonstandard names/locations.
829
b0b70d84
AC
830_ACEOF
831fi
832
833if test "$ac_init_help" = "recursive"; then
834 # If there are subdirs, report their specific --help.
835 ac_popdir=`pwd`
836 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
837 test -d $ac_dir || continue
838 ac_builddir=.
839
840if test "$ac_dir" != .; then
841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
842 # A "../" for each directory in $ac_dir_suffix.
843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
844else
845 ac_dir_suffix= ac_top_builddir=
846fi
847
848case $srcdir in
849 .) # No --srcdir option. We are building in place.
850 ac_srcdir=.
851 if test -z "$ac_top_builddir"; then
852 ac_top_srcdir=.
853 else
854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
855 fi ;;
856 [\\/]* | ?:[\\/]* ) # Absolute path.
857 ac_srcdir=$srcdir$ac_dir_suffix;
858 ac_top_srcdir=$srcdir ;;
859 *) # Relative path.
860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
862esac
8ab705be
KC
863
864# Do not use `cd foo && pwd` to compute absolute paths, because
865# the directories may not exist.
866case `pwd` in
867.) ac_abs_builddir="$ac_dir";;
868*)
869 case "$ac_dir" in
870 .) ac_abs_builddir=`pwd`;;
871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
873 esac;;
874esac
875case $ac_abs_builddir in
876.) ac_abs_top_builddir=${ac_top_builddir}.;;
877*)
878 case ${ac_top_builddir}. in
879 .) ac_abs_top_builddir=$ac_abs_builddir;;
880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
882 esac;;
883esac
884case $ac_abs_builddir in
885.) ac_abs_srcdir=$ac_srcdir;;
886*)
887 case $ac_srcdir in
888 .) ac_abs_srcdir=$ac_abs_builddir;;
889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
891 esac;;
892esac
893case $ac_abs_builddir in
894.) ac_abs_top_srcdir=$ac_top_srcdir;;
895*)
896 case $ac_top_srcdir in
897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
900 esac;;
901esac
b0b70d84
AC
902
903 cd $ac_dir
904 # Check for guested configure; otherwise get Cygnus style configure.
905 if test -f $ac_srcdir/configure.gnu; then
906 echo
907 $SHELL $ac_srcdir/configure.gnu --help=recursive
908 elif test -f $ac_srcdir/configure; then
909 echo
910 $SHELL $ac_srcdir/configure --help=recursive
911 elif test -f $ac_srcdir/configure.ac ||
8ab705be 912 test -f $ac_srcdir/configure.in; then
b0b70d84
AC
913 echo
914 $ac_configure --help
915 else
916 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917 fi
9bd6112c 918 cd $ac_popdir
b0b70d84
AC
919 done
920fi
921
922test -n "$ac_init_help" && exit 0
923if $ac_init_version; then
924 cat <<\_ACEOF
b0b70d84 925
8ab705be 926Copyright (C) 2003 Free Software Foundation, Inc.
b0b70d84
AC
927This configure script is free software; the Free Software Foundation
928gives unlimited permission to copy, distribute and modify it.
929_ACEOF
930 exit 0
931fi
932exec 5>config.log
933cat >&5 <<_ACEOF
934This file contains any messages produced by compilers while
935running configure, to aid debugging if configure makes a mistake.
936
f0d3c336 937It was created by $as_me, which was
8ab705be 938generated by GNU Autoconf 2.59. Invocation command line was
b0b70d84
AC
939
940 $ $0 $@
941
942_ACEOF
943{
944cat <<_ASUNAME
945## --------- ##
946## Platform. ##
947## --------- ##
948
949hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950uname -m = `(uname -m) 2>/dev/null || echo unknown`
951uname -r = `(uname -r) 2>/dev/null || echo unknown`
952uname -s = `(uname -s) 2>/dev/null || echo unknown`
953uname -v = `(uname -v) 2>/dev/null || echo unknown`
954
955/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
957
958/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
965
966_ASUNAME
967
968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969for as_dir in $PATH
970do
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974done
975
976} >&5
977
978cat >&5 <<_ACEOF
979
980
981## ----------- ##
982## Core tests. ##
983## ----------- ##
984
985_ACEOF
986
987
988# Keep a trace of the command line.
989# Strip out --no-create and --no-recursion so they do not pile up.
990# Strip out --silent because we don't want to record it for future runs.
991# Also quote any args containing shell meta-characters.
992# Make two passes to allow for proper duplicate-argument suppression.
993ac_configure_args=
994ac_configure_args0=
995ac_configure_args1=
996ac_sep=
997ac_must_keep_next=false
998for ac_pass in 1 2
999do
1000 for ac_arg
1001 do
1002 case $ac_arg in
1003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 continue ;;
1007 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1008 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009 esac
1010 case $ac_pass in
1011 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1012 2)
1013 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1014 if test $ac_must_keep_next = true; then
8ab705be 1015 ac_must_keep_next=false # Got value, back to normal.
b0b70d84 1016 else
8ab705be
KC
1017 case $ac_arg in
1018 *=* | --config-cache | -C | -disable-* | --disable-* \
1019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1021 | -with-* | --with-* | -without-* | --without-* | --x)
1022 case "$ac_configure_args0 " in
1023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1024 esac
1025 ;;
1026 -* ) ac_must_keep_next=true ;;
1027 esac
b0b70d84
AC
1028 fi
1029 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1030 # Get rid of the leading space.
1031 ac_sep=" "
1032 ;;
1033 esac
1034 done
1035done
1036$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1037$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1038
1039# When interrupted or exit'd, cleanup temporary files, and complete
1040# config.log. We remove comments because anyway the quotes in there
1041# would cause problems or look ugly.
1042# WARNING: Be sure not to use single quotes in there, as some shells,
1043# such as our DU 5.0 friend, will then `close' the trap.
1044trap 'exit_status=$?
1045 # Save into config.log some information that might help in debugging.
1046 {
1047 echo
1048
1049 cat <<\_ASBOX
1050## ---------------- ##
1051## Cache variables. ##
1052## ---------------- ##
1053_ASBOX
1054 echo
1055 # The following way of writing the cache mishandles newlines in values,
1056{
1057 (set) 2>&1 |
1058 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1059 *ac_space=\ *)
1060 sed -n \
8ab705be
KC
1061 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
b0b70d84
AC
1063 ;;
1064 *)
1065 sed -n \
8ab705be 1066 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b0b70d84
AC
1067 ;;
1068 esac;
1069}
1070 echo
1071
1072 cat <<\_ASBOX
1073## ----------------- ##
1074## Output variables. ##
1075## ----------------- ##
1076_ASBOX
1077 echo
1078 for ac_var in $ac_subst_vars
1079 do
1080 eval ac_val=$`echo $ac_var`
1081 echo "$ac_var='"'"'$ac_val'"'"'"
1082 done | sort
1083 echo
1084
1085 if test -n "$ac_subst_files"; then
1086 cat <<\_ASBOX
1087## ------------- ##
1088## Output files. ##
1089## ------------- ##
1090_ASBOX
1091 echo
1092 for ac_var in $ac_subst_files
1093 do
1094 eval ac_val=$`echo $ac_var`
8ab705be 1095 echo "$ac_var='"'"'$ac_val'"'"'"
b0b70d84
AC
1096 done | sort
1097 echo
1098 fi
1099
1100 if test -s confdefs.h; then
1101 cat <<\_ASBOX
1102## ----------- ##
1103## confdefs.h. ##
1104## ----------- ##
1105_ASBOX
1106 echo
1107 sed "/^$/d" confdefs.h | sort
1108 echo
1109 fi
1110 test "$ac_signal" != 0 &&
1111 echo "$as_me: caught signal $ac_signal"
1112 echo "$as_me: exit $exit_status"
1113 } >&5
8ab705be 1114 rm -f core *.core &&
b0b70d84
AC
1115 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1116 exit $exit_status
1117 ' 0
1118for ac_signal in 1 2 13 15; do
1119 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1120done
1121ac_signal=0
1122
1123# confdefs.h avoids OS command line length limits that DEFS can exceed.
1124rm -rf conftest* confdefs.h
1125# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1126echo >confdefs.h
1127
1128# Predefined preprocessor variables.
1129
1130cat >>confdefs.h <<_ACEOF
1131#define PACKAGE_NAME "$PACKAGE_NAME"
1132_ACEOF
1133
1134
1135cat >>confdefs.h <<_ACEOF
1136#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1137_ACEOF
1138
1139
1140cat >>confdefs.h <<_ACEOF
1141#define PACKAGE_VERSION "$PACKAGE_VERSION"
1142_ACEOF
1143
1144
1145cat >>confdefs.h <<_ACEOF
1146#define PACKAGE_STRING "$PACKAGE_STRING"
1147_ACEOF
1148
1149
1150cat >>confdefs.h <<_ACEOF
1151#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1152_ACEOF
1153
1154
1155# Let the site file select an alternate cache file if it wants to.
1156# Prefer explicitly selected file to automatically selected ones.
1157if test -z "$CONFIG_SITE"; then
1158 if test "x$prefix" != xNONE; then
1159 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1160 else
1161 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1162 fi
1163fi
1164for ac_site_file in $CONFIG_SITE; do
1165 if test -r "$ac_site_file"; then
1166 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1167echo "$as_me: loading site script $ac_site_file" >&6;}
1168 sed 's/^/| /' "$ac_site_file" >&5
1169 . "$ac_site_file"
1170 fi
1171done
1172
1173if test -r "$cache_file"; then
1174 # Some versions of bash will fail to source /dev/null (special
1175 # files actually), so we avoid doing that.
1176 if test -f "$cache_file"; then
1177 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1178echo "$as_me: loading cache $cache_file" >&6;}
1179 case $cache_file in
1180 [\\/]* | ?:[\\/]* ) . $cache_file;;
1181 *) . ./$cache_file;;
1182 esac
1183 fi
1184else
1185 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1186echo "$as_me: creating cache $cache_file" >&6;}
1187 >$cache_file
1188fi
1189
1190# Check that the precious variables saved in the cache have kept the same
1191# value.
1192ac_cache_corrupted=false
1193for ac_var in `(set) 2>&1 |
8ab705be 1194 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
b0b70d84
AC
1195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1196 eval ac_new_set=\$ac_env_${ac_var}_set
1197 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1198 eval ac_new_val="\$ac_env_${ac_var}_value"
1199 case $ac_old_set,$ac_new_set in
1200 set,)
1201 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1202echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1203 ac_cache_corrupted=: ;;
1204 ,set)
1205 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1206echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1207 ac_cache_corrupted=: ;;
1208 ,);;
1209 *)
1210 if test "x$ac_old_val" != "x$ac_new_val"; then
18c04407
RW
1211 # differences in whitespace do not lead to failure.
1212 ac_old_val_w=`echo x $ac_old_val`
1213 ac_new_val_w=`echo x $ac_new_val`
1214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1215 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
b0b70d84 1216echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18c04407
RW
1217 ac_cache_corrupted=:
1218 else
1219 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1220echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1221 eval $ac_var=\$ac_old_val
1222 fi
1223 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1224echo "$as_me: former value: \`$ac_old_val'" >&2;}
1225 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1226echo "$as_me: current value: \`$ac_new_val'" >&2;}
b0b70d84
AC
1227 fi;;
1228 esac
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1231 case $ac_new_val in
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1235 esac
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1239 esac
1240 fi
1241done
1242if $ac_cache_corrupted; then
18c04407
RW
1243 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1244echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0b70d84
AC
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1250fi
1251
1252ac_ext=c
1253ac_cpp='$CPP $CPPFLAGS'
1254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
b0b70d84
AC
1269
1270
1271
1272
1273
1274
1275
215cae7b 1276
b0b70d84 1277
80dab182 1278
80dab182 1279
b0b70d84 1280
b0b70d84
AC
1281
1282
9bd6112c 1283# Determine the host, build, and target systems
b0b70d84
AC
1284ac_aux_dir=
1285for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1286 if test -f $ac_dir/install-sh; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/install-sh -c"
1289 break
1290 elif test -f $ac_dir/install.sh; then
1291 ac_aux_dir=$ac_dir
1292 ac_install_sh="$ac_aux_dir/install.sh -c"
1293 break
1294 elif test -f $ac_dir/shtool; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/shtool install -c"
1297 break
1298 fi
1299done
1300if test -z "$ac_aux_dir"; then
1301 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1302echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1303 { (exit 1); exit 1; }; }
1304fi
1305ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1306ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1307ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1308
1309# Make sure we can run config.sub.
1310$ac_config_sub sun4 >/dev/null 2>&1 ||
1311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1314
1315echo "$as_me:$LINENO: checking build system type" >&5
1316echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319else
1320 ac_cv_build_alias=$build_alias
1321test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1331
1332fi
1333echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334echo "${ECHO_T}$ac_cv_build" >&6
1335build=$ac_cv_build
1336build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339
1340
1341echo "$as_me:$LINENO: checking host system type" >&5
1342echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1345else
1346 ac_cv_host_alias=$host_alias
1347test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354fi
1355echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356echo "${ECHO_T}$ac_cv_host" >&6
1357host=$ac_cv_host
1358host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363echo "$as_me:$LINENO: checking target system type" >&5
1364echo $ECHO_N "checking target system type... $ECHO_C" >&6
1365if test "${ac_cv_target+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367else
1368 ac_cv_target_alias=$target_alias
1369test "x$ac_cv_target_alias" = "x" &&
1370 ac_cv_target_alias=$ac_cv_host_alias
1371ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1373echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1375
1376fi
1377echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1378echo "${ECHO_T}$ac_cv_target" >&6
1379target=$ac_cv_target
1380target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383
1384
1385# The aliases save the names the user supplied, while $host etc.
1386# will get canonicalized.
1387test -n "$target_alias" &&
1388 test "$program_prefix$program_suffix$program_transform_name" = \
1389 NONENONEs,x,x, &&
1390 program_prefix=${target_alias}-
05682af8 1391target_alias=${target_alias-$host_alias}
b0b70d84 1392
9bd6112c
PB
1393# Determine the noncanonical target name, for directory use.
1394 case ${build_alias} in
1395 "") build_noncanonical=${build} ;;
1396 *) build_noncanonical=${build_alias} ;;
1397esac
1398
1399 case ${host_alias} in
1400 "") host_noncanonical=${build_noncanonical} ;;
1401 *) host_noncanonical=${host_alias} ;;
1402esac
1403
1404 case ${target_alias} in
1405 "") target_noncanonical=${host_noncanonical} ;;
1406 *) target_noncanonical=${target_alias} ;;
1407esac
1408
1409
1410
1411
1412# Determine the target- and build-specific subdirectories
1413
1414# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1415# have matching libraries, they should use host libraries: Makefile.tpl
1416# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1417# However, they still use the build modules, because the corresponding
1418# host modules (e.g. bison) are only built for the host when bootstrap
1419# finishes. So:
1420# - build_subdir is where we find build modules, and never changes.
1421# - build_libsubdir is where we find build libraries, and can be overridden.
1422
1423# Prefix 'build-' so this never conflicts with target_subdir.
1424build_subdir="build-${build_noncanonical}"
1425
1426# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1427if test "${with_build_libsubdir+set}" = set; then
1428 withval="$with_build_libsubdir"
1429 build_libsubdir="$withval"
1430else
1431 build_libsubdir="$build_subdir"
1432fi;
1433# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1434if ( test $srcdir = . && test -d gcc ) \
1435 || test -d $srcdir/../host-${host_noncanonical}; then
1436 host_subdir="host-${host_noncanonical}"
1437else
1438 host_subdir=.
1439fi
1440# No prefix.
1441target_subdir=${target_noncanonical}
1442
1443
1444# Command-line options.
1445# Very limited version of AC_MAINTAINER_MODE.
1446# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1447if test "${enable_maintainer_mode+set}" = set; then
1448 enableval="$enable_maintainer_mode"
1449 case ${enable_maintainer_mode} in
1450 yes) MAINT='' ;;
1451 no) MAINT='#' ;;
1452 *) { { echo "$as_me:$LINENO: error: --enable-maintainer-mode must be yes or no" >&5
1453echo "$as_me: error: --enable-maintainer-mode must be yes or no" >&2;}
1454 { (exit 1); exit 1; }; } ;;
1455 esac
1456 maintainer_mode=${enableval}
1457else
1458 MAINT='#'
1459fi;
1460
7193e639
LG
1461# Default to --enable-multilib
1462# Check whether --enable-multilib or --disable-multilib was given.
1463if test "${enable_multilib+set}" = set; then
1464 enableval="$enable_multilib"
1465 case "$enableval" in
1466 yes) multilib=yes ;;
1467 no) multilib=no ;;
1468 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1469echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1470 { (exit 1); exit 1; }; } ;;
1471 esac
9bd6112c 1472else
7193e639 1473 multilib=yes
9bd6112c
PB
1474fi;
1475
7193e639
LG
1476# We may get other options which we leave undocumented:
1477# --with-target-subdir, --with-multisrctop, --with-multisubdir
1478# See config-ml.in if you want the gory details.
9bd6112c 1479
7193e639
LG
1480if test "$srcdir" = "."; then
1481 if test "$with_target_subdir" != "."; then
1482 multi_basedir="$srcdir/$with_multisrctop../.."
1483 else
1484 multi_basedir="$srcdir/$with_multisrctop.."
1485 fi
b0b70d84 1486else
7193e639 1487 multi_basedir="$srcdir/.."
80dab182
NN
1488fi
1489
1490
05682af8
EB
1491# Even if the default multilib is not a cross compilation,
1492# it may be that some of the other multilibs are.
1493if test $cross_compiling = no && test $multilib = yes \
1494 && test "x${with_multisubdir}" != x ; then
1495 cross_compiling=maybe
1496fi
1497
7193e639
LG
1498 ac_config_commands="$ac_config_commands default-1"
1499
1500# Calculate toolexeclibdir
1501# Also toolexecdir, though it's only used in toolexeclibdir
1502case ${enable_version_specific_runtime_libs} in
1503 yes)
1504 # Need the gcc compiler version to know where to install libraries
1505 # and header files if --enable-version-specific-runtime-libs option
1506 # is selected.
1507 toolexecdir='$(libdir)/gcc/$(target_alias)'
1508 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1509 ;;
1510 no)
1511 if test -n "$with_cross_host" &&
1512 test x"$with_cross_host" != x"no"; then
1513 # Install a library built with a cross compiler in tooldir, not libdir.
1514 toolexecdir='$(exec_prefix)/$(target_alias)'
1515 toolexeclibdir='$(toolexecdir)/lib'
1516 else
1517 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1518 toolexeclibdir='$(libdir)'
1519 fi
1520 multi_os_directory=`$CC -print-multi-os-directory`
1521 case $multi_os_directory in
1522 .) ;; # Avoid trailing /.
1523 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1524 esac
1525 ;;
1526esac
1527
1528
1529#TODO: toolexeclibdir is currently disregarded
1530
1531# Check the compiler.
1532# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1533# We must force CC to /not/ be precious variables; otherwise
1534# the wrong, non-multilib-adjusted value will be used in multilibs.
1535# As a side effect, we have to subst CFLAGS ourselves.
1536
80dab182
NN
1537
1538
47ad7893
PB
1539ac_ext=c
1540ac_cpp='$CPP $CPPFLAGS'
1541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1546set dummy ${ac_tool_prefix}gcc; ac_word=$2
1547echo "$as_me:$LINENO: checking for $ac_word" >&5
1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1554else
1555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556for as_dir in $PATH
1557do
1558 IFS=$as_save_IFS
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 break 2
1565 fi
1566done
1567done
1568
1569fi
1570fi
1571CC=$ac_cv_prog_CC
1572if test -n "$CC"; then
1573 echo "$as_me:$LINENO: result: $CC" >&5
1574echo "${ECHO_T}$CC" >&6
1575else
1576 echo "$as_me:$LINENO: result: no" >&5
1577echo "${ECHO_T}no" >&6
1578fi
1579
1580fi
1581if test -z "$ac_cv_prog_CC"; then
1582 ac_ct_CC=$CC
1583 # Extract the first word of "gcc", so it can be a program name with args.
1584set dummy gcc; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="gcc"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1603 fi
1604done
1605done
1606
1607fi
1608fi
1609ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612echo "${ECHO_T}$ac_ct_CC" >&6
1613else
1614 echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618 CC=$ac_ct_CC
1619else
1620 CC="$ac_cv_prog_CC"
1621fi
1622
1623if test -z "$CC"; then
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1626set dummy ${ac_tool_prefix}cc; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634else
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646done
1647done
1648
1649fi
1650fi
1651CC=$ac_cv_prog_CC
1652if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654echo "${ECHO_T}$CC" >&6
1655else
1656 echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
1658fi
1659
1660fi
1661if test -z "$ac_cv_prog_CC"; then
1662 ac_ct_CC=$CC
1663 # Extract the first word of "cc", so it can be a program name with args.
1664set dummy cc; ac_word=$2
1665echo "$as_me:$LINENO: checking for $ac_word" >&5
1666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672else
1673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674for as_dir in $PATH
1675do
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_ac_ct_CC="cc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1683 fi
1684done
1685done
1686
1687fi
1688fi
1689ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692echo "${ECHO_T}$ac_ct_CC" >&6
1693else
1694 echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698 CC=$ac_ct_CC
1699else
1700 CC="$ac_cv_prog_CC"
1701fi
1702
1703fi
1704if test -z "$CC"; then
1705 # Extract the first word of "cc", so it can be a program name with args.
1706set dummy cc; ac_word=$2
1707echo "$as_me:$LINENO: checking for $ac_word" >&5
1708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714else
1715 ac_prog_rejected=no
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1724 ac_prog_rejected=yes
1725 continue
1726 fi
1727 ac_cv_prog_CC="cc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1730 fi
1731done
1732done
1733
1734if test $ac_prog_rejected = yes; then
1735 # We found a bogon in the path, so make sure we never use it.
1736 set dummy $ac_cv_prog_CC
1737 shift
1738 if test $# != 0; then
1739 # We chose a different compiler from the bogus one.
1740 # However, it has the same basename, so the bogon will be chosen
1741 # first if we set CC to just the basename; use the full file name.
1742 shift
1743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1744 fi
1745fi
1746fi
1747fi
1748CC=$ac_cv_prog_CC
1749if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751echo "${ECHO_T}$CC" >&6
1752else
1753 echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757fi
1758if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1760 for ac_prog in cl
1761 do
1762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1764echo "$as_me:$LINENO: checking for $ac_word" >&5
1765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1771else
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1782 fi
1783done
1784done
1785
1786fi
1787fi
1788CC=$ac_cv_prog_CC
1789if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791echo "${ECHO_T}$CC" >&6
1792else
1793 echo "$as_me:$LINENO: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795fi
1796
1797 test -n "$CC" && break
1798 done
1799fi
1800if test -z "$CC"; then
1801 ac_ct_CC=$CC
1802 for ac_prog in cl
1803do
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805set dummy $ac_prog; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1824 fi
1825done
1826done
1827
1828fi
1829fi
1830ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833echo "${ECHO_T}$ac_ct_CC" >&6
1834else
1835 echo "$as_me:$LINENO: result: no" >&5
1836echo "${ECHO_T}no" >&6
1837fi
1838
1839 test -n "$ac_ct_CC" && break
1840done
1841
1842 CC=$ac_ct_CC
1843fi
1844
1845fi
1846
1847
1848test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1849echo "$as_me: error: in \`$ac_pwd':" >&2;}
1850{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851See \`config.log' for more details." >&5
1852echo "$as_me: error: no acceptable C compiler found in \$PATH
1853See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }; }
1855
1856# Provide some information about the compiler.
1857echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859ac_compiler=`set X $ac_compile; echo $2`
1860{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1862 ac_status=$?
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1875
1876cat >conftest.$ac_ext <<_ACEOF
1877/* confdefs.h. */
1878_ACEOF
1879cat confdefs.h >>conftest.$ac_ext
1880cat >>conftest.$ac_ext <<_ACEOF
1881/* end confdefs.h. */
1882
1883int
1884main ()
1885{
1886
1887 ;
1888 return 0;
1889}
1890_ACEOF
1891ac_clean_files_save=$ac_clean_files
1892ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893# Try to create an executable without -o first, disregard a.out.
1894# It will help us diagnose broken compilers, and finding out an intuition
1895# of exeext.
1896echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906# resort.
1907
1908# Be careful to initialize this variable, since it used to be cached.
1909# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910ac_cv_exeext=
1911# b.out is created by i960 compilers.
1912for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913do
1914 test -f "$ac_file" || continue
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917 ;;
1918 conftest.$ac_ext )
1919 # This is the source file.
1920 ;;
1921 [ab].out )
1922 # We found the default executable, but exeext='' is most
1923 # certainly right.
1924 break;;
1925 *.* )
1926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool,
1928 # but it would be cool to find out if it's true. Does anybody
1929 # maintain Libtool? --akim.
1930 export ac_cv_exeext
1931 break;;
1932 * )
1933 break;;
1934 esac
1935done
1936else
1937 echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1943See \`config.log' for more details." >&5
1944echo "$as_me: error: C compiler cannot create executables
1945See \`config.log' for more details." >&2;}
1946 { (exit 77); exit 77; }; }; }
1947fi
1948
1949ac_exeext=$ac_cv_exeext
1950echo "$as_me:$LINENO: result: $ac_file" >&5
1951echo "${ECHO_T}$ac_file" >&6
1952
1953# Check the compiler produces executables we can run. If not, either
1954# the compiler is broken, or we cross compile.
1955echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1956echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1957# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1958# If not cross compiling, check that we can run a simple program.
1959if test "$cross_compiling" != yes; then
1960 if { ac_try='./$ac_file'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 (eval $ac_try) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1966 cross_compiling=no
1967 else
1968 if test "$cross_compiling" = maybe; then
1969 cross_compiling=yes
1970 else
1971 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1974If you meant to cross compile, use \`--host'.
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: cannot run C compiled programs.
1977If you meant to cross compile, use \`--host'.
1978See \`config.log' for more details." >&2;}
1979 { (exit 1); exit 1; }; }; }
1980 fi
1981 fi
1982fi
1983echo "$as_me:$LINENO: result: yes" >&5
1984echo "${ECHO_T}yes" >&6
1985
1986rm -f a.out a.exe conftest$ac_cv_exeext b.out
1987ac_clean_files=$ac_clean_files_save
1988# Check the compiler produces executables we can run. If not, either
1989# the compiler is broken, or we cross compile.
1990echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1991echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1992echo "$as_me:$LINENO: result: $cross_compiling" >&5
1993echo "${ECHO_T}$cross_compiling" >&6
1994
1995echo "$as_me:$LINENO: checking for suffix of executables" >&5
1996echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1998 (eval $ac_link) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2003# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2004# work properly (i.e., refer to `conftest.exe'), while it won't with
2005# `rm'.
2006for ac_file in conftest.exe conftest conftest.*; do
2007 test -f "$ac_file" || continue
2008 case $ac_file in
2009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2010 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2011 export ac_cv_exeext
2012 break;;
2013 * ) break;;
2014 esac
2015done
2016else
7193e639
LG
2017 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2018echo "$as_me: error: in \`$ac_pwd':" >&2;}
2019{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2020See \`config.log' for more details." >&5
2021echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2022See \`config.log' for more details." >&2;}
2023 { (exit 1); exit 1; }; }; }
2024fi
2025
2026rm -f conftest$ac_cv_exeext
2027echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2028echo "${ECHO_T}$ac_cv_exeext" >&6
2029
2030rm -f conftest.$ac_ext
2031EXEEXT=$ac_cv_exeext
2032ac_exeext=$EXEEXT
2033echo "$as_me:$LINENO: checking for suffix of object files" >&5
2034echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2035if test "${ac_cv_objext+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037else
2038 cat >conftest.$ac_ext <<_ACEOF
2039/* confdefs.h. */
2040_ACEOF
2041cat confdefs.h >>conftest.$ac_ext
2042cat >>conftest.$ac_ext <<_ACEOF
2043/* end confdefs.h. */
2044
2045int
2046main ()
2047{
2048
2049 ;
2050 return 0;
2051}
2052_ACEOF
2053rm -f conftest.o conftest.obj
2054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2060 case $ac_file in
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2063 break;;
2064 esac
2065done
2066else
2067 echo "$as_me: failed program was:" >&5
2068sed 's/^/| /' conftest.$ac_ext >&5
2069
2070{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2071echo "$as_me: error: in \`$ac_pwd':" >&2;}
2072{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: cannot compute suffix of object files: cannot compile
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }; }
2077fi
2078
2079rm -f conftest.$ac_cv_objext conftest.$ac_ext
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2082echo "${ECHO_T}$ac_cv_objext" >&6
2083OBJEXT=$ac_cv_objext
2084ac_objext=$OBJEXT
2085echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2086echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2087if test "${ac_cv_c_compiler_gnu+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090 cat >conftest.$ac_ext <<_ACEOF
2091/* confdefs.h. */
2092_ACEOF
2093cat confdefs.h >>conftest.$ac_ext
2094cat >>conftest.$ac_ext <<_ACEOF
2095/* end confdefs.h. */
2096
2097int
2098main ()
2099{
2100#ifndef __GNUC__
2101 choke me
2102#endif
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108rm -f conftest.$ac_objext
2109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>conftest.er1
2111 ac_status=$?
2112 grep -v '^ *+' conftest.er1 >conftest.err
2113 rm -f conftest.er1
2114 cat conftest.err >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -z "$ac_c_werror_flag"
2118 || test ! -s conftest.err'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 ac_compiler_gnu=yes
2131else
2132 echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135ac_compiler_gnu=no
2136fi
2137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2138ac_cv_c_compiler_gnu=$ac_compiler_gnu
2139
2140fi
2141echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2142echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2143GCC=`test $ac_compiler_gnu = yes && echo yes`
2144ac_test_CFLAGS=${CFLAGS+set}
2145ac_save_CFLAGS=$CFLAGS
2146CFLAGS="-g"
2147echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2148echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2149if test "${ac_cv_prog_cc_g+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h. */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h. */
2158
2159int
2160main ()
2161{
2162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_g=yes
2190else
2191 echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194ac_cv_prog_cc_g=no
2195fi
2196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197fi
2198echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2200if test "$ac_test_CFLAGS" = set; then
2201 CFLAGS=$ac_save_CFLAGS
2202elif test $ac_cv_prog_cc_g = yes; then
2203 if test "$GCC" = yes; then
2204 CFLAGS="-g -O2"
2205 else
2206 CFLAGS="-g"
2207 fi
2208else
2209 if test "$GCC" = yes; then
2210 CFLAGS="-O2"
2211 else
2212 CFLAGS=
2213 fi
2214fi
2215echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2216echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2217if test "${ac_cv_prog_cc_stdc+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220 ac_cv_prog_cc_stdc=no
2221ac_save_CC=$CC
2222cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228#include <stdarg.h>
2229#include <stdio.h>
2230#include <sys/types.h>
2231#include <sys/stat.h>
2232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2233struct buf { int x; };
2234FILE * (*rcsopen) (struct buf *, struct stat *, int);
2235static char *e (p, i)
2236 char **p;
2237 int i;
2238{
2239 return p[i];
2240}
2241static char *f (char * (*g) (char **, int), char **p, ...)
2242{
2243 char *s;
2244 va_list v;
2245 va_start (v,p);
2246 s = g (p, va_arg (v,int));
2247 va_end (v);
2248 return s;
2249}
2250
2251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2252 function prototypes and stuff, but not '\xHH' hex character constants.
2253 These don't provoke an error unfortunately, instead are silently treated
2254 as 'x'. The following induces an error, until -std1 is added to get
2255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2256 array size at least. It's necessary to write '\x00'==0 to get something
2257 that's true only with -std1. */
2258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2259
2260int test (int i, double x);
2261struct s1 {int (*f) (int a);};
2262struct s2 {int (*f) (double a);};
2263int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2264int argc;
2265char **argv;
2266int
2267main ()
2268{
2269return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274# Don't try gcc -ansi; that turns off useful extensions and
2275# breaks some systems' header files.
2276# AIX -qlanglvl=ansi
2277# Ultrix and OSF/1 -std1
2278# HP-UX 10.20 and later -Ae
2279# HP-UX older versions -Aa -D_HPUX_SOURCE
2280# SVR4 -Xc -D__EXTENSIONS__
2281for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2282do
2283 CC="$ac_save_CC $ac_arg"
2284 rm -f conftest.$ac_objext
2285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>conftest.er1
2287 ac_status=$?
2288 grep -v '^ *+' conftest.er1 >conftest.err
2289 rm -f conftest.er1
2290 cat conftest.err >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -z "$ac_c_werror_flag"
2294 || test ! -s conftest.err'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 ac_cv_prog_cc_stdc=$ac_arg
2307break
2308else
2309 echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312fi
2313rm -f conftest.err conftest.$ac_objext
2314done
2315rm -f conftest.$ac_ext conftest.$ac_objext
2316CC=$ac_save_CC
2317
2318fi
2319
2320case "x$ac_cv_prog_cc_stdc" in
2321 x|xno)
2322 echo "$as_me:$LINENO: result: none needed" >&5
2323echo "${ECHO_T}none needed" >&6 ;;
2324 *)
2325 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2326echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2327 CC="$CC $ac_cv_prog_cc_stdc" ;;
2328esac
2329
2330# Some people use a C++ compiler to compile C. Since we use `exit',
2331# in C++ we need to declare it. In case someone uses the same compiler
2332# for both compiling C and C++ we need to have the C++ compiler decide
2333# the declaration of exit, since it's the most demanding environment.
2334cat >conftest.$ac_ext <<_ACEOF
2335#ifndef __cplusplus
2336 choke me
2337#endif
2338_ACEOF
2339rm -f conftest.$ac_objext
2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 for ac_declaration in \
2362 '' \
2363 'extern "C" void std::exit (int) throw (); using std::exit;' \
2364 'extern "C" void std::exit (int); using std::exit;' \
2365 'extern "C" void exit (int) throw ();' \
2366 'extern "C" void exit (int);' \
2367 'void exit (int);'
2368do
2369 cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
2375$ac_declaration
2376#include <stdlib.h>
2377int
2378main ()
2379{
2380exit (42);
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 :
2408else
2409 echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412continue
2413fi
2414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 cat >conftest.$ac_ext <<_ACEOF
2416/* confdefs.h. */
2417_ACEOF
2418cat confdefs.h >>conftest.$ac_ext
2419cat >>conftest.$ac_ext <<_ACEOF
2420/* end confdefs.h. */
2421$ac_declaration
2422int
2423main ()
2424{
2425exit (42);
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2433 ac_status=$?
2434 grep -v '^ *+' conftest.er1 >conftest.err
2435 rm -f conftest.er1
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 break
2453else
2454 echo "$as_me: failed program was:" >&5
2455sed 's/^/| /' conftest.$ac_ext >&5
2456
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459done
2460rm -f conftest*
2461if test -n "$ac_declaration"; then
2462 echo '#ifdef __cplusplus' >>confdefs.h
2463 echo $ac_declaration >>confdefs.h
2464 echo '#endif' >>confdefs.h
2465fi
2466
2467else
2468 echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473ac_ext=c
2474ac_cpp='$CPP $CPPFLAGS'
2475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478
2479
2480
2481
2482
2483# Check whether --enable-shared or --disable-shared was given.
2484if test "${enable_shared+set}" = set; then
2485 enableval="$enable_shared"
2486
2487case $enable_shared in
2488 yes | no) ;;
2489 *)
2490 enable_shared=no
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2492 for pkg in $enableval; do
2493 case $pkg in
2494 ada | libada)
2495 enable_shared=yes ;;
2496 esac
2497 done
2498 IFS="$ac_save_ifs"
2499 ;;
2500esac
2501
2502else
2503 enable_shared=yes
2504fi;
2505
2506
2507# Need to pass this down for now :-P
2508echo "$as_me:$LINENO: checking whether ln -s works" >&5
2509echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2510LN_S=$as_ln_s
2511if test "$LN_S" = "ln -s"; then
2512 echo "$as_me:$LINENO: result: yes" >&5
2513echo "${ECHO_T}yes" >&6
2514else
2515 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2516echo "${ECHO_T}no, using $LN_S" >&6
2517fi
2518
2519
2520# Determine what to build for 'gnatlib'
2521if test $build = $target \
2522 && test ${enable_shared} = yes ; then
2523 # Note that build=target is almost certainly the wrong test; FIXME
2524 default_gnatlib_target="gnatlib-shared"
2525else
2526 default_gnatlib_target="gnatlib-plain"
2527fi
2528
2529
2530ac_ext=c
2531ac_cpp='$CPP $CPPFLAGS'
2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538echo "$as_me:$LINENO: checking for $ac_word" >&5
2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557done
2558done
2559
2560fi
2561fi
2562CC=$ac_cv_prog_CC
2563if test -n "$CC"; then
2564 echo "$as_me:$LINENO: result: $CC" >&5
2565echo "${ECHO_T}$CC" >&6
2566else
2567 echo "$as_me:$LINENO: result: no" >&5
2568echo "${ECHO_T}no" >&6
2569fi
2570
2571fi
2572if test -z "$ac_cv_prog_CC"; then
2573 ac_ct_CC=$CC
2574 # Extract the first word of "gcc", so it can be a program name with args.
2575set dummy gcc; ac_word=$2
2576echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_CC="gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
2597
2598fi
2599fi
2600ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601if test -n "$ac_ct_CC"; then
2602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603echo "${ECHO_T}$ac_ct_CC" >&6
2604else
2605 echo "$as_me:$LINENO: result: no" >&5
2606echo "${ECHO_T}no" >&6
2607fi
2608
2609 CC=$ac_ct_CC
2610else
2611 CC="$ac_cv_prog_CC"
2612fi
2613
2614if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617set dummy ${ac_tool_prefix}cc; ac_word=$2
2618echo "$as_me:$LINENO: checking for $ac_word" >&5
2619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620if test "${ac_cv_prog_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_CC="${ac_tool_prefix}cc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637done
2638done
2639
2640fi
2641fi
2642CC=$ac_cv_prog_CC
2643if test -n "$CC"; then
2644 echo "$as_me:$LINENO: result: $CC" >&5
2645echo "${ECHO_T}$CC" >&6
2646else
2647 echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6
2649fi
2650
2651fi
2652if test -z "$ac_cv_prog_CC"; then
2653 ac_ct_CC=$CC
2654 # Extract the first word of "cc", so it can be a program name with args.
2655set dummy cc; ac_word=$2
2656echo "$as_me:$LINENO: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_ac_ct_CC="cc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675done
2676done
2677
2678fi
2679fi
2680ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681if test -n "$ac_ct_CC"; then
2682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683echo "${ECHO_T}$ac_ct_CC" >&6
2684else
2685 echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6
2687fi
2688
2689 CC=$ac_ct_CC
2690else
2691 CC="$ac_cv_prog_CC"
2692fi
2693
2694fi
2695if test -z "$CC"; then
2696 # Extract the first word of "cc", so it can be a program name with args.
2697set dummy cc; ac_word=$2
2698echo "$as_me:$LINENO: checking for $ac_word" >&5
2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700if test "${ac_cv_prog_CC+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705else
2706 ac_prog_rejected=no
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2715 ac_prog_rejected=yes
2716 continue
2717 fi
2718 ac_cv_prog_CC="cc"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722done
2723done
2724
2725if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2728 shift
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2733 shift
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 fi
2736fi
2737fi
2738fi
2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
2741 echo "$as_me:$LINENO: result: $CC" >&5
2742echo "${ECHO_T}$CC" >&6
2743else
2744 echo "$as_me:$LINENO: result: no" >&5
2745echo "${ECHO_T}no" >&6
2746fi
2747
2748fi
2749if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
2751 for ac_prog in cl
2752 do
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755echo "$as_me:$LINENO: checking for $ac_word" >&5
2756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757if test "${ac_cv_prog_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775done
2776
2777fi
2778fi
2779CC=$ac_cv_prog_CC
2780if test -n "$CC"; then
2781 echo "$as_me:$LINENO: result: $CC" >&5
2782echo "${ECHO_T}$CC" >&6
2783else
2784 echo "$as_me:$LINENO: result: no" >&5
2785echo "${ECHO_T}no" >&6
47ad7893
PB
2786fi
2787
7193e639
LG
2788 test -n "$CC" && break
2789 done
2790fi
2791if test -z "$CC"; then
2792 ac_ct_CC=$CC
2793 for ac_prog in cl
2794do
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796set dummy $ac_prog; ac_word=$2
2797echo "$as_me:$LINENO: checking for $ac_word" >&5
2798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
47ad7893
PB
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801else
7193e639
LG
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_ac_ct_CC="$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2815 fi
2816done
2817done
47ad7893 2818
7193e639
LG
2819fi
2820fi
2821ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822if test -n "$ac_ct_CC"; then
2823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824echo "${ECHO_T}$ac_ct_CC" >&6
2825else
2826 echo "$as_me:$LINENO: result: no" >&5
2827echo "${ECHO_T}no" >&6
2828fi
47ad7893 2829
7193e639 2830 test -n "$ac_ct_CC" && break
47ad7893 2831done
47ad7893 2832
7193e639
LG
2833 CC=$ac_ct_CC
2834fi
2835
2836fi
2837
2838
2839test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
47ad7893 2840echo "$as_me: error: in \`$ac_pwd':" >&2;}
7193e639 2841{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
47ad7893 2842See \`config.log' for more details." >&5
7193e639 2843echo "$as_me: error: no acceptable C compiler found in \$PATH
47ad7893
PB
2844See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }; }
47ad7893 2846
7193e639
LG
2847# Provide some information about the compiler.
2848echo "$as_me:$LINENO:" \
2849 "checking for C compiler version" >&5
2850ac_compiler=`set X $ac_compile; echo $2`
2851{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2852 (eval $ac_compiler --version </dev/null >&5) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2857 (eval $ac_compiler -v </dev/null >&5) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2862 (eval $ac_compiler -V </dev/null >&5) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2866
47ad7893
PB
2867echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2868echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2869if test "${ac_cv_c_compiler_gnu+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872 cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
2878
2879int
2880main ()
2881{
2882#ifndef __GNUC__
2883 choke me
2884#endif
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
2891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_compiler_gnu=yes
2913else
2914 echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917ac_compiler_gnu=no
2918fi
2919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920ac_cv_c_compiler_gnu=$ac_compiler_gnu
2921
2922fi
2923echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2924echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2925GCC=`test $ac_compiler_gnu = yes && echo yes`
2926ac_test_CFLAGS=${CFLAGS+set}
2927ac_save_CFLAGS=$CFLAGS
2928CFLAGS="-g"
2929echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2930echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2931if test "${ac_cv_prog_cc_g+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933else
2934 cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
2940
2941int
2942main ()
2943{
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_prog_cc_g=yes
2972else
2973 echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976ac_cv_prog_cc_g=no
2977fi
2978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979fi
2980echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2982if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996fi
2997echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2998echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2999if test "${ac_cv_prog_cc_stdc+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002 ac_cv_prog_cc_stdc=no
3003ac_save_CC=$CC
3004cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h. */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h. */
3010#include <stdarg.h>
3011#include <stdio.h>
3012#include <sys/types.h>
3013#include <sys/stat.h>
3014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015struct buf { int x; };
3016FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017static char *e (p, i)
3018 char **p;
3019 int i;
3020{
3021 return p[i];
3022}
3023static char *f (char * (*g) (char **, int), char **p, ...)
3024{
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3031}
3032
3033/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
3036 as 'x'. The following induces an error, until -std1 is added to get
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
3039 that's true only with -std1. */
3040int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
3042int test (int i, double x);
3043struct s1 {int (*f) (int a);};
3044struct s2 {int (*f) (double a);};
3045int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3046int argc;
3047char **argv;
3048int
3049main ()
3050{
3051return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3052 ;
3053 return 0;
3054}
3055_ACEOF
3056# Don't try gcc -ansi; that turns off useful extensions and
3057# breaks some systems' header files.
3058# AIX -qlanglvl=ansi
3059# Ultrix and OSF/1 -std1
3060# HP-UX 10.20 and later -Ae
3061# HP-UX older versions -Aa -D_HPUX_SOURCE
3062# SVR4 -Xc -D__EXTENSIONS__
3063for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3064do
3065 CC="$ac_save_CC $ac_arg"
3066 rm -f conftest.$ac_objext
3067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cc_stdc=$ac_arg
3089break
3090else
3091 echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094fi
3095rm -f conftest.err conftest.$ac_objext
3096done
3097rm -f conftest.$ac_ext conftest.$ac_objext
3098CC=$ac_save_CC
3099
3100fi
3101
3102case "x$ac_cv_prog_cc_stdc" in
3103 x|xno)
3104 echo "$as_me:$LINENO: result: none needed" >&5
3105echo "${ECHO_T}none needed" >&6 ;;
3106 *)
3107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3108echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3109 CC="$CC $ac_cv_prog_cc_stdc" ;;
3110esac
3111
3112# Some people use a C++ compiler to compile C. Since we use `exit',
3113# in C++ we need to declare it. In case someone uses the same compiler
3114# for both compiling C and C++ we need to have the C++ compiler decide
3115# the declaration of exit, since it's the most demanding environment.
3116cat >conftest.$ac_ext <<_ACEOF
3117#ifndef __cplusplus
3118 choke me
3119#endif
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag"
3131 || test ! -s conftest.err'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 for ac_declaration in \
3144 '' \
3145 'extern "C" void std::exit (int) throw (); using std::exit;' \
3146 'extern "C" void std::exit (int); using std::exit;' \
3147 'extern "C" void exit (int) throw ();' \
3148 'extern "C" void exit (int);' \
3149 'void exit (int);'
3150do
3151 cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
3157$ac_declaration
3158#include <stdlib.h>
3159int
3160main ()
3161{
3162exit (42);
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag"
3177 || test ! -s conftest.err'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 :
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194continue
3195fi
3196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h. */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h. */
3203$ac_declaration
3204int
3205main ()
3206{
3207exit (42);
3208 ;
3209 return 0;
3210}
3211_ACEOF
3212rm -f conftest.$ac_objext
3213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 break
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239fi
3240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241done
3242rm -f conftest*
3243if test -n "$ac_declaration"; then
3244 echo '#ifdef __cplusplus' >>confdefs.h
3245 echo $ac_declaration >>confdefs.h
3246 echo '#endif' >>confdefs.h
3247fi
3248
3249else
3250 echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253fi
3254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255ac_ext=c
3256ac_cpp='$CPP $CPPFLAGS'
3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260
3261warn_cflags=
3262if test "x$GCC" = "xyes"; then
3263 warn_cflags='$(GCC_WARN_CFLAGS)'
3264fi
3265
3266
80dab182
NN
3267# Output: create a Makefile.
3268 ac_config_files="$ac_config_files Makefile"
b0b70d84
AC
3269
3270
3271cat >confcache <<\_ACEOF
3272# This file is a shell script that caches the results of configure
3273# tests run on this system so they can be shared between configure
3274# scripts and configure runs, see configure's option --config-cache.
3275# It is not useful on other systems. If it contains results you don't
3276# want to keep, you may remove or edit it.
3277#
3278# config.status only pays attention to the cache file if you give it
3279# the --recheck option to rerun configure.
3280#
3281# `ac_cv_env_foo' variables (set or unset) will be overridden when
3282# loading this file, other *unset* `ac_cv_foo' will be assigned the
3283# following values.
3284
3285_ACEOF
3286
3287# The following way of writing the cache mishandles newlines in values,
3288# but we know of no workaround that is simple, portable, and efficient.
3289# So, don't put newlines in cache variables' values.
3290# Ultrix sh set writes to stderr and can't be redirected directly,
3291# and sets the high bit in the cache file unless we assign to the vars.
3292{
3293 (set) 2>&1 |
3294 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3295 *ac_space=\ *)
3296 # `set' does not quote correctly, so add quotes (double-quote
3297 # substitution turns \\\\ into \\, and sed turns \\ into \).
3298 sed -n \
8ab705be
KC
3299 "s/'/'\\\\''/g;
3300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b0b70d84
AC
3301 ;;
3302 *)
3303 # `set' quotes correctly as required by POSIX, so do not add quotes.
3304 sed -n \
8ab705be 3305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b0b70d84
AC
3306 ;;
3307 esac;
3308} |
3309 sed '
3310 t clear
3311 : clear
3312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3313 t end
3314 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3315 : end' >>confcache
3316if diff $cache_file confcache >/dev/null 2>&1; then :; else
3317 if test -w $cache_file; then
3318 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3319 cat confcache >$cache_file
3320 else
3321 echo "not updating unwritable cache $cache_file"
3322 fi
3323fi
3324rm -f confcache
3325
3326test "x$prefix" = xNONE && prefix=$ac_default_prefix
3327# Let make expand exec_prefix.
3328test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3329
3330# VPATH may cause trouble with some makes, so we remove $(srcdir),
3331# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3332# trailing colons and then remove the whole line if VPATH becomes empty
3333# (actually we leave an empty line to preserve line numbers).
3334if test "x$srcdir" = x.; then
8ab705be 3335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
b0b70d84
AC
3336s/:*\$(srcdir):*/:/;
3337s/:*\${srcdir}:*/:/;
3338s/:*@srcdir@:*/:/;
8ab705be 3339s/^\([^=]*=[ ]*\):*/\1/;
b0b70d84 3340s/:*$//;
8ab705be 3341s/^[^=]*=[ ]*$//;
b0b70d84
AC
3342}'
3343fi
3344
3345# Transform confdefs.h into DEFS.
3346# Protect against shell expansion while executing Makefile rules.
3347# Protect against Makefile macro expansion.
3348#
3349# If the first sed substitution is executed (which looks for macros that
3350# take arguments), then we branch to the quote section. Otherwise,
3351# look for a macro that doesn't take arguments.
3352cat >confdef2opt.sed <<\_ACEOF
3353t clear
3354: clear
8ab705be 3355s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
b0b70d84 3356t quote
8ab705be 3357s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
b0b70d84
AC
3358t quote
3359d
3360: quote
8ab705be 3361s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
b0b70d84
AC
3362s,\[,\\&,g
3363s,\],\\&,g
3364s,\$,$$,g
3365p
3366_ACEOF
3367# We use echo to avoid assuming a particular line-breaking character.
3368# The extra dot is to prevent the shell from consuming trailing
3369# line-breaks from the sub-command output. A line-break within
3370# single-quotes doesn't work because, if this script is created in a
3371# platform that uses two characters for line-breaks (e.g., DOS), tr
3372# would break.
3373ac_LF_and_DOT=`echo; echo .`
3374DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3375rm -f confdef2opt.sed
3376
3377
3378ac_libobjs=
3379ac_ltlibobjs=
3380for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3381 # 1. Remove the extension, and $U if already installed.
3382 ac_i=`echo "$ac_i" |
8ab705be 3383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
b0b70d84
AC
3384 # 2. Add them.
3385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3387done
3388LIBOBJS=$ac_libobjs
3389
3390LTLIBOBJS=$ac_ltlibobjs
3391
3392
3393
3394: ${CONFIG_STATUS=./config.status}
3395ac_clean_files_save=$ac_clean_files
3396ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3397{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3398echo "$as_me: creating $CONFIG_STATUS" >&6;}
3399cat >$CONFIG_STATUS <<_ACEOF
3400#! $SHELL
3401# Generated by $as_me.
3402# Run this file to recreate the current configuration.
3403# Compiler output produced by configure, useful for debugging
3404# configure, is in config.log if it exists.
3405
3406debug=false
3407ac_cs_recheck=false
3408ac_cs_silent=false
3409SHELL=\${CONFIG_SHELL-$SHELL}
3410_ACEOF
3411
3412cat >>$CONFIG_STATUS <<\_ACEOF
3413## --------------------- ##
3414## M4sh Initialization. ##
3415## --------------------- ##
3416
3417# Be Bourne compatible
3418if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3419 emulate sh
3420 NULLCMD=:
3421 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3422 # is contrary to our usage. Disable this feature.
3423 alias -g '${1+"$@"}'='"$@"'
3424elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3425 set -o posix
3426fi
8ab705be 3427DUALCASE=1; export DUALCASE # for MKS sh
b0b70d84
AC
3428
3429# Support unset when possible.
8ab705be 3430if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b0b70d84
AC
3431 as_unset=unset
3432else
3433 as_unset=false
3434fi
3435
3436
3437# Work around bugs in pre-3.0 UWIN ksh.
3438$as_unset ENV MAIL MAILPATH
3439PS1='$ '
3440PS2='> '
3441PS4='+ '
3442
3443# NLS nuisances.
3444for as_var in \
3445 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3446 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3447 LC_TELEPHONE LC_TIME
3448do
8ab705be 3449 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
b0b70d84
AC
3450 eval $as_var=C; export $as_var
3451 else
3452 $as_unset $as_var
3453 fi
3454done
3455
3456# Required to use basename.
3457if expr a : '\(a\)' >/dev/null 2>&1; then
3458 as_expr=expr
3459else
3460 as_expr=false
3461fi
3462
3463if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3464 as_basename=basename
3465else
3466 as_basename=false
3467fi
3468
3469
3470# Name of the executable.
3471as_me=`$as_basename "$0" ||
3472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3473 X"$0" : 'X\(//\)$' \| \
3474 X"$0" : 'X\(/\)$' \| \
3475 . : '\(.\)' 2>/dev/null ||
3476echo X/"$0" |
3477 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3478 /^X\/\(\/\/\)$/{ s//\1/; q; }
3479 /^X\/\(\/\).*/{ s//\1/; q; }
3480 s/.*/./; q'`
3481
3482
3483# PATH needs CR, and LINENO needs CR and PATH.
3484# Avoid depending upon Character Ranges.
3485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3488as_cr_digits='0123456789'
3489as_cr_alnum=$as_cr_Letters$as_cr_digits
3490
3491# The user is always right.
3492if test "${PATH_SEPARATOR+set}" != set; then
3493 echo "#! /bin/sh" >conf$$.sh
3494 echo "exit 0" >>conf$$.sh
3495 chmod +x conf$$.sh
3496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3497 PATH_SEPARATOR=';'
3498 else
3499 PATH_SEPARATOR=:
3500 fi
3501 rm -f conf$$.sh
3502fi
3503
3504
3505 as_lineno_1=$LINENO
3506 as_lineno_2=$LINENO
3507 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3508 test "x$as_lineno_1" != "x$as_lineno_2" &&
3509 test "x$as_lineno_3" = "x$as_lineno_2" || {
3510 # Find who we are. Look in the path if we contain no path at all
3511 # relative or not.
3512 case $0 in
3513 *[\\/]* ) as_myself=$0 ;;
3514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515for as_dir in $PATH
3516do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3520done
3521
3522 ;;
3523 esac
3524 # We did not find ourselves, most probably we were run as `sh COMMAND'
3525 # in which case we are not to be found in the path.
3526 if test "x$as_myself" = x; then
3527 as_myself=$0
3528 fi
3529 if test ! -f "$as_myself"; then
3530 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3531echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3532 { (exit 1); exit 1; }; }
3533 fi
3534 case $CONFIG_SHELL in
3535 '')
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3538do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for as_base in sh bash ksh sh5; do
3542 case $as_dir in
3543 /*)
3544 if ("$as_dir/$as_base" -c '
3545 as_lineno_1=$LINENO
3546 as_lineno_2=$LINENO
3547 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3548 test "x$as_lineno_1" != "x$as_lineno_2" &&
3549 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3550 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3551 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3552 CONFIG_SHELL=$as_dir/$as_base
3553 export CONFIG_SHELL
3554 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3555 fi;;
3556 esac
3557 done
3558done
3559;;
3560 esac
3561
3562 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3563 # uniformly replaced by the line number. The first 'sed' inserts a
3564 # line-number line before each line; the second 'sed' does the real
3565 # work. The second script uses 'N' to pair each line-number line
3566 # with the numbered line, and appends trailing '-' during
3567 # substitution so that $LINENO is not a special case at line end.
3568 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3569 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3570 sed '=' <$as_myself |
3571 sed '
3572 N
3573 s,$,-,
3574 : loop
3575 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3576 t loop
3577 s,-$,,
3578 s,^['$as_cr_digits']*\n,,
3579 ' >$as_me.lineno &&
3580 chmod +x $as_me.lineno ||
3581 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3582echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3583 { (exit 1); exit 1; }; }
3584
3585 # Don't try to exec as it changes $[0], causing all sort of problems
3586 # (the dirname of $[0] is not the place where we might find the
3587 # original and so on. Autoconf is especially sensible to this).
3588 . ./$as_me.lineno
3589 # Exit status is that of the last command.
3590 exit
3591}
3592
3593
3594case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3595 *c*,-n*) ECHO_N= ECHO_C='
3596' ECHO_T=' ' ;;
3597 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3598 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3599esac
3600
3601if expr a : '\(a\)' >/dev/null 2>&1; then
3602 as_expr=expr
3603else
3604 as_expr=false
3605fi
3606
3607rm -f conf$$ conf$$.exe conf$$.file
3608echo >conf$$.file
3609if ln -s conf$$.file conf$$ 2>/dev/null; then
3610 # We could just check for DJGPP; but this test a) works b) is more generic
3611 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3612 if test -f conf$$.exe; then
3613 # Don't use ln at all; we don't have any links
3614 as_ln_s='cp -p'
3615 else
3616 as_ln_s='ln -s'
3617 fi
3618elif ln conf$$.file conf$$ 2>/dev/null; then
3619 as_ln_s=ln
3620else
3621 as_ln_s='cp -p'
3622fi
3623rm -f conf$$ conf$$.exe conf$$.file
3624
3625if mkdir -p . 2>/dev/null; then
3626 as_mkdir_p=:
3627else
8ab705be 3628 test -d ./-p && rmdir ./-p
b0b70d84
AC
3629 as_mkdir_p=false
3630fi
3631
3632as_executable_p="test -f"
3633
3634# Sed expression to map a string onto a valid CPP name.
8ab705be 3635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b0b70d84
AC
3636
3637# Sed expression to map a string onto a valid variable name.
8ab705be 3638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b0b70d84
AC
3639
3640
3641# IFS
3642# We need space, tab and new line, in precisely that order.
3643as_nl='
3644'
3645IFS=" $as_nl"
3646
3647# CDPATH.
3648$as_unset CDPATH
3649
3650exec 6>&1
3651
3652# Open the log real soon, to keep \$[0] and so on meaningful, and to
3653# report actual input values of CONFIG_FILES etc. instead of their
3654# values after options handling. Logging --version etc. is OK.
3655exec 5>>config.log
3656{
3657 echo
3658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3659## Running $as_me. ##
3660_ASBOX
3661} >&5
3662cat >&5 <<_CSEOF
3663
f0d3c336 3664This file was extended by $as_me, which was
8ab705be 3665generated by GNU Autoconf 2.59. Invocation command line was
b0b70d84
AC
3666
3667 CONFIG_FILES = $CONFIG_FILES
3668 CONFIG_HEADERS = $CONFIG_HEADERS
3669 CONFIG_LINKS = $CONFIG_LINKS
3670 CONFIG_COMMANDS = $CONFIG_COMMANDS
3671 $ $0 $@
3672
3673_CSEOF
3674echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3675echo >&5
3676_ACEOF
3677
3678# Files that config.status was made for.
3679if test -n "$ac_config_files"; then
3680 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3681fi
3682
3683if test -n "$ac_config_headers"; then
3684 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3685fi
3686
3687if test -n "$ac_config_links"; then
3688 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3689fi
3690
3691if test -n "$ac_config_commands"; then
3692 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3693fi
3694
3695cat >>$CONFIG_STATUS <<\_ACEOF
3696
3697ac_cs_usage="\
3698\`$as_me' instantiates files from templates according to the
3699current configuration.
3700
3701Usage: $0 [OPTIONS] [FILE]...
3702
3703 -h, --help print this help, then exit
3704 -V, --version print version number, then exit
3705 -q, --quiet do not print progress messages
3706 -d, --debug don't remove temporary files
3707 --recheck update $as_me by reconfiguring in the same conditions
3708 --file=FILE[:TEMPLATE]
8ab705be 3709 instantiate the configuration file FILE
b0b70d84
AC
3710
3711Configuration files:
3712$config_files
3713
7193e639
LG
3714Configuration commands:
3715$config_commands
3716
b0b70d84
AC
3717Report bugs to <bug-autoconf@gnu.org>."
3718_ACEOF
3719
3720cat >>$CONFIG_STATUS <<_ACEOF
3721ac_cs_version="\\
f0d3c336 3722config.status
8ab705be 3723configured by $0, generated by GNU Autoconf 2.59,
b0b70d84
AC
3724 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3725
8ab705be 3726Copyright (C) 2003 Free Software Foundation, Inc.
b0b70d84
AC
3727This config.status script is free software; the Free Software Foundation
3728gives unlimited permission to copy, distribute and modify it."
3729srcdir=$srcdir
3730_ACEOF
3731
3732cat >>$CONFIG_STATUS <<\_ACEOF
3733# If no file are specified by the user, then we need to provide default
3734# value. By we need to know if files were specified by the user.
3735ac_need_defaults=:
3736while test $# != 0
3737do
3738 case $1 in
3739 --*=*)
3740 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3741 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3742 ac_shift=:
3743 ;;
3744 -*)
3745 ac_option=$1
3746 ac_optarg=$2
3747 ac_shift=shift
3748 ;;
3749 *) # This is not an option, so the user has probably given explicit
3750 # arguments.
3751 ac_option=$1
3752 ac_need_defaults=false;;
3753 esac
3754
3755 case $ac_option in
3756 # Handling of the options.
3757_ACEOF
3758cat >>$CONFIG_STATUS <<\_ACEOF
3759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3760 ac_cs_recheck=: ;;
3761 --version | --vers* | -V )
3762 echo "$ac_cs_version"; exit 0 ;;
3763 --he | --h)
3764 # Conflict between --help and --header
3765 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3766Try \`$0 --help' for more information." >&5
3767echo "$as_me: error: ambiguous option: $1
3768Try \`$0 --help' for more information." >&2;}
3769 { (exit 1); exit 1; }; };;
3770 --help | --hel | -h )
3771 echo "$ac_cs_usage"; exit 0 ;;
3772 --debug | --d* | -d )
3773 debug=: ;;
3774 --file | --fil | --fi | --f )
3775 $ac_shift
3776 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3777 ac_need_defaults=false;;
3778 --header | --heade | --head | --hea )
3779 $ac_shift
3780 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3781 ac_need_defaults=false;;
3782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3784 ac_cs_silent=: ;;
3785
3786 # This is an error.
3787 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3788Try \`$0 --help' for more information." >&5
3789echo "$as_me: error: unrecognized option: $1
3790Try \`$0 --help' for more information." >&2;}
3791 { (exit 1); exit 1; }; } ;;
3792
3793 *) ac_config_targets="$ac_config_targets $1" ;;
3794
3795 esac
3796 shift
3797done
3798
3799ac_configure_extra_args=
3800
3801if $ac_cs_silent; then
3802 exec 6>/dev/null
3803 ac_configure_extra_args="$ac_configure_extra_args --silent"
3804fi
3805
3806_ACEOF
3807cat >>$CONFIG_STATUS <<_ACEOF
3808if \$ac_cs_recheck; then
3809 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3810 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3811fi
3812
3813_ACEOF
3814
7193e639
LG
3815cat >>$CONFIG_STATUS <<_ACEOF
3816#
3817# INIT-COMMANDS section.
3818#
3819
b0b70d84 3820
7193e639
LG
3821srcdir="$srcdir"
3822host="$host"
3823target="$target"
3824with_multisubdir="$with_multisubdir"
3825with_multisrctop="$with_multisrctop"
3826with_target_subdir="$with_target_subdir"
3827ac_configure_args="${multilib_arg} ${ac_configure_args}"
3828multi_basedir="$multi_basedir"
3829CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3830CC="$CC"
05682af8
EB
3831CXX="$CXX"
3832GFORTRAN="$GFORTRAN"
3833GCJ="$GCJ"
7193e639
LG
3834
3835_ACEOF
b0b70d84
AC
3836
3837
3838
3839cat >>$CONFIG_STATUS <<\_ACEOF
3840for ac_config_target in $ac_config_targets
3841do
3842 case "$ac_config_target" in
3843 # Handling of arguments.
3844 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7193e639 3845 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
b0b70d84
AC
3846 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3847echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3848 { (exit 1); exit 1; }; };;
3849 esac
3850done
3851
3852# If the user did not use the arguments to specify the items to instantiate,
3853# then the envvar interface is used. Set only those that are not.
3854# We use the long form for the default assignment because of an extremely
3855# bizarre bug on SunOS 4.1.3.
3856if $ac_need_defaults; then
3857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7193e639 3858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
b0b70d84
AC
3859fi
3860
3861# Have a temporary directory for convenience. Make it in the build tree
3862# simply because there is no reason to put it here, and in addition,
3863# creating and moving files from /tmp can sometimes cause problems.
3864# Create a temporary directory, and hook for its removal unless debugging.
3865$debug ||
3866{
3867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3868 trap '{ (exit 1); exit 1; }' 1 2 13 15
3869}
3870
3871# Create a (secure) tmp directory for tmp files.
3872
3873{
3874 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3875 test -n "$tmp" && test -d "$tmp"
3876} ||
3877{
3878 tmp=./confstat$$-$RANDOM
3879 (umask 077 && mkdir $tmp)
3880} ||
3881{
3882 echo "$me: cannot create a temporary directory in ." >&2
3883 { (exit 1); exit 1; }
3884}
3885
3886_ACEOF
3887
3888cat >>$CONFIG_STATUS <<_ACEOF
3889
3890#
3891# CONFIG_FILES section.
3892#
3893
3894# No need to generate the scripts if there are no CONFIG_FILES.
3895# This happens for instance when ./config.status config.h
3896if test -n "\$CONFIG_FILES"; then
3897 # Protect against being on the right side of a sed subst in config.status.
3898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3900s,@SHELL@,$SHELL,;t t
3901s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3902s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3903s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3904s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3905s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3906s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3907s,@exec_prefix@,$exec_prefix,;t t
3908s,@prefix@,$prefix,;t t
3909s,@program_transform_name@,$program_transform_name,;t t
3910s,@bindir@,$bindir,;t t
3911s,@sbindir@,$sbindir,;t t
3912s,@libexecdir@,$libexecdir,;t t
3913s,@datadir@,$datadir,;t t
3914s,@sysconfdir@,$sysconfdir,;t t
3915s,@sharedstatedir@,$sharedstatedir,;t t
3916s,@localstatedir@,$localstatedir,;t t
3917s,@libdir@,$libdir,;t t
3918s,@includedir@,$includedir,;t t
3919s,@oldincludedir@,$oldincludedir,;t t
3920s,@infodir@,$infodir,;t t
3921s,@mandir@,$mandir,;t t
3922s,@build_alias@,$build_alias,;t t
3923s,@host_alias@,$host_alias,;t t
3924s,@target_alias@,$target_alias,;t t
3925s,@DEFS@,$DEFS,;t t
3926s,@ECHO_C@,$ECHO_C,;t t
3927s,@ECHO_N@,$ECHO_N,;t t
3928s,@ECHO_T@,$ECHO_T,;t t
3929s,@LIBS@,$LIBS,;t t
b0b70d84
AC
3930s,@build@,$build,;t t
3931s,@build_cpu@,$build_cpu,;t t
3932s,@build_vendor@,$build_vendor,;t t
3933s,@build_os@,$build_os,;t t
3934s,@host@,$host,;t t
3935s,@host_cpu@,$host_cpu,;t t
3936s,@host_vendor@,$host_vendor,;t t
3937s,@host_os@,$host_os,;t t
3938s,@target@,$target,;t t
3939s,@target_cpu@,$target_cpu,;t t
3940s,@target_vendor@,$target_vendor,;t t
3941s,@target_os@,$target_os,;t t
9bd6112c
PB
3942s,@target_noncanonical@,$target_noncanonical,;t t
3943s,@build_libsubdir@,$build_libsubdir,;t t
3944s,@build_subdir@,$build_subdir,;t t
3945s,@host_subdir@,$host_subdir,;t t
3946s,@target_subdir@,$target_subdir,;t t
3947s,@MAINT@,$MAINT,;t t
7193e639
LG
3948s,@multi_basedir@,$multi_basedir,;t t
3949s,@toolexecdir@,$toolexecdir,;t t
3950s,@toolexeclibdir@,$toolexeclibdir,;t t
3951s,@CC@,$CC,;t t
3952s,@ac_ct_CC@,$ac_ct_CC,;t t
3953s,@EXEEXT@,$EXEEXT,;t t
3954s,@OBJEXT@,$OBJEXT,;t t
3955s,@CFLAGS@,$CFLAGS,;t t
9bd6112c 3956s,@enable_shared@,$enable_shared,;t t
80dab182 3957s,@LN_S@,$LN_S,;t t
80dab182 3958s,@default_gnatlib_target@,$default_gnatlib_target,;t t
47ad7893
PB
3959s,@LDFLAGS@,$LDFLAGS,;t t
3960s,@CPPFLAGS@,$CPPFLAGS,;t t
47ad7893 3961s,@warn_cflags@,$warn_cflags,;t t
b0b70d84
AC
3962s,@LIBOBJS@,$LIBOBJS,;t t
3963s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3964CEOF
3965
3966_ACEOF
3967
3968 cat >>$CONFIG_STATUS <<\_ACEOF
3969 # Split the substitutions into bite-sized pieces for seds with
3970 # small command number limits, like on Digital OSF/1 and HP-UX.
3971 ac_max_sed_lines=48
3972 ac_sed_frag=1 # Number of current file.
3973 ac_beg=1 # First line for current file.
3974 ac_end=$ac_max_sed_lines # Line after last line for current file.
3975 ac_more_lines=:
3976 ac_sed_cmds=
3977 while $ac_more_lines; do
3978 if test $ac_beg -gt 1; then
3979 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3980 else
3981 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3982 fi
3983 if test ! -s $tmp/subs.frag; then
3984 ac_more_lines=false
3985 else
3986 # The purpose of the label and of the branching condition is to
3987 # speed up the sed processing (if there are no `@' at all, there
3988 # is no need to browse any of the substitutions).
3989 # These are the two extra sed commands mentioned above.
3990 (echo ':t
3991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3992 if test -z "$ac_sed_cmds"; then
8ab705be 3993 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
b0b70d84 3994 else
8ab705be 3995 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
b0b70d84
AC
3996 fi
3997 ac_sed_frag=`expr $ac_sed_frag + 1`
3998 ac_beg=$ac_end
3999 ac_end=`expr $ac_end + $ac_max_sed_lines`
4000 fi
4001 done
4002 if test -z "$ac_sed_cmds"; then
4003 ac_sed_cmds=cat
4004 fi
4005fi # test -n "$CONFIG_FILES"
4006
4007_ACEOF
4008cat >>$CONFIG_STATUS <<\_ACEOF
4009for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4011 case $ac_file in
4012 - | *:- | *:-:* ) # input from stdin
8ab705be
KC
4013 cat >$tmp/stdin
4014 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
b0b70d84 4016 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8ab705be 4017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
b0b70d84
AC
4018 * ) ac_file_in=$ac_file.in ;;
4019 esac
4020
4021 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4022 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4023$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
4024 X"$ac_file" : 'X\(//\)[^/]' \| \
4025 X"$ac_file" : 'X\(//\)$' \| \
4026 X"$ac_file" : 'X\(/\)' \| \
4027 . : '\(.\)' 2>/dev/null ||
b0b70d84
AC
4028echo X"$ac_file" |
4029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4031 /^X\(\/\/\)$/{ s//\1/; q; }
4032 /^X\(\/\).*/{ s//\1/; q; }
4033 s/.*/./; q'`
4034 { if $as_mkdir_p; then
4035 mkdir -p "$ac_dir"
4036 else
4037 as_dir="$ac_dir"
4038 as_dirs=
4039 while test ! -d "$as_dir"; do
4040 as_dirs="$as_dir $as_dirs"
4041 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
4043 X"$as_dir" : 'X\(//\)[^/]' \| \
4044 X"$as_dir" : 'X\(//\)$' \| \
4045 X"$as_dir" : 'X\(/\)' \| \
4046 . : '\(.\)' 2>/dev/null ||
b0b70d84
AC
4047echo X"$as_dir" |
4048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4050 /^X\(\/\/\)$/{ s//\1/; q; }
4051 /^X\(\/\).*/{ s//\1/; q; }
4052 s/.*/./; q'`
4053 done
4054 test ! -n "$as_dirs" || mkdir $as_dirs
4055 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4056echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4057 { (exit 1); exit 1; }; }; }
4058
4059 ac_builddir=.
4060
4061if test "$ac_dir" != .; then
4062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4063 # A "../" for each directory in $ac_dir_suffix.
4064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4065else
4066 ac_dir_suffix= ac_top_builddir=
4067fi
4068
4069case $srcdir in
4070 .) # No --srcdir option. We are building in place.
4071 ac_srcdir=.
4072 if test -z "$ac_top_builddir"; then
4073 ac_top_srcdir=.
4074 else
4075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4076 fi ;;
4077 [\\/]* | ?:[\\/]* ) # Absolute path.
4078 ac_srcdir=$srcdir$ac_dir_suffix;
4079 ac_top_srcdir=$srcdir ;;
4080 *) # Relative path.
4081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4083esac
8ab705be
KC
4084
4085# Do not use `cd foo && pwd` to compute absolute paths, because
4086# the directories may not exist.
4087case `pwd` in
4088.) ac_abs_builddir="$ac_dir";;
4089*)
4090 case "$ac_dir" in
4091 .) ac_abs_builddir=`pwd`;;
4092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4094 esac;;
4095esac
4096case $ac_abs_builddir in
4097.) ac_abs_top_builddir=${ac_top_builddir}.;;
4098*)
4099 case ${ac_top_builddir}. in
4100 .) ac_abs_top_builddir=$ac_abs_builddir;;
4101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4103 esac;;
4104esac
4105case $ac_abs_builddir in
4106.) ac_abs_srcdir=$ac_srcdir;;
4107*)
4108 case $ac_srcdir in
4109 .) ac_abs_srcdir=$ac_abs_builddir;;
4110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4112 esac;;
4113esac
4114case $ac_abs_builddir in
4115.) ac_abs_top_srcdir=$ac_top_srcdir;;
4116*)
4117 case $ac_top_srcdir in
4118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4121 esac;;
4122esac
b0b70d84
AC
4123
4124
4125
9bd6112c
PB
4126 if test x"$ac_file" != x-; then
4127 { echo "$as_me:$LINENO: creating $ac_file" >&5
4128echo "$as_me: creating $ac_file" >&6;}
4129 rm -f "$ac_file"
4130 fi
b0b70d84
AC
4131 # Let's still pretend it is `configure' which instantiates (i.e., don't
4132 # use $as_me), people would be surprised to read:
4133 # /* config.h. Generated by config.status. */
4134 if test x"$ac_file" = x-; then
4135 configure_input=
4136 else
4137 configure_input="$ac_file. "
4138 fi
4139 configure_input=$configure_input"Generated from `echo $ac_file_in |
8ab705be 4140 sed 's,.*/,,'` by configure."
b0b70d84
AC
4141
4142 # First look for the input files in the build tree, otherwise in the
4143 # src tree.
4144 ac_file_inputs=`IFS=:
4145 for f in $ac_file_in; do
4146 case $f in
4147 -) echo $tmp/stdin ;;
4148 [\\/$]*)
8ab705be
KC
4149 # Absolute (can't be DOS-style, as IFS=:)
4150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
b0b70d84
AC
4151echo "$as_me: error: cannot find input file: $f" >&2;}
4152 { (exit 1); exit 1; }; }
8ab705be 4153 echo "$f";;
b0b70d84 4154 *) # Relative
8ab705be
KC
4155 if test -f "$f"; then
4156 # Build tree
4157 echo "$f"
4158 elif test -f "$srcdir/$f"; then
4159 # Source tree
4160 echo "$srcdir/$f"
4161 else
4162 # /dev/null tree
4163 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
b0b70d84
AC
4164echo "$as_me: error: cannot find input file: $f" >&2;}
4165 { (exit 1); exit 1; }; }
8ab705be 4166 fi;;
b0b70d84
AC
4167 esac
4168 done` || { (exit 1); exit 1; }
4169_ACEOF
4170cat >>$CONFIG_STATUS <<_ACEOF
4171 sed "$ac_vpsub
4172$extrasub
4173_ACEOF
4174cat >>$CONFIG_STATUS <<\_ACEOF
4175:t
4176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4177s,@configure_input@,$configure_input,;t t
4178s,@srcdir@,$ac_srcdir,;t t
4179s,@abs_srcdir@,$ac_abs_srcdir,;t t
4180s,@top_srcdir@,$ac_top_srcdir,;t t
4181s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4182s,@builddir@,$ac_builddir,;t t
4183s,@abs_builddir@,$ac_abs_builddir,;t t
4184s,@top_builddir@,$ac_top_builddir,;t t
4185s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4186" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4187 rm -f $tmp/stdin
4188 if test x"$ac_file" != x-; then
4189 mv $tmp/out $ac_file
4190 else
4191 cat $tmp/out
4192 rm -f $tmp/out
4193 fi
4194
4195done
4196_ACEOF
7193e639
LG
4197cat >>$CONFIG_STATUS <<\_ACEOF
4198
4199#
4200# CONFIG_COMMANDS section.
4201#
4202for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4203 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4204 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4205 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4206$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4207 X"$ac_dest" : 'X\(//\)[^/]' \| \
4208 X"$ac_dest" : 'X\(//\)$' \| \
4209 X"$ac_dest" : 'X\(/\)' \| \
4210 . : '\(.\)' 2>/dev/null ||
4211echo X"$ac_dest" |
4212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4214 /^X\(\/\/\)$/{ s//\1/; q; }
4215 /^X\(\/\).*/{ s//\1/; q; }
4216 s/.*/./; q'`
4217 { if $as_mkdir_p; then
4218 mkdir -p "$ac_dir"
4219 else
4220 as_dir="$ac_dir"
4221 as_dirs=
4222 while test ! -d "$as_dir"; do
4223 as_dirs="$as_dir $as_dirs"
4224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4226 X"$as_dir" : 'X\(//\)[^/]' \| \
4227 X"$as_dir" : 'X\(//\)$' \| \
4228 X"$as_dir" : 'X\(/\)' \| \
4229 . : '\(.\)' 2>/dev/null ||
4230echo X"$as_dir" |
4231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4233 /^X\(\/\/\)$/{ s//\1/; q; }
4234 /^X\(\/\).*/{ s//\1/; q; }
4235 s/.*/./; q'`
4236 done
4237 test ! -n "$as_dirs" || mkdir $as_dirs
4238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4239echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4240 { (exit 1); exit 1; }; }; }
4241
4242 ac_builddir=.
4243
4244if test "$ac_dir" != .; then
4245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4246 # A "../" for each directory in $ac_dir_suffix.
4247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4248else
4249 ac_dir_suffix= ac_top_builddir=
4250fi
4251
4252case $srcdir in
4253 .) # No --srcdir option. We are building in place.
4254 ac_srcdir=.
4255 if test -z "$ac_top_builddir"; then
4256 ac_top_srcdir=.
4257 else
4258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4259 fi ;;
4260 [\\/]* | ?:[\\/]* ) # Absolute path.
4261 ac_srcdir=$srcdir$ac_dir_suffix;
4262 ac_top_srcdir=$srcdir ;;
4263 *) # Relative path.
4264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4266esac
4267
4268# Do not use `cd foo && pwd` to compute absolute paths, because
4269# the directories may not exist.
4270case `pwd` in
4271.) ac_abs_builddir="$ac_dir";;
4272*)
4273 case "$ac_dir" in
4274 .) ac_abs_builddir=`pwd`;;
4275 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4276 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4277 esac;;
4278esac
4279case $ac_abs_builddir in
4280.) ac_abs_top_builddir=${ac_top_builddir}.;;
4281*)
4282 case ${ac_top_builddir}. in
4283 .) ac_abs_top_builddir=$ac_abs_builddir;;
4284 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4285 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4286 esac;;
4287esac
4288case $ac_abs_builddir in
4289.) ac_abs_srcdir=$ac_srcdir;;
4290*)
4291 case $ac_srcdir in
4292 .) ac_abs_srcdir=$ac_abs_builddir;;
4293 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4294 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4295 esac;;
4296esac
4297case $ac_abs_builddir in
4298.) ac_abs_top_srcdir=$ac_top_srcdir;;
4299*)
4300 case $ac_top_srcdir in
4301 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4302 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4303 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4304 esac;;
4305esac
4306
4307
4308 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4309echo "$as_me: executing $ac_dest commands" >&6;}
4310 case $ac_dest in
4311 default-1 )
4312# Only add multilib support code if we just rebuilt the top-level
4313# Makefile.
4314case " $CONFIG_FILES " in
4315 *" Makefile "*)
4316 ac_file=Makefile . ${multi_basedir}/config-ml.in
4317 ;;
4318esac ;;
4319 esac
4320done
4321_ACEOF
b0b70d84
AC
4322
4323cat >>$CONFIG_STATUS <<\_ACEOF
4324
4325{ (exit 0); exit 0; }
4326_ACEOF
4327chmod +x $CONFIG_STATUS
4328ac_clean_files=$ac_clean_files_save
4329
4330
4331# configure is writing to config.log, and then calls config.status.
4332# config.status does its own redirection, appending to config.log.
4333# Unfortunately, on DOS this fails, as config.log is still kept open
4334# by configure, so config.status won't be able to write to it; its
4335# output is simply discarded. So we exec the FD to /dev/null,
4336# effectively closing config.log, so it can be properly (re)opened and
4337# appended to by config.status. When coming back to configure, we
4338# need to make the FD available again.
4339if test "$no_create" != yes; then
4340 ac_cs_success=:
4341 ac_config_status_args=
4342 test "$silent" = yes &&
4343 ac_config_status_args="$ac_config_status_args --quiet"
4344 exec 5>/dev/null
4345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4346 exec 5>>config.log
4347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4348 # would make configure fail if this is the last instruction.
4349 $ac_cs_success || { (exit 1); exit 1; }
4350fi
4351