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