]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/configure
gdb/
[thirdparty/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"
68070c10
PA
3819fi
3820
3821if test "${srv_mingw}" = "yes"; then
b80864fb
DJ
3822
3823cat >>confdefs.h <<\_ACEOF
3824#define USE_WIN32API 1
3825_ACEOF
3826
3827fi
3828
58caa3dc 3829if test "${srv_linux_usrregs}" = "yes"; then
f450004a
DJ
3830
3831cat >>confdefs.h <<\_ACEOF
58caa3dc 3832#define HAVE_LINUX_USRREGS 1
bec39cab 3833_ACEOF
58caa3dc
DJ
3834
3835fi
3836
3837if test "${srv_linux_regsets}" = "yes"; then
e9d25b98
DJ
3838
3839cat >>confdefs.h <<\_ACEOF
3840#define HAVE_LINUX_REGSETS 1
3841_ACEOF
3842
3843
dae5f5cf
DJ
3844 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3845echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
bec39cab
AC
3846 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
58caa3dc 3855#include <sys/ptrace.h>
bec39cab
AC
3856int
3857main ()
3858{
58caa3dc 3859PTRACE_GETREGS;
bec39cab
AC
3860 ;
3861 return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext
dae5f5cf
DJ
3865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
dae5f5cf
DJ
3873 { ac_try='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
bec39cab
AC
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
bec39cab
AC
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
58caa3dc
DJ
3886 gdbsrv_cv_have_ptrace_getregs=yes
3887else
bec39cab
AC
3888 echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
dae5f5cf 3891gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 3892fi
dae5f5cf 3893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3894fi
3895
dae5f5cf
DJ
3896 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3897echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
58caa3dc 3898 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a
DJ
3899
3900cat >>confdefs.h <<\_ACEOF
e9d25b98 3901#define HAVE_PTRACE_GETREGS 1
bec39cab 3902_ACEOF
58caa3dc
DJ
3903
3904 fi
3905
dae5f5cf
DJ
3906 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3907echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
bec39cab
AC
3908 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
58caa3dc 3910else
bec39cab
AC
3911 cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
58caa3dc 3917#include <sys/ptrace.h>
bec39cab
AC
3918int
3919main ()
3920{
58caa3dc 3921PTRACE_GETFPXREGS;
bec39cab
AC
3922 ;
3923 return 0;
3924}
3925_ACEOF
3926rm -f conftest.$ac_objext
dae5f5cf
DJ
3927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
dae5f5cf
DJ
3935 { ac_try='test -z "$ac_c_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
bec39cab
AC
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
bec39cab
AC
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
58caa3dc
DJ
3948 gdbsrv_cv_have_ptrace_getfpxregs=yes
3949else
bec39cab
AC
3950 echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
dae5f5cf 3953gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 3954fi
dae5f5cf 3955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3956fi
3957
dae5f5cf
DJ
3958 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3959echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
58caa3dc 3960 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a
DJ
3961
3962cat >>confdefs.h <<\_ACEOF
58caa3dc 3963#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 3964_ACEOF
58caa3dc
DJ
3965
3966 fi
3967fi
3968
0d62e5e8 3969if test "$ac_cv_header_sys_procfs_h" = yes; then
dae5f5cf
DJ
3970 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3971echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
3972 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3974else
bec39cab
AC
3975 cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h. */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h. */
0d62e5e8
DJ
3981
3982#define _SYSCALL32
3983#include <sys/procfs.h>
bec39cab
AC
3984int
3985main ()
3986{
0d62e5e8 3987lwpid_t avar
bec39cab
AC
3988 ;
3989 return 0;
3990}
3991_ACEOF
3992rm -f conftest.$ac_objext
dae5f5cf
DJ
3993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
dae5f5cf
DJ
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
bec39cab
AC
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
bec39cab
AC
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
0d62e5e8
DJ
4014 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4015else
bec39cab
AC
4016 echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
dae5f5cf 4019bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 4020
0d62e5e8 4021fi
dae5f5cf 4022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4023fi
4024
4025 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
4026
4027cat >>confdefs.h <<\_ACEOF
0d62e5e8 4028#define HAVE_LWPID_T 1
bec39cab 4029_ACEOF
0d62e5e8
DJ
4030
4031 fi
dae5f5cf
DJ
4032 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4033echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
0d62e5e8 4034
dae5f5cf
DJ
4035 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
4036echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
4037 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 4039else
bec39cab
AC
4040 cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h. */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h. */
0d62e5e8
DJ
4046
4047#define _SYSCALL32
4048#include <sys/procfs.h>
bec39cab
AC
4049int
4050main ()
4051{
0d62e5e8 4052psaddr_t avar
bec39cab
AC
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext
dae5f5cf
DJ
4058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
dae5f5cf
DJ
4066 { ac_try='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
bec39cab
AC
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
bec39cab
AC
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
0d62e5e8
DJ
4079 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4080else
bec39cab
AC
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
dae5f5cf 4084bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 4085
0d62e5e8 4086fi
dae5f5cf 4087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4088fi
4089
4090 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
4091
4092cat >>confdefs.h <<\_ACEOF
0d62e5e8 4093#define HAVE_PSADDR_T 1
bec39cab 4094_ACEOF
0d62e5e8
DJ
4095
4096 fi
dae5f5cf
DJ
4097 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4098echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
0d62e5e8 4099
dae5f5cf
DJ
4100 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
4101echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
4102 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 4104else
bec39cab
AC
4105 cat >conftest.$ac_ext <<_ACEOF
4106/* confdefs.h. */
4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
0d62e5e8
DJ
4111
4112#define _SYSCALL32
4113#include <sys/procfs.h>
bec39cab
AC
4114int
4115main ()
4116{
0d62e5e8 4117prgregset_t avar
bec39cab
AC
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122rm -f conftest.$ac_objext
dae5f5cf
DJ
4123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
dae5f5cf
DJ
4131 { ac_try='test -z "$ac_c_werror_flag"
4132 || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
bec39cab
AC
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
bec39cab
AC
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
0d62e5e8
DJ
4144 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4145else
bec39cab
AC
4146 echo "$as_me: failed program was:" >&5
4147sed 's/^/| /' conftest.$ac_ext >&5
4148
dae5f5cf 4149bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 4150
0d62e5e8 4151fi
dae5f5cf 4152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4153fi
4154
4155 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
4156
4157cat >>confdefs.h <<\_ACEOF
0d62e5e8 4158#define HAVE_PRGREGSET_T 1
bec39cab 4159_ACEOF
0d62e5e8
DJ
4160
4161 fi
dae5f5cf
DJ
4162 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4163echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
0d62e5e8 4164
dae5f5cf
DJ
4165 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4166echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
4167 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 4169else
bec39cab
AC
4170 cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h. */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h. */
0d62e5e8
DJ
4176
4177#define _SYSCALL32
4178#include <sys/procfs.h>
bec39cab
AC
4179int
4180main ()
4181{
0d62e5e8 4182elf_fpregset_t avar
bec39cab
AC
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext
dae5f5cf
DJ
4188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
dae5f5cf
DJ
4196 { ac_try='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
bec39cab
AC
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205 (eval $ac_try) 2>&5
bec39cab
AC
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
0d62e5e8
DJ
4209 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4210else
bec39cab
AC
4211 echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
dae5f5cf 4214bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
bec39cab 4215
0d62e5e8 4216fi
dae5f5cf 4217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
4218fi
4219
4220 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab
AC
4221
4222cat >>confdefs.h <<\_ACEOF
0d62e5e8 4223#define HAVE_ELF_FPREGSET_T 1
bec39cab 4224_ACEOF
0d62e5e8
DJ
4225
4226 fi
dae5f5cf
DJ
4227 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4228echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
0d62e5e8
DJ
4229
4230fi
4231
4232srv_thread_depfiles=
4233srv_libs=
4234USE_THREAD_DB=
4235
4236if test "$srv_linux_thread_db" = "yes"; then
dae5f5cf
DJ
4237 echo "$as_me:$LINENO: checking for libthread_db" >&5
4238echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
bec39cab
AC
4239if test "${srv_cv_thread_db+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8
DJ
4241else
4242 old_LIBS="$LIBS"
4243 LIBS="$LIBS -lthread_db"
bec39cab
AC
4244 cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
0d62e5e8
DJ
4250void ps_pglobal_lookup() {}
4251 void ps_pdread() {}
4252 void ps_pdwrite() {}
4253 void ps_lgetregs() {}
4254 void ps_lsetregs() {}
4255 void ps_lgetfpregs() {}
4256 void ps_lsetfpregs() {}
434c4c77 4257 void ps_get_thread_area() {}
0d62e5e8 4258 void ps_getpid() {}
bec39cab
AC
4259int
4260main ()
4261{
0d62e5e8 4262td_ta_new();
bec39cab
AC
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext conftest$ac_exeext
dae5f5cf
DJ
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
bec39cab
AC
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
dae5f5cf
DJ
4276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
bec39cab
AC
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
dae5f5cf
DJ
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
bec39cab
AC
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
0d62e5e8
DJ
4289 srv_cv_thread_db="-lthread_db"
4290else
bec39cab
AC
4291 echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
dae5f5cf 4294srv_cv_thread_db=no
0d62e5e8
DJ
4295
4296 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
4297 thread_db="/lib/libthread_db.so.1"
4298 else
4299 thread_db='$prefix/lib/libthread_db.so.1'
4300 fi
4301 LIBS="$old_LIBS `eval echo "$thread_db"`"
bec39cab
AC
4302 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h. */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h. */
0d62e5e8
DJ
4308void ps_pglobal_lookup() {}
4309 void ps_pdread() {}
4310 void ps_pdwrite() {}
4311 void ps_lgetregs() {}
4312 void ps_lsetregs() {}
4313 void ps_lgetfpregs() {}
4314 void ps_lsetfpregs() {}
434c4c77 4315 void ps_get_thread_area() {}
0d62e5e8 4316 void ps_getpid() {}
bec39cab
AC
4317int
4318main ()
4319{
0d62e5e8 4320td_ta_new();
bec39cab
AC
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325rm -f conftest.$ac_objext conftest$ac_exeext
dae5f5cf
DJ
4326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>conftest.er1
bec39cab
AC
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
dae5f5cf
DJ
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
bec39cab
AC
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
dae5f5cf
DJ
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
bec39cab
AC
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
0d62e5e8
DJ
4347 srv_cv_thread_db="$thread_db"
4348else
bec39cab
AC
4349 echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
dae5f5cf 4352srv_cv_thread_db=no
0d62e5e8 4353fi
dae5f5cf 4354rm -f conftest.err conftest.$ac_objext \
bec39cab 4355 conftest$ac_exeext conftest.$ac_ext
0d62e5e8 4356
bec39cab 4357fi
dae5f5cf 4358rm -f conftest.err conftest.$ac_objext \
3db0444b 4359 conftest$ac_exeext conftest.$ac_ext
434c4c77 4360 LIBS="$old_LIBS"
0d62e5e8
DJ
4361
4362fi
dae5f5cf
DJ
4363echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4364echo "${ECHO_T}$srv_cv_thread_db" >&6
0d62e5e8 4365 if test "$srv_cv_thread_db" = no; then
bec39cab
AC
4366 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4367echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4368 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4369echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
0d62e5e8
DJ
4370 srv_linux_thread_db=no
4371 else
4372 srv_libs="$srv_cv_thread_db"
dae5f5cf
DJ
4373 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4374echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4375if test "${srv_cv_tls_get_addr+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377else
4378 old_LIBS="$LIBS"
4379 LIBS="$LIBS $srv_cv_thread_db"
4380 cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h. */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h. */
4386void ps_pglobal_lookup() {}
4387 void ps_pdread() {}
4388 void ps_pdwrite() {}
4389 void ps_lgetregs() {}
4390 void ps_lsetregs() {}
4391 void ps_lgetfpregs() {}
4392 void ps_lsetfpregs() {}
4393 void ps_get_thread_area() {}
4394 void ps_getpid() {}
4395int
4396main ()
4397{
4398td_thr_tls_get_addr();
4399 ;
4400 return 0;
4401}
4402_ACEOF
4403rm -f conftest.$ac_objext conftest$ac_exeext
4404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4406 ac_status=$?
4407 grep -v '^ *+' conftest.er1 >conftest.err
4408 rm -f conftest.er1
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 srv_cv_tls_get_addr=yes
4426else
4427 echo "$as_me: failed program was:" >&5
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
4430srv_cv_tls_get_addr=no
4431fi
4432rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
4434 LIBS="$old_LIBS"
4435
4436fi
4437echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4438echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
0d62e5e8 4439 fi
f6de3c42
DJ
4440 old_LDFLAGS="$LDFLAGS"
4441 LDFLAGS="$LDFLAGS -rdynamic"
bec39cab
AC
4442 cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h. */
4448
4449int
4450main ()
4451{
4452
4453 ;
4454 return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext conftest$ac_exeext
dae5f5cf
DJ
4458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
bec39cab
AC
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
dae5f5cf
DJ
4466 { ac_try='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
bec39cab
AC
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest$ac_exeext'
dae5f5cf
DJ
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
bec39cab
AC
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
f6de3c42
DJ
4479 RDYNAMIC=-rdynamic
4480else
bec39cab
AC
4481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
dae5f5cf 4484RDYNAMIC=
f6de3c42 4485fi
dae5f5cf 4486rm -f conftest.err conftest.$ac_objext \
bec39cab
AC
4487 conftest$ac_exeext conftest.$ac_ext
4488
f6de3c42 4489 LDFLAGS="$old_LDFLAGS"
0d62e5e8
DJ
4490fi
4491
4492if test "$srv_linux_thread_db" = "yes"; then
4493 srv_thread_depfiles="thread-db.o proc-service.o"
4494 USE_THREAD_DB="-DUSE_THREAD_DB"
dae5f5cf
DJ
4495 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4496echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
3db0444b
DJ
4497if test "${gdbsrv_cv_have_td_version+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500 cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h. */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h. */
4506#include <thread_db.h>
4507int
4508main ()
4509{
4510TD_VERSION;
4511 ;
4512 return 0;
4513}
4514_ACEOF
4515rm -f conftest.$ac_objext
dae5f5cf
DJ
4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
3db0444b
DJ
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
dae5f5cf
DJ
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
3db0444b
DJ
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
dae5f5cf
DJ
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
3db0444b
DJ
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 gdbsrv_cv_have_td_version=yes
4538else
4539 echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
dae5f5cf 4542gdbsrv_cv_have_td_version=no
3db0444b 4543fi
dae5f5cf 4544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3db0444b 4545fi
dae5f5cf
DJ
4546echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4547echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
3db0444b
DJ
4548 if test $gdbsrv_cv_have_td_version = yes; then
4549
4550cat >>confdefs.h <<\_ACEOF
4551#define HAVE_TD_VERSION 1
dae5f5cf
DJ
4552_ACEOF
4553
4554 fi
4555
cb7283db 4556 if test "$srv_cv_tls_get_addr" = yes; then
dae5f5cf
DJ
4557
4558cat >>confdefs.h <<\_ACEOF
4559#define HAVE_TD_THR_TLS_GET_ADDR 1
3db0444b
DJ
4560_ACEOF
4561
4562 fi
0d62e5e8
DJ
4563fi
4564
9b4b61c8 4565if test "$srv_xmlfiles" != ""; then
fb1e4ffc
DJ
4566 srv_xmlbuiltin="xml-builtin.o"
4567
4568cat >>confdefs.h <<\_ACEOF
4569#define USE_XML 1
4570_ACEOF
4571
4572
4573 tmp_xmlfiles=$srv_xmlfiles
9b4b61c8 4574 srv_xmlfiles=""
fb1e4ffc
DJ
4575 for f in $tmp_xmlfiles; do
4576 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4577 done
4578fi
4579
59a016f0 4580GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
0d62e5e8
DJ
4581GDBSERVER_LIBS="$srv_libs"
4582
4583
d6e9fb05
JK
4584
4585
4586
fb1e4ffc
DJ
4587
4588
dae5f5cf
DJ
4589 ac_config_files="$ac_config_files Makefile"
4590 ac_config_commands="$ac_config_commands default"
bec39cab 4591cat >confcache <<\_ACEOF
d6e9fb05
JK
4592# This file is a shell script that caches the results of configure
4593# tests run on this system so they can be shared between configure
bec39cab
AC
4594# scripts and configure runs, see configure's option --config-cache.
4595# It is not useful on other systems. If it contains results you don't
4596# want to keep, you may remove or edit it.
d6e9fb05 4597#
bec39cab
AC
4598# config.status only pays attention to the cache file if you give it
4599# the --recheck option to rerun configure.
d6e9fb05 4600#
bec39cab
AC
4601# `ac_cv_env_foo' variables (set or unset) will be overridden when
4602# loading this file, other *unset* `ac_cv_foo' will be assigned the
4603# following values.
4604
4605_ACEOF
4606
d6e9fb05
JK
4607# The following way of writing the cache mishandles newlines in values,
4608# but we know of no workaround that is simple, portable, and efficient.
dae5f5cf 4609# So, don't put newlines in cache variables' values.
d6e9fb05
JK
4610# Ultrix sh set writes to stderr and can't be redirected directly,
4611# and sets the high bit in the cache file unless we assign to the vars.
dae5f5cf 4612{
bec39cab 4613 (set) 2>&1 |
dae5f5cf
DJ
4614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4615 *ac_space=\ *)
bec39cab
AC
4616 # `set' does not quote correctly, so add quotes (double-quote
4617 # substitution turns \\\\ into \\, and sed turns \\ into \).
4618 sed -n \
4619 "s/'/'\\\\''/g;
4620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dae5f5cf 4621 ;;
bec39cab
AC
4622 *)
4623 # `set' quotes correctly as required by POSIX, so do not add quotes.
dae5f5cf
DJ
4624 sed -n \
4625 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 4626 ;;
dae5f5cf
DJ
4627 esac;
4628} |
bec39cab
AC
4629 sed '
4630 t clear
dae5f5cf 4631 : clear
bec39cab
AC
4632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4633 t end
dae5f5cf
DJ
4634 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4635 : end' >>confcache
4636if diff $cache_file confcache >/dev/null 2>&1; then :; else
4637 if test -w $cache_file; then
4638 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab 4639 cat confcache >$cache_file
d6e9fb05 4640 else
dae5f5cf 4641 echo "not updating unwritable cache $cache_file"
d6e9fb05
JK
4642 fi
4643fi
4644rm -f confcache
4645
d6e9fb05
JK
4646test "x$prefix" = xNONE && prefix=$ac_default_prefix
4647# Let make expand exec_prefix.
4648test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4649
dae5f5cf
DJ
4650# VPATH may cause trouble with some makes, so we remove $(srcdir),
4651# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4652# trailing colons and then remove the whole line if VPATH becomes empty
4653# (actually we leave an empty line to preserve line numbers).
4654if test "x$srcdir" = x.; then
4655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4656s/:*\$(srcdir):*/:/;
4657s/:*\${srcdir}:*/:/;
4658s/:*@srcdir@:*/:/;
4659s/^\([^=]*=[ ]*\):*/\1/;
4660s/:*$//;
4661s/^[^=]*=[ ]*$//;
4662}'
4663fi
4664
84563040 4665DEFS=-DHAVE_CONFIG_H
d6e9fb05 4666
bec39cab
AC
4667ac_libobjs=
4668ac_ltlibobjs=
4669for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4670 # 1. Remove the extension, and $U if already installed.
dae5f5cf
DJ
4671 ac_i=`echo "$ac_i" |
4672 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4673 # 2. Add them.
4674 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4675 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
4676done
4677LIBOBJS=$ac_libobjs
d6e9fb05 4678
bec39cab
AC
4679LTLIBOBJS=$ac_ltlibobjs
4680
4681
4682
4683: ${CONFIG_STATUS=./config.status}
4684ac_clean_files_save=$ac_clean_files
4685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4686{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4687echo "$as_me: creating $CONFIG_STATUS" >&6;}
4688cat >$CONFIG_STATUS <<_ACEOF
4689#! $SHELL
4690# Generated by $as_me.
d6e9fb05 4691# Run this file to recreate the current configuration.
d6e9fb05 4692# Compiler output produced by configure, useful for debugging
bec39cab
AC
4693# configure, is in config.log if it exists.
4694
4695debug=false
4696ac_cs_recheck=false
4697ac_cs_silent=false
4698SHELL=\${CONFIG_SHELL-$SHELL}
4699_ACEOF
4700
4701cat >>$CONFIG_STATUS <<\_ACEOF
4702## --------------------- ##
4703## M4sh Initialization. ##
4704## --------------------- ##
4705
4706# Be Bourne compatible
4707if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4708 emulate sh
4709 NULLCMD=:
4710 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4711 # is contrary to our usage. Disable this feature.
4712 alias -g '${1+"$@"}'='"$@"'
dae5f5cf
DJ
4713elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4714 set -o posix
bec39cab
AC
4715fi
4716DUALCASE=1; export DUALCASE # for MKS sh
d6e9fb05 4717
bec39cab
AC
4718# Support unset when possible.
4719if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4720 as_unset=unset
4721else
4722 as_unset=false
4723fi
4724
4725
b80864fb 4726# Work around bugs in pre-3.0 UWIN ksh.
dae5f5cf 4727$as_unset ENV MAIL MAILPATH
bec39cab
AC
4728PS1='$ '
4729PS2='> '
4730PS4='+ '
4731
4732# NLS nuisances.
4733for as_var in \
4734 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4735 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4736 LC_TELEPHONE LC_TIME
d6e9fb05 4737do
bec39cab
AC
4738 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4739 eval $as_var=C; export $as_var
4740 else
dae5f5cf 4741 $as_unset $as_var
bec39cab 4742 fi
d6e9fb05
JK
4743done
4744
bec39cab 4745# Required to use basename.
dae5f5cf 4746if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
4747 as_expr=expr
4748else
4749 as_expr=false
4750fi
d6e9fb05 4751
dae5f5cf 4752if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
4753 as_basename=basename
4754else
4755 as_basename=false
4756fi
d6e9fb05 4757
d6e9fb05 4758
bec39cab 4759# Name of the executable.
dae5f5cf 4760as_me=`$as_basename "$0" ||
bec39cab
AC
4761$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4762 X"$0" : 'X\(//\)$' \| \
dae5f5cf
DJ
4763 X"$0" : 'X\(/\)$' \| \
4764 . : '\(.\)' 2>/dev/null ||
bec39cab 4765echo X/"$0" |
dae5f5cf
DJ
4766 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4767 /^X\/\(\/\/\)$/{ s//\1/; q; }
4768 /^X\/\(\/\).*/{ s//\1/; q; }
4769 s/.*/./; q'`
bec39cab 4770
bec39cab 4771
dae5f5cf
DJ
4772# PATH needs CR, and LINENO needs CR and PATH.
4773# Avoid depending upon Character Ranges.
4774as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4775as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4776as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4777as_cr_digits='0123456789'
4778as_cr_alnum=$as_cr_Letters$as_cr_digits
4779
4780# The user is always right.
4781if test "${PATH_SEPARATOR+set}" != set; then
4782 echo "#! /bin/sh" >conf$$.sh
4783 echo "exit 0" >>conf$$.sh
4784 chmod +x conf$$.sh
4785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4786 PATH_SEPARATOR=';'
4787 else
4788 PATH_SEPARATOR=:
4789 fi
4790 rm -f conf$$.sh
4791fi
bec39cab
AC
4792
4793
4794 as_lineno_1=$LINENO
4795 as_lineno_2=$LINENO
dae5f5cf
DJ
4796 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4797 test "x$as_lineno_1" != "x$as_lineno_2" &&
4798 test "x$as_lineno_3" = "x$as_lineno_2" || {
4799 # Find who we are. Look in the path if we contain no path at all
4800 # relative or not.
4801 case $0 in
4802 *[\\/]* ) as_myself=$0 ;;
4803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804for as_dir in $PATH
4805do
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4809done
4810
4811 ;;
4812 esac
4813 # We did not find ourselves, most probably we were run as `sh COMMAND'
4814 # in which case we are not to be found in the path.
4815 if test "x$as_myself" = x; then
4816 as_myself=$0
4817 fi
4818 if test ! -f "$as_myself"; then
4819 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4820echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4821 { (exit 1); exit 1; }; }
4822 fi
4823 case $CONFIG_SHELL in
4824 '')
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for as_base in sh bash ksh sh5; do
4831 case $as_dir in
4832 /*)
4833 if ("$as_dir/$as_base" -c '
4834 as_lineno_1=$LINENO
4835 as_lineno_2=$LINENO
4836 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 4837 test "x$as_lineno_1" != "x$as_lineno_2" &&
dae5f5cf
DJ
4838 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4839 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4840 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4841 CONFIG_SHELL=$as_dir/$as_base
4842 export CONFIG_SHELL
4843 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4844 fi;;
4845 esac
4846 done
4847done
4848;;
4849 esac
bec39cab
AC
4850
4851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4852 # uniformly replaced by the line number. The first 'sed' inserts a
dae5f5cf
DJ
4853 # line-number line before each line; the second 'sed' does the real
4854 # work. The second script uses 'N' to pair each line-number line
4855 # with the numbered line, and appends trailing '-' during
4856 # substitution so that $LINENO is not a special case at line end.
bec39cab 4857 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dae5f5cf
DJ
4858 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4859 sed '=' <$as_myself |
bec39cab
AC
4860 sed '
4861 N
dae5f5cf
DJ
4862 s,$,-,
4863 : loop
4864 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 4865 t loop
dae5f5cf
DJ
4866 s,-$,,
4867 s,^['$as_cr_digits']*\n,,
bec39cab 4868 ' >$as_me.lineno &&
dae5f5cf
DJ
4869 chmod +x $as_me.lineno ||
4870 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4871echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
4872 { (exit 1); exit 1; }; }
4873
4874 # Don't try to exec as it changes $[0], causing all sort of problems
4875 # (the dirname of $[0] is not the place where we might find the
dae5f5cf
DJ
4876 # original and so on. Autoconf is especially sensible to this).
4877 . ./$as_me.lineno
bec39cab
AC
4878 # Exit status is that of the last command.
4879 exit
4880}
4881
4882
dae5f5cf
DJ
4883case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4884 *c*,-n*) ECHO_N= ECHO_C='
4885' ECHO_T=' ' ;;
4886 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4887 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
4888esac
4889
dae5f5cf 4890if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
4891 as_expr=expr
4892else
4893 as_expr=false
4894fi
4895
4896rm -f conf$$ conf$$.exe conf$$.file
4897echo >conf$$.file
4898if ln -s conf$$.file conf$$ 2>/dev/null; then
dae5f5cf
DJ
4899 # We could just check for DJGPP; but this test a) works b) is more generic
4900 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4901 if test -f conf$$.exe; then
4902 # Don't use ln at all; we don't have any links
bec39cab 4903 as_ln_s='cp -p'
dae5f5cf
DJ
4904 else
4905 as_ln_s='ln -s'
4906 fi
bec39cab
AC
4907elif ln conf$$.file conf$$ 2>/dev/null; then
4908 as_ln_s=ln
4909else
4910 as_ln_s='cp -p'
4911fi
dae5f5cf 4912rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
4913
4914if mkdir -p . 2>/dev/null; then
4915 as_mkdir_p=:
4916else
4917 test -d ./-p && rmdir ./-p
4918 as_mkdir_p=false
4919fi
4920
dae5f5cf 4921as_executable_p="test -f"
bec39cab
AC
4922
4923# Sed expression to map a string onto a valid CPP name.
4924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4925
4926# Sed expression to map a string onto a valid variable name.
4927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4928
4929
dae5f5cf
DJ
4930# IFS
4931# We need space, tab and new line, in precisely that order.
4932as_nl='
4933'
4934IFS=" $as_nl"
4935
4936# CDPATH.
4937$as_unset CDPATH
4938
bec39cab
AC
4939exec 6>&1
4940
dae5f5cf 4941# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 4942# report actual input values of CONFIG_FILES etc. instead of their
dae5f5cf
DJ
4943# values after options handling. Logging --version etc. is OK.
4944exec 5>>config.log
4945{
4946 echo
4947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4948## Running $as_me. ##
4949_ASBOX
4950} >&5
4951cat >&5 <<_CSEOF
4952
bec39cab 4953This file was extended by $as_me, which was
dae5f5cf 4954generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
4955
4956 CONFIG_FILES = $CONFIG_FILES
4957 CONFIG_HEADERS = $CONFIG_HEADERS
4958 CONFIG_LINKS = $CONFIG_LINKS
4959 CONFIG_COMMANDS = $CONFIG_COMMANDS
4960 $ $0 $@
4961
dae5f5cf
DJ
4962_CSEOF
4963echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4964echo >&5
bec39cab
AC
4965_ACEOF
4966
4967# Files that config.status was made for.
dae5f5cf
DJ
4968if test -n "$ac_config_files"; then
4969 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4970fi
bec39cab 4971
dae5f5cf
DJ
4972if test -n "$ac_config_headers"; then
4973 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4974fi
4975
4976if test -n "$ac_config_links"; then
4977 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4978fi
4979
4980if test -n "$ac_config_commands"; then
4981 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4982fi
bec39cab
AC
4983
4984cat >>$CONFIG_STATUS <<\_ACEOF
dae5f5cf 4985
bec39cab
AC
4986ac_cs_usage="\
4987\`$as_me' instantiates files from templates according to the
4988current configuration.
4989
4990Usage: $0 [OPTIONS] [FILE]...
4991
4992 -h, --help print this help, then exit
4993 -V, --version print version number, then exit
4994 -q, --quiet do not print progress messages
4995 -d, --debug don't remove temporary files
4996 --recheck update $as_me by reconfiguring in the same conditions
4997 --file=FILE[:TEMPLATE]
4998 instantiate the configuration file FILE
4999 --header=FILE[:TEMPLATE]
5000 instantiate the configuration header FILE
5001
5002Configuration files:
5003$config_files
5004
5005Configuration headers:
5006$config_headers
5007
5008Configuration commands:
5009$config_commands
5010
5011Report bugs to <bug-autoconf@gnu.org>."
b80864fb 5012_ACEOF
dae5f5cf 5013
bec39cab
AC
5014cat >>$CONFIG_STATUS <<_ACEOF
5015ac_cs_version="\\
5016config.status
dae5f5cf
DJ
5017configured by $0, generated by GNU Autoconf 2.59,
5018 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
bec39cab 5019
dae5f5cf 5020Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
5021This config.status script is free software; the Free Software Foundation
5022gives unlimited permission to copy, distribute and modify it."
dae5f5cf
DJ
5023srcdir=$srcdir
5024INSTALL="$INSTALL"
bec39cab
AC
5025_ACEOF
5026
5027cat >>$CONFIG_STATUS <<\_ACEOF
5028# If no file are specified by the user, then we need to provide default
5029# value. By we need to know if files were specified by the user.
5030ac_need_defaults=:
5031while test $# != 0
5032do
5033 case $1 in
5034 --*=*)
dae5f5cf
DJ
5035 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5036 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab
AC
5037 ac_shift=:
5038 ;;
dae5f5cf 5039 -*)
bec39cab
AC
5040 ac_option=$1
5041 ac_optarg=$2
5042 ac_shift=shift
5043 ;;
dae5f5cf
DJ
5044 *) # This is not an option, so the user has probably given explicit
5045 # arguments.
5046 ac_option=$1
5047 ac_need_defaults=false;;
bec39cab
AC
5048 esac
5049
5050 case $ac_option in
5051 # Handling of the options.
dae5f5cf
DJ
5052_ACEOF
5053cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
5054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5055 ac_cs_recheck=: ;;
dae5f5cf
DJ
5056 --version | --vers* | -V )
5057 echo "$ac_cs_version"; exit 0 ;;
5058 --he | --h)
5059 # Conflict between --help and --header
5060 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5061Try \`$0 --help' for more information." >&5
5062echo "$as_me: error: ambiguous option: $1
5063Try \`$0 --help' for more information." >&2;}
5064 { (exit 1); exit 1; }; };;
5065 --help | --hel | -h )
5066 echo "$ac_cs_usage"; exit 0 ;;
5067 --debug | --d* | -d )
bec39cab
AC
5068 debug=: ;;
5069 --file | --fil | --fi | --f )
5070 $ac_shift
5071 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5072 ac_need_defaults=false;;
5073 --header | --heade | --head | --hea )
5074 $ac_shift
5075 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5076 ac_need_defaults=false;;
5077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5078 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5079 ac_cs_silent=: ;;
5080
5081 # This is an error.
dae5f5cf
DJ
5082 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5083Try \`$0 --help' for more information." >&5
5084echo "$as_me: error: unrecognized option: $1
5085Try \`$0 --help' for more information." >&2;}
bec39cab
AC
5086 { (exit 1); exit 1; }; } ;;
5087
dae5f5cf 5088 *) ac_config_targets="$ac_config_targets $1" ;;
bec39cab
AC
5089
5090 esac
5091 shift
d6e9fb05 5092done
bec39cab
AC
5093
5094ac_configure_extra_args=
5095
5096if $ac_cs_silent; then
5097 exec 6>/dev/null
5098 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 5099fi
d6e9fb05 5100
bec39cab
AC
5101_ACEOF
5102cat >>$CONFIG_STATUS <<_ACEOF
5103if \$ac_cs_recheck; then
dae5f5cf
DJ
5104 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5105 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab 5106fi
d6e9fb05 5107
bec39cab
AC
5108_ACEOF
5109
bec39cab 5110
b80864fb 5111
dae5f5cf
DJ
5112
5113
5114cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
5115for ac_config_target in $ac_config_targets
5116do
dae5f5cf
DJ
5117 case "$ac_config_target" in
5118 # Handling of arguments.
5119 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5120 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5121 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
5122 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5123echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5124 { (exit 1); exit 1; }; };;
d6e9fb05 5125 esac
bec39cab
AC
5126done
5127
5128# If the user did not use the arguments to specify the items to instantiate,
5129# then the envvar interface is used. Set only those that are not.
5130# We use the long form for the default assignment because of an extremely
5131# bizarre bug on SunOS 4.1.3.
5132if $ac_need_defaults; then
5133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5136fi
d6e9fb05 5137
bec39cab 5138# Have a temporary directory for convenience. Make it in the build tree
dae5f5cf 5139# simply because there is no reason to put it here, and in addition,
bec39cab 5140# creating and moving files from /tmp can sometimes cause problems.
dae5f5cf 5141# Create a temporary directory, and hook for its removal unless debugging.
bec39cab
AC
5142$debug ||
5143{
dae5f5cf 5144 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
bec39cab
AC
5145 trap '{ (exit 1); exit 1; }' 1 2 13 15
5146}
dae5f5cf 5147
bec39cab
AC
5148# Create a (secure) tmp directory for tmp files.
5149
5150{
dae5f5cf 5151 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
bec39cab
AC
5152 test -n "$tmp" && test -d "$tmp"
5153} ||
5154{
dae5f5cf
DJ
5155 tmp=./confstat$$-$RANDOM
5156 (umask 077 && mkdir $tmp)
bec39cab
AC
5157} ||
5158{
5159 echo "$me: cannot create a temporary directory in ." >&2
5160 { (exit 1); exit 1; }
5161}
5162
dae5f5cf
DJ
5163_ACEOF
5164
5165cat >>$CONFIG_STATUS <<_ACEOF
5166
bec39cab 5167#
dae5f5cf 5168# CONFIG_FILES section.
bec39cab
AC
5169#
5170
5171# No need to generate the scripts if there are no CONFIG_FILES.
5172# This happens for instance when ./config.status config.h
dae5f5cf
DJ
5173if test -n "\$CONFIG_FILES"; then
5174 # Protect against being on the right side of a sed subst in config.status.
5175 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5176 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5177s,@SHELL@,$SHELL,;t t
5178s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5179s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5180s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5181s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5182s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5183s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5184s,@exec_prefix@,$exec_prefix,;t t
5185s,@prefix@,$prefix,;t t
5186s,@program_transform_name@,$program_transform_name,;t t
5187s,@bindir@,$bindir,;t t
5188s,@sbindir@,$sbindir,;t t
5189s,@libexecdir@,$libexecdir,;t t
5190s,@datadir@,$datadir,;t t
5191s,@sysconfdir@,$sysconfdir,;t t
5192s,@sharedstatedir@,$sharedstatedir,;t t
5193s,@localstatedir@,$localstatedir,;t t
5194s,@libdir@,$libdir,;t t
5195s,@includedir@,$includedir,;t t
5196s,@oldincludedir@,$oldincludedir,;t t
5197s,@infodir@,$infodir,;t t
5198s,@mandir@,$mandir,;t t
5199s,@build_alias@,$build_alias,;t t
5200s,@host_alias@,$host_alias,;t t
5201s,@target_alias@,$target_alias,;t t
5202s,@DEFS@,$DEFS,;t t
5203s,@ECHO_C@,$ECHO_C,;t t
5204s,@ECHO_N@,$ECHO_N,;t t
5205s,@ECHO_T@,$ECHO_T,;t t
5206s,@LIBS@,$LIBS,;t t
5207s,@CC@,$CC,;t t
5208s,@CFLAGS@,$CFLAGS,;t t
5209s,@LDFLAGS@,$LDFLAGS,;t t
5210s,@CPPFLAGS@,$CPPFLAGS,;t t
5211s,@ac_ct_CC@,$ac_ct_CC,;t t
5212s,@EXEEXT@,$EXEEXT,;t t
5213s,@OBJEXT@,$OBJEXT,;t t
5214s,@build@,$build,;t t
5215s,@build_cpu@,$build_cpu,;t t
5216s,@build_vendor@,$build_vendor,;t t
5217s,@build_os@,$build_os,;t t
5218s,@host@,$host,;t t
5219s,@host_cpu@,$host_cpu,;t t
5220s,@host_vendor@,$host_vendor,;t t
5221s,@host_os@,$host_os,;t t
5222s,@target@,$target,;t t
5223s,@target_cpu@,$target_cpu,;t t
5224s,@target_vendor@,$target_vendor,;t t
5225s,@target_os@,$target_os,;t t
5226s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5227s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5228s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5229s,@CPP@,$CPP,;t t
5230s,@EGREP@,$EGREP,;t t
e28b3332 5231s,@LIBOBJS@,$LIBOBJS,;t t
c16158bc
JM
5232s,@PKGVERSION@,$PKGVERSION,;t t
5233s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5234s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
dae5f5cf
DJ
5235s,@RDYNAMIC@,$RDYNAMIC,;t t
5236s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5237s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5238s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
fb1e4ffc
DJ
5239s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5240s,@srv_xmlfiles@,$srv_xmlfiles,;t t
dae5f5cf
DJ
5241s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5242CEOF
bec39cab 5243
b80864fb
DJ
5244_ACEOF
5245
dae5f5cf
DJ
5246 cat >>$CONFIG_STATUS <<\_ACEOF
5247 # Split the substitutions into bite-sized pieces for seds with
5248 # small command number limits, like on Digital OSF/1 and HP-UX.
5249 ac_max_sed_lines=48
5250 ac_sed_frag=1 # Number of current file.
5251 ac_beg=1 # First line for current file.
5252 ac_end=$ac_max_sed_lines # Line after last line for current file.
5253 ac_more_lines=:
5254 ac_sed_cmds=
5255 while $ac_more_lines; do
5256 if test $ac_beg -gt 1; then
5257 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5258 else
5259 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5260 fi
5261 if test ! -s $tmp/subs.frag; then
5262 ac_more_lines=false
5263 else
5264 # The purpose of the label and of the branching condition is to
5265 # speed up the sed processing (if there are no `@' at all, there
5266 # is no need to browse any of the substitutions).
5267 # These are the two extra sed commands mentioned above.
5268 (echo ':t
5269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5270 if test -z "$ac_sed_cmds"; then
5271 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5272 else
5273 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5274 fi
5275 ac_sed_frag=`expr $ac_sed_frag + 1`
5276 ac_beg=$ac_end
5277 ac_end=`expr $ac_end + $ac_max_sed_lines`
5278 fi
5279 done
5280 if test -z "$ac_sed_cmds"; then
5281 ac_sed_cmds=cat
d6e9fb05 5282 fi
dae5f5cf 5283fi # test -n "$CONFIG_FILES"
d6e9fb05 5284
bec39cab
AC
5285_ACEOF
5286cat >>$CONFIG_STATUS <<\_ACEOF
dae5f5cf
DJ
5287for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5289 case $ac_file in
5290 - | *:- | *:-:* ) # input from stdin
5291 cat >$tmp/stdin
5292 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5293 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5294 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5295 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5296 * ) ac_file_in=$ac_file.in ;;
d6e9fb05
JK
5297 esac
5298
dae5f5cf
DJ
5299 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5300 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
5301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5302 X"$ac_file" : 'X\(//\)[^/]' \| \
5303 X"$ac_file" : 'X\(//\)$' \| \
dae5f5cf
DJ
5304 X"$ac_file" : 'X\(/\)' \| \
5305 . : '\(.\)' 2>/dev/null ||
bec39cab 5306echo X"$ac_file" |
dae5f5cf
DJ
5307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5309 /^X\(\/\/\)$/{ s//\1/; q; }
5310 /^X\(\/\).*/{ s//\1/; q; }
5311 s/.*/./; q'`
5312 { if $as_mkdir_p; then
5313 mkdir -p "$ac_dir"
5314 else
5315 as_dir="$ac_dir"
bec39cab 5316 as_dirs=
dae5f5cf
DJ
5317 while test ! -d "$as_dir"; do
5318 as_dirs="$as_dir $as_dirs"
5319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
5320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5321 X"$as_dir" : 'X\(//\)[^/]' \| \
5322 X"$as_dir" : 'X\(//\)$' \| \
dae5f5cf
DJ
5323 X"$as_dir" : 'X\(/\)' \| \
5324 . : '\(.\)' 2>/dev/null ||
bec39cab 5325echo X"$as_dir" |
dae5f5cf
DJ
5326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5328 /^X\(\/\/\)$/{ s//\1/; q; }
5329 /^X\(\/\).*/{ s//\1/; q; }
5330 s/.*/./; q'`
bec39cab 5331 done
dae5f5cf
DJ
5332 test ! -n "$as_dirs" || mkdir $as_dirs
5333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5334echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 5335 { (exit 1); exit 1; }; }; }
dae5f5cf 5336
bec39cab
AC
5337 ac_builddir=.
5338
dae5f5cf 5339if test "$ac_dir" != .; then
bec39cab 5340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dae5f5cf
DJ
5341 # A "../" for each directory in $ac_dir_suffix.
5342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5343else
5344 ac_dir_suffix= ac_top_builddir=
5345fi
bec39cab
AC
5346
5347case $srcdir in
dae5f5cf 5348 .) # No --srcdir option. We are building in place.
bec39cab 5349 ac_srcdir=.
dae5f5cf
DJ
5350 if test -z "$ac_top_builddir"; then
5351 ac_top_srcdir=.
5352 else
5353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5354 fi ;;
5355 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 5356 ac_srcdir=$srcdir$ac_dir_suffix;
dae5f5cf
DJ
5357 ac_top_srcdir=$srcdir ;;
5358 *) # Relative path.
5359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
5361esac
5362
dae5f5cf
DJ
5363# Do not use `cd foo && pwd` to compute absolute paths, because
5364# the directories may not exist.
5365case `pwd` in
5366.) ac_abs_builddir="$ac_dir";;
5367*)
5368 case "$ac_dir" in
5369 .) ac_abs_builddir=`pwd`;;
5370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5371 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5372 esac;;
5373esac
5374case $ac_abs_builddir in
5375.) ac_abs_top_builddir=${ac_top_builddir}.;;
5376*)
5377 case ${ac_top_builddir}. in
5378 .) ac_abs_top_builddir=$ac_abs_builddir;;
5379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5381 esac;;
5382esac
5383case $ac_abs_builddir in
5384.) ac_abs_srcdir=$ac_srcdir;;
5385*)
5386 case $ac_srcdir in
5387 .) ac_abs_srcdir=$ac_abs_builddir;;
5388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5390 esac;;
5391esac
5392case $ac_abs_builddir in
5393.) ac_abs_top_srcdir=$ac_top_srcdir;;
5394*)
5395 case $ac_top_srcdir in
5396 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5399 esac;;
5400esac
bec39cab 5401
d6e9fb05 5402
bec39cab
AC
5403 case $INSTALL in
5404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dae5f5cf 5405 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d6e9fb05 5406 esac
3db0444b 5407
dae5f5cf
DJ
5408 if test x"$ac_file" != x-; then
5409 { echo "$as_me:$LINENO: creating $ac_file" >&5
5410echo "$as_me: creating $ac_file" >&6;}
5411 rm -f "$ac_file"
5412 fi
5413 # Let's still pretend it is `configure' which instantiates (i.e., don't
5414 # use $as_me), people would be surprised to read:
5415 # /* config.h. Generated by config.status. */
5416 if test x"$ac_file" = x-; then
5417 configure_input=
5418 else
5419 configure_input="$ac_file. "
5420 fi
5421 configure_input=$configure_input"Generated from `echo $ac_file_in |
5422 sed 's,.*/,,'` by configure."
5423
5424 # First look for the input files in the build tree, otherwise in the
5425 # src tree.
5426 ac_file_inputs=`IFS=:
5427 for f in $ac_file_in; do
5428 case $f in
5429 -) echo $tmp/stdin ;;
5430 [\\/$]*)
5431 # Absolute (can't be DOS-style, as IFS=:)
5432 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5433echo "$as_me: error: cannot find input file: $f" >&2;}
5434 { (exit 1); exit 1; }; }
5435 echo "$f";;
5436 *) # Relative
5437 if test -f "$f"; then
5438 # Build tree
5439 echo "$f"
5440 elif test -f "$srcdir/$f"; then
5441 # Source tree
5442 echo "$srcdir/$f"
5443 else
5444 # /dev/null tree
5445 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5446echo "$as_me: error: cannot find input file: $f" >&2;}
5447 { (exit 1); exit 1; }; }
5448 fi;;
5449 esac
5450 done` || { (exit 1); exit 1; }
bec39cab
AC
5451_ACEOF
5452cat >>$CONFIG_STATUS <<_ACEOF
5453 sed "$ac_vpsub
5454$extrasub
5455_ACEOF
5456cat >>$CONFIG_STATUS <<\_ACEOF
5457:t
5458/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dae5f5cf
DJ
5459s,@configure_input@,$configure_input,;t t
5460s,@srcdir@,$ac_srcdir,;t t
5461s,@abs_srcdir@,$ac_abs_srcdir,;t t
5462s,@top_srcdir@,$ac_top_srcdir,;t t
5463s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5464s,@builddir@,$ac_builddir,;t t
5465s,@abs_builddir@,$ac_abs_builddir,;t t
5466s,@top_builddir@,$ac_top_builddir,;t t
5467s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5468s,@INSTALL@,$ac_INSTALL,;t t
5469" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5470 rm -f $tmp/stdin
5471 if test x"$ac_file" != x-; then
5472 mv $tmp/out $ac_file
5473 else
5474 cat $tmp/out
5475 rm -f $tmp/out
5476 fi
5477
5478done
5479_ACEOF
5480cat >>$CONFIG_STATUS <<\_ACEOF
5481
5482#
5483# CONFIG_HEADER section.
5484#
5485
5486# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5487# NAME is the cpp macro being defined and VALUE is the value it is being given.
5488#
5489# ac_d sets the value in "#define NAME VALUE" lines.
5490ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5491ac_dB='[ ].*$,\1#\2'
5492ac_dC=' '
5493ac_dD=',;t'
5494# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5495ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5496ac_uB='$,\1#\2define\3'
5497ac_uC=' '
5498ac_uD=',;t'
5499
5500for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 5502 case $ac_file in
dae5f5cf
DJ
5503 - | *:- | *:-:* ) # input from stdin
5504 cat >$tmp/stdin
5505 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5506 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5507 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5509 * ) ac_file_in=$ac_file.in ;;
84563040 5510 esac
dae5f5cf
DJ
5511
5512 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5513echo "$as_me: creating $ac_file" >&6;}
5514
5515 # First look for the input files in the build tree, otherwise in the
5516 # src tree.
5517 ac_file_inputs=`IFS=:
5518 for f in $ac_file_in; do
5519 case $f in
5520 -) echo $tmp/stdin ;;
5521 [\\/$]*)
5522 # Absolute (can't be DOS-style, as IFS=:)
5523 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5524echo "$as_me: error: cannot find input file: $f" >&2;}
5525 { (exit 1); exit 1; }; }
5526 # Do quote $f, to prevent DOS paths from being IFS'd.
5527 echo "$f";;
5528 *) # Relative
5529 if test -f "$f"; then
5530 # Build tree
5531 echo "$f"
5532 elif test -f "$srcdir/$f"; then
5533 # Source tree
5534 echo "$srcdir/$f"
5535 else
5536 # /dev/null tree
5537 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5538echo "$as_me: error: cannot find input file: $f" >&2;}
5539 { (exit 1); exit 1; }; }
5540 fi;;
5541 esac
5542 done` || { (exit 1); exit 1; }
5543 # Remove the trailing spaces.
5544 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5545
bec39cab
AC
5546_ACEOF
5547
dae5f5cf
DJ
5548# Transform confdefs.h into two sed scripts, `conftest.defines' and
5549# `conftest.undefs', that substitutes the proper values into
5550# config.h.in to produce config.h. The first handles `#define'
5551# templates, and the second `#undef' templates.
5552# And first: Protect against being on the right side of a sed subst in
5553# config.status. Protect against being in an unquoted here document
5554# in config.status.
5555rm -f conftest.defines conftest.undefs
5556# Using a here document instead of a string reduces the quoting nightmare.
5557# Putting comments in sed scripts is not portable.
5558#
5559# `end' is used to avoid that the second main sed command (meant for
5560# 0-ary CPP macros) applies to n-ary macro definitions.
5561# See the Autoconf documentation for `clear'.
5562cat >confdef2sed.sed <<\_ACEOF
5563s/[\\&,]/\\&/g
5564s,[\\$`],\\&,g
5565t clear
5566: clear
5567s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5568t end
5569s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5570: end
5571_ACEOF
5572# If some macros were called several times there might be several times
5573# the same #defines, which is useless. Nevertheless, we may not want to
5574# sort them, since we want the *last* AC-DEFINE to be honored.
5575uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5576sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5577rm -f confdef2sed.sed
5578
5579# This sed command replaces #undef with comments. This is necessary, for
84563040
DJ
5580# example, in the case of _POSIX_SOURCE, which is predefined and required
5581# on some systems where configure will not decide to define it.
dae5f5cf
DJ
5582cat >>conftest.undefs <<\_ACEOF
5583s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
b80864fb 5584_ACEOF
dae5f5cf
DJ
5585
5586# Break up conftest.defines because some shells have a limit on the size
5587# of here documents, and old seds have small limits too (100 cmds).
5588echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5589echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5590echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5591echo ' :' >>$CONFIG_STATUS
5592rm -f conftest.tail
5593while grep . conftest.defines >/dev/null
5594do
5595 # Write a limited-size here document to $tmp/defines.sed.
5596 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5597 # Speed up: don't consider the non `#define' lines.
5598 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5599 # Work around the forget-to-reset-the-flag bug.
5600 echo 't clr' >>$CONFIG_STATUS
5601 echo ': clr' >>$CONFIG_STATUS
5602 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 5603 echo 'CEOF
dae5f5cf
DJ
5604 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5605 rm -f $tmp/in
5606 mv $tmp/out $tmp/in
5607' >>$CONFIG_STATUS
5608 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
5609 rm -f conftest.defines
5610 mv conftest.tail conftest.defines
5611done
dae5f5cf
DJ
5612rm -f conftest.defines
5613echo ' fi # grep' >>$CONFIG_STATUS
5614echo >>$CONFIG_STATUS
5615
5616# Break up conftest.undefs because some shells have a limit on the size
5617# of here documents, and old seds have small limits too (100 cmds).
5618echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5619rm -f conftest.tail
5620while grep . conftest.undefs >/dev/null
5621do
5622 # Write a limited-size here document to $tmp/undefs.sed.
5623 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5624 # Speed up: don't consider the non `#undef'
5625 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5626 # Work around the forget-to-reset-the-flag bug.
5627 echo 't clr' >>$CONFIG_STATUS
5628 echo ': clr' >>$CONFIG_STATUS
5629 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5630 echo 'CEOF
5631 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5632 rm -f $tmp/in
5633 mv $tmp/out $tmp/in
5634' >>$CONFIG_STATUS
5635 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5636 rm -f conftest.undefs
5637 mv conftest.tail conftest.undefs
5638done
5639rm -f conftest.undefs
bec39cab
AC
5640
5641cat >>$CONFIG_STATUS <<\_ACEOF
dae5f5cf
DJ
5642 # Let's still pretend it is `configure' which instantiates (i.e., don't
5643 # use $as_me), people would be surprised to read:
5644 # /* config.h. Generated by config.status. */
5645 if test x"$ac_file" = x-; then
5646 echo "/* Generated by configure. */" >$tmp/config.h
5647 else
5648 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5649 fi
5650 cat $tmp/in >>$tmp/config.h
5651 rm -f $tmp/in
bec39cab 5652 if test x"$ac_file" != x-; then
dae5f5cf 5653 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
5654 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5655echo "$as_me: $ac_file is unchanged" >&6;}
5656 else
dae5f5cf
DJ
5657 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5658$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5659 X"$ac_file" : 'X\(//\)[^/]' \| \
5660 X"$ac_file" : 'X\(//\)$' \| \
5661 X"$ac_file" : 'X\(/\)' \| \
5662 . : '\(.\)' 2>/dev/null ||
5663echo X"$ac_file" |
5664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5666 /^X\(\/\/\)$/{ s//\1/; q; }
5667 /^X\(\/\).*/{ s//\1/; q; }
5668 s/.*/./; q'`
5669 { if $as_mkdir_p; then
5670 mkdir -p "$ac_dir"
5671 else
5672 as_dir="$ac_dir"
5673 as_dirs=
5674 while test ! -d "$as_dir"; do
5675 as_dirs="$as_dir $as_dirs"
5676 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5678 X"$as_dir" : 'X\(//\)[^/]' \| \
5679 X"$as_dir" : 'X\(//\)$' \| \
5680 X"$as_dir" : 'X\(/\)' \| \
5681 . : '\(.\)' 2>/dev/null ||
5682echo X"$as_dir" |
5683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5685 /^X\(\/\/\)$/{ s//\1/; q; }
5686 /^X\(\/\).*/{ s//\1/; q; }
5687 s/.*/./; q'`
5688 done
5689 test ! -n "$as_dirs" || mkdir $as_dirs
5690 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5691echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5692 { (exit 1); exit 1; }; }; }
5693
bec39cab 5694 rm -f $ac_file
dae5f5cf 5695 mv $tmp/config.h $ac_file
84563040 5696 fi
bec39cab 5697 else
dae5f5cf
DJ
5698 cat $tmp/config.h
5699 rm -f $tmp/config.h
d6e9fb05 5700 fi
dae5f5cf
DJ
5701done
5702_ACEOF
5703cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 5704
dae5f5cf
DJ
5705#
5706# CONFIG_COMMANDS section.
5707#
5708for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5709 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5710 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5711 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5712$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5713 X"$ac_dest" : 'X\(//\)[^/]' \| \
5714 X"$ac_dest" : 'X\(//\)$' \| \
5715 X"$ac_dest" : 'X\(/\)' \| \
5716 . : '\(.\)' 2>/dev/null ||
5717echo X"$ac_dest" |
5718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5720 /^X\(\/\/\)$/{ s//\1/; q; }
5721 /^X\(\/\).*/{ s//\1/; q; }
5722 s/.*/./; q'`
5723 { if $as_mkdir_p; then
5724 mkdir -p "$ac_dir"
5725 else
5726 as_dir="$ac_dir"
5727 as_dirs=
5728 while test ! -d "$as_dir"; do
5729 as_dirs="$as_dir $as_dirs"
5730 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5731$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5732 X"$as_dir" : 'X\(//\)[^/]' \| \
5733 X"$as_dir" : 'X\(//\)$' \| \
5734 X"$as_dir" : 'X\(/\)' \| \
5735 . : '\(.\)' 2>/dev/null ||
5736echo X"$as_dir" |
5737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5739 /^X\(\/\/\)$/{ s//\1/; q; }
5740 /^X\(\/\).*/{ s//\1/; q; }
5741 s/.*/./; q'`
5742 done
5743 test ! -n "$as_dirs" || mkdir $as_dirs
5744 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5745echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5746 { (exit 1); exit 1; }; }; }
84563040 5747
dae5f5cf 5748 ac_builddir=.
d6e9fb05 5749
dae5f5cf
DJ
5750if test "$ac_dir" != .; then
5751 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5752 # A "../" for each directory in $ac_dir_suffix.
5753 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5754else
5755 ac_dir_suffix= ac_top_builddir=
5756fi
5757
5758case $srcdir in
5759 .) # No --srcdir option. We are building in place.
5760 ac_srcdir=.
5761 if test -z "$ac_top_builddir"; then
5762 ac_top_srcdir=.
5763 else
5764 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5765 fi ;;
5766 [\\/]* | ?:[\\/]* ) # Absolute path.
5767 ac_srcdir=$srcdir$ac_dir_suffix;
5768 ac_top_srcdir=$srcdir ;;
5769 *) # Relative path.
5770 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5771 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5772esac
5773
5774# Do not use `cd foo && pwd` to compute absolute paths, because
5775# the directories may not exist.
5776case `pwd` in
5777.) ac_abs_builddir="$ac_dir";;
5778*)
5779 case "$ac_dir" in
5780 .) ac_abs_builddir=`pwd`;;
5781 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5782 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5783 esac;;
5784esac
5785case $ac_abs_builddir in
5786.) ac_abs_top_builddir=${ac_top_builddir}.;;
5787*)
5788 case ${ac_top_builddir}. in
5789 .) ac_abs_top_builddir=$ac_abs_builddir;;
5790 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5791 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5792 esac;;
5793esac
5794case $ac_abs_builddir in
5795.) ac_abs_srcdir=$ac_srcdir;;
5796*)
5797 case $ac_srcdir in
5798 .) ac_abs_srcdir=$ac_abs_builddir;;
5799 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5800 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5801 esac;;
5802esac
5803case $ac_abs_builddir in
5804.) ac_abs_top_srcdir=$ac_top_srcdir;;
5805*)
5806 case $ac_top_srcdir in
5807 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5808 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5809 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5810 esac;;
5811esac
5812
5813
5814 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5815echo "$as_me: executing $ac_dest commands" >&6;}
5816 case $ac_dest in
5817 default ) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
5818xconfig.h:config.in)
5819echo > stamp-h ;;
5820esac
bec39cab
AC
5821 ;;
5822 esac
dae5f5cf
DJ
5823done
5824_ACEOF
d6e9fb05 5825
dae5f5cf 5826cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
5827
5828{ (exit 0); exit 0; }
5829_ACEOF
d6e9fb05 5830chmod +x $CONFIG_STATUS
bec39cab
AC
5831ac_clean_files=$ac_clean_files_save
5832
5833
5834# configure is writing to config.log, and then calls config.status.
5835# config.status does its own redirection, appending to config.log.
5836# Unfortunately, on DOS this fails, as config.log is still kept open
5837# by configure, so config.status won't be able to write to it; its
5838# output is simply discarded. So we exec the FD to /dev/null,
5839# effectively closing config.log, so it can be properly (re)opened and
5840# appended to by config.status. When coming back to configure, we
5841# need to make the FD available again.
5842if test "$no_create" != yes; then
5843 ac_cs_success=:
5844 ac_config_status_args=
5845 test "$silent" = yes &&
5846 ac_config_status_args="$ac_config_status_args --quiet"
5847 exec 5>/dev/null
5848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5849 exec 5>>config.log
5850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5851 # would make configure fail if this is the last instruction.
5852 $ac_cs_success || { (exit 1); exit 1; }
5853fi
d6e9fb05 5854