]> git.ipfire.org Git - thirdparty/gcc.git/blame - libada/configure
configure.ac: Do not generate libada-mk.
[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"
47ad7893 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 enable_shared LN_S x_ada_cflags default_gnatlib_target CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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
811 --disable-shared don't provide a shared libgnat
812
9bd6112c
PB
813Optional Packages:
814 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
815 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
816 --with-build-libsubdir=DIR Directory where to find libraries for build system
817
47ad7893
PB
818Some influential environment variables:
819 CC C compiler command
820 CFLAGS C compiler flags
821 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
822 nonstandard directory <lib dir>
823 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
824 headers in a nonstandard directory <include dir>
825
826Use these variables to override the choices made by `configure' or to help
827it to find libraries and programs with nonstandard names/locations.
828
b0b70d84
AC
829_ACEOF
830fi
831
832if test "$ac_init_help" = "recursive"; then
833 # If there are subdirs, report their specific --help.
834 ac_popdir=`pwd`
835 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
836 test -d $ac_dir || continue
837 ac_builddir=.
838
839if test "$ac_dir" != .; then
840 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
841 # A "../" for each directory in $ac_dir_suffix.
842 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
843else
844 ac_dir_suffix= ac_top_builddir=
845fi
846
847case $srcdir in
848 .) # No --srcdir option. We are building in place.
849 ac_srcdir=.
850 if test -z "$ac_top_builddir"; then
851 ac_top_srcdir=.
852 else
853 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
854 fi ;;
855 [\\/]* | ?:[\\/]* ) # Absolute path.
856 ac_srcdir=$srcdir$ac_dir_suffix;
857 ac_top_srcdir=$srcdir ;;
858 *) # Relative path.
859 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
860 ac_top_srcdir=$ac_top_builddir$srcdir ;;
861esac
8ab705be
KC
862
863# Do not use `cd foo && pwd` to compute absolute paths, because
864# the directories may not exist.
865case `pwd` in
866.) ac_abs_builddir="$ac_dir";;
867*)
868 case "$ac_dir" in
869 .) ac_abs_builddir=`pwd`;;
870 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
871 *) ac_abs_builddir=`pwd`/"$ac_dir";;
872 esac;;
873esac
874case $ac_abs_builddir in
875.) ac_abs_top_builddir=${ac_top_builddir}.;;
876*)
877 case ${ac_top_builddir}. in
878 .) ac_abs_top_builddir=$ac_abs_builddir;;
879 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
880 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
881 esac;;
882esac
883case $ac_abs_builddir in
884.) ac_abs_srcdir=$ac_srcdir;;
885*)
886 case $ac_srcdir in
887 .) ac_abs_srcdir=$ac_abs_builddir;;
888 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
889 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
890 esac;;
891esac
892case $ac_abs_builddir in
893.) ac_abs_top_srcdir=$ac_top_srcdir;;
894*)
895 case $ac_top_srcdir in
896 .) ac_abs_top_srcdir=$ac_abs_builddir;;
897 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
898 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
899 esac;;
900esac
b0b70d84
AC
901
902 cd $ac_dir
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
905 echo
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
908 echo
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
8ab705be 911 test -f $ac_srcdir/configure.in; then
b0b70d84
AC
912 echo
913 $ac_configure --help
914 else
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
916 fi
9bd6112c 917 cd $ac_popdir
b0b70d84
AC
918 done
919fi
920
921test -n "$ac_init_help" && exit 0
922if $ac_init_version; then
923 cat <<\_ACEOF
b0b70d84 924
8ab705be 925Copyright (C) 2003 Free Software Foundation, Inc.
b0b70d84
AC
926This configure script is free software; the Free Software Foundation
927gives unlimited permission to copy, distribute and modify it.
928_ACEOF
929 exit 0
930fi
931exec 5>config.log
932cat >&5 <<_ACEOF
933This file contains any messages produced by compilers while
934running configure, to aid debugging if configure makes a mistake.
935
f0d3c336 936It was created by $as_me, which was
8ab705be 937generated by GNU Autoconf 2.59. Invocation command line was
b0b70d84
AC
938
939 $ $0 $@
940
941_ACEOF
942{
943cat <<_ASUNAME
944## --------- ##
945## Platform. ##
946## --------- ##
947
948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949uname -m = `(uname -m) 2>/dev/null || echo unknown`
950uname -r = `(uname -r) 2>/dev/null || echo unknown`
951uname -s = `(uname -s) 2>/dev/null || echo unknown`
952uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
956
957/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
964
965_ASUNAME
966
967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968for as_dir in $PATH
969do
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973done
974
975} >&5
976
977cat >&5 <<_ACEOF
978
979
980## ----------- ##
981## Core tests. ##
982## ----------- ##
983
984_ACEOF
985
986
987# Keep a trace of the command line.
988# Strip out --no-create and --no-recursion so they do not pile up.
989# Strip out --silent because we don't want to record it for future runs.
990# Also quote any args containing shell meta-characters.
991# Make two passes to allow for proper duplicate-argument suppression.
992ac_configure_args=
993ac_configure_args0=
994ac_configure_args1=
995ac_sep=
996ac_must_keep_next=false
997for ac_pass in 1 2
998do
999 for ac_arg
1000 do
1001 case $ac_arg in
1002 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 continue ;;
1006 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008 esac
1009 case $ac_pass in
1010 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1011 2)
1012 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1013 if test $ac_must_keep_next = true; then
8ab705be 1014 ac_must_keep_next=false # Got value, back to normal.
b0b70d84 1015 else
8ab705be
KC
1016 case $ac_arg in
1017 *=* | --config-cache | -C | -disable-* | --disable-* \
1018 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1019 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1020 | -with-* | --with-* | -without-* | --without-* | --x)
1021 case "$ac_configure_args0 " in
1022 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1023 esac
1024 ;;
1025 -* ) ac_must_keep_next=true ;;
1026 esac
b0b70d84
AC
1027 fi
1028 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1029 # Get rid of the leading space.
1030 ac_sep=" "
1031 ;;
1032 esac
1033 done
1034done
1035$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1036$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1037
1038# When interrupted or exit'd, cleanup temporary files, and complete
1039# config.log. We remove comments because anyway the quotes in there
1040# would cause problems or look ugly.
1041# WARNING: Be sure not to use single quotes in there, as some shells,
1042# such as our DU 5.0 friend, will then `close' the trap.
1043trap 'exit_status=$?
1044 # Save into config.log some information that might help in debugging.
1045 {
1046 echo
1047
1048 cat <<\_ASBOX
1049## ---------------- ##
1050## Cache variables. ##
1051## ---------------- ##
1052_ASBOX
1053 echo
1054 # The following way of writing the cache mishandles newlines in values,
1055{
1056 (set) 2>&1 |
1057 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1058 *ac_space=\ *)
1059 sed -n \
8ab705be
KC
1060 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
b0b70d84
AC
1062 ;;
1063 *)
1064 sed -n \
8ab705be 1065 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b0b70d84
AC
1066 ;;
1067 esac;
1068}
1069 echo
1070
1071 cat <<\_ASBOX
1072## ----------------- ##
1073## Output variables. ##
1074## ----------------- ##
1075_ASBOX
1076 echo
1077 for ac_var in $ac_subst_vars
1078 do
1079 eval ac_val=$`echo $ac_var`
1080 echo "$ac_var='"'"'$ac_val'"'"'"
1081 done | sort
1082 echo
1083
1084 if test -n "$ac_subst_files"; then
1085 cat <<\_ASBOX
1086## ------------- ##
1087## Output files. ##
1088## ------------- ##
1089_ASBOX
1090 echo
1091 for ac_var in $ac_subst_files
1092 do
1093 eval ac_val=$`echo $ac_var`
8ab705be 1094 echo "$ac_var='"'"'$ac_val'"'"'"
b0b70d84
AC
1095 done | sort
1096 echo
1097 fi
1098
1099 if test -s confdefs.h; then
1100 cat <<\_ASBOX
1101## ----------- ##
1102## confdefs.h. ##
1103## ----------- ##
1104_ASBOX
1105 echo
1106 sed "/^$/d" confdefs.h | sort
1107 echo
1108 fi
1109 test "$ac_signal" != 0 &&
1110 echo "$as_me: caught signal $ac_signal"
1111 echo "$as_me: exit $exit_status"
1112 } >&5
8ab705be 1113 rm -f core *.core &&
b0b70d84
AC
1114 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1115 exit $exit_status
1116 ' 0
1117for ac_signal in 1 2 13 15; do
1118 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1119done
1120ac_signal=0
1121
1122# confdefs.h avoids OS command line length limits that DEFS can exceed.
1123rm -rf conftest* confdefs.h
1124# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1125echo >confdefs.h
1126
1127# Predefined preprocessor variables.
1128
1129cat >>confdefs.h <<_ACEOF
1130#define PACKAGE_NAME "$PACKAGE_NAME"
1131_ACEOF
1132
1133
1134cat >>confdefs.h <<_ACEOF
1135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1136_ACEOF
1137
1138
1139cat >>confdefs.h <<_ACEOF
1140#define PACKAGE_VERSION "$PACKAGE_VERSION"
1141_ACEOF
1142
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_STRING "$PACKAGE_STRING"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1151_ACEOF
1152
1153
1154# Let the site file select an alternate cache file if it wants to.
1155# Prefer explicitly selected file to automatically selected ones.
1156if test -z "$CONFIG_SITE"; then
1157 if test "x$prefix" != xNONE; then
1158 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1159 else
1160 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1161 fi
1162fi
1163for ac_site_file in $CONFIG_SITE; do
1164 if test -r "$ac_site_file"; then
1165 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1166echo "$as_me: loading site script $ac_site_file" >&6;}
1167 sed 's/^/| /' "$ac_site_file" >&5
1168 . "$ac_site_file"
1169 fi
1170done
1171
1172if test -r "$cache_file"; then
1173 # Some versions of bash will fail to source /dev/null (special
1174 # files actually), so we avoid doing that.
1175 if test -f "$cache_file"; then
1176 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1177echo "$as_me: loading cache $cache_file" >&6;}
1178 case $cache_file in
1179 [\\/]* | ?:[\\/]* ) . $cache_file;;
1180 *) . ./$cache_file;;
1181 esac
1182 fi
1183else
1184 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1185echo "$as_me: creating cache $cache_file" >&6;}
1186 >$cache_file
1187fi
1188
1189# Check that the precious variables saved in the cache have kept the same
1190# value.
1191ac_cache_corrupted=false
1192for ac_var in `(set) 2>&1 |
8ab705be 1193 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
b0b70d84
AC
1194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1195 eval ac_new_set=\$ac_env_${ac_var}_set
1196 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1197 eval ac_new_val="\$ac_env_${ac_var}_value"
1198 case $ac_old_set,$ac_new_set in
1199 set,)
1200 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1201echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1202 ac_cache_corrupted=: ;;
1203 ,set)
1204 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1205echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1206 ac_cache_corrupted=: ;;
1207 ,);;
1208 *)
1209 if test "x$ac_old_val" != "x$ac_new_val"; then
18c04407
RW
1210 # differences in whitespace do not lead to failure.
1211 ac_old_val_w=`echo x $ac_old_val`
1212 ac_new_val_w=`echo x $ac_new_val`
1213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1214 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
b0b70d84 1215echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18c04407
RW
1216 ac_cache_corrupted=:
1217 else
1218 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1219echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1220 eval $ac_var=\$ac_old_val
1221 fi
1222 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1223echo "$as_me: former value: \`$ac_old_val'" >&2;}
1224 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1225echo "$as_me: current value: \`$ac_new_val'" >&2;}
b0b70d84
AC
1226 fi;;
1227 esac
1228 # Pass precious variables to config.status.
1229 if test "$ac_new_set" = set; then
1230 case $ac_new_val in
1231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 *) ac_arg=$ac_var=$ac_new_val ;;
1234 esac
1235 case " $ac_configure_args " in
1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238 esac
1239 fi
1240done
1241if $ac_cache_corrupted; then
18c04407
RW
1242 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1243echo "$as_me: error: in \`$ac_pwd':" >&2;}
b0b70d84
AC
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1249fi
1250
1251ac_ext=c
1252ac_cpp='$CPP $CPPFLAGS'
1253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
b0b70d84
AC
1268
1269
1270
1271
1272
1273
1274
215cae7b 1275
b0b70d84 1276
80dab182 1277
80dab182 1278
b0b70d84 1279
b0b70d84
AC
1280
1281
9bd6112c 1282# Determine the host, build, and target systems
b0b70d84
AC
1283ac_aux_dir=
1284for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1285 if test -f $ac_dir/install-sh; then
1286 ac_aux_dir=$ac_dir
1287 ac_install_sh="$ac_aux_dir/install-sh -c"
1288 break
1289 elif test -f $ac_dir/install.sh; then
1290 ac_aux_dir=$ac_dir
1291 ac_install_sh="$ac_aux_dir/install.sh -c"
1292 break
1293 elif test -f $ac_dir/shtool; then
1294 ac_aux_dir=$ac_dir
1295 ac_install_sh="$ac_aux_dir/shtool install -c"
1296 break
1297 fi
1298done
1299if test -z "$ac_aux_dir"; then
1300 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1301echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1302 { (exit 1); exit 1; }; }
1303fi
1304ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1305ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1306ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1307
1308# Make sure we can run config.sub.
1309$ac_config_sub sun4 >/dev/null 2>&1 ||
1310 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1311echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1312 { (exit 1); exit 1; }; }
1313
1314echo "$as_me:$LINENO: checking build system type" >&5
1315echo $ECHO_N "checking build system type... $ECHO_C" >&6
1316if test "${ac_cv_build+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1318else
1319 ac_cv_build_alias=$build_alias
1320test -z "$ac_cv_build_alias" &&
1321 ac_cv_build_alias=`$ac_config_guess`
1322test -z "$ac_cv_build_alias" &&
1323 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1324echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1325 { (exit 1); exit 1; }; }
1326ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1328echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1329 { (exit 1); exit 1; }; }
1330
1331fi
1332echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1333echo "${ECHO_T}$ac_cv_build" >&6
1334build=$ac_cv_build
1335build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
1339
1340echo "$as_me:$LINENO: checking host system type" >&5
1341echo $ECHO_N "checking host system type... $ECHO_C" >&6
1342if test "${ac_cv_host+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1344else
1345 ac_cv_host_alias=$host_alias
1346test -z "$ac_cv_host_alias" &&
1347 ac_cv_host_alias=$ac_cv_build_alias
1348ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1350echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353fi
1354echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1355echo "${ECHO_T}$ac_cv_host" >&6
1356host=$ac_cv_host
1357host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362echo "$as_me:$LINENO: checking target system type" >&5
1363echo $ECHO_N "checking target system type... $ECHO_C" >&6
1364if test "${ac_cv_target+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366else
1367 ac_cv_target_alias=$target_alias
1368test "x$ac_cv_target_alias" = "x" &&
1369 ac_cv_target_alias=$ac_cv_host_alias
1370ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1372echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375fi
1376echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1377echo "${ECHO_T}$ac_cv_target" >&6
1378target=$ac_cv_target
1379target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384# The aliases save the names the user supplied, while $host etc.
1385# will get canonicalized.
1386test -n "$target_alias" &&
1387 test "$program_prefix$program_suffix$program_transform_name" = \
1388 NONENONEs,x,x, &&
1389 program_prefix=${target_alias}-
1390
9bd6112c
PB
1391# Determine the noncanonical target name, for directory use.
1392 case ${build_alias} in
1393 "") build_noncanonical=${build} ;;
1394 *) build_noncanonical=${build_alias} ;;
1395esac
1396
1397 case ${host_alias} in
1398 "") host_noncanonical=${build_noncanonical} ;;
1399 *) host_noncanonical=${host_alias} ;;
1400esac
1401
1402 case ${target_alias} in
1403 "") target_noncanonical=${host_noncanonical} ;;
1404 *) target_noncanonical=${target_alias} ;;
1405esac
1406
1407
1408
1409
1410# Determine the target- and build-specific subdirectories
1411
1412# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1413# have matching libraries, they should use host libraries: Makefile.tpl
1414# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1415# However, they still use the build modules, because the corresponding
1416# host modules (e.g. bison) are only built for the host when bootstrap
1417# finishes. So:
1418# - build_subdir is where we find build modules, and never changes.
1419# - build_libsubdir is where we find build libraries, and can be overridden.
1420
1421# Prefix 'build-' so this never conflicts with target_subdir.
1422build_subdir="build-${build_noncanonical}"
1423
1424# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1425if test "${with_build_libsubdir+set}" = set; then
1426 withval="$with_build_libsubdir"
1427 build_libsubdir="$withval"
1428else
1429 build_libsubdir="$build_subdir"
1430fi;
1431# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1432if ( test $srcdir = . && test -d gcc ) \
1433 || test -d $srcdir/../host-${host_noncanonical}; then
1434 host_subdir="host-${host_noncanonical}"
1435else
1436 host_subdir=.
1437fi
1438# No prefix.
1439target_subdir=${target_noncanonical}
1440
1441
1442# Command-line options.
1443# Very limited version of AC_MAINTAINER_MODE.
1444# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1445if test "${enable_maintainer_mode+set}" = set; then
1446 enableval="$enable_maintainer_mode"
1447 case ${enable_maintainer_mode} in
1448 yes) MAINT='' ;;
1449 no) MAINT='#' ;;
1450 *) { { echo "$as_me:$LINENO: error: --enable-maintainer-mode must be yes or no" >&5
1451echo "$as_me: error: --enable-maintainer-mode must be yes or no" >&2;}
1452 { (exit 1); exit 1; }; } ;;
1453 esac
1454 maintainer_mode=${enableval}
1455else
1456 MAINT='#'
1457fi;
1458
1459# Check whether --enable-shared or --disable-shared was given.
1460if test "${enable_shared+set}" = set; then
1461 enableval="$enable_shared"
1462
1463case $enable_shared in
1464 yes | no) ;;
1465 *)
1466 enable_shared=no
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1468 for pkg in $enableval; do
1469 case $pkg in
1470 ada | libada)
1471 enable_shared=yes ;;
1472 esac
1473 done
1474 IFS="$ac_save_ifs"
1475 ;;
1476esac
1477
1478else
1479 enable_shared=yes
1480fi;
1481
1482
80dab182
NN
1483# Need to pass this down for now :-P
1484echo "$as_me:$LINENO: checking whether ln -s works" >&5
1485echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1486LN_S=$as_ln_s
1487if test "$LN_S" = "ln -s"; then
1488 echo "$as_me:$LINENO: result: yes" >&5
1489echo "${ECHO_T}yes" >&6
b0b70d84 1490else
80dab182
NN
1491 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1492echo "${ECHO_T}no, using $LN_S" >&6
1493fi
1494
1495
1496# Determine x_ada_cflags
1497case $host in
1498 hppa*) x_ada_cflags=-mdisable-indexing ;;
1499 *) x_ada_cflags= ;;
1500esac
1501
1502
1503# Determine what to build for 'gnatlib'
1504if test $build = $target \
1505 && test ${enable_shared} = yes ; then
1506 # Note that build=target is almost certainly the wrong test; FIXME
1507 default_gnatlib_target="gnatlib-shared"
1508else
f206bf50 1509 default_gnatlib_target="gnatlib-plain"
80dab182
NN
1510fi
1511
1512
47ad7893
PB
1513ac_ext=c
1514ac_cpp='$CPP $CPPFLAGS'
1515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1517ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1520set dummy ${ac_tool_prefix}gcc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545CC=$ac_cv_prog_CC
1546if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "gcc", so it can be a program name with args.
1558set dummy gcc; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="gcc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 CC=$ac_ct_CC
1593else
1594 CC="$ac_cv_prog_CC"
1595fi
1596
1597if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1600set dummy ${ac_tool_prefix}cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 ac_cv_prog_CC="${ac_tool_prefix}cc"
1617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 break 2
1619 fi
1620done
1621done
1622
1623fi
1624fi
1625CC=$ac_cv_prog_CC
1626if test -n "$CC"; then
1627 echo "$as_me:$LINENO: result: $CC" >&5
1628echo "${ECHO_T}$CC" >&6
1629else
1630 echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634fi
1635if test -z "$ac_cv_prog_CC"; then
1636 ac_ct_CC=$CC
1637 # Extract the first word of "cc", so it can be a program name with args.
1638set dummy cc; ac_word=$2
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="cc"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
1667else
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
1670fi
1671
1672 CC=$ac_ct_CC
1673else
1674 CC="$ac_cv_prog_CC"
1675fi
1676
1677fi
1678if test -z "$CC"; then
1679 # Extract the first word of "cc", so it can be a program name with args.
1680set dummy cc; ac_word=$2
1681echo "$as_me:$LINENO: checking for $ac_word" >&5
1682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683if test "${ac_cv_prog_CC+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1688else
1689 ac_prog_rejected=no
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1698 ac_prog_rejected=yes
1699 continue
1700 fi
1701 ac_cv_prog_CC="cc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1704 fi
1705done
1706done
1707
1708if test $ac_prog_rejected = yes; then
1709 # We found a bogon in the path, so make sure we never use it.
1710 set dummy $ac_cv_prog_CC
1711 shift
1712 if test $# != 0; then
1713 # We chose a different compiler from the bogus one.
1714 # However, it has the same basename, so the bogon will be chosen
1715 # first if we set CC to just the basename; use the full file name.
1716 shift
1717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1718 fi
1719fi
1720fi
1721fi
1722CC=$ac_cv_prog_CC
1723if test -n "$CC"; then
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6
1726else
1727 echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
1730
1731fi
1732if test -z "$CC"; then
1733 if test -n "$ac_tool_prefix"; then
1734 for ac_prog in cl
1735 do
1736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1737set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1738echo "$as_me:$LINENO: checking for $ac_word" >&5
1739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740if test "${ac_cv_prog_CC+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1745else
1746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747for as_dir in $PATH
1748do
1749 IFS=$as_save_IFS
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 break 2
1756 fi
1757done
1758done
1759
1760fi
1761fi
1762CC=$ac_cv_prog_CC
1763if test -n "$CC"; then
1764 echo "$as_me:$LINENO: result: $CC" >&5
1765echo "${ECHO_T}$CC" >&6
1766else
1767 echo "$as_me:$LINENO: result: no" >&5
1768echo "${ECHO_T}no" >&6
1769fi
1770
1771 test -n "$CC" && break
1772 done
1773fi
1774if test -z "$CC"; then
1775 ac_ct_CC=$CC
1776 for ac_prog in cl
1777do
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779set dummy $ac_prog; ac_word=$2
1780echo "$as_me:$LINENO: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 if test -n "$ac_ct_CC"; then
1786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787else
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_ac_ct_CC="$ac_prog"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1798 fi
1799done
1800done
1801
1802fi
1803fi
1804ac_ct_CC=$ac_cv_prog_ac_ct_CC
1805if test -n "$ac_ct_CC"; then
1806 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1807echo "${ECHO_T}$ac_ct_CC" >&6
1808else
1809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813 test -n "$ac_ct_CC" && break
1814done
1815
1816 CC=$ac_ct_CC
1817fi
1818
1819fi
1820
1821
1822test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1823echo "$as_me: error: in \`$ac_pwd':" >&2;}
1824{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1825See \`config.log' for more details." >&5
1826echo "$as_me: error: no acceptable C compiler found in \$PATH
1827See \`config.log' for more details." >&2;}
1828 { (exit 1); exit 1; }; }; }
1829
1830# Provide some information about the compiler.
1831echo "$as_me:$LINENO:" \
1832 "checking for C compiler version" >&5
1833ac_compiler=`set X $ac_compile; echo $2`
1834{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1835 (eval $ac_compiler --version </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1840 (eval $ac_compiler -v </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1845 (eval $ac_compiler -V </dev/null >&5) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849
1850cat >conftest.$ac_ext <<_ACEOF
1851/* confdefs.h. */
1852_ACEOF
1853cat confdefs.h >>conftest.$ac_ext
1854cat >>conftest.$ac_ext <<_ACEOF
1855/* end confdefs.h. */
1856
1857int
1858main ()
1859{
1860
1861 ;
1862 return 0;
1863}
1864_ACEOF
1865ac_clean_files_save=$ac_clean_files
1866ac_clean_files="$ac_clean_files a.out a.exe b.out"
1867# Try to create an executable without -o first, disregard a.out.
1868# It will help us diagnose broken compilers, and finding out an intuition
1869# of exeext.
1870echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1871echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1872ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1873if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1874 (eval $ac_link_default) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; then
1878 # Find the output, starting from the most likely. This scheme is
1879# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880# resort.
1881
1882# Be careful to initialize this variable, since it used to be cached.
1883# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1884ac_cv_exeext=
1885# b.out is created by i960 compilers.
1886for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1887do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891 ;;
1892 conftest.$ac_ext )
1893 # This is the source file.
1894 ;;
1895 [ab].out )
1896 # We found the default executable, but exeext='' is most
1897 # certainly right.
1898 break;;
1899 *.* )
1900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 # FIXME: I believe we export ac_cv_exeext for Libtool,
1902 # but it would be cool to find out if it's true. Does anybody
1903 # maintain Libtool? --akim.
1904 export ac_cv_exeext
1905 break;;
1906 * )
1907 break;;
1908 esac
1909done
1910else
1911 echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1915echo "$as_me: error: in \`$ac_pwd':" >&2;}
1916{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1917See \`config.log' for more details." >&5
1918echo "$as_me: error: C compiler cannot create executables
1919See \`config.log' for more details." >&2;}
1920 { (exit 77); exit 77; }; }; }
1921fi
1922
1923ac_exeext=$ac_cv_exeext
1924echo "$as_me:$LINENO: result: $ac_file" >&5
1925echo "${ECHO_T}$ac_file" >&6
1926
1927# Check the compiler produces executables we can run. If not, either
1928# the compiler is broken, or we cross compile.
1929echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1930echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1931# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1932# If not cross compiling, check that we can run a simple program.
1933if test "$cross_compiling" != yes; then
1934 if { ac_try='./$ac_file'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
1940 cross_compiling=no
1941 else
1942 if test "$cross_compiling" = maybe; then
1943 cross_compiling=yes
1944 else
1945 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1946echo "$as_me: error: in \`$ac_pwd':" >&2;}
1947{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948If you meant to cross compile, use \`--host'.
1949See \`config.log' for more details." >&5
1950echo "$as_me: error: cannot run C compiled programs.
1951If you meant to cross compile, use \`--host'.
1952See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }; }
1954 fi
1955 fi
1956fi
1957echo "$as_me:$LINENO: result: yes" >&5
1958echo "${ECHO_T}yes" >&6
1959
1960rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961ac_clean_files=$ac_clean_files_save
1962# Check the compiler produces executables we can run. If not, either
1963# the compiler is broken, or we cross compile.
1964echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967echo "${ECHO_T}$cross_compiling" >&6
1968
1969echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1973 ac_status=$?
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978# work properly (i.e., refer to `conftest.exe'), while it won't with
1979# `rm'.
1980for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1982 case $ac_file in
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 export ac_cv_exeext
1986 break;;
1987 * ) break;;
1988 esac
1989done
1990else
1991 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1992echo "$as_me: error: in \`$ac_pwd':" >&2;}
1993{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994See \`config.log' for more details." >&5
1995echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }; }
1998fi
1999
2000rm -f conftest$ac_cv_exeext
2001echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002echo "${ECHO_T}$ac_cv_exeext" >&6
2003
2004rm -f conftest.$ac_ext
2005EXEEXT=$ac_cv_exeext
2006ac_exeext=$EXEEXT
2007echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012 cat >conftest.$ac_ext <<_ACEOF
2013/* confdefs.h. */
2014_ACEOF
2015cat confdefs.h >>conftest.$ac_ext
2016cat >>conftest.$ac_ext <<_ACEOF
2017/* end confdefs.h. */
2018
2019int
2020main ()
2021{
2022
2023 ;
2024 return 0;
2025}
2026_ACEOF
2027rm -f conftest.o conftest.obj
2028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034 case $ac_file in
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037 break;;
2038 esac
2039done
2040else
2041 echo "$as_me: failed program was:" >&5
2042sed 's/^/| /' conftest.$ac_ext >&5
2043
2044{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047See \`config.log' for more details." >&5
2048echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }; }
2051fi
2052
2053rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054fi
2055echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056echo "${ECHO_T}$ac_cv_objext" >&6
2057OBJEXT=$ac_cv_objext
2058ac_objext=$OBJEXT
2059echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064 cat >conftest.$ac_ext <<_ACEOF
2065/* confdefs.h. */
2066_ACEOF
2067cat confdefs.h >>conftest.$ac_ext
2068cat >>conftest.$ac_ext <<_ACEOF
2069/* end confdefs.h. */
2070
2071int
2072main ()
2073{
2074#ifndef __GNUC__
2075 choke me
2076#endif
2077
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082rm -f conftest.$ac_objext
2083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2085 ac_status=$?
2086 grep -v '^ *+' conftest.er1 >conftest.err
2087 rm -f conftest.er1
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 ac_compiler_gnu=yes
2105else
2106 echo "$as_me: failed program was:" >&5
2107sed 's/^/| /' conftest.$ac_ext >&5
2108
2109ac_compiler_gnu=no
2110fi
2111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112ac_cv_c_compiler_gnu=$ac_compiler_gnu
2113
2114fi
2115echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117GCC=`test $ac_compiler_gnu = yes && echo yes`
2118ac_test_CFLAGS=${CFLAGS+set}
2119ac_save_CFLAGS=$CFLAGS
2120CFLAGS="-g"
2121echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126 cat >conftest.$ac_ext <<_ACEOF
2127/* confdefs.h. */
2128_ACEOF
2129cat confdefs.h >>conftest.$ac_ext
2130cat >>conftest.$ac_ext <<_ACEOF
2131/* end confdefs.h. */
2132
2133int
2134main ()
2135{
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2144 ac_status=$?
2145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2163 ac_cv_prog_cc_g=yes
2164else
2165 echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168ac_cv_prog_cc_g=no
2169fi
2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171fi
2172echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174if test "$ac_test_CFLAGS" = set; then
2175 CFLAGS=$ac_save_CFLAGS
2176elif test $ac_cv_prog_cc_g = yes; then
2177 if test "$GCC" = yes; then
2178 CFLAGS="-g -O2"
2179 else
2180 CFLAGS="-g"
2181 fi
2182else
2183 if test "$GCC" = yes; then
2184 CFLAGS="-O2"
2185 else
2186 CFLAGS=
2187 fi
2188fi
2189echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194 ac_cv_prog_cc_stdc=no
2195ac_save_CC=$CC
2196cat >conftest.$ac_ext <<_ACEOF
2197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
2202#include <stdarg.h>
2203#include <stdio.h>
2204#include <sys/types.h>
2205#include <sys/stat.h>
2206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2207struct buf { int x; };
2208FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209static char *e (p, i)
2210 char **p;
2211 int i;
2212{
2213 return p[i];
2214}
2215static char *f (char * (*g) (char **, int), char **p, ...)
2216{
2217 char *s;
2218 va_list v;
2219 va_start (v,p);
2220 s = g (p, va_arg (v,int));
2221 va_end (v);
2222 return s;
2223}
2224
2225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2226 function prototypes and stuff, but not '\xHH' hex character constants.
2227 These don't provoke an error unfortunately, instead are silently treated
2228 as 'x'. The following induces an error, until -std1 is added to get
2229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2230 array size at least. It's necessary to write '\x00'==0 to get something
2231 that's true only with -std1. */
2232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2233
2234int test (int i, double x);
2235struct s1 {int (*f) (int a);};
2236struct s2 {int (*f) (double a);};
2237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2238int argc;
2239char **argv;
2240int
2241main ()
2242{
2243return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248# Don't try gcc -ansi; that turns off useful extensions and
2249# breaks some systems' header files.
2250# AIX -qlanglvl=ansi
2251# Ultrix and OSF/1 -std1
2252# HP-UX 10.20 and later -Ae
2253# HP-UX older versions -Aa -D_HPUX_SOURCE
2254# SVR4 -Xc -D__EXTENSIONS__
2255for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2256do
2257 CC="$ac_save_CC $ac_arg"
2258 rm -f conftest.$ac_objext
2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2261 ac_status=$?
2262 grep -v '^ *+' conftest.er1 >conftest.err
2263 rm -f conftest.er1
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 ac_cv_prog_cc_stdc=$ac_arg
2281break
2282else
2283 echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286fi
2287rm -f conftest.err conftest.$ac_objext
2288done
2289rm -f conftest.$ac_ext conftest.$ac_objext
2290CC=$ac_save_CC
2291
2292fi
2293
2294case "x$ac_cv_prog_cc_stdc" in
2295 x|xno)
2296 echo "$as_me:$LINENO: result: none needed" >&5
2297echo "${ECHO_T}none needed" >&6 ;;
2298 *)
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301 CC="$CC $ac_cv_prog_cc_stdc" ;;
2302esac
2303
2304# Some people use a C++ compiler to compile C. Since we use `exit',
2305# in C++ we need to declare it. In case someone uses the same compiler
2306# for both compiling C and C++ we need to have the C++ compiler decide
2307# the declaration of exit, since it's the most demanding environment.
2308cat >conftest.$ac_ext <<_ACEOF
2309#ifndef __cplusplus
2310 choke me
2311#endif
2312_ACEOF
2313rm -f conftest.$ac_objext
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 for ac_declaration in \
2336 '' \
2337 'extern "C" void std::exit (int) throw (); using std::exit;' \
2338 'extern "C" void std::exit (int); using std::exit;' \
2339 'extern "C" void exit (int) throw ();' \
2340 'extern "C" void exit (int);' \
2341 'void exit (int);'
2342do
2343 cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h. */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h. */
2349$ac_declaration
2350#include <stdlib.h>
2351int
2352main ()
2353{
2354exit (42);
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359rm -f conftest.$ac_objext
2360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2362 ac_status=$?
2363 grep -v '^ *+' conftest.er1 >conftest.err
2364 rm -f conftest.er1
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 (eval $ac_try) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2381 :
2382else
2383 echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386continue
2387fi
2388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h. */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h. */
2395$ac_declaration
2396int
2397main ()
2398{
2399exit (42);
2400 ;
2401 return 0;
2402}
2403_ACEOF
2404rm -f conftest.$ac_objext
2405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2407 ac_status=$?
2408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag"
2414 || test ! -s conftest.err'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 break
2427else
2428 echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431fi
2432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2433done
2434rm -f conftest*
2435if test -n "$ac_declaration"; then
2436 echo '#ifdef __cplusplus' >>confdefs.h
2437 echo $ac_declaration >>confdefs.h
2438 echo '#endif' >>confdefs.h
2439fi
2440
2441else
2442 echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445fi
2446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447ac_ext=c
2448ac_cpp='$CPP $CPPFLAGS'
2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453warn_cflags=
2454if test "x$GCC" = "xyes"; then
2455 warn_cflags='$(GCC_WARN_CFLAGS)'
2456fi
2457
2458
80dab182
NN
2459# Output: create a Makefile.
2460 ac_config_files="$ac_config_files Makefile"
b0b70d84
AC
2461
2462
2463cat >confcache <<\_ACEOF
2464# This file is a shell script that caches the results of configure
2465# tests run on this system so they can be shared between configure
2466# scripts and configure runs, see configure's option --config-cache.
2467# It is not useful on other systems. If it contains results you don't
2468# want to keep, you may remove or edit it.
2469#
2470# config.status only pays attention to the cache file if you give it
2471# the --recheck option to rerun configure.
2472#
2473# `ac_cv_env_foo' variables (set or unset) will be overridden when
2474# loading this file, other *unset* `ac_cv_foo' will be assigned the
2475# following values.
2476
2477_ACEOF
2478
2479# The following way of writing the cache mishandles newlines in values,
2480# but we know of no workaround that is simple, portable, and efficient.
2481# So, don't put newlines in cache variables' values.
2482# Ultrix sh set writes to stderr and can't be redirected directly,
2483# and sets the high bit in the cache file unless we assign to the vars.
2484{
2485 (set) 2>&1 |
2486 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2487 *ac_space=\ *)
2488 # `set' does not quote correctly, so add quotes (double-quote
2489 # substitution turns \\\\ into \\, and sed turns \\ into \).
2490 sed -n \
8ab705be
KC
2491 "s/'/'\\\\''/g;
2492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b0b70d84
AC
2493 ;;
2494 *)
2495 # `set' quotes correctly as required by POSIX, so do not add quotes.
2496 sed -n \
8ab705be 2497 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
b0b70d84
AC
2498 ;;
2499 esac;
2500} |
2501 sed '
2502 t clear
2503 : clear
2504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2505 t end
2506 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2507 : end' >>confcache
2508if diff $cache_file confcache >/dev/null 2>&1; then :; else
2509 if test -w $cache_file; then
2510 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2511 cat confcache >$cache_file
2512 else
2513 echo "not updating unwritable cache $cache_file"
2514 fi
2515fi
2516rm -f confcache
2517
2518test "x$prefix" = xNONE && prefix=$ac_default_prefix
2519# Let make expand exec_prefix.
2520test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2521
2522# VPATH may cause trouble with some makes, so we remove $(srcdir),
2523# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2524# trailing colons and then remove the whole line if VPATH becomes empty
2525# (actually we leave an empty line to preserve line numbers).
2526if test "x$srcdir" = x.; then
8ab705be 2527 ac_vpsub='/^[ ]*VPATH[ ]*=/{
b0b70d84
AC
2528s/:*\$(srcdir):*/:/;
2529s/:*\${srcdir}:*/:/;
2530s/:*@srcdir@:*/:/;
8ab705be 2531s/^\([^=]*=[ ]*\):*/\1/;
b0b70d84 2532s/:*$//;
8ab705be 2533s/^[^=]*=[ ]*$//;
b0b70d84
AC
2534}'
2535fi
2536
2537# Transform confdefs.h into DEFS.
2538# Protect against shell expansion while executing Makefile rules.
2539# Protect against Makefile macro expansion.
2540#
2541# If the first sed substitution is executed (which looks for macros that
2542# take arguments), then we branch to the quote section. Otherwise,
2543# look for a macro that doesn't take arguments.
2544cat >confdef2opt.sed <<\_ACEOF
2545t clear
2546: clear
8ab705be 2547s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
b0b70d84 2548t quote
8ab705be 2549s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
b0b70d84
AC
2550t quote
2551d
2552: quote
8ab705be 2553s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
b0b70d84
AC
2554s,\[,\\&,g
2555s,\],\\&,g
2556s,\$,$$,g
2557p
2558_ACEOF
2559# We use echo to avoid assuming a particular line-breaking character.
2560# The extra dot is to prevent the shell from consuming trailing
2561# line-breaks from the sub-command output. A line-break within
2562# single-quotes doesn't work because, if this script is created in a
2563# platform that uses two characters for line-breaks (e.g., DOS), tr
2564# would break.
2565ac_LF_and_DOT=`echo; echo .`
2566DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2567rm -f confdef2opt.sed
2568
2569
2570ac_libobjs=
2571ac_ltlibobjs=
2572for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2573 # 1. Remove the extension, and $U if already installed.
2574 ac_i=`echo "$ac_i" |
8ab705be 2575 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
b0b70d84
AC
2576 # 2. Add them.
2577 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2578 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2579done
2580LIBOBJS=$ac_libobjs
2581
2582LTLIBOBJS=$ac_ltlibobjs
2583
2584
2585
2586: ${CONFIG_STATUS=./config.status}
2587ac_clean_files_save=$ac_clean_files
2588ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2589{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2590echo "$as_me: creating $CONFIG_STATUS" >&6;}
2591cat >$CONFIG_STATUS <<_ACEOF
2592#! $SHELL
2593# Generated by $as_me.
2594# Run this file to recreate the current configuration.
2595# Compiler output produced by configure, useful for debugging
2596# configure, is in config.log if it exists.
2597
2598debug=false
2599ac_cs_recheck=false
2600ac_cs_silent=false
2601SHELL=\${CONFIG_SHELL-$SHELL}
2602_ACEOF
2603
2604cat >>$CONFIG_STATUS <<\_ACEOF
2605## --------------------- ##
2606## M4sh Initialization. ##
2607## --------------------- ##
2608
2609# Be Bourne compatible
2610if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2611 emulate sh
2612 NULLCMD=:
2613 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2614 # is contrary to our usage. Disable this feature.
2615 alias -g '${1+"$@"}'='"$@"'
2616elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2617 set -o posix
2618fi
8ab705be 2619DUALCASE=1; export DUALCASE # for MKS sh
b0b70d84
AC
2620
2621# Support unset when possible.
8ab705be 2622if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
b0b70d84
AC
2623 as_unset=unset
2624else
2625 as_unset=false
2626fi
2627
2628
2629# Work around bugs in pre-3.0 UWIN ksh.
2630$as_unset ENV MAIL MAILPATH
2631PS1='$ '
2632PS2='> '
2633PS4='+ '
2634
2635# NLS nuisances.
2636for as_var in \
2637 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2638 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2639 LC_TELEPHONE LC_TIME
2640do
8ab705be 2641 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
b0b70d84
AC
2642 eval $as_var=C; export $as_var
2643 else
2644 $as_unset $as_var
2645 fi
2646done
2647
2648# Required to use basename.
2649if expr a : '\(a\)' >/dev/null 2>&1; then
2650 as_expr=expr
2651else
2652 as_expr=false
2653fi
2654
2655if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2656 as_basename=basename
2657else
2658 as_basename=false
2659fi
2660
2661
2662# Name of the executable.
2663as_me=`$as_basename "$0" ||
2664$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2665 X"$0" : 'X\(//\)$' \| \
2666 X"$0" : 'X\(/\)$' \| \
2667 . : '\(.\)' 2>/dev/null ||
2668echo X/"$0" |
2669 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2670 /^X\/\(\/\/\)$/{ s//\1/; q; }
2671 /^X\/\(\/\).*/{ s//\1/; q; }
2672 s/.*/./; q'`
2673
2674
2675# PATH needs CR, and LINENO needs CR and PATH.
2676# Avoid depending upon Character Ranges.
2677as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2679as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2680as_cr_digits='0123456789'
2681as_cr_alnum=$as_cr_Letters$as_cr_digits
2682
2683# The user is always right.
2684if test "${PATH_SEPARATOR+set}" != set; then
2685 echo "#! /bin/sh" >conf$$.sh
2686 echo "exit 0" >>conf$$.sh
2687 chmod +x conf$$.sh
2688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2689 PATH_SEPARATOR=';'
2690 else
2691 PATH_SEPARATOR=:
2692 fi
2693 rm -f conf$$.sh
2694fi
2695
2696
2697 as_lineno_1=$LINENO
2698 as_lineno_2=$LINENO
2699 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2700 test "x$as_lineno_1" != "x$as_lineno_2" &&
2701 test "x$as_lineno_3" = "x$as_lineno_2" || {
2702 # Find who we are. Look in the path if we contain no path at all
2703 # relative or not.
2704 case $0 in
2705 *[\\/]* ) as_myself=$0 ;;
2706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2712done
2713
2714 ;;
2715 esac
2716 # We did not find ourselves, most probably we were run as `sh COMMAND'
2717 # in which case we are not to be found in the path.
2718 if test "x$as_myself" = x; then
2719 as_myself=$0
2720 fi
2721 if test ! -f "$as_myself"; then
2722 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2723echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2724 { (exit 1); exit 1; }; }
2725 fi
2726 case $CONFIG_SHELL in
2727 '')
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for as_base in sh bash ksh sh5; do
2734 case $as_dir in
2735 /*)
2736 if ("$as_dir/$as_base" -c '
2737 as_lineno_1=$LINENO
2738 as_lineno_2=$LINENO
2739 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2740 test "x$as_lineno_1" != "x$as_lineno_2" &&
2741 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2742 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2743 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2744 CONFIG_SHELL=$as_dir/$as_base
2745 export CONFIG_SHELL
2746 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2747 fi;;
2748 esac
2749 done
2750done
2751;;
2752 esac
2753
2754 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2755 # uniformly replaced by the line number. The first 'sed' inserts a
2756 # line-number line before each line; the second 'sed' does the real
2757 # work. The second script uses 'N' to pair each line-number line
2758 # with the numbered line, and appends trailing '-' during
2759 # substitution so that $LINENO is not a special case at line end.
2760 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2761 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2762 sed '=' <$as_myself |
2763 sed '
2764 N
2765 s,$,-,
2766 : loop
2767 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2768 t loop
2769 s,-$,,
2770 s,^['$as_cr_digits']*\n,,
2771 ' >$as_me.lineno &&
2772 chmod +x $as_me.lineno ||
2773 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2774echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2775 { (exit 1); exit 1; }; }
2776
2777 # Don't try to exec as it changes $[0], causing all sort of problems
2778 # (the dirname of $[0] is not the place where we might find the
2779 # original and so on. Autoconf is especially sensible to this).
2780 . ./$as_me.lineno
2781 # Exit status is that of the last command.
2782 exit
2783}
2784
2785
2786case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2787 *c*,-n*) ECHO_N= ECHO_C='
2788' ECHO_T=' ' ;;
2789 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2790 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2791esac
2792
2793if expr a : '\(a\)' >/dev/null 2>&1; then
2794 as_expr=expr
2795else
2796 as_expr=false
2797fi
2798
2799rm -f conf$$ conf$$.exe conf$$.file
2800echo >conf$$.file
2801if ln -s conf$$.file conf$$ 2>/dev/null; then
2802 # We could just check for DJGPP; but this test a) works b) is more generic
2803 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2804 if test -f conf$$.exe; then
2805 # Don't use ln at all; we don't have any links
2806 as_ln_s='cp -p'
2807 else
2808 as_ln_s='ln -s'
2809 fi
2810elif ln conf$$.file conf$$ 2>/dev/null; then
2811 as_ln_s=ln
2812else
2813 as_ln_s='cp -p'
2814fi
2815rm -f conf$$ conf$$.exe conf$$.file
2816
2817if mkdir -p . 2>/dev/null; then
2818 as_mkdir_p=:
2819else
8ab705be 2820 test -d ./-p && rmdir ./-p
b0b70d84
AC
2821 as_mkdir_p=false
2822fi
2823
2824as_executable_p="test -f"
2825
2826# Sed expression to map a string onto a valid CPP name.
8ab705be 2827as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
b0b70d84
AC
2828
2829# Sed expression to map a string onto a valid variable name.
8ab705be 2830as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
b0b70d84
AC
2831
2832
2833# IFS
2834# We need space, tab and new line, in precisely that order.
2835as_nl='
2836'
2837IFS=" $as_nl"
2838
2839# CDPATH.
2840$as_unset CDPATH
2841
2842exec 6>&1
2843
2844# Open the log real soon, to keep \$[0] and so on meaningful, and to
2845# report actual input values of CONFIG_FILES etc. instead of their
2846# values after options handling. Logging --version etc. is OK.
2847exec 5>>config.log
2848{
2849 echo
2850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2851## Running $as_me. ##
2852_ASBOX
2853} >&5
2854cat >&5 <<_CSEOF
2855
f0d3c336 2856This file was extended by $as_me, which was
8ab705be 2857generated by GNU Autoconf 2.59. Invocation command line was
b0b70d84
AC
2858
2859 CONFIG_FILES = $CONFIG_FILES
2860 CONFIG_HEADERS = $CONFIG_HEADERS
2861 CONFIG_LINKS = $CONFIG_LINKS
2862 CONFIG_COMMANDS = $CONFIG_COMMANDS
2863 $ $0 $@
2864
2865_CSEOF
2866echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2867echo >&5
2868_ACEOF
2869
2870# Files that config.status was made for.
2871if test -n "$ac_config_files"; then
2872 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2873fi
2874
2875if test -n "$ac_config_headers"; then
2876 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2877fi
2878
2879if test -n "$ac_config_links"; then
2880 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2881fi
2882
2883if test -n "$ac_config_commands"; then
2884 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2885fi
2886
2887cat >>$CONFIG_STATUS <<\_ACEOF
2888
2889ac_cs_usage="\
2890\`$as_me' instantiates files from templates according to the
2891current configuration.
2892
2893Usage: $0 [OPTIONS] [FILE]...
2894
2895 -h, --help print this help, then exit
2896 -V, --version print version number, then exit
2897 -q, --quiet do not print progress messages
2898 -d, --debug don't remove temporary files
2899 --recheck update $as_me by reconfiguring in the same conditions
2900 --file=FILE[:TEMPLATE]
8ab705be 2901 instantiate the configuration file FILE
b0b70d84
AC
2902
2903Configuration files:
2904$config_files
2905
2906Report bugs to <bug-autoconf@gnu.org>."
2907_ACEOF
2908
2909cat >>$CONFIG_STATUS <<_ACEOF
2910ac_cs_version="\\
f0d3c336 2911config.status
8ab705be 2912configured by $0, generated by GNU Autoconf 2.59,
b0b70d84
AC
2913 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2914
8ab705be 2915Copyright (C) 2003 Free Software Foundation, Inc.
b0b70d84
AC
2916This config.status script is free software; the Free Software Foundation
2917gives unlimited permission to copy, distribute and modify it."
2918srcdir=$srcdir
2919_ACEOF
2920
2921cat >>$CONFIG_STATUS <<\_ACEOF
2922# If no file are specified by the user, then we need to provide default
2923# value. By we need to know if files were specified by the user.
2924ac_need_defaults=:
2925while test $# != 0
2926do
2927 case $1 in
2928 --*=*)
2929 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2930 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2931 ac_shift=:
2932 ;;
2933 -*)
2934 ac_option=$1
2935 ac_optarg=$2
2936 ac_shift=shift
2937 ;;
2938 *) # This is not an option, so the user has probably given explicit
2939 # arguments.
2940 ac_option=$1
2941 ac_need_defaults=false;;
2942 esac
2943
2944 case $ac_option in
2945 # Handling of the options.
2946_ACEOF
2947cat >>$CONFIG_STATUS <<\_ACEOF
2948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2949 ac_cs_recheck=: ;;
2950 --version | --vers* | -V )
2951 echo "$ac_cs_version"; exit 0 ;;
2952 --he | --h)
2953 # Conflict between --help and --header
2954 { { echo "$as_me:$LINENO: error: ambiguous option: $1
2955Try \`$0 --help' for more information." >&5
2956echo "$as_me: error: ambiguous option: $1
2957Try \`$0 --help' for more information." >&2;}
2958 { (exit 1); exit 1; }; };;
2959 --help | --hel | -h )
2960 echo "$ac_cs_usage"; exit 0 ;;
2961 --debug | --d* | -d )
2962 debug=: ;;
2963 --file | --fil | --fi | --f )
2964 $ac_shift
2965 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2966 ac_need_defaults=false;;
2967 --header | --heade | --head | --hea )
2968 $ac_shift
2969 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2970 ac_need_defaults=false;;
2971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2973 ac_cs_silent=: ;;
2974
2975 # This is an error.
2976 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2977Try \`$0 --help' for more information." >&5
2978echo "$as_me: error: unrecognized option: $1
2979Try \`$0 --help' for more information." >&2;}
2980 { (exit 1); exit 1; }; } ;;
2981
2982 *) ac_config_targets="$ac_config_targets $1" ;;
2983
2984 esac
2985 shift
2986done
2987
2988ac_configure_extra_args=
2989
2990if $ac_cs_silent; then
2991 exec 6>/dev/null
2992 ac_configure_extra_args="$ac_configure_extra_args --silent"
2993fi
2994
2995_ACEOF
2996cat >>$CONFIG_STATUS <<_ACEOF
2997if \$ac_cs_recheck; then
2998 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2999 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3000fi
3001
3002_ACEOF
3003
3004
3005
3006
3007
3008cat >>$CONFIG_STATUS <<\_ACEOF
3009for ac_config_target in $ac_config_targets
3010do
3011 case "$ac_config_target" in
3012 # Handling of arguments.
3013 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3015echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3016 { (exit 1); exit 1; }; };;
3017 esac
3018done
3019
3020# If the user did not use the arguments to specify the items to instantiate,
3021# then the envvar interface is used. Set only those that are not.
3022# We use the long form for the default assignment because of an extremely
3023# bizarre bug on SunOS 4.1.3.
3024if $ac_need_defaults; then
3025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3026fi
3027
3028# Have a temporary directory for convenience. Make it in the build tree
3029# simply because there is no reason to put it here, and in addition,
3030# creating and moving files from /tmp can sometimes cause problems.
3031# Create a temporary directory, and hook for its removal unless debugging.
3032$debug ||
3033{
3034 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3035 trap '{ (exit 1); exit 1; }' 1 2 13 15
3036}
3037
3038# Create a (secure) tmp directory for tmp files.
3039
3040{
3041 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3042 test -n "$tmp" && test -d "$tmp"
3043} ||
3044{
3045 tmp=./confstat$$-$RANDOM
3046 (umask 077 && mkdir $tmp)
3047} ||
3048{
3049 echo "$me: cannot create a temporary directory in ." >&2
3050 { (exit 1); exit 1; }
3051}
3052
3053_ACEOF
3054
3055cat >>$CONFIG_STATUS <<_ACEOF
3056
3057#
3058# CONFIG_FILES section.
3059#
3060
3061# No need to generate the scripts if there are no CONFIG_FILES.
3062# This happens for instance when ./config.status config.h
3063if test -n "\$CONFIG_FILES"; then
3064 # Protect against being on the right side of a sed subst in config.status.
3065 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3066 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3067s,@SHELL@,$SHELL,;t t
3068s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3069s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3070s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3071s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3072s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3073s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3074s,@exec_prefix@,$exec_prefix,;t t
3075s,@prefix@,$prefix,;t t
3076s,@program_transform_name@,$program_transform_name,;t t
3077s,@bindir@,$bindir,;t t
3078s,@sbindir@,$sbindir,;t t
3079s,@libexecdir@,$libexecdir,;t t
3080s,@datadir@,$datadir,;t t
3081s,@sysconfdir@,$sysconfdir,;t t
3082s,@sharedstatedir@,$sharedstatedir,;t t
3083s,@localstatedir@,$localstatedir,;t t
3084s,@libdir@,$libdir,;t t
3085s,@includedir@,$includedir,;t t
3086s,@oldincludedir@,$oldincludedir,;t t
3087s,@infodir@,$infodir,;t t
3088s,@mandir@,$mandir,;t t
3089s,@build_alias@,$build_alias,;t t
3090s,@host_alias@,$host_alias,;t t
3091s,@target_alias@,$target_alias,;t t
3092s,@DEFS@,$DEFS,;t t
3093s,@ECHO_C@,$ECHO_C,;t t
3094s,@ECHO_N@,$ECHO_N,;t t
3095s,@ECHO_T@,$ECHO_T,;t t
3096s,@LIBS@,$LIBS,;t t
b0b70d84
AC
3097s,@build@,$build,;t t
3098s,@build_cpu@,$build_cpu,;t t
3099s,@build_vendor@,$build_vendor,;t t
3100s,@build_os@,$build_os,;t t
3101s,@host@,$host,;t t
3102s,@host_cpu@,$host_cpu,;t t
3103s,@host_vendor@,$host_vendor,;t t
3104s,@host_os@,$host_os,;t t
3105s,@target@,$target,;t t
3106s,@target_cpu@,$target_cpu,;t t
3107s,@target_vendor@,$target_vendor,;t t
3108s,@target_os@,$target_os,;t t
9bd6112c
PB
3109s,@target_noncanonical@,$target_noncanonical,;t t
3110s,@build_libsubdir@,$build_libsubdir,;t t
3111s,@build_subdir@,$build_subdir,;t t
3112s,@host_subdir@,$host_subdir,;t t
3113s,@target_subdir@,$target_subdir,;t t
3114s,@MAINT@,$MAINT,;t t
3115s,@enable_shared@,$enable_shared,;t t
80dab182
NN
3116s,@LN_S@,$LN_S,;t t
3117s,@x_ada_cflags@,$x_ada_cflags,;t t
3118s,@default_gnatlib_target@,$default_gnatlib_target,;t t
47ad7893
PB
3119s,@CC@,$CC,;t t
3120s,@CFLAGS@,$CFLAGS,;t t
3121s,@LDFLAGS@,$LDFLAGS,;t t
3122s,@CPPFLAGS@,$CPPFLAGS,;t t
3123s,@ac_ct_CC@,$ac_ct_CC,;t t
3124s,@EXEEXT@,$EXEEXT,;t t
3125s,@OBJEXT@,$OBJEXT,;t t
3126s,@warn_cflags@,$warn_cflags,;t t
b0b70d84
AC
3127s,@LIBOBJS@,$LIBOBJS,;t t
3128s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3129CEOF
3130
3131_ACEOF
3132
3133 cat >>$CONFIG_STATUS <<\_ACEOF
3134 # Split the substitutions into bite-sized pieces for seds with
3135 # small command number limits, like on Digital OSF/1 and HP-UX.
3136 ac_max_sed_lines=48
3137 ac_sed_frag=1 # Number of current file.
3138 ac_beg=1 # First line for current file.
3139 ac_end=$ac_max_sed_lines # Line after last line for current file.
3140 ac_more_lines=:
3141 ac_sed_cmds=
3142 while $ac_more_lines; do
3143 if test $ac_beg -gt 1; then
3144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3145 else
3146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3147 fi
3148 if test ! -s $tmp/subs.frag; then
3149 ac_more_lines=false
3150 else
3151 # The purpose of the label and of the branching condition is to
3152 # speed up the sed processing (if there are no `@' at all, there
3153 # is no need to browse any of the substitutions).
3154 # These are the two extra sed commands mentioned above.
3155 (echo ':t
3156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3157 if test -z "$ac_sed_cmds"; then
8ab705be 3158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
b0b70d84 3159 else
8ab705be 3160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
b0b70d84
AC
3161 fi
3162 ac_sed_frag=`expr $ac_sed_frag + 1`
3163 ac_beg=$ac_end
3164 ac_end=`expr $ac_end + $ac_max_sed_lines`
3165 fi
3166 done
3167 if test -z "$ac_sed_cmds"; then
3168 ac_sed_cmds=cat
3169 fi
3170fi # test -n "$CONFIG_FILES"
3171
3172_ACEOF
3173cat >>$CONFIG_STATUS <<\_ACEOF
3174for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3176 case $ac_file in
3177 - | *:- | *:-:* ) # input from stdin
8ab705be
KC
3178 cat >$tmp/stdin
3179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
b0b70d84 3181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8ab705be 3182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
b0b70d84
AC
3183 * ) ac_file_in=$ac_file.in ;;
3184 esac
3185
3186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
3189 X"$ac_file" : 'X\(//\)[^/]' \| \
3190 X"$ac_file" : 'X\(//\)$' \| \
3191 X"$ac_file" : 'X\(/\)' \| \
3192 . : '\(.\)' 2>/dev/null ||
b0b70d84
AC
3193echo X"$ac_file" |
3194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3196 /^X\(\/\/\)$/{ s//\1/; q; }
3197 /^X\(\/\).*/{ s//\1/; q; }
3198 s/.*/./; q'`
3199 { if $as_mkdir_p; then
3200 mkdir -p "$ac_dir"
3201 else
3202 as_dir="$ac_dir"
3203 as_dirs=
3204 while test ! -d "$as_dir"; do
3205 as_dirs="$as_dir $as_dirs"
3206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8ab705be
KC
3208 X"$as_dir" : 'X\(//\)[^/]' \| \
3209 X"$as_dir" : 'X\(//\)$' \| \
3210 X"$as_dir" : 'X\(/\)' \| \
3211 . : '\(.\)' 2>/dev/null ||
b0b70d84
AC
3212echo X"$as_dir" |
3213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3215 /^X\(\/\/\)$/{ s//\1/; q; }
3216 /^X\(\/\).*/{ s//\1/; q; }
3217 s/.*/./; q'`
3218 done
3219 test ! -n "$as_dirs" || mkdir $as_dirs
3220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3221echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3222 { (exit 1); exit 1; }; }; }
3223
3224 ac_builddir=.
3225
3226if test "$ac_dir" != .; then
3227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3228 # A "../" for each directory in $ac_dir_suffix.
3229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3230else
3231 ac_dir_suffix= ac_top_builddir=
3232fi
3233
3234case $srcdir in
3235 .) # No --srcdir option. We are building in place.
3236 ac_srcdir=.
3237 if test -z "$ac_top_builddir"; then
3238 ac_top_srcdir=.
3239 else
3240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3241 fi ;;
3242 [\\/]* | ?:[\\/]* ) # Absolute path.
3243 ac_srcdir=$srcdir$ac_dir_suffix;
3244 ac_top_srcdir=$srcdir ;;
3245 *) # Relative path.
3246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3248esac
8ab705be
KC
3249
3250# Do not use `cd foo && pwd` to compute absolute paths, because
3251# the directories may not exist.
3252case `pwd` in
3253.) ac_abs_builddir="$ac_dir";;
3254*)
3255 case "$ac_dir" in
3256 .) ac_abs_builddir=`pwd`;;
3257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3259 esac;;
3260esac
3261case $ac_abs_builddir in
3262.) ac_abs_top_builddir=${ac_top_builddir}.;;
3263*)
3264 case ${ac_top_builddir}. in
3265 .) ac_abs_top_builddir=$ac_abs_builddir;;
3266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3268 esac;;
3269esac
3270case $ac_abs_builddir in
3271.) ac_abs_srcdir=$ac_srcdir;;
3272*)
3273 case $ac_srcdir in
3274 .) ac_abs_srcdir=$ac_abs_builddir;;
3275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3277 esac;;
3278esac
3279case $ac_abs_builddir in
3280.) ac_abs_top_srcdir=$ac_top_srcdir;;
3281*)
3282 case $ac_top_srcdir in
3283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3286 esac;;
3287esac
b0b70d84
AC
3288
3289
3290
9bd6112c
PB
3291 if test x"$ac_file" != x-; then
3292 { echo "$as_me:$LINENO: creating $ac_file" >&5
3293echo "$as_me: creating $ac_file" >&6;}
3294 rm -f "$ac_file"
3295 fi
b0b70d84
AC
3296 # Let's still pretend it is `configure' which instantiates (i.e., don't
3297 # use $as_me), people would be surprised to read:
3298 # /* config.h. Generated by config.status. */
3299 if test x"$ac_file" = x-; then
3300 configure_input=
3301 else
3302 configure_input="$ac_file. "
3303 fi
3304 configure_input=$configure_input"Generated from `echo $ac_file_in |
8ab705be 3305 sed 's,.*/,,'` by configure."
b0b70d84
AC
3306
3307 # First look for the input files in the build tree, otherwise in the
3308 # src tree.
3309 ac_file_inputs=`IFS=:
3310 for f in $ac_file_in; do
3311 case $f in
3312 -) echo $tmp/stdin ;;
3313 [\\/$]*)
8ab705be
KC
3314 # Absolute (can't be DOS-style, as IFS=:)
3315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
b0b70d84
AC
3316echo "$as_me: error: cannot find input file: $f" >&2;}
3317 { (exit 1); exit 1; }; }
8ab705be 3318 echo "$f";;
b0b70d84 3319 *) # Relative
8ab705be
KC
3320 if test -f "$f"; then
3321 # Build tree
3322 echo "$f"
3323 elif test -f "$srcdir/$f"; then
3324 # Source tree
3325 echo "$srcdir/$f"
3326 else
3327 # /dev/null tree
3328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
b0b70d84
AC
3329echo "$as_me: error: cannot find input file: $f" >&2;}
3330 { (exit 1); exit 1; }; }
8ab705be 3331 fi;;
b0b70d84
AC
3332 esac
3333 done` || { (exit 1); exit 1; }
3334_ACEOF
3335cat >>$CONFIG_STATUS <<_ACEOF
3336 sed "$ac_vpsub
3337$extrasub
3338_ACEOF
3339cat >>$CONFIG_STATUS <<\_ACEOF
3340:t
3341/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3342s,@configure_input@,$configure_input,;t t
3343s,@srcdir@,$ac_srcdir,;t t
3344s,@abs_srcdir@,$ac_abs_srcdir,;t t
3345s,@top_srcdir@,$ac_top_srcdir,;t t
3346s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3347s,@builddir@,$ac_builddir,;t t
3348s,@abs_builddir@,$ac_abs_builddir,;t t
3349s,@top_builddir@,$ac_top_builddir,;t t
3350s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3351" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3352 rm -f $tmp/stdin
3353 if test x"$ac_file" != x-; then
3354 mv $tmp/out $ac_file
3355 else
3356 cat $tmp/out
3357 rm -f $tmp/out
3358 fi
3359
3360done
3361_ACEOF
3362
3363cat >>$CONFIG_STATUS <<\_ACEOF
3364
3365{ (exit 0); exit 0; }
3366_ACEOF
3367chmod +x $CONFIG_STATUS
3368ac_clean_files=$ac_clean_files_save
3369
3370
3371# configure is writing to config.log, and then calls config.status.
3372# config.status does its own redirection, appending to config.log.
3373# Unfortunately, on DOS this fails, as config.log is still kept open
3374# by configure, so config.status won't be able to write to it; its
3375# output is simply discarded. So we exec the FD to /dev/null,
3376# effectively closing config.log, so it can be properly (re)opened and
3377# appended to by config.status. When coming back to configure, we
3378# need to make the FD available again.
3379if test "$no_create" != yes; then
3380 ac_cs_success=:
3381 ac_config_status_args=
3382 test "$silent" = yes &&
3383 ac_config_status_args="$ac_config_status_args --quiet"
3384 exec 5>/dev/null
3385 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3386 exec 5>>config.log
3387 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3388 # would make configure fail if this is the last instruction.
3389 $ac_cs_success || { (exit 1); exit 1; }
3390fi
3391