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