2009-08-10 Paul Pluzhnikov <ppluzhnikov@google.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure
CommitLineData
d6e9fb05 1#! /bin/sh
d6e9fb05 2# Guess values for system-dependent variables and create Makefiles.
dae5f5cf 3# Generated by GNU Autoconf 2.59.
d6e9fb05 4#
dae5f5cf 5# Copyright (C) 2003 Free Software Foundation, Inc.
d6e9fb05
JK
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+"$@"}'='"$@"'
dae5f5cf
DJ
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
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.
dae5f5cf 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
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
dae5f5cf 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
dae5f5cf 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
dae5f5cf 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
dae5f5cf 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
dae5f5cf
DJ
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
dae5f5cf
DJ
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
b80864fb 77
dae5f5cf
DJ
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
b80864fb 85
dae5f5cf
DJ
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
b80864fb
DJ
97fi
98
b80864fb 99
dae5f5cf
DJ
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
b80864fb 116
dae5f5cf
DJ
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 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae5f5cf 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
dae5f5cf
DJ
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
dae5f5cf 138 if ("$as_dir/$as_base" -c '
b80864fb
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
dae5f5cf 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
b80864fb 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
dae5f5cf
DJ
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
bec39cab
AC
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
dae5f5cf
DJ
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.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dae5f5cf
DJ
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
dae5f5cf
DJ
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
dae5f5cf
DJ
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
dae5f5cf 174 chmod +x $as_me.lineno ||
bec39cab
AC
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
dae5f5cf
DJ
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
dae5f5cf
DJ
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= ;;
bec39cab
AC
192esac
193
dae5f5cf 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
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
dae5f5cf
DJ
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
bec39cab 207 as_ln_s='cp -p'
dae5f5cf
DJ
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
dae5f5cf 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
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
d6e9fb05 224
dae5f5cf 225as_executable_p="test -f"
bec39cab
AC
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
dae5f5cf
DJ
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
bec39cab
AC
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
dae5f5cf
DJ
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
d6e9fb05 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
dae5f5cf
DJ
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
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="server.c"
e28b3332 275ac_config_libobj_dir=../gnulib
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
dae5f5cf
DJ
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
c16158bc 313ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles LTLIBOBJS'
bec39cab 314ac_subst_files=''
ec56be1b 315ac_pwd=`pwd`
d6e9fb05
JK
316
317# Initialize some variables set by options.
bec39cab
AC
318ac_init_help=
319ac_init_version=false
d6e9fb05
JK
320# The variables have the same names as the options, with
321# dashes changed to underlines.
bec39cab 322cache_file=/dev/null
d6e9fb05 323exec_prefix=NONE
d6e9fb05 324no_create=
d6e9fb05
JK
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
d6e9fb05
JK
333verbose=
334x_includes=NONE
335x_libraries=NONE
bec39cab
AC
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
d6e9fb05
JK
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
dae5f5cf 345datadir='${prefix}/share'
d6e9fb05
JK
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
dae5f5cf 349libdir='${exec_prefix}/lib'
d6e9fb05
JK
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
dae5f5cf
DJ
352infodir='${prefix}/info'
353mandir='${prefix}/man'
d6e9fb05 354
d6e9fb05
JK
355ac_prev=
356for ac_option
357do
d6e9fb05
JK
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
dae5f5cf 360 eval "$ac_prev=\$ac_option"
d6e9fb05
JK
361 ac_prev=
362 continue
363 fi
364
dae5f5cf 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d6e9fb05
JK
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
dae5f5cf 369 case $ac_option in
d6e9fb05
JK
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 374 bindir=$ac_optarg ;;
d6e9fb05
JK
375
376 -build | --build | --buil | --bui | --bu)
bec39cab 377 ac_prev=build_alias ;;
d6e9fb05 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 379 build_alias=$ac_optarg ;;
d6e9fb05
JK
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
d6e9fb05 390
dae5f5cf 391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
d6e9fb05 392 ac_prev=datadir ;;
dae5f5cf
DJ
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
bec39cab 395 datadir=$ac_optarg ;;
d6e9fb05
JK
396
397 -disable-* | --disable-*)
bec39cab 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d6e9fb05 399 # Reject names that are not valid shell variable names.
bec39cab
AC
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
dae5f5cf 404 eval "enable_$ac_feature=no" ;;
d6e9fb05
JK
405
406 -enable-* | --enable-*)
bec39cab 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d6e9fb05 408 # Reject names that are not valid shell variable names.
bec39cab
AC
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
dae5f5cf
DJ
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
d6e9fb05
JK
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
bec39cab 426 exec_prefix=$ac_optarg ;;
d6e9fb05
JK
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
bec39cab
AC
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
d6e9fb05
JK
438
439 -host | --host | --hos | --ho)
bec39cab 440 ac_prev=host_alias ;;
d6e9fb05 441 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 442 host_alias=$ac_optarg ;;
d6e9fb05
JK
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 449 includedir=$ac_optarg ;;
d6e9fb05
JK
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 454 infodir=$ac_optarg ;;
d6e9fb05
JK
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 459 libdir=$ac_optarg ;;
d6e9fb05
JK
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
bec39cab 466 libexecdir=$ac_optarg ;;
d6e9fb05
JK
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
dae5f5cf
DJ
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
d6e9fb05
JK
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dae5f5cf
DJ
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 475 localstatedir=$ac_optarg ;;
d6e9fb05
JK
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 480 mandir=$ac_optarg ;;
d6e9fb05
JK
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 487 | --no-cr | --no-c | -n)
d6e9fb05
JK
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 501 oldincludedir=$ac_optarg ;;
d6e9fb05
JK
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 506 prefix=$ac_optarg ;;
d6e9fb05
JK
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 513 program_prefix=$ac_optarg ;;
d6e9fb05
JK
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 520 program_suffix=$ac_optarg ;;
d6e9fb05
JK
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 537 program_transform_name=$ac_optarg ;;
d6e9fb05
JK
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
bec39cab 547 sbindir=$ac_optarg ;;
d6e9fb05
JK
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
bec39cab 558 sharedstatedir=$ac_optarg ;;
d6e9fb05
JK
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
bec39cab 563 site=$ac_optarg ;;
434c4c77 564
d6e9fb05
JK
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 568 srcdir=$ac_optarg ;;
d6e9fb05
JK
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 575 sysconfdir=$ac_optarg ;;
d6e9fb05
JK
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 578 ac_prev=target_alias ;;
d6e9fb05 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 580 target_alias=$ac_optarg ;;
d6e9fb05
JK
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
bec39cab
AC
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
d6e9fb05
JK
587
588 -with-* | --with-*)
bec39cab 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d6e9fb05 590 # Reject names that are not valid shell variable names.
bec39cab
AC
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
d6e9fb05 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
dae5f5cf
DJ
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
d6e9fb05
JK
600
601 -without-* | --without-*)
bec39cab 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d6e9fb05 603 # Reject names that are not valid shell variable names.
bec39cab
AC
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
dae5f5cf 608 eval "with_$ac_package=no" ;;
d6e9fb05
JK
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 619 x_includes=$ac_optarg ;;
d6e9fb05
JK
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 626 x_libraries=$ac_optarg ;;
d6e9fb05 627
bec39cab
AC
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
d6e9fb05
JK
631 ;;
632
bec39cab
AC
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
dae5f5cf
DJ
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
641 export $ac_envvar ;;
642
d6e9fb05 643 *)
bec39cab
AC
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d6e9fb05
JK
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
bec39cab
AC
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
d6e9fb05 658fi
d6e9fb05 659
dae5f5cf
DJ
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
d6e9fb05 662do
dae5f5cf 663 eval ac_val=$`echo $ac_var`
bec39cab 664 case $ac_val in
dae5f5cf
DJ
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
d6e9fb05
JK
680 esac
681done
682
bec39cab
AC
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
d6e9fb05 700
bec39cab
AC
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
d6e9fb05 705
d6e9fb05
JK
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
dae5f5cf
DJ
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
dae5f5cf
DJ
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
bec39cab 717echo X"$0" |
dae5f5cf
DJ
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
d6e9fb05 723 srcdir=$ac_confdir
dae5f5cf 724 if test ! -r $srcdir/$ac_unique_file; then
d6e9fb05
JK
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
dae5f5cf
DJ
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 736 { (exit 1); exit 1; }; }
dae5f5cf 737 fi
d6e9fb05 738fi
dae5f5cf
DJ
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 741 { (exit 1); exit 1; }; }
dae5f5cf
DJ
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
d6e9fb05 775
bec39cab
AC
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783\`configure' configures this package to adapt to many kinds of systems.
784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
dae5f5cf
DJ
803_ACEOF
804
805 cat <<_ACEOF
bec39cab
AC
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
dae5f5cf 823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dae5f5cf
DJ
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
832_ACEOF
833
834 cat <<\_ACEOF
835
dcdb98d2
DJ
836Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840
bec39cab
AC
841System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 --target=TARGET configure for building compilers for TARGET [HOST]
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849
850 cat <<\_ACEOF
851
c16158bc
JM
852Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
856 --with-bugurl=URL Direct users to URL to report a bug
857
bec39cab
AC
858Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
dae5f5cf
DJ
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
bec39cab
AC
865 CPP C preprocessor
866
867Use these variables to override the choices made by `configure' or to help
868it to find libraries and programs with nonstandard names/locations.
869
870_ACEOF
871fi
872
873if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
dae5f5cf 875 ac_popdir=`pwd`
bec39cab 876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dae5f5cf 877 test -d $ac_dir || continue
bec39cab
AC
878 ac_builddir=.
879
dae5f5cf 880if test "$ac_dir" != .; then
bec39cab 881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dae5f5cf
DJ
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884else
885 ac_dir_suffix= ac_top_builddir=
886fi
bec39cab
AC
887
888case $srcdir in
dae5f5cf 889 .) # No --srcdir option. We are building in place.
bec39cab 890 ac_srcdir=.
dae5f5cf
DJ
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 897 ac_srcdir=$srcdir$ac_dir_suffix;
dae5f5cf
DJ
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902esac
903
904# Do not use `cd foo && pwd` to compute absolute paths, because
905# the directories may not exist.
906case `pwd` in
907.) ac_abs_builddir="$ac_dir";;
908*)
909 case "$ac_dir" in
910 .) ac_abs_builddir=`pwd`;;
911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
913 esac;;
914esac
915case $ac_abs_builddir in
916.) ac_abs_top_builddir=${ac_top_builddir}.;;
917*)
918 case ${ac_top_builddir}. in
919 .) ac_abs_top_builddir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922 esac;;
923esac
924case $ac_abs_builddir in
925.) ac_abs_srcdir=$ac_srcdir;;
926*)
927 case $ac_srcdir in
928 .) ac_abs_srcdir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_srcdir=$ac_top_srcdir;;
935*)
936 case $ac_top_srcdir in
937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 esac;;
bec39cab 941esac
dae5f5cf
DJ
942
943 cd $ac_dir
944 # Check for guested configure; otherwise get Cygnus style configure.
945 if test -f $ac_srcdir/configure.gnu; then
946 echo
947 $SHELL $ac_srcdir/configure.gnu --help=recursive
948 elif test -f $ac_srcdir/configure; then
949 echo
950 $SHELL $ac_srcdir/configure --help=recursive
951 elif test -f $ac_srcdir/configure.ac ||
952 test -f $ac_srcdir/configure.in; then
953 echo
954 $ac_configure --help
434c4c77 955 else
bec39cab 956 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dae5f5cf
DJ
957 fi
958 cd $ac_popdir
bec39cab
AC
959 done
960fi
961
dae5f5cf 962test -n "$ac_init_help" && exit 0
bec39cab
AC
963if $ac_init_version; then
964 cat <<\_ACEOF
965
dae5f5cf 966Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
967This configure script is free software; the Free Software Foundation
968gives unlimited permission to copy, distribute and modify it.
969_ACEOF
dae5f5cf 970 exit 0
bec39cab 971fi
dae5f5cf
DJ
972exec 5>config.log
973cat >&5 <<_ACEOF
bec39cab
AC
974This file contains any messages produced by compilers while
975running configure, to aid debugging if configure makes a mistake.
976
977It was created by $as_me, which was
dae5f5cf 978generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
979
980 $ $0 $@
981
982_ACEOF
983{
984cat <<_ASUNAME
985## --------- ##
986## Platform. ##
987## --------- ##
988
989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990uname -m = `(uname -m) 2>/dev/null || echo unknown`
991uname -r = `(uname -r) 2>/dev/null || echo unknown`
992uname -s = `(uname -s) 2>/dev/null || echo unknown`
993uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
997
998/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dae5f5cf 1001hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1002/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005
1006_ASUNAME
1007
1008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009for as_dir in $PATH
1010do
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014done
1015
1016} >&5
1017
1018cat >&5 <<_ACEOF
1019
1020
1021## ----------- ##
1022## Core tests. ##
1023## ----------- ##
1024
1025_ACEOF
1026
1027
1028# Keep a trace of the command line.
1029# Strip out --no-create and --no-recursion so they do not pile up.
1030# Strip out --silent because we don't want to record it for future runs.
1031# Also quote any args containing shell meta-characters.
1032# Make two passes to allow for proper duplicate-argument suppression.
1033ac_configure_args=
1034ac_configure_args0=
1035ac_configure_args1=
dae5f5cf 1036ac_sep=
bec39cab
AC
1037ac_must_keep_next=false
1038for ac_pass in 1 2
1039do
1040 for ac_arg
1041 do
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
dae5f5cf 1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 2)
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1065 ;;
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1068 fi
dae5f5cf
DJ
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
bec39cab
AC
1072 ;;
1073 esac
1074 done
1075done
1076$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079# When interrupted or exit'd, cleanup temporary files, and complete
1080# config.log. We remove comments because anyway the quotes in there
1081# would cause problems or look ugly.
dae5f5cf
DJ
1082# WARNING: Be sure not to use single quotes in there, as some shells,
1083# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1084trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1086 {
1087 echo
1088
1089 cat <<\_ASBOX
1090## ---------------- ##
1091## Cache variables. ##
1092## ---------------- ##
1093_ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
dae5f5cf 1096{
bec39cab 1097 (set) 2>&1 |
dae5f5cf
DJ
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
bec39cab 1100 sed -n \
dae5f5cf
DJ
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 ;;
bec39cab 1104 *)
dae5f5cf
DJ
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1107 ;;
dae5f5cf
DJ
1108 esac;
1109}
bec39cab
AC
1110 echo
1111
1112 cat <<\_ASBOX
1113## ----------------- ##
1114## Output variables. ##
1115## ----------------- ##
1116_ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1119 do
dae5f5cf
DJ
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1122 done | sort
1123 echo
1124
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
dae5f5cf
DJ
1127## ------------- ##
1128## Output files. ##
1129## ------------- ##
bec39cab
AC
1130_ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1133 do
dae5f5cf
DJ
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1136 done | sort
1137 echo
434c4c77 1138 fi
bec39cab
AC
1139
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142## ----------- ##
1143## confdefs.h. ##
1144## ----------- ##
1145_ASBOX
1146 echo
dae5f5cf 1147 sed "/^$/d" confdefs.h | sort
bec39cab
AC
1148 echo
1149 fi
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
dae5f5cf
DJ
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1156 exit $exit_status
dae5f5cf 1157 ' 0
bec39cab
AC
1158for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160done
1161ac_signal=0
1162
1163# confdefs.h avoids OS command line length limits that DEFS can exceed.
dae5f5cf
DJ
1164rm -rf conftest* confdefs.h
1165# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166echo >confdefs.h
bec39cab
AC
1167
1168# Predefined preprocessor variables.
1169
1170cat >>confdefs.h <<_ACEOF
1171#define PACKAGE_NAME "$PACKAGE_NAME"
1172_ACEOF
1173
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_VERSION "$PACKAGE_VERSION"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_STRING "$PACKAGE_STRING"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192_ACEOF
1193
1194
1195# Let the site file select an alternate cache file if it wants to.
1196# Prefer explicitly selected file to automatically selected ones.
dae5f5cf
DJ
1197if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
d6e9fb05 1203fi
dae5f5cf 1204for ac_site_file in $CONFIG_SITE; do
d6e9fb05 1205 if test -r "$ac_site_file"; then
bec39cab
AC
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
d6e9fb05
JK
1209 . "$ac_site_file"
1210 fi
1211done
1212
1213if test -r "$cache_file"; then
bec39cab
AC
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
dae5f5cf
DJ
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
bec39cab
AC
1222 esac
1223 fi
d6e9fb05 1224else
bec39cab
AC
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
d6e9fb05
JK
1228fi
1229
bec39cab
AC
1230# Check that the precious variables saved in the cache have kept the same
1231# value.
1232ac_cache_corrupted=false
dae5f5cf
DJ
1233for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
dae5f5cf
DJ
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1249 *)
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
fdc59709
PB
1251 # differences in whitespace do not lead to failure.
1252 ac_old_val_w=`echo x $ac_old_val`
1253 ac_new_val_w=`echo x $ac_new_val`
1254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1257 ac_cache_corrupted=:
1258 else
1259 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1260echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1261 eval $ac_var=\$ac_old_val
1262 fi
1263 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1264echo "$as_me: former value: \`$ac_old_val'" >&2;}
1265 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1266echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
dae5f5cf
DJ
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
d6e9fb05 1280 fi
bec39cab
AC
1281done
1282if $ac_cache_corrupted; then
ec56be1b
PA
1283 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1284echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1286echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1288echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
d6e9fb05
JK
1290fi
1291
dae5f5cf
DJ
1292ac_ext=c
1293ac_cpp='$CPP $CPPFLAGS'
1294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297
d6e9fb05 1298
84563040 1299
bec39cab
AC
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
ec56be1b
PA
1314
1315
1316
bec39cab
AC
1317
1318
dae5f5cf 1319 ac_config_headers="$ac_config_headers config.h:config.in"
bec39cab
AC
1320
1321
e28b3332 1322
bec39cab
AC
1323ac_ext=c
1324ac_cpp='$CPP $CPPFLAGS'
1325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1330set dummy ${ac_tool_prefix}gcc; ac_word=$2
dae5f5cf
DJ
1331echo "$as_me:$LINENO: checking for $ac_word" >&5
1332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1333if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040
DJ
1335else
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1338else
bec39cab
AC
1339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1340for as_dir in $PATH
1341do
1342 IFS=$as_save_IFS
1343 test -z "$as_dir" && as_dir=.
1344 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 1345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 2
1349 fi
1350done
1351done
1352
84563040
DJ
1353fi
1354fi
bec39cab 1355CC=$ac_cv_prog_CC
84563040 1356if test -n "$CC"; then
dae5f5cf
DJ
1357 echo "$as_me:$LINENO: result: $CC" >&5
1358echo "${ECHO_T}$CC" >&6
84563040 1359else
dae5f5cf
DJ
1360 echo "$as_me:$LINENO: result: no" >&5
1361echo "${ECHO_T}no" >&6
84563040
DJ
1362fi
1363
bec39cab
AC
1364fi
1365if test -z "$ac_cv_prog_CC"; then
1366 ac_ct_CC=$CC
1367 # Extract the first word of "gcc", so it can be a program name with args.
1368set dummy gcc; ac_word=$2
dae5f5cf
DJ
1369echo "$as_me:$LINENO: checking for $ac_word" >&5
1370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1371if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 1373else
bec39cab
AC
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
84563040 1376else
bec39cab
AC
1377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378for as_dir in $PATH
1379do
1380 IFS=$as_save_IFS
1381 test -z "$as_dir" && as_dir=.
1382 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 1383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1384 ac_cv_prog_ac_ct_CC="gcc"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1386 break 2
1387 fi
1388done
1389done
1390
1391fi
1392fi
1393ac_ct_CC=$ac_cv_prog_ac_ct_CC
1394if test -n "$ac_ct_CC"; then
dae5f5cf
DJ
1395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1396echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1397else
dae5f5cf
DJ
1398 echo "$as_me:$LINENO: result: no" >&5
1399echo "${ECHO_T}no" >&6
bec39cab
AC
1400fi
1401
dae5f5cf 1402 CC=$ac_ct_CC
bec39cab
AC
1403else
1404 CC="$ac_cv_prog_CC"
1405fi
1406
1407if test -z "$CC"; then
dae5f5cf
DJ
1408 if test -n "$ac_tool_prefix"; then
1409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1410set dummy ${ac_tool_prefix}cc; ac_word=$2
dae5f5cf
DJ
1411echo "$as_me:$LINENO: checking for $ac_word" >&5
1412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1413if test "${ac_cv_prog_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1415else
1416 if test -n "$CC"; then
1417 ac_cv_prog_CC="$CC" # Let the user override the test.
1418else
1419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420for as_dir in $PATH
1421do
1422 IFS=$as_save_IFS
1423 test -z "$as_dir" && as_dir=.
1424 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 1425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1426 ac_cv_prog_CC="${ac_tool_prefix}cc"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 break 2
1429 fi
1430done
1431done
1432
1433fi
1434fi
1435CC=$ac_cv_prog_CC
1436if test -n "$CC"; then
dae5f5cf
DJ
1437 echo "$as_me:$LINENO: result: $CC" >&5
1438echo "${ECHO_T}$CC" >&6
bec39cab 1439else
dae5f5cf
DJ
1440 echo "$as_me:$LINENO: result: no" >&5
1441echo "${ECHO_T}no" >&6
bec39cab
AC
1442fi
1443
dae5f5cf
DJ
1444fi
1445if test -z "$ac_cv_prog_CC"; then
1446 ac_ct_CC=$CC
1447 # Extract the first word of "cc", so it can be a program name with args.
1448set dummy cc; ac_word=$2
1449echo "$as_me:$LINENO: checking for $ac_word" >&5
1450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453else
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1456else
1457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458for as_dir in $PATH
1459do
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_ac_ct_CC="cc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1466 break 2
b80864fb 1467 fi
dae5f5cf
DJ
1468done
1469done
1470
1471fi
1472fi
1473ac_ct_CC=$ac_cv_prog_ac_ct_CC
1474if test -n "$ac_ct_CC"; then
1475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1476echo "${ECHO_T}$ac_ct_CC" >&6
1477else
1478 echo "$as_me:$LINENO: result: no" >&5
1479echo "${ECHO_T}no" >&6
1480fi
1481
1482 CC=$ac_ct_CC
1483else
1484 CC="$ac_cv_prog_CC"
1485fi
1486
bec39cab
AC
1487fi
1488if test -z "$CC"; then
1489 # Extract the first word of "cc", so it can be a program name with args.
1490set dummy cc; ac_word=$2
dae5f5cf
DJ
1491echo "$as_me:$LINENO: checking for $ac_word" >&5
1492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1493if test "${ac_cv_prog_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1495else
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC="$CC" # Let the user override the test.
1498else
1499 ac_prog_rejected=no
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1508 ac_prog_rejected=yes
1509 continue
1510 fi
1511 ac_cv_prog_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
1514 fi
1515done
1516done
1517
84563040
DJ
1518if test $ac_prog_rejected = yes; then
1519 # We found a bogon in the path, so make sure we never use it.
1520 set dummy $ac_cv_prog_CC
1521 shift
bec39cab 1522 if test $# != 0; then
84563040
DJ
1523 # We chose a different compiler from the bogus one.
1524 # However, it has the same basename, so the bogon will be chosen
1525 # first if we set CC to just the basename; use the full file name.
1526 shift
bec39cab 1527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
84563040
DJ
1528 fi
1529fi
1530fi
1531fi
bec39cab 1532CC=$ac_cv_prog_CC
84563040 1533if test -n "$CC"; then
dae5f5cf
DJ
1534 echo "$as_me:$LINENO: result: $CC" >&5
1535echo "${ECHO_T}$CC" >&6
84563040 1536else
dae5f5cf
DJ
1537 echo "$as_me:$LINENO: result: no" >&5
1538echo "${ECHO_T}no" >&6
84563040
DJ
1539fi
1540
bec39cab
AC
1541fi
1542if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
dae5f5cf 1544 for ac_prog in cl
bec39cab
AC
1545 do
1546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dae5f5cf
DJ
1548echo "$as_me:$LINENO: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1550if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040
DJ
1552else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
bec39cab
AC
1556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557for as_dir in $PATH
1558do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567done
1568done
1569
84563040
DJ
1570fi
1571fi
bec39cab 1572CC=$ac_cv_prog_CC
84563040 1573if test -n "$CC"; then
dae5f5cf
DJ
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575echo "${ECHO_T}$CC" >&6
84563040 1576else
dae5f5cf
DJ
1577 echo "$as_me:$LINENO: result: no" >&5
1578echo "${ECHO_T}no" >&6
84563040 1579fi
bec39cab
AC
1580
1581 test -n "$CC" && break
1582 done
1583fi
1584if test -z "$CC"; then
1585 ac_ct_CC=$CC
dae5f5cf 1586 for ac_prog in cl
bec39cab
AC
1587do
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589set dummy $ac_prog; ac_word=$2
dae5f5cf
DJ
1590echo "$as_me:$LINENO: checking for $ac_word" >&5
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1592if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597else
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1605 ac_cv_prog_ac_ct_CC="$ac_prog"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
84563040 1608 fi
bec39cab
AC
1609done
1610done
1611
1612fi
1613fi
1614ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615if test -n "$ac_ct_CC"; then
dae5f5cf
DJ
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1618else
dae5f5cf
DJ
1619 echo "$as_me:$LINENO: result: no" >&5
1620echo "${ECHO_T}no" >&6
84563040
DJ
1621fi
1622
bec39cab
AC
1623 test -n "$ac_ct_CC" && break
1624done
84563040 1625
dae5f5cf 1626 CC=$ac_ct_CC
bec39cab
AC
1627fi
1628
1629fi
1630
1631
ec56be1b
PA
1632test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1633echo "$as_me: error: in \`$ac_pwd':" >&2;}
1634{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bec39cab
AC
1635See \`config.log' for more details." >&5
1636echo "$as_me: error: no acceptable C compiler found in \$PATH
1637See \`config.log' for more details." >&2;}
ec56be1b 1638 { (exit 1); exit 1; }; }; }
bec39cab
AC
1639
1640# Provide some information about the compiler.
dae5f5cf
DJ
1641echo "$as_me:$LINENO:" \
1642 "checking for C compiler version" >&5
bec39cab 1643ac_compiler=`set X $ac_compile; echo $2`
dae5f5cf
DJ
1644{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1645 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1646 ac_status=$?
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
dae5f5cf
DJ
1649{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1650 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1651 ac_status=$?
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
dae5f5cf
DJ
1654{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1655 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1656 ac_status=$?
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1659
1660cat >conftest.$ac_ext <<_ACEOF
1661/* confdefs.h. */
1662_ACEOF
1663cat confdefs.h >>conftest.$ac_ext
1664cat >>conftest.$ac_ext <<_ACEOF
1665/* end confdefs.h. */
1666
1667int
1668main ()
1669{
1670
1671 ;
1672 return 0;
1673}
1674_ACEOF
1675ac_clean_files_save=$ac_clean_files
1676ac_clean_files="$ac_clean_files a.out a.exe b.out"
1677# Try to create an executable without -o first, disregard a.out.
1678# It will help us diagnose broken compilers, and finding out an intuition
1679# of exeext.
dae5f5cf
DJ
1680echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1681echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab 1682ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dae5f5cf
DJ
1683if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1684 (eval $ac_link_default) 2>&5
bec39cab
AC
1685 ac_status=$?
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }; then
dae5f5cf
DJ
1688 # Find the output, starting from the most likely. This scheme is
1689# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1690# resort.
1691
1692# Be careful to initialize this variable, since it used to be cached.
1693# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1694ac_cv_exeext=
1695# b.out is created by i960 compilers.
1696for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1697do
1698 test -f "$ac_file" || continue
1699 case $ac_file in
dae5f5cf
DJ
1700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1701 ;;
1702 conftest.$ac_ext )
1703 # This is the source file.
bec39cab
AC
1704 ;;
1705 [ab].out )
1706 # We found the default executable, but exeext='' is most
1707 # certainly right.
1708 break;;
1709 *.* )
dae5f5cf
DJ
1710 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1711 # FIXME: I believe we export ac_cv_exeext for Libtool,
1712 # but it would be cool to find out if it's true. Does anybody
1713 # maintain Libtool? --akim.
1714 export ac_cv_exeext
bec39cab
AC
1715 break;;
1716 * )
1717 break;;
1718 esac
1719done
1720else
1721 echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
ec56be1b
PA
1724{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1725echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1726{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1727See \`config.log' for more details." >&5
1728echo "$as_me: error: C compiler cannot create executables
1729See \`config.log' for more details." >&2;}
ec56be1b 1730 { (exit 77); exit 77; }; }; }
bec39cab
AC
1731fi
1732
1733ac_exeext=$ac_cv_exeext
dae5f5cf
DJ
1734echo "$as_me:$LINENO: result: $ac_file" >&5
1735echo "${ECHO_T}$ac_file" >&6
bec39cab 1736
dae5f5cf 1737# Check the compiler produces executables we can run. If not, either
bec39cab 1738# the compiler is broken, or we cross compile.
dae5f5cf
DJ
1739echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1740echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1741# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1742# If not cross compiling, check that we can run a simple program.
1743if test "$cross_compiling" != yes; then
1744 if { ac_try='./$ac_file'
dae5f5cf
DJ
1745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1746 (eval $ac_try) 2>&5
bec39cab
AC
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }; }; then
1750 cross_compiling=no
84563040 1751 else
bec39cab
AC
1752 if test "$cross_compiling" = maybe; then
1753 cross_compiling=yes
1754 else
ec56be1b
PA
1755 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1756echo "$as_me: error: in \`$ac_pwd':" >&2;}
1757{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
bec39cab
AC
1758If you meant to cross compile, use \`--host'.
1759See \`config.log' for more details." >&5
1760echo "$as_me: error: cannot run C compiled programs.
1761If you meant to cross compile, use \`--host'.
1762See \`config.log' for more details." >&2;}
ec56be1b 1763 { (exit 1); exit 1; }; }; }
bec39cab 1764 fi
84563040 1765 fi
84563040 1766fi
dae5f5cf
DJ
1767echo "$as_me:$LINENO: result: yes" >&5
1768echo "${ECHO_T}yes" >&6
bec39cab
AC
1769
1770rm -f a.out a.exe conftest$ac_cv_exeext b.out
1771ac_clean_files=$ac_clean_files_save
dae5f5cf 1772# Check the compiler produces executables we can run. If not, either
bec39cab 1773# the compiler is broken, or we cross compile.
dae5f5cf
DJ
1774echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1775echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1776echo "$as_me:$LINENO: result: $cross_compiling" >&5
1777echo "${ECHO_T}$cross_compiling" >&6
1778
1779echo "$as_me:$LINENO: checking for suffix of executables" >&5
1780echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1782 (eval $ac_link) 2>&5
bec39cab
AC
1783 ac_status=$?
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); }; then
1786 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1787# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1788# work properly (i.e., refer to `conftest.exe'), while it won't with
1789# `rm'.
1790for ac_file in conftest.exe conftest conftest.*; do
1791 test -f "$ac_file" || continue
1792 case $ac_file in
dae5f5cf 1793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
bec39cab 1794 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
dae5f5cf 1795 export ac_cv_exeext
bec39cab
AC
1796 break;;
1797 * ) break;;
1798 esac
1799done
84563040 1800else
ec56be1b
PA
1801 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1802echo "$as_me: error: in \`$ac_pwd':" >&2;}
1803{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bec39cab
AC
1804See \`config.log' for more details." >&5
1805echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1806See \`config.log' for more details." >&2;}
ec56be1b 1807 { (exit 1); exit 1; }; }; }
84563040 1808fi
bec39cab
AC
1809
1810rm -f conftest$ac_cv_exeext
dae5f5cf
DJ
1811echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1812echo "${ECHO_T}$ac_cv_exeext" >&6
bec39cab
AC
1813
1814rm -f conftest.$ac_ext
1815EXEEXT=$ac_cv_exeext
1816ac_exeext=$EXEEXT
dae5f5cf
DJ
1817echo "$as_me:$LINENO: checking for suffix of object files" >&5
1818echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1819if test "${ac_cv_objext+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1821else
1822 cat >conftest.$ac_ext <<_ACEOF
1823/* confdefs.h. */
1824_ACEOF
1825cat confdefs.h >>conftest.$ac_ext
1826cat >>conftest.$ac_ext <<_ACEOF
1827/* end confdefs.h. */
1828
1829int
1830main ()
1831{
1832
1833 ;
1834 return 0;
1835}
1836_ACEOF
1837rm -f conftest.o conftest.obj
dae5f5cf
DJ
1838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
bec39cab
AC
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
dae5f5cf 1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1844 case $ac_file in
dae5f5cf 1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1847 break;;
1848 esac
1849done
1850else
1851 echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
ec56be1b
PA
1854{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1855echo "$as_me: error: in \`$ac_pwd':" >&2;}
bec39cab
AC
1856{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1857See \`config.log' for more details." >&5
1858echo "$as_me: error: cannot compute suffix of object files: cannot compile
1859See \`config.log' for more details." >&2;}
ec56be1b 1860 { (exit 1); exit 1; }; }; }
84563040
DJ
1861fi
1862
bec39cab
AC
1863rm -f conftest.$ac_cv_objext conftest.$ac_ext
1864fi
dae5f5cf
DJ
1865echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1866echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1867OBJEXT=$ac_cv_objext
1868ac_objext=$OBJEXT
dae5f5cf
DJ
1869echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1870echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1871if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h. */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h. */
1880
1881int
1882main ()
1883{
1884#ifndef __GNUC__
1885 choke me
1886#endif
84563040 1887
bec39cab
AC
1888 ;
1889 return 0;
1890}
1891_ACEOF
1892rm -f conftest.$ac_objext
dae5f5cf
DJ
1893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
1895 ac_status=$?
1896 grep -v '^ *+' conftest.er1 >conftest.err
1897 rm -f conftest.er1
1898 cat conftest.err >&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
dae5f5cf
DJ
1901 { ac_try='test -z "$ac_c_werror_flag"
1902 || test ! -s conftest.err'
1903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 (eval $ac_try) 2>&5
bec39cab
AC
1905 ac_status=$?
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; } &&
1908 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910 (eval $ac_try) 2>&5
bec39cab
AC
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1914 ac_compiler_gnu=yes
84563040 1915else
bec39cab
AC
1916 echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
dae5f5cf 1919ac_compiler_gnu=no
84563040 1920fi
dae5f5cf 1921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 1922ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 1923
bec39cab 1924fi
dae5f5cf
DJ
1925echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1926echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1927GCC=`test $ac_compiler_gnu = yes && echo yes`
1928ac_test_CFLAGS=${CFLAGS+set}
1929ac_save_CFLAGS=$CFLAGS
dae5f5cf
DJ
1930CFLAGS="-g"
1931echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1932echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1933if test "${ac_cv_prog_cc_g+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 1935else
dae5f5cf 1936 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1937/* confdefs.h. */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h. */
1942
1943int
1944main ()
1945{
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951rm -f conftest.$ac_objext
dae5f5cf
DJ
1952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1953 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
1954 ac_status=$?
1955 grep -v '^ *+' conftest.er1 >conftest.err
1956 rm -f conftest.er1
1957 cat conftest.err >&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
dae5f5cf
DJ
1960 { ac_try='test -z "$ac_c_werror_flag"
1961 || test ! -s conftest.err'
1962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963 (eval $ac_try) 2>&5
bec39cab
AC
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; } &&
1967 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 (eval $ac_try) 2>&5
bec39cab
AC
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
84563040
DJ
1973 ac_cv_prog_cc_g=yes
1974else
bec39cab
AC
1975 echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
84563040 1977
dae5f5cf 1978ac_cv_prog_cc_g=no
84563040 1979fi
dae5f5cf 1980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 1981fi
dae5f5cf
DJ
1982echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1983echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
84563040 1984if test "$ac_test_CFLAGS" = set; then
bec39cab 1985 CFLAGS=$ac_save_CFLAGS
84563040
DJ
1986elif test $ac_cv_prog_cc_g = yes; then
1987 if test "$GCC" = yes; then
1988 CFLAGS="-g -O2"
1989 else
1990 CFLAGS="-g"
1991 fi
1992else
1993 if test "$GCC" = yes; then
1994 CFLAGS="-O2"
1995 else
1996 CFLAGS=
1997 fi
1998fi
dae5f5cf
DJ
1999echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2000echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2001if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
dae5f5cf 2004 ac_cv_prog_cc_stdc=no
bec39cab
AC
2005ac_save_CC=$CC
2006cat >conftest.$ac_ext <<_ACEOF
2007/* confdefs.h. */
2008_ACEOF
2009cat confdefs.h >>conftest.$ac_ext
2010cat >>conftest.$ac_ext <<_ACEOF
2011/* end confdefs.h. */
2012#include <stdarg.h>
2013#include <stdio.h>
2014#include <sys/types.h>
2015#include <sys/stat.h>
2016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2017struct buf { int x; };
2018FILE * (*rcsopen) (struct buf *, struct stat *, int);
2019static char *e (p, i)
2020 char **p;
2021 int i;
2022{
2023 return p[i];
2024}
2025static char *f (char * (*g) (char **, int), char **p, ...)
2026{
2027 char *s;
2028 va_list v;
2029 va_start (v,p);
2030 s = g (p, va_arg (v,int));
2031 va_end (v);
2032 return s;
2033}
2034
2035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2036 function prototypes and stuff, but not '\xHH' hex character constants.
2037 These don't provoke an error unfortunately, instead are silently treated
dae5f5cf 2038 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2040 array size at least. It's necessary to write '\x00'==0 to get something
dae5f5cf 2041 that's true only with -std1. */
bec39cab
AC
2042int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2043
2044int test (int i, double x);
2045struct s1 {int (*f) (int a);};
2046struct s2 {int (*f) (double a);};
2047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2048int argc;
2049char **argv;
2050int
2051main ()
2052{
2053return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2054 ;
2055 return 0;
2056}
2057_ACEOF
dae5f5cf
DJ
2058# Don't try gcc -ansi; that turns off useful extensions and
2059# breaks some systems' header files.
2060# AIX -qlanglvl=ansi
2061# Ultrix and OSF/1 -std1
2062# HP-UX 10.20 and later -Ae
2063# HP-UX older versions -Aa -D_HPUX_SOURCE
2064# SVR4 -Xc -D__EXTENSIONS__
2065for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2066do
2067 CC="$ac_save_CC $ac_arg"
2068 rm -f conftest.$ac_objext
dae5f5cf
DJ
2069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
2071 ac_status=$?
2072 grep -v '^ *+' conftest.er1 >conftest.err
2073 rm -f conftest.er1
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
dae5f5cf
DJ
2077 { ac_try='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
bec39cab
AC
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
bec39cab
AC
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
dae5f5cf
DJ
2090 ac_cv_prog_cc_stdc=$ac_arg
2091break
bec39cab
AC
2092else
2093 echo "$as_me: failed program was:" >&5
2094sed 's/^/| /' conftest.$ac_ext >&5
2095
2096fi
dae5f5cf 2097rm -f conftest.err conftest.$ac_objext
bec39cab 2098done
dae5f5cf 2099rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab
AC
2100CC=$ac_save_CC
2101
2102fi
dae5f5cf
DJ
2103
2104case "x$ac_cv_prog_cc_stdc" in
2105 x|xno)
2106 echo "$as_me:$LINENO: result: none needed" >&5
2107echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2108 *)
dae5f5cf
DJ
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2110echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2111 CC="$CC $ac_cv_prog_cc_stdc" ;;
bec39cab
AC
2112esac
2113
dae5f5cf
DJ
2114# Some people use a C++ compiler to compile C. Since we use `exit',
2115# in C++ we need to declare it. In case someone uses the same compiler
2116# for both compiling C and C++ we need to have the C++ compiler decide
2117# the declaration of exit, since it's the most demanding environment.
2118cat >conftest.$ac_ext <<_ACEOF
2119#ifndef __cplusplus
2120 choke me
2121#endif
2122_ACEOF
2123rm -f conftest.$ac_objext
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>conftest.er1
2126 ac_status=$?
2127 grep -v '^ *+' conftest.er1 >conftest.err
2128 rm -f conftest.er1
2129 cat conftest.err >&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try='test -z "$ac_c_werror_flag"
2133 || test ! -s conftest.err'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135 (eval $ac_try) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 for ac_declaration in \
2146 '' \
2147 'extern "C" void std::exit (int) throw (); using std::exit;' \
2148 'extern "C" void std::exit (int); using std::exit;' \
2149 'extern "C" void exit (int) throw ();' \
2150 'extern "C" void exit (int);' \
2151 'void exit (int);'
2152do
2153 cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h. */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h. */
2159$ac_declaration
2160#include <stdlib.h>
2161int
2162main ()
2163{
2164exit (42);
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 :
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 2195
dae5f5cf
DJ
2196continue
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199 cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h. */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h. */
2205$ac_declaration
2206int
2207main ()
2208{
2209exit (42);
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214rm -f conftest.$ac_objext
2215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2217 ac_status=$?
2218 grep -v '^ *+' conftest.er1 >conftest.err
2219 rm -f conftest.er1
2220 cat conftest.err >&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 break
2237else
2238 echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243done
2244rm -f conftest*
2245if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo $ac_declaration >>confdefs.h
2248 echo '#endif' >>confdefs.h
2249fi
2250
2251else
2252 echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257ac_ext=c
bec39cab
AC
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040
DJ
2262
2263
fd462a61
DJ
2264cat >>confdefs.h <<\_ACEOF
2265#define _GNU_SOURCE 1
2266_ACEOF
2267
2268
2269
d6e9fb05 2270ac_aux_dir=
dae5f5cf
DJ
2271for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2272 if test -f $ac_dir/install-sh; then
d6e9fb05
JK
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
dae5f5cf 2276 elif test -f $ac_dir/install.sh; then
d6e9fb05
JK
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
dae5f5cf 2280 elif test -f $ac_dir/shtool; then
bec39cab
AC
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
d6e9fb05
JK
2284 fi
2285done
2286if test -z "$ac_aux_dir"; then
dae5f5cf
DJ
2287 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2288echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
bec39cab 2289 { (exit 1); exit 1; }; }
d6e9fb05 2290fi
dae5f5cf
DJ
2291ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2292ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2293ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
d6e9fb05
JK
2294
2295# Make sure we can run config.sub.
dae5f5cf
DJ
2296$ac_config_sub sun4 >/dev/null 2>&1 ||
2297 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2298echo "$as_me: error: cannot run $ac_config_sub" >&2;}
bec39cab
AC
2299 { (exit 1); exit 1; }; }
2300
dae5f5cf
DJ
2301echo "$as_me:$LINENO: checking build system type" >&5
2302echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2303if test "${ac_cv_build+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
dae5f5cf
DJ
2306 ac_cv_build_alias=$build_alias
2307test -z "$ac_cv_build_alias" &&
2308 ac_cv_build_alias=`$ac_config_guess`
2309test -z "$ac_cv_build_alias" &&
bec39cab
AC
2310 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2311echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2312 { (exit 1); exit 1; }; }
dae5f5cf
DJ
2313ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2314 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2315echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab 2316 { (exit 1); exit 1; }; }
d6e9fb05 2317
bec39cab 2318fi
dae5f5cf
DJ
2319echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2320echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2321build=$ac_cv_build
dae5f5cf
DJ
2322build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2323build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2324build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2325
2326
2327echo "$as_me:$LINENO: checking host system type" >&5
2328echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2329if test "${ac_cv_host+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
dae5f5cf
DJ
2332 ac_cv_host_alias=$host_alias
2333test -z "$ac_cv_host_alias" &&
2334 ac_cv_host_alias=$ac_cv_build_alias
2335ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2336 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2337echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab 2338 { (exit 1); exit 1; }; }
d6e9fb05 2339
bec39cab 2340fi
dae5f5cf
DJ
2341echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2343host=$ac_cv_host
dae5f5cf
DJ
2344host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2345host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2346host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2347
2348
2349echo "$as_me:$LINENO: checking target system type" >&5
2350echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2351if test "${ac_cv_target+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
dae5f5cf
DJ
2354 ac_cv_target_alias=$target_alias
2355test "x$ac_cv_target_alias" = "x" &&
2356 ac_cv_target_alias=$ac_cv_host_alias
2357ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2359echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab 2360 { (exit 1); exit 1; }; }
d6e9fb05 2361
bec39cab 2362fi
dae5f5cf
DJ
2363echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2364echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2365target=$ac_cv_target
dae5f5cf
DJ
2366target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2367target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2368target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d6e9fb05 2369
d6e9fb05 2370
bec39cab
AC
2371# The aliases save the names the user supplied, while $host etc.
2372# will get canonicalized.
2373test -n "$target_alias" &&
d6e9fb05
JK
2374 test "$program_prefix$program_suffix$program_transform_name" = \
2375 NONENONEs,x,x, &&
2376 program_prefix=${target_alias}-
2377
2378# Find a good install program. We prefer a C program (faster),
2379# so one script is as good as another. But avoid the broken or
2380# incompatible versions:
2381# SysV /etc/install, /usr/sbin/install
2382# SunOS /usr/etc/install
2383# IRIX /sbin/install
2384# AIX /bin/install
bec39cab 2385# AmigaOS /C/install, which installs bootblocks on floppy discs
e4f78295 2386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d6e9fb05
JK
2387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
bec39cab 2389# OS/2's system install, which has a completely different semantic
d6e9fb05 2390# ./install, which can be erroneously created by make from ./install.sh.
dae5f5cf
DJ
2391echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2392echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d6e9fb05 2393if test -z "$INSTALL"; then
bec39cab
AC
2394if test "${ac_cv_path_install+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403case $as_dir/ in
2404 ./ | .// | /cC/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
dae5f5cf 2414 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d6e9fb05 2415 if test $ac_prog = install &&
bec39cab 2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d6e9fb05 2417 # AIX install. It has an incompatible calling convention.
d6e9fb05 2418 :
bec39cab
AC
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
d6e9fb05 2423 else
bec39cab
AC
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
d6e9fb05
JK
2426 fi
2427 fi
2428 done
bec39cab
AC
2429 done
2430 ;;
2431esac
2432done
2433
d6e9fb05
JK
2434
2435fi
2436 if test "${ac_cv_path_install+set}" = set; then
bec39cab 2437 INSTALL=$ac_cv_path_install
d6e9fb05 2438 else
dae5f5cf
DJ
2439 # As a last resort, use the slow shell script. We don't cache a
2440 # path for INSTALL within a source directory, because that will
d6e9fb05 2441 # break other packages using the cache if that directory is
dae5f5cf 2442 # removed, or if the path is relative.
bec39cab 2443 INSTALL=$ac_install_sh
d6e9fb05
JK
2444 fi
2445fi
dae5f5cf
DJ
2446echo "$as_me:$LINENO: result: $INSTALL" >&5
2447echo "${ECHO_T}$INSTALL" >&6
d6e9fb05
JK
2448
2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450# It thinks the first close brace ends the variable substitution.
2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
bec39cab 2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e4f78295 2454
d6e9fb05
JK
2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457
dcdb98d2 2458test "$program_prefix" != NONE &&
dae5f5cf 2459 program_transform_name="s,^,$program_prefix,;$program_transform_name"
dcdb98d2
DJ
2460# Use a double $ so make ignores it.
2461test "$program_suffix" != NONE &&
dae5f5cf 2462 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
dcdb98d2
DJ
2463# Double any \ or $. echo might interpret backslashes.
2464# By default was `s,x,x', remove it if useless.
2465cat <<\_ACEOF >conftest.sed
2466s/[\\$]/&&/g;s/;s,x,x,$//
2467_ACEOF
2468program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dae5f5cf 2469rm conftest.sed
dcdb98d2
DJ
2470
2471
bec39cab
AC
2472
2473ac_ext=c
2474ac_cpp='$CPP $CPPFLAGS'
2475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477ac_compiler_gnu=$ac_cv_c_compiler_gnu
dae5f5cf
DJ
2478echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2479echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
84563040
DJ
2480# On Suns, sometimes $CPP names a directory.
2481if test -n "$CPP" && test -d "$CPP"; then
2482 CPP=
2483fi
2484if test -z "$CPP"; then
bec39cab
AC
2485 if test "${ac_cv_prog_CPP+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2487else
bec39cab
AC
2488 # Double quotes because CPP needs to be expanded
2489 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2490 do
2491 ac_preproc_ok=false
2492for ac_c_preproc_warn_flag in '' yes
2493do
2494 # Use a header file that comes with gcc, so configuring glibc
2495 # with a fresh cross-compiler works.
2496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2497 # <limits.h> exists even on freestanding compilers.
84563040 2498 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab
AC
2499 # not just through cpp. "Syntax error" is here to catch this case.
2500 cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h. */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h. */
2506#ifdef __STDC__
2507# include <limits.h>
2508#else
2509# include <assert.h>
2510#endif
2511 Syntax error
2512_ACEOF
dae5f5cf
DJ
2513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bec39cab
AC
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } >/dev/null; then
2521 if test -s conftest.err; then
2522 ac_cpp_err=$ac_c_preproc_warn_flag
2523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2524 else
2525 ac_cpp_err=
2526 fi
84563040 2527else
bec39cab
AC
2528 ac_cpp_err=yes
2529fi
2530if test -z "$ac_cpp_err"; then
84563040
DJ
2531 :
2532else
bec39cab
AC
2533 echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 # Broken: fails on valid input.
2537continue
2538fi
2539rm -f conftest.err conftest.$ac_ext
2540
dae5f5cf 2541 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2542 # can be detected and how.
2543 cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h. */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h. */
2549#include <ac_nonexistent.h>
2550_ACEOF
dae5f5cf
DJ
2551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bec39cab
AC
2553 ac_status=$?
2554 grep -v '^ *+' conftest.er1 >conftest.err
2555 rm -f conftest.er1
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } >/dev/null; then
2559 if test -s conftest.err; then
2560 ac_cpp_err=$ac_c_preproc_warn_flag
2561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2562 else
2563 ac_cpp_err=
2564 fi
2565else
2566 ac_cpp_err=yes
2567fi
2568if test -z "$ac_cpp_err"; then
2569 # Broken: success on invalid input.
2570continue
2571else
2572 echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 # Passes both tests.
2576ac_preproc_ok=:
2577break
2578fi
2579rm -f conftest.err conftest.$ac_ext
2580
2581done
2582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2583rm -f conftest.err conftest.$ac_ext
2584if $ac_preproc_ok; then
2585 break
2586fi
2587
2588 done
2589 ac_cv_prog_CPP=$CPP
2590
2591fi
2592 CPP=$ac_cv_prog_CPP
2593else
2594 ac_cv_prog_CPP=$CPP
2595fi
dae5f5cf
DJ
2596echo "$as_me:$LINENO: result: $CPP" >&5
2597echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2598ac_preproc_ok=false
2599for ac_c_preproc_warn_flag in '' yes
2600do
2601 # Use a header file that comes with gcc, so configuring glibc
2602 # with a fresh cross-compiler works.
2603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 # <limits.h> exists even on freestanding compilers.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp. "Syntax error" is here to catch this case.
2607 cat >conftest.$ac_ext <<_ACEOF
2608/* confdefs.h. */
2609_ACEOF
2610cat confdefs.h >>conftest.$ac_ext
2611cat >>conftest.$ac_ext <<_ACEOF
2612/* end confdefs.h. */
2613#ifdef __STDC__
2614# include <limits.h>
2615#else
2616# include <assert.h>
2617#endif
2618 Syntax error
2619_ACEOF
dae5f5cf
DJ
2620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bec39cab
AC
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev/null; then
2628 if test -s conftest.err; then
2629 ac_cpp_err=$ac_c_preproc_warn_flag
2630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2631 else
2632 ac_cpp_err=
2633 fi
2634else
2635 ac_cpp_err=yes
2636fi
2637if test -z "$ac_cpp_err"; then
84563040
DJ
2638 :
2639else
bec39cab
AC
2640 echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 # Broken: fails on valid input.
2644continue
84563040 2645fi
bec39cab
AC
2646rm -f conftest.err conftest.$ac_ext
2647
dae5f5cf 2648 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2649 # can be detected and how.
2650 cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h. */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h. */
2656#include <ac_nonexistent.h>
2657_ACEOF
dae5f5cf
DJ
2658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bec39cab
AC
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } >/dev/null; then
2666 if test -s conftest.err; then
2667 ac_cpp_err=$ac_c_preproc_warn_flag
2668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2669 else
2670 ac_cpp_err=
2671 fi
2672else
2673 ac_cpp_err=yes
84563040 2674fi
bec39cab
AC
2675if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2677continue
2678else
2679 echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 # Passes both tests.
2683ac_preproc_ok=:
2684break
84563040 2685fi
bec39cab
AC
2686rm -f conftest.err conftest.$ac_ext
2687
2688done
2689# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2690rm -f conftest.err conftest.$ac_ext
2691if $ac_preproc_ok; then
2692 :
2693else
ec56be1b
PA
2694 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2695echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
bec39cab
AC
2697See \`config.log' for more details." >&5
2698echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2699See \`config.log' for more details." >&2;}
ec56be1b 2700 { (exit 1); exit 1; }; }; }
84563040 2701fi
bec39cab
AC
2702
2703ac_ext=c
2704ac_cpp='$CPP $CPPFLAGS'
2705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708
2709
dae5f5cf
DJ
2710echo "$as_me:$LINENO: checking for egrep" >&5
2711echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2712if test "${ac_cv_prog_egrep+set}" = set; then
bec39cab 2713 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2714else
dae5f5cf
DJ
2715 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2716 then ac_cv_prog_egrep='grep -E'
2717 else ac_cv_prog_egrep='egrep'
bec39cab 2718 fi
b80864fb 2719fi
dae5f5cf
DJ
2720echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2721echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2722 EGREP=$ac_cv_prog_egrep
b80864fb
DJ
2723
2724
dae5f5cf
DJ
2725echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2726echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
2727if test "${ac_cv_header_stdc+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2729else
bec39cab
AC
2730 cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h. */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h. */
84563040
DJ
2736#include <stdlib.h>
2737#include <stdarg.h>
2738#include <string.h>
2739#include <float.h>
bec39cab
AC
2740
2741int
2742main ()
2743{
2744
2745 ;
2746 return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext
dae5f5cf
DJ
2750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
dae5f5cf
DJ
2758 { ac_try='test -z "$ac_c_werror_flag"
2759 || test ! -s conftest.err'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
bec39cab
AC
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; } &&
2765 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
bec39cab
AC
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
84563040
DJ
2771 ac_cv_header_stdc=yes
2772else
bec39cab
AC
2773 echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
dae5f5cf 2776ac_cv_header_stdc=no
84563040 2777fi
dae5f5cf 2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84563040
DJ
2779
2780if test $ac_cv_header_stdc = yes; then
2781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
bec39cab
AC
2782 cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
84563040 2788#include <string.h>
bec39cab
AC
2789
2790_ACEOF
84563040 2791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2792 $EGREP "memchr" >/dev/null 2>&1; then
84563040
DJ
2793 :
2794else
84563040
DJ
2795 ac_cv_header_stdc=no
2796fi
2797rm -f conftest*
2798
2799fi
2800
2801if test $ac_cv_header_stdc = yes; then
2802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
bec39cab
AC
2803 cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h. */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h. */
84563040 2809#include <stdlib.h>
bec39cab
AC
2810
2811_ACEOF
84563040 2812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2813 $EGREP "free" >/dev/null 2>&1; then
84563040
DJ
2814 :
2815else
84563040
DJ
2816 ac_cv_header_stdc=no
2817fi
2818rm -f conftest*
2819
2820fi
bec39cab
AC
2821
2822if test $ac_cv_header_stdc = yes; then
2823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2824 if test "$cross_compiling" = yes; then
2825 :
2826else
2827 cat >conftest.$ac_ext <<_ACEOF
2828/* confdefs.h. */
2829_ACEOF
2830cat confdefs.h >>conftest.$ac_ext
2831cat >>conftest.$ac_ext <<_ACEOF
2832/* end confdefs.h. */
2833#include <ctype.h>
2834#if ((' ' & 0x0FF) == 0x020)
2835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2837#else
2838# define ISLOWER(c) \
2839 (('a' <= (c) && (c) <= 'i') \
2840 || ('j' <= (c) && (c) <= 'r') \
2841 || ('s' <= (c) && (c) <= 'z'))
2842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2843#endif
2844
2845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2846int
2847main ()
2848{
2849 int i;
2850 for (i = 0; i < 256; i++)
2851 if (XOR (islower (i), ISLOWER (i))
2852 || toupper (i) != TOUPPER (i))
dae5f5cf
DJ
2853 exit(2);
2854 exit (0);
bec39cab
AC
2855}
2856_ACEOF
2857rm -f conftest$ac_exeext
dae5f5cf
DJ
2858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 2>&5
bec39cab
AC
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dae5f5cf
DJ
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
bec39cab
AC
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 :
2869else
2870 echo "$as_me: program exited with status $ac_status" >&5
2871echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874( exit $ac_status )
2875ac_cv_header_stdc=no
2876fi
dae5f5cf 2877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2878fi
2879fi
2880fi
dae5f5cf
DJ
2881echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2882echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab
AC
2883if test $ac_cv_header_stdc = yes; then
2884
2885cat >>confdefs.h <<\_ACEOF
2886#define STDC_HEADERS 1
2887_ACEOF
2888
2889fi
2890
2891
2892# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2903 inttypes.h stdint.h unistd.h
2904do
2905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dae5f5cf
DJ
2906echo "$as_me:$LINENO: checking for $ac_header" >&5
2907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2908if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 cat >conftest.$ac_ext <<_ACEOF
2912/* confdefs.h. */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h. */
2917$ac_includes_default
2918
2919#include <$ac_header>
2920_ACEOF
2921rm -f conftest.$ac_objext
dae5f5cf
DJ
2922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
2924 ac_status=$?
2925 grep -v '^ *+' conftest.er1 >conftest.err
2926 rm -f conftest.er1
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
dae5f5cf
DJ
2930 { ac_try='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
bec39cab
AC
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
bec39cab
AC
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 eval "$as_ac_Header=yes"
2944else
2945 echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
dae5f5cf 2948eval "$as_ac_Header=no"
bec39cab 2949fi
dae5f5cf 2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 2951fi
dae5f5cf
DJ
2952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
2954if test `eval echo '${'$as_ac_Header'}'` = yes; then
2955 cat >>confdefs.h <<_ACEOF
2956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2957_ACEOF
2958
2959fi
2960
2961done
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
b80864fb
DJ
2975
2976
2977
2978
2979
2980
2981
68070c10
PA
2982
2983
2984
2985
2986
1b3f6016 2987for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h
bec39cab
AC
2988do
2989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dae5f5cf
DJ
2990if eval "test \"\${$as_ac_Header+set}\" = set"; then
2991 echo "$as_me:$LINENO: checking for $ac_header" >&5
2992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2993if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995fi
dae5f5cf
DJ
2996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
84563040 2998else
bec39cab 2999 # Is the header compilable?
dae5f5cf
DJ
3000echo "$as_me:$LINENO: checking $ac_header usability" >&5
3001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3002cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008$ac_includes_default
3009#include <$ac_header>
3010_ACEOF
3011rm -f conftest.$ac_objext
dae5f5cf
DJ
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
dae5f5cf
DJ
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
bec39cab
AC
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
bec39cab
AC
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_header_compiler=yes
84563040 3034else
bec39cab
AC
3035 echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
dae5f5cf 3038ac_header_compiler=no
84563040 3039fi
dae5f5cf
DJ
3040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3042echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3043
3044# Is the header present?
dae5f5cf
DJ
3045echo "$as_me:$LINENO: checking $ac_header presence" >&5
3046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3047cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h. */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h. */
3053#include <$ac_header>
3054_ACEOF
dae5f5cf
DJ
3055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
bec39cab
AC
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev/null; then
3063 if test -s conftest.err; then
3064 ac_cpp_err=$ac_c_preproc_warn_flag
3065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066 else
3067 ac_cpp_err=
3068 fi
3069else
3070 ac_cpp_err=yes
84563040 3071fi
bec39cab
AC
3072if test -z "$ac_cpp_err"; then
3073 ac_header_preproc=yes
3074else
3075 echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
84563040 3077
bec39cab 3078 ac_header_preproc=no
84563040 3079fi
bec39cab 3080rm -f conftest.err conftest.$ac_ext
dae5f5cf
DJ
3081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3082echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3083
3084# So? What about this header?
3085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3086 yes:no: )
3087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3091 ac_header_preproc=yes
3092 ;;
3093 no:yes:* )
3094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dae5f5cf
DJ
3106 (
3107 cat <<\_ASBOX
3108## ------------------------------------------ ##
3109## Report this to the AC_PACKAGE_NAME lists. ##
3110## ------------------------------------------ ##
3111_ASBOX
3112 ) |
3113 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3114 ;;
3115esac
dae5f5cf
DJ
3116echo "$as_me:$LINENO: checking for $ac_header" >&5
3117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3118if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121 eval "$as_ac_Header=\$ac_header_preproc"
84563040 3122fi
dae5f5cf
DJ
3123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
84563040
DJ
3125
3126fi
bec39cab
AC
3127if test `eval echo '${'$as_ac_Header'}'` = yes; then
3128 cat >>confdefs.h <<_ACEOF
3129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3130_ACEOF
84563040 3131
84563040 3132fi
bec39cab 3133
84563040
DJ
3134done
3135
3136
4e799345
DJ
3137
3138
3139for ac_func in pread pwrite pread64
fd462a61
DJ
3140do
3141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3142echo "$as_me:$LINENO: checking for $ac_func" >&5
3143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3144if eval "test \"\${$as_ac_var+set}\" = set"; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147 cat >conftest.$ac_ext <<_ACEOF
3148/* confdefs.h. */
3149_ACEOF
3150cat confdefs.h >>conftest.$ac_ext
3151cat >>conftest.$ac_ext <<_ACEOF
3152/* end confdefs.h. */
3153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3155#define $ac_func innocuous_$ac_func
3156
3157/* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char $ac_func (); below.
3159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3160 <limits.h> exists even on freestanding compilers. */
3161
3162#ifdef __STDC__
3163# include <limits.h>
3164#else
3165# include <assert.h>
3166#endif
3167
3168#undef $ac_func
3169
3170/* Override any gcc2 internal prototype to avoid an error. */
3171#ifdef __cplusplus
3172extern "C"
3173{
3174#endif
3175/* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3177char $ac_func ();
3178/* The GNU C library defines this for functions which it implements
3179 to always fail with ENOSYS. Some functions are actually named
3180 something starting with __ and the normal name is an alias. */
3181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3182choke me
3183#else
3184char (*f) () = $ac_func;
3185#endif
3186#ifdef __cplusplus
3187}
3188#endif
3189
3190int
3191main ()
3192{
3193return f != $ac_func;
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext conftest$ac_exeext
3199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200 (eval $ac_link) 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest$ac_exeext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 eval "$as_ac_var=yes"
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225eval "$as_ac_var=no"
3226fi
3227rm -f conftest.err conftest.$ac_objext \
3228 conftest$ac_exeext conftest.$ac_ext
3229fi
3230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3232if test `eval echo '${'$as_ac_var'}'` = yes; then
3233 cat >>confdefs.h <<_ACEOF
3234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3235_ACEOF
3236
3237fi
3238done
3239
3240
e28b3332
DJ
3241for ac_func in memmem
3242do
3243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3244echo "$as_me:$LINENO: checking for $ac_func" >&5
3245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3246if eval "test \"\${$as_ac_var+set}\" = set"; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
3255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3257#define $ac_func innocuous_$ac_func
3258
3259/* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func (); below.
3261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 <limits.h> exists even on freestanding compilers. */
3263
3264#ifdef __STDC__
3265# include <limits.h>
3266#else
3267# include <assert.h>
3268#endif
3269
3270#undef $ac_func
3271
3272/* Override any gcc2 internal prototype to avoid an error. */
3273#ifdef __cplusplus
3274extern "C"
3275{
3276#endif
3277/* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3279char $ac_func ();
3280/* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3284choke me
3285#else
3286char (*f) () = $ac_func;
3287#endif
3288#ifdef __cplusplus
3289}
3290#endif
3291
3292int
3293main ()
3294{
3295return f != $ac_func;
3296 ;
3297 return 0;
3298}
3299_ACEOF
3300rm -f conftest.$ac_objext conftest$ac_exeext
3301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try='test -s conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 eval "$as_ac_var=yes"
3323else
3324 echo "$as_me: failed program was:" >&5
3325sed 's/^/| /' conftest.$ac_ext >&5
3326
3327eval "$as_ac_var=no"
3328fi
3329rm -f conftest.err conftest.$ac_objext \
3330 conftest$ac_exeext conftest.$ac_ext
3331fi
3332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3334if test `eval echo '${'$as_ac_var'}'` = yes; then
3335 cat >>confdefs.h <<_ACEOF
3336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3337_ACEOF
3338
3339else
3340 case $LIBOBJS in
3341 "$ac_func.$ac_objext" | \
3342 *" $ac_func.$ac_objext" | \
3343 "$ac_func.$ac_objext "* | \
3344 *" $ac_func.$ac_objext "* ) ;;
3345 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
3346esac
3347
3348fi
3349done
3350
3351
3352
68070c10
PA
3353have_errno=no
3354echo "$as_me:$LINENO: checking for errno" >&5
3355echo $ECHO_N "checking for errno... $ECHO_C" >&6
3356cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362
3363#if HAVE_ERRNO_H
3364#include <errno.h>
3365#endif
3366int
3367main ()
3368{
3369static int x; x = errno;
3370 ;
3371 return 0;
3372}
3373_ACEOF
3374rm -f conftest.$ac_objext conftest$ac_exeext
3375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376 (eval $ac_link) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try='test -s conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3397echo "${ECHO_T}yes - in errno.h" >&6;
3398cat >>confdefs.h <<\_ACEOF
3399#define HAVE_ERRNO 1
3400_ACEOF
3401 have_errno=yes
3402else
3403 echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406fi
3407rm -f conftest.err conftest.$ac_objext \
3408 conftest$ac_exeext conftest.$ac_ext
3409if test $have_errno = no; then
3410cat >conftest.$ac_ext <<_ACEOF
3411/* confdefs.h. */
3412_ACEOF
3413cat confdefs.h >>conftest.$ac_ext
3414cat >>conftest.$ac_ext <<_ACEOF
3415/* end confdefs.h. */
3416
3417#if HAVE_ERRNO_H
3418#include <errno.h>
3419#endif
3420int
3421main ()
3422{
3423extern int errno; static int x; x = errno;
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext conftest$ac_exeext
3429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430 (eval $ac_link) 2>conftest.er1
3431 ac_status=$?
3432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 echo "$as_me:$LINENO: result: yes - must define" >&5
3451echo "${ECHO_T}yes - must define" >&6;
3452cat >>confdefs.h <<\_ACEOF
3453#define HAVE_ERRNO 1
3454_ACEOF
3455
3456cat >>confdefs.h <<\_ACEOF
3457#define MUST_DEFINE_ERRNO 1
3458_ACEOF
3459
3460else
3461 echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464echo "$as_me:$LINENO: result: no" >&5
3465echo "${ECHO_T}no" >&6
3466fi
3467rm -f conftest.err conftest.$ac_objext \
3468 conftest$ac_exeext conftest.$ac_ext
3469fi
3470
dae5f5cf
DJ
3471echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3472echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
e122f1f5 3473if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab 3474 echo $ECHO_N "(cached) $ECHO_C" >&6
43d5792c 3475else
bec39cab
AC
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
e122f1f5 3482$ac_includes_default
bec39cab
AC
3483int
3484main ()
3485{
e122f1f5
SE
3486#ifndef strerror
3487 char *p = (char *) strerror;
3488#endif
3489
bec39cab
AC
3490 ;
3491 return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
dae5f5cf
DJ
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
dae5f5cf
DJ
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
bec39cab
AC
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
bec39cab
AC
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
e122f1f5 3516 ac_cv_have_decl_strerror=yes
43d5792c 3517else
bec39cab
AC
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
dae5f5cf 3521ac_cv_have_decl_strerror=no
43d5792c 3522fi
dae5f5cf 3523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43d5792c 3524fi
dae5f5cf
DJ
3525echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3526echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
e122f1f5 3527if test $ac_cv_have_decl_strerror = yes; then
43d5792c 3528
e122f1f5
SE
3529cat >>confdefs.h <<_ACEOF
3530#define HAVE_DECL_STRERROR 1
3531_ACEOF
bec39cab 3532
e122f1f5
SE
3533
3534else
3535 cat >>confdefs.h <<_ACEOF
3536#define HAVE_DECL_STRERROR 0
bec39cab 3537_ACEOF
43d5792c 3538
e122f1f5 3539
68070c10
PA
3540fi
3541echo "$as_me:$LINENO: checking whether perror is declared" >&5
3542echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3543if test "${ac_cv_have_decl_perror+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552$ac_includes_default
3553int
3554main ()
3555{
3556#ifndef perror
3557 char *p = (char *) perror;
3558#endif
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564rm -f conftest.$ac_objext
3565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582 (eval $ac_try) 2>&5
3583 ac_status=$?
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_have_decl_perror=yes
3587else
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591ac_cv_have_decl_perror=no
3592fi
3593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594fi
3595echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3596echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3597if test $ac_cv_have_decl_perror = yes; then
3598
3599cat >>confdefs.h <<_ACEOF
3600#define HAVE_DECL_PERROR 1
3601_ACEOF
3602
3603
3604else
3605 cat >>confdefs.h <<_ACEOF
3606#define HAVE_DECL_PERROR 0
3607_ACEOF
3608
3609
ec56be1b
PA
3610fi
3611echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3612echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3613if test "${ac_cv_have_decl_memmem+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615else
3616 cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h. */
3622$ac_includes_default
3623int
3624main ()
3625{
3626#ifndef memmem
3627 char *p = (char *) memmem;
3628#endif
3629
3630 ;
3631 return 0;
3632}
3633_ACEOF
3634rm -f conftest.$ac_objext
3635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>conftest.er1
3637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try='test -z "$ac_c_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 (eval $ac_try) 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_have_decl_memmem=yes
3657else
3658 echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661ac_cv_have_decl_memmem=no
3662fi
3663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3664fi
3665echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3666echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3667if test $ac_cv_have_decl_memmem = yes; then
3668
3669cat >>confdefs.h <<_ACEOF
3670#define HAVE_DECL_MEMMEM 1
3671_ACEOF
3672
3673
3674else
3675 cat >>confdefs.h <<_ACEOF
3676#define HAVE_DECL_MEMMEM 0
3677_ACEOF
3678
3679
43d5792c
DJ
3680fi
3681
3682
e122f1f5 3683
dae5f5cf
DJ
3684echo "$as_me:$LINENO: checking for socklen_t" >&5
3685echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
f450004a
DJ
3686if test "${ac_cv_type_socklen_t+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 cat >conftest.$ac_ext <<_ACEOF
3690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h. */
ccbd4912 3695#include <sys/types.h>
f450004a
DJ
3696#include <sys/socket.h>
3697
ccbd4912 3698
f450004a
DJ
3699int
3700main ()
3701{
dae5f5cf 3702if ((socklen_t *) 0)
f450004a 3703 return 0;
dae5f5cf 3704if (sizeof (socklen_t))
f450004a
DJ
3705 return 0;
3706 ;
3707 return 0;
3708}
3709_ACEOF
3710rm -f conftest.$ac_objext
dae5f5cf
DJ
3711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
f450004a
DJ
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
dae5f5cf
DJ
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
f450004a
DJ
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
f450004a
DJ
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_type_socklen_t=yes
3733else
3734 echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
dae5f5cf 3737ac_cv_type_socklen_t=no
f450004a 3738fi
dae5f5cf 3739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f450004a 3740fi
dae5f5cf
DJ
3741echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3742echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
f450004a
DJ
3743if test $ac_cv_type_socklen_t = yes; then
3744
ccbd4912 3745cat >>confdefs.h <<_ACEOF
f450004a
DJ
3746#define HAVE_SOCKLEN_T 1
3747_ACEOF
3748
f450004a 3749
ccbd4912 3750fi
f450004a 3751
fb1e4ffc 3752
c16158bc
JM
3753
3754
3755# Check whether --with-pkgversion or --without-pkgversion was given.
3756if test "${with_pkgversion+set}" = set; then
3757 withval="$with_pkgversion"
3758 case "$withval" in
3759 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3760echo "$as_me: error: package version not specified" >&2;}
3761 { (exit 1); exit 1; }; } ;;
3762 no) PKGVERSION= ;;
3763 *) PKGVERSION="($withval) " ;;
3764 esac
3765else
3766 PKGVERSION="(GDB) "
3767
3768fi;
3769
3770
3771
3772
3773# Check whether --with-bugurl or --without-bugurl was given.
3774if test "${with_bugurl+set}" = set; then
3775 withval="$with_bugurl"
3776 case "$withval" in
3777 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3778echo "$as_me: error: bug URL not specified" >&2;}
3779 { (exit 1); exit 1; }; } ;;
3780 no) BUGURL=
3781 ;;
3782 *) BUGURL="$withval"
3783 ;;
3784 esac
3785else
3786 BUGURL="http://www.gnu.org/software/gdb/bugs/"
3787
3788fi;
3789 case ${BUGURL} in
3790 "")
3791 REPORT_BUGS_TO=
3792 REPORT_BUGS_TEXI=
3793 ;;
3794 *)
3795 REPORT_BUGS_TO="<$BUGURL>"
3796 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3797 ;;
3798 esac;
3799
3800
3801
3802
3803cat >>confdefs.h <<_ACEOF
3804#define PKGVERSION "$PKGVERSION"
3805_ACEOF
3806
3807
3808cat >>confdefs.h <<_ACEOF
3809#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3810_ACEOF
3811
3812
7ea81414 3813. ${srcdir}/configure.srv
d6e9fb05 3814
68070c10
PA
3815if test "${srv_mingwce}" = "yes"; then
3816 LIBS="$LIBS -lws2"
3817elif test "${srv_mingw}" = "yes"; then
b80864fb 3818 LIBS="$LIBS -lwsock32"
ac8c974e
AR
3819elif test "${srv_qnx}" = "yes"; then
3820 LIBS="$LIBS -lsocket"
68070c10
PA
3821fi
3822
3823if test "${srv_mingw}" = "yes"; then
b80864fb
DJ
3824
3825cat >>confdefs.h <<\_ACEOF
3826#define USE_WIN32API 1
3827_ACEOF
3828
3829fi
3830
58caa3dc 3831if test "${srv_linux_usrregs}" = "yes"; then
f450004a
DJ
3832
3833cat >>confdefs.h <<\_ACEOF
58caa3dc 3834#define HAVE_LINUX_USRREGS 1
bec39cab 3835_ACEOF
58caa3dc
DJ
3836
3837fi
3838
3839if test "${srv_linux_regsets}" = "yes"; then
e9d25b98
DJ
3840
3841cat >>confdefs.h <<\_ACEOF
3842#define HAVE_LINUX_REGSETS 1
3843_ACEOF
3844
3845
dae5f5cf
DJ
3846 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3847echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
bec39cab
AC
3848 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
3851 cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h. */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h. */
58caa3dc 3857#include <sys/ptrace.h>
bec39cab
AC
3858int
3859main ()
3860{
58caa3dc 3861PTRACE_GETREGS;
bec39cab
AC
3862 ;
3863 return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext
dae5f5cf
DJ
3867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
dae5f5cf
DJ
3875 { ac_try='test -z "$ac_c_werror_flag"
3876 || test ! -s conftest.err'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 (eval $ac_try) 2>&5
bec39cab
AC
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; } &&
3882 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 (eval $ac_try) 2>&5
bec39cab
AC
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
58caa3dc
DJ
3888 gdbsrv_cv_have_ptrace_getregs=yes
3889else
bec39cab
AC
3890 echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
dae5f5cf 3893gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 3894fi
dae5f5cf 3895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3896fi
3897
dae5f5cf
DJ
3898 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3899echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
58caa3dc 3900 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a
DJ
3901
3902cat >>confdefs.h <<\_ACEOF
e9d25b98 3903#define HAVE_PTRACE_GETREGS 1
bec39cab 3904_ACEOF
58caa3dc
DJ
3905
3906 fi
3907
dae5f5cf
DJ
3908 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3909echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
bec39cab
AC
3910 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
58caa3dc 3912else
bec39cab
AC
3913 cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h. */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h. */
58caa3dc 3919#include <sys/ptrace.h>
bec39cab
AC
3920int
3921main ()
3922{
58caa3dc 3923PTRACE_GETFPXREGS;
bec39cab
AC
3924 ;
3925 return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext
dae5f5cf
DJ
3929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
dae5f5cf
DJ
3937 { ac_try='test -z "$ac_c_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
bec39cab
AC
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 (eval $ac_try) 2>&5
bec39cab
AC
3947 ac_status=$?
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
58caa3dc
DJ
3950 gdbsrv_cv_have_ptrace_getfpxregs=yes
3951else
bec39cab
AC
3952 echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
dae5f5cf 3955gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 3956fi
dae5f5cf 3957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3958fi
3959
dae5f5cf
DJ
3960 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3961echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
58caa3dc 3962 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a
DJ
3963
3964cat >>confdefs.h <<\_ACEOF
58caa3dc 3965#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 3966_ACEOF
58caa3dc
DJ
3967
3968 fi
3969fi
3970
0d62e5e8 3971if test "$ac_cv_header_sys_procfs_h" = yes; then
dae5f5cf
DJ
3972 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3973echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
3974 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3976else
bec39cab
AC
3977 cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h. */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h. */
0d62e5e8
DJ
3983
3984#define _SYSCALL32
3985#include <sys/procfs.h>
bec39cab
AC
3986int
3987main ()
3988{
0d62e5e8 3989lwpid_t avar
bec39cab
AC
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994rm -f conftest.$ac_objext
dae5f5cf
DJ
3995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
dae5f5cf
DJ
4003 { ac_try='test -z "$ac_c_werror_flag"
4004 || test ! -s conftest.err'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 (eval $ac_try) 2>&5
bec39cab
AC
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 (eval $ac_try) 2>&5
bec39cab
AC
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
0d62e5e8
DJ
4016 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4017else
bec39cab
AC
4018 echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
dae5f5cf 4021bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 4022
0d62e5e8 4023fi
dae5f5cf 4024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4025fi
4026
4027 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
4028
4029cat >>confdefs.h <<\_ACEOF
0d62e5e8 4030#define HAVE_LWPID_T 1
bec39cab 4031_ACEOF
0d62e5e8
DJ
4032
4033 fi
dae5f5cf
DJ
4034 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4035echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
0d62e5e8 4036
dae5f5cf
DJ
4037 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
4038echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
4039 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 4041else
bec39cab
AC
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
0d62e5e8
DJ
4048
4049#define _SYSCALL32
4050#include <sys/procfs.h>
bec39cab
AC
4051int
4052main ()
4053{
0d62e5e8 4054psaddr_t avar
bec39cab
AC
4055 ;
4056 return 0;
4057}
4058_ACEOF
4059rm -f conftest.$ac_objext
dae5f5cf
DJ
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
dae5f5cf
DJ
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
bec39cab
AC
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
bec39cab
AC
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
0d62e5e8
DJ
4081 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4082else
bec39cab
AC
4083 echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
dae5f5cf 4086bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 4087
0d62e5e8 4088fi
dae5f5cf 4089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4090fi
4091
4092 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
4093
4094cat >>confdefs.h <<\_ACEOF
0d62e5e8 4095#define HAVE_PSADDR_T 1
bec39cab 4096_ACEOF
0d62e5e8
DJ
4097
4098 fi
dae5f5cf
DJ
4099 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4100echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
0d62e5e8 4101
dae5f5cf
DJ
4102 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
4103echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
4104 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 4106else
bec39cab
AC
4107 cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
0d62e5e8
DJ
4113
4114#define _SYSCALL32
4115#include <sys/procfs.h>
bec39cab
AC
4116int
4117main ()
4118{
0d62e5e8 4119prgregset_t avar
bec39cab
AC
4120 ;
4121 return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext
dae5f5cf
DJ
4125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
dae5f5cf
DJ
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
bec39cab
AC
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
bec39cab
AC
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
0d62e5e8
DJ
4146 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4147else
bec39cab
AC
4148 echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
4150
dae5f5cf 4151bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 4152
0d62e5e8 4153fi
dae5f5cf 4154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4155fi
4156
4157 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
4158
4159cat >>confdefs.h <<\_ACEOF
0d62e5e8 4160#define HAVE_PRGREGSET_T 1
bec39cab 4161_ACEOF
0d62e5e8
DJ
4162
4163 fi
dae5f5cf
DJ
4164 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4165echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
0d62e5e8 4166
dae5f5cf
DJ
4167 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4168echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
4169 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 4171else
bec39cab
AC
4172 cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
0d62e5e8
DJ
4178
4179#define _SYSCALL32
4180#include <sys/procfs.h>
bec39cab
AC
4181int
4182main ()
4183{
0d62e5e8 4184elf_fpregset_t avar
bec39cab
AC
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189rm -f conftest.$ac_objext
dae5f5cf
DJ
4190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
dae5f5cf
DJ
4198 { ac_try='test -z "$ac_c_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
bec39cab
AC
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
bec39cab
AC
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
0d62e5e8
DJ
4211 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4212else
bec39cab
AC
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
dae5f5cf 4216bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 4217
0d62e5e8 4218fi
dae5f5cf 4219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4220fi
4221
4222 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab
AC
4223
4224cat >>confdefs.h <<\_ACEOF
0d62e5e8 4225#define HAVE_ELF_FPREGSET_T 1
bec39cab 4226_ACEOF
0d62e5e8
DJ
4227
4228 fi
dae5f5cf
DJ
4229 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4230echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
0d62e5e8
DJ
4231
4232fi
4233
4234srv_thread_depfiles=
4235srv_libs=
4236USE_THREAD_DB=
4237
4238if test "$srv_linux_thread_db" = "yes"; then
dae5f5cf
DJ
4239 echo "$as_me:$LINENO: checking for libthread_db" >&5
4240echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
bec39cab
AC
4241if test "${srv_cv_thread_db+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8
DJ
4243else
4244 old_LIBS="$LIBS"
4245 LIBS="$LIBS -lthread_db"
bec39cab
AC
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
0d62e5e8
DJ
4252void ps_pglobal_lookup() {}
4253 void ps_pdread() {}
4254 void ps_pdwrite() {}
4255 void ps_lgetregs() {}
4256 void ps_lsetregs() {}
4257 void ps_lgetfpregs() {}
4258 void ps_lsetfpregs() {}
434c4c77 4259 void ps_get_thread_area() {}
0d62e5e8 4260 void ps_getpid() {}
bec39cab
AC
4261int
4262main ()
4263{
0d62e5e8 4264td_ta_new();
bec39cab
AC
4265 ;
4266 return 0;
4267}
4268_ACEOF
4269rm -f conftest.$ac_objext conftest$ac_exeext
dae5f5cf
DJ
4270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>conftest.er1
bec39cab
AC
4272 ac_status=$?
4273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } &&
dae5f5cf
DJ
4278 { ac_try='test -z "$ac_c_werror_flag"
4279 || test ! -s conftest.err'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
bec39cab
AC
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest$ac_exeext'
dae5f5cf
DJ
4286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
bec39cab
AC
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
0d62e5e8
DJ
4291 srv_cv_thread_db="-lthread_db"
4292else
bec39cab
AC
4293 echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
dae5f5cf 4296srv_cv_thread_db=no
0d62e5e8
DJ
4297
4298 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
4299 thread_db="/lib/libthread_db.so.1"
4300 else
4301 thread_db='$prefix/lib/libthread_db.so.1'
4302 fi
4303 LIBS="$old_LIBS `eval echo "$thread_db"`"
bec39cab
AC
4304 cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
0d62e5e8
DJ
4310void ps_pglobal_lookup() {}
4311 void ps_pdread() {}
4312 void ps_pdwrite() {}
4313 void ps_lgetregs() {}
4314 void ps_lsetregs() {}
4315 void ps_lgetfpregs() {}
4316 void ps_lsetfpregs() {}
434c4c77 4317 void ps_get_thread_area() {}
0d62e5e8 4318 void ps_getpid() {}
bec39cab
AC
4319int
4320main ()
4321{
0d62e5e8 4322td_ta_new();
bec39cab
AC
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest.$ac_objext conftest$ac_exeext
dae5f5cf
DJ
4328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>conftest.er1
bec39cab
AC
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
dae5f5cf
DJ
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
bec39cab
AC
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest$ac_exeext'
dae5f5cf
DJ
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
bec39cab
AC
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
0d62e5e8
DJ
4349 srv_cv_thread_db="$thread_db"
4350else
bec39cab
AC
4351 echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
dae5f5cf 4354srv_cv_thread_db=no
0d62e5e8 4355fi
dae5f5cf 4356rm -f conftest.err conftest.$ac_objext \
bec39cab 4357 conftest$ac_exeext conftest.$ac_ext
0d62e5e8 4358
bec39cab 4359fi
dae5f5cf 4360rm -f conftest.err conftest.$ac_objext \
3db0444b 4361 conftest$ac_exeext conftest.$ac_ext
434c4c77 4362 LIBS="$old_LIBS"
0d62e5e8
DJ
4363
4364fi
dae5f5cf
DJ
4365echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4366echo "${ECHO_T}$srv_cv_thread_db" >&6
0d62e5e8 4367 if test "$srv_cv_thread_db" = no; then
bec39cab
AC
4368 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4369echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4370 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4371echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
0d62e5e8
DJ
4372 srv_linux_thread_db=no
4373 else
4374 srv_libs="$srv_cv_thread_db"
dae5f5cf
DJ
4375 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4376echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4377if test "${srv_cv_tls_get_addr+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 old_LIBS="$LIBS"
4381 LIBS="$LIBS $srv_cv_thread_db"
4382 cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388void ps_pglobal_lookup() {}
4389 void ps_pdread() {}
4390 void ps_pdwrite() {}
4391 void ps_lgetregs() {}
4392 void ps_lsetregs() {}
4393 void ps_lgetfpregs() {}
4394 void ps_lsetfpregs() {}
4395 void ps_get_thread_area() {}
4396 void ps_getpid() {}
4397int
4398main ()
4399{
4400td_thr_tls_get_addr();
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405rm -f conftest.$ac_objext conftest$ac_exeext
4406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4407 (eval $ac_link) 2>conftest.er1
4408 ac_status=$?
4409 grep -v '^ *+' conftest.er1 >conftest.err
4410 rm -f conftest.er1
4411 cat conftest.err >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } &&
4414 { ac_try='test -z "$ac_c_werror_flag"
4415 || test ! -s conftest.err'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; } &&
4421 { ac_try='test -s conftest$ac_exeext'
4422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 (eval $ac_try) 2>&5
4424 ac_status=$?
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 srv_cv_tls_get_addr=yes
4428else
4429 echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432srv_cv_tls_get_addr=no
4433fi
4434rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4436 LIBS="$old_LIBS"
4437
4438fi
4439echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4440echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
0d62e5e8 4441 fi
f6de3c42
DJ
4442 old_LDFLAGS="$LDFLAGS"
4443 LDFLAGS="$LDFLAGS -rdynamic"
bec39cab
AC
4444 cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
4450
4451int
4452main ()
4453{
4454
4455 ;
4456 return 0;
4457}
4458_ACEOF
4459rm -f conftest.$ac_objext conftest$ac_exeext
dae5f5cf
DJ
4460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>conftest.er1
bec39cab
AC
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
dae5f5cf
DJ
4468 { ac_try='test -z "$ac_c_werror_flag"
4469 || test ! -s conftest.err'
4470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 (eval $ac_try) 2>&5
bec39cab
AC
4472 ac_status=$?
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest$ac_exeext'
dae5f5cf
DJ
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
bec39cab
AC
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
f6de3c42
DJ
4481 RDYNAMIC=-rdynamic
4482else
bec39cab
AC
4483 echo "$as_me: failed program was:" >&5
4484sed 's/^/| /' conftest.$ac_ext >&5
4485
dae5f5cf 4486RDYNAMIC=
f6de3c42 4487fi
dae5f5cf 4488rm -f conftest.err conftest.$ac_objext \
bec39cab
AC
4489 conftest$ac_exeext conftest.$ac_ext
4490
f6de3c42 4491 LDFLAGS="$old_LDFLAGS"
0d62e5e8
DJ
4492fi
4493
4494if test "$srv_linux_thread_db" = "yes"; then
4495 srv_thread_depfiles="thread-db.o proc-service.o"
4496 USE_THREAD_DB="-DUSE_THREAD_DB"
dae5f5cf
DJ
4497 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4498echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
3db0444b
DJ
4499if test "${gdbsrv_cv_have_td_version+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501else
4502 cat >conftest.$ac_ext <<_ACEOF
4503/* confdefs.h. */
4504_ACEOF
4505cat confdefs.h >>conftest.$ac_ext
4506cat >>conftest.$ac_ext <<_ACEOF
4507/* end confdefs.h. */
4508#include <thread_db.h>
4509int
4510main ()
4511{
4512TD_VERSION;
4513 ;
4514 return 0;
4515}
4516_ACEOF
4517rm -f conftest.$ac_objext
dae5f5cf
DJ
4518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>conftest.er1
3db0444b
DJ
4520 ac_status=$?
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
dae5f5cf
DJ
4526 { ac_try='test -z "$ac_c_werror_flag"
4527 || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
3db0444b
DJ
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
3db0444b
DJ
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 gdbsrv_cv_have_td_version=yes
4540else
4541 echo "$as_me: failed program was:" >&5
4542sed 's/^/| /' conftest.$ac_ext >&5
4543
dae5f5cf 4544gdbsrv_cv_have_td_version=no
3db0444b 4545fi
dae5f5cf 4546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3db0444b 4547fi
dae5f5cf
DJ
4548echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4549echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
3db0444b
DJ
4550 if test $gdbsrv_cv_have_td_version = yes; then
4551
4552cat >>confdefs.h <<\_ACEOF
4553#define HAVE_TD_VERSION 1
dae5f5cf
DJ
4554_ACEOF
4555
4556 fi
4557
cb7283db 4558 if test "$srv_cv_tls_get_addr" = yes; then
dae5f5cf
DJ
4559
4560cat >>confdefs.h <<\_ACEOF
4561#define HAVE_TD_THR_TLS_GET_ADDR 1
3db0444b
DJ
4562_ACEOF
4563
4564 fi
0d62e5e8
DJ
4565fi
4566
9b4b61c8 4567if test "$srv_xmlfiles" != ""; then
fb1e4ffc
DJ
4568 srv_xmlbuiltin="xml-builtin.o"
4569
4570cat >>confdefs.h <<\_ACEOF
4571#define USE_XML 1
4572_ACEOF
4573
4574
4575 tmp_xmlfiles=$srv_xmlfiles
9b4b61c8 4576 srv_xmlfiles=""
fb1e4ffc
DJ
4577 for f in $tmp_xmlfiles; do
4578 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4579 done
4580fi
4581
59a016f0 4582GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
0d62e5e8
DJ
4583GDBSERVER_LIBS="$srv_libs"
4584
4585
d6e9fb05
JK
4586
4587
4588
fb1e4ffc
DJ
4589
4590
dae5f5cf
DJ
4591 ac_config_files="$ac_config_files Makefile"
4592 ac_config_commands="$ac_config_commands default"
bec39cab 4593cat >confcache <<\_ACEOF
d6e9fb05
JK
4594# This file is a shell script that caches the results of configure
4595# tests run on this system so they can be shared between configure
bec39cab
AC
4596# scripts and configure runs, see configure's option --config-cache.
4597# It is not useful on other systems. If it contains results you don't
4598# want to keep, you may remove or edit it.
d6e9fb05 4599#
bec39cab
AC
4600# config.status only pays attention to the cache file if you give it
4601# the --recheck option to rerun configure.
d6e9fb05 4602#
bec39cab
AC
4603# `ac_cv_env_foo' variables (set or unset) will be overridden when
4604# loading this file, other *unset* `ac_cv_foo' will be assigned the
4605# following values.
4606
4607_ACEOF
4608
d6e9fb05
JK
4609# The following way of writing the cache mishandles newlines in values,
4610# but we know of no workaround that is simple, portable, and efficient.
dae5f5cf 4611# So, don't put newlines in cache variables' values.
d6e9fb05
JK
4612# Ultrix sh set writes to stderr and can't be redirected directly,
4613# and sets the high bit in the cache file unless we assign to the vars.
dae5f5cf 4614{
bec39cab 4615 (set) 2>&1 |
dae5f5cf
DJ
4616 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4617 *ac_space=\ *)
bec39cab
AC
4618 # `set' does not quote correctly, so add quotes (double-quote
4619 # substitution turns \\\\ into \\, and sed turns \\ into \).
4620 sed -n \
4621 "s/'/'\\\\''/g;
4622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dae5f5cf 4623 ;;
bec39cab
AC
4624 *)
4625 # `set' quotes correctly as required by POSIX, so do not add quotes.
dae5f5cf
DJ
4626 sed -n \
4627 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 4628 ;;
dae5f5cf
DJ
4629 esac;
4630} |
bec39cab
AC
4631 sed '
4632 t clear
dae5f5cf 4633 : clear
bec39cab
AC
4634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4635 t end
dae5f5cf
DJ
4636 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4637 : end' >>confcache
4638if diff $cache_file confcache >/dev/null 2>&1; then :; else
4639 if test -w $cache_file; then
4640 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab 4641 cat confcache >$cache_file
d6e9fb05 4642 else
dae5f5cf 4643 echo "not updating unwritable cache $cache_file"
d6e9fb05
JK
4644 fi
4645fi
4646rm -f confcache
4647
d6e9fb05
JK
4648test "x$prefix" = xNONE && prefix=$ac_default_prefix
4649# Let make expand exec_prefix.
4650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4651
dae5f5cf
DJ
4652# VPATH may cause trouble with some makes, so we remove $(srcdir),
4653# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4654# trailing colons and then remove the whole line if VPATH becomes empty
4655# (actually we leave an empty line to preserve line numbers).
4656if test "x$srcdir" = x.; then
4657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4658s/:*\$(srcdir):*/:/;
4659s/:*\${srcdir}:*/:/;
4660s/:*@srcdir@:*/:/;
4661s/^\([^=]*=[ ]*\):*/\1/;
4662s/:*$//;
4663s/^[^=]*=[ ]*$//;
4664}'
4665fi
4666
84563040 4667DEFS=-DHAVE_CONFIG_H
d6e9fb05 4668
bec39cab
AC
4669ac_libobjs=
4670ac_ltlibobjs=
4671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4672 # 1. Remove the extension, and $U if already installed.
dae5f5cf
DJ
4673 ac_i=`echo "$ac_i" |
4674 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4675 # 2. Add them.
4676 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4677 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
4678done
4679LIBOBJS=$ac_libobjs
d6e9fb05 4680
bec39cab
AC
4681LTLIBOBJS=$ac_ltlibobjs
4682
4683
4684
4685: ${CONFIG_STATUS=./config.status}
4686ac_clean_files_save=$ac_clean_files
4687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4688{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4689echo "$as_me: creating $CONFIG_STATUS" >&6;}
4690cat >$CONFIG_STATUS <<_ACEOF
4691#! $SHELL
4692# Generated by $as_me.
d6e9fb05 4693# Run this file to recreate the current configuration.
d6e9fb05 4694# Compiler output produced by configure, useful for debugging
bec39cab
AC
4695# configure, is in config.log if it exists.
4696
4697debug=false
4698ac_cs_recheck=false
4699ac_cs_silent=false
4700SHELL=\${CONFIG_SHELL-$SHELL}
4701_ACEOF
4702
4703cat >>$CONFIG_STATUS <<\_ACEOF
4704## --------------------- ##
4705## M4sh Initialization. ##
4706## --------------------- ##
4707
4708# Be Bourne compatible
4709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4710 emulate sh
4711 NULLCMD=:
4712 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4713 # is contrary to our usage. Disable this feature.
4714 alias -g '${1+"$@"}'='"$@"'
dae5f5cf
DJ
4715elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4716 set -o posix
bec39cab
AC
4717fi
4718DUALCASE=1; export DUALCASE # for MKS sh
d6e9fb05 4719
bec39cab
AC
4720# Support unset when possible.
4721if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4722 as_unset=unset
4723else
4724 as_unset=false
4725fi
4726
4727
b80864fb 4728# Work around bugs in pre-3.0 UWIN ksh.
dae5f5cf 4729$as_unset ENV MAIL MAILPATH
bec39cab
AC
4730PS1='$ '
4731PS2='> '
4732PS4='+ '
4733
4734# NLS nuisances.
4735for as_var in \
4736 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4737 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4738 LC_TELEPHONE LC_TIME
d6e9fb05 4739do
bec39cab
AC
4740 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4741 eval $as_var=C; export $as_var
4742 else
dae5f5cf 4743 $as_unset $as_var
bec39cab 4744 fi
d6e9fb05
JK
4745done
4746
bec39cab 4747# Required to use basename.
dae5f5cf 4748if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
4749 as_expr=expr
4750else
4751 as_expr=false
4752fi
d6e9fb05 4753
dae5f5cf 4754if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
4755 as_basename=basename
4756else
4757 as_basename=false
4758fi
d6e9fb05 4759
d6e9fb05 4760
bec39cab 4761# Name of the executable.
dae5f5cf 4762as_me=`$as_basename "$0" ||
bec39cab
AC
4763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4764 X"$0" : 'X\(//\)$' \| \
dae5f5cf
DJ
4765 X"$0" : 'X\(/\)$' \| \
4766 . : '\(.\)' 2>/dev/null ||
bec39cab 4767echo X/"$0" |
dae5f5cf
DJ
4768 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4769 /^X\/\(\/\/\)$/{ s//\1/; q; }
4770 /^X\/\(\/\).*/{ s//\1/; q; }
4771 s/.*/./; q'`
bec39cab 4772
bec39cab 4773
dae5f5cf
DJ
4774# PATH needs CR, and LINENO needs CR and PATH.
4775# Avoid depending upon Character Ranges.
4776as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4777as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4778as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4779as_cr_digits='0123456789'
4780as_cr_alnum=$as_cr_Letters$as_cr_digits
4781
4782# The user is always right.
4783if test "${PATH_SEPARATOR+set}" != set; then
4784 echo "#! /bin/sh" >conf$$.sh
4785 echo "exit 0" >>conf$$.sh
4786 chmod +x conf$$.sh
4787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4788 PATH_SEPARATOR=';'
4789 else
4790 PATH_SEPARATOR=:
4791 fi
4792 rm -f conf$$.sh
4793fi
bec39cab
AC
4794
4795
4796 as_lineno_1=$LINENO
4797 as_lineno_2=$LINENO
dae5f5cf
DJ
4798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4799 test "x$as_lineno_1" != "x$as_lineno_2" &&
4800 test "x$as_lineno_3" = "x$as_lineno_2" || {
4801 # Find who we are. Look in the path if we contain no path at all
4802 # relative or not.
4803 case $0 in
4804 *[\\/]* ) as_myself=$0 ;;
4805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806for as_dir in $PATH
4807do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4811done
4812
4813 ;;
4814 esac
4815 # We did not find ourselves, most probably we were run as `sh COMMAND'
4816 # in which case we are not to be found in the path.
4817 if test "x$as_myself" = x; then
4818 as_myself=$0
4819 fi
4820 if test ! -f "$as_myself"; then
4821 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4822echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4823 { (exit 1); exit 1; }; }
4824 fi
4825 case $CONFIG_SHELL in
4826 '')
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for as_base in sh bash ksh sh5; do
4833 case $as_dir in
4834 /*)
4835 if ("$as_dir/$as_base" -c '
4836 as_lineno_1=$LINENO
4837 as_lineno_2=$LINENO
4838 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 4839 test "x$as_lineno_1" != "x$as_lineno_2" &&
dae5f5cf
DJ
4840 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4841 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4842 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4843 CONFIG_SHELL=$as_dir/$as_base
4844 export CONFIG_SHELL
4845 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4846 fi;;
4847 esac
4848 done
4849done
4850;;
4851 esac
bec39cab
AC
4852
4853 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4854 # uniformly replaced by the line number. The first 'sed' inserts a
dae5f5cf
DJ
4855 # line-number line before each line; the second 'sed' does the real
4856 # work. The second script uses 'N' to pair each line-number line
4857 # with the numbered line, and appends trailing '-' during
4858 # substitution so that $LINENO is not a special case at line end.
bec39cab 4859 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dae5f5cf
DJ
4860 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4861 sed '=' <$as_myself |
bec39cab
AC
4862 sed '
4863 N
dae5f5cf
DJ
4864 s,$,-,
4865 : loop
4866 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 4867 t loop
dae5f5cf
DJ
4868 s,-$,,
4869 s,^['$as_cr_digits']*\n,,
bec39cab 4870 ' >$as_me.lineno &&
dae5f5cf
DJ
4871 chmod +x $as_me.lineno ||
4872 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4873echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
4874 { (exit 1); exit 1; }; }
4875
4876 # Don't try to exec as it changes $[0], causing all sort of problems
4877 # (the dirname of $[0] is not the place where we might find the
dae5f5cf
DJ
4878 # original and so on. Autoconf is especially sensible to this).
4879 . ./$as_me.lineno
bec39cab
AC
4880 # Exit status is that of the last command.
4881 exit
4882}
4883
4884
dae5f5cf
DJ
4885case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4886 *c*,-n*) ECHO_N= ECHO_C='
4887' ECHO_T=' ' ;;
4888 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4889 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
4890esac
4891
dae5f5cf 4892if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
4893 as_expr=expr
4894else
4895 as_expr=false
4896fi
4897
4898rm -f conf$$ conf$$.exe conf$$.file
4899echo >conf$$.file
4900if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf
DJ
4901 # We could just check for DJGPP; but this test a) works b) is more generic
4902 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4903 if test -f conf$$.exe; then
4904 # Don't use ln at all; we don't have any links
bec39cab 4905 as_ln_s='cp -p'
dae5f5cf
DJ
4906 else
4907 as_ln_s='ln -s'
4908 fi
bec39cab
AC
4909elif ln conf$$.file conf$$ 2>/dev/null; then
4910 as_ln_s=ln
4911else
4912 as_ln_s='cp -p'
4913fi
dae5f5cf 4914rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
4915
4916if mkdir -p . 2>/dev/null; then
4917 as_mkdir_p=:
4918else
4919 test -d ./-p && rmdir ./-p
4920 as_mkdir_p=false
4921fi
4922
dae5f5cf 4923as_executable_p="test -f"
bec39cab
AC
4924
4925# Sed expression to map a string onto a valid CPP name.
4926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4927
4928# Sed expression to map a string onto a valid variable name.
4929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4930
4931
dae5f5cf
DJ
4932# IFS
4933# We need space, tab and new line, in precisely that order.
4934as_nl='
4935'
4936IFS=" $as_nl"
4937
4938# CDPATH.
4939$as_unset CDPATH
4940
bec39cab
AC
4941exec 6>&1
4942
dae5f5cf 4943# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 4944# report actual input values of CONFIG_FILES etc. instead of their
dae5f5cf
DJ
4945# values after options handling. Logging --version etc. is OK.
4946exec 5>>config.log
4947{
4948 echo
4949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4950## Running $as_me. ##
4951_ASBOX
4952} >&5
4953cat >&5 <<_CSEOF
4954
bec39cab 4955This file was extended by $as_me, which was
dae5f5cf 4956generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
4957
4958 CONFIG_FILES = $CONFIG_FILES
4959 CONFIG_HEADERS = $CONFIG_HEADERS
4960 CONFIG_LINKS = $CONFIG_LINKS
4961 CONFIG_COMMANDS = $CONFIG_COMMANDS
4962 $ $0 $@
4963
dae5f5cf
DJ
4964_CSEOF
4965echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4966echo >&5
bec39cab
AC
4967_ACEOF
4968
4969# Files that config.status was made for.
dae5f5cf
DJ
4970if test -n "$ac_config_files"; then
4971 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4972fi
bec39cab 4973
dae5f5cf
DJ
4974if test -n "$ac_config_headers"; then
4975 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4976fi
4977
4978if test -n "$ac_config_links"; then
4979 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4980fi
4981
4982if test -n "$ac_config_commands"; then
4983 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4984fi
bec39cab
AC
4985
4986cat >>$CONFIG_STATUS <<\_ACEOF
dae5f5cf 4987
bec39cab
AC
4988ac_cs_usage="\
4989\`$as_me' instantiates files from templates according to the
4990current configuration.
4991
4992Usage: $0 [OPTIONS] [FILE]...
4993
4994 -h, --help print this help, then exit
4995 -V, --version print version number, then exit
4996 -q, --quiet do not print progress messages
4997 -d, --debug don't remove temporary files
4998 --recheck update $as_me by reconfiguring in the same conditions
4999 --file=FILE[:TEMPLATE]
5000 instantiate the configuration file FILE
5001 --header=FILE[:TEMPLATE]
5002 instantiate the configuration header FILE
5003
5004Configuration files:
5005$config_files
5006
5007Configuration headers:
5008$config_headers
5009
5010Configuration commands:
5011$config_commands
5012
5013Report bugs to <bug-autoconf@gnu.org>."
b80864fb 5014_ACEOF
dae5f5cf 5015
bec39cab
AC
5016cat >>$CONFIG_STATUS <<_ACEOF
5017ac_cs_version="\\
5018config.status
dae5f5cf
DJ
5019configured by $0, generated by GNU Autoconf 2.59,
5020 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 5021
dae5f5cf 5022Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
5023This config.status script is free software; the Free Software Foundation
5024gives unlimited permission to copy, distribute and modify it."
dae5f5cf
DJ
5025srcdir=$srcdir
5026INSTALL="$INSTALL"
bec39cab
AC
5027_ACEOF
5028
5029cat >>$CONFIG_STATUS <<\_ACEOF
5030# If no file are specified by the user, then we need to provide default
5031# value. By we need to know if files were specified by the user.
5032ac_need_defaults=:
5033while test $# != 0
5034do
5035 case $1 in
5036 --*=*)
dae5f5cf
DJ
5037 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5038 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab
AC
5039 ac_shift=:
5040 ;;
dae5f5cf 5041 -*)
bec39cab
AC
5042 ac_option=$1
5043 ac_optarg=$2
5044 ac_shift=shift
5045 ;;
dae5f5cf
DJ
5046 *) # This is not an option, so the user has probably given explicit
5047 # arguments.
5048 ac_option=$1
5049 ac_need_defaults=false;;
bec39cab
AC
5050 esac
5051
5052 case $ac_option in
5053 # Handling of the options.
dae5f5cf
DJ
5054_ACEOF
5055cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
5056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5057 ac_cs_recheck=: ;;
dae5f5cf
DJ
5058 --version | --vers* | -V )
5059 echo "$ac_cs_version"; exit 0 ;;
5060 --he | --h)
5061 # Conflict between --help and --header
5062 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5063Try \`$0 --help' for more information." >&5
5064echo "$as_me: error: ambiguous option: $1
5065Try \`$0 --help' for more information." >&2;}
5066 { (exit 1); exit 1; }; };;
5067 --help | --hel | -h )
5068 echo "$ac_cs_usage"; exit 0 ;;
5069 --debug | --d* | -d )
bec39cab
AC
5070 debug=: ;;
5071 --file | --fil | --fi | --f )
5072 $ac_shift
5073 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5074 ac_need_defaults=false;;
5075 --header | --heade | --head | --hea )
5076 $ac_shift
5077 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5078 ac_need_defaults=false;;
5079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5081 ac_cs_silent=: ;;
5082
5083 # This is an error.
dae5f5cf
DJ
5084 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5085Try \`$0 --help' for more information." >&5
5086echo "$as_me: error: unrecognized option: $1
5087Try \`$0 --help' for more information." >&2;}
bec39cab
AC
5088 { (exit 1); exit 1; }; } ;;
5089
dae5f5cf 5090 *) ac_config_targets="$ac_config_targets $1" ;;
bec39cab
AC
5091
5092 esac
5093 shift
d6e9fb05 5094done
bec39cab
AC
5095
5096ac_configure_extra_args=
5097
5098if $ac_cs_silent; then
5099 exec 6>/dev/null
5100 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 5101fi
d6e9fb05 5102
bec39cab
AC
5103_ACEOF
5104cat >>$CONFIG_STATUS <<_ACEOF
5105if \$ac_cs_recheck; then
dae5f5cf
DJ
5106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5107 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab 5108fi
d6e9fb05 5109
bec39cab
AC
5110_ACEOF
5111
bec39cab 5112
b80864fb 5113
dae5f5cf
DJ
5114
5115
5116cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
5117for ac_config_target in $ac_config_targets
5118do
dae5f5cf
DJ
5119 case "$ac_config_target" in
5120 # Handling of arguments.
5121 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5122 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5123 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
5124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5125echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5126 { (exit 1); exit 1; }; };;
d6e9fb05 5127 esac
bec39cab
AC
5128done
5129
5130# If the user did not use the arguments to specify the items to instantiate,
5131# then the envvar interface is used. Set only those that are not.
5132# We use the long form for the default assignment because of an extremely
5133# bizarre bug on SunOS 4.1.3.
5134if $ac_need_defaults; then
5135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5138fi
d6e9fb05 5139
bec39cab 5140# Have a temporary directory for convenience. Make it in the build tree
dae5f5cf 5141# simply because there is no reason to put it here, and in addition,
bec39cab 5142# creating and moving files from /tmp can sometimes cause problems.
dae5f5cf 5143# Create a temporary directory, and hook for its removal unless debugging.
bec39cab
AC
5144$debug ||
5145{
dae5f5cf 5146 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
bec39cab
AC
5147 trap '{ (exit 1); exit 1; }' 1 2 13 15
5148}
dae5f5cf 5149
bec39cab
AC
5150# Create a (secure) tmp directory for tmp files.
5151
5152{
dae5f5cf 5153 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
bec39cab
AC
5154 test -n "$tmp" && test -d "$tmp"
5155} ||
5156{
dae5f5cf
DJ
5157 tmp=./confstat$$-$RANDOM
5158 (umask 077 && mkdir $tmp)
bec39cab
AC
5159} ||
5160{
5161 echo "$me: cannot create a temporary directory in ." >&2
5162 { (exit 1); exit 1; }
5163}
5164
dae5f5cf
DJ
5165_ACEOF
5166
5167cat >>$CONFIG_STATUS <<_ACEOF
5168
bec39cab 5169#
dae5f5cf 5170# CONFIG_FILES section.
bec39cab
AC
5171#
5172
5173# No need to generate the scripts if there are no CONFIG_FILES.
5174# This happens for instance when ./config.status config.h
dae5f5cf
DJ
5175if test -n "\$CONFIG_FILES"; then
5176 # Protect against being on the right side of a sed subst in config.status.
5177 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5178 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5179s,@SHELL@,$SHELL,;t t
5180s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5181s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5182s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5183s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5184s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5185s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5186s,@exec_prefix@,$exec_prefix,;t t
5187s,@prefix@,$prefix,;t t
5188s,@program_transform_name@,$program_transform_name,;t t
5189s,@bindir@,$bindir,;t t
5190s,@sbindir@,$sbindir,;t t
5191s,@libexecdir@,$libexecdir,;t t
5192s,@datadir@,$datadir,;t t
5193s,@sysconfdir@,$sysconfdir,;t t
5194s,@sharedstatedir@,$sharedstatedir,;t t
5195s,@localstatedir@,$localstatedir,;t t
5196s,@libdir@,$libdir,;t t
5197s,@includedir@,$includedir,;t t
5198s,@oldincludedir@,$oldincludedir,;t t
5199s,@infodir@,$infodir,;t t
5200s,@mandir@,$mandir,;t t
5201s,@build_alias@,$build_alias,;t t
5202s,@host_alias@,$host_alias,;t t
5203s,@target_alias@,$target_alias,;t t
5204s,@DEFS@,$DEFS,;t t
5205s,@ECHO_C@,$ECHO_C,;t t
5206s,@ECHO_N@,$ECHO_N,;t t
5207s,@ECHO_T@,$ECHO_T,;t t
5208s,@LIBS@,$LIBS,;t t
5209s,@CC@,$CC,;t t
5210s,@CFLAGS@,$CFLAGS,;t t
5211s,@LDFLAGS@,$LDFLAGS,;t t
5212s,@CPPFLAGS@,$CPPFLAGS,;t t
5213s,@ac_ct_CC@,$ac_ct_CC,;t t
5214s,@EXEEXT@,$EXEEXT,;t t
5215s,@OBJEXT@,$OBJEXT,;t t
5216s,@build@,$build,;t t
5217s,@build_cpu@,$build_cpu,;t t
5218s,@build_vendor@,$build_vendor,;t t
5219s,@build_os@,$build_os,;t t
5220s,@host@,$host,;t t
5221s,@host_cpu@,$host_cpu,;t t
5222s,@host_vendor@,$host_vendor,;t t
5223s,@host_os@,$host_os,;t t
5224s,@target@,$target,;t t
5225s,@target_cpu@,$target_cpu,;t t
5226s,@target_vendor@,$target_vendor,;t t
5227s,@target_os@,$target_os,;t t
5228s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5229s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5230s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5231s,@CPP@,$CPP,;t t
5232s,@EGREP@,$EGREP,;t t
e28b3332 5233s,@LIBOBJS@,$LIBOBJS,;t t
c16158bc
JM
5234s,@PKGVERSION@,$PKGVERSION,;t t
5235s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5236s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
dae5f5cf
DJ
5237s,@RDYNAMIC@,$RDYNAMIC,;t t
5238s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5239s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5240s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
fb1e4ffc
DJ
5241s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5242s,@srv_xmlfiles@,$srv_xmlfiles,;t t
dae5f5cf
DJ
5243s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5244CEOF
bec39cab 5245
b80864fb
DJ
5246_ACEOF
5247
dae5f5cf
DJ
5248 cat >>$CONFIG_STATUS <<\_ACEOF
5249 # Split the substitutions into bite-sized pieces for seds with
5250 # small command number limits, like on Digital OSF/1 and HP-UX.
5251 ac_max_sed_lines=48
5252 ac_sed_frag=1 # Number of current file.
5253 ac_beg=1 # First line for current file.
5254 ac_end=$ac_max_sed_lines # Line after last line for current file.
5255 ac_more_lines=:
5256 ac_sed_cmds=
5257 while $ac_more_lines; do
5258 if test $ac_beg -gt 1; then
5259 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5260 else
5261 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5262 fi
5263 if test ! -s $tmp/subs.frag; then
5264 ac_more_lines=false
5265 else
5266 # The purpose of the label and of the branching condition is to
5267 # speed up the sed processing (if there are no `@' at all, there
5268 # is no need to browse any of the substitutions).
5269 # These are the two extra sed commands mentioned above.
5270 (echo ':t
5271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5272 if test -z "$ac_sed_cmds"; then
5273 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5274 else
5275 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5276 fi
5277 ac_sed_frag=`expr $ac_sed_frag + 1`
5278 ac_beg=$ac_end
5279 ac_end=`expr $ac_end + $ac_max_sed_lines`
5280 fi
5281 done
5282 if test -z "$ac_sed_cmds"; then
5283 ac_sed_cmds=cat
d6e9fb05 5284 fi
dae5f5cf 5285fi # test -n "$CONFIG_FILES"
d6e9fb05 5286
bec39cab
AC
5287_ACEOF
5288cat >>$CONFIG_STATUS <<\_ACEOF
dae5f5cf
DJ
5289for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5291 case $ac_file in
5292 - | *:- | *:-:* ) # input from stdin
5293 cat >$tmp/stdin
5294 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5296 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5298 * ) ac_file_in=$ac_file.in ;;
d6e9fb05
JK
5299 esac
5300
dae5f5cf
DJ
5301 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5302 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
5303$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5304 X"$ac_file" : 'X\(//\)[^/]' \| \
5305 X"$ac_file" : 'X\(//\)$' \| \
dae5f5cf
DJ
5306 X"$ac_file" : 'X\(/\)' \| \
5307 . : '\(.\)' 2>/dev/null ||
bec39cab 5308echo X"$ac_file" |
dae5f5cf
DJ
5309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5311 /^X\(\/\/\)$/{ s//\1/; q; }
5312 /^X\(\/\).*/{ s//\1/; q; }
5313 s/.*/./; q'`
5314 { if $as_mkdir_p; then
5315 mkdir -p "$ac_dir"
5316 else
5317 as_dir="$ac_dir"
bec39cab 5318 as_dirs=
dae5f5cf
DJ
5319 while test ! -d "$as_dir"; do
5320 as_dirs="$as_dir $as_dirs"
5321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
5322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5323 X"$as_dir" : 'X\(//\)[^/]' \| \
5324 X"$as_dir" : 'X\(//\)$' \| \
dae5f5cf
DJ
5325 X"$as_dir" : 'X\(/\)' \| \
5326 . : '\(.\)' 2>/dev/null ||
bec39cab 5327echo X"$as_dir" |
dae5f5cf
DJ
5328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5330 /^X\(\/\/\)$/{ s//\1/; q; }
5331 /^X\(\/\).*/{ s//\1/; q; }
5332 s/.*/./; q'`
bec39cab 5333 done
dae5f5cf
DJ
5334 test ! -n "$as_dirs" || mkdir $as_dirs
5335 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5336echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 5337 { (exit 1); exit 1; }; }; }
dae5f5cf 5338
bec39cab
AC
5339 ac_builddir=.
5340
dae5f5cf 5341if test "$ac_dir" != .; then
bec39cab 5342 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dae5f5cf
DJ
5343 # A "../" for each directory in $ac_dir_suffix.
5344 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5345else
5346 ac_dir_suffix= ac_top_builddir=
5347fi
bec39cab
AC
5348
5349case $srcdir in
dae5f5cf 5350 .) # No --srcdir option. We are building in place.
bec39cab 5351 ac_srcdir=.
dae5f5cf
DJ
5352 if test -z "$ac_top_builddir"; then
5353 ac_top_srcdir=.
5354 else
5355 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5356 fi ;;
5357 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 5358 ac_srcdir=$srcdir$ac_dir_suffix;
dae5f5cf
DJ
5359 ac_top_srcdir=$srcdir ;;
5360 *) # Relative path.
5361 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5362 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
5363esac
5364
dae5f5cf
DJ
5365# Do not use `cd foo && pwd` to compute absolute paths, because
5366# the directories may not exist.
5367case `pwd` in
5368.) ac_abs_builddir="$ac_dir";;
5369*)
5370 case "$ac_dir" in
5371 .) ac_abs_builddir=`pwd`;;
5372 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5373 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5374 esac;;
5375esac
5376case $ac_abs_builddir in
5377.) ac_abs_top_builddir=${ac_top_builddir}.;;
5378*)
5379 case ${ac_top_builddir}. in
5380 .) ac_abs_top_builddir=$ac_abs_builddir;;
5381 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5382 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5383 esac;;
5384esac
5385case $ac_abs_builddir in
5386.) ac_abs_srcdir=$ac_srcdir;;
5387*)
5388 case $ac_srcdir in
5389 .) ac_abs_srcdir=$ac_abs_builddir;;
5390 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5391 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5392 esac;;
5393esac
5394case $ac_abs_builddir in
5395.) ac_abs_top_srcdir=$ac_top_srcdir;;
5396*)
5397 case $ac_top_srcdir in
5398 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5399 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5400 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5401 esac;;
5402esac
bec39cab 5403
d6e9fb05 5404
bec39cab
AC
5405 case $INSTALL in
5406 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dae5f5cf 5407 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d6e9fb05 5408 esac
3db0444b 5409
dae5f5cf
DJ
5410 if test x"$ac_file" != x-; then
5411 { echo "$as_me:$LINENO: creating $ac_file" >&5
5412echo "$as_me: creating $ac_file" >&6;}
5413 rm -f "$ac_file"
5414 fi
5415 # Let's still pretend it is `configure' which instantiates (i.e., don't
5416 # use $as_me), people would be surprised to read:
5417 # /* config.h. Generated by config.status. */
5418 if test x"$ac_file" = x-; then
5419 configure_input=
5420 else
5421 configure_input="$ac_file. "
5422 fi
5423 configure_input=$configure_input"Generated from `echo $ac_file_in |
5424 sed 's,.*/,,'` by configure."
5425
5426 # First look for the input files in the build tree, otherwise in the
5427 # src tree.
5428 ac_file_inputs=`IFS=:
5429 for f in $ac_file_in; do
5430 case $f in
5431 -) echo $tmp/stdin ;;
5432 [\\/$]*)
5433 # Absolute (can't be DOS-style, as IFS=:)
5434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5435echo "$as_me: error: cannot find input file: $f" >&2;}
5436 { (exit 1); exit 1; }; }
5437 echo "$f";;
5438 *) # Relative
5439 if test -f "$f"; then
5440 # Build tree
5441 echo "$f"
5442 elif test -f "$srcdir/$f"; then
5443 # Source tree
5444 echo "$srcdir/$f"
5445 else
5446 # /dev/null tree
5447 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5448echo "$as_me: error: cannot find input file: $f" >&2;}
5449 { (exit 1); exit 1; }; }
5450 fi;;
5451 esac
5452 done` || { (exit 1); exit 1; }
bec39cab
AC
5453_ACEOF
5454cat >>$CONFIG_STATUS <<_ACEOF
5455 sed "$ac_vpsub
5456$extrasub
5457_ACEOF
5458cat >>$CONFIG_STATUS <<\_ACEOF
5459:t
5460/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dae5f5cf
DJ
5461s,@configure_input@,$configure_input,;t t
5462s,@srcdir@,$ac_srcdir,;t t
5463s,@abs_srcdir@,$ac_abs_srcdir,;t t
5464s,@top_srcdir@,$ac_top_srcdir,;t t
5465s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5466s,@builddir@,$ac_builddir,;t t
5467s,@abs_builddir@,$ac_abs_builddir,;t t
5468s,@top_builddir@,$ac_top_builddir,;t t
5469s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5470s,@INSTALL@,$ac_INSTALL,;t t
5471" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5472 rm -f $tmp/stdin
5473 if test x"$ac_file" != x-; then
5474 mv $tmp/out $ac_file
5475 else
5476 cat $tmp/out
5477 rm -f $tmp/out
5478 fi
5479
5480done
5481_ACEOF
5482cat >>$CONFIG_STATUS <<\_ACEOF
5483
5484#
5485# CONFIG_HEADER section.
5486#
5487
5488# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5489# NAME is the cpp macro being defined and VALUE is the value it is being given.
5490#
5491# ac_d sets the value in "#define NAME VALUE" lines.
5492ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5493ac_dB='[ ].*$,\1#\2'
5494ac_dC=' '
5495ac_dD=',;t'
5496# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5497ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5498ac_uB='$,\1#\2define\3'
5499ac_uC=' '
5500ac_uD=',;t'
5501
5502for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5503 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 5504 case $ac_file in
dae5f5cf
DJ
5505 - | *:- | *:-:* ) # input from stdin
5506 cat >$tmp/stdin
5507 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5509 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5510 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5511 * ) ac_file_in=$ac_file.in ;;
84563040 5512 esac
dae5f5cf
DJ
5513
5514 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5515echo "$as_me: creating $ac_file" >&6;}
5516
5517 # First look for the input files in the build tree, otherwise in the
5518 # src tree.
5519 ac_file_inputs=`IFS=:
5520 for f in $ac_file_in; do
5521 case $f in
5522 -) echo $tmp/stdin ;;
5523 [\\/$]*)
5524 # Absolute (can't be DOS-style, as IFS=:)
5525 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5526echo "$as_me: error: cannot find input file: $f" >&2;}
5527 { (exit 1); exit 1; }; }
5528 # Do quote $f, to prevent DOS paths from being IFS'd.
5529 echo "$f";;
5530 *) # Relative
5531 if test -f "$f"; then
5532 # Build tree
5533 echo "$f"
5534 elif test -f "$srcdir/$f"; then
5535 # Source tree
5536 echo "$srcdir/$f"
5537 else
5538 # /dev/null tree
5539 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5540echo "$as_me: error: cannot find input file: $f" >&2;}
5541 { (exit 1); exit 1; }; }
5542 fi;;
5543 esac
5544 done` || { (exit 1); exit 1; }
5545 # Remove the trailing spaces.
5546 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5547
bec39cab
AC
5548_ACEOF
5549
dae5f5cf
DJ
5550# Transform confdefs.h into two sed scripts, `conftest.defines' and
5551# `conftest.undefs', that substitutes the proper values into
5552# config.h.in to produce config.h. The first handles `#define'
5553# templates, and the second `#undef' templates.
5554# And first: Protect against being on the right side of a sed subst in
5555# config.status. Protect against being in an unquoted here document
5556# in config.status.
5557rm -f conftest.defines conftest.undefs
5558# Using a here document instead of a string reduces the quoting nightmare.
5559# Putting comments in sed scripts is not portable.
5560#
5561# `end' is used to avoid that the second main sed command (meant for
5562# 0-ary CPP macros) applies to n-ary macro definitions.
5563# See the Autoconf documentation for `clear'.
5564cat >confdef2sed.sed <<\_ACEOF
5565s/[\\&,]/\\&/g
5566s,[\\$`],\\&,g
5567t clear
5568: clear
5569s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5570t end
5571s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5572: end
5573_ACEOF
5574# If some macros were called several times there might be several times
5575# the same #defines, which is useless. Nevertheless, we may not want to
5576# sort them, since we want the *last* AC-DEFINE to be honored.
5577uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5578sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5579rm -f confdef2sed.sed
5580
5581# This sed command replaces #undef with comments. This is necessary, for
84563040
DJ
5582# example, in the case of _POSIX_SOURCE, which is predefined and required
5583# on some systems where configure will not decide to define it.
dae5f5cf
DJ
5584cat >>conftest.undefs <<\_ACEOF
5585s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
b80864fb 5586_ACEOF
dae5f5cf
DJ
5587
5588# Break up conftest.defines because some shells have a limit on the size
5589# of here documents, and old seds have small limits too (100 cmds).
5590echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5591echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5592echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5593echo ' :' >>$CONFIG_STATUS
5594rm -f conftest.tail
5595while grep . conftest.defines >/dev/null
5596do
5597 # Write a limited-size here document to $tmp/defines.sed.
5598 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5599 # Speed up: don't consider the non `#define' lines.
5600 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5601 # Work around the forget-to-reset-the-flag bug.
5602 echo 't clr' >>$CONFIG_STATUS
5603 echo ': clr' >>$CONFIG_STATUS
5604 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 5605 echo 'CEOF
dae5f5cf
DJ
5606 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5607 rm -f $tmp/in
5608 mv $tmp/out $tmp/in
5609' >>$CONFIG_STATUS
5610 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
5611 rm -f conftest.defines
5612 mv conftest.tail conftest.defines
5613done
dae5f5cf
DJ
5614rm -f conftest.defines
5615echo ' fi # grep' >>$CONFIG_STATUS
5616echo >>$CONFIG_STATUS
5617
5618# Break up conftest.undefs because some shells have a limit on the size
5619# of here documents, and old seds have small limits too (100 cmds).
5620echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5621rm -f conftest.tail
5622while grep . conftest.undefs >/dev/null
5623do
5624 # Write a limited-size here document to $tmp/undefs.sed.
5625 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5626 # Speed up: don't consider the non `#undef'
5627 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5628 # Work around the forget-to-reset-the-flag bug.
5629 echo 't clr' >>$CONFIG_STATUS
5630 echo ': clr' >>$CONFIG_STATUS
5631 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5632 echo 'CEOF
5633 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5634 rm -f $tmp/in
5635 mv $tmp/out $tmp/in
5636' >>$CONFIG_STATUS
5637 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5638 rm -f conftest.undefs
5639 mv conftest.tail conftest.undefs
5640done
5641rm -f conftest.undefs
bec39cab
AC
5642
5643cat >>$CONFIG_STATUS <<\_ACEOF
dae5f5cf
DJ
5644 # Let's still pretend it is `configure' which instantiates (i.e., don't
5645 # use $as_me), people would be surprised to read:
5646 # /* config.h. Generated by config.status. */
5647 if test x"$ac_file" = x-; then
5648 echo "/* Generated by configure. */" >$tmp/config.h
5649 else
5650 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5651 fi
5652 cat $tmp/in >>$tmp/config.h
5653 rm -f $tmp/in
bec39cab 5654 if test x"$ac_file" != x-; then
dae5f5cf 5655 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
5656 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5657echo "$as_me: $ac_file is unchanged" >&6;}
5658 else
dae5f5cf
DJ
5659 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5660$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5661 X"$ac_file" : 'X\(//\)[^/]' \| \
5662 X"$ac_file" : 'X\(//\)$' \| \
5663 X"$ac_file" : 'X\(/\)' \| \
5664 . : '\(.\)' 2>/dev/null ||
5665echo X"$ac_file" |
5666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5668 /^X\(\/\/\)$/{ s//\1/; q; }
5669 /^X\(\/\).*/{ s//\1/; q; }
5670 s/.*/./; q'`
5671 { if $as_mkdir_p; then
5672 mkdir -p "$ac_dir"
5673 else
5674 as_dir="$ac_dir"
5675 as_dirs=
5676 while test ! -d "$as_dir"; do
5677 as_dirs="$as_dir $as_dirs"
5678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5679$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5680 X"$as_dir" : 'X\(//\)[^/]' \| \
5681 X"$as_dir" : 'X\(//\)$' \| \
5682 X"$as_dir" : 'X\(/\)' \| \
5683 . : '\(.\)' 2>/dev/null ||
5684echo X"$as_dir" |
5685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5687 /^X\(\/\/\)$/{ s//\1/; q; }
5688 /^X\(\/\).*/{ s//\1/; q; }
5689 s/.*/./; q'`
5690 done
5691 test ! -n "$as_dirs" || mkdir $as_dirs
5692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5693echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5694 { (exit 1); exit 1; }; }; }
5695
bec39cab 5696 rm -f $ac_file
dae5f5cf 5697 mv $tmp/config.h $ac_file
84563040 5698 fi
bec39cab 5699 else
dae5f5cf
DJ
5700 cat $tmp/config.h
5701 rm -f $tmp/config.h
d6e9fb05 5702 fi
dae5f5cf
DJ
5703done
5704_ACEOF
5705cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 5706
dae5f5cf
DJ
5707#
5708# CONFIG_COMMANDS section.
5709#
5710for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5711 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5712 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5713 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5714$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5715 X"$ac_dest" : 'X\(//\)[^/]' \| \
5716 X"$ac_dest" : 'X\(//\)$' \| \
5717 X"$ac_dest" : 'X\(/\)' \| \
5718 . : '\(.\)' 2>/dev/null ||
5719echo X"$ac_dest" |
5720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5722 /^X\(\/\/\)$/{ s//\1/; q; }
5723 /^X\(\/\).*/{ s//\1/; q; }
5724 s/.*/./; q'`
5725 { if $as_mkdir_p; then
5726 mkdir -p "$ac_dir"
5727 else
5728 as_dir="$ac_dir"
5729 as_dirs=
5730 while test ! -d "$as_dir"; do
5731 as_dirs="$as_dir $as_dirs"
5732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5733$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5734 X"$as_dir" : 'X\(//\)[^/]' \| \
5735 X"$as_dir" : 'X\(//\)$' \| \
5736 X"$as_dir" : 'X\(/\)' \| \
5737 . : '\(.\)' 2>/dev/null ||
5738echo X"$as_dir" |
5739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5741 /^X\(\/\/\)$/{ s//\1/; q; }
5742 /^X\(\/\).*/{ s//\1/; q; }
5743 s/.*/./; q'`
5744 done
5745 test ! -n "$as_dirs" || mkdir $as_dirs
5746 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5747echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5748 { (exit 1); exit 1; }; }; }
84563040 5749
dae5f5cf 5750 ac_builddir=.
d6e9fb05 5751
dae5f5cf
DJ
5752if test "$ac_dir" != .; then
5753 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5754 # A "../" for each directory in $ac_dir_suffix.
5755 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5756else
5757 ac_dir_suffix= ac_top_builddir=
5758fi
5759
5760case $srcdir in
5761 .) # No --srcdir option. We are building in place.
5762 ac_srcdir=.
5763 if test -z "$ac_top_builddir"; then
5764 ac_top_srcdir=.
5765 else
5766 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5767 fi ;;
5768 [\\/]* | ?:[\\/]* ) # Absolute path.
5769 ac_srcdir=$srcdir$ac_dir_suffix;
5770 ac_top_srcdir=$srcdir ;;
5771 *) # Relative path.
5772 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5773 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5774esac
5775
5776# Do not use `cd foo && pwd` to compute absolute paths, because
5777# the directories may not exist.
5778case `pwd` in
5779.) ac_abs_builddir="$ac_dir";;
5780*)
5781 case "$ac_dir" in
5782 .) ac_abs_builddir=`pwd`;;
5783 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5784 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5785 esac;;
5786esac
5787case $ac_abs_builddir in
5788.) ac_abs_top_builddir=${ac_top_builddir}.;;
5789*)
5790 case ${ac_top_builddir}. in
5791 .) ac_abs_top_builddir=$ac_abs_builddir;;
5792 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5793 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5794 esac;;
5795esac
5796case $ac_abs_builddir in
5797.) ac_abs_srcdir=$ac_srcdir;;
5798*)
5799 case $ac_srcdir in
5800 .) ac_abs_srcdir=$ac_abs_builddir;;
5801 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5802 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5803 esac;;
5804esac
5805case $ac_abs_builddir in
5806.) ac_abs_top_srcdir=$ac_top_srcdir;;
5807*)
5808 case $ac_top_srcdir in
5809 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5810 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5811 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5812 esac;;
5813esac
5814
5815
5816 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5817echo "$as_me: executing $ac_dest commands" >&6;}
5818 case $ac_dest in
5819 default ) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
5820xconfig.h:config.in)
5821echo > stamp-h ;;
5822esac
bec39cab
AC
5823 ;;
5824 esac
dae5f5cf
DJ
5825done
5826_ACEOF
d6e9fb05 5827
dae5f5cf 5828cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
5829
5830{ (exit 0); exit 0; }
5831_ACEOF
d6e9fb05 5832chmod +x $CONFIG_STATUS
bec39cab
AC
5833ac_clean_files=$ac_clean_files_save
5834
5835
5836# configure is writing to config.log, and then calls config.status.
5837# config.status does its own redirection, appending to config.log.
5838# Unfortunately, on DOS this fails, as config.log is still kept open
5839# by configure, so config.status won't be able to write to it; its
5840# output is simply discarded. So we exec the FD to /dev/null,
5841# effectively closing config.log, so it can be properly (re)opened and
5842# appended to by config.status. When coming back to configure, we
5843# need to make the FD available again.
5844if test "$no_create" != yes; then
5845 ac_cs_success=:
5846 ac_config_status_args=
5847 test "$silent" = yes &&
5848 ac_config_status_args="$ac_config_status_args --quiet"
5849 exec 5>/dev/null
5850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5851 exec 5>>config.log
5852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5853 # would make configure fail if this is the last instruction.
5854 $ac_cs_success || { (exit 1); exit 1; }
5855fi
d6e9fb05 5856
This page took 0.955562 seconds and 4 git commands to generate.