* configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
[deliverable/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
ccbd4912 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); } &&
ccbd4912
MK
1868 { ac_try='test -z "$ac_c_werror_flag"
1869 || test ! -s conftest.err'
bec39cab
AC
1870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1871 (eval $ac_try) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; } &&
1875 { ac_try='test -s conftest.$ac_objext'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1881 ac_compiler_gnu=yes
84563040 1882else
bec39cab
AC
1883 echo "$as_me: failed program was:" >&5
1884sed 's/^/| /' conftest.$ac_ext >&5
1885
1886ac_compiler_gnu=no
84563040 1887fi
bec39cab
AC
1888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1889ac_cv_c_compiler_gnu=$ac_compiler_gnu
84563040 1890
bec39cab
AC
1891fi
1892echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1893echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1894GCC=`test $ac_compiler_gnu = yes && echo yes`
1895ac_test_CFLAGS=${CFLAGS+set}
1896ac_save_CFLAGS=$CFLAGS
1897CFLAGS="-g"
1898echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1899echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1900if test "${ac_cv_prog_cc_g+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 1902else
bec39cab
AC
1903 cat >conftest.$ac_ext <<_ACEOF
1904/* confdefs.h. */
1905_ACEOF
1906cat confdefs.h >>conftest.$ac_ext
1907cat >>conftest.$ac_ext <<_ACEOF
1908/* end confdefs.h. */
1909
1910int
1911main ()
1912{
1913
1914 ;
1915 return 0;
1916}
1917_ACEOF
1918rm -f conftest.$ac_objext
1919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920 (eval $ac_compile) 2>conftest.er1
1921 ac_status=$?
1922 grep -v '^ *+' conftest.er1 >conftest.err
1923 rm -f conftest.er1
1924 cat conftest.err >&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); } &&
ccbd4912
MK
1927 { ac_try='test -z "$ac_c_werror_flag"
1928 || test ! -s conftest.err'
bec39cab
AC
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; } &&
1934 { ac_try='test -s conftest.$ac_objext'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
84563040
DJ
1940 ac_cv_prog_cc_g=yes
1941else
bec39cab
AC
1942 echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
84563040 1944
bec39cab 1945ac_cv_prog_cc_g=no
84563040 1946fi
bec39cab
AC
1947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1948fi
1949echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1950echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
84563040 1951if test "$ac_test_CFLAGS" = set; then
bec39cab 1952 CFLAGS=$ac_save_CFLAGS
84563040
DJ
1953elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1955 CFLAGS="-g -O2"
1956 else
1957 CFLAGS="-g"
1958 fi
1959else
1960 if test "$GCC" = yes; then
1961 CFLAGS="-O2"
1962 else
1963 CFLAGS=
1964 fi
1965fi
bec39cab
AC
1966echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1967echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1968if test "${ac_cv_prog_cc_stdc+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 ac_cv_prog_cc_stdc=no
1972ac_save_CC=$CC
1973cat >conftest.$ac_ext <<_ACEOF
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979#include <stdarg.h>
1980#include <stdio.h>
1981#include <sys/types.h>
1982#include <sys/stat.h>
1983/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1984struct buf { int x; };
1985FILE * (*rcsopen) (struct buf *, struct stat *, int);
1986static char *e (p, i)
1987 char **p;
1988 int i;
1989{
1990 return p[i];
1991}
1992static char *f (char * (*g) (char **, int), char **p, ...)
1993{
1994 char *s;
1995 va_list v;
1996 va_start (v,p);
1997 s = g (p, va_arg (v,int));
1998 va_end (v);
1999 return s;
2000}
2001
2002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2003 function prototypes and stuff, but not '\xHH' hex character constants.
2004 These don't provoke an error unfortunately, instead are silently treated
2005 as 'x'. The following induces an error, until -std1 is added to get
2006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2007 array size at least. It's necessary to write '\x00'==0 to get something
2008 that's true only with -std1. */
2009int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2010
2011int test (int i, double x);
2012struct s1 {int (*f) (int a);};
2013struct s2 {int (*f) (double a);};
2014int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2015int argc;
2016char **argv;
2017int
2018main ()
2019{
2020return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025# Don't try gcc -ansi; that turns off useful extensions and
2026# breaks some systems' header files.
2027# AIX -qlanglvl=ansi
2028# Ultrix and OSF/1 -std1
2029# HP-UX 10.20 and later -Ae
2030# HP-UX older versions -Aa -D_HPUX_SOURCE
2031# SVR4 -Xc -D__EXTENSIONS__
2032for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2033do
2034 CC="$ac_save_CC $ac_arg"
2035 rm -f conftest.$ac_objext
2036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>conftest.er1
2038 ac_status=$?
2039 grep -v '^ *+' conftest.er1 >conftest.err
2040 rm -f conftest.er1
2041 cat conftest.err >&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
ccbd4912
MK
2044 { ac_try='test -z "$ac_c_werror_flag"
2045 || test ! -s conftest.err'
bec39cab
AC
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 (eval $ac_try) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; } &&
2051 { ac_try='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 ac_cv_prog_cc_stdc=$ac_arg
2058break
2059else
2060 echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063fi
2064rm -f conftest.err conftest.$ac_objext
2065done
2066rm -f conftest.$ac_ext conftest.$ac_objext
2067CC=$ac_save_CC
2068
2069fi
2070
2071case "x$ac_cv_prog_cc_stdc" in
2072 x|xno)
2073 echo "$as_me:$LINENO: result: none needed" >&5
2074echo "${ECHO_T}none needed" >&6 ;;
2075 *)
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2077echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2078 CC="$CC $ac_cv_prog_cc_stdc" ;;
2079esac
2080
2081# Some people use a C++ compiler to compile C. Since we use `exit',
2082# in C++ we need to declare it. In case someone uses the same compiler
2083# for both compiling C and C++ we need to have the C++ compiler decide
2084# the declaration of exit, since it's the most demanding environment.
2085cat >conftest.$ac_ext <<_ACEOF
2086#ifndef __cplusplus
2087 choke me
2088#endif
2089_ACEOF
2090rm -f conftest.$ac_objext
2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2093 ac_status=$?
2094 grep -v '^ *+' conftest.er1 >conftest.err
2095 rm -f conftest.er1
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
ccbd4912
MK
2099 { ac_try='test -z "$ac_c_werror_flag"
2100 || test ! -s conftest.err'
bec39cab
AC
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; } &&
2106 { ac_try='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 for ac_declaration in \
2113 '' \
2114 'extern "C" void std::exit (int) throw (); using std::exit;' \
2115 'extern "C" void std::exit (int); using std::exit;' \
2116 'extern "C" void exit (int) throw ();' \
2117 'extern "C" void exit (int);' \
2118 'void exit (int);'
2119do
2120 cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126$ac_declaration
2127#include <stdlib.h>
2128int
2129main ()
2130{
2131exit (42);
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136rm -f conftest.$ac_objext
2137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>conftest.er1
2139 ac_status=$?
2140 grep -v '^ *+' conftest.er1 >conftest.err
2141 rm -f conftest.er1
2142 cat conftest.err >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); } &&
ccbd4912
MK
2145 { ac_try='test -z "$ac_c_werror_flag"
2146 || test ! -s conftest.err'
bec39cab
AC
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 (eval $ac_try) 2>&5
2149 ac_status=$?
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 :
2159else
2160 echo "$as_me: failed program was:" >&5
2161sed 's/^/| /' conftest.$ac_ext >&5
2162
2163continue
2164fi
2165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h. */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h. */
2172$ac_declaration
2173int
2174main ()
2175{
2176exit (42);
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181rm -f conftest.$ac_objext
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2184 ac_status=$?
2185 grep -v '^ *+' conftest.er1 >conftest.err
2186 rm -f conftest.er1
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
ccbd4912
MK
2190 { ac_try='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 break
2204else
2205 echo "$as_me: failed program was:" >&5
2206sed 's/^/| /' conftest.$ac_ext >&5
2207
2208fi
2209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2210done
2211rm -f conftest*
2212if test -n "$ac_declaration"; then
2213 echo '#ifdef __cplusplus' >>confdefs.h
2214 echo $ac_declaration >>confdefs.h
2215 echo '#endif' >>confdefs.h
2216fi
2217
2218else
2219 echo "$as_me: failed program was:" >&5
2220sed 's/^/| /' conftest.$ac_ext >&5
2221
2222fi
2223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224ac_ext=c
2225ac_cpp='$CPP $CPPFLAGS'
2226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228ac_compiler_gnu=$ac_cv_c_compiler_gnu
84563040
DJ
2229
2230
d6e9fb05
JK
2231ac_aux_dir=
2232for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2233 if test -f $ac_dir/install-sh; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/install-sh -c"
2236 break
2237 elif test -f $ac_dir/install.sh; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install.sh -c"
2240 break
bec39cab
AC
2241 elif test -f $ac_dir/shtool; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/shtool install -c"
2244 break
d6e9fb05
JK
2245 fi
2246done
2247if test -z "$ac_aux_dir"; then
bec39cab
AC
2248 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2249echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2250 { (exit 1); exit 1; }; }
d6e9fb05 2251fi
bec39cab
AC
2252ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2253ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2254ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
d6e9fb05
JK
2255
2256# Make sure we can run config.sub.
bec39cab
AC
2257$ac_config_sub sun4 >/dev/null 2>&1 ||
2258 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2259echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2260 { (exit 1); exit 1; }; }
2261
2262echo "$as_me:$LINENO: checking build system type" >&5
2263echo $ECHO_N "checking build system type... $ECHO_C" >&6
2264if test "${ac_cv_build+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267 ac_cv_build_alias=$build_alias
2268test -z "$ac_cv_build_alias" &&
2269 ac_cv_build_alias=`$ac_config_guess`
2270test -z "$ac_cv_build_alias" &&
2271 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2272echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2273 { (exit 1); exit 1; }; }
2274ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2275 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2276echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2277 { (exit 1); exit 1; }; }
d6e9fb05 2278
bec39cab
AC
2279fi
2280echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2281echo "${ECHO_T}$ac_cv_build" >&6
2282build=$ac_cv_build
2283build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2284build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2285build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2286
2287
2288echo "$as_me:$LINENO: checking host system type" >&5
2289echo $ECHO_N "checking host system type... $ECHO_C" >&6
2290if test "${ac_cv_host+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293 ac_cv_host_alias=$host_alias
2294test -z "$ac_cv_host_alias" &&
2295 ac_cv_host_alias=$ac_cv_build_alias
2296ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2297 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2298echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2299 { (exit 1); exit 1; }; }
d6e9fb05 2300
bec39cab
AC
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303echo "${ECHO_T}$ac_cv_host" >&6
2304host=$ac_cv_host
2305host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2306host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2307host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2308
2309
2310echo "$as_me:$LINENO: checking target system type" >&5
2311echo $ECHO_N "checking target system type... $ECHO_C" >&6
2312if test "${ac_cv_target+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315 ac_cv_target_alias=$target_alias
2316test "x$ac_cv_target_alias" = "x" &&
2317 ac_cv_target_alias=$ac_cv_host_alias
2318ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2319 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2320echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
d6e9fb05 2322
bec39cab
AC
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2325echo "${ECHO_T}$ac_cv_target" >&6
2326target=$ac_cv_target
2327target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2328target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2329target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
d6e9fb05 2330
d6e9fb05 2331
bec39cab
AC
2332# The aliases save the names the user supplied, while $host etc.
2333# will get canonicalized.
2334test -n "$target_alias" &&
d6e9fb05
JK
2335 test "$program_prefix$program_suffix$program_transform_name" = \
2336 NONENONEs,x,x, &&
2337 program_prefix=${target_alias}-
2338
2339# Find a good install program. We prefer a C program (faster),
2340# so one script is as good as another. But avoid the broken or
2341# incompatible versions:
2342# SysV /etc/install, /usr/sbin/install
2343# SunOS /usr/etc/install
2344# IRIX /sbin/install
2345# AIX /bin/install
bec39cab 2346# AmigaOS /C/install, which installs bootblocks on floppy discs
e4f78295 2347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d6e9fb05
JK
2348# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
bec39cab 2350# OS/2's system install, which has a completely different semantic
d6e9fb05 2351# ./install, which can be erroneously created by make from ./install.sh.
bec39cab
AC
2352echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2353echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
d6e9fb05 2354if test -z "$INSTALL"; then
bec39cab
AC
2355if test "${ac_cv_path_install+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 # Account for people who put trailing slashes in PATH elements.
2364case $as_dir/ in
2365 ./ | .// | /cC/* | \
2366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2368 /usr/ucb/* ) ;;
2369 *)
2370 # OSF1 and SCO ODT 3.0 have their own names for install.
2371 # Don't use installbsd from OSF since it installs stuff as root
2372 # by default.
2373 for ac_prog in ginstall scoinst install; do
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d6e9fb05 2376 if test $ac_prog = install &&
bec39cab 2377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
d6e9fb05 2378 # AIX install. It has an incompatible calling convention.
d6e9fb05 2379 :
bec39cab
AC
2380 elif test $ac_prog = install &&
2381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # program-specific install script used by HP pwplus--don't use.
2383 :
d6e9fb05 2384 else
bec39cab
AC
2385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2386 break 3
d6e9fb05
JK
2387 fi
2388 fi
2389 done
bec39cab
AC
2390 done
2391 ;;
2392esac
2393done
2394
d6e9fb05
JK
2395
2396fi
2397 if test "${ac_cv_path_install+set}" = set; then
bec39cab 2398 INSTALL=$ac_cv_path_install
d6e9fb05
JK
2399 else
2400 # As a last resort, use the slow shell script. We don't cache a
2401 # path for INSTALL within a source directory, because that will
2402 # break other packages using the cache if that directory is
2403 # removed, or if the path is relative.
bec39cab 2404 INSTALL=$ac_install_sh
d6e9fb05
JK
2405 fi
2406fi
bec39cab
AC
2407echo "$as_me:$LINENO: result: $INSTALL" >&5
2408echo "${ECHO_T}$INSTALL" >&6
d6e9fb05
JK
2409
2410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411# It thinks the first close brace ends the variable substitution.
2412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
bec39cab 2414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e4f78295 2415
d6e9fb05
JK
2416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418
dcdb98d2
DJ
2419test "$program_prefix" != NONE &&
2420 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2421# Use a double $ so make ignores it.
2422test "$program_suffix" != NONE &&
2423 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2424# Double any \ or $. echo might interpret backslashes.
2425# By default was `s,x,x', remove it if useless.
2426cat <<\_ACEOF >conftest.sed
2427s/[\\$]/&&/g;s/;s,x,x,$//
2428_ACEOF
2429program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2430rm conftest.sed
2431
2432
bec39cab
AC
2433
2434ac_ext=c
2435ac_cpp='$CPP $CPPFLAGS'
2436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2440echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
84563040
DJ
2441# On Suns, sometimes $CPP names a directory.
2442if test -n "$CPP" && test -d "$CPP"; then
2443 CPP=
2444fi
2445if test -z "$CPP"; then
bec39cab
AC
2446 if test "${ac_cv_prog_CPP+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2448else
bec39cab
AC
2449 # Double quotes because CPP needs to be expanded
2450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2451 do
2452 ac_preproc_ok=false
2453for ac_c_preproc_warn_flag in '' yes
2454do
2455 # Use a header file that comes with gcc, so configuring glibc
2456 # with a fresh cross-compiler works.
2457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2458 # <limits.h> exists even on freestanding compilers.
84563040 2459 # On the NeXT, cc -E runs the code through the compiler's parser,
bec39cab
AC
2460 # not just through cpp. "Syntax error" is here to catch this case.
2461 cat >conftest.$ac_ext <<_ACEOF
2462/* confdefs.h. */
2463_ACEOF
2464cat confdefs.h >>conftest.$ac_ext
2465cat >>conftest.$ac_ext <<_ACEOF
2466/* end confdefs.h. */
2467#ifdef __STDC__
2468# include <limits.h>
2469#else
2470# include <assert.h>
2471#endif
2472 Syntax error
2473_ACEOF
2474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2476 ac_status=$?
2477 grep -v '^ *+' conftest.er1 >conftest.err
2478 rm -f conftest.er1
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } >/dev/null; then
2482 if test -s conftest.err; then
2483 ac_cpp_err=$ac_c_preproc_warn_flag
2484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2485 else
2486 ac_cpp_err=
2487 fi
84563040 2488else
bec39cab
AC
2489 ac_cpp_err=yes
2490fi
2491if test -z "$ac_cpp_err"; then
84563040
DJ
2492 :
2493else
bec39cab
AC
2494 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 # Broken: fails on valid input.
2498continue
2499fi
2500rm -f conftest.err conftest.$ac_ext
2501
2502 # OK, works on sane cases. Now check whether non-existent headers
2503 # can be detected and how.
2504 cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
2510#include <ac_nonexistent.h>
2511_ACEOF
2512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2514 ac_status=$?
2515 grep -v '^ *+' conftest.er1 >conftest.err
2516 rm -f conftest.er1
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } >/dev/null; then
2520 if test -s conftest.err; then
2521 ac_cpp_err=$ac_c_preproc_warn_flag
2522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2523 else
2524 ac_cpp_err=
2525 fi
2526else
2527 ac_cpp_err=yes
2528fi
2529if test -z "$ac_cpp_err"; then
2530 # Broken: success on invalid input.
2531continue
2532else
2533 echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 # Passes both tests.
2537ac_preproc_ok=:
2538break
2539fi
2540rm -f conftest.err conftest.$ac_ext
2541
2542done
2543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2544rm -f conftest.err conftest.$ac_ext
2545if $ac_preproc_ok; then
2546 break
2547fi
2548
2549 done
2550 ac_cv_prog_CPP=$CPP
2551
2552fi
2553 CPP=$ac_cv_prog_CPP
2554else
2555 ac_cv_prog_CPP=$CPP
2556fi
2557echo "$as_me:$LINENO: result: $CPP" >&5
2558echo "${ECHO_T}$CPP" >&6
2559ac_preproc_ok=false
2560for ac_c_preproc_warn_flag in '' yes
2561do
2562 # Use a header file that comes with gcc, so configuring glibc
2563 # with a fresh cross-compiler works.
2564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 # <limits.h> exists even on freestanding compilers.
2566 # On the NeXT, cc -E runs the code through the compiler's parser,
2567 # not just through cpp. "Syntax error" is here to catch this case.
2568 cat >conftest.$ac_ext <<_ACEOF
2569/* confdefs.h. */
2570_ACEOF
2571cat confdefs.h >>conftest.$ac_ext
2572cat >>conftest.$ac_ext <<_ACEOF
2573/* end confdefs.h. */
2574#ifdef __STDC__
2575# include <limits.h>
2576#else
2577# include <assert.h>
2578#endif
2579 Syntax error
2580_ACEOF
2581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } >/dev/null; then
2589 if test -s conftest.err; then
2590 ac_cpp_err=$ac_c_preproc_warn_flag
2591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2592 else
2593 ac_cpp_err=
2594 fi
2595else
2596 ac_cpp_err=yes
2597fi
2598if test -z "$ac_cpp_err"; then
84563040
DJ
2599 :
2600else
bec39cab
AC
2601 echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 # Broken: fails on valid input.
2605continue
84563040 2606fi
bec39cab
AC
2607rm -f conftest.err conftest.$ac_ext
2608
2609 # OK, works on sane cases. Now check whether non-existent headers
2610 # can be detected and how.
2611 cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
2617#include <ac_nonexistent.h>
2618_ACEOF
2619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2630 else
2631 ac_cpp_err=
2632 fi
2633else
2634 ac_cpp_err=yes
84563040 2635fi
bec39cab
AC
2636if test -z "$ac_cpp_err"; then
2637 # Broken: success on invalid input.
2638continue
2639else
2640 echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 # Passes both tests.
2644ac_preproc_ok=:
2645break
84563040 2646fi
bec39cab
AC
2647rm -f conftest.err conftest.$ac_ext
2648
2649done
2650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2651rm -f conftest.err conftest.$ac_ext
2652if $ac_preproc_ok; then
2653 :
2654else
2655 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2656See \`config.log' for more details." >&5
2657echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2658See \`config.log' for more details." >&2;}
2659 { (exit 1); exit 1; }; }
84563040 2660fi
bec39cab
AC
2661
2662ac_ext=c
2663ac_cpp='$CPP $CPPFLAGS'
2664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667
2668
2669echo "$as_me:$LINENO: checking for egrep" >&5
2670echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2671if test "${ac_cv_prog_egrep+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2673else
bec39cab
AC
2674 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2675 then ac_cv_prog_egrep='grep -E'
2676 else ac_cv_prog_egrep='egrep'
2677 fi
84563040 2678fi
bec39cab
AC
2679echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2680echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2681 EGREP=$ac_cv_prog_egrep
84563040 2682
bec39cab
AC
2683
2684echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2685echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2686if test "${ac_cv_header_stdc+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
84563040 2688else
bec39cab
AC
2689 cat >conftest.$ac_ext <<_ACEOF
2690/* confdefs.h. */
2691_ACEOF
2692cat confdefs.h >>conftest.$ac_ext
2693cat >>conftest.$ac_ext <<_ACEOF
2694/* end confdefs.h. */
84563040
DJ
2695#include <stdlib.h>
2696#include <stdarg.h>
2697#include <string.h>
2698#include <float.h>
bec39cab
AC
2699
2700int
2701main ()
2702{
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708rm -f conftest.$ac_objext
2709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2711 ac_status=$?
2712 grep -v '^ *+' conftest.er1 >conftest.err
2713 rm -f conftest.er1
2714 cat conftest.err >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
ccbd4912
MK
2717 { ac_try='test -z "$ac_c_werror_flag"
2718 || test ! -s conftest.err'
bec39cab
AC
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
84563040
DJ
2730 ac_cv_header_stdc=yes
2731else
bec39cab
AC
2732 echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735ac_cv_header_stdc=no
84563040 2736fi
bec39cab 2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84563040
DJ
2738
2739if test $ac_cv_header_stdc = yes; then
2740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
bec39cab
AC
2741 cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h. */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h. */
84563040 2747#include <string.h>
bec39cab
AC
2748
2749_ACEOF
84563040 2750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2751 $EGREP "memchr" >/dev/null 2>&1; then
84563040
DJ
2752 :
2753else
84563040
DJ
2754 ac_cv_header_stdc=no
2755fi
2756rm -f conftest*
2757
2758fi
2759
2760if test $ac_cv_header_stdc = yes; then
2761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
bec39cab
AC
2762 cat >conftest.$ac_ext <<_ACEOF
2763/* confdefs.h. */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h. */
84563040 2768#include <stdlib.h>
bec39cab
AC
2769
2770_ACEOF
84563040 2771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2772 $EGREP "free" >/dev/null 2>&1; then
84563040
DJ
2773 :
2774else
84563040
DJ
2775 ac_cv_header_stdc=no
2776fi
2777rm -f conftest*
2778
2779fi
bec39cab
AC
2780
2781if test $ac_cv_header_stdc = yes; then
2782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2783 if test "$cross_compiling" = yes; then
2784 :
2785else
2786 cat >conftest.$ac_ext <<_ACEOF
2787/* confdefs.h. */
2788_ACEOF
2789cat confdefs.h >>conftest.$ac_ext
2790cat >>conftest.$ac_ext <<_ACEOF
2791/* end confdefs.h. */
2792#include <ctype.h>
2793#if ((' ' & 0x0FF) == 0x020)
2794# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2795# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2796#else
2797# define ISLOWER(c) \
2798 (('a' <= (c) && (c) <= 'i') \
2799 || ('j' <= (c) && (c) <= 'r') \
2800 || ('s' <= (c) && (c) <= 'z'))
2801# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2802#endif
2803
2804#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2805int
2806main ()
2807{
2808 int i;
2809 for (i = 0; i < 256; i++)
2810 if (XOR (islower (i), ISLOWER (i))
2811 || toupper (i) != TOUPPER (i))
2812 exit(2);
2813 exit (0);
2814}
2815_ACEOF
2816rm -f conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818 (eval $ac_link) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 :
2828else
2829 echo "$as_me: program exited with status $ac_status" >&5
2830echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833( exit $ac_status )
2834ac_cv_header_stdc=no
2835fi
2836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2837fi
2838fi
2839fi
2840echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2841echo "${ECHO_T}$ac_cv_header_stdc" >&6
2842if test $ac_cv_header_stdc = yes; then
2843
2844cat >>confdefs.h <<\_ACEOF
2845#define STDC_HEADERS 1
2846_ACEOF
2847
2848fi
2849
2850
2851# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2862 inttypes.h stdint.h unistd.h
2863do
2864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2865echo "$as_me:$LINENO: checking for $ac_header" >&5
2866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2867if eval "test \"\${$as_ac_Header+set}\" = set"; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870 cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h. */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h. */
2876$ac_includes_default
2877
2878#include <$ac_header>
2879_ACEOF
2880rm -f conftest.$ac_objext
2881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
ccbd4912
MK
2889 { ac_try='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
bec39cab
AC
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 eval "$as_ac_Header=yes"
2903else
2904 echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907eval "$as_ac_Header=no"
2908fi
2909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910fi
2911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2913if test `eval echo '${'$as_ac_Header'}'` = yes; then
2914 cat >>confdefs.h <<_ACEOF
2915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2916_ACEOF
2917
2918fi
2919
2920done
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934for 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
2935do
2936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2937if eval "test \"\${$as_ac_Header+set}\" = set"; then
2938 echo "$as_me:$LINENO: checking for $ac_header" >&5
2939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2940if eval "test \"\${$as_ac_Header+set}\" = set"; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942fi
2943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
84563040 2945else
bec39cab
AC
2946 # Is the header compilable?
2947echo "$as_me:$LINENO: checking $ac_header usability" >&5
2948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2949cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
2955$ac_includes_default
2956#include <$ac_header>
2957_ACEOF
2958rm -f conftest.$ac_objext
2959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
ccbd4912
MK
2967 { ac_try='test -z "$ac_c_werror_flag"
2968 || test ! -s conftest.err'
bec39cab
AC
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_header_compiler=yes
84563040 2981else
bec39cab
AC
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985ac_header_compiler=no
84563040 2986fi
bec39cab
AC
2987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2989echo "${ECHO_T}$ac_header_compiler" >&6
2990
2991# Is the header present?
2992echo "$as_me:$LINENO: checking $ac_header presence" >&5
2993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2994cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000#include <$ac_header>
3001_ACEOF
3002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3013 else
3014 ac_cpp_err=
3015 fi
3016else
3017 ac_cpp_err=yes
84563040 3018fi
bec39cab
AC
3019if test -z "$ac_cpp_err"; then
3020 ac_header_preproc=yes
3021else
3022 echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
84563040 3024
bec39cab 3025 ac_header_preproc=no
84563040 3026fi
bec39cab
AC
3027rm -f conftest.err conftest.$ac_ext
3028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3029echo "${ECHO_T}$ac_header_preproc" >&6
3030
3031# So? What about this header?
3032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3033 yes:no: )
3034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3038 ac_header_preproc=yes
3039 ;;
3040 no:yes:* )
3041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3044echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3048echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3053 (
3054 cat <<\_ASBOX
3055## ------------------------------------------ ##
3056## Report this to the AC_PACKAGE_NAME lists. ##
3057## ------------------------------------------ ##
3058_ASBOX
3059 ) |
3060 sed "s/^/$as_me: WARNING: /" >&2
3061 ;;
3062esac
3063echo "$as_me:$LINENO: checking for $ac_header" >&5
3064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3065if eval "test \"\${$as_ac_Header+set}\" = set"; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 eval "$as_ac_Header=\$ac_header_preproc"
84563040 3069fi
bec39cab
AC
3070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
84563040
DJ
3072
3073fi
bec39cab
AC
3074if test `eval echo '${'$as_ac_Header'}'` = yes; then
3075 cat >>confdefs.h <<_ACEOF
3076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3077_ACEOF
84563040 3078
84563040 3079fi
bec39cab 3080
84563040
DJ
3081done
3082
3083
e122f1f5
SE
3084echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3085echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3086if test "${ac_cv_have_decl_strerror+set}" = set; then
bec39cab 3087 echo $ECHO_N "(cached) $ECHO_C" >&6
43d5792c 3088else
bec39cab
AC
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
e122f1f5 3095$ac_includes_default
bec39cab
AC
3096int
3097main ()
3098{
e122f1f5
SE
3099#ifndef strerror
3100 char *p = (char *) strerror;
3101#endif
3102
bec39cab
AC
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107rm -f conftest.$ac_objext
3108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3109 (eval $ac_compile) 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } &&
ccbd4912
MK
3116 { ac_try='test -z "$ac_c_werror_flag"
3117 || test ! -s conftest.err'
bec39cab
AC
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
e122f1f5 3129 ac_cv_have_decl_strerror=yes
43d5792c 3130else
bec39cab
AC
3131 echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
e122f1f5 3134ac_cv_have_decl_strerror=no
43d5792c 3135fi
bec39cab 3136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43d5792c 3137fi
e122f1f5
SE
3138echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3139echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3140if test $ac_cv_have_decl_strerror = yes; then
43d5792c 3141
e122f1f5
SE
3142cat >>confdefs.h <<_ACEOF
3143#define HAVE_DECL_STRERROR 1
3144_ACEOF
bec39cab 3145
e122f1f5
SE
3146
3147else
3148 cat >>confdefs.h <<_ACEOF
3149#define HAVE_DECL_STRERROR 0
bec39cab 3150_ACEOF
43d5792c 3151
e122f1f5 3152
43d5792c
DJ
3153fi
3154
3155
e122f1f5 3156
f450004a
DJ
3157echo "$as_me:$LINENO: checking for socklen_t" >&5
3158echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3159if test "${ac_cv_type_socklen_t+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162 cat >conftest.$ac_ext <<_ACEOF
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
ccbd4912 3168#include <sys/types.h>
f450004a
DJ
3169#include <sys/socket.h>
3170
ccbd4912 3171
f450004a
DJ
3172int
3173main ()
3174{
3175if ((socklen_t *) 0)
3176 return 0;
3177if (sizeof (socklen_t))
3178 return 0;
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
ccbd4912
MK
3192 { ac_try='test -z "$ac_c_werror_flag"
3193 || test ! -s conftest.err'
f450004a
DJ
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_cv_type_socklen_t=yes
3206else
3207 echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210ac_cv_type_socklen_t=no
3211fi
3212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
3214echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3215echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3216if test $ac_cv_type_socklen_t = yes; then
3217
ccbd4912 3218cat >>confdefs.h <<_ACEOF
f450004a
DJ
3219#define HAVE_SOCKLEN_T 1
3220_ACEOF
3221
f450004a 3222
ccbd4912 3223fi
f450004a 3224
7ea81414 3225. ${srcdir}/configure.srv
d6e9fb05 3226
58caa3dc 3227if test "${srv_linux_usrregs}" = "yes"; then
f450004a
DJ
3228
3229cat >>confdefs.h <<\_ACEOF
58caa3dc 3230#define HAVE_LINUX_USRREGS 1
bec39cab 3231_ACEOF
58caa3dc
DJ
3232
3233fi
3234
3235if test "${srv_linux_regsets}" = "yes"; then
e9d25b98
DJ
3236
3237cat >>confdefs.h <<\_ACEOF
3238#define HAVE_LINUX_REGSETS 1
3239_ACEOF
3240
3241
bec39cab
AC
3242 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3243echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3244 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
58caa3dc 3253#include <sys/ptrace.h>
bec39cab
AC
3254int
3255main ()
3256{
58caa3dc 3257PTRACE_GETREGS;
bec39cab
AC
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
ccbd4912
MK
3271 { ac_try='test -z "$ac_c_werror_flag"
3272 || test ! -s conftest.err'
bec39cab
AC
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
58caa3dc
DJ
3284 gdbsrv_cv_have_ptrace_getregs=yes
3285else
bec39cab
AC
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289gdbsrv_cv_have_ptrace_getregs=no
58caa3dc 3290fi
bec39cab 3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3292fi
3293
bec39cab
AC
3294 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3295echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
58caa3dc 3296 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
f450004a
DJ
3297
3298cat >>confdefs.h <<\_ACEOF
e9d25b98 3299#define HAVE_PTRACE_GETREGS 1
bec39cab 3300_ACEOF
58caa3dc
DJ
3301
3302 fi
3303
bec39cab
AC
3304 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3305echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3306 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
58caa3dc 3308else
bec39cab
AC
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
58caa3dc 3315#include <sys/ptrace.h>
bec39cab
AC
3316int
3317main ()
3318{
58caa3dc 3319PTRACE_GETFPXREGS;
bec39cab
AC
3320 ;
3321 return 0;
3322}
3323_ACEOF
3324rm -f conftest.$ac_objext
3325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
ccbd4912
MK
3333 { ac_try='test -z "$ac_c_werror_flag"
3334 || test ! -s conftest.err'
bec39cab
AC
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 (eval $ac_try) 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
58caa3dc
DJ
3346 gdbsrv_cv_have_ptrace_getfpxregs=yes
3347else
bec39cab
AC
3348 echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351gdbsrv_cv_have_ptrace_getfpxregs=no
58caa3dc 3352fi
bec39cab 3353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58caa3dc
DJ
3354fi
3355
bec39cab
AC
3356 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3357echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
58caa3dc 3358 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
f450004a
DJ
3359
3360cat >>confdefs.h <<\_ACEOF
58caa3dc 3361#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 3362_ACEOF
58caa3dc
DJ
3363
3364 fi
3365fi
3366
0d62e5e8 3367if test "$ac_cv_header_sys_procfs_h" = yes; then
bec39cab
AC
3368 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3369echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3370 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3372else
bec39cab
AC
3373 cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
0d62e5e8
DJ
3379
3380#define _SYSCALL32
3381#include <sys/procfs.h>
bec39cab
AC
3382int
3383main ()
3384{
0d62e5e8 3385lwpid_t avar
bec39cab
AC
3386 ;
3387 return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext
3391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3393 ac_status=$?
3394 grep -v '^ *+' conftest.er1 >conftest.err
3395 rm -f conftest.er1
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
ccbd4912
MK
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
bec39cab
AC
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
0d62e5e8
DJ
3412 bfd_cv_have_sys_procfs_type_lwpid_t=yes
3413else
bec39cab
AC
3414 echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417bfd_cv_have_sys_procfs_type_lwpid_t=no
3418
0d62e5e8 3419fi
bec39cab 3420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3421fi
3422
3423 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
3424
3425cat >>confdefs.h <<\_ACEOF
0d62e5e8 3426#define HAVE_LWPID_T 1
bec39cab 3427_ACEOF
0d62e5e8
DJ
3428
3429 fi
bec39cab
AC
3430 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3431echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
0d62e5e8 3432
bec39cab
AC
3433 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3434echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3435 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3437else
bec39cab
AC
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
0d62e5e8
DJ
3444
3445#define _SYSCALL32
3446#include <sys/procfs.h>
bec39cab
AC
3447int
3448main ()
3449{
0d62e5e8 3450psaddr_t avar
bec39cab
AC
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457 (eval $ac_compile) 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
ccbd4912
MK
3464 { ac_try='test -z "$ac_c_werror_flag"
3465 || test ! -s conftest.err'
bec39cab
AC
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
0d62e5e8
DJ
3477 bfd_cv_have_sys_procfs_type_psaddr_t=yes
3478else
bec39cab
AC
3479 echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482bfd_cv_have_sys_procfs_type_psaddr_t=no
3483
0d62e5e8 3484fi
bec39cab 3485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3486fi
3487
3488 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
3489
3490cat >>confdefs.h <<\_ACEOF
0d62e5e8 3491#define HAVE_PSADDR_T 1
bec39cab 3492_ACEOF
0d62e5e8
DJ
3493
3494 fi
bec39cab
AC
3495 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3496echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
0d62e5e8 3497
bec39cab
AC
3498 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3499echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3500 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3502else
bec39cab
AC
3503 cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h. */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h. */
0d62e5e8
DJ
3509
3510#define _SYSCALL32
3511#include <sys/procfs.h>
bec39cab
AC
3512int
3513main ()
3514{
0d62e5e8 3515prgregset_t avar
bec39cab
AC
3516 ;
3517 return 0;
3518}
3519_ACEOF
3520rm -f conftest.$ac_objext
3521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522 (eval $ac_compile) 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } &&
ccbd4912
MK
3529 { ac_try='test -z "$ac_c_werror_flag"
3530 || test ! -s conftest.err'
bec39cab
AC
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 (eval $ac_try) 2>&5
3539 ac_status=$?
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
0d62e5e8
DJ
3542 bfd_cv_have_sys_procfs_type_prgregset_t=yes
3543else
bec39cab
AC
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547bfd_cv_have_sys_procfs_type_prgregset_t=no
3548
0d62e5e8 3549fi
bec39cab 3550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3551fi
3552
3553 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
3554
3555cat >>confdefs.h <<\_ACEOF
0d62e5e8 3556#define HAVE_PRGREGSET_T 1
bec39cab 3557_ACEOF
0d62e5e8
DJ
3558
3559 fi
bec39cab
AC
3560 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
3561echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
0d62e5e8 3562
bec39cab
AC
3563 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
3564echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
3565 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3567else
bec39cab
AC
3568 cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h. */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h. */
0d62e5e8
DJ
3574
3575#define _SYSCALL32
3576#include <sys/procfs.h>
bec39cab
AC
3577int
3578main ()
3579{
0d62e5e8 3580prfpregset_t avar
bec39cab
AC
3581 ;
3582 return 0;
3583}
3584_ACEOF
3585rm -f conftest.$ac_objext
3586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3587 (eval $ac_compile) 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
ccbd4912
MK
3594 { ac_try='test -z "$ac_c_werror_flag"
3595 || test ! -s conftest.err'
bec39cab
AC
3596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 (eval $ac_try) 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
0d62e5e8
DJ
3607 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
3608else
bec39cab
AC
3609 echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612bfd_cv_have_sys_procfs_type_prfpregset_t=no
3613
0d62e5e8 3614fi
bec39cab 3615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3616fi
3617
3618 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
3619
3620cat >>confdefs.h <<\_ACEOF
0d62e5e8 3621#define HAVE_PRFPREGSET_T 1
bec39cab 3622_ACEOF
0d62e5e8
DJ
3623
3624 fi
bec39cab
AC
3625 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
3626echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
3627
3628
0d62e5e8
DJ
3629
3630
0d62e5e8 3631 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
3632 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
3633echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
3634 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8
DJ
3636else
3637 if test "$cross_compiling" = yes; then
3638 gdb_cv_prfpregset_t_broken=yes
3639else
bec39cab
AC
3640 cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
0d62e5e8
DJ
3646#include <sys/procfs.h>
3647 int main ()
3648 {
3649 if (sizeof (prfpregset_t) == sizeof (void *))
3650 return 1;
3651 return 0;
3652 }
bec39cab
AC
3653_ACEOF
3654rm -f conftest$ac_exeext
3655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3656 (eval $ac_link) 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 (eval $ac_try) 2>&5
3662 ac_status=$?
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
0d62e5e8
DJ
3665 gdb_cv_prfpregset_t_broken=no
3666else
bec39cab
AC
3667 echo "$as_me: program exited with status $ac_status" >&5
3668echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671( exit $ac_status )
3672gdb_cv_prfpregset_t_broken=yes
0d62e5e8 3673fi
bec39cab 3674rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
0d62e5e8 3675fi
0d62e5e8
DJ
3676fi
3677
bec39cab
AC
3678 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
3679echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
0d62e5e8 3680 if test $gdb_cv_prfpregset_t_broken = yes; then
f450004a
DJ
3681
3682cat >>confdefs.h <<\_ACEOF
0d62e5e8 3683#define PRFPREGSET_T_BROKEN 1
bec39cab 3684_ACEOF
0d62e5e8
DJ
3685
3686 fi
3687 fi
3688
bec39cab
AC
3689 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
3690echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
3691 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8 3693else
bec39cab
AC
3694 cat >conftest.$ac_ext <<_ACEOF
3695/* confdefs.h. */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h. */
0d62e5e8
DJ
3700
3701#define _SYSCALL32
3702#include <sys/procfs.h>
bec39cab
AC
3703int
3704main ()
3705{
0d62e5e8 3706elf_fpregset_t avar
bec39cab
AC
3707 ;
3708 return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext
3712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
ccbd4912
MK
3720 { ac_try='test -z "$ac_c_werror_flag"
3721 || test ! -s conftest.err'
bec39cab
AC
3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; } &&
3727 { ac_try='test -s conftest.$ac_objext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
0d62e5e8
DJ
3733 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
3734else
bec39cab
AC
3735 echo "$as_me: failed program was:" >&5
3736sed 's/^/| /' conftest.$ac_ext >&5
3737
3738bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
3739
0d62e5e8 3740fi
bec39cab 3741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0d62e5e8
DJ
3742fi
3743
3744 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
bec39cab
AC
3745
3746cat >>confdefs.h <<\_ACEOF
0d62e5e8 3747#define HAVE_ELF_FPREGSET_T 1
bec39cab 3748_ACEOF
0d62e5e8
DJ
3749
3750 fi
bec39cab
AC
3751 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
3752echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
0d62e5e8
DJ
3753
3754fi
3755
3756srv_thread_depfiles=
3757srv_libs=
3758USE_THREAD_DB=
3759
3760if test "$srv_linux_thread_db" = "yes"; then
bec39cab
AC
3761 echo "$as_me:$LINENO: checking for libthread_db" >&5
3762echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
3763if test "${srv_cv_thread_db+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
0d62e5e8
DJ
3765else
3766 old_LIBS="$LIBS"
3767 LIBS="$LIBS -lthread_db"
bec39cab
AC
3768 cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h. */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h. */
0d62e5e8
DJ
3774void ps_pglobal_lookup() {}
3775 void ps_pdread() {}
3776 void ps_pdwrite() {}
3777 void ps_lgetregs() {}
3778 void ps_lsetregs() {}
3779 void ps_lgetfpregs() {}
3780 void ps_lsetfpregs() {}
434c4c77 3781 void ps_get_thread_area() {}
0d62e5e8 3782 void ps_getpid() {}
bec39cab
AC
3783int
3784main ()
3785{
0d62e5e8 3786td_ta_new();
bec39cab
AC
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791rm -f conftest.$ac_objext conftest$ac_exeext
3792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793 (eval $ac_link) 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
ccbd4912
MK
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
bec39cab
AC
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest$ac_exeext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
0d62e5e8
DJ
3813 srv_cv_thread_db="-lthread_db"
3814else
bec39cab
AC
3815 echo "$as_me: failed program was:" >&5
3816sed 's/^/| /' conftest.$ac_ext >&5
3817
3818srv_cv_thread_db=no
0d62e5e8
DJ
3819
3820 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
3821 thread_db="/lib/libthread_db.so.1"
3822 else
3823 thread_db='$prefix/lib/libthread_db.so.1'
3824 fi
3825 LIBS="$old_LIBS `eval echo "$thread_db"`"
bec39cab
AC
3826 cat >conftest.$ac_ext <<_ACEOF
3827/* confdefs.h. */
3828_ACEOF
3829cat confdefs.h >>conftest.$ac_ext
3830cat >>conftest.$ac_ext <<_ACEOF
3831/* end confdefs.h. */
0d62e5e8
DJ
3832void ps_pglobal_lookup() {}
3833 void ps_pdread() {}
3834 void ps_pdwrite() {}
3835 void ps_lgetregs() {}
3836 void ps_lsetregs() {}
3837 void ps_lgetfpregs() {}
3838 void ps_lsetfpregs() {}
434c4c77 3839 void ps_get_thread_area() {}
0d62e5e8 3840 void ps_getpid() {}
bec39cab
AC
3841int
3842main ()
3843{
0d62e5e8 3844td_ta_new();
bec39cab
AC
3845 ;
3846 return 0;
3847}
3848_ACEOF
3849rm -f conftest.$ac_objext conftest$ac_exeext
3850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3851 (eval $ac_link) 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
ccbd4912
MK
3858 { ac_try='test -z "$ac_c_werror_flag"
3859 || test ! -s conftest.err'
bec39cab
AC
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; } &&
3865 { ac_try='test -s conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
0d62e5e8
DJ
3871 srv_cv_thread_db="$thread_db"
3872else
bec39cab
AC
3873 echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876srv_cv_thread_db=no
0d62e5e8 3877fi
bec39cab
AC
3878rm -f conftest.err conftest.$ac_objext \
3879 conftest$ac_exeext conftest.$ac_ext
0d62e5e8 3880
bec39cab
AC
3881fi
3882echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
3883echo "${ECHO_T}$srv_cv_thread_db" >&6
434c4c77 3884 LIBS="$old_LIBS"
0d62e5e8
DJ
3885
3886fi
bec39cab
AC
3887rm -f conftest.err conftest.$ac_objext \
3888 conftest$ac_exeext conftest.$ac_ext
0d62e5e8 3889 if test "$srv_cv_thread_db" = no; then
bec39cab
AC
3890 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
3891echo "$as_me: WARNING: Could not find libthread_db." >&2;}
3892 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
3893echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
0d62e5e8
DJ
3894 srv_linux_thread_db=no
3895 else
3896 srv_libs="$srv_cv_thread_db"
3897 fi
f6de3c42
DJ
3898 old_LDFLAGS="$LDFLAGS"
3899 LDFLAGS="$LDFLAGS -rdynamic"
bec39cab
AC
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906
3907int
3908main ()
3909{
3910
3911 ;
3912 return 0;
3913}
3914_ACEOF
3915rm -f conftest.$ac_objext conftest$ac_exeext
3916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3917 (eval $ac_link) 2>conftest.er1
3918 ac_status=$?
3919 grep -v '^ *+' conftest.er1 >conftest.err
3920 rm -f conftest.er1
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } &&
ccbd4912
MK
3924 { ac_try='test -z "$ac_c_werror_flag"
3925 || test ! -s conftest.err'
bec39cab
AC
3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927 (eval $ac_try) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; } &&
3931 { ac_try='test -s conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
f6de3c42
DJ
3937 RDYNAMIC=-rdynamic
3938else
bec39cab
AC
3939 echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942RDYNAMIC=
f6de3c42 3943fi
bec39cab
AC
3944rm -f conftest.err conftest.$ac_objext \
3945 conftest$ac_exeext conftest.$ac_ext
3946
f6de3c42 3947 LDFLAGS="$old_LDFLAGS"
0d62e5e8
DJ
3948fi
3949
3950if test "$srv_linux_thread_db" = "yes"; then
3951 srv_thread_depfiles="thread-db.o proc-service.o"
3952 USE_THREAD_DB="-DUSE_THREAD_DB"
3953fi
3954
3955GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
3956GDBSERVER_LIBS="$srv_libs"
3957
3958
d6e9fb05
JK
3959
3960
3961
bec39cab
AC
3962 ac_config_files="$ac_config_files Makefile"
3963 ac_config_commands="$ac_config_commands default"
3964cat >confcache <<\_ACEOF
d6e9fb05
JK
3965# This file is a shell script that caches the results of configure
3966# tests run on this system so they can be shared between configure
bec39cab
AC
3967# scripts and configure runs, see configure's option --config-cache.
3968# It is not useful on other systems. If it contains results you don't
3969# want to keep, you may remove or edit it.
d6e9fb05 3970#
bec39cab
AC
3971# config.status only pays attention to the cache file if you give it
3972# the --recheck option to rerun configure.
d6e9fb05 3973#
bec39cab
AC
3974# `ac_cv_env_foo' variables (set or unset) will be overridden when
3975# loading this file, other *unset* `ac_cv_foo' will be assigned the
3976# following values.
3977
3978_ACEOF
3979
d6e9fb05
JK
3980# The following way of writing the cache mishandles newlines in values,
3981# but we know of no workaround that is simple, portable, and efficient.
3982# So, don't put newlines in cache variables' values.
3983# Ultrix sh set writes to stderr and can't be redirected directly,
3984# and sets the high bit in the cache file unless we assign to the vars.
bec39cab
AC
3985{
3986 (set) 2>&1 |
3987 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3988 *ac_space=\ *)
3989 # `set' does not quote correctly, so add quotes (double-quote
3990 # substitution turns \\\\ into \\, and sed turns \\ into \).
3991 sed -n \
3992 "s/'/'\\\\''/g;
3993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3994 ;;
3995 *)
3996 # `set' quotes correctly as required by POSIX, so do not add quotes.
3997 sed -n \
3998 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3999 ;;
4000 esac;
4001} |
4002 sed '
4003 t clear
4004 : clear
4005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4006 t end
4007 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4008 : end' >>confcache
4009if diff $cache_file confcache >/dev/null 2>&1; then :; else
d6e9fb05 4010 if test -w $cache_file; then
bec39cab
AC
4011 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4012 cat confcache >$cache_file
d6e9fb05
JK
4013 else
4014 echo "not updating unwritable cache $cache_file"
4015 fi
4016fi
4017rm -f confcache
4018
d6e9fb05
JK
4019test "x$prefix" = xNONE && prefix=$ac_default_prefix
4020# Let make expand exec_prefix.
4021test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4022
bec39cab
AC
4023# VPATH may cause trouble with some makes, so we remove $(srcdir),
4024# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4025# trailing colons and then remove the whole line if VPATH becomes empty
4026# (actually we leave an empty line to preserve line numbers).
d6e9fb05 4027if test "x$srcdir" = x.; then
bec39cab
AC
4028 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4029s/:*\$(srcdir):*/:/;
4030s/:*\${srcdir}:*/:/;
4031s/:*@srcdir@:*/:/;
4032s/^\([^=]*=[ ]*\):*/\1/;
4033s/:*$//;
4034s/^[^=]*=[ ]*$//;
4035}'
d6e9fb05
JK
4036fi
4037
84563040 4038DEFS=-DHAVE_CONFIG_H
d6e9fb05 4039
bec39cab
AC
4040ac_libobjs=
4041ac_ltlibobjs=
4042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4043 # 1. Remove the extension, and $U if already installed.
4044 ac_i=`echo "$ac_i" |
4045 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4046 # 2. Add them.
4047 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4048 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4049done
4050LIBOBJS=$ac_libobjs
d6e9fb05 4051
bec39cab
AC
4052LTLIBOBJS=$ac_ltlibobjs
4053
4054
4055
4056: ${CONFIG_STATUS=./config.status}
4057ac_clean_files_save=$ac_clean_files
4058ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4059{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4060echo "$as_me: creating $CONFIG_STATUS" >&6;}
4061cat >$CONFIG_STATUS <<_ACEOF
4062#! $SHELL
4063# Generated by $as_me.
d6e9fb05 4064# Run this file to recreate the current configuration.
d6e9fb05 4065# Compiler output produced by configure, useful for debugging
bec39cab
AC
4066# configure, is in config.log if it exists.
4067
4068debug=false
4069ac_cs_recheck=false
4070ac_cs_silent=false
4071SHELL=\${CONFIG_SHELL-$SHELL}
4072_ACEOF
4073
4074cat >>$CONFIG_STATUS <<\_ACEOF
4075## --------------------- ##
4076## M4sh Initialization. ##
4077## --------------------- ##
4078
4079# Be Bourne compatible
4080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4081 emulate sh
4082 NULLCMD=:
4083 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4084 # is contrary to our usage. Disable this feature.
4085 alias -g '${1+"$@"}'='"$@"'
4086elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4087 set -o posix
4088fi
4089DUALCASE=1; export DUALCASE # for MKS sh
d6e9fb05 4090
bec39cab
AC
4091# Support unset when possible.
4092if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4093 as_unset=unset
4094else
4095 as_unset=false
4096fi
4097
4098
4099# Work around bugs in pre-3.0 UWIN ksh.
4100$as_unset ENV MAIL MAILPATH
4101PS1='$ '
4102PS2='> '
4103PS4='+ '
4104
4105# NLS nuisances.
4106for as_var in \
4107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4109 LC_TELEPHONE LC_TIME
d6e9fb05 4110do
bec39cab
AC
4111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4112 eval $as_var=C; export $as_var
4113 else
4114 $as_unset $as_var
4115 fi
d6e9fb05
JK
4116done
4117
bec39cab
AC
4118# Required to use basename.
4119if expr a : '\(a\)' >/dev/null 2>&1; then
4120 as_expr=expr
4121else
4122 as_expr=false
4123fi
d6e9fb05 4124
bec39cab
AC
4125if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4126 as_basename=basename
4127else
4128 as_basename=false
4129fi
d6e9fb05 4130
d6e9fb05 4131
bec39cab
AC
4132# Name of the executable.
4133as_me=`$as_basename "$0" ||
4134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4135 X"$0" : 'X\(//\)$' \| \
4136 X"$0" : 'X\(/\)$' \| \
4137 . : '\(.\)' 2>/dev/null ||
4138echo X/"$0" |
4139 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4140 /^X\/\(\/\/\)$/{ s//\1/; q; }
4141 /^X\/\(\/\).*/{ s//\1/; q; }
4142 s/.*/./; q'`
4143
4144
4145# PATH needs CR, and LINENO needs CR and PATH.
4146# Avoid depending upon Character Ranges.
4147as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4148as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4149as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4150as_cr_digits='0123456789'
4151as_cr_alnum=$as_cr_Letters$as_cr_digits
4152
4153# The user is always right.
4154if test "${PATH_SEPARATOR+set}" != set; then
4155 echo "#! /bin/sh" >conf$$.sh
4156 echo "exit 0" >>conf$$.sh
4157 chmod +x conf$$.sh
4158 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4159 PATH_SEPARATOR=';'
d6e9fb05 4160 else
bec39cab 4161 PATH_SEPARATOR=:
d6e9fb05 4162 fi
bec39cab
AC
4163 rm -f conf$$.sh
4164fi
4165
4166
4167 as_lineno_1=$LINENO
4168 as_lineno_2=$LINENO
4169 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4170 test "x$as_lineno_1" != "x$as_lineno_2" &&
4171 test "x$as_lineno_3" = "x$as_lineno_2" || {
4172 # Find who we are. Look in the path if we contain no path at all
4173 # relative or not.
4174 case $0 in
4175 *[\\/]* ) as_myself=$0 ;;
4176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4182done
4183
4184 ;;
4185 esac
4186 # We did not find ourselves, most probably we were run as `sh COMMAND'
4187 # in which case we are not to be found in the path.
4188 if test "x$as_myself" = x; then
4189 as_myself=$0
4190 fi
4191 if test ! -f "$as_myself"; then
4192 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4193echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4194 { (exit 1); exit 1; }; }
4195 fi
4196 case $CONFIG_SHELL in
4197 '')
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for as_base in sh bash ksh sh5; do
4204 case $as_dir in
4205 /*)
4206 if ("$as_dir/$as_base" -c '
4207 as_lineno_1=$LINENO
4208 as_lineno_2=$LINENO
4209 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4210 test "x$as_lineno_1" != "x$as_lineno_2" &&
4211 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4212 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4213 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4214 CONFIG_SHELL=$as_dir/$as_base
4215 export CONFIG_SHELL
4216 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4217 fi;;
4218 esac
4219 done
4220done
4221;;
4222 esac
4223
4224 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4225 # uniformly replaced by the line number. The first 'sed' inserts a
4226 # line-number line before each line; the second 'sed' does the real
4227 # work. The second script uses 'N' to pair each line-number line
4228 # with the numbered line, and appends trailing '-' during
4229 # substitution so that $LINENO is not a special case at line end.
4230 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4231 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4232 sed '=' <$as_myself |
4233 sed '
4234 N
4235 s,$,-,
4236 : loop
4237 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4238 t loop
4239 s,-$,,
4240 s,^['$as_cr_digits']*\n,,
4241 ' >$as_me.lineno &&
4242 chmod +x $as_me.lineno ||
4243 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4244echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4245 { (exit 1); exit 1; }; }
4246
4247 # Don't try to exec as it changes $[0], causing all sort of problems
4248 # (the dirname of $[0] is not the place where we might find the
4249 # original and so on. Autoconf is especially sensible to this).
4250 . ./$as_me.lineno
4251 # Exit status is that of the last command.
4252 exit
4253}
4254
4255
4256case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4257 *c*,-n*) ECHO_N= ECHO_C='
4258' ECHO_T=' ' ;;
4259 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4260 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4261esac
4262
4263if expr a : '\(a\)' >/dev/null 2>&1; then
4264 as_expr=expr
4265else
4266 as_expr=false
4267fi
4268
4269rm -f conf$$ conf$$.exe conf$$.file
4270echo >conf$$.file
4271if ln -s conf$$.file conf$$ 2>/dev/null; then
4272 # We could just check for DJGPP; but this test a) works b) is more generic
4273 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4274 if test -f conf$$.exe; then
4275 # Don't use ln at all; we don't have any links
4276 as_ln_s='cp -p'
d6e9fb05 4277 else
bec39cab 4278 as_ln_s='ln -s'
d6e9fb05 4279 fi
bec39cab
AC
4280elif ln conf$$.file conf$$ 2>/dev/null; then
4281 as_ln_s=ln
4282else
4283 as_ln_s='cp -p'
4284fi
4285rm -f conf$$ conf$$.exe conf$$.file
4286
4287if mkdir -p . 2>/dev/null; then
4288 as_mkdir_p=:
4289else
4290 test -d ./-p && rmdir ./-p
4291 as_mkdir_p=false
4292fi
4293
4294as_executable_p="test -f"
4295
4296# Sed expression to map a string onto a valid CPP name.
4297as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4298
4299# Sed expression to map a string onto a valid variable name.
4300as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4301
4302
4303# IFS
4304# We need space, tab and new line, in precisely that order.
4305as_nl='
4306'
4307IFS=" $as_nl"
4308
4309# CDPATH.
4310$as_unset CDPATH
4311
4312exec 6>&1
4313
4314# Open the log real soon, to keep \$[0] and so on meaningful, and to
4315# report actual input values of CONFIG_FILES etc. instead of their
4316# values after options handling. Logging --version etc. is OK.
4317exec 5>>config.log
4318{
4319 echo
4320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4321## Running $as_me. ##
4322_ASBOX
4323} >&5
4324cat >&5 <<_CSEOF
4325
4326This file was extended by $as_me, which was
4327generated by GNU Autoconf 2.59. Invocation command line was
4328
4329 CONFIG_FILES = $CONFIG_FILES
4330 CONFIG_HEADERS = $CONFIG_HEADERS
4331 CONFIG_LINKS = $CONFIG_LINKS
4332 CONFIG_COMMANDS = $CONFIG_COMMANDS
4333 $ $0 $@
4334
4335_CSEOF
4336echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4337echo >&5
4338_ACEOF
4339
4340# Files that config.status was made for.
4341if test -n "$ac_config_files"; then
4342 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4343fi
4344
4345if test -n "$ac_config_headers"; then
4346 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4347fi
4348
4349if test -n "$ac_config_links"; then
4350 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4351fi
4352
4353if test -n "$ac_config_commands"; then
4354 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4355fi
4356
4357cat >>$CONFIG_STATUS <<\_ACEOF
4358
4359ac_cs_usage="\
4360\`$as_me' instantiates files from templates according to the
4361current configuration.
4362
4363Usage: $0 [OPTIONS] [FILE]...
4364
4365 -h, --help print this help, then exit
4366 -V, --version print version number, then exit
4367 -q, --quiet do not print progress messages
4368 -d, --debug don't remove temporary files
4369 --recheck update $as_me by reconfiguring in the same conditions
4370 --file=FILE[:TEMPLATE]
4371 instantiate the configuration file FILE
4372 --header=FILE[:TEMPLATE]
4373 instantiate the configuration header FILE
4374
4375Configuration files:
4376$config_files
4377
4378Configuration headers:
4379$config_headers
4380
4381Configuration commands:
4382$config_commands
4383
4384Report bugs to <bug-autoconf@gnu.org>."
4385_ACEOF
4386
4387cat >>$CONFIG_STATUS <<_ACEOF
4388ac_cs_version="\\
4389config.status
4390configured by $0, generated by GNU Autoconf 2.59,
4391 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4392
4393Copyright (C) 2003 Free Software Foundation, Inc.
4394This config.status script is free software; the Free Software Foundation
4395gives unlimited permission to copy, distribute and modify it."
4396srcdir=$srcdir
4397INSTALL="$INSTALL"
4398_ACEOF
4399
4400cat >>$CONFIG_STATUS <<\_ACEOF
4401# If no file are specified by the user, then we need to provide default
4402# value. By we need to know if files were specified by the user.
4403ac_need_defaults=:
4404while test $# != 0
4405do
4406 case $1 in
4407 --*=*)
4408 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4409 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4410 ac_shift=:
4411 ;;
4412 -*)
4413 ac_option=$1
4414 ac_optarg=$2
4415 ac_shift=shift
4416 ;;
4417 *) # This is not an option, so the user has probably given explicit
4418 # arguments.
4419 ac_option=$1
4420 ac_need_defaults=false;;
4421 esac
4422
4423 case $ac_option in
4424 # Handling of the options.
4425_ACEOF
4426cat >>$CONFIG_STATUS <<\_ACEOF
4427 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4428 ac_cs_recheck=: ;;
4429 --version | --vers* | -V )
4430 echo "$ac_cs_version"; exit 0 ;;
4431 --he | --h)
4432 # Conflict between --help and --header
4433 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4434Try \`$0 --help' for more information." >&5
4435echo "$as_me: error: ambiguous option: $1
4436Try \`$0 --help' for more information." >&2;}
4437 { (exit 1); exit 1; }; };;
4438 --help | --hel | -h )
4439 echo "$ac_cs_usage"; exit 0 ;;
4440 --debug | --d* | -d )
4441 debug=: ;;
4442 --file | --fil | --fi | --f )
4443 $ac_shift
4444 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4445 ac_need_defaults=false;;
4446 --header | --heade | --head | --hea )
4447 $ac_shift
4448 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4449 ac_need_defaults=false;;
4450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4452 ac_cs_silent=: ;;
4453
4454 # This is an error.
4455 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4456Try \`$0 --help' for more information." >&5
4457echo "$as_me: error: unrecognized option: $1
4458Try \`$0 --help' for more information." >&2;}
4459 { (exit 1); exit 1; }; } ;;
4460
4461 *) ac_config_targets="$ac_config_targets $1" ;;
4462
4463 esac
4464 shift
d6e9fb05 4465done
bec39cab
AC
4466
4467ac_configure_extra_args=
4468
4469if $ac_cs_silent; then
4470 exec 6>/dev/null
4471 ac_configure_extra_args="$ac_configure_extra_args --silent"
d6e9fb05 4472fi
d6e9fb05 4473
bec39cab
AC
4474_ACEOF
4475cat >>$CONFIG_STATUS <<_ACEOF
4476if \$ac_cs_recheck; then
4477 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4478 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4479fi
d6e9fb05 4480
bec39cab
AC
4481_ACEOF
4482
4483
4484
4485
4486
4487cat >>$CONFIG_STATUS <<\_ACEOF
4488for ac_config_target in $ac_config_targets
4489do
4490 case "$ac_config_target" in
4491 # Handling of arguments.
4492 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4493 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4494 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4496echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4497 { (exit 1); exit 1; }; };;
d6e9fb05 4498 esac
bec39cab
AC
4499done
4500
4501# If the user did not use the arguments to specify the items to instantiate,
4502# then the envvar interface is used. Set only those that are not.
4503# We use the long form for the default assignment because of an extremely
4504# bizarre bug on SunOS 4.1.3.
4505if $ac_need_defaults; then
4506 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4507 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4509fi
d6e9fb05 4510
bec39cab
AC
4511# Have a temporary directory for convenience. Make it in the build tree
4512# simply because there is no reason to put it here, and in addition,
4513# creating and moving files from /tmp can sometimes cause problems.
4514# Create a temporary directory, and hook for its removal unless debugging.
4515$debug ||
4516{
4517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4518 trap '{ (exit 1); exit 1; }' 1 2 13 15
4519}
4520
4521# Create a (secure) tmp directory for tmp files.
4522
4523{
4524 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4525 test -n "$tmp" && test -d "$tmp"
4526} ||
4527{
4528 tmp=./confstat$$-$RANDOM
4529 (umask 077 && mkdir $tmp)
4530} ||
4531{
4532 echo "$me: cannot create a temporary directory in ." >&2
4533 { (exit 1); exit 1; }
4534}
4535
4536_ACEOF
4537
4538cat >>$CONFIG_STATUS <<_ACEOF
d6e9fb05 4539
bec39cab
AC
4540#
4541# CONFIG_FILES section.
4542#
4543
4544# No need to generate the scripts if there are no CONFIG_FILES.
4545# This happens for instance when ./config.status config.h
4546if test -n "\$CONFIG_FILES"; then
4547 # Protect against being on the right side of a sed subst in config.status.
4548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4550s,@SHELL@,$SHELL,;t t
4551s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4552s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4553s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4554s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4555s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4556s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4557s,@exec_prefix@,$exec_prefix,;t t
4558s,@prefix@,$prefix,;t t
4559s,@program_transform_name@,$program_transform_name,;t t
4560s,@bindir@,$bindir,;t t
4561s,@sbindir@,$sbindir,;t t
4562s,@libexecdir@,$libexecdir,;t t
4563s,@datadir@,$datadir,;t t
4564s,@sysconfdir@,$sysconfdir,;t t
4565s,@sharedstatedir@,$sharedstatedir,;t t
4566s,@localstatedir@,$localstatedir,;t t
4567s,@libdir@,$libdir,;t t
4568s,@includedir@,$includedir,;t t
4569s,@oldincludedir@,$oldincludedir,;t t
4570s,@infodir@,$infodir,;t t
4571s,@mandir@,$mandir,;t t
4572s,@build_alias@,$build_alias,;t t
4573s,@host_alias@,$host_alias,;t t
4574s,@target_alias@,$target_alias,;t t
4575s,@DEFS@,$DEFS,;t t
4576s,@ECHO_C@,$ECHO_C,;t t
4577s,@ECHO_N@,$ECHO_N,;t t
4578s,@ECHO_T@,$ECHO_T,;t t
4579s,@LIBS@,$LIBS,;t t
4580s,@CC@,$CC,;t t
4581s,@CFLAGS@,$CFLAGS,;t t
4582s,@LDFLAGS@,$LDFLAGS,;t t
4583s,@CPPFLAGS@,$CPPFLAGS,;t t
4584s,@ac_ct_CC@,$ac_ct_CC,;t t
4585s,@EXEEXT@,$EXEEXT,;t t
4586s,@OBJEXT@,$OBJEXT,;t t
4587s,@build@,$build,;t t
4588s,@build_cpu@,$build_cpu,;t t
4589s,@build_vendor@,$build_vendor,;t t
4590s,@build_os@,$build_os,;t t
4591s,@host@,$host,;t t
4592s,@host_cpu@,$host_cpu,;t t
4593s,@host_vendor@,$host_vendor,;t t
4594s,@host_os@,$host_os,;t t
4595s,@target@,$target,;t t
4596s,@target_cpu@,$target_cpu,;t t
4597s,@target_vendor@,$target_vendor,;t t
4598s,@target_os@,$target_os,;t t
4599s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4600s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4601s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4602s,@CPP@,$CPP,;t t
4603s,@EGREP@,$EGREP,;t t
4604s,@RDYNAMIC@,$RDYNAMIC,;t t
4605s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
4606s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
4607s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
4608s,@LIBOBJS@,$LIBOBJS,;t t
4609s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4610CEOF
4611
4612_ACEOF
4613
4614 cat >>$CONFIG_STATUS <<\_ACEOF
4615 # Split the substitutions into bite-sized pieces for seds with
4616 # small command number limits, like on Digital OSF/1 and HP-UX.
4617 ac_max_sed_lines=48
4618 ac_sed_frag=1 # Number of current file.
4619 ac_beg=1 # First line for current file.
4620 ac_end=$ac_max_sed_lines # Line after last line for current file.
4621 ac_more_lines=:
4622 ac_sed_cmds=
4623 while $ac_more_lines; do
4624 if test $ac_beg -gt 1; then
4625 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4626 else
4627 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4628 fi
4629 if test ! -s $tmp/subs.frag; then
4630 ac_more_lines=false
4631 else
4632 # The purpose of the label and of the branching condition is to
4633 # speed up the sed processing (if there are no `@' at all, there
4634 # is no need to browse any of the substitutions).
4635 # These are the two extra sed commands mentioned above.
4636 (echo ':t
4637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4638 if test -z "$ac_sed_cmds"; then
4639 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4640 else
4641 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4642 fi
4643 ac_sed_frag=`expr $ac_sed_frag + 1`
4644 ac_beg=$ac_end
4645 ac_end=`expr $ac_end + $ac_max_sed_lines`
4646 fi
4647 done
4648 if test -z "$ac_sed_cmds"; then
4649 ac_sed_cmds=cat
d6e9fb05 4650 fi
bec39cab 4651fi # test -n "$CONFIG_FILES"
d6e9fb05 4652
bec39cab
AC
4653_ACEOF
4654cat >>$CONFIG_STATUS <<\_ACEOF
4655for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4657 case $ac_file in
4658 - | *:- | *:-:* ) # input from stdin
4659 cat >$tmp/stdin
4660 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4662 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4664 * ) ac_file_in=$ac_file.in ;;
d6e9fb05
JK
4665 esac
4666
bec39cab
AC
4667 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4669$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4670 X"$ac_file" : 'X\(//\)[^/]' \| \
4671 X"$ac_file" : 'X\(//\)$' \| \
4672 X"$ac_file" : 'X\(/\)' \| \
4673 . : '\(.\)' 2>/dev/null ||
4674echo X"$ac_file" |
4675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4677 /^X\(\/\/\)$/{ s//\1/; q; }
4678 /^X\(\/\).*/{ s//\1/; q; }
4679 s/.*/./; q'`
4680 { if $as_mkdir_p; then
4681 mkdir -p "$ac_dir"
4682 else
4683 as_dir="$ac_dir"
4684 as_dirs=
4685 while test ! -d "$as_dir"; do
4686 as_dirs="$as_dir $as_dirs"
4687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4689 X"$as_dir" : 'X\(//\)[^/]' \| \
4690 X"$as_dir" : 'X\(//\)$' \| \
4691 X"$as_dir" : 'X\(/\)' \| \
4692 . : '\(.\)' 2>/dev/null ||
4693echo X"$as_dir" |
4694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4696 /^X\(\/\/\)$/{ s//\1/; q; }
4697 /^X\(\/\).*/{ s//\1/; q; }
4698 s/.*/./; q'`
4699 done
4700 test ! -n "$as_dirs" || mkdir $as_dirs
4701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4702echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4703 { (exit 1); exit 1; }; }; }
4704
4705 ac_builddir=.
4706
4707if test "$ac_dir" != .; then
4708 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4709 # A "../" for each directory in $ac_dir_suffix.
4710 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4711else
4712 ac_dir_suffix= ac_top_builddir=
4713fi
4714
4715case $srcdir in
4716 .) # No --srcdir option. We are building in place.
4717 ac_srcdir=.
4718 if test -z "$ac_top_builddir"; then
4719 ac_top_srcdir=.
4720 else
4721 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4722 fi ;;
4723 [\\/]* | ?:[\\/]* ) # Absolute path.
4724 ac_srcdir=$srcdir$ac_dir_suffix;
4725 ac_top_srcdir=$srcdir ;;
4726 *) # Relative path.
4727 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4728 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4729esac
4730
4731# Do not use `cd foo && pwd` to compute absolute paths, because
4732# the directories may not exist.
4733case `pwd` in
4734.) ac_abs_builddir="$ac_dir";;
4735*)
4736 case "$ac_dir" in
4737 .) ac_abs_builddir=`pwd`;;
4738 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4739 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4740 esac;;
4741esac
4742case $ac_abs_builddir in
4743.) ac_abs_top_builddir=${ac_top_builddir}.;;
4744*)
4745 case ${ac_top_builddir}. in
4746 .) ac_abs_top_builddir=$ac_abs_builddir;;
4747 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4748 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4749 esac;;
4750esac
4751case $ac_abs_builddir in
4752.) ac_abs_srcdir=$ac_srcdir;;
4753*)
4754 case $ac_srcdir in
4755 .) ac_abs_srcdir=$ac_abs_builddir;;
4756 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4757 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4758 esac;;
4759esac
4760case $ac_abs_builddir in
4761.) ac_abs_top_srcdir=$ac_top_srcdir;;
4762*)
4763 case $ac_top_srcdir in
4764 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4765 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4766 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4767 esac;;
4768esac
4769
d6e9fb05 4770
bec39cab
AC
4771 case $INSTALL in
4772 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4773 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d6e9fb05
JK
4774 esac
4775
ccbd4912
MK
4776 if test x"$ac_file" != x-; then
4777 { echo "$as_me:$LINENO: creating $ac_file" >&5
4778echo "$as_me: creating $ac_file" >&6;}
4779 rm -f "$ac_file"
4780 fi
bec39cab
AC
4781 # Let's still pretend it is `configure' which instantiates (i.e., don't
4782 # use $as_me), people would be surprised to read:
4783 # /* config.h. Generated by config.status. */
4784 if test x"$ac_file" = x-; then
4785 configure_input=
4786 else
4787 configure_input="$ac_file. "
4788 fi
4789 configure_input=$configure_input"Generated from `echo $ac_file_in |
4790 sed 's,.*/,,'` by configure."
4791
4792 # First look for the input files in the build tree, otherwise in the
4793 # src tree.
4794 ac_file_inputs=`IFS=:
4795 for f in $ac_file_in; do
4796 case $f in
4797 -) echo $tmp/stdin ;;
4798 [\\/$]*)
4799 # Absolute (can't be DOS-style, as IFS=:)
4800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4801echo "$as_me: error: cannot find input file: $f" >&2;}
4802 { (exit 1); exit 1; }; }
4803 echo "$f";;
4804 *) # Relative
4805 if test -f "$f"; then
4806 # Build tree
4807 echo "$f"
4808 elif test -f "$srcdir/$f"; then
4809 # Source tree
4810 echo "$srcdir/$f"
4811 else
4812 # /dev/null tree
4813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4814echo "$as_me: error: cannot find input file: $f" >&2;}
4815 { (exit 1); exit 1; }; }
4816 fi;;
4817 esac
4818 done` || { (exit 1); exit 1; }
4819_ACEOF
4820cat >>$CONFIG_STATUS <<_ACEOF
4821 sed "$ac_vpsub
4822$extrasub
4823_ACEOF
4824cat >>$CONFIG_STATUS <<\_ACEOF
4825:t
4826/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4827s,@configure_input@,$configure_input,;t t
4828s,@srcdir@,$ac_srcdir,;t t
4829s,@abs_srcdir@,$ac_abs_srcdir,;t t
4830s,@top_srcdir@,$ac_top_srcdir,;t t
4831s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4832s,@builddir@,$ac_builddir,;t t
4833s,@abs_builddir@,$ac_abs_builddir,;t t
4834s,@top_builddir@,$ac_top_builddir,;t t
4835s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4836s,@INSTALL@,$ac_INSTALL,;t t
4837" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4838 rm -f $tmp/stdin
4839 if test x"$ac_file" != x-; then
4840 mv $tmp/out $ac_file
4841 else
4842 cat $tmp/out
4843 rm -f $tmp/out
4844 fi
4845
4846done
4847_ACEOF
4848cat >>$CONFIG_STATUS <<\_ACEOF
4849
4850#
4851# CONFIG_HEADER section.
4852#
d6e9fb05 4853
84563040
DJ
4854# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4855# NAME is the cpp macro being defined and VALUE is the value it is being given.
4856#
4857# ac_d sets the value in "#define NAME VALUE" lines.
bec39cab
AC
4858ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4859ac_dB='[ ].*$,\1#\2'
4860ac_dC=' '
4861ac_dD=',;t'
4862# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4863ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4864ac_uB='$,\1#\2define\3'
84563040 4865ac_uC=' '
bec39cab
AC
4866ac_uD=',;t'
4867
4868for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
84563040 4869 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab
AC
4870 case $ac_file in
4871 - | *:- | *:-:* ) # input from stdin
4872 cat >$tmp/stdin
4873 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4875 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4877 * ) ac_file_in=$ac_file.in ;;
84563040 4878 esac
d6e9fb05 4879
bec39cab
AC
4880 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4881echo "$as_me: creating $ac_file" >&6;}
4882
4883 # First look for the input files in the build tree, otherwise in the
4884 # src tree.
4885 ac_file_inputs=`IFS=:
4886 for f in $ac_file_in; do
4887 case $f in
4888 -) echo $tmp/stdin ;;
4889 [\\/$]*)
4890 # Absolute (can't be DOS-style, as IFS=:)
4891 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4892echo "$as_me: error: cannot find input file: $f" >&2;}
4893 { (exit 1); exit 1; }; }
4894 # Do quote $f, to prevent DOS paths from being IFS'd.
4895 echo "$f";;
4896 *) # Relative
4897 if test -f "$f"; then
4898 # Build tree
4899 echo "$f"
4900 elif test -f "$srcdir/$f"; then
4901 # Source tree
4902 echo "$srcdir/$f"
4903 else
4904 # /dev/null tree
4905 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4906echo "$as_me: error: cannot find input file: $f" >&2;}
4907 { (exit 1); exit 1; }; }
4908 fi;;
4909 esac
4910 done` || { (exit 1); exit 1; }
4911 # Remove the trailing spaces.
4912 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4913
4914_ACEOF
4915
4916# Transform confdefs.h into two sed scripts, `conftest.defines' and
4917# `conftest.undefs', that substitutes the proper values into
4918# config.h.in to produce config.h. The first handles `#define'
4919# templates, and the second `#undef' templates.
4920# And first: Protect against being on the right side of a sed subst in
4921# config.status. Protect against being in an unquoted here document
4922# in config.status.
4923rm -f conftest.defines conftest.undefs
4924# Using a here document instead of a string reduces the quoting nightmare.
4925# Putting comments in sed scripts is not portable.
4926#
4927# `end' is used to avoid that the second main sed command (meant for
4928# 0-ary CPP macros) applies to n-ary macro definitions.
4929# See the Autoconf documentation for `clear'.
4930cat >confdef2sed.sed <<\_ACEOF
4931s/[\\&,]/\\&/g
4932s,[\\$`],\\&,g
4933t clear
4934: clear
4935s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4936t end
4937s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4938: end
4939_ACEOF
4940# If some macros were called several times there might be several times
4941# the same #defines, which is useless. Nevertheless, we may not want to
4942# sort them, since we want the *last* AC-DEFINE to be honored.
4943uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4944sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4945rm -f confdef2sed.sed
84563040
DJ
4946
4947# This sed command replaces #undef with comments. This is necessary, for
4948# example, in the case of _POSIX_SOURCE, which is predefined and required
4949# on some systems where configure will not decide to define it.
bec39cab
AC
4950cat >>conftest.undefs <<\_ACEOF
4951s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4952_ACEOF
4953
4954# Break up conftest.defines because some shells have a limit on the size
4955# of here documents, and old seds have small limits too (100 cmds).
4956echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4957echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4958echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4959echo ' :' >>$CONFIG_STATUS
4960rm -f conftest.tail
4961while grep . conftest.defines >/dev/null
4962do
4963 # Write a limited-size here document to $tmp/defines.sed.
4964 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4965 # Speed up: don't consider the non `#define' lines.
4966 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4967 # Work around the forget-to-reset-the-flag bug.
4968 echo 't clr' >>$CONFIG_STATUS
4969 echo ': clr' >>$CONFIG_STATUS
4970 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4971 echo 'CEOF
4972 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4973 rm -f $tmp/in
4974 mv $tmp/out $tmp/in
4975' >>$CONFIG_STATUS
4976 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4977 rm -f conftest.defines
4978 mv conftest.tail conftest.defines
4979done
4980rm -f conftest.defines
4981echo ' fi # grep' >>$CONFIG_STATUS
4982echo >>$CONFIG_STATUS
84563040 4983
bec39cab
AC
4984# Break up conftest.undefs because some shells have a limit on the size
4985# of here documents, and old seds have small limits too (100 cmds).
4986echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
84563040 4987rm -f conftest.tail
bec39cab 4988while grep . conftest.undefs >/dev/null
84563040 4989do
bec39cab
AC
4990 # Write a limited-size here document to $tmp/undefs.sed.
4991 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4992 # Speed up: don't consider the non `#undef'
4993 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4994 # Work around the forget-to-reset-the-flag bug.
4995 echo 't clr' >>$CONFIG_STATUS
4996 echo ': clr' >>$CONFIG_STATUS
4997 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
84563040 4998 echo 'CEOF
bec39cab
AC
4999 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5000 rm -f $tmp/in
5001 mv $tmp/out $tmp/in
5002' >>$CONFIG_STATUS
5003 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5004 rm -f conftest.undefs
5005 mv conftest.tail conftest.undefs
84563040 5006done
bec39cab
AC
5007rm -f conftest.undefs
5008
5009cat >>$CONFIG_STATUS <<\_ACEOF
5010 # Let's still pretend it is `configure' which instantiates (i.e., don't
5011 # use $as_me), people would be surprised to read:
5012 # /* config.h. Generated by config.status. */
5013 if test x"$ac_file" = x-; then
5014 echo "/* Generated by configure. */" >$tmp/config.h
5015 else
5016 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5017 fi
5018 cat $tmp/in >>$tmp/config.h
5019 rm -f $tmp/in
5020 if test x"$ac_file" != x-; then
5021 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5022 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5023echo "$as_me: $ac_file is unchanged" >&6;}
5024 else
5025 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5026$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5027 X"$ac_file" : 'X\(//\)[^/]' \| \
5028 X"$ac_file" : 'X\(//\)$' \| \
5029 X"$ac_file" : 'X\(/\)' \| \
5030 . : '\(.\)' 2>/dev/null ||
5031echo X"$ac_file" |
5032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5034 /^X\(\/\/\)$/{ s//\1/; q; }
5035 /^X\(\/\).*/{ s//\1/; q; }
5036 s/.*/./; q'`
5037 { if $as_mkdir_p; then
5038 mkdir -p "$ac_dir"
d6e9fb05 5039 else
bec39cab
AC
5040 as_dir="$ac_dir"
5041 as_dirs=
5042 while test ! -d "$as_dir"; do
5043 as_dirs="$as_dir $as_dirs"
5044 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5046 X"$as_dir" : 'X\(//\)[^/]' \| \
5047 X"$as_dir" : 'X\(//\)$' \| \
5048 X"$as_dir" : 'X\(/\)' \| \
5049 . : '\(.\)' 2>/dev/null ||
5050echo X"$as_dir" |
5051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5053 /^X\(\/\/\)$/{ s//\1/; q; }
5054 /^X\(\/\).*/{ s//\1/; q; }
5055 s/.*/./; q'`
5056 done
5057 test ! -n "$as_dirs" || mkdir $as_dirs
5058 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5059echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5060 { (exit 1); exit 1; }; }; }
5061
5062 rm -f $ac_file
5063 mv $tmp/config.h $ac_file
84563040 5064 fi
bec39cab
AC
5065 else
5066 cat $tmp/config.h
5067 rm -f $tmp/config.h
d6e9fb05 5068 fi
bec39cab
AC
5069done
5070_ACEOF
5071cat >>$CONFIG_STATUS <<\_ACEOF
5072
5073#
5074# CONFIG_COMMANDS section.
5075#
5076for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5077 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5078 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5079 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5080$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5081 X"$ac_dest" : 'X\(//\)[^/]' \| \
5082 X"$ac_dest" : 'X\(//\)$' \| \
5083 X"$ac_dest" : 'X\(/\)' \| \
5084 . : '\(.\)' 2>/dev/null ||
5085echo X"$ac_dest" |
5086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5088 /^X\(\/\/\)$/{ s//\1/; q; }
5089 /^X\(\/\).*/{ s//\1/; q; }
5090 s/.*/./; q'`
5091 { if $as_mkdir_p; then
5092 mkdir -p "$ac_dir"
5093 else
5094 as_dir="$ac_dir"
5095 as_dirs=
5096 while test ! -d "$as_dir"; do
5097 as_dirs="$as_dir $as_dirs"
5098 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5100 X"$as_dir" : 'X\(//\)[^/]' \| \
5101 X"$as_dir" : 'X\(//\)$' \| \
5102 X"$as_dir" : 'X\(/\)' \| \
5103 . : '\(.\)' 2>/dev/null ||
5104echo X"$as_dir" |
5105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5107 /^X\(\/\/\)$/{ s//\1/; q; }
5108 /^X\(\/\).*/{ s//\1/; q; }
5109 s/.*/./; q'`
5110 done
5111 test ! -n "$as_dirs" || mkdir $as_dirs
5112 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5113echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5114 { (exit 1); exit 1; }; }; }
5115
5116 ac_builddir=.
5117
5118if test "$ac_dir" != .; then
5119 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5120 # A "../" for each directory in $ac_dir_suffix.
5121 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5122else
5123 ac_dir_suffix= ac_top_builddir=
5124fi
5125
5126case $srcdir in
5127 .) # No --srcdir option. We are building in place.
5128 ac_srcdir=.
5129 if test -z "$ac_top_builddir"; then
5130 ac_top_srcdir=.
5131 else
5132 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5133 fi ;;
5134 [\\/]* | ?:[\\/]* ) # Absolute path.
5135 ac_srcdir=$srcdir$ac_dir_suffix;
5136 ac_top_srcdir=$srcdir ;;
5137 *) # Relative path.
5138 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5139 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5140esac
5141
5142# Do not use `cd foo && pwd` to compute absolute paths, because
5143# the directories may not exist.
5144case `pwd` in
5145.) ac_abs_builddir="$ac_dir";;
5146*)
5147 case "$ac_dir" in
5148 .) ac_abs_builddir=`pwd`;;
5149 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5150 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5151 esac;;
5152esac
5153case $ac_abs_builddir in
5154.) ac_abs_top_builddir=${ac_top_builddir}.;;
5155*)
5156 case ${ac_top_builddir}. in
5157 .) ac_abs_top_builddir=$ac_abs_builddir;;
5158 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5159 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5160 esac;;
5161esac
5162case $ac_abs_builddir in
5163.) ac_abs_srcdir=$ac_srcdir;;
5164*)
5165 case $ac_srcdir in
5166 .) ac_abs_srcdir=$ac_abs_builddir;;
5167 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5168 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5169 esac;;
5170esac
5171case $ac_abs_builddir in
5172.) ac_abs_top_srcdir=$ac_top_srcdir;;
5173*)
5174 case $ac_top_srcdir in
5175 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5176 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5177 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5178 esac;;
5179esac
84563040 5180
d6e9fb05 5181
bec39cab
AC
5182 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5183echo "$as_me: executing $ac_dest commands" >&6;}
5184 case $ac_dest in
5185 default ) case x$CONFIG_HEADERS in
c3a3ccc7
DJ
5186xconfig.h:config.in)
5187echo > stamp-h ;;
5188esac
bec39cab
AC
5189 ;;
5190 esac
5191done
5192_ACEOF
d6e9fb05 5193
bec39cab
AC
5194cat >>$CONFIG_STATUS <<\_ACEOF
5195
5196{ (exit 0); exit 0; }
5197_ACEOF
d6e9fb05 5198chmod +x $CONFIG_STATUS
bec39cab
AC
5199ac_clean_files=$ac_clean_files_save
5200
5201
5202# configure is writing to config.log, and then calls config.status.
5203# config.status does its own redirection, appending to config.log.
5204# Unfortunately, on DOS this fails, as config.log is still kept open
5205# by configure, so config.status won't be able to write to it; its
5206# output is simply discarded. So we exec the FD to /dev/null,
5207# effectively closing config.log, so it can be properly (re)opened and
5208# appended to by config.status. When coming back to configure, we
5209# need to make the FD available again.
5210if test "$no_create" != yes; then
5211 ac_cs_success=:
5212 ac_config_status_args=
5213 test "$silent" = yes &&
5214 ac_config_status_args="$ac_config_status_args --quiet"
5215 exec 5>/dev/null
5216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5217 exec 5>>config.log
5218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5219 # would make configure fail if this is the last instruction.
5220 $ac_cs_success || { (exit 1); exit 1; }
5221fi
d6e9fb05 5222
This page took 0.663686 seconds and 4 git commands to generate.