2009-08-02 Paolo Bonzini <bonzini@gnu.org
[official-gcc.git] / libada / configure
blobbd42f9ab622afdf9191d59da83cbaec18bb985a0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="Makefile.in"
275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS enable_shared LN_S default_gnatlib_target LDFLAGS CPPFLAGS warn_cflags LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
277 ac_pwd=`pwd`
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
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.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
317 ac_prev=
318 for ac_option
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
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
331 case $ac_option in
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
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 ;;
350 --config-cache | -C)
351 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
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 ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
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 ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
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 ;;
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 ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
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 ;;
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 ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
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 ;;
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 ;;
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
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 ;;
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 ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
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'" ;;
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" ;;
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
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 ;;
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 ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
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 ;;
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}
613 esac
614 done
616 if 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; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
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
631 done
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
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
643 done
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.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
652 # FIXME: To remove some day.
653 if 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
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo 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=..
689 else
690 ac_srcdir_defaulted=no
692 if 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; }; }
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; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 # Report the --help message.
737 if 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
741 \`configure' configures this package to adapt to many kinds of systems.
743 Usage: $0 [OPTION]... [VAR=VALUE]...
745 To assign environment variables (e.g., CC, CFLAGS...), specify them as
746 VAR=VALUE. See below for descriptions of some of the useful variables.
748 Defaults for the options are specified in brackets.
750 Configuration:
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 \`..']
761 _ACEOF
763 cat <<_ACEOF
764 Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
766 [$ac_default_prefix]
767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
768 [PREFIX]
770 By default, \`make install' will install all the files in
771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773 for instance \`--prefix=\$HOME'.
775 For better control, use the options below.
777 Fine 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
792 cat <<\_ACEOF
794 System 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
801 if test -n "$ac_init_help"; then
803 cat <<\_ACEOF
805 Optional 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 --enable-multilib build many library versions (default)
812 --disable-shared don't provide a shared libgnat
814 Optional Packages:
815 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
816 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
817 --with-build-libsubdir=DIR Directory where to find libraries for build system
819 Some influential environment variables:
820 CC C compiler command
821 CFLAGS C compiler flags
822 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
823 nonstandard directory <lib dir>
824 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
825 headers in a nonstandard directory <include dir>
827 Use these variables to override the choices made by `configure' or to help
828 it to find libraries and programs with nonstandard names/locations.
830 _ACEOF
833 if test "$ac_init_help" = "recursive"; then
834 # If there are subdirs, report their specific --help.
835 ac_popdir=`pwd`
836 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
837 test -d $ac_dir || continue
838 ac_builddir=.
840 if test "$ac_dir" != .; then
841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
842 # A "../" for each directory in $ac_dir_suffix.
843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
844 else
845 ac_dir_suffix= ac_top_builddir=
848 case $srcdir in
849 .) # No --srcdir option. We are building in place.
850 ac_srcdir=.
851 if test -z "$ac_top_builddir"; then
852 ac_top_srcdir=.
853 else
854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
855 fi ;;
856 [\\/]* | ?:[\\/]* ) # Absolute path.
857 ac_srcdir=$srcdir$ac_dir_suffix;
858 ac_top_srcdir=$srcdir ;;
859 *) # Relative path.
860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
862 esac
864 # Do not use `cd foo && pwd` to compute absolute paths, because
865 # the directories may not exist.
866 case `pwd` in
867 .) ac_abs_builddir="$ac_dir";;
869 case "$ac_dir" in
870 .) ac_abs_builddir=`pwd`;;
871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
873 esac;;
874 esac
875 case $ac_abs_builddir in
876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
878 case ${ac_top_builddir}. in
879 .) ac_abs_top_builddir=$ac_abs_builddir;;
880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
882 esac;;
883 esac
884 case $ac_abs_builddir in
885 .) ac_abs_srcdir=$ac_srcdir;;
887 case $ac_srcdir in
888 .) ac_abs_srcdir=$ac_abs_builddir;;
889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
891 esac;;
892 esac
893 case $ac_abs_builddir in
894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
896 case $ac_top_srcdir in
897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
900 esac;;
901 esac
903 cd $ac_dir
904 # Check for guested configure; otherwise get Cygnus style configure.
905 if test -f $ac_srcdir/configure.gnu; then
906 echo
907 $SHELL $ac_srcdir/configure.gnu --help=recursive
908 elif test -f $ac_srcdir/configure; then
909 echo
910 $SHELL $ac_srcdir/configure --help=recursive
911 elif test -f $ac_srcdir/configure.ac ||
912 test -f $ac_srcdir/configure.in; then
913 echo
914 $ac_configure --help
915 else
916 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
918 cd $ac_popdir
919 done
922 test -n "$ac_init_help" && exit 0
923 if $ac_init_version; then
924 cat <<\_ACEOF
926 Copyright (C) 2003 Free Software Foundation, Inc.
927 This configure script is free software; the Free Software Foundation
928 gives unlimited permission to copy, distribute and modify it.
929 _ACEOF
930 exit 0
932 exec 5>config.log
933 cat >&5 <<_ACEOF
934 This file contains any messages produced by compilers while
935 running configure, to aid debugging if configure makes a mistake.
937 It was created by $as_me, which was
938 generated by GNU Autoconf 2.59. Invocation command line was
940 $ $0 $@
942 _ACEOF
944 cat <<_ASUNAME
945 ## --------- ##
946 ## Platform. ##
947 ## --------- ##
949 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950 uname -m = `(uname -m) 2>/dev/null || echo unknown`
951 uname -r = `(uname -r) 2>/dev/null || echo unknown`
952 uname -s = `(uname -s) 2>/dev/null || echo unknown`
953 uname -v = `(uname -v) 2>/dev/null || echo unknown`
955 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
958 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
966 _ASUNAME
968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
969 for as_dir in $PATH
971 IFS=$as_save_IFS
972 test -z "$as_dir" && as_dir=.
973 echo "PATH: $as_dir"
974 done
976 } >&5
978 cat >&5 <<_ACEOF
981 ## ----------- ##
982 ## Core tests. ##
983 ## ----------- ##
985 _ACEOF
988 # Keep a trace of the command line.
989 # Strip out --no-create and --no-recursion so they do not pile up.
990 # Strip out --silent because we don't want to record it for future runs.
991 # Also quote any args containing shell meta-characters.
992 # Make two passes to allow for proper duplicate-argument suppression.
993 ac_configure_args=
994 ac_configure_args0=
995 ac_configure_args1=
996 ac_sep=
997 ac_must_keep_next=false
998 for ac_pass in 1 2
1000 for ac_arg
1002 case $ac_arg in
1003 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 continue ;;
1007 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1008 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1009 esac
1010 case $ac_pass in
1011 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1013 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1014 if test $ac_must_keep_next = true; then
1015 ac_must_keep_next=false # Got value, back to normal.
1016 else
1017 case $ac_arg in
1018 *=* | --config-cache | -C | -disable-* | --disable-* \
1019 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1020 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1021 | -with-* | --with-* | -without-* | --without-* | --x)
1022 case "$ac_configure_args0 " in
1023 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1024 esac
1026 -* ) ac_must_keep_next=true ;;
1027 esac
1029 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1030 # Get rid of the leading space.
1031 ac_sep=" "
1033 esac
1034 done
1035 done
1036 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1037 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1039 # When interrupted or exit'd, cleanup temporary files, and complete
1040 # config.log. We remove comments because anyway the quotes in there
1041 # would cause problems or look ugly.
1042 # WARNING: Be sure not to use single quotes in there, as some shells,
1043 # such as our DU 5.0 friend, will then `close' the trap.
1044 trap 'exit_status=$?
1045 # Save into config.log some information that might help in debugging.
1047 echo
1049 cat <<\_ASBOX
1050 ## ---------------- ##
1051 ## Cache variables. ##
1052 ## ---------------- ##
1053 _ASBOX
1054 echo
1055 # The following way of writing the cache mishandles newlines in values,
1057 (set) 2>&1 |
1058 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1059 *ac_space=\ *)
1060 sed -n \
1061 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1065 sed -n \
1066 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1068 esac;
1070 echo
1072 cat <<\_ASBOX
1073 ## ----------------- ##
1074 ## Output variables. ##
1075 ## ----------------- ##
1076 _ASBOX
1077 echo
1078 for ac_var in $ac_subst_vars
1080 eval ac_val=$`echo $ac_var`
1081 echo "$ac_var='"'"'$ac_val'"'"'"
1082 done | sort
1083 echo
1085 if test -n "$ac_subst_files"; then
1086 cat <<\_ASBOX
1087 ## ------------- ##
1088 ## Output files. ##
1089 ## ------------- ##
1090 _ASBOX
1091 echo
1092 for ac_var in $ac_subst_files
1094 eval ac_val=$`echo $ac_var`
1095 echo "$ac_var='"'"'$ac_val'"'"'"
1096 done | sort
1097 echo
1100 if test -s confdefs.h; then
1101 cat <<\_ASBOX
1102 ## ----------- ##
1103 ## confdefs.h. ##
1104 ## ----------- ##
1105 _ASBOX
1106 echo
1107 sed "/^$/d" confdefs.h | sort
1108 echo
1110 test "$ac_signal" != 0 &&
1111 echo "$as_me: caught signal $ac_signal"
1112 echo "$as_me: exit $exit_status"
1113 } >&5
1114 rm -f core *.core &&
1115 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1116 exit $exit_status
1118 for ac_signal in 1 2 13 15; do
1119 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1120 done
1121 ac_signal=0
1123 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1124 rm -rf conftest* confdefs.h
1125 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1126 echo >confdefs.h
1128 # Predefined preprocessor variables.
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_NAME "$PACKAGE_NAME"
1132 _ACEOF
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1137 _ACEOF
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1142 _ACEOF
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_STRING "$PACKAGE_STRING"
1147 _ACEOF
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1152 _ACEOF
1155 # Let the site file select an alternate cache file if it wants to.
1156 # Prefer explicitly selected file to automatically selected ones.
1157 if test -z "$CONFIG_SITE"; then
1158 if test "x$prefix" != xNONE; then
1159 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1160 else
1161 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1164 for ac_site_file in $CONFIG_SITE; do
1165 if test -r "$ac_site_file"; then
1166 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1167 echo "$as_me: loading site script $ac_site_file" >&6;}
1168 sed 's/^/| /' "$ac_site_file" >&5
1169 . "$ac_site_file"
1171 done
1173 if test -r "$cache_file"; then
1174 # Some versions of bash will fail to source /dev/null (special
1175 # files actually), so we avoid doing that.
1176 if test -f "$cache_file"; then
1177 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1178 echo "$as_me: loading cache $cache_file" >&6;}
1179 case $cache_file in
1180 [\\/]* | ?:[\\/]* ) . $cache_file;;
1181 *) . ./$cache_file;;
1182 esac
1184 else
1185 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1186 echo "$as_me: creating cache $cache_file" >&6;}
1187 >$cache_file
1190 # Check that the precious variables saved in the cache have kept the same
1191 # value.
1192 ac_cache_corrupted=false
1193 for ac_var in `(set) 2>&1 |
1194 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1196 eval ac_new_set=\$ac_env_${ac_var}_set
1197 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1198 eval ac_new_val="\$ac_env_${ac_var}_value"
1199 case $ac_old_set,$ac_new_set in
1200 set,)
1201 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1202 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1203 ac_cache_corrupted=: ;;
1204 ,set)
1205 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1206 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1207 ac_cache_corrupted=: ;;
1208 ,);;
1210 if test "x$ac_old_val" != "x$ac_new_val"; then
1211 # differences in whitespace do not lead to failure.
1212 ac_old_val_w=`echo x $ac_old_val`
1213 ac_new_val_w=`echo x $ac_new_val`
1214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1215 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1216 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1217 ac_cache_corrupted=:
1218 else
1219 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1220 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1221 eval $ac_var=\$ac_old_val
1223 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1224 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1225 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1226 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1227 fi;;
1228 esac
1229 # Pass precious variables to config.status.
1230 if test "$ac_new_set" = set; then
1231 case $ac_new_val in
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 *) ac_arg=$ac_var=$ac_new_val ;;
1235 esac
1236 case " $ac_configure_args " in
1237 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1238 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1239 esac
1241 done
1242 if $ac_cache_corrupted; then
1243 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1244 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1245 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1246 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1247 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1248 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1249 { (exit 1); exit 1; }; }
1252 ac_ext=c
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 # Determine the host, build, and target systems
1284 ac_aux_dir=
1285 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1286 if test -f $ac_dir/install-sh; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/install-sh -c"
1289 break
1290 elif test -f $ac_dir/install.sh; then
1291 ac_aux_dir=$ac_dir
1292 ac_install_sh="$ac_aux_dir/install.sh -c"
1293 break
1294 elif test -f $ac_dir/shtool; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/shtool install -c"
1297 break
1299 done
1300 if test -z "$ac_aux_dir"; then
1301 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1302 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1303 { (exit 1); exit 1; }; }
1305 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1306 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1307 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320 ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1335 build=$ac_cv_build
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 else
1346 ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1357 host=$ac_cv_host
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363 echo "$as_me:$LINENO: checking target system type" >&5
1364 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1365 if test "${ac_cv_target+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368 ac_cv_target_alias=$target_alias
1369 test "x$ac_cv_target_alias" = "x" &&
1370 ac_cv_target_alias=$ac_cv_host_alias
1371 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1378 echo "${ECHO_T}$ac_cv_target" >&6
1379 target=$ac_cv_target
1380 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 # The aliases save the names the user supplied, while $host etc.
1386 # will get canonicalized.
1387 test -n "$target_alias" &&
1388 test "$program_prefix$program_suffix$program_transform_name" = \
1389 NONENONEs,x,x, &&
1390 program_prefix=${target_alias}-
1391 target_alias=${target_alias-$host_alias}
1393 # Determine the noncanonical target name, for directory use.
1394 case ${build_alias} in
1395 "") build_noncanonical=${build} ;;
1396 *) build_noncanonical=${build_alias} ;;
1397 esac
1399 case ${host_alias} in
1400 "") host_noncanonical=${build_noncanonical} ;;
1401 *) host_noncanonical=${host_alias} ;;
1402 esac
1404 case ${target_alias} in
1405 "") target_noncanonical=${host_noncanonical} ;;
1406 *) target_noncanonical=${target_alias} ;;
1407 esac
1412 # Determine the target- and build-specific subdirectories
1414 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1415 # have matching libraries, they should use host libraries: Makefile.tpl
1416 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1417 # However, they still use the build modules, because the corresponding
1418 # host modules (e.g. bison) are only built for the host when bootstrap
1419 # finishes. So:
1420 # - build_subdir is where we find build modules, and never changes.
1421 # - build_libsubdir is where we find build libraries, and can be overridden.
1423 # Prefix 'build-' so this never conflicts with target_subdir.
1424 build_subdir="build-${build_noncanonical}"
1426 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1427 if test "${with_build_libsubdir+set}" = set; then
1428 withval="$with_build_libsubdir"
1429 build_libsubdir="$withval"
1430 else
1431 build_libsubdir="$build_subdir"
1433 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1434 if ( test $srcdir = . && test -d gcc ) \
1435 || test -d $srcdir/../host-${host_noncanonical}; then
1436 host_subdir="host-${host_noncanonical}"
1437 else
1438 host_subdir=.
1440 # No prefix.
1441 target_subdir=${target_noncanonical}
1444 # Command-line options.
1445 # Very limited version of AC_MAINTAINER_MODE.
1446 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1447 if test "${enable_maintainer_mode+set}" = set; then
1448 enableval="$enable_maintainer_mode"
1449 case ${enable_maintainer_mode} in
1450 yes) MAINT='' ;;
1451 no) MAINT='#' ;;
1452 *) { { echo "$as_me:$LINENO: error: --enable-maintainer-mode must be yes or no" >&5
1453 echo "$as_me: error: --enable-maintainer-mode must be yes or no" >&2;}
1454 { (exit 1); exit 1; }; } ;;
1455 esac
1456 maintainer_mode=${enableval}
1457 else
1458 MAINT='#'
1461 # Default to --enable-multilib
1462 # Check whether --enable-multilib or --disable-multilib was given.
1463 if test "${enable_multilib+set}" = set; then
1464 enableval="$enable_multilib"
1465 case "$enableval" in
1466 yes) multilib=yes ;;
1467 no) multilib=no ;;
1468 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1469 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1470 { (exit 1); exit 1; }; } ;;
1471 esac
1472 else
1473 multilib=yes
1476 # We may get other options which we leave undocumented:
1477 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1478 # See config-ml.in if you want the gory details.
1480 if test "$srcdir" = "."; then
1481 if test "$with_target_subdir" != "."; then
1482 multi_basedir="$srcdir/$with_multisrctop../.."
1483 else
1484 multi_basedir="$srcdir/$with_multisrctop.."
1486 else
1487 multi_basedir="$srcdir/.."
1491 # Even if the default multilib is not a cross compilation,
1492 # it may be that some of the other multilibs are.
1493 if test $cross_compiling = no && test $multilib = yes \
1494 && test "x${with_multisubdir}" != x ; then
1495 cross_compiling=maybe
1498 ac_config_commands="$ac_config_commands default-1"
1500 # Calculate toolexeclibdir
1501 # Also toolexecdir, though it's only used in toolexeclibdir
1502 case ${enable_version_specific_runtime_libs} in
1503 yes)
1504 # Need the gcc compiler version to know where to install libraries
1505 # and header files if --enable-version-specific-runtime-libs option
1506 # is selected.
1507 toolexecdir='$(libdir)/gcc/$(target_alias)'
1508 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1511 if test -n "$with_cross_host" &&
1512 test x"$with_cross_host" != x"no"; then
1513 # Install a library built with a cross compiler in tooldir, not libdir.
1514 toolexecdir='$(exec_prefix)/$(target_alias)'
1515 toolexeclibdir='$(toolexecdir)/lib'
1516 else
1517 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1518 toolexeclibdir='$(libdir)'
1520 multi_os_directory=`$CC -print-multi-os-directory`
1521 case $multi_os_directory in
1522 .) ;; # Avoid trailing /.
1523 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1524 esac
1526 esac
1529 #TODO: toolexeclibdir is currently disregarded
1531 # Check the compiler.
1532 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1533 # We must force CC to /not/ be precious variables; otherwise
1534 # the wrong, non-multilib-adjusted value will be used in multilibs.
1535 # As a side effect, we have to subst CFLAGS ourselves.
1539 ac_ext=c
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544 if test -n "$ac_tool_prefix"; then
1545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_CC+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1554 else
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1558 IFS=$as_save_IFS
1559 test -z "$as_dir" && as_dir=.
1560 for ac_exec_ext in '' $ac_executable_extensions; do
1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564 break 2
1566 done
1567 done
1571 CC=$ac_cv_prog_CC
1572 if test -n "$CC"; then
1573 echo "$as_me:$LINENO: result: $CC" >&5
1574 echo "${ECHO_T}$CC" >&6
1575 else
1576 echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1581 if test -z "$ac_cv_prog_CC"; then
1582 ac_ct_CC=$CC
1583 # Extract the first word of "gcc", so it can be a program name with args.
1584 set dummy gcc; ac_word=$2
1585 echo "$as_me:$LINENO: checking for $ac_word" >&5
1586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 if test -n "$ac_ct_CC"; then
1591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 else
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594 for as_dir in $PATH
1596 IFS=$as_save_IFS
1597 test -z "$as_dir" && as_dir=.
1598 for ac_exec_ext in '' $ac_executable_extensions; do
1599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600 ac_cv_prog_ac_ct_CC="gcc"
1601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 break 2
1604 done
1605 done
1609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1610 if test -n "$ac_ct_CC"; then
1611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1612 echo "${ECHO_T}$ac_ct_CC" >&6
1613 else
1614 echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1618 CC=$ac_ct_CC
1619 else
1620 CC="$ac_cv_prog_CC"
1623 if test -z "$CC"; then
1624 if test -n "$ac_tool_prefix"; then
1625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1626 set dummy ${ac_tool_prefix}cc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="${ac_tool_prefix}cc"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1646 done
1647 done
1651 CC=$ac_cv_prog_CC
1652 if test -n "$CC"; then
1653 echo "$as_me:$LINENO: result: $CC" >&5
1654 echo "${ECHO_T}$CC" >&6
1655 else
1656 echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1661 if test -z "$ac_cv_prog_CC"; then
1662 ac_ct_CC=$CC
1663 # Extract the first word of "cc", so it can be a program name with args.
1664 set dummy cc; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670 if test -n "$ac_ct_CC"; then
1671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680 ac_cv_prog_ac_ct_CC="cc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 break 2
1684 done
1685 done
1689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1690 if test -n "$ac_ct_CC"; then
1691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1692 echo "${ECHO_T}$ac_ct_CC" >&6
1693 else
1694 echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1698 CC=$ac_ct_CC
1699 else
1700 CC="$ac_cv_prog_CC"
1704 if test -z "$CC"; then
1705 # Extract the first word of "cc", so it can be a program name with args.
1706 set dummy cc; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 ac_prog_rejected=no
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 for ac_exec_ext in '' $ac_executable_extensions; do
1722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1724 ac_prog_rejected=yes
1725 continue
1727 ac_cv_prog_CC="cc"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1734 if test $ac_prog_rejected = yes; then
1735 # We found a bogon in the path, so make sure we never use it.
1736 set dummy $ac_cv_prog_CC
1737 shift
1738 if test $# != 0; then
1739 # We chose a different compiler from the bogus one.
1740 # However, it has the same basename, so the bogon will be chosen
1741 # first if we set CC to just the basename; use the full file name.
1742 shift
1743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1748 CC=$ac_cv_prog_CC
1749 if test -n "$CC"; then
1750 echo "$as_me:$LINENO: result: $CC" >&5
1751 echo "${ECHO_T}$CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1760 for ac_prog in cl
1762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1764 echo "$as_me:$LINENO: checking for $ac_word" >&5
1765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1766 if test "${ac_cv_prog_CC+set}" = set; then
1767 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 else
1769 if test -n "$CC"; then
1770 ac_cv_prog_CC="$CC" # Let the user override the test.
1771 else
1772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 for as_dir in $PATH
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
1777 for ac_exec_ext in '' $ac_executable_extensions; do
1778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1781 break 2
1783 done
1784 done
1788 CC=$ac_cv_prog_CC
1789 if test -n "$CC"; then
1790 echo "$as_me:$LINENO: result: $CC" >&5
1791 echo "${ECHO_T}$CC" >&6
1792 else
1793 echo "$as_me:$LINENO: result: no" >&5
1794 echo "${ECHO_T}no" >&6
1797 test -n "$CC" && break
1798 done
1800 if test -z "$CC"; then
1801 ac_ct_CC=$CC
1802 for ac_prog in cl
1804 # Extract the first word of "$ac_prog", so it can be a program name with args.
1805 set dummy $ac_prog; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811 if test -n "$ac_ct_CC"; then
1812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1817 IFS=$as_save_IFS
1818 test -z "$as_dir" && as_dir=.
1819 for ac_exec_ext in '' $ac_executable_extensions; do
1820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821 ac_cv_prog_ac_ct_CC="$ac_prog"
1822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 break 2
1825 done
1826 done
1830 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831 if test -n "$ac_ct_CC"; then
1832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833 echo "${ECHO_T}$ac_ct_CC" >&6
1834 else
1835 echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1839 test -n "$ac_ct_CC" && break
1840 done
1842 CC=$ac_ct_CC
1848 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1849 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1850 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854 { (exit 1); exit 1; }; }; }
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858 "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861 (eval $ac_compiler --version </dev/null >&5) 2>&5
1862 ac_status=$?
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866 (eval $ac_compiler -v </dev/null >&5) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871 (eval $ac_compiler -V </dev/null >&5) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }
1876 cat >conftest.$ac_ext <<_ACEOF
1877 /* confdefs.h. */
1878 _ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h. */
1884 main ()
1888 return 0;
1890 _ACEOF
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1895 # of exeext.
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 # resort.
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910 ac_cv_exeext=
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1914 test -f "$ac_file" || continue
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1918 conftest.$ac_ext )
1919 # This is the source file.
1921 [ab].out )
1922 # We found the default executable, but exeext='' is most
1923 # certainly right.
1924 break;;
1925 *.* )
1926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool,
1928 # but it would be cool to find out if it's true. Does anybody
1929 # maintain Libtool? --akim.
1930 export ac_cv_exeext
1931 break;;
1933 break;;
1934 esac
1935 done
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: C compiler cannot create executables
1945 See \`config.log' for more details." >&2;}
1946 { (exit 77); exit 77; }; }; }
1949 ac_exeext=$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_file" >&5
1951 echo "${ECHO_T}$ac_file" >&6
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1956 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1957 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1958 # If not cross compiling, check that we can run a simple program.
1959 if test "$cross_compiling" != yes; then
1960 if { ac_try='./$ac_file'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 (eval $ac_try) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1966 cross_compiling=no
1967 else
1968 if test "$cross_compiling" = maybe; then
1969 cross_compiling=yes
1970 else
1971 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1974 If you meant to cross compile, use \`--host'.
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: cannot run C compiled programs.
1977 If you meant to cross compile, use \`--host'.
1978 See \`config.log' for more details." >&2;}
1979 { (exit 1); exit 1; }; }; }
1983 echo "$as_me:$LINENO: result: yes" >&5
1984 echo "${ECHO_T}yes" >&6
1986 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1987 ac_clean_files=$ac_clean_files_save
1988 # Check the compiler produces executables we can run. If not, either
1989 # the compiler is broken, or we cross compile.
1990 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1991 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1992 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1993 echo "${ECHO_T}$cross_compiling" >&6
1995 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1996 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1998 (eval $ac_link) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }; then
2002 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2003 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2004 # work properly (i.e., refer to `conftest.exe'), while it won't with
2005 # `rm'.
2006 for ac_file in conftest.exe conftest conftest.*; do
2007 test -f "$ac_file" || continue
2008 case $ac_file in
2009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2010 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2011 export ac_cv_exeext
2012 break;;
2013 * ) break;;
2014 esac
2015 done
2016 else
2017 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2018 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2019 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2020 See \`config.log' for more details." >&5
2021 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2022 See \`config.log' for more details." >&2;}
2023 { (exit 1); exit 1; }; }; }
2026 rm -f conftest$ac_cv_exeext
2027 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2028 echo "${ECHO_T}$ac_cv_exeext" >&6
2030 rm -f conftest.$ac_ext
2031 EXEEXT=$ac_cv_exeext
2032 ac_exeext=$EXEEXT
2033 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2034 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2035 if test "${ac_cv_objext+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 cat >conftest.$ac_ext <<_ACEOF
2039 /* confdefs.h. */
2040 _ACEOF
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h. */
2046 main ()
2050 return 0;
2052 _ACEOF
2053 rm -f conftest.o conftest.obj
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2060 case $ac_file in
2061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2062 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2063 break;;
2064 esac
2065 done
2066 else
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2071 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2072 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2073 See \`config.log' for more details." >&5
2074 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2075 See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }; }
2079 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2081 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2082 echo "${ECHO_T}$ac_cv_objext" >&6
2083 OBJEXT=$ac_cv_objext
2084 ac_objext=$OBJEXT
2085 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2086 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2087 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 cat >conftest.$ac_ext <<_ACEOF
2091 /* confdefs.h. */
2092 _ACEOF
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2098 main ()
2100 #ifndef __GNUC__
2101 choke me
2102 #endif
2105 return 0;
2107 _ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>conftest.er1
2111 ac_status=$?
2112 grep -v '^ *+' conftest.er1 >conftest.err
2113 rm -f conftest.er1
2114 cat conftest.err >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); } &&
2117 { ac_try='test -z "$ac_c_werror_flag"
2118 || test ! -s conftest.err'
2119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 (eval $ac_try) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }; } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 ac_compiler_gnu=yes
2131 else
2132 echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2135 ac_compiler_gnu=no
2137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2141 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2142 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2143 GCC=`test $ac_compiler_gnu = yes && echo yes`
2144 ac_test_CFLAGS=${CFLAGS+set}
2145 ac_save_CFLAGS=$CFLAGS
2146 CFLAGS="-g"
2147 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2148 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2149 if test "${ac_cv_prog_cc_g+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2160 main ()
2164 return 0;
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_g=yes
2190 else
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 ac_cv_prog_cc_g=no
2196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2200 if test "$ac_test_CFLAGS" = set; then
2201 CFLAGS=$ac_save_CFLAGS
2202 elif test $ac_cv_prog_cc_g = yes; then
2203 if test "$GCC" = yes; then
2204 CFLAGS="-g -O2"
2205 else
2206 CFLAGS="-g"
2208 else
2209 if test "$GCC" = yes; then
2210 CFLAGS="-O2"
2211 else
2212 CFLAGS=
2215 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2216 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2217 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 ac_cv_prog_cc_stdc=no
2221 ac_save_CC=$CC
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2228 #include <stdarg.h>
2229 #include <stdio.h>
2230 #include <sys/types.h>
2231 #include <sys/stat.h>
2232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2233 struct buf { int x; };
2234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2235 static char *e (p, i)
2236 char **p;
2237 int i;
2239 return p[i];
2241 static char *f (char * (*g) (char **, int), char **p, ...)
2243 char *s;
2244 va_list v;
2245 va_start (v,p);
2246 s = g (p, va_arg (v,int));
2247 va_end (v);
2248 return s;
2251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2252 function prototypes and stuff, but not '\xHH' hex character constants.
2253 These don't provoke an error unfortunately, instead are silently treated
2254 as 'x'. The following induces an error, until -std1 is added to get
2255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2256 array size at least. It's necessary to write '\x00'==0 to get something
2257 that's true only with -std1. */
2258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2260 int test (int i, double x);
2261 struct s1 {int (*f) (int a);};
2262 struct s2 {int (*f) (double a);};
2263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2264 int argc;
2265 char **argv;
2267 main ()
2269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2271 return 0;
2273 _ACEOF
2274 # Don't try gcc -ansi; that turns off useful extensions and
2275 # breaks some systems' header files.
2276 # AIX -qlanglvl=ansi
2277 # Ultrix and OSF/1 -std1
2278 # HP-UX 10.20 and later -Ae
2279 # HP-UX older versions -Aa -D_HPUX_SOURCE
2280 # SVR4 -Xc -D__EXTENSIONS__
2281 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2283 CC="$ac_save_CC $ac_arg"
2284 rm -f conftest.$ac_objext
2285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2286 (eval $ac_compile) 2>conftest.er1
2287 ac_status=$?
2288 grep -v '^ *+' conftest.er1 >conftest.err
2289 rm -f conftest.er1
2290 cat conftest.err >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -z "$ac_c_werror_flag"
2294 || test ! -s conftest.err'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 ac_cv_prog_cc_stdc=$ac_arg
2307 break
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2313 rm -f conftest.err conftest.$ac_objext
2314 done
2315 rm -f conftest.$ac_ext conftest.$ac_objext
2316 CC=$ac_save_CC
2320 case "x$ac_cv_prog_cc_stdc" in
2321 x|xno)
2322 echo "$as_me:$LINENO: result: none needed" >&5
2323 echo "${ECHO_T}none needed" >&6 ;;
2325 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2326 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2327 CC="$CC $ac_cv_prog_cc_stdc" ;;
2328 esac
2330 # Some people use a C++ compiler to compile C. Since we use `exit',
2331 # in C++ we need to declare it. In case someone uses the same compiler
2332 # for both compiling C and C++ we need to have the C++ compiler decide
2333 # the declaration of exit, since it's the most demanding environment.
2334 cat >conftest.$ac_ext <<_ACEOF
2335 #ifndef __cplusplus
2336 choke me
2337 #endif
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>conftest.er1
2342 ac_status=$?
2343 grep -v '^ *+' conftest.er1 >conftest.err
2344 rm -f conftest.er1
2345 cat conftest.err >&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -z "$ac_c_werror_flag"
2349 || test ! -s conftest.err'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2361 for ac_declaration in \
2362 '' \
2363 'extern "C" void std::exit (int) throw (); using std::exit;' \
2364 'extern "C" void std::exit (int); using std::exit;' \
2365 'extern "C" void exit (int) throw ();' \
2366 'extern "C" void exit (int);' \
2367 'void exit (int);'
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375 $ac_declaration
2376 #include <stdlib.h>
2378 main ()
2380 exit (42);
2382 return 0;
2384 _ACEOF
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 continue
2414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2415 cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h. */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2421 $ac_declaration
2423 main ()
2425 exit (42);
2427 return 0;
2429 _ACEOF
2430 rm -f conftest.$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2433 ac_status=$?
2434 grep -v '^ *+' conftest.er1 >conftest.err
2435 rm -f conftest.er1
2436 cat conftest.err >&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442 (eval $ac_try) 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2452 break
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 done
2460 rm -f conftest*
2461 if test -n "$ac_declaration"; then
2462 echo '#ifdef __cplusplus' >>confdefs.h
2463 echo $ac_declaration >>confdefs.h
2464 echo '#endif' >>confdefs.h
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 ac_ext=c
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483 # Check whether --enable-shared or --disable-shared was given.
2484 if test "${enable_shared+set}" = set; then
2485 enableval="$enable_shared"
2487 case $enable_shared in
2488 yes | no) ;;
2490 enable_shared=no
2491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2492 for pkg in $enableval; do
2493 case $pkg in
2494 ada | libada)
2495 enable_shared=yes ;;
2496 esac
2497 done
2498 IFS="$ac_save_ifs"
2500 esac
2502 else
2503 enable_shared=yes
2507 # Need to pass this down for now :-P
2508 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2509 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2510 LN_S=$as_ln_s
2511 if test "$LN_S" = "ln -s"; then
2512 echo "$as_me:$LINENO: result: yes" >&5
2513 echo "${ECHO_T}yes" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2516 echo "${ECHO_T}no, using $LN_S" >&6
2520 # Determine what to build for 'gnatlib'
2521 if test $build = $target \
2522 && test ${enable_shared} = yes ; then
2523 # Note that build=target is almost certainly the wrong test; FIXME
2524 default_gnatlib_target="gnatlib-shared"
2525 else
2526 default_gnatlib_target="gnatlib-plain"
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2538 echo "$as_me:$LINENO: checking for $ac_word" >&5
2539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540 if test "${ac_cv_prog_CC+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543 if test -n "$CC"; then
2544 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 else
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2557 done
2558 done
2562 CC=$ac_cv_prog_CC
2563 if test -n "$CC"; then
2564 echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6
2566 else
2567 echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6
2572 if test -z "$ac_cv_prog_CC"; then
2573 ac_ct_CC=$CC
2574 # Extract the first word of "gcc", so it can be a program name with args.
2575 set dummy gcc; ac_word=$2
2576 echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$ac_ct_CC"; then
2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_CC="gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2595 done
2596 done
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6
2604 else
2605 echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6
2609 CC=$ac_ct_CC
2610 else
2611 CC="$ac_cv_prog_CC"
2614 if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
2616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2617 set dummy ${ac_tool_prefix}cc; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_CC="${ac_tool_prefix}cc"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644 echo "$as_me:$LINENO: result: $CC" >&5
2645 echo "${ECHO_T}$CC" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2652 if test -z "$ac_cv_prog_CC"; then
2653 ac_ct_CC=$CC
2654 # Extract the first word of "cc", so it can be a program name with args.
2655 set dummy cc; ac_word=$2
2656 echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_ac_ct_CC="cc"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2675 done
2676 done
2680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681 if test -n "$ac_ct_CC"; then
2682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683 echo "${ECHO_T}$ac_ct_CC" >&6
2684 else
2685 echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6
2689 CC=$ac_ct_CC
2690 else
2691 CC="$ac_cv_prog_CC"
2695 if test -z "$CC"; then
2696 # Extract the first word of "cc", so it can be a program name with args.
2697 set dummy cc; ac_word=$2
2698 echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2700 if test "${ac_cv_prog_CC+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 ac_prog_rejected=no
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2715 ac_prog_rejected=yes
2716 continue
2718 ac_cv_prog_CC="cc"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2722 done
2723 done
2725 if test $ac_prog_rejected = yes; then
2726 # We found a bogon in the path, so make sure we never use it.
2727 set dummy $ac_cv_prog_CC
2728 shift
2729 if test $# != 0; then
2730 # We chose a different compiler from the bogus one.
2731 # However, it has the same basename, so the bogon will be chosen
2732 # first if we set CC to just the basename; use the full file name.
2733 shift
2734 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2739 CC=$ac_cv_prog_CC
2740 if test -n "$CC"; then
2741 echo "$as_me:$LINENO: result: $CC" >&5
2742 echo "${ECHO_T}$CC" >&6
2743 else
2744 echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6
2749 if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
2751 for ac_prog in cl
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755 echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757 if test "${ac_cv_prog_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2774 done
2775 done
2779 CC=$ac_cv_prog_CC
2780 if test -n "$CC"; then
2781 echo "$as_me:$LINENO: result: $CC" >&5
2782 echo "${ECHO_T}$CC" >&6
2783 else
2784 echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2788 test -n "$CC" && break
2789 done
2791 if test -z "$CC"; then
2792 ac_ct_CC=$CC
2793 for ac_prog in cl
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_ac_ct_CC="$ac_prog"
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824 echo "${ECHO_T}$ac_ct_CC" >&6
2825 else
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2830 test -n "$ac_ct_CC" && break
2831 done
2833 CC=$ac_ct_CC
2839 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2840 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842 See \`config.log' for more details." >&5
2843 echo "$as_me: error: no acceptable C compiler found in \$PATH
2844 See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }; }
2847 # Provide some information about the compiler.
2848 echo "$as_me:$LINENO:" \
2849 "checking for C compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2852 (eval $ac_compiler --version </dev/null >&5) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }
2856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2857 (eval $ac_compiler -v </dev/null >&5) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2862 (eval $ac_compiler -V </dev/null >&5) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2867 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2868 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2869 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2880 main ()
2882 #ifndef __GNUC__
2883 choke me
2884 #endif
2887 return 0;
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_compiler_gnu=yes
2913 else
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 ac_compiler_gnu=no
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2920 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2923 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2925 GCC=`test $ac_compiler_gnu = yes && echo yes`
2926 ac_test_CFLAGS=${CFLAGS+set}
2927 ac_save_CFLAGS=$CFLAGS
2928 CFLAGS="-g"
2929 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2930 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2931 if test "${ac_cv_prog_cc_g+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934 cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h. */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2942 main ()
2946 return 0;
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -z "$ac_c_werror_flag"
2959 || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_cv_prog_cc_g=yes
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 ac_cv_prog_cc_g=no
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2997 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2998 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2999 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 ac_cv_prog_cc_stdc=no
3003 ac_save_CC=$CC
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #include <stdarg.h>
3011 #include <stdio.h>
3012 #include <sys/types.h>
3013 #include <sys/stat.h>
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015 struct buf { int x; };
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017 static char *e (p, i)
3018 char **p;
3019 int i;
3021 return p[i];
3023 static char *f (char * (*g) (char **, int), char **p, ...)
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
3036 as 'x'. The following induces an error, until -std1 is added to get
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
3039 that's true only with -std1. */
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3042 int test (int i, double x);
3043 struct s1 {int (*f) (int a);};
3044 struct s2 {int (*f) (double a);};
3045 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3046 int argc;
3047 char **argv;
3049 main ()
3051 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3053 return 0;
3055 _ACEOF
3056 # Don't try gcc -ansi; that turns off useful extensions and
3057 # breaks some systems' header files.
3058 # AIX -qlanglvl=ansi
3059 # Ultrix and OSF/1 -std1
3060 # HP-UX 10.20 and later -Ae
3061 # HP-UX older versions -Aa -D_HPUX_SOURCE
3062 # SVR4 -Xc -D__EXTENSIONS__
3063 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3065 CC="$ac_save_CC $ac_arg"
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_prog_cc_stdc=$ac_arg
3089 break
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f conftest.err conftest.$ac_objext
3096 done
3097 rm -f conftest.$ac_ext conftest.$ac_objext
3098 CC=$ac_save_CC
3102 case "x$ac_cv_prog_cc_stdc" in
3103 x|xno)
3104 echo "$as_me:$LINENO: result: none needed" >&5
3105 echo "${ECHO_T}none needed" >&6 ;;
3107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3108 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3109 CC="$CC $ac_cv_prog_cc_stdc" ;;
3110 esac
3112 # Some people use a C++ compiler to compile C. Since we use `exit',
3113 # in C++ we need to declare it. In case someone uses the same compiler
3114 # for both compiling C and C++ we need to have the C++ compiler decide
3115 # the declaration of exit, since it's the most demanding environment.
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #ifndef __cplusplus
3118 choke me
3119 #endif
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3123 (eval $ac_compile) 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag"
3131 || test ! -s conftest.err'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 for ac_declaration in \
3144 '' \
3145 'extern "C" void std::exit (int) throw (); using std::exit;' \
3146 'extern "C" void std::exit (int); using std::exit;' \
3147 'extern "C" void exit (int) throw ();' \
3148 'extern "C" void exit (int);' \
3149 'void exit (int);'
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157 $ac_declaration
3158 #include <stdlib.h>
3160 main ()
3162 exit (42);
3164 return 0;
3166 _ACEOF
3167 rm -f conftest.$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } &&
3176 { ac_try='test -z "$ac_c_werror_flag"
3177 || test ! -s conftest.err'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 (eval $ac_try) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 continue
3196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3197 cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h. */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 $ac_declaration
3205 main ()
3207 exit (42);
3209 return 0;
3211 _ACEOF
3212 rm -f conftest.$ac_objext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
3221 { ac_try='test -z "$ac_c_werror_flag"
3222 || test ! -s conftest.err'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 break
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 done
3242 rm -f conftest*
3243 if test -n "$ac_declaration"; then
3244 echo '#ifdef __cplusplus' >>confdefs.h
3245 echo $ac_declaration >>confdefs.h
3246 echo '#endif' >>confdefs.h
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 warn_cflags=
3262 if test "x$GCC" = "xyes"; then
3263 warn_cflags='$(GCC_WARN_CFLAGS)'
3267 # Output: create a Makefile.
3268 ac_config_files="$ac_config_files Makefile"
3271 cat >confcache <<\_ACEOF
3272 # This file is a shell script that caches the results of configure
3273 # tests run on this system so they can be shared between configure
3274 # scripts and configure runs, see configure's option --config-cache.
3275 # It is not useful on other systems. If it contains results you don't
3276 # want to keep, you may remove or edit it.
3278 # config.status only pays attention to the cache file if you give it
3279 # the --recheck option to rerun configure.
3281 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3282 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3283 # following values.
3285 _ACEOF
3287 # The following way of writing the cache mishandles newlines in values,
3288 # but we know of no workaround that is simple, portable, and efficient.
3289 # So, don't put newlines in cache variables' values.
3290 # Ultrix sh set writes to stderr and can't be redirected directly,
3291 # and sets the high bit in the cache file unless we assign to the vars.
3293 (set) 2>&1 |
3294 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3295 *ac_space=\ *)
3296 # `set' does not quote correctly, so add quotes (double-quote
3297 # substitution turns \\\\ into \\, and sed turns \\ into \).
3298 sed -n \
3299 "s/'/'\\\\''/g;
3300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3303 # `set' quotes correctly as required by POSIX, so do not add quotes.
3304 sed -n \
3305 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3307 esac;
3309 sed '
3310 t clear
3311 : clear
3312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3313 t end
3314 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3315 : end' >>confcache
3316 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3317 if test -w $cache_file; then
3318 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3319 cat confcache >$cache_file
3320 else
3321 echo "not updating unwritable cache $cache_file"
3324 rm -f confcache
3326 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3327 # Let make expand exec_prefix.
3328 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3332 # trailing colons and then remove the whole line if VPATH becomes empty
3333 # (actually we leave an empty line to preserve line numbers).
3334 if test "x$srcdir" = x.; then
3335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3336 s/:*\$(srcdir):*/:/;
3337 s/:*\${srcdir}:*/:/;
3338 s/:*@srcdir@:*/:/;
3339 s/^\([^=]*=[ ]*\):*/\1/;
3340 s/:*$//;
3341 s/^[^=]*=[ ]*$//;
3345 # Transform confdefs.h into DEFS.
3346 # Protect against shell expansion while executing Makefile rules.
3347 # Protect against Makefile macro expansion.
3349 # If the first sed substitution is executed (which looks for macros that
3350 # take arguments), then we branch to the quote section. Otherwise,
3351 # look for a macro that doesn't take arguments.
3352 cat >confdef2opt.sed <<\_ACEOF
3353 t clear
3354 : clear
3355 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3356 t quote
3357 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3358 t quote
3360 : quote
3361 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3362 s,\[,\\&,g
3363 s,\],\\&,g
3364 s,\$,$$,g
3366 _ACEOF
3367 # We use echo to avoid assuming a particular line-breaking character.
3368 # The extra dot is to prevent the shell from consuming trailing
3369 # line-breaks from the sub-command output. A line-break within
3370 # single-quotes doesn't work because, if this script is created in a
3371 # platform that uses two characters for line-breaks (e.g., DOS), tr
3372 # would break.
3373 ac_LF_and_DOT=`echo; echo .`
3374 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3375 rm -f confdef2opt.sed
3378 ac_libobjs=
3379 ac_ltlibobjs=
3380 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3381 # 1. Remove the extension, and $U if already installed.
3382 ac_i=`echo "$ac_i" |
3383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3384 # 2. Add them.
3385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3387 done
3388 LIBOBJS=$ac_libobjs
3390 LTLIBOBJS=$ac_ltlibobjs
3394 : ${CONFIG_STATUS=./config.status}
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3397 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3398 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3399 cat >$CONFIG_STATUS <<_ACEOF
3400 #! $SHELL
3401 # Generated by $as_me.
3402 # Run this file to recreate the current configuration.
3403 # Compiler output produced by configure, useful for debugging
3404 # configure, is in config.log if it exists.
3406 debug=false
3407 ac_cs_recheck=false
3408 ac_cs_silent=false
3409 SHELL=\${CONFIG_SHELL-$SHELL}
3410 _ACEOF
3412 cat >>$CONFIG_STATUS <<\_ACEOF
3413 ## --------------------- ##
3414 ## M4sh Initialization. ##
3415 ## --------------------- ##
3417 # Be Bourne compatible
3418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3419 emulate sh
3420 NULLCMD=:
3421 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3422 # is contrary to our usage. Disable this feature.
3423 alias -g '${1+"$@"}'='"$@"'
3424 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3425 set -o posix
3427 DUALCASE=1; export DUALCASE # for MKS sh
3429 # Support unset when possible.
3430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3431 as_unset=unset
3432 else
3433 as_unset=false
3437 # Work around bugs in pre-3.0 UWIN ksh.
3438 $as_unset ENV MAIL MAILPATH
3439 PS1='$ '
3440 PS2='> '
3441 PS4='+ '
3443 # NLS nuisances.
3444 for as_var in \
3445 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3446 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3447 LC_TELEPHONE LC_TIME
3449 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3450 eval $as_var=C; export $as_var
3451 else
3452 $as_unset $as_var
3454 done
3456 # Required to use basename.
3457 if expr a : '\(a\)' >/dev/null 2>&1; then
3458 as_expr=expr
3459 else
3460 as_expr=false
3463 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3464 as_basename=basename
3465 else
3466 as_basename=false
3470 # Name of the executable.
3471 as_me=`$as_basename "$0" ||
3472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3473 X"$0" : 'X\(//\)$' \| \
3474 X"$0" : 'X\(/\)$' \| \
3475 . : '\(.\)' 2>/dev/null ||
3476 echo X/"$0" |
3477 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3478 /^X\/\(\/\/\)$/{ s//\1/; q; }
3479 /^X\/\(\/\).*/{ s//\1/; q; }
3480 s/.*/./; q'`
3483 # PATH needs CR, and LINENO needs CR and PATH.
3484 # Avoid depending upon Character Ranges.
3485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3488 as_cr_digits='0123456789'
3489 as_cr_alnum=$as_cr_Letters$as_cr_digits
3491 # The user is always right.
3492 if test "${PATH_SEPARATOR+set}" != set; then
3493 echo "#! /bin/sh" >conf$$.sh
3494 echo "exit 0" >>conf$$.sh
3495 chmod +x conf$$.sh
3496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3497 PATH_SEPARATOR=';'
3498 else
3499 PATH_SEPARATOR=:
3501 rm -f conf$$.sh
3505 as_lineno_1=$LINENO
3506 as_lineno_2=$LINENO
3507 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3508 test "x$as_lineno_1" != "x$as_lineno_2" &&
3509 test "x$as_lineno_3" = "x$as_lineno_2" || {
3510 # Find who we are. Look in the path if we contain no path at all
3511 # relative or not.
3512 case $0 in
3513 *[\\/]* ) as_myself=$0 ;;
3514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3520 done
3523 esac
3524 # We did not find ourselves, most probably we were run as `sh COMMAND'
3525 # in which case we are not to be found in the path.
3526 if test "x$as_myself" = x; then
3527 as_myself=$0
3529 if test ! -f "$as_myself"; then
3530 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3531 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3532 { (exit 1); exit 1; }; }
3534 case $CONFIG_SHELL in
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for as_base in sh bash ksh sh5; do
3542 case $as_dir in
3544 if ("$as_dir/$as_base" -c '
3545 as_lineno_1=$LINENO
3546 as_lineno_2=$LINENO
3547 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3548 test "x$as_lineno_1" != "x$as_lineno_2" &&
3549 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3550 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3551 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3552 CONFIG_SHELL=$as_dir/$as_base
3553 export CONFIG_SHELL
3554 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3555 fi;;
3556 esac
3557 done
3558 done
3560 esac
3562 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3563 # uniformly replaced by the line number. The first 'sed' inserts a
3564 # line-number line before each line; the second 'sed' does the real
3565 # work. The second script uses 'N' to pair each line-number line
3566 # with the numbered line, and appends trailing '-' during
3567 # substitution so that $LINENO is not a special case at line end.
3568 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3569 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3570 sed '=' <$as_myself |
3571 sed '
3573 s,$,-,
3574 : loop
3575 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3576 t loop
3577 s,-$,,
3578 s,^['$as_cr_digits']*\n,,
3579 ' >$as_me.lineno &&
3580 chmod +x $as_me.lineno ||
3581 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3582 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3583 { (exit 1); exit 1; }; }
3585 # Don't try to exec as it changes $[0], causing all sort of problems
3586 # (the dirname of $[0] is not the place where we might find the
3587 # original and so on. Autoconf is especially sensible to this).
3588 . ./$as_me.lineno
3589 # Exit status is that of the last command.
3590 exit
3594 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3595 *c*,-n*) ECHO_N= ECHO_C='
3596 ' ECHO_T=' ' ;;
3597 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3598 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3599 esac
3601 if expr a : '\(a\)' >/dev/null 2>&1; then
3602 as_expr=expr
3603 else
3604 as_expr=false
3607 rm -f conf$$ conf$$.exe conf$$.file
3608 echo >conf$$.file
3609 if ln -s conf$$.file conf$$ 2>/dev/null; then
3610 # We could just check for DJGPP; but this test a) works b) is more generic
3611 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3612 if test -f conf$$.exe; then
3613 # Don't use ln at all; we don't have any links
3614 as_ln_s='cp -p'
3615 else
3616 as_ln_s='ln -s'
3618 elif ln conf$$.file conf$$ 2>/dev/null; then
3619 as_ln_s=ln
3620 else
3621 as_ln_s='cp -p'
3623 rm -f conf$$ conf$$.exe conf$$.file
3625 if mkdir -p . 2>/dev/null; then
3626 as_mkdir_p=:
3627 else
3628 test -d ./-p && rmdir ./-p
3629 as_mkdir_p=false
3632 as_executable_p="test -f"
3634 # Sed expression to map a string onto a valid CPP name.
3635 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3637 # Sed expression to map a string onto a valid variable name.
3638 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3641 # IFS
3642 # We need space, tab and new line, in precisely that order.
3643 as_nl='
3645 IFS=" $as_nl"
3647 # CDPATH.
3648 $as_unset CDPATH
3650 exec 6>&1
3652 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3653 # report actual input values of CONFIG_FILES etc. instead of their
3654 # values after options handling. Logging --version etc. is OK.
3655 exec 5>>config.log
3657 echo
3658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3659 ## Running $as_me. ##
3660 _ASBOX
3661 } >&5
3662 cat >&5 <<_CSEOF
3664 This file was extended by $as_me, which was
3665 generated by GNU Autoconf 2.59. Invocation command line was
3667 CONFIG_FILES = $CONFIG_FILES
3668 CONFIG_HEADERS = $CONFIG_HEADERS
3669 CONFIG_LINKS = $CONFIG_LINKS
3670 CONFIG_COMMANDS = $CONFIG_COMMANDS
3671 $ $0 $@
3673 _CSEOF
3674 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3675 echo >&5
3676 _ACEOF
3678 # Files that config.status was made for.
3679 if test -n "$ac_config_files"; then
3680 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3683 if test -n "$ac_config_headers"; then
3684 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3687 if test -n "$ac_config_links"; then
3688 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3691 if test -n "$ac_config_commands"; then
3692 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3695 cat >>$CONFIG_STATUS <<\_ACEOF
3697 ac_cs_usage="\
3698 \`$as_me' instantiates files from templates according to the
3699 current configuration.
3701 Usage: $0 [OPTIONS] [FILE]...
3703 -h, --help print this help, then exit
3704 -V, --version print version number, then exit
3705 -q, --quiet do not print progress messages
3706 -d, --debug don't remove temporary files
3707 --recheck update $as_me by reconfiguring in the same conditions
3708 --file=FILE[:TEMPLATE]
3709 instantiate the configuration file FILE
3711 Configuration files:
3712 $config_files
3714 Configuration commands:
3715 $config_commands
3717 Report bugs to <bug-autoconf@gnu.org>."
3718 _ACEOF
3720 cat >>$CONFIG_STATUS <<_ACEOF
3721 ac_cs_version="\\
3722 config.status
3723 configured by $0, generated by GNU Autoconf 2.59,
3724 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3726 Copyright (C) 2003 Free Software Foundation, Inc.
3727 This config.status script is free software; the Free Software Foundation
3728 gives unlimited permission to copy, distribute and modify it."
3729 srcdir=$srcdir
3730 _ACEOF
3732 cat >>$CONFIG_STATUS <<\_ACEOF
3733 # If no file are specified by the user, then we need to provide default
3734 # value. By we need to know if files were specified by the user.
3735 ac_need_defaults=:
3736 while test $# != 0
3738 case $1 in
3739 --*=*)
3740 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3741 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3742 ac_shift=:
3745 ac_option=$1
3746 ac_optarg=$2
3747 ac_shift=shift
3749 *) # This is not an option, so the user has probably given explicit
3750 # arguments.
3751 ac_option=$1
3752 ac_need_defaults=false;;
3753 esac
3755 case $ac_option in
3756 # Handling of the options.
3757 _ACEOF
3758 cat >>$CONFIG_STATUS <<\_ACEOF
3759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3760 ac_cs_recheck=: ;;
3761 --version | --vers* | -V )
3762 echo "$ac_cs_version"; exit 0 ;;
3763 --he | --h)
3764 # Conflict between --help and --header
3765 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3766 Try \`$0 --help' for more information." >&5
3767 echo "$as_me: error: ambiguous option: $1
3768 Try \`$0 --help' for more information." >&2;}
3769 { (exit 1); exit 1; }; };;
3770 --help | --hel | -h )
3771 echo "$ac_cs_usage"; exit 0 ;;
3772 --debug | --d* | -d )
3773 debug=: ;;
3774 --file | --fil | --fi | --f )
3775 $ac_shift
3776 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3777 ac_need_defaults=false;;
3778 --header | --heade | --head | --hea )
3779 $ac_shift
3780 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3781 ac_need_defaults=false;;
3782 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3783 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3784 ac_cs_silent=: ;;
3786 # This is an error.
3787 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3788 Try \`$0 --help' for more information." >&5
3789 echo "$as_me: error: unrecognized option: $1
3790 Try \`$0 --help' for more information." >&2;}
3791 { (exit 1); exit 1; }; } ;;
3793 *) ac_config_targets="$ac_config_targets $1" ;;
3795 esac
3796 shift
3797 done
3799 ac_configure_extra_args=
3801 if $ac_cs_silent; then
3802 exec 6>/dev/null
3803 ac_configure_extra_args="$ac_configure_extra_args --silent"
3806 _ACEOF
3807 cat >>$CONFIG_STATUS <<_ACEOF
3808 if \$ac_cs_recheck; then
3809 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3810 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3813 _ACEOF
3815 cat >>$CONFIG_STATUS <<_ACEOF
3817 # INIT-COMMANDS section.
3821 srcdir="$srcdir"
3822 host="$host"
3823 target="$target"
3824 with_multisubdir="$with_multisubdir"
3825 with_multisrctop="$with_multisrctop"
3826 with_target_subdir="$with_target_subdir"
3827 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3828 multi_basedir="$multi_basedir"
3829 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3830 CC="$CC"
3831 CXX="$CXX"
3832 GFORTRAN="$GFORTRAN"
3833 GCJ="$GCJ"
3835 _ACEOF
3839 cat >>$CONFIG_STATUS <<\_ACEOF
3840 for ac_config_target in $ac_config_targets
3842 case "$ac_config_target" in
3843 # Handling of arguments.
3844 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3845 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3846 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3847 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3848 { (exit 1); exit 1; }; };;
3849 esac
3850 done
3852 # If the user did not use the arguments to specify the items to instantiate,
3853 # then the envvar interface is used. Set only those that are not.
3854 # We use the long form for the default assignment because of an extremely
3855 # bizarre bug on SunOS 4.1.3.
3856 if $ac_need_defaults; then
3857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3861 # Have a temporary directory for convenience. Make it in the build tree
3862 # simply because there is no reason to put it here, and in addition,
3863 # creating and moving files from /tmp can sometimes cause problems.
3864 # Create a temporary directory, and hook for its removal unless debugging.
3865 $debug ||
3867 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3868 trap '{ (exit 1); exit 1; }' 1 2 13 15
3871 # Create a (secure) tmp directory for tmp files.
3874 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3875 test -n "$tmp" && test -d "$tmp"
3876 } ||
3878 tmp=./confstat$$-$RANDOM
3879 (umask 077 && mkdir $tmp)
3880 } ||
3882 echo "$me: cannot create a temporary directory in ." >&2
3883 { (exit 1); exit 1; }
3886 _ACEOF
3888 cat >>$CONFIG_STATUS <<_ACEOF
3891 # CONFIG_FILES section.
3894 # No need to generate the scripts if there are no CONFIG_FILES.
3895 # This happens for instance when ./config.status config.h
3896 if test -n "\$CONFIG_FILES"; then
3897 # Protect against being on the right side of a sed subst in config.status.
3898 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3899 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3900 s,@SHELL@,$SHELL,;t t
3901 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3902 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3903 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3904 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3905 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3906 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3907 s,@exec_prefix@,$exec_prefix,;t t
3908 s,@prefix@,$prefix,;t t
3909 s,@program_transform_name@,$program_transform_name,;t t
3910 s,@bindir@,$bindir,;t t
3911 s,@sbindir@,$sbindir,;t t
3912 s,@libexecdir@,$libexecdir,;t t
3913 s,@datadir@,$datadir,;t t
3914 s,@sysconfdir@,$sysconfdir,;t t
3915 s,@sharedstatedir@,$sharedstatedir,;t t
3916 s,@localstatedir@,$localstatedir,;t t
3917 s,@libdir@,$libdir,;t t
3918 s,@includedir@,$includedir,;t t
3919 s,@oldincludedir@,$oldincludedir,;t t
3920 s,@infodir@,$infodir,;t t
3921 s,@mandir@,$mandir,;t t
3922 s,@build_alias@,$build_alias,;t t
3923 s,@host_alias@,$host_alias,;t t
3924 s,@target_alias@,$target_alias,;t t
3925 s,@DEFS@,$DEFS,;t t
3926 s,@ECHO_C@,$ECHO_C,;t t
3927 s,@ECHO_N@,$ECHO_N,;t t
3928 s,@ECHO_T@,$ECHO_T,;t t
3929 s,@LIBS@,$LIBS,;t t
3930 s,@build@,$build,;t t
3931 s,@build_cpu@,$build_cpu,;t t
3932 s,@build_vendor@,$build_vendor,;t t
3933 s,@build_os@,$build_os,;t t
3934 s,@host@,$host,;t t
3935 s,@host_cpu@,$host_cpu,;t t
3936 s,@host_vendor@,$host_vendor,;t t
3937 s,@host_os@,$host_os,;t t
3938 s,@target@,$target,;t t
3939 s,@target_cpu@,$target_cpu,;t t
3940 s,@target_vendor@,$target_vendor,;t t
3941 s,@target_os@,$target_os,;t t
3942 s,@target_noncanonical@,$target_noncanonical,;t t
3943 s,@build_libsubdir@,$build_libsubdir,;t t
3944 s,@build_subdir@,$build_subdir,;t t
3945 s,@host_subdir@,$host_subdir,;t t
3946 s,@target_subdir@,$target_subdir,;t t
3947 s,@MAINT@,$MAINT,;t t
3948 s,@multi_basedir@,$multi_basedir,;t t
3949 s,@toolexecdir@,$toolexecdir,;t t
3950 s,@toolexeclibdir@,$toolexeclibdir,;t t
3951 s,@CC@,$CC,;t t
3952 s,@ac_ct_CC@,$ac_ct_CC,;t t
3953 s,@EXEEXT@,$EXEEXT,;t t
3954 s,@OBJEXT@,$OBJEXT,;t t
3955 s,@CFLAGS@,$CFLAGS,;t t
3956 s,@enable_shared@,$enable_shared,;t t
3957 s,@LN_S@,$LN_S,;t t
3958 s,@default_gnatlib_target@,$default_gnatlib_target,;t t
3959 s,@LDFLAGS@,$LDFLAGS,;t t
3960 s,@CPPFLAGS@,$CPPFLAGS,;t t
3961 s,@warn_cflags@,$warn_cflags,;t t
3962 s,@LIBOBJS@,$LIBOBJS,;t t
3963 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3964 CEOF
3966 _ACEOF
3968 cat >>$CONFIG_STATUS <<\_ACEOF
3969 # Split the substitutions into bite-sized pieces for seds with
3970 # small command number limits, like on Digital OSF/1 and HP-UX.
3971 ac_max_sed_lines=48
3972 ac_sed_frag=1 # Number of current file.
3973 ac_beg=1 # First line for current file.
3974 ac_end=$ac_max_sed_lines # Line after last line for current file.
3975 ac_more_lines=:
3976 ac_sed_cmds=
3977 while $ac_more_lines; do
3978 if test $ac_beg -gt 1; then
3979 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3980 else
3981 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3983 if test ! -s $tmp/subs.frag; then
3984 ac_more_lines=false
3985 else
3986 # The purpose of the label and of the branching condition is to
3987 # speed up the sed processing (if there are no `@' at all, there
3988 # is no need to browse any of the substitutions).
3989 # These are the two extra sed commands mentioned above.
3990 (echo ':t
3991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3992 if test -z "$ac_sed_cmds"; then
3993 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3994 else
3995 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3997 ac_sed_frag=`expr $ac_sed_frag + 1`
3998 ac_beg=$ac_end
3999 ac_end=`expr $ac_end + $ac_max_sed_lines`
4001 done
4002 if test -z "$ac_sed_cmds"; then
4003 ac_sed_cmds=cat
4005 fi # test -n "$CONFIG_FILES"
4007 _ACEOF
4008 cat >>$CONFIG_STATUS <<\_ACEOF
4009 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4010 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4011 case $ac_file in
4012 - | *:- | *:-:* ) # input from stdin
4013 cat >$tmp/stdin
4014 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4016 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4017 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4018 * ) ac_file_in=$ac_file.in ;;
4019 esac
4021 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4022 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4024 X"$ac_file" : 'X\(//\)[^/]' \| \
4025 X"$ac_file" : 'X\(//\)$' \| \
4026 X"$ac_file" : 'X\(/\)' \| \
4027 . : '\(.\)' 2>/dev/null ||
4028 echo X"$ac_file" |
4029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4031 /^X\(\/\/\)$/{ s//\1/; q; }
4032 /^X\(\/\).*/{ s//\1/; q; }
4033 s/.*/./; q'`
4034 { if $as_mkdir_p; then
4035 mkdir -p "$ac_dir"
4036 else
4037 as_dir="$ac_dir"
4038 as_dirs=
4039 while test ! -d "$as_dir"; do
4040 as_dirs="$as_dir $as_dirs"
4041 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4043 X"$as_dir" : 'X\(//\)[^/]' \| \
4044 X"$as_dir" : 'X\(//\)$' \| \
4045 X"$as_dir" : 'X\(/\)' \| \
4046 . : '\(.\)' 2>/dev/null ||
4047 echo X"$as_dir" |
4048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4050 /^X\(\/\/\)$/{ s//\1/; q; }
4051 /^X\(\/\).*/{ s//\1/; q; }
4052 s/.*/./; q'`
4053 done
4054 test ! -n "$as_dirs" || mkdir $as_dirs
4055 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4056 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4057 { (exit 1); exit 1; }; }; }
4059 ac_builddir=.
4061 if test "$ac_dir" != .; then
4062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4063 # A "../" for each directory in $ac_dir_suffix.
4064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4065 else
4066 ac_dir_suffix= ac_top_builddir=
4069 case $srcdir in
4070 .) # No --srcdir option. We are building in place.
4071 ac_srcdir=.
4072 if test -z "$ac_top_builddir"; then
4073 ac_top_srcdir=.
4074 else
4075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4076 fi ;;
4077 [\\/]* | ?:[\\/]* ) # Absolute path.
4078 ac_srcdir=$srcdir$ac_dir_suffix;
4079 ac_top_srcdir=$srcdir ;;
4080 *) # Relative path.
4081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4083 esac
4085 # Do not use `cd foo && pwd` to compute absolute paths, because
4086 # the directories may not exist.
4087 case `pwd` in
4088 .) ac_abs_builddir="$ac_dir";;
4090 case "$ac_dir" in
4091 .) ac_abs_builddir=`pwd`;;
4092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4094 esac;;
4095 esac
4096 case $ac_abs_builddir in
4097 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4099 case ${ac_top_builddir}. in
4100 .) ac_abs_top_builddir=$ac_abs_builddir;;
4101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4103 esac;;
4104 esac
4105 case $ac_abs_builddir in
4106 .) ac_abs_srcdir=$ac_srcdir;;
4108 case $ac_srcdir in
4109 .) ac_abs_srcdir=$ac_abs_builddir;;
4110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4112 esac;;
4113 esac
4114 case $ac_abs_builddir in
4115 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4117 case $ac_top_srcdir in
4118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4121 esac;;
4122 esac
4126 if test x"$ac_file" != x-; then
4127 { echo "$as_me:$LINENO: creating $ac_file" >&5
4128 echo "$as_me: creating $ac_file" >&6;}
4129 rm -f "$ac_file"
4131 # Let's still pretend it is `configure' which instantiates (i.e., don't
4132 # use $as_me), people would be surprised to read:
4133 # /* config.h. Generated by config.status. */
4134 if test x"$ac_file" = x-; then
4135 configure_input=
4136 else
4137 configure_input="$ac_file. "
4139 configure_input=$configure_input"Generated from `echo $ac_file_in |
4140 sed 's,.*/,,'` by configure."
4142 # First look for the input files in the build tree, otherwise in the
4143 # src tree.
4144 ac_file_inputs=`IFS=:
4145 for f in $ac_file_in; do
4146 case $f in
4147 -) echo $tmp/stdin ;;
4148 [\\/$]*)
4149 # Absolute (can't be DOS-style, as IFS=:)
4150 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4151 echo "$as_me: error: cannot find input file: $f" >&2;}
4152 { (exit 1); exit 1; }; }
4153 echo "$f";;
4154 *) # Relative
4155 if test -f "$f"; then
4156 # Build tree
4157 echo "$f"
4158 elif test -f "$srcdir/$f"; then
4159 # Source tree
4160 echo "$srcdir/$f"
4161 else
4162 # /dev/null tree
4163 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4164 echo "$as_me: error: cannot find input file: $f" >&2;}
4165 { (exit 1); exit 1; }; }
4166 fi;;
4167 esac
4168 done` || { (exit 1); exit 1; }
4169 _ACEOF
4170 cat >>$CONFIG_STATUS <<_ACEOF
4171 sed "$ac_vpsub
4172 $extrasub
4173 _ACEOF
4174 cat >>$CONFIG_STATUS <<\_ACEOF
4176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4177 s,@configure_input@,$configure_input,;t t
4178 s,@srcdir@,$ac_srcdir,;t t
4179 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4180 s,@top_srcdir@,$ac_top_srcdir,;t t
4181 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4182 s,@builddir@,$ac_builddir,;t t
4183 s,@abs_builddir@,$ac_abs_builddir,;t t
4184 s,@top_builddir@,$ac_top_builddir,;t t
4185 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4186 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4187 rm -f $tmp/stdin
4188 if test x"$ac_file" != x-; then
4189 mv $tmp/out $ac_file
4190 else
4191 cat $tmp/out
4192 rm -f $tmp/out
4195 done
4196 _ACEOF
4197 cat >>$CONFIG_STATUS <<\_ACEOF
4200 # CONFIG_COMMANDS section.
4202 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4203 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4204 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4205 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4206 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4207 X"$ac_dest" : 'X\(//\)[^/]' \| \
4208 X"$ac_dest" : 'X\(//\)$' \| \
4209 X"$ac_dest" : 'X\(/\)' \| \
4210 . : '\(.\)' 2>/dev/null ||
4211 echo X"$ac_dest" |
4212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4214 /^X\(\/\/\)$/{ s//\1/; q; }
4215 /^X\(\/\).*/{ s//\1/; q; }
4216 s/.*/./; q'`
4217 { if $as_mkdir_p; then
4218 mkdir -p "$ac_dir"
4219 else
4220 as_dir="$ac_dir"
4221 as_dirs=
4222 while test ! -d "$as_dir"; do
4223 as_dirs="$as_dir $as_dirs"
4224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4226 X"$as_dir" : 'X\(//\)[^/]' \| \
4227 X"$as_dir" : 'X\(//\)$' \| \
4228 X"$as_dir" : 'X\(/\)' \| \
4229 . : '\(.\)' 2>/dev/null ||
4230 echo X"$as_dir" |
4231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4233 /^X\(\/\/\)$/{ s//\1/; q; }
4234 /^X\(\/\).*/{ s//\1/; q; }
4235 s/.*/./; q'`
4236 done
4237 test ! -n "$as_dirs" || mkdir $as_dirs
4238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4240 { (exit 1); exit 1; }; }; }
4242 ac_builddir=.
4244 if test "$ac_dir" != .; then
4245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4246 # A "../" for each directory in $ac_dir_suffix.
4247 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4248 else
4249 ac_dir_suffix= ac_top_builddir=
4252 case $srcdir in
4253 .) # No --srcdir option. We are building in place.
4254 ac_srcdir=.
4255 if test -z "$ac_top_builddir"; then
4256 ac_top_srcdir=.
4257 else
4258 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4259 fi ;;
4260 [\\/]* | ?:[\\/]* ) # Absolute path.
4261 ac_srcdir=$srcdir$ac_dir_suffix;
4262 ac_top_srcdir=$srcdir ;;
4263 *) # Relative path.
4264 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4265 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4266 esac
4268 # Do not use `cd foo && pwd` to compute absolute paths, because
4269 # the directories may not exist.
4270 case `pwd` in
4271 .) ac_abs_builddir="$ac_dir";;
4273 case "$ac_dir" in
4274 .) ac_abs_builddir=`pwd`;;
4275 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4276 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4277 esac;;
4278 esac
4279 case $ac_abs_builddir in
4280 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4282 case ${ac_top_builddir}. in
4283 .) ac_abs_top_builddir=$ac_abs_builddir;;
4284 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4285 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4286 esac;;
4287 esac
4288 case $ac_abs_builddir in
4289 .) ac_abs_srcdir=$ac_srcdir;;
4291 case $ac_srcdir in
4292 .) ac_abs_srcdir=$ac_abs_builddir;;
4293 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4294 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4295 esac;;
4296 esac
4297 case $ac_abs_builddir in
4298 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4300 case $ac_top_srcdir in
4301 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4302 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4303 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4304 esac;;
4305 esac
4308 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4309 echo "$as_me: executing $ac_dest commands" >&6;}
4310 case $ac_dest in
4311 default-1 )
4312 # Only add multilib support code if we just rebuilt the top-level
4313 # Makefile.
4314 case " $CONFIG_FILES " in
4315 *" Makefile "*)
4316 ac_file=Makefile . ${multi_basedir}/config-ml.in
4318 esac ;;
4319 esac
4320 done
4321 _ACEOF
4323 cat >>$CONFIG_STATUS <<\_ACEOF
4325 { (exit 0); exit 0; }
4326 _ACEOF
4327 chmod +x $CONFIG_STATUS
4328 ac_clean_files=$ac_clean_files_save
4331 # configure is writing to config.log, and then calls config.status.
4332 # config.status does its own redirection, appending to config.log.
4333 # Unfortunately, on DOS this fails, as config.log is still kept open
4334 # by configure, so config.status won't be able to write to it; its
4335 # output is simply discarded. So we exec the FD to /dev/null,
4336 # effectively closing config.log, so it can be properly (re)opened and
4337 # appended to by config.status. When coming back to configure, we
4338 # need to make the FD available again.
4339 if test "$no_create" != yes; then
4340 ac_cs_success=:
4341 ac_config_status_args=
4342 test "$silent" = yes &&
4343 ac_config_status_args="$ac_config_status_args --quiet"
4344 exec 5>/dev/null
4345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4346 exec 5>>config.log
4347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4348 # would make configure fail if this is the last instruction.
4349 $ac_cs_success || { (exit 1); exit 1; }