* dwarf2read.c (dwarf2_add_field): Correctly scale all byte
[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
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1259 fi;;
1260 esac
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1263 case $ac_new_val in
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1267 esac
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 esac
c906108c 1272 fi
bec39cab
AC
1273done
1274if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
c906108c
SS
1280fi
1281
bec39cab
AC
1282ac_ext=c
1283ac_cpp='$CPP $CPPFLAGS'
1284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
c906108c
SS
1305
1306
c906108c 1307ac_aux_dir=
b39c905e 1308for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
c906108c
SS
1309 if test -f $ac_dir/install-sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install-sh -c"
1312 break
1313 elif test -f $ac_dir/install.sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install.sh -c"
1316 break
bec39cab
AC
1317 elif test -f $ac_dir/shtool; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/shtool install -c"
1320 break
c906108c
SS
1321 fi
1322done
1323if test -z "$ac_aux_dir"; then
bec39cab
AC
1324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1326 { (exit 1); exit 1; }; }
1327fi
1328ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c
SS
1331
1332# Make sure we can run config.sub.
bec39cab
AC
1333$ac_config_sub sun4 >/dev/null 2>&1 ||
1334 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1335echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1336 { (exit 1); exit 1; }; }
1337
1338echo "$as_me:$LINENO: checking build system type" >&5
1339echo $ECHO_N "checking build system type... $ECHO_C" >&6
1340if test "${ac_cv_build+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1342else
1343 ac_cv_build_alias=$build_alias
1344test -z "$ac_cv_build_alias" &&
1345 ac_cv_build_alias=`$ac_config_guess`
1346test -z "$ac_cv_build_alias" &&
1347 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1348echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1349 { (exit 1); exit 1; }; }
1350ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1351 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1352echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1353 { (exit 1); exit 1; }; }
1354
c906108c 1355fi
bec39cab
AC
1356echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1357echo "${ECHO_T}$ac_cv_build" >&6
1358build=$ac_cv_build
1359build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362
1363
1364echo "$as_me:$LINENO: checking host system type" >&5
1365echo $ECHO_N "checking host system type... $ECHO_C" >&6
1366if test "${ac_cv_host+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1368else
1369 ac_cv_host_alias=$host_alias
1370test -z "$ac_cv_host_alias" &&
1371 ac_cv_host_alias=$ac_cv_build_alias
1372ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1374echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
c906108c 1376
bec39cab
AC
1377fi
1378echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1379echo "${ECHO_T}$ac_cv_host" >&6
1380host=$ac_cv_host
1381host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386echo "$as_me:$LINENO: checking target system type" >&5
1387echo $ECHO_N "checking target system type... $ECHO_C" >&6
1388if test "${ac_cv_target+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 ac_cv_target_alias=$target_alias
1392test "x$ac_cv_target_alias" = "x" &&
1393 ac_cv_target_alias=$ac_cv_host_alias
1394ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1396echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
c906108c 1398
bec39cab
AC
1399fi
1400echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1401echo "${ECHO_T}$ac_cv_target" >&6
1402target=$ac_cv_target
1403target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 1406
c906108c 1407
bec39cab
AC
1408# The aliases save the names the user supplied, while $host etc.
1409# will get canonicalized.
1410test -n "$target_alias" &&
1411 test "$program_prefix$program_suffix$program_transform_name" = \
1412 NONENONEs,x,x, &&
1413 program_prefix=${target_alias}-
c906108c 1414
be2a5f71
DJ
1415 case ${build_alias} in
1416 "") build_noncanonical=${build} ;;
1417 *) build_noncanonical=${build_alias} ;;
1418esac
1419
1420 case ${host_alias} in
1421 "") host_noncanonical=${build_noncanonical} ;;
1422 *) host_noncanonical=${host_alias} ;;
1423esac
1424
1425 case ${target_alias} in
1426 "") target_noncanonical=${host_noncanonical} ;;
1427 *) target_noncanonical=${target_alias} ;;
1428esac
1429
1430
1431
1432
b39c905e
MK
1433# Add HP-specific tests when appropriate.
1434case $target in
1435 hppa*-*-hpux*)
bec39cab
AC
1436
1437
1438subdirs="$subdirs gdb.hp"
3ace7edb 1439 ;;
c906108c
SS
1440esac
1441
b39c905e 1442# With stabs.
bec39cab 1443
b39c905e
MK
1444# Check whether --with-stabs or --without-stabs was given.
1445if test "${with_stabs+set}" = set; then
1446 withval="$with_stabs"
bec39cab 1447
b39c905e
MK
1448else
1449 # We enable stabs tests by default on selected targets.
1450case $target in
1451 powerpc-*-aix* \
1452 | rs6000-*-aix* \
3224a706 1453 | *-*-*bsd* \
b39c905e
MK
1454 | *-*-go32* \
1455 | *-*-linux* \
1456 | *-*-lynxos* \
1457 | *-sun-* \
1458 | hppa*-*-* \
1459 | *-*-elf* \
3f213f78
PA
1460 | *-*-cygwin* \
1461 | *-*-mingw* \
b39c905e
MK
1462 )
1463 with_stabs=yes ;;
1464 *)
1465 with_stabs=no ;;
c906108c 1466esac
bec39cab 1467fi;
b39c905e
MK
1468
1469# Add stabs tests when appropriate.
1470if test $with_stabs = yes; then
bec39cab
AC
1471
1472
1473subdirs="$subdirs gdb.stabs"
3ace7edb 1474
c906108c
SS
1475fi
1476
b39c905e 1477# Enable gdbtk.
3fc11d3e
JM
1478# Check whether --enable-gdbtk or --disable-gdbtk was given.
1479if test "${enable_gdbtk+set}" = set; then
1480 enableval="$enable_gdbtk"
bec39cab 1481
3fc11d3e 1482else
b39c905e
MK
1483 if test -d $srcdir/gdb.gdbtk; then
1484 enable_gdbtk=yes
1485 else
1486 enable_gdbtk=no
1487 fi
bec39cab 1488fi;
b39c905e
MK
1489# We unconditionally disable gdbtk tests on selected platforms.
1490case $host_os in
1491 go32* | windows*)
1492 enable_gdbtk=no ;;
1493esac
1494
1495# Add gdbtk tests when appropriate.
1496if test $enable_gdbtk = yes; then
bec39cab
AC
1497
1498
1499subdirs="$subdirs gdb.gdbtk"
3ace7edb 1500
3fc11d3e
JM
1501fi
1502
b39c905e
MK
1503# Enable shared libraries.
1504# Check whether --enable-shared or --disable-shared was given.
1505if test "${enable_shared+set}" = set; then
1506 enableval="$enable_shared"
bec39cab 1507
b39c905e
MK
1508else
1509 enable_shared=yes
bec39cab 1510fi;
b39c905e
MK
1511
1512# If we have shared libraries, try to set RPATH_ENVVAR reasonably,
1513# such that we can find the shared libraries in the build tree.
1514if test $enable_shared = no; then
1515 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
1516 # platform.
1517 RPATH_ENVVAR=RPATH_ENVVAR
1518else
1519 # The variable `LD_LIBRARY_PATH' is used on most platforms.
1520 RPATH_ENVVAR=LD_LIBRARY_PATH
1521 # The following exceptions are taken from Libtool 1.4.3.
1522 case $host_os in
1523 aix*)
1524 if test $host_cpu != ia64; then
1525 RPATH_ENVVAR=LIBPATH
1526 fi ;;
1527 darwin* | rhapsody*)
1528 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
1529 hpux*)
1530 RPATH_ENVVAR=SHLIB_PATH ;;
1531 esac
3fc11d3e 1532fi
b39c905e 1533
c906108c 1534
bec39cab
AC
1535ac_ext=c
1536ac_cpp='$CPP $CPPFLAGS'
1537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1539ac_compiler_gnu=$ac_cv_c_compiler_gnu
1540if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1542set dummy ${ac_tool_prefix}gcc; ac_word=$2
1543echo "$as_me:$LINENO: checking for $ac_word" >&5
1544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550else
1551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552for as_dir in $PATH
1553do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562done
1563done
1564
1565fi
1566fi
1567CC=$ac_cv_prog_CC
1568if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570echo "${ECHO_T}$CC" >&6
1571else
1572 echo "$as_me:$LINENO: result: no" >&5
1573echo "${ECHO_T}no" >&6
1574fi
1575
1576fi
1577if test -z "$ac_cv_prog_CC"; then
1578 ac_ct_CC=$CC
1579 # Extract the first word of "gcc", so it can be a program name with args.
1580set dummy gcc; ac_word=$2
1581echo "$as_me:$LINENO: checking for $ac_word" >&5
1582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588else
1589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590for as_dir in $PATH
1591do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="gcc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1599 fi
1600done
1601done
1602
1603fi
1604fi
1605ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608echo "${ECHO_T}$ac_ct_CC" >&6
1609else
1610 echo "$as_me:$LINENO: result: no" >&5
1611echo "${ECHO_T}no" >&6
1612fi
1613
1614 CC=$ac_ct_CC
1615else
1616 CC="$ac_cv_prog_CC"
1617fi
1618
1619if test -z "$CC"; then
1620 if test -n "$ac_tool_prefix"; then
1621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1622set dummy ${ac_tool_prefix}cc; ac_word=$2
1623echo "$as_me:$LINENO: checking for $ac_word" >&5
1624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1630else
1631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632for as_dir in $PATH
1633do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 for ac_exec_ext in '' $ac_executable_extensions; do
1637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638 ac_cv_prog_CC="${ac_tool_prefix}cc"
1639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640 break 2
1641 fi
1642done
1643done
1644
1645fi
1646fi
1647CC=$ac_cv_prog_CC
1648if test -n "$CC"; then
1649 echo "$as_me:$LINENO: result: $CC" >&5
1650echo "${ECHO_T}$CC" >&6
1651else
1652 echo "$as_me:$LINENO: result: no" >&5
1653echo "${ECHO_T}no" >&6
1654fi
1655
1656fi
1657if test -z "$ac_cv_prog_CC"; then
1658 ac_ct_CC=$CC
1659 # Extract the first word of "cc", so it can be a program name with args.
1660set dummy cc; ac_word=$2
1661echo "$as_me:$LINENO: checking for $ac_word" >&5
1662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668else
1669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="cc"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680done
1681done
1682
1683fi
1684fi
1685ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688echo "${ECHO_T}$ac_ct_CC" >&6
1689else
1690 echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694 CC=$ac_ct_CC
1695else
1696 CC="$ac_cv_prog_CC"
1697fi
1698
1699fi
1700if test -z "$CC"; then
1701 # Extract the first word of "cc", so it can be a program name with args.
1702set dummy cc; ac_word=$2
1703echo "$as_me:$LINENO: checking for $ac_word" >&5
1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705if test "${ac_cv_prog_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708 if test -n "$CC"; then
1709 ac_cv_prog_CC="$CC" # Let the user override the test.
1710else
1711 ac_prog_rejected=no
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1720 ac_prog_rejected=yes
1721 continue
1722 fi
1723 ac_cv_prog_CC="cc"
1724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 break 2
1726 fi
1727done
1728done
1729
1730if test $ac_prog_rejected = yes; then
1731 # We found a bogon in the path, so make sure we never use it.
1732 set dummy $ac_cv_prog_CC
1733 shift
1734 if test $# != 0; then
1735 # We chose a different compiler from the bogus one.
1736 # However, it has the same basename, so the bogon will be chosen
1737 # first if we set CC to just the basename; use the full file name.
1738 shift
1739 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1740 fi
1741fi
1742fi
1743fi
1744CC=$ac_cv_prog_CC
1745if test -n "$CC"; then
1746 echo "$as_me:$LINENO: result: $CC" >&5
1747echo "${ECHO_T}$CC" >&6
1748else
1749 echo "$as_me:$LINENO: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753fi
1754if test -z "$CC"; then
1755 if test -n "$ac_tool_prefix"; then
1756 for ac_prog in cl
1757 do
1758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767else
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779done
1780done
1781
1782fi
1783fi
1784CC=$ac_cv_prog_CC
1785if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787echo "${ECHO_T}$CC" >&6
1788else
1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
1791fi
1792
1793 test -n "$CC" && break
1794 done
1795fi
1796if test -z "$CC"; then
1797 ac_ct_CC=$CC
1798 for ac_prog in cl
1799do
1800 # Extract the first word of "$ac_prog", so it can be a program name with args.
1801set dummy $ac_prog; ac_word=$2
1802echo "$as_me:$LINENO: checking for $ac_word" >&5
1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807 if test -n "$ac_ct_CC"; then
1808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809else
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_ac_ct_CC="$ac_prog"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1820 fi
1821done
1822done
1823
1824fi
1825fi
1826ac_ct_CC=$ac_cv_prog_ac_ct_CC
1827if test -n "$ac_ct_CC"; then
1828 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1829echo "${ECHO_T}$ac_ct_CC" >&6
1830else
1831 echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
1833fi
1834
1835 test -n "$ac_ct_CC" && break
1836done
1837
1838 CC=$ac_ct_CC
1839fi
1840
1841fi
1842
1843
1844test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1845See \`config.log' for more details." >&5
1846echo "$as_me: error: no acceptable C compiler found in \$PATH
1847See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1849
1850# Provide some information about the compiler.
1851echo "$as_me:$LINENO:" \
1852 "checking for C compiler version" >&5
1853ac_compiler=`set X $ac_compile; echo $2`
1854{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1855 (eval $ac_compiler --version </dev/null >&5) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1860 (eval $ac_compiler -v </dev/null >&5) 2>&5
1861 ac_status=$?
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1864{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1865 (eval $ac_compiler -V </dev/null >&5) 2>&5
1866 ac_status=$?
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }
1869
1870cat >conftest.$ac_ext <<_ACEOF
1871/* confdefs.h. */
1872_ACEOF
1873cat confdefs.h >>conftest.$ac_ext
1874cat >>conftest.$ac_ext <<_ACEOF
1875/* end confdefs.h. */
1876
1877int
1878main ()
1879{
1880
1881 ;
1882 return 0;
1883}
1884_ACEOF
1885ac_clean_files_save=$ac_clean_files
1886ac_clean_files="$ac_clean_files a.out a.exe b.out"
1887# Try to create an executable without -o first, disregard a.out.
1888# It will help us diagnose broken compilers, and finding out an intuition
1889# of exeext.
1890echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1891echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1892ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1893if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1894 (eval $ac_link_default) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 # Find the output, starting from the most likely. This scheme is
1899# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1900# resort.
1901
1902# Be careful to initialize this variable, since it used to be cached.
1903# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1904ac_cv_exeext=
1905# b.out is created by i960 compilers.
1906for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1907do
1908 test -f "$ac_file" || continue
1909 case $ac_file in
1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1911 ;;
1912 conftest.$ac_ext )
1913 # This is the source file.
1914 ;;
1915 [ab].out )
1916 # We found the default executable, but exeext='' is most
1917 # certainly right.
1918 break;;
1919 *.* )
1920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1921 # FIXME: I believe we export ac_cv_exeext for Libtool,
1922 # but it would be cool to find out if it's true. Does anybody
1923 # maintain Libtool? --akim.
1924 export ac_cv_exeext
1925 break;;
1926 * )
1927 break;;
1928 esac
1929done
1930else
1931 echo "$as_me: failed program was:" >&5
1932sed 's/^/| /' conftest.$ac_ext >&5
1933
1934{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1935See \`config.log' for more details." >&5
1936echo "$as_me: error: C compiler cannot create executables
1937See \`config.log' for more details." >&2;}
1938 { (exit 77); exit 77; }; }
1939fi
1940
1941ac_exeext=$ac_cv_exeext
1942echo "$as_me:$LINENO: result: $ac_file" >&5
1943echo "${ECHO_T}$ac_file" >&6
1944
1945# Check the compiler produces executables we can run. If not, either
1946# the compiler is broken, or we cross compile.
1947echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1948echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1949# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1950# If not cross compiling, check that we can run a simple program.
1951if test "$cross_compiling" != yes; then
1952 if { ac_try='./$ac_file'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1958 cross_compiling=no
1959 else
1960 if test "$cross_compiling" = maybe; then
1961 cross_compiling=yes
1962 else
1963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1964If you meant to cross compile, use \`--host'.
1965See \`config.log' for more details." >&5
1966echo "$as_me: error: cannot run C compiled programs.
1967If you meant to cross compile, use \`--host'.
1968See \`config.log' for more details." >&2;}
1969 { (exit 1); exit 1; }; }
1970 fi
1971 fi
1972fi
1973echo "$as_me:$LINENO: result: yes" >&5
1974echo "${ECHO_T}yes" >&6
1975
1976rm -f a.out a.exe conftest$ac_cv_exeext b.out
1977ac_clean_files=$ac_clean_files_save
1978# Check the compiler produces executables we can run. If not, either
1979# the compiler is broken, or we cross compile.
1980echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1981echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1982echo "$as_me:$LINENO: result: $cross_compiling" >&5
1983echo "${ECHO_T}$cross_compiling" >&6
1984
1985echo "$as_me:$LINENO: checking for suffix of executables" >&5
1986echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1988 (eval $ac_link) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; then
1992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1993# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1994# work properly (i.e., refer to `conftest.exe'), while it won't with
1995# `rm'.
1996for ac_file in conftest.exe conftest conftest.*; do
1997 test -f "$ac_file" || continue
1998 case $ac_file in
1999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2001 export ac_cv_exeext
2002 break;;
2003 * ) break;;
2004 esac
2005done
2006else
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2008See \`config.log' for more details." >&5
2009echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2010See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2012fi
2013
2014rm -f conftest$ac_cv_exeext
2015echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2016echo "${ECHO_T}$ac_cv_exeext" >&6
2017
2018rm -f conftest.$ac_ext
2019EXEEXT=$ac_cv_exeext
2020ac_exeext=$EXEEXT
2021echo "$as_me:$LINENO: checking for suffix of object files" >&5
2022echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2023if test "${ac_cv_objext+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026 cat >conftest.$ac_ext <<_ACEOF
2027/* confdefs.h. */
2028_ACEOF
2029cat confdefs.h >>conftest.$ac_ext
2030cat >>conftest.$ac_ext <<_ACEOF
2031/* end confdefs.h. */
2032
2033int
2034main ()
2035{
2036
2037 ;
2038 return 0;
2039}
2040_ACEOF
2041rm -f conftest.o conftest.obj
2042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; then
2047 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2048 case $ac_file in
2049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2051 break;;
2052 esac
2053done
2054else
2055 echo "$as_me: failed program was:" >&5
2056sed 's/^/| /' conftest.$ac_ext >&5
2057
2058{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2059See \`config.log' for more details." >&5
2060echo "$as_me: error: cannot compute suffix of object files: cannot compile
2061See \`config.log' for more details." >&2;}
2062 { (exit 1); exit 1; }; }
2063fi
2064
2065rm -f conftest.$ac_cv_objext conftest.$ac_ext
2066fi
2067echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2068echo "${ECHO_T}$ac_cv_objext" >&6
2069OBJEXT=$ac_cv_objext
2070ac_objext=$OBJEXT
2071echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2072echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2073if test "${ac_cv_c_compiler_gnu+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 cat >conftest.$ac_ext <<_ACEOF
2077/* confdefs.h. */
2078_ACEOF
2079cat confdefs.h >>conftest.$ac_ext
2080cat >>conftest.$ac_ext <<_ACEOF
2081/* end confdefs.h. */
2082
2083int
2084main ()
2085{
2086#ifndef __GNUC__
2087 choke me
2088#endif
2089
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094rm -f conftest.$ac_objext
2095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>conftest.er1
2097 ac_status=$?
2098 grep -v '^ *+' conftest.er1 >conftest.err
2099 rm -f conftest.er1
2100 cat conftest.err >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
be2a5f71
DJ
2103 { ac_try='test -z "$ac_c_werror_flag"
2104 || test ! -s conftest.err'
bec39cab
AC
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 (eval $ac_try) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2116 ac_compiler_gnu=yes
2117else
2118 echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121ac_compiler_gnu=no
2122fi
2123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2124ac_cv_c_compiler_gnu=$ac_compiler_gnu
2125
2126fi
2127echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2128echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2129GCC=`test $ac_compiler_gnu = yes && echo yes`
2130ac_test_CFLAGS=${CFLAGS+set}
2131ac_save_CFLAGS=$CFLAGS
2132CFLAGS="-g"
2133echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2134echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2135if test "${ac_cv_prog_cc_g+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138 cat >conftest.$ac_ext <<_ACEOF
2139/* confdefs.h. */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h. */
2144
2145int
2146main ()
2147{
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155 (eval $ac_compile) 2>conftest.er1
2156 ac_status=$?
2157 grep -v '^ *+' conftest.er1 >conftest.err
2158 rm -f conftest.er1
2159 cat conftest.err >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); } &&
be2a5f71
DJ
2162 { ac_try='test -z "$ac_c_werror_flag"
2163 || test ! -s conftest.err'
bec39cab
AC
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; } &&
2169 { ac_try='test -s conftest.$ac_objext'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; }; then
2175 ac_cv_prog_cc_g=yes
2176else
2177 echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180ac_cv_prog_cc_g=no
2181fi
2182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2183fi
2184echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2185echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2186if test "$ac_test_CFLAGS" = set; then
2187 CFLAGS=$ac_save_CFLAGS
2188elif test $ac_cv_prog_cc_g = yes; then
2189 if test "$GCC" = yes; then
2190 CFLAGS="-g -O2"
2191 else
2192 CFLAGS="-g"
2193 fi
2194else
2195 if test "$GCC" = yes; then
2196 CFLAGS="-O2"
2197 else
2198 CFLAGS=
2199 fi
2200fi
2201echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2202echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2203if test "${ac_cv_prog_cc_stdc+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206 ac_cv_prog_cc_stdc=no
2207ac_save_CC=$CC
2208cat >conftest.$ac_ext <<_ACEOF
2209/* confdefs.h. */
2210_ACEOF
2211cat confdefs.h >>conftest.$ac_ext
2212cat >>conftest.$ac_ext <<_ACEOF
2213/* end confdefs.h. */
2214#include <stdarg.h>
2215#include <stdio.h>
2216#include <sys/types.h>
2217#include <sys/stat.h>
2218/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2219struct buf { int x; };
2220FILE * (*rcsopen) (struct buf *, struct stat *, int);
2221static char *e (p, i)
2222 char **p;
2223 int i;
2224{
2225 return p[i];
2226}
2227static char *f (char * (*g) (char **, int), char **p, ...)
2228{
2229 char *s;
2230 va_list v;
2231 va_start (v,p);
2232 s = g (p, va_arg (v,int));
2233 va_end (v);
2234 return s;
2235}
2236
2237/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2238 function prototypes and stuff, but not '\xHH' hex character constants.
2239 These don't provoke an error unfortunately, instead are silently treated
2240 as 'x'. The following induces an error, until -std1 is added to get
2241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2242 array size at least. It's necessary to write '\x00'==0 to get something
2243 that's true only with -std1. */
2244int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2245
2246int test (int i, double x);
2247struct s1 {int (*f) (int a);};
2248struct s2 {int (*f) (double a);};
2249int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2250int argc;
2251char **argv;
2252int
2253main ()
2254{
2255return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2256 ;
2257 return 0;
2258}
2259_ACEOF
2260# Don't try gcc -ansi; that turns off useful extensions and
2261# breaks some systems' header files.
2262# AIX -qlanglvl=ansi
2263# Ultrix and OSF/1 -std1
2264# HP-UX 10.20 and later -Ae
2265# HP-UX older versions -Aa -D_HPUX_SOURCE
2266# SVR4 -Xc -D__EXTENSIONS__
2267for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2268do
2269 CC="$ac_save_CC $ac_arg"
2270 rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
be2a5f71
DJ
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
bec39cab
AC
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 ac_cv_prog_cc_stdc=$ac_arg
2293break
2294else
2295 echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298fi
2299rm -f conftest.err conftest.$ac_objext
2300done
2301rm -f conftest.$ac_ext conftest.$ac_objext
2302CC=$ac_save_CC
2303
2304fi
2305
2306case "x$ac_cv_prog_cc_stdc" in
2307 x|xno)
2308 echo "$as_me:$LINENO: result: none needed" >&5
2309echo "${ECHO_T}none needed" >&6 ;;
2310 *)
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2312echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2313 CC="$CC $ac_cv_prog_cc_stdc" ;;
2314esac
2315
2316# Some people use a C++ compiler to compile C. Since we use `exit',
2317# in C++ we need to declare it. In case someone uses the same compiler
2318# for both compiling C and C++ we need to have the C++ compiler decide
2319# the declaration of exit, since it's the most demanding environment.
2320cat >conftest.$ac_ext <<_ACEOF
2321#ifndef __cplusplus
2322 choke me
2323#endif
2324_ACEOF
2325rm -f conftest.$ac_objext
2326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327 (eval $ac_compile) 2>conftest.er1
2328 ac_status=$?
2329 grep -v '^ *+' conftest.er1 >conftest.err
2330 rm -f conftest.er1
2331 cat conftest.err >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
be2a5f71
DJ
2334 { ac_try='test -z "$ac_c_werror_flag"
2335 || test ! -s conftest.err'
bec39cab
AC
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 for ac_declaration in \
2348 '' \
2349 'extern "C" void std::exit (int) throw (); using std::exit;' \
2350 'extern "C" void std::exit (int); using std::exit;' \
2351 'extern "C" void exit (int) throw ();' \
2352 'extern "C" void exit (int);' \
2353 'void exit (int);'
2354do
2355 cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h. */
2361$ac_declaration
2362#include <stdlib.h>
2363int
2364main ()
2365{
2366exit (42);
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2374 ac_status=$?
2375 grep -v '^ *+' conftest.er1 >conftest.err
2376 rm -f conftest.er1
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
be2a5f71
DJ
2380 { ac_try='test -z "$ac_c_werror_flag"
2381 || test ! -s conftest.err'
bec39cab
AC
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 (eval $ac_try) 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2393 :
2394else
2395 echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398continue
2399fi
2400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2401 cat >conftest.$ac_ext <<_ACEOF
2402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
2407$ac_declaration
2408int
2409main ()
2410{
2411exit (42);
2412 ;
2413 return 0;
2414}
2415_ACEOF
2416rm -f conftest.$ac_objext
2417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418 (eval $ac_compile) 2>conftest.er1
2419 ac_status=$?
2420 grep -v '^ *+' conftest.er1 >conftest.err
2421 rm -f conftest.er1
2422 cat conftest.err >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
be2a5f71
DJ
2425 { ac_try='test -z "$ac_c_werror_flag"
2426 || test ! -s conftest.err'
bec39cab
AC
2427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428 (eval $ac_try) 2>&5
2429 ac_status=$?
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; } &&
2432 { ac_try='test -s conftest.$ac_objext'
2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 (eval $ac_try) 2>&5
2435 ac_status=$?
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); }; }; then
2438 break
2439else
2440 echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443fi
2444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445done
2446rm -f conftest*
2447if test -n "$ac_declaration"; then
2448 echo '#ifdef __cplusplus' >>confdefs.h
2449 echo $ac_declaration >>confdefs.h
2450 echo '#endif' >>confdefs.h
2451fi
2452
2453else
2454 echo "$as_me: failed program was:" >&5
2455sed 's/^/| /' conftest.$ac_ext >&5
2456
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459ac_ext=c
2460ac_cpp='$CPP $CPPFLAGS'
2461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464
2465
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2472echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
dc62bfc2
MK
2473# On Suns, sometimes $CPP names a directory.
2474if test -n "$CPP" && test -d "$CPP"; then
2475 CPP=
2476fi
2477if test -z "$CPP"; then
bec39cab
AC
2478 if test "${ac_cv_prog_CPP+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
dc62bfc2 2480else
bec39cab
AC
2481 # Double quotes because CPP needs to be expanded
2482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2483 do
2484 ac_preproc_ok=false
2485for ac_c_preproc_warn_flag in '' yes
2486do
2487 # Use a header file that comes with gcc, so configuring glibc
2488 # with a fresh cross-compiler works.
2489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2490 # <limits.h> exists even on freestanding compilers.
dc62bfc2 2491 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab
AC
2492 # not just through cpp. "Syntax error" is here to catch this case.
2493 cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h. */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h. */
2499#ifdef __STDC__
2500# include <limits.h>
2501#else
2502# include <assert.h>
2503#endif
2504 Syntax error
2505_ACEOF
2506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2508 ac_status=$?
2509 grep -v '^ *+' conftest.er1 >conftest.err
2510 rm -f conftest.er1
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } >/dev/null; then
2514 if test -s conftest.err; then
2515 ac_cpp_err=$ac_c_preproc_warn_flag
2516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2517 else
2518 ac_cpp_err=
2519 fi
dc62bfc2 2520else
bec39cab
AC
2521 ac_cpp_err=yes
2522fi
2523if test -z "$ac_cpp_err"; then
dc62bfc2
MK
2524 :
2525else
bec39cab
AC
2526 echo "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 # Broken: fails on valid input.
2530continue
2531fi
2532rm -f conftest.err conftest.$ac_ext
2533
2534 # OK, works on sane cases. Now check whether non-existent headers
2535 # can be detected and how.
2536 cat >conftest.$ac_ext <<_ACEOF
2537/* confdefs.h. */
2538_ACEOF
2539cat confdefs.h >>conftest.$ac_ext
2540cat >>conftest.$ac_ext <<_ACEOF
2541/* end confdefs.h. */
2542#include <ac_nonexistent.h>
2543_ACEOF
2544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } >/dev/null; then
2552 if test -s conftest.err; then
2553 ac_cpp_err=$ac_c_preproc_warn_flag
2554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2555 else
2556 ac_cpp_err=
2557 fi
dc62bfc2 2558else
bec39cab 2559 ac_cpp_err=yes
dc62bfc2 2560fi
bec39cab
AC
2561if test -z "$ac_cpp_err"; then
2562 # Broken: success on invalid input.
2563continue
2564else
2565 echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568 # Passes both tests.
2569ac_preproc_ok=:
2570break
dc62bfc2 2571fi
bec39cab
AC
2572rm -f conftest.err conftest.$ac_ext
2573
2574done
2575# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2576rm -f conftest.err conftest.$ac_ext
2577if $ac_preproc_ok; then
2578 break
dc62bfc2 2579fi
bec39cab
AC
2580
2581 done
2582 ac_cv_prog_CPP=$CPP
2583
dc62bfc2 2584fi
bec39cab 2585 CPP=$ac_cv_prog_CPP
dc62bfc2 2586else
bec39cab 2587 ac_cv_prog_CPP=$CPP
dc62bfc2 2588fi
bec39cab
AC
2589echo "$as_me:$LINENO: result: $CPP" >&5
2590echo "${ECHO_T}$CPP" >&6
2591ac_preproc_ok=false
2592for ac_c_preproc_warn_flag in '' yes
dc62bfc2 2593do
bec39cab
AC
2594 # Use a header file that comes with gcc, so configuring glibc
2595 # with a fresh cross-compiler works.
2596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2597 # <limits.h> exists even on freestanding compilers.
2598 # On the NeXT, cc -E runs the code through the compiler's parser,
2599 # not just through cpp. "Syntax error" is here to catch this case.
2600 cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606#ifdef __STDC__
2607# include <limits.h>
2608#else
2609# include <assert.h>
2610#endif
2611 Syntax error
2612_ACEOF
2613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2615 ac_status=$?
2616 grep -v '^ *+' conftest.er1 >conftest.err
2617 rm -f conftest.er1
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } >/dev/null; then
2621 if test -s conftest.err; then
2622 ac_cpp_err=$ac_c_preproc_warn_flag
2623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2624 else
2625 ac_cpp_err=
2626 fi
2627else
2628 ac_cpp_err=yes
dc62bfc2 2629fi
bec39cab
AC
2630if test -z "$ac_cpp_err"; then
2631 :
2632else
2633 echo "$as_me: failed program was:" >&5
2634sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 # Broken: fails on valid input.
2637continue
2638fi
2639rm -f conftest.err conftest.$ac_ext
2640
2641 # OK, works on sane cases. Now check whether non-existent headers
2642 # can be detected and how.
2643 cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h. */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h. */
2649#include <ac_nonexistent.h>
2650_ACEOF
2651if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2653 ac_status=$?
2654 grep -v '^ *+' conftest.er1 >conftest.err
2655 rm -f conftest.er1
2656 cat conftest.err >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } >/dev/null; then
2659 if test -s conftest.err; then
2660 ac_cpp_err=$ac_c_preproc_warn_flag
2661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2662 else
2663 ac_cpp_err=
2664 fi
2665else
2666 ac_cpp_err=yes
dc62bfc2 2667fi
bec39cab
AC
2668if test -z "$ac_cpp_err"; then
2669 # Broken: success on invalid input.
2670continue
dc62bfc2 2671else
bec39cab
AC
2672 echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675 # Passes both tests.
2676ac_preproc_ok=:
2677break
dc62bfc2 2678fi
bec39cab
AC
2679rm -f conftest.err conftest.$ac_ext
2680
dc62bfc2 2681done
bec39cab
AC
2682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2683rm -f conftest.err conftest.$ac_ext
2684if $ac_preproc_ok; then
2685 :
2686else
2687 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2688See \`config.log' for more details." >&5
2689echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2690See \`config.log' for more details." >&2;}
2691 { (exit 1); exit 1; }; }
2692fi
2693
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
dc62bfc2
MK
2699
2700
bec39cab
AC
2701echo "$as_me:$LINENO: checking for egrep" >&5
2702echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2703if test "${ac_cv_prog_egrep+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
93076499 2705else
bec39cab
AC
2706 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2707 then ac_cv_prog_egrep='grep -E'
2708 else ac_cv_prog_egrep='egrep'
2709 fi
2710fi
2711echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2712echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2713 EGREP=$ac_cv_prog_egrep
93076499 2714
93076499 2715
bec39cab
AC
2716echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2717echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2718if test "${ac_cv_header_stdc+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h. */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h. */
2727#include <stdlib.h>
2728#include <stdarg.h>
2729#include <string.h>
2730#include <float.h>
2731
2732int
2733main ()
2734{
2735
2736 ;
2737 return 0;
2738}
2739_ACEOF
2740rm -f conftest.$ac_objext
2741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
be2a5f71
DJ
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
bec39cab
AC
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_header_stdc=yes
2763else
2764 echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767ac_cv_header_stdc=no
2768fi
2769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770
2771if test $ac_cv_header_stdc = yes; then
2772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2773 cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h. */
2779#include <string.h>
2780
2781_ACEOF
2782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2783 $EGREP "memchr" >/dev/null 2>&1; then
2784 :
2785else
2786 ac_cv_header_stdc=no
93076499
ND
2787fi
2788rm -f conftest*
bec39cab
AC
2789
2790fi
2791
2792if test $ac_cv_header_stdc = yes; then
2793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2794 cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h. */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h. */
2800#include <stdlib.h>
2801
2802_ACEOF
2803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2804 $EGREP "free" >/dev/null 2>&1; then
2805 :
2806else
2807 ac_cv_header_stdc=no
2808fi
93076499 2809rm -f conftest*
bec39cab 2810
93076499
ND
2811fi
2812
bec39cab
AC
2813if test $ac_cv_header_stdc = yes; then
2814 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2815 if test "$cross_compiling" = yes; then
2816 :
93076499 2817else
bec39cab
AC
2818 cat >conftest.$ac_ext <<_ACEOF
2819/* confdefs.h. */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h. */
2824#include <ctype.h>
2825#if ((' ' & 0x0FF) == 0x020)
2826# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2827# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2828#else
2829# define ISLOWER(c) \
2830 (('a' <= (c) && (c) <= 'i') \
2831 || ('j' <= (c) && (c) <= 'r') \
2832 || ('s' <= (c) && (c) <= 'z'))
2833# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2834#endif
93076499 2835
bec39cab
AC
2836#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2837int
2838main ()
2839{
2840 int i;
2841 for (i = 0; i < 256; i++)
2842 if (XOR (islower (i), ISLOWER (i))
2843 || toupper (i) != TOUPPER (i))
2844 exit(2);
2845 exit (0);
2846}
2847_ACEOF
2848rm -f conftest$ac_exeext
2849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2850 (eval $ac_link) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 :
93076499 2860else
bec39cab
AC
2861 echo "$as_me: program exited with status $ac_status" >&5
2862echo "$as_me: failed program was:" >&5
2863sed 's/^/| /' conftest.$ac_ext >&5
2864
2865( exit $ac_status )
2866ac_cv_header_stdc=no
93076499 2867fi
bec39cab
AC
2868rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2869fi
2870fi
2871fi
2872echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2873echo "${ECHO_T}$ac_cv_header_stdc" >&6
2874if test $ac_cv_header_stdc = yes; then
2875
2876cat >>confdefs.h <<\_ACEOF
2877#define STDC_HEADERS 1
2878_ACEOF
2879
2880fi
2881
2882# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2893 inttypes.h stdint.h unistd.h
2894do
2895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2896echo "$as_me:$LINENO: checking for $ac_header" >&5
2897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2898if eval "test \"\${$as_ac_Header+set}\" = set"; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901 cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h. */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h. */
2907$ac_includes_default
2908
2909#include <$ac_header>
2910_ACEOF
2911rm -f conftest.$ac_objext
2912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
be2a5f71
DJ
2920 { ac_try='test -z "$ac_c_werror_flag"
2921 || test ! -s conftest.err'
bec39cab
AC
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; } &&
2927 { ac_try='test -s conftest.$ac_objext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 eval "$as_ac_Header=yes"
2934else
2935 echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938eval "$as_ac_Header=no"
2939fi
2940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941fi
2942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2944if test `eval echo '${'$as_ac_Header'}'` = yes; then
2945 cat >>confdefs.h <<_ACEOF
2946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2947_ACEOF
2948
93076499
ND
2949fi
2950
bec39cab
AC
2951done
2952
93076499
ND
2953
2954
bec39cab
AC
2955for ac_header in pthread.h
2956do
2957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2958if eval "test \"\${$as_ac_Header+set}\" = set"; then
2959 echo "$as_me:$LINENO: checking for $ac_header" >&5
2960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2961if eval "test \"\${$as_ac_Header+set}\" = set"; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963fi
2964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
93076499 2966else
bec39cab
AC
2967 # Is the header compilable?
2968echo "$as_me:$LINENO: checking $ac_header usability" >&5
2969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2970cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h. */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h. */
2976$ac_includes_default
2977#include <$ac_header>
2978_ACEOF
2979rm -f conftest.$ac_objext
2980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2981 (eval $ac_compile) 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
be2a5f71
DJ
2988 { ac_try='test -z "$ac_c_werror_flag"
2989 || test ! -s conftest.err'
bec39cab
AC
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_header_compiler=yes
93076499 3002else
bec39cab
AC
3003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006ac_header_compiler=no
3007fi
3008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3009echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3010echo "${ECHO_T}$ac_header_compiler" >&6
3011
3012# Is the header present?
3013echo "$as_me:$LINENO: checking $ac_header presence" >&5
3014echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3015cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
3020/* end confdefs.h. */
3021#include <$ac_header>
3022_ACEOF
3023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 ac_status=$?
3026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } >/dev/null; then
3031 if test -s conftest.err; then
3032 ac_cpp_err=$ac_c_preproc_warn_flag
3033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
93076499 3034 else
bec39cab 3035 ac_cpp_err=
93076499 3036 fi
bec39cab
AC
3037else
3038 ac_cpp_err=yes
3039fi
3040if test -z "$ac_cpp_err"; then
3041 ac_header_preproc=yes
3042else
3043 echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046 ac_header_preproc=no
93076499 3047fi
bec39cab
AC
3048rm -f conftest.err conftest.$ac_ext
3049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3050echo "${ECHO_T}$ac_header_preproc" >&6
3051
3052# So? What about this header?
3053case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3054 yes:no: )
3055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3056echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3058echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3059 ac_header_preproc=yes
3060 ;;
3061 no:yes:* )
3062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3067echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3069echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3071echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3073echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3074 (
3075 cat <<\_ASBOX
3076## ------------------------------------------ ##
3077## Report this to the AC_PACKAGE_NAME lists. ##
3078## ------------------------------------------ ##
3079_ASBOX
3080 ) |
3081 sed "s/^/$as_me: WARNING: /" >&2
3082 ;;
3083esac
3084echo "$as_me:$LINENO: checking for $ac_header" >&5
3085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3086if eval "test \"\${$as_ac_Header+set}\" = set"; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089 eval "$as_ac_Header=\$ac_header_preproc"
93076499 3090fi
bec39cab
AC
3091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
93076499 3093
bec39cab
AC
3094fi
3095if test `eval echo '${'$as_ac_Header'}'` = yes; then
3096 cat >>confdefs.h <<_ACEOF
3097#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3098_ACEOF
93076499 3099
bec39cab 3100fi
93076499 3101
bec39cab
AC
3102done
3103
3104
3105
3106
5876dc88 3107 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.objc/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
bec39cab 3108cat >confcache <<\_ACEOF
c906108c
SS
3109# This file is a shell script that caches the results of configure
3110# tests run on this system so they can be shared between configure
bec39cab
AC
3111# scripts and configure runs, see configure's option --config-cache.
3112# It is not useful on other systems. If it contains results you don't
3113# want to keep, you may remove or edit it.
c906108c 3114#
bec39cab
AC
3115# config.status only pays attention to the cache file if you give it
3116# the --recheck option to rerun configure.
c906108c 3117#
bec39cab
AC
3118# `ac_cv_env_foo' variables (set or unset) will be overridden when
3119# loading this file, other *unset* `ac_cv_foo' will be assigned the
3120# following values.
3121
3122_ACEOF
3123
c906108c
SS
3124# The following way of writing the cache mishandles newlines in values,
3125# but we know of no workaround that is simple, portable, and efficient.
3126# So, don't put newlines in cache variables' values.
3127# Ultrix sh set writes to stderr and can't be redirected directly,
3128# and sets the high bit in the cache file unless we assign to the vars.
bec39cab
AC
3129{
3130 (set) 2>&1 |
3131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3132 *ac_space=\ *)
3133 # `set' does not quote correctly, so add quotes (double-quote
3134 # substitution turns \\\\ into \\, and sed turns \\ into \).
3135 sed -n \
3136 "s/'/'\\\\''/g;
3137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3138 ;;
3139 *)
3140 # `set' quotes correctly as required by POSIX, so do not add quotes.
3141 sed -n \
3142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3143 ;;
3144 esac;
3145} |
3146 sed '
3147 t clear
3148 : clear
3149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3150 t end
3151 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3152 : end' >>confcache
3153if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 3154 if test -w $cache_file; then
bec39cab
AC
3155 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3156 cat confcache >$cache_file
c906108c
SS
3157 else
3158 echo "not updating unwritable cache $cache_file"
3159 fi
3160fi
3161rm -f confcache
3162
c906108c
SS
3163test "x$prefix" = xNONE && prefix=$ac_default_prefix
3164# Let make expand exec_prefix.
3165test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3166
bec39cab
AC
3167# VPATH may cause trouble with some makes, so we remove $(srcdir),
3168# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3169# trailing colons and then remove the whole line if VPATH becomes empty
3170# (actually we leave an empty line to preserve line numbers).
c906108c 3171if test "x$srcdir" = x.; then
bec39cab
AC
3172 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3173s/:*\$(srcdir):*/:/;
3174s/:*\${srcdir}:*/:/;
3175s/:*@srcdir@:*/:/;
3176s/^\([^=]*=[ ]*\):*/\1/;
3177s/:*$//;
3178s/^[^=]*=[ ]*$//;
3179}'
c906108c
SS
3180fi
3181
5710a1af
EZ
3182# Transform confdefs.h into DEFS.
3183# Protect against shell expansion while executing Makefile rules.
3184# Protect against Makefile macro expansion.
bec39cab
AC
3185#
3186# If the first sed substitution is executed (which looks for macros that
3187# take arguments), then we branch to the quote section. Otherwise,
3188# look for a macro that doesn't take arguments.
3189cat >confdef2opt.sed <<\_ACEOF
3190t clear
3191: clear
3192s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3193t quote
3194s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3195t quote
3196d
3197: quote
3198s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3199s,\[,\\&,g
3200s,\],\\&,g
3201s,\$,$$,g
3202p
3203_ACEOF
3204# We use echo to avoid assuming a particular line-breaking character.
3205# The extra dot is to prevent the shell from consuming trailing
3206# line-breaks from the sub-command output. A line-break within
3207# single-quotes doesn't work because, if this script is created in a
3208# platform that uses two characters for line-breaks (e.g., DOS), tr
3209# would break.
3210ac_LF_and_DOT=`echo; echo .`
3211DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3212rm -f confdef2opt.sed
3213
3214
3215ac_libobjs=
3216ac_ltlibobjs=
3217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3218 # 1. Remove the extension, and $U if already installed.
3219 ac_i=`echo "$ac_i" |
3220 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3221 # 2. Add them.
3222 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3223 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3224done
3225LIBOBJS=$ac_libobjs
c906108c 3226
bec39cab
AC
3227LTLIBOBJS=$ac_ltlibobjs
3228
3229
3230
3231: ${CONFIG_STATUS=./config.status}
3232ac_clean_files_save=$ac_clean_files
3233ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3234{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3235echo "$as_me: creating $CONFIG_STATUS" >&6;}
3236cat >$CONFIG_STATUS <<_ACEOF
3237#! $SHELL
3238# Generated by $as_me.
c906108c 3239# Run this file to recreate the current configuration.
c906108c 3240# Compiler output produced by configure, useful for debugging
bec39cab
AC
3241# configure, is in config.log if it exists.
3242
3243debug=false
3244ac_cs_recheck=false
3245ac_cs_silent=false
3246SHELL=\${CONFIG_SHELL-$SHELL}
3247_ACEOF
3248
3249cat >>$CONFIG_STATUS <<\_ACEOF
3250## --------------------- ##
3251## M4sh Initialization. ##
3252## --------------------- ##
3253
3254# Be Bourne compatible
3255if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3256 emulate sh
3257 NULLCMD=:
3258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3259 # is contrary to our usage. Disable this feature.
3260 alias -g '${1+"$@"}'='"$@"'
3261elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3262 set -o posix
3263fi
3264DUALCASE=1; export DUALCASE # for MKS sh
c906108c 3265
bec39cab
AC
3266# Support unset when possible.
3267if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3268 as_unset=unset
3269else
3270 as_unset=false
3271fi
3272
3273
3274# Work around bugs in pre-3.0 UWIN ksh.
3275$as_unset ENV MAIL MAILPATH
3276PS1='$ '
3277PS2='> '
3278PS4='+ '
3279
3280# NLS nuisances.
3281for as_var in \
3282 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3283 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3284 LC_TELEPHONE LC_TIME
c906108c 3285do
bec39cab
AC
3286 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3287 eval $as_var=C; export $as_var
3288 else
3289 $as_unset $as_var
3290 fi
c906108c
SS
3291done
3292
bec39cab
AC
3293# Required to use basename.
3294if expr a : '\(a\)' >/dev/null 2>&1; then
3295 as_expr=expr
3296else
3297 as_expr=false
3298fi
c906108c 3299
bec39cab
AC
3300if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3301 as_basename=basename
3302else
3303 as_basename=false
3304fi
3305
3306
3307# Name of the executable.
3308as_me=`$as_basename "$0" ||
3309$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3310 X"$0" : 'X\(//\)$' \| \
3311 X"$0" : 'X\(/\)$' \| \
3312 . : '\(.\)' 2>/dev/null ||
3313echo X/"$0" |
3314 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3315 /^X\/\(\/\/\)$/{ s//\1/; q; }
3316 /^X\/\(\/\).*/{ s//\1/; q; }
3317 s/.*/./; q'`
3318
3319
3320# PATH needs CR, and LINENO needs CR and PATH.
3321# Avoid depending upon Character Ranges.
3322as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3323as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3324as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3325as_cr_digits='0123456789'
3326as_cr_alnum=$as_cr_Letters$as_cr_digits
3327
3328# The user is always right.
3329if test "${PATH_SEPARATOR+set}" != set; then
3330 echo "#! /bin/sh" >conf$$.sh
3331 echo "exit 0" >>conf$$.sh
3332 chmod +x conf$$.sh
3333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3334 PATH_SEPARATOR=';'
c906108c 3335 else
bec39cab 3336 PATH_SEPARATOR=:
c906108c 3337 fi
bec39cab
AC
3338 rm -f conf$$.sh
3339fi
3340
3341
3342 as_lineno_1=$LINENO
3343 as_lineno_2=$LINENO
3344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3345 test "x$as_lineno_1" != "x$as_lineno_2" &&
3346 test "x$as_lineno_3" = "x$as_lineno_2" || {
3347 # Find who we are. Look in the path if we contain no path at all
3348 # relative or not.
3349 case $0 in
3350 *[\\/]* ) as_myself=$0 ;;
3351 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3357done
3358
3359 ;;
3360 esac
3361 # We did not find ourselves, most probably we were run as `sh COMMAND'
3362 # in which case we are not to be found in the path.
3363 if test "x$as_myself" = x; then
3364 as_myself=$0
3365 fi
3366 if test ! -f "$as_myself"; then
3367 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3368echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3369 { (exit 1); exit 1; }; }
c906108c 3370 fi
bec39cab
AC
3371 case $CONFIG_SHELL in
3372 '')
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for as_base in sh bash ksh sh5; do
3379 case $as_dir in
3380 /*)
3381 if ("$as_dir/$as_base" -c '
3382 as_lineno_1=$LINENO
3383 as_lineno_2=$LINENO
3384 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3385 test "x$as_lineno_1" != "x$as_lineno_2" &&
3386 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3387 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3388 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3389 CONFIG_SHELL=$as_dir/$as_base
3390 export CONFIG_SHELL
3391 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3392 fi;;
3393 esac
3394 done
c906108c 3395done
bec39cab 3396;;
c906108c
SS
3397 esac
3398
bec39cab
AC
3399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3400 # uniformly replaced by the line number. The first 'sed' inserts a
3401 # line-number line before each line; the second 'sed' does the real
3402 # work. The second script uses 'N' to pair each line-number line
3403 # with the numbered line, and appends trailing '-' during
3404 # substitution so that $LINENO is not a special case at line end.
3405 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3406 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3407 sed '=' <$as_myself |
3408 sed '
3409 N
3410 s,$,-,
3411 : loop
3412 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3413 t loop
3414 s,-$,,
3415 s,^['$as_cr_digits']*\n,,
3416 ' >$as_me.lineno &&
3417 chmod +x $as_me.lineno ||
3418 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3419echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3420 { (exit 1); exit 1; }; }
3421
3422 # Don't try to exec as it changes $[0], causing all sort of problems
3423 # (the dirname of $[0] is not the place where we might find the
3424 # original and so on. Autoconf is especially sensible to this).
3425 . ./$as_me.lineno
3426 # Exit status is that of the last command.
3427 exit
3428}
3429
3430
3431case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3432 *c*,-n*) ECHO_N= ECHO_C='
3433' ECHO_T=' ' ;;
3434 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3435 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3436esac
3437
3438if expr a : '\(a\)' >/dev/null 2>&1; then
3439 as_expr=expr
3440else
3441 as_expr=false
3442fi
c906108c 3443
bec39cab
AC
3444rm -f conf$$ conf$$.exe conf$$.file
3445echo >conf$$.file
3446if ln -s conf$$.file conf$$ 2>/dev/null; then
3447 # We could just check for DJGPP; but this test a) works b) is more generic
3448 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3449 if test -f conf$$.exe; then
3450 # Don't use ln at all; we don't have any links
3451 as_ln_s='cp -p'
c906108c 3452 else
bec39cab 3453 as_ln_s='ln -s'
c906108c 3454 fi
bec39cab
AC
3455elif ln conf$$.file conf$$ 2>/dev/null; then
3456 as_ln_s=ln
3457else
3458 as_ln_s='cp -p'
3459fi
3460rm -f conf$$ conf$$.exe conf$$.file
3461
3462if mkdir -p . 2>/dev/null; then
3463 as_mkdir_p=:
3464else
3465 test -d ./-p && rmdir ./-p
3466 as_mkdir_p=false
3467fi
3468
3469as_executable_p="test -f"
3470
3471# Sed expression to map a string onto a valid CPP name.
3472as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3473
3474# Sed expression to map a string onto a valid variable name.
3475as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3476
3477
3478# IFS
3479# We need space, tab and new line, in precisely that order.
3480as_nl='
3481'
3482IFS=" $as_nl"
3483
3484# CDPATH.
3485$as_unset CDPATH
3486
3487exec 6>&1
3488
3489# Open the log real soon, to keep \$[0] and so on meaningful, and to
3490# report actual input values of CONFIG_FILES etc. instead of their
3491# values after options handling. Logging --version etc. is OK.
3492exec 5>>config.log
3493{
3494 echo
3495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3496## Running $as_me. ##
3497_ASBOX
3498} >&5
3499cat >&5 <<_CSEOF
3500
3501This file was extended by $as_me, which was
3502generated by GNU Autoconf 2.59. Invocation command line was
3503
3504 CONFIG_FILES = $CONFIG_FILES
3505 CONFIG_HEADERS = $CONFIG_HEADERS
3506 CONFIG_LINKS = $CONFIG_LINKS
3507 CONFIG_COMMANDS = $CONFIG_COMMANDS
3508 $ $0 $@
3509
3510_CSEOF
3511echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3512echo >&5
3513_ACEOF
3514
3515# Files that config.status was made for.
3516if test -n "$ac_config_files"; then
3517 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3518fi
3519
3520if test -n "$ac_config_headers"; then
3521 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3522fi
3523
3524if test -n "$ac_config_links"; then
3525 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3526fi
3527
3528if test -n "$ac_config_commands"; then
3529 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3530fi
3531
3532cat >>$CONFIG_STATUS <<\_ACEOF
3533
3534ac_cs_usage="\
3535\`$as_me' instantiates files from templates according to the
3536current configuration.
3537
3538Usage: $0 [OPTIONS] [FILE]...
3539
3540 -h, --help print this help, then exit
3541 -V, --version print version number, then exit
3542 -q, --quiet do not print progress messages
3543 -d, --debug don't remove temporary files
3544 --recheck update $as_me by reconfiguring in the same conditions
3545 --file=FILE[:TEMPLATE]
3546 instantiate the configuration file FILE
3547
3548Configuration files:
3549$config_files
3550
3551Report bugs to <bug-autoconf@gnu.org>."
3552_ACEOF
3553
3554cat >>$CONFIG_STATUS <<_ACEOF
3555ac_cs_version="\\
3556config.status
3557configured by $0, generated by GNU Autoconf 2.59,
3558 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3559
3560Copyright (C) 2003 Free Software Foundation, Inc.
3561This config.status script is free software; the Free Software Foundation
3562gives unlimited permission to copy, distribute and modify it."
3563srcdir=$srcdir
3564_ACEOF
3565
3566cat >>$CONFIG_STATUS <<\_ACEOF
3567# If no file are specified by the user, then we need to provide default
3568# value. By we need to know if files were specified by the user.
3569ac_need_defaults=:
3570while test $# != 0
3571do
3572 case $1 in
3573 --*=*)
3574 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3575 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3576 ac_shift=:
3577 ;;
3578 -*)
3579 ac_option=$1
3580 ac_optarg=$2
3581 ac_shift=shift
3582 ;;
3583 *) # This is not an option, so the user has probably given explicit
3584 # arguments.
3585 ac_option=$1
3586 ac_need_defaults=false;;
3587 esac
3588
3589 case $ac_option in
3590 # Handling of the options.
3591_ACEOF
3592cat >>$CONFIG_STATUS <<\_ACEOF
3593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3594 ac_cs_recheck=: ;;
3595 --version | --vers* | -V )
3596 echo "$ac_cs_version"; exit 0 ;;
3597 --he | --h)
3598 # Conflict between --help and --header
3599 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3600Try \`$0 --help' for more information." >&5
3601echo "$as_me: error: ambiguous option: $1
3602Try \`$0 --help' for more information." >&2;}
3603 { (exit 1); exit 1; }; };;
3604 --help | --hel | -h )
3605 echo "$ac_cs_usage"; exit 0 ;;
3606 --debug | --d* | -d )
3607 debug=: ;;
3608 --file | --fil | --fi | --f )
3609 $ac_shift
3610 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3611 ac_need_defaults=false;;
3612 --header | --heade | --head | --hea )
3613 $ac_shift
3614 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3615 ac_need_defaults=false;;
3616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3618 ac_cs_silent=: ;;
3619
3620 # This is an error.
3621 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3622Try \`$0 --help' for more information." >&5
3623echo "$as_me: error: unrecognized option: $1
3624Try \`$0 --help' for more information." >&2;}
3625 { (exit 1); exit 1; }; } ;;
3626
3627 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 3628
c906108c 3629 esac
bec39cab
AC
3630 shift
3631done
3632
3633ac_configure_extra_args=
3634
3635if $ac_cs_silent; then
3636 exec 6>/dev/null
3637 ac_configure_extra_args="$ac_configure_extra_args --silent"
3638fi
3639
3640_ACEOF
3641cat >>$CONFIG_STATUS <<_ACEOF
3642if \$ac_cs_recheck; then
3643 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3644 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3645fi
3646
3647_ACEOF
c906108c
SS
3648
3649
bec39cab
AC
3650
3651
3652
3653cat >>$CONFIG_STATUS <<\_ACEOF
3654for ac_config_target in $ac_config_targets
3655do
3656 case "$ac_config_target" in
3657 # Handling of arguments.
3658 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3659 "gdb.ada/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;;
bec39cab
AC
3660 "gdb.arch/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;;
3661 "gdb.asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;;
3662 "gdb.base/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;;
3663 "gdb.cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;;
3664 "gdb.disasm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;;
3665 "gdb.dwarf2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
3666 "gdb.fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
9494c6a5 3667 "gdb.server/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;;
bec39cab
AC
3668 "gdb.java/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
3669 "gdb.mi/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;;
3670 "gdb.objc/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;;
5876dc88 3671 "gdb.opt/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
bec39cab
AC
3672 "gdb.threads/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;;
3673 "gdb.trace/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;;
e515b470 3674 "gdb.xml/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.xml/Makefile" ;;
bec39cab
AC
3675 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3676echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3677 { (exit 1); exit 1; }; };;
c906108c 3678 esac
bec39cab
AC
3679done
3680
3681# If the user did not use the arguments to specify the items to instantiate,
3682# then the envvar interface is used. Set only those that are not.
3683# We use the long form for the default assignment because of an extremely
3684# bizarre bug on SunOS 4.1.3.
3685if $ac_need_defaults; then
3686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3687fi
3688
3689# Have a temporary directory for convenience. Make it in the build tree
3690# simply because there is no reason to put it here, and in addition,
3691# creating and moving files from /tmp can sometimes cause problems.
3692# Create a temporary directory, and hook for its removal unless debugging.
3693$debug ||
3694{
3695 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3696 trap '{ (exit 1); exit 1; }' 1 2 13 15
3697}
3698
3699# Create a (secure) tmp directory for tmp files.
3700
3701{
3702 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3703 test -n "$tmp" && test -d "$tmp"
3704} ||
3705{
3706 tmp=./confstat$$-$RANDOM
3707 (umask 077 && mkdir $tmp)
3708} ||
3709{
3710 echo "$me: cannot create a temporary directory in ." >&2
3711 { (exit 1); exit 1; }
3712}
3713
3714_ACEOF
3715
3716cat >>$CONFIG_STATUS <<_ACEOF
c906108c 3717
bec39cab
AC
3718#
3719# CONFIG_FILES section.
3720#
c906108c 3721
bec39cab
AC
3722# No need to generate the scripts if there are no CONFIG_FILES.
3723# This happens for instance when ./config.status config.h
3724if test -n "\$CONFIG_FILES"; then
3725 # Protect against being on the right side of a sed subst in config.status.
3726 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3727 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3728s,@SHELL@,$SHELL,;t t
3729s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3730s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3731s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3732s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3733s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3734s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3735s,@exec_prefix@,$exec_prefix,;t t
3736s,@prefix@,$prefix,;t t
3737s,@program_transform_name@,$program_transform_name,;t t
3738s,@bindir@,$bindir,;t t
3739s,@sbindir@,$sbindir,;t t
3740s,@libexecdir@,$libexecdir,;t t
3741s,@datadir@,$datadir,;t t
3742s,@sysconfdir@,$sysconfdir,;t t
3743s,@sharedstatedir@,$sharedstatedir,;t t
3744s,@localstatedir@,$localstatedir,;t t
3745s,@libdir@,$libdir,;t t
3746s,@includedir@,$includedir,;t t
3747s,@oldincludedir@,$oldincludedir,;t t
3748s,@infodir@,$infodir,;t t
3749s,@mandir@,$mandir,;t t
3750s,@build_alias@,$build_alias,;t t
3751s,@host_alias@,$host_alias,;t t
3752s,@target_alias@,$target_alias,;t t
3753s,@DEFS@,$DEFS,;t t
3754s,@ECHO_C@,$ECHO_C,;t t
3755s,@ECHO_N@,$ECHO_N,;t t
3756s,@ECHO_T@,$ECHO_T,;t t
3757s,@LIBS@,$LIBS,;t t
3758s,@build@,$build,;t t
3759s,@build_cpu@,$build_cpu,;t t
3760s,@build_vendor@,$build_vendor,;t t
3761s,@build_os@,$build_os,;t t
3762s,@host@,$host,;t t
3763s,@host_cpu@,$host_cpu,;t t
3764s,@host_vendor@,$host_vendor,;t t
3765s,@host_os@,$host_os,;t t
3766s,@target@,$target,;t t
3767s,@target_cpu@,$target_cpu,;t t
3768s,@target_vendor@,$target_vendor,;t t
3769s,@target_os@,$target_os,;t t
be2a5f71 3770s,@target_noncanonical@,$target_noncanonical,;t t
bec39cab
AC
3771s,@subdirs@,$subdirs,;t t
3772s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
3773s,@CC@,$CC,;t t
3774s,@CFLAGS@,$CFLAGS,;t t
3775s,@LDFLAGS@,$LDFLAGS,;t t
3776s,@CPPFLAGS@,$CPPFLAGS,;t t
3777s,@ac_ct_CC@,$ac_ct_CC,;t t
3778s,@EXEEXT@,$EXEEXT,;t t
3779s,@OBJEXT@,$OBJEXT,;t t
3780s,@CPP@,$CPP,;t t
3781s,@EGREP@,$EGREP,;t t
3782s,@LIBOBJS@,$LIBOBJS,;t t
3783s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3784CEOF
c906108c 3785
bec39cab
AC
3786_ACEOF
3787
3788 cat >>$CONFIG_STATUS <<\_ACEOF
3789 # Split the substitutions into bite-sized pieces for seds with
3790 # small command number limits, like on Digital OSF/1 and HP-UX.
3791 ac_max_sed_lines=48
3792 ac_sed_frag=1 # Number of current file.
3793 ac_beg=1 # First line for current file.
3794 ac_end=$ac_max_sed_lines # Line after last line for current file.
3795 ac_more_lines=:
3796 ac_sed_cmds=
3797 while $ac_more_lines; do
3798 if test $ac_beg -gt 1; then
3799 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3800 else
3801 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3802 fi
3803 if test ! -s $tmp/subs.frag; then
3804 ac_more_lines=false
3805 else
3806 # The purpose of the label and of the branching condition is to
3807 # speed up the sed processing (if there are no `@' at all, there
3808 # is no need to browse any of the substitutions).
3809 # These are the two extra sed commands mentioned above.
3810 (echo ':t
3811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3812 if test -z "$ac_sed_cmds"; then
3813 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3814 else
3815 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3816 fi
3817 ac_sed_frag=`expr $ac_sed_frag + 1`
3818 ac_beg=$ac_end
3819 ac_end=`expr $ac_end + $ac_max_sed_lines`
3820 fi
3821 done
3822 if test -z "$ac_sed_cmds"; then
3823 ac_sed_cmds=cat
3824 fi
3825fi # test -n "$CONFIG_FILES"
c906108c 3826
bec39cab
AC
3827_ACEOF
3828cat >>$CONFIG_STATUS <<\_ACEOF
3829for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3831 case $ac_file in
3832 - | *:- | *:-:* ) # input from stdin
3833 cat >$tmp/stdin
3834 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3836 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3838 * ) ac_file_in=$ac_file.in ;;
3839 esac
3840
3841 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3842 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3843$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3844 X"$ac_file" : 'X\(//\)[^/]' \| \
3845 X"$ac_file" : 'X\(//\)$' \| \
3846 X"$ac_file" : 'X\(/\)' \| \
3847 . : '\(.\)' 2>/dev/null ||
3848echo X"$ac_file" |
3849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3851 /^X\(\/\/\)$/{ s//\1/; q; }
3852 /^X\(\/\).*/{ s//\1/; q; }
3853 s/.*/./; q'`
3854 { if $as_mkdir_p; then
3855 mkdir -p "$ac_dir"
3856 else
3857 as_dir="$ac_dir"
3858 as_dirs=
3859 while test ! -d "$as_dir"; do
3860 as_dirs="$as_dir $as_dirs"
3861 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3862$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3863 X"$as_dir" : 'X\(//\)[^/]' \| \
3864 X"$as_dir" : 'X\(//\)$' \| \
3865 X"$as_dir" : 'X\(/\)' \| \
3866 . : '\(.\)' 2>/dev/null ||
3867echo X"$as_dir" |
3868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3870 /^X\(\/\/\)$/{ s//\1/; q; }
3871 /^X\(\/\).*/{ s//\1/; q; }
3872 s/.*/./; q'`
3873 done
3874 test ! -n "$as_dirs" || mkdir $as_dirs
3875 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3876echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3877 { (exit 1); exit 1; }; }; }
3878
3879 ac_builddir=.
3880
3881if test "$ac_dir" != .; then
3882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3883 # A "../" for each directory in $ac_dir_suffix.
3884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3885else
3886 ac_dir_suffix= ac_top_builddir=
3887fi
3888
3889case $srcdir in
3890 .) # No --srcdir option. We are building in place.
3891 ac_srcdir=.
3892 if test -z "$ac_top_builddir"; then
3893 ac_top_srcdir=.
3894 else
3895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3896 fi ;;
3897 [\\/]* | ?:[\\/]* ) # Absolute path.
3898 ac_srcdir=$srcdir$ac_dir_suffix;
3899 ac_top_srcdir=$srcdir ;;
3900 *) # Relative path.
3901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3903esac
3904
3905# Do not use `cd foo && pwd` to compute absolute paths, because
3906# the directories may not exist.
3907case `pwd` in
3908.) ac_abs_builddir="$ac_dir";;
3909*)
3910 case "$ac_dir" in
3911 .) ac_abs_builddir=`pwd`;;
3912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3914 esac;;
3915esac
3916case $ac_abs_builddir in
3917.) ac_abs_top_builddir=${ac_top_builddir}.;;
3918*)
3919 case ${ac_top_builddir}. in
3920 .) ac_abs_top_builddir=$ac_abs_builddir;;
3921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3923 esac;;
3924esac
3925case $ac_abs_builddir in
3926.) ac_abs_srcdir=$ac_srcdir;;
3927*)
3928 case $ac_srcdir in
3929 .) ac_abs_srcdir=$ac_abs_builddir;;
3930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3932 esac;;
3933esac
3934case $ac_abs_builddir in
3935.) ac_abs_top_srcdir=$ac_top_srcdir;;
3936*)
3937 case $ac_top_srcdir in
3938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3941 esac;;
3942esac
3943
3944
3945
be2a5f71
DJ
3946 if test x"$ac_file" != x-; then
3947 { echo "$as_me:$LINENO: creating $ac_file" >&5
3948echo "$as_me: creating $ac_file" >&6;}
3949 rm -f "$ac_file"
3950 fi
bec39cab
AC
3951 # Let's still pretend it is `configure' which instantiates (i.e., don't
3952 # use $as_me), people would be surprised to read:
3953 # /* config.h. Generated by config.status. */
3954 if test x"$ac_file" = x-; then
3955 configure_input=
3956 else
3957 configure_input="$ac_file. "
3958 fi
3959 configure_input=$configure_input"Generated from `echo $ac_file_in |
3960 sed 's,.*/,,'` by configure."
3961
3962 # First look for the input files in the build tree, otherwise in the
3963 # src tree.
3964 ac_file_inputs=`IFS=:
3965 for f in $ac_file_in; do
3966 case $f in
3967 -) echo $tmp/stdin ;;
3968 [\\/$]*)
3969 # Absolute (can't be DOS-style, as IFS=:)
3970 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3971echo "$as_me: error: cannot find input file: $f" >&2;}
3972 { (exit 1); exit 1; }; }
3973 echo "$f";;
3974 *) # Relative
3975 if test -f "$f"; then
3976 # Build tree
3977 echo "$f"
3978 elif test -f "$srcdir/$f"; then
3979 # Source tree
3980 echo "$srcdir/$f"
3981 else
3982 # /dev/null tree
3983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3984echo "$as_me: error: cannot find input file: $f" >&2;}
3985 { (exit 1); exit 1; }; }
3986 fi;;
3987 esac
3988 done` || { (exit 1); exit 1; }
3989_ACEOF
3990cat >>$CONFIG_STATUS <<_ACEOF
3991 sed "$ac_vpsub
3992$extrasub
3993_ACEOF
3994cat >>$CONFIG_STATUS <<\_ACEOF
3995:t
3996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3997s,@configure_input@,$configure_input,;t t
3998s,@srcdir@,$ac_srcdir,;t t
3999s,@abs_srcdir@,$ac_abs_srcdir,;t t
4000s,@top_srcdir@,$ac_top_srcdir,;t t
4001s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4002s,@builddir@,$ac_builddir,;t t
4003s,@abs_builddir@,$ac_abs_builddir,;t t
4004s,@top_builddir@,$ac_top_builddir,;t t
4005s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4006" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4007 rm -f $tmp/stdin
4008 if test x"$ac_file" != x-; then
4009 mv $tmp/out $ac_file
4010 else
4011 cat $tmp/out
4012 rm -f $tmp/out
4013 fi
4014
4015done
4016_ACEOF
4017
4018cat >>$CONFIG_STATUS <<\_ACEOF
4019
4020{ (exit 0); exit 0; }
4021_ACEOF
c906108c 4022chmod +x $CONFIG_STATUS
bec39cab
AC
4023ac_clean_files=$ac_clean_files_save
4024
4025
4026# configure is writing to config.log, and then calls config.status.
4027# config.status does its own redirection, appending to config.log.
4028# Unfortunately, on DOS this fails, as config.log is still kept open
4029# by configure, so config.status won't be able to write to it; its
4030# output is simply discarded. So we exec the FD to /dev/null,
4031# effectively closing config.log, so it can be properly (re)opened and
4032# appended to by config.status. When coming back to configure, we
4033# need to make the FD available again.
4034if test "$no_create" != yes; then
4035 ac_cs_success=:
4036 ac_config_status_args=
4037 test "$silent" = yes &&
4038 ac_config_status_args="$ac_config_status_args --quiet"
4039 exec 5>/dev/null
4040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4041 exec 5>>config.log
4042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4043 # would make configure fail if this is the last instruction.
4044 $ac_cs_success || { (exit 1); exit 1; }
4045fi
c906108c 4046
bec39cab
AC
4047#
4048# CONFIG_SUBDIRS section.
4049#
c906108c
SS
4050if test "$no_recursion" != yes; then
4051
4052 # Remove --cache-file and --srcdir arguments so they do not pile up.
4053 ac_sub_configure_args=
4054 ac_prev=
4055 for ac_arg in $ac_configure_args; do
4056 if test -n "$ac_prev"; then
4057 ac_prev=
4058 continue
4059 fi
bec39cab 4060 case $ac_arg in
c906108c
SS
4061 -cache-file | --cache-file | --cache-fil | --cache-fi \
4062 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4063 ac_prev=cache_file ;;
4064 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
4065 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4066 | --c=*)
4067 ;;
4068 --config-cache | -C)
c906108c
SS
4069 ;;
4070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4071 ac_prev=srcdir ;;
4072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4073 ;;
bec39cab
AC
4074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4075 ac_prev=prefix ;;
4076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4077 ;;
c906108c
SS
4078 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4079 esac
4080 done
4081
bec39cab
AC
4082 # Always prepend --prefix to ensure using the same prefix
4083 # in subdir configurations.
4084 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
4085
4086 ac_popdir=`pwd`
4087 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
4088
4089 # Do not complain, so a configure script can configure whichever
4090 # parts of a large source tree are present.
bec39cab 4091 test -d $srcdir/$ac_dir || continue
c906108c 4092
bec39cab
AC
4093 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
4094echo "$as_me: configuring in $ac_dir" >&6;}
4095 { if $as_mkdir_p; then
4096 mkdir -p "$ac_dir"
4097 else
4098 as_dir="$ac_dir"
4099 as_dirs=
4100 while test ! -d "$as_dir"; do
4101 as_dirs="$as_dir $as_dirs"
4102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4104 X"$as_dir" : 'X\(//\)[^/]' \| \
4105 X"$as_dir" : 'X\(//\)$' \| \
4106 X"$as_dir" : 'X\(/\)' \| \
4107 . : '\(.\)' 2>/dev/null ||
4108echo X"$as_dir" |
4109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4111 /^X\(\/\/\)$/{ s//\1/; q; }
4112 /^X\(\/\).*/{ s//\1/; q; }
4113 s/.*/./; q'`
4114 done
4115 test ! -n "$as_dirs" || mkdir $as_dirs
4116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4117echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4118 { (exit 1); exit 1; }; }; }
c906108c 4119
bec39cab 4120 ac_builddir=.
c906108c 4121
bec39cab
AC
4122if test "$ac_dir" != .; then
4123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4124 # A "../" for each directory in $ac_dir_suffix.
4125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4126else
4127 ac_dir_suffix= ac_top_builddir=
4128fi
c906108c 4129
bec39cab
AC
4130case $srcdir in
4131 .) # No --srcdir option. We are building in place.
4132 ac_srcdir=.
4133 if test -z "$ac_top_builddir"; then
4134 ac_top_srcdir=.
4135 else
4136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4137 fi ;;
4138 [\\/]* | ?:[\\/]* ) # Absolute path.
4139 ac_srcdir=$srcdir$ac_dir_suffix;
4140 ac_top_srcdir=$srcdir ;;
4141 *) # Relative path.
4142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4144esac
c906108c 4145
bec39cab
AC
4146# Do not use `cd foo && pwd` to compute absolute paths, because
4147# the directories may not exist.
4148case `pwd` in
4149.) ac_abs_builddir="$ac_dir";;
4150*)
4151 case "$ac_dir" in
4152 .) ac_abs_builddir=`pwd`;;
4153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4155 esac;;
4156esac
4157case $ac_abs_builddir in
4158.) ac_abs_top_builddir=${ac_top_builddir}.;;
4159*)
4160 case ${ac_top_builddir}. in
4161 .) ac_abs_top_builddir=$ac_abs_builddir;;
4162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4164 esac;;
4165esac
4166case $ac_abs_builddir in
4167.) ac_abs_srcdir=$ac_srcdir;;
4168*)
4169 case $ac_srcdir in
4170 .) ac_abs_srcdir=$ac_abs_builddir;;
4171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4173 esac;;
4174esac
4175case $ac_abs_builddir in
4176.) ac_abs_top_srcdir=$ac_top_srcdir;;
4177*)
4178 case $ac_top_srcdir in
4179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4182 esac;;
4183esac
4184
4185
4186 cd $ac_dir
c906108c
SS
4187
4188 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
4189 if test -f $ac_srcdir/configure.gnu; then
4190 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
4191 elif test -f $ac_srcdir/configure; then
4192 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
4193 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
4194 ac_sub_configure=$ac_configure
4195 else
bec39cab
AC
4196 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
4197echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
4198 ac_sub_configure=
4199 fi
4200
4201 # The recursion is here.
4202 if test -n "$ac_sub_configure"; then
c906108c 4203 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
4204 case $cache_file in
4205 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
c906108c 4206 *) # Relative path.
bec39cab 4207 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c
SS
4208 esac
4209
bec39cab
AC
4210 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4211echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 4212 # The eval makes quoting arguments work.
bec39cab
AC
4213 eval $ac_sub_configure $ac_sub_configure_args \
4214 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
4215 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
4216echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
4217 { (exit 1); exit 1; }; }
c906108c
SS
4218 fi
4219
be2a5f71 4220 cd $ac_popdir
c906108c
SS
4221 done
4222fi
4223
This page took 0.984142 seconds and 4 git commands to generate.