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