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