2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
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 \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
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
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
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
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
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; }; }
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).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if 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
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
274 ac_unique_file
="server.c"
275 ac_config_libobj_dir
=..
/gnulib
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version
=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name
=s
,x
,x
,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir
='${exec_prefix}/bin'
343 sbindir
='${exec_prefix}/sbin'
344 libexecdir
='${exec_prefix}/libexec'
345 datadir
='${prefix}/share'
346 sysconfdir
='${prefix}/etc'
347 sharedstatedir
='${prefix}/com'
348 localstatedir
='${prefix}/var'
349 libdir
='${exec_prefix}/lib'
350 includedir
='${prefix}/include'
351 oldincludedir
='/usr/include'
352 infodir
='${prefix}/info'
353 mandir
='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
373 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
376 -build |
--build |
--buil |
--bui |
--bu)
377 ac_prev
=build_alias
;;
378 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
379 build_alias
=$ac_optarg ;;
381 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
382 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
383 ac_prev
=cache_file
;;
384 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
385 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
386 cache_file
=$ac_optarg ;;
389 cache_file
=config.cache
;;
391 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
393 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
395 datadir
=$ac_optarg ;;
397 -disable-* |
--disable-*)
398 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* |
--enable-*)
407 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
420 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
421 |
--exec |
--exe |
--ex)
422 ac_prev
=exec_prefix
;;
423 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
424 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
425 |
--exec=* |
--exe=* |
--ex=*)
426 exec_prefix
=$ac_optarg ;;
428 -gas |
--gas |
--ga |
--g)
429 # Obsolete; use --with-gas.
432 -help |
--help |
--hel |
--he |
-h)
434 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
435 ac_init_help
=recursive
;;
436 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
437 ac_init_help
=short
;;
439 -host |
--host |
--hos |
--ho)
440 ac_prev
=host_alias
;;
441 -host=* |
--host=* |
--hos=* |
--ho=*)
442 host_alias
=$ac_optarg ;;
444 -includedir |
--includedir |
--includedi |
--included |
--include \
445 |
--includ |
--inclu |
--incl |
--inc)
446 ac_prev
=includedir
;;
447 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
448 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
449 includedir
=$ac_optarg ;;
451 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
453 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
454 infodir
=$ac_optarg ;;
456 -libdir |
--libdir |
--libdi |
--libd)
458 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
461 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
462 |
--libexe |
--libex |
--libe)
463 ac_prev
=libexecdir
;;
464 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
465 |
--libexe=* |
--libex=* |
--libe=*)
466 libexecdir
=$ac_optarg ;;
468 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
469 |
--localstate |
--localstat |
--localsta |
--localst \
470 |
--locals |
--local |
--loca |
--loc |
--lo)
471 ac_prev
=localstatedir
;;
472 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
473 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
474 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
475 localstatedir
=$ac_optarg ;;
477 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
479 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
483 # Obsolete; use --without-fp.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c |
-n)
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
494 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
495 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
496 |
--oldin |
--oldi |
--old |
--ol |
--o)
497 ac_prev
=oldincludedir
;;
498 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
499 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
500 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
501 oldincludedir
=$ac_optarg ;;
503 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
505 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
508 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
509 |
--program-pre |
--program-pr |
--program-p)
510 ac_prev
=program_prefix
;;
511 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
512 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
513 program_prefix
=$ac_optarg ;;
515 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
516 |
--program-suf |
--program-su |
--program-s)
517 ac_prev
=program_suffix
;;
518 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
519 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
520 program_suffix
=$ac_optarg ;;
522 -program-transform-name |
--program-transform-name \
523 |
--program-transform-nam |
--program-transform-na \
524 |
--program-transform-n |
--program-transform- \
525 |
--program-transform |
--program-transfor \
526 |
--program-transfo |
--program-transf \
527 |
--program-trans |
--program-tran \
528 |
--progr-tra |
--program-tr |
--program-t)
529 ac_prev
=program_transform_name
;;
530 -program-transform-name=* |
--program-transform-name=* \
531 |
--program-transform-nam=* |
--program-transform-na=* \
532 |
--program-transform-n=* |
--program-transform-=* \
533 |
--program-transform=* |
--program-transfor=* \
534 |
--program-transfo=* |
--program-transf=* \
535 |
--program-trans=* |
--program-tran=* \
536 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
537 program_transform_name
=$ac_optarg ;;
539 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
540 |
-silent |
--silent |
--silen |
--sile |
--sil)
543 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
545 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
547 sbindir
=$ac_optarg ;;
549 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
550 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
551 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
553 ac_prev
=sharedstatedir
;;
554 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
555 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
556 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
558 sharedstatedir
=$ac_optarg ;;
560 -site |
--site |
--sit)
562 -site=* |
--site=* |
--sit=*)
565 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
567 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
570 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
571 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
572 ac_prev
=sysconfdir
;;
573 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
574 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
575 sysconfdir
=$ac_optarg ;;
577 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
578 ac_prev
=target_alias
;;
579 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
580 target_alias
=$ac_optarg ;;
582 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
585 -version |
--version |
--versio |
--versi |
--vers |
-V)
589 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package
=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* |
--without-*)
602 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package
=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
615 |
--x-incl |
--x-inc |
--x-in |
--x-i)
616 ac_prev
=x_includes
;;
617 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
618 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
619 x_includes
=$ac_optarg ;;
621 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
622 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
623 ac_prev
=x_libraries
;;
624 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
625 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
626 x_libraries
=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var
in exec_prefix prefix
663 eval ac_val
=$
`echo $ac_var`
665 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val
=$
`echo $ac_var`
677 [\\/$
]* | ?
:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x
; then
692 if test "x$build_alias" = x
; then
693 cross_compiling
=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
704 test "$silent" = yes && exec 6>/dev
/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted
=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir
=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted
=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set
=${build_alias+set}
744 ac_env_build_alias_value
=$build_alias
745 ac_cv_env_build_alias_set
=${build_alias+set}
746 ac_cv_env_build_alias_value
=$build_alias
747 ac_env_host_alias_set
=${host_alias+set}
748 ac_env_host_alias_value
=$host_alias
749 ac_cv_env_host_alias_set
=${host_alias+set}
750 ac_cv_env_host_alias_value
=$host_alias
751 ac_env_target_alias_set
=${target_alias+set}
752 ac_env_target_alias_value
=$target_alias
753 ac_cv_env_target_alias_set
=${target_alias+set}
754 ac_cv_env_target_alias_value
=$target_alias
755 ac_env_CC_set
=${CC+set}
757 ac_cv_env_CC_set
=${CC+set}
758 ac_cv_env_CC_value
=$CC
759 ac_env_CFLAGS_set
=${CFLAGS+set}
760 ac_env_CFLAGS_value
=$CFLAGS
761 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value
=$CFLAGS
763 ac_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_env_LDFLAGS_value
=$LDFLAGS
765 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value
=$LDFLAGS
767 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
771 ac_env_CPP_set
=${CPP+set}
772 ac_env_CPP_value
=$CPP
773 ac_cv_env_CPP_set
=${CPP+set}
774 ac_cv_env_CPP_value
=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
783 \`configure' configures this package to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
842 --build=BUILD configure
for building on BUILD
[guessed
]
843 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
844 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
848 if test -n "$ac_init_help"; then
853 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
854 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
855 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
856 --with-bugurl=URL Direct users to URL to report a bug
858 Some influential environment variables
:
859 CC C compiler
command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
862 nonstandard directory
<lib dir
>
863 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
864 headers
in a nonstandard directory
<include dir
>
867 Use these variables to override the choices made by
`configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
885 ac_dir_suffix= ac_top_builddir=
889 .) # No --srcdir option. We are building in place.
891 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 # Do not use `cd foo
&& pwd` to compute absolute paths, because
905 # the directories may not exist.
907 .) ac_abs_builddir="$ac_dir";;
910 .) ac_abs_builddir=`pwd`;;
911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
915 case $ac_abs_builddir in
916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
918 case ${ac_top_builddir}. in
919 .) ac_abs_top_builddir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
924 case $ac_abs_builddir in
925 .) ac_abs_srcdir=$ac_srcdir;;
928 .) ac_abs_srcdir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
933 case $ac_abs_builddir in
934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
936 case $ac_top_srcdir in
937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944 # Check for guested configure; otherwise get Cygnus style configure.
945 if test -f $ac_srcdir/configure.gnu; then
947 $SHELL $ac_srcdir/configure.gnu --help=recursive
948 elif test -f $ac_srcdir/configure; then
950 $SHELL $ac_srcdir/configure --help=recursive
951 elif test -f $ac_srcdir/configure.ac ||
952 test -f $ac_srcdir/configure.in; then
956 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 test -n "$ac_init_help" && exit 0
963 if $ac_init_version; then
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
989 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
990 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
991 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
992 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
993 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
996 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
998 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1000 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1001 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1002 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1003 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1004 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_must_keep_next=false
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1066 -* ) ac_must_keep_next=true ;;
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close
' the trap.
1084 trap 'exit_status
=$?
1085 # Save into config.log some information that might help in debugging.
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1095 # The following way of writing the cache mishandles newlines in values,
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1118 for ac_var
in $ac_subst_vars
1120 eval ac_val
=$
`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1125 if test -n "$ac_subst_files"; then
1132 for ac_var
in $ac_subst_files
1134 eval ac_val
=$
`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1140 if test -s confdefs.h
; then
1147 sed "/^$/d" confdefs.h |
sort
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1154 rm -f core
*.core
&&
1155 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1168 # Predefined preprocessor variables.
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's
/^
/|
/' "$ac_site_file" >&5
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1230 # Check that the precious variables saved in the cache have kept the same
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1243 ac_cache_corrupted=: ;;
1245 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 # differences in whitespace do not lead to failure.
1252 ac_old_val_w=`echo x $ac_old_val`
1253 ac_new_val_w=`echo x $ac_new_val`
1254 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1256 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1257 ac_cache_corrupted=:
1259 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1260 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1261 eval $ac_var=\$ac_old_val
1263 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1264 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1265 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1266 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1284 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1285 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1286 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1287 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1288 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1289 { (exit 1); exit 1; }; }
1293 ac_cpp='$CPP $CPPFLAGS'
1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 ac_config_headers="$ac_config_headers config.h:config.in"
1324 ac_cpp='$CPP $CPPFLAGS'
1325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1331 echo "$as_me:$LINENO: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 test -z "$as_dir" && as_dir=.
1344 for ac_exec_ext in '' $ac_executable_extensions; do
1345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356 if test -n "$CC"; then
1357 echo "$as_me:$LINENO: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1360 echo "$as_me:$LINENO: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1365 if test -z "$ac_cv_prog_CC"; then
1367 # Extract the first word of "gcc", so it can be a program name with args.
1368 set dummy gcc; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 test -z "$as_dir" && as_dir=.
1382 for ac_exec_ext in '' $ac_executable_extensions; do
1383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384 ac_cv_prog_ac_ct_CC="gcc"
1385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1394 if test -n "$ac_ct_CC"; then
1395 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1396 echo "${ECHO_T}$ac_ct_CC" >&6
1398 echo "$as_me:$LINENO: result: no" >&5
1399 echo "${ECHO_T}no" >&6
1407 if test -z "$CC"; then
1408 if test -n "$ac_tool_prefix"; then
1409 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1410 set dummy ${ac_tool_prefix}cc; ac_word=$2
1411 echo "$as_me:$LINENO: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 if test -n "$CC"; then
1417 ac_cv_prog_CC="$CC" # Let the user override the test.
1419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1423 test -z "$as_dir" && as_dir=.
1424 for ac_exec_ext in '' $ac_executable_extensions; do
1425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1426 ac_cv_prog_CC="${ac_tool_prefix}cc"
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 if test -n "$CC"; then
1437 echo "$as_me:$LINENO: result: $CC" >&5
1438 echo "${ECHO_T}$CC" >&6
1440 echo "$as_me:$LINENO: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1445 if test -z "$ac_cv_prog_CC"; then
1447 # Extract the first word of "cc", so it can be a program name with args.
1448 set dummy cc; ac_word=$2
1449 echo "$as_me:$LINENO: checking for $ac_word" >&5
1450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 if test -n "$ac_ct_CC"; then
1455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461 test -z "$as_dir" && as_dir=.
1462 for ac_exec_ext in '' $ac_executable_extensions; do
1463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1464 ac_cv_prog_ac_ct_CC="cc"
1465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1474 if test -n "$ac_ct_CC"; then
1475 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1476 echo "${ECHO_T}$ac_ct_CC" >&6
1478 echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1488 if test -z "$CC"; then
1489 # Extract the first word of "cc", so it can be a program name with args.
1490 set dummy cc; ac_word=$2
1491 echo "$as_me:$LINENO: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_prog_CC+set}" = set; then
1494 echo $ECHO_N "(cached) $ECHO_C" >&6
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC="$CC" # Let the user override the test.
1500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir=.
1505 for ac_exec_ext in '' $ac_executable_extensions; do
1506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1508 ac_prog_rejected=yes
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 if test $ac_prog_rejected = yes; then
1519 # We found a bogon in the path, so make sure we never use it.
1520 set dummy $ac_cv_prog_CC
1522 if test $# != 0; then
1523 # We chose a different compiler from the bogus one.
1524 # However, it has the same basename, so the bogon will be chosen
1525 # first if we set CC to just the basename; use the full file name.
1527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1533 if test -n "$CC"; then
1534 echo "$as_me:$LINENO: result: $CC" >&5
1535 echo "${ECHO_T}$CC" >&6
1537 echo "$as_me:$LINENO: result: no" >&5
1538 echo "${ECHO_T}no" >&6
1542 if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1581 test -n "$CC" && break
1584 if test -z "$CC"; then
1588 # Extract the first word of "$ac_prog", so it can be a program name with args.
1589 set dummy $ac_prog; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="$ac_prog"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1623 test -n "$ac_ct_CC" && break
1632 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1633 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1634 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1635 See \
`config.log' for more details." >&5
1636 echo "$as_me: error: no acceptable C compiler found in \$PATH
1637 See \`config.log
' for more details." >&2;}
1638 { (exit 1); exit 1; }; }; }
1640 # Provide some information about the compiler.
1641 echo "$as_me:$LINENO:" \
1642 "checking for C compiler version" >&5
1643 ac_compiler=`set X $ac_compile; echo $2`
1644 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1645 (eval $ac_compiler --version </dev/null >&5) 2>&5
1647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1648 (exit $ac_status); }
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1650 (eval $ac_compiler -v </dev/null >&5) 2>&5
1652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653 (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1655 (eval $ac_compiler -V </dev/null >&5) 2>&5
1657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658 (exit $ac_status); }
1660 cat >conftest.$ac_ext <<_ACEOF
1663 cat confdefs.h >>conftest.$ac_ext
1664 cat >>conftest.$ac_ext <<_ACEOF
1665 /* end confdefs.h. */
1675 ac_clean_files_save=$ac_clean_files
1676 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1677 # Try to create an executable without -o first, disregard a.out.
1678 # It will help us diagnose broken compilers, and finding out an intuition
1680 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1681 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1682 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1683 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1684 (eval $ac_link_default) 2>&5
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }; then
1688 # Find the output, starting from the most likely. This scheme is
1689 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1692 # Be careful to initialize this variable, since it used to be cached.
1693 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1695 # b.out is created by i960 compilers.
1696 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1698 test -f "$ac_file" ||
continue
1700 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1703 # This is the source file.
1706 # We found the default executable, but exeext='' is most
1710 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1711 # FIXME: I believe we export ac_cv_exeext for Libtool,
1712 # but it would be cool to find out if it's true. Does anybody
1713 # maintain Libtool? --akim.
1721 echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.
$ac_ext >&5
1724 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1725 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1726 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1727 See \`config.log' for more details." >&5
1728 echo "$as_me: error: C compiler cannot create executables
1729 See \`config.log' for more details." >&2;}
1730 { (exit 77); exit 77; }; }; }
1733 ac_exeext
=$ac_cv_exeext
1734 echo "$as_me:$LINENO: result: $ac_file" >&5
1735 echo "${ECHO_T}$ac_file" >&6
1737 # Check the compiler produces executables we can run. If not, either
1738 # the compiler is broken, or we cross compile.
1739 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1740 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1741 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1742 # If not cross compiling, check that we can run a simple program.
1743 if test "$cross_compiling" != yes; then
1744 if { ac_try
='./$ac_file'
1745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }; }; then
1752 if test "$cross_compiling" = maybe
; then
1755 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1756 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1757 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1758 If you meant to cross compile, use \`--host'.
1759 See \`config.log' for more details." >&5
1760 echo "$as_me: error: cannot run C compiled programs.
1761 If you meant to cross compile, use \`--host'.
1762 See \`config.log' for more details." >&2;}
1763 { (exit 1); exit 1; }; }; }
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1770 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1771 ac_clean_files
=$ac_clean_files_save
1772 # Check the compiler produces executables we can run. If not, either
1773 # the compiler is broken, or we cross compile.
1774 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1775 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1776 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1777 echo "${ECHO_T}$cross_compiling" >&6
1779 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1780 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1782 (eval $ac_link) 2>&5
1784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1785 (exit $ac_status); }; then
1786 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1787 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1788 # work properly (i.e., refer to `conftest.exe'), while it won't with
1790 for ac_file
in conftest.exe conftest conftest.
*; do
1791 test -f "$ac_file" ||
continue
1793 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1794 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1801 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1802 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1803 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1804 See \`config.log' for more details." >&5
1805 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1806 See \`config.log' for more details." >&2;}
1807 { (exit 1); exit 1; }; }; }
1810 rm -f conftest
$ac_cv_exeext
1811 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1812 echo "${ECHO_T}$ac_cv_exeext" >&6
1814 rm -f conftest.
$ac_ext
1815 EXEEXT
=$ac_cv_exeext
1817 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1818 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1819 if test "${ac_cv_objext+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 cat >conftest.
$ac_ext <<_ACEOF
1825 cat confdefs.h
>>conftest.
$ac_ext
1826 cat >>conftest.
$ac_ext <<_ACEOF
1827 /* end confdefs.h. */
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1846 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.
$ac_ext >&5
1854 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1855 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1856 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1857 See \`config.log' for more details." >&5
1858 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }; }
1863 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1865 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1866 echo "${ECHO_T}$ac_cv_objext" >&6
1867 OBJEXT
=$ac_cv_objext
1869 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 cat >conftest.
$ac_ext <<_ACEOF
1877 cat confdefs.h
>>conftest.
$ac_ext
1878 cat >>conftest.
$ac_ext <<_ACEOF
1879 /* end confdefs.h. */
1892 rm -f conftest.
$ac_objext
1893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>conftest.er1
1896 grep -v '^ *+' conftest.er1
>conftest.err
1898 cat conftest.err
>&5
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); } &&
1901 { ac_try
='test -z "$ac_c_werror_flag"
1902 || test ! -s conftest.err'
1903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907 (exit $ac_status); }; } &&
1908 { ac_try
='test -s conftest.$ac_objext'
1909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; }; then
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.
$ac_ext >&5
1921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1922 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1925 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1926 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1927 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1928 ac_test_CFLAGS
=${CFLAGS+set}
1929 ac_save_CFLAGS
=$CFLAGS
1931 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1932 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1933 if test "${ac_cv_prog_cc_g+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 cat >conftest.
$ac_ext <<_ACEOF
1939 cat confdefs.h
>>conftest.
$ac_ext
1940 cat >>conftest.
$ac_ext <<_ACEOF
1941 /* end confdefs.h. */
1951 rm -f conftest.
$ac_objext
1952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1953 (eval $ac_compile) 2>conftest.er1
1955 grep -v '^ *+' conftest.er1
>conftest.err
1957 cat conftest.err
>&5
1958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959 (exit $ac_status); } &&
1960 { ac_try
='test -z "$ac_c_werror_flag"
1961 || test ! -s conftest.err'
1962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; } &&
1967 { ac_try
='test -s conftest.$ac_objext'
1968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1975 echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.
$ac_ext >&5
1980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1984 if test "$ac_test_CFLAGS" = set; then
1985 CFLAGS
=$ac_save_CFLAGS
1986 elif test $ac_cv_prog_cc_g = yes; then
1987 if test "$GCC" = yes; then
1993 if test "$GCC" = yes; then
1999 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2000 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2001 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 ac_cv_prog_cc_stdc
=no
2006 cat >conftest.
$ac_ext <<_ACEOF
2009 cat confdefs.h
>>conftest.
$ac_ext
2010 cat >>conftest.
$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2014 #include <sys/types.h>
2015 #include <sys/stat.h>
2016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2017 struct buf { int x; };
2018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2019 static char *e (p, i)
2025 static char *f (char * (*g) (char **, int), char **p, ...)
2030 s = g (p, va_arg (v,int));
2035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2036 function prototypes and stuff, but not '\xHH' hex character constants.
2037 These don't provoke an error unfortunately, instead are silently treated
2038 as 'x'. The following induces an error, until -std1 is added to get
2039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2040 array size at least. It's necessary to write '\x00'==0 to get something
2041 that's true only with -std1. */
2042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2044 int test (int i, double x);
2045 struct s1 {int (*f) (int a);};
2046 struct s2 {int (*f) (double a);};
2047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2058 # Don't try gcc -ansi; that turns off useful extensions and
2059 # breaks some systems' header files.
2060 # AIX -qlanglvl=ansi
2061 # Ultrix and OSF/1 -std1
2062 # HP-UX 10.20 and later -Ae
2063 # HP-UX older versions -Aa -D_HPUX_SOURCE
2064 # SVR4 -Xc -D__EXTENSIONS__
2065 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2067 CC
="$ac_save_CC $ac_arg"
2068 rm -f conftest.
$ac_objext
2069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>conftest.er1
2072 grep -v '^ *+' conftest.er1
>conftest.err
2074 cat conftest.err
>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try
='test -z "$ac_c_werror_flag"
2078 || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try
='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_cv_prog_cc_stdc
=$ac_arg
2093 echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.
$ac_ext >&5
2097 rm -f conftest.err conftest.
$ac_objext
2099 rm -f conftest.
$ac_ext conftest.
$ac_objext
2104 case "x$ac_cv_prog_cc_stdc" in
2106 echo "$as_me:$LINENO: result: none needed" >&5
2107 echo "${ECHO_T}none needed" >&6 ;;
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2111 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2114 # Some people use a C++ compiler to compile C. Since we use `exit',
2115 # in C++ we need to declare it. In case someone uses the same compiler
2116 # for both compiling C and C++ we need to have the C++ compiler decide
2117 # the declaration of exit, since it's the most demanding environment.
2118 cat >conftest.
$ac_ext <<_ACEOF
2123 rm -f conftest.
$ac_objext
2124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>conftest.er1
2127 grep -v '^ *+' conftest.er1
>conftest.err
2129 cat conftest.err
>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); } &&
2132 { ac_try
='test -z "$ac_c_werror_flag"
2133 || test ! -s conftest.err'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; } &&
2139 { ac_try
='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 for ac_declaration
in \
2147 'extern "C" void std::exit (int) throw (); using std::exit;' \
2148 'extern "C" void std::exit (int); using std::exit;' \
2149 'extern "C" void exit (int) throw ();' \
2150 'extern "C" void exit (int);' \
2153 cat >conftest.
$ac_ext <<_ACEOF
2156 cat confdefs.h
>>conftest.
$ac_ext
2157 cat >>conftest.
$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2169 rm -f conftest.
$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2173 grep -v '^ *+' conftest.er1
>conftest.err
2175 cat conftest.err
>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try
='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try
='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.
$ac_ext >&5
2198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2199 cat >conftest.
$ac_ext <<_ACEOF
2202 cat confdefs.h
>>conftest.
$ac_ext
2203 cat >>conftest.
$ac_ext <<_ACEOF
2204 /* end confdefs.h. */
2214 rm -f conftest.
$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>conftest.er1
2218 grep -v '^ *+' conftest.er1
>conftest.err
2220 cat conftest.err
>&5
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); } &&
2223 { ac_try
='test -z "$ac_c_werror_flag"
2224 || test ! -s conftest.err'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; } &&
2230 { ac_try
='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.
$ac_ext >&5
2242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2245 if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo $ac_declaration >>confdefs.h
2248 echo '#endif' >>confdefs.h
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.
$ac_ext >&5
2256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2258 ac_cpp
='$CPP $CPPFLAGS'
2259 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2264 cat >>confdefs.h
<<\_ACEOF
2265 #define _GNU_SOURCE 1
2271 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2272 if test -f $ac_dir/install-sh
; then
2274 ac_install_sh
="$ac_aux_dir/install-sh -c"
2276 elif test -f $ac_dir/install.sh
; then
2278 ac_install_sh
="$ac_aux_dir/install.sh -c"
2280 elif test -f $ac_dir/shtool
; then
2282 ac_install_sh
="$ac_aux_dir/shtool install -c"
2286 if test -z "$ac_aux_dir"; then
2287 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2288 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2289 { (exit 1); exit 1; }; }
2291 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2292 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2293 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2295 # Make sure we can run config.sub.
2296 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2297 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2298 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2299 { (exit 1); exit 1; }; }
2301 echo "$as_me:$LINENO: checking build system type" >&5
2302 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2303 if test "${ac_cv_build+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 ac_cv_build_alias
=$build_alias
2307 test -z "$ac_cv_build_alias" &&
2308 ac_cv_build_alias
=`$ac_config_guess`
2309 test -z "$ac_cv_build_alias" &&
2310 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2311 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2312 { (exit 1); exit 1; }; }
2313 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2314 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2315 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2316 { (exit 1); exit 1; }; }
2319 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2320 echo "${ECHO_T}$ac_cv_build" >&6
2322 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2323 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2324 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2327 echo "$as_me:$LINENO: checking host system type" >&5
2328 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2329 if test "${ac_cv_host+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_cv_host_alias
=$host_alias
2333 test -z "$ac_cv_host_alias" &&
2334 ac_cv_host_alias
=$ac_cv_build_alias
2335 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2336 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2337 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2338 { (exit 1); exit 1; }; }
2341 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6
2344 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2345 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2346 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2349 echo "$as_me:$LINENO: checking target system type" >&5
2350 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2351 if test "${ac_cv_target+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 ac_cv_target_alias
=$target_alias
2355 test "x$ac_cv_target_alias" = "x" &&
2356 ac_cv_target_alias
=$ac_cv_host_alias
2357 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2358 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2359 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2360 { (exit 1); exit 1; }; }
2363 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2364 echo "${ECHO_T}$ac_cv_target" >&6
2365 target
=$ac_cv_target
2366 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2367 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2368 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2371 # The aliases save the names the user supplied, while $host etc.
2372 # will get canonicalized.
2373 test -n "$target_alias" &&
2374 test "$program_prefix$program_suffix$program_transform_name" = \
2376 program_prefix
=${target_alias}-
2378 # Find a good install program. We prefer a C program (faster),
2379 # so one script is as good as another. But avoid the broken or
2380 # incompatible versions:
2381 # SysV /etc/install, /usr/sbin/install
2382 # SunOS /usr/etc/install
2383 # IRIX /sbin/install
2385 # AmigaOS /C/install, which installs bootblocks on floppy discs
2386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389 # OS/2's system install, which has a completely different semantic
2390 # ./install, which can be erroneously created by make from ./install.sh.
2391 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir
=.
2402 # Account for people who put trailing slashes in PATH elements.
2404 .
/ | .
// |
/cC
/* | \
2405 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2406 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2412 for ac_prog
in ginstall scoinst
install; do
2413 for ac_exec_ext
in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2415 if test $ac_prog = install &&
2416 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2419 elif test $ac_prog = install &&
2420 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2424 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL
=$ac_cv_path_install
2439 # As a last resort, use the slow shell script. We don't cache a
2440 # path for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the path is relative.
2443 INSTALL
=$ac_install_sh
2446 echo "$as_me:$LINENO: result: $INSTALL" >&5
2447 echo "${ECHO_T}$INSTALL" >&6
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2455 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2458 test "$program_prefix" != NONE
&&
2459 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
2460 # Use a double $ so make ignores it.
2461 test "$program_suffix" != NONE
&&
2462 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
2463 # Double any \ or $. echo might interpret backslashes.
2464 # By default was `s,x,x', remove it if useless.
2465 cat <<\_ACEOF
>conftest.
sed
2466 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2468 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2474 ac_cpp
='$CPP $CPPFLAGS'
2475 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2478 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2479 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2480 # On Suns, sometimes $CPP names a directory.
2481 if test -n "$CPP" && test -d "$CPP"; then
2484 if test -z "$CPP"; then
2485 if test "${ac_cv_prog_CPP+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 # Double quotes because CPP needs to be expanded
2489 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2492 for ac_c_preproc_warn_flag
in '' yes
2494 # Use a header file that comes with gcc, so configuring glibc
2495 # with a fresh cross-compiler works.
2496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2497 # <limits.h> exists even on freestanding compilers.
2498 # On the NeXT, cc -E runs the code through the compiler's parser,
2499 # not just through cpp. "Syntax error" is here to catch this case.
2500 cat >conftest.
$ac_ext <<_ACEOF
2503 cat confdefs.h
>>conftest.
$ac_ext
2504 cat >>conftest.
$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2507 # include <limits.h>
2509 # include <assert.h>
2513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2516 grep -v '^ *+' conftest.er1
>conftest.err
2518 cat conftest.err
>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } >/dev
/null
; then
2521 if test -s conftest.err
; then
2522 ac_cpp_err
=$ac_c_preproc_warn_flag
2523 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2530 if test -z "$ac_cpp_err"; then
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.
$ac_ext >&5
2536 # Broken: fails on valid input.
2539 rm -f conftest.err conftest.
$ac_ext
2541 # OK, works on sane cases. Now check whether non-existent headers
2542 # can be detected and how.
2543 cat >conftest.
$ac_ext <<_ACEOF
2546 cat confdefs.h
>>conftest.
$ac_ext
2547 cat >>conftest.
$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2549 #include <ac_nonexistent.h>
2551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2552 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1
>conftest.err
2556 cat conftest.err
>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } >/dev
/null
; then
2559 if test -s conftest.err
; then
2560 ac_cpp_err
=$ac_c_preproc_warn_flag
2561 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2568 if test -z "$ac_cpp_err"; then
2569 # Broken: success on invalid input.
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.
$ac_ext >&5
2575 # Passes both tests.
2579 rm -f conftest.err conftest.
$ac_ext
2582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2583 rm -f conftest.err conftest.
$ac_ext
2584 if $ac_preproc_ok; then
2596 echo "$as_me:$LINENO: result: $CPP" >&5
2597 echo "${ECHO_T}$CPP" >&6
2599 for ac_c_preproc_warn_flag
in '' yes
2601 # Use a header file that comes with gcc, so configuring glibc
2602 # with a fresh cross-compiler works.
2603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 # <limits.h> exists even on freestanding compilers.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp. "Syntax error" is here to catch this case.
2607 cat >conftest.
$ac_ext <<_ACEOF
2610 cat confdefs.h
>>conftest.
$ac_ext
2611 cat >>conftest.
$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2614 # include <limits.h>
2616 # include <assert.h>
2620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2621 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2623 grep -v '^ *+' conftest.er1
>conftest.err
2625 cat conftest.err
>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } >/dev
/null
; then
2628 if test -s conftest.err
; then
2629 ac_cpp_err
=$ac_c_preproc_warn_flag
2630 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2637 if test -z "$ac_cpp_err"; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.
$ac_ext >&5
2643 # Broken: fails on valid input.
2646 rm -f conftest.err conftest.
$ac_ext
2648 # OK, works on sane cases. Now check whether non-existent headers
2649 # can be detected and how.
2650 cat >conftest.
$ac_ext <<_ACEOF
2653 cat confdefs.h
>>conftest.
$ac_ext
2654 cat >>conftest.
$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656 #include <ac_nonexistent.h>
2658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1
>conftest.err
2663 cat conftest.err
>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } >/dev
/null
; then
2666 if test -s conftest.err
; then
2667 ac_cpp_err
=$ac_c_preproc_warn_flag
2668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2675 if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.
$ac_ext >&5
2682 # Passes both tests.
2686 rm -f conftest.err conftest.
$ac_ext
2689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2690 rm -f conftest.err conftest.
$ac_ext
2691 if $ac_preproc_ok; then
2694 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2695 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2699 See \`config.log' for more details." >&2;}
2700 { (exit 1); exit 1; }; }; }
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2710 echo "$as_me:$LINENO: checking for egrep" >&5
2711 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2712 if test "${ac_cv_prog_egrep+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2716 then ac_cv_prog_egrep
='grep -E'
2717 else ac_cv_prog_egrep
='egrep'
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2721 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2722 EGREP
=$ac_cv_prog_egrep
2725 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2726 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2727 if test "${ac_cv_header_stdc+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.
$ac_ext <<_ACEOF
2733 cat confdefs.h
>>conftest.
$ac_ext
2734 cat >>conftest.
$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2749 rm -f conftest.
$ac_objext
2750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2751 (eval $ac_compile) 2>conftest.er1
2753 grep -v '^ *+' conftest.er1
>conftest.err
2755 cat conftest.err
>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try
='test -z "$ac_c_werror_flag"
2759 || test ! -s conftest.err'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; } &&
2765 { ac_try
='test -s conftest.$ac_objext'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; }; then
2771 ac_cv_header_stdc
=yes
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.
$ac_ext >&5
2776 ac_cv_header_stdc
=no
2778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2780 if test $ac_cv_header_stdc = yes; then
2781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2782 cat >conftest.
$ac_ext <<_ACEOF
2785 cat confdefs.h
>>conftest.
$ac_ext
2786 cat >>conftest.
$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 $EGREP "memchr" >/dev
/null
2>&1; then
2795 ac_cv_header_stdc
=no
2801 if test $ac_cv_header_stdc = yes; then
2802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2803 cat >conftest.
$ac_ext <<_ACEOF
2806 cat confdefs.h
>>conftest.
$ac_ext
2807 cat >>conftest.
$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2813 $EGREP "free" >/dev
/null
2>&1; then
2816 ac_cv_header_stdc
=no
2822 if test $ac_cv_header_stdc = yes; then
2823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2824 if test "$cross_compiling" = yes; then
2827 cat >conftest.
$ac_ext <<_ACEOF
2830 cat confdefs.h
>>conftest.
$ac_ext
2831 cat >>conftest.
$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2834 #if ((' ' & 0x0FF) == 0x020)
2835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2838 # define ISLOWER(c) \
2839 (('a' <= (c) && (c) <= 'i') \
2840 || ('j' <= (c) && (c) <= 'r') \
2841 || ('s' <= (c) && (c) <= 'z'))
2842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2850 for (i = 0; i < 256; i++)
2851 if (XOR (islower (i), ISLOWER (i))
2852 || toupper (i) != TOUPPER (i))
2857 rm -f conftest
$ac_exeext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2859 (eval $ac_link) 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2870 echo "$as_me: program exited with status $ac_status" >&5
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.
$ac_ext >&5
2875 ac_cv_header_stdc
=no
2877 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2881 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2882 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2883 if test $ac_cv_header_stdc = yes; then
2885 cat >>confdefs.h
<<\_ACEOF
2886 #define STDC_HEADERS 1
2892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2902 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2903 inttypes.h stdint.h unistd.h
2905 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2906 echo "$as_me:$LINENO: checking for $ac_header" >&5
2907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.
$ac_ext <<_ACEOF
2914 cat confdefs.h
>>conftest.
$ac_ext
2915 cat >>conftest.
$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2917 $ac_includes_default
2919 #include <$ac_header>
2921 rm -f conftest.
$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2925 grep -v '^ *+' conftest.er1
>conftest.err
2927 cat conftest.err
>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try
='test -z "$ac_c_werror_flag"
2931 || test ! -s conftest.err'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; } &&
2937 { ac_try
='test -s conftest.$ac_objext'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; }; then
2943 eval "$as_ac_Header=yes"
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2948 eval "$as_ac_Header=no"
2950 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2955 cat >>confdefs.h
<<_ACEOF
2956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2987 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h thread_db.h linux
/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys
/file.h malloc.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h sys
/wait.h
2989 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2991 echo "$as_me:$LINENO: checking for $ac_header" >&5
2992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2999 # Is the header compilable?
3000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3002 cat >conftest.
$ac_ext <<_ACEOF
3005 cat confdefs.h
>>conftest.
$ac_ext
3006 cat >>conftest.
$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 $ac_includes_default
3009 #include <$ac_header>
3011 rm -f conftest.
$ac_objext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013 (eval $ac_compile) 2>conftest.er1
3015 grep -v '^ *+' conftest.er1
>conftest.err
3017 cat conftest.err
>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try
='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try
='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_header_compiler
=yes
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3038 ac_header_compiler
=no
3040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3042 echo "${ECHO_T}$ac_header_compiler" >&6
3044 # Is the header present?
3045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <$ac_header>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1
>conftest.err
3060 cat conftest.err
>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev
/null
; then
3063 if test -s conftest.err
; then
3064 ac_cpp_err
=$ac_c_preproc_warn_flag
3065 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3073 ac_header_preproc
=yes
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.
$ac_ext >&5
3078 ac_header_preproc
=no
3080 rm -f conftest.err conftest.
$ac_ext
3081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3082 echo "${ECHO_T}$ac_header_preproc" >&6
3084 # So? What about this header?
3085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3091 ac_header_preproc
=yes
3094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3097 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3101 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3108 ## ------------------------------------------ ##
3109 ## Report this to the AC_PACKAGE_NAME lists. ##
3110 ## ------------------------------------------ ##
3113 sed "s/^/$as_me: WARNING: /" >&2
3116 echo "$as_me:$LINENO: checking for $ac_header" >&5
3117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 eval "$as_ac_Header=\$ac_header_preproc"
3123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3128 cat >>confdefs.h
<<_ACEOF
3129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3139 for ac_func
in pread pwrite pread64
3141 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3142 echo "$as_me:$LINENO: checking for $ac_func" >&5
3143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3144 if eval "test \"\${$as_ac_var+set}\" = set"; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.
$ac_ext <<_ACEOF
3150 cat confdefs.h
>>conftest.
$ac_ext
3151 cat >>conftest.
$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3155 #define $ac_func innocuous_$ac_func
3157 /* System header to define __stub macros and hopefully few prototypes,
3158 which can conflict with char $ac_func (); below.
3159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3160 <limits.h> exists even on freestanding compilers. */
3163 # include <limits.h>
3165 # include <assert.h>
3170 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3178 /* The GNU C library defines this for functions which it implements
3179 to always fail with ENOSYS. Some functions are actually named
3180 something starting with __ and the normal name is an alias. */
3181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3184 char (*f) () = $ac_func;
3193 return f != $ac_func;
3198 rm -f conftest.
$ac_objext conftest
$ac_exeext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200 (eval $ac_link) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1
>conftest.err
3204 cat conftest.err
>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try
='test -z "$ac_c_werror_flag"
3208 || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try
='test -s conftest$ac_exeext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 eval "$as_ac_var=yes"
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.
$ac_ext >&5
3225 eval "$as_ac_var=no"
3227 rm -f conftest.err conftest.
$ac_objext \
3228 conftest
$ac_exeext conftest.
$ac_ext
3230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3232 if test `eval echo '${'$as_ac_var'}'` = yes; then
3233 cat >>confdefs.h
<<_ACEOF
3234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3241 for ac_func
in memmem
3243 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3244 echo "$as_me:$LINENO: checking for $ac_func" >&5
3245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3246 if eval "test \"\${$as_ac_var+set}\" = set"; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.
$ac_ext <<_ACEOF
3252 cat confdefs.h
>>conftest.
$ac_ext
3253 cat >>conftest.
$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3257 #define $ac_func innocuous_$ac_func
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func (); below.
3261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 <limits.h> exists even on freestanding compilers. */
3265 # include <limits.h>
3267 # include <assert.h>
3272 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3280 /* The GNU C library defines this for functions which it implements
3281 to always fail with ENOSYS. Some functions are actually named
3282 something starting with __ and the normal name is an alias. */
3283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3286 char (*f) () = $ac_func;
3295 return f != $ac_func;
3300 rm -f conftest.
$ac_objext conftest
$ac_exeext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3302 (eval $ac_link) 2>conftest.er1
3304 grep -v '^ *+' conftest.er1
>conftest.err
3306 cat conftest.err
>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try
='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try
='test -s conftest$ac_exeext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 eval "$as_ac_var=yes"
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.
$ac_ext >&5
3327 eval "$as_ac_var=no"
3329 rm -f conftest.err conftest.
$ac_objext \
3330 conftest
$ac_exeext conftest.
$ac_ext
3332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3334 if test `eval echo '${'$as_ac_var'}'` = yes; then
3335 cat >>confdefs.h
<<_ACEOF
3336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3341 "$ac_func.$ac_objext" | \
3342 *" $ac_func.$ac_objext" | \
3343 "$ac_func.$ac_objext "* | \
3344 *" $ac_func.$ac_objext "* ) ;;
3345 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
3354 echo "$as_me:$LINENO: checking for errno" >&5
3355 echo $ECHO_N "checking for errno... $ECHO_C" >&6
3356 cat >conftest.
$ac_ext <<_ACEOF
3359 cat confdefs.h
>>conftest.
$ac_ext
3360 cat >>conftest.
$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3369 static int x; x = errno;
3374 rm -f conftest.
$ac_objext conftest
$ac_exeext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376 (eval $ac_link) 2>conftest.er1
3378 grep -v '^ *+' conftest.er1
>conftest.err
3380 cat conftest.err
>&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } &&
3383 { ac_try
='test -z "$ac_c_werror_flag"
3384 || test ! -s conftest.err'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; } &&
3390 { ac_try
='test -s conftest$ac_exeext'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3397 echo "${ECHO_T}yes - in errno.h" >&6;
3398 cat >>confdefs.h
<<\_ACEOF
3399 #define HAVE_ERRNO 1
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.
$ac_ext >&5
3407 rm -f conftest.err conftest.
$ac_objext \
3408 conftest
$ac_exeext conftest.
$ac_ext
3409 if test $have_errno = no
; then
3410 cat >conftest.
$ac_ext <<_ACEOF
3413 cat confdefs.h
>>conftest.
$ac_ext
3414 cat >>conftest.
$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3423 extern int errno; static int x; x = errno;
3428 rm -f conftest.
$ac_objext conftest
$ac_exeext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430 (eval $ac_link) 2>conftest.er1
3432 grep -v '^ *+' conftest.er1
>conftest.err
3434 cat conftest.err
>&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try
='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try
='test -s conftest$ac_exeext'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 echo "$as_me:$LINENO: result: yes - must define" >&5
3451 echo "${ECHO_T}yes - must define" >&6;
3452 cat >>confdefs.h
<<\_ACEOF
3453 #define HAVE_ERRNO 1
3456 cat >>confdefs.h
<<\_ACEOF
3457 #define MUST_DEFINE_ERRNO 1
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.
$ac_ext >&5
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3467 rm -f conftest.err conftest.
$ac_objext \
3468 conftest
$ac_exeext conftest.
$ac_ext
3471 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3472 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3473 if test "${ac_cv_have_decl_strerror+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3482 $ac_includes_default
3487 char *p = (char *) strerror;
3494 rm -f conftest.
$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3498 grep -v '^ *+' conftest.er1
>conftest.err
3500 cat conftest.err
>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try
='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try
='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_have_decl_strerror
=yes
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.
$ac_ext >&5
3521 ac_cv_have_decl_strerror
=no
3523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3525 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3526 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3527 if test $ac_cv_have_decl_strerror = yes; then
3529 cat >>confdefs.h
<<_ACEOF
3530 #define HAVE_DECL_STRERROR 1
3535 cat >>confdefs.h
<<_ACEOF
3536 #define HAVE_DECL_STRERROR 0
3541 echo "$as_me:$LINENO: checking whether perror is declared" >&5
3542 echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3543 if test "${ac_cv_have_decl_perror+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3552 $ac_includes_default
3557 char *p = (char *) perror;
3564 rm -f conftest.
$ac_objext
3565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3566 (eval $ac_compile) 2>conftest.er1
3568 grep -v '^ *+' conftest.er1
>conftest.err
3570 cat conftest.err
>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } &&
3573 { ac_try
='test -z "$ac_c_werror_flag"
3574 || test ! -s conftest.err'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; } &&
3580 { ac_try
='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_have_decl_perror
=yes
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.
$ac_ext >&5
3591 ac_cv_have_decl_perror
=no
3593 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3595 echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3596 echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3597 if test $ac_cv_have_decl_perror = yes; then
3599 cat >>confdefs.h
<<_ACEOF
3600 #define HAVE_DECL_PERROR 1
3605 cat >>confdefs.h
<<_ACEOF
3606 #define HAVE_DECL_PERROR 0
3611 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3612 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3613 if test "${ac_cv_have_decl_memmem+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 cat >conftest.
$ac_ext <<_ACEOF
3619 cat confdefs.h
>>conftest.
$ac_ext
3620 cat >>conftest.
$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 $ac_includes_default
3627 char *p = (char *) memmem;
3634 rm -f conftest.
$ac_objext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636 (eval $ac_compile) 2>conftest.er1
3638 grep -v '^ *+' conftest.er1
>conftest.err
3640 cat conftest.err
>&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } &&
3643 { ac_try
='test -z "$ac_c_werror_flag"
3644 || test ! -s conftest.err'
3645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; } &&
3650 { ac_try
='test -s conftest.$ac_objext'
3651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3656 ac_cv_have_decl_memmem
=yes
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.
$ac_ext >&5
3661 ac_cv_have_decl_memmem
=no
3663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3665 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3666 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3667 if test $ac_cv_have_decl_memmem = yes; then
3669 cat >>confdefs.h
<<_ACEOF
3670 #define HAVE_DECL_MEMMEM 1
3675 cat >>confdefs.h
<<_ACEOF
3676 #define HAVE_DECL_MEMMEM 0
3684 echo "$as_me:$LINENO: checking for socklen_t" >&5
3685 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3686 if test "${ac_cv_type_socklen_t+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 cat >conftest.
$ac_ext <<_ACEOF
3692 cat confdefs.h
>>conftest.
$ac_ext
3693 cat >>conftest.
$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <sys/types.h>
3696 #include <sys/socket.h>
3702 if ((socklen_t *) 0)
3704 if (sizeof (socklen_t))
3710 rm -f conftest.
$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3714 grep -v '^ *+' conftest.er1
>conftest.err
3716 cat conftest.err
>&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try
='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try
='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_cv_type_socklen_t
=yes
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3737 ac_cv_type_socklen_t
=no
3739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3741 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3742 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3743 if test $ac_cv_type_socklen_t = yes; then
3745 cat >>confdefs.h
<<_ACEOF
3746 #define HAVE_SOCKLEN_T 1
3755 # Check whether --with-pkgversion or --without-pkgversion was given.
3756 if test "${with_pkgversion+set}" = set; then
3757 withval
="$with_pkgversion"
3759 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3760 echo "$as_me: error: package version not specified" >&2;}
3761 { (exit 1); exit 1; }; } ;;
3763 *) PKGVERSION
="($withval) " ;;
3773 # Check whether --with-bugurl or --without-bugurl was given.
3774 if test "${with_bugurl+set}" = set; then
3775 withval
="$with_bugurl"
3777 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3778 echo "$as_me: error: bug URL not specified" >&2;}
3779 { (exit 1); exit 1; }; } ;;
3782 *) BUGURL
="$withval"
3786 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
3795 REPORT_BUGS_TO
="<$BUGURL>"
3796 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3803 cat >>confdefs.h
<<_ACEOF
3804 #define PKGVERSION "$PKGVERSION"
3808 cat >>confdefs.h
<<_ACEOF
3809 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3813 .
${srcdir}/configure.srv
3815 if test "${srv_mingwce}" = "yes"; then
3817 elif test "${srv_mingw}" = "yes"; then
3818 LIBS
="$LIBS -lwsock32"
3821 if test "${srv_mingw}" = "yes"; then
3823 cat >>confdefs.h
<<\_ACEOF
3824 #define USE_WIN32API 1
3829 if test "${srv_linux_usrregs}" = "yes"; then
3831 cat >>confdefs.h
<<\_ACEOF
3832 #define HAVE_LINUX_USRREGS 1
3837 if test "${srv_linux_regsets}" = "yes"; then
3839 cat >>confdefs.h
<<\_ACEOF
3840 #define HAVE_LINUX_REGSETS 1
3844 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3845 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3846 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 cat >conftest.
$ac_ext <<_ACEOF
3852 cat confdefs.h
>>conftest.
$ac_ext
3853 cat >>conftest.
$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <sys/ptrace.h>
3864 rm -f conftest.
$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3868 grep -v '^ *+' conftest.er1
>conftest.err
3870 cat conftest.err
>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try
='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try
='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 gdbsrv_cv_have_ptrace_getregs
=yes
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.
$ac_ext >&5
3891 gdbsrv_cv_have_ptrace_getregs
=no
3893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3896 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3897 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3898 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3900 cat >>confdefs.h
<<\_ACEOF
3901 #define HAVE_PTRACE_GETREGS 1
3906 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3907 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3908 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 cat >conftest.
$ac_ext <<_ACEOF
3914 cat confdefs.h
>>conftest.
$ac_ext
3915 cat >>conftest.
$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 #include <sys/ptrace.h>
3926 rm -f conftest.
$ac_objext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928 (eval $ac_compile) 2>conftest.er1
3930 grep -v '^ *+' conftest.er1
>conftest.err
3932 cat conftest.err
>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try
='test -z "$ac_c_werror_flag"
3936 || test ! -s conftest.err'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; } &&
3942 { ac_try
='test -s conftest.$ac_objext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 gdbsrv_cv_have_ptrace_getfpxregs
=yes
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.
$ac_ext >&5
3953 gdbsrv_cv_have_ptrace_getfpxregs
=no
3955 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3958 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3959 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3960 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3962 cat >>confdefs.h
<<\_ACEOF
3963 #define HAVE_PTRACE_GETFPXREGS 1
3969 if test "$ac_cv_header_sys_procfs_h" = yes; then
3970 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3971 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3972 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.
$ac_ext <<_ACEOF
3978 cat confdefs.h
>>conftest.
$ac_ext
3979 cat >>conftest.
$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3983 #include <sys/procfs.h>
3992 rm -f conftest.
$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>conftest.er1
3996 grep -v '^ *+' conftest.er1
>conftest.err
3998 cat conftest.err
>&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try
='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try
='test -s conftest.$ac_objext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4016 echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.
$ac_ext >&5
4019 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4025 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4027 cat >>confdefs.h
<<\_ACEOF
4028 #define HAVE_LWPID_T 1
4032 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4033 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
4035 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
4036 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
4037 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 cat >conftest.
$ac_ext <<_ACEOF
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4048 #include <sys/procfs.h>
4057 rm -f conftest.
$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059 (eval $ac_compile) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1
>conftest.err
4063 cat conftest.err
>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
4066 { ac_try
='test -z "$ac_c_werror_flag"
4067 || test ! -s conftest.err'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try
='test -s conftest.$ac_objext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.
$ac_ext >&5
4084 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4087 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4090 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4092 cat >>confdefs.h
<<\_ACEOF
4093 #define HAVE_PSADDR_T 1
4097 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4098 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
4100 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
4101 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
4102 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 cat >conftest.
$ac_ext <<_ACEOF
4108 cat confdefs.h
>>conftest.
$ac_ext
4109 cat >>conftest.
$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4113 #include <sys/procfs.h>
4122 rm -f conftest.
$ac_objext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>conftest.er1
4126 grep -v '^ *+' conftest.er1
>conftest.err
4128 cat conftest.err
>&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try
='test -z "$ac_c_werror_flag"
4132 || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try
='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.
$ac_ext >&5
4149 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4155 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4157 cat >>confdefs.h
<<\_ACEOF
4158 #define HAVE_PRGREGSET_T 1
4162 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4163 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
4165 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4166 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
4167 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 cat >conftest.
$ac_ext <<_ACEOF
4173 cat confdefs.h
>>conftest.
$ac_ext
4174 cat >>conftest.
$ac_ext <<_ACEOF
4175 /* end confdefs.h. */
4178 #include <sys/procfs.h>
4187 rm -f conftest.
$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1
>conftest.err
4193 cat conftest.err
>&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try
='test -z "$ac_c_werror_flag"
4197 || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try
='test -s conftest.$ac_objext'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; }; then
4209 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.
$ac_ext >&5
4214 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
4217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4220 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4222 cat >>confdefs.h
<<\_ACEOF
4223 #define HAVE_ELF_FPREGSET_T 1
4227 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4228 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
4232 srv_thread_depfiles
=
4236 if test "$srv_linux_thread_db" = "yes"; then
4237 echo "$as_me:$LINENO: checking for libthread_db" >&5
4238 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
4239 if test "${srv_cv_thread_db+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 LIBS
="$LIBS -lthread_db"
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 void ps_pglobal_lookup() {}
4252 void ps_pdwrite() {}
4253 void ps_lgetregs() {}
4254 void ps_lsetregs() {}
4255 void ps_lgetfpregs() {}
4256 void ps_lsetfpregs() {}
4257 void ps_get_thread_area() {}
4267 rm -f conftest.
$ac_objext conftest
$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1
>conftest.err
4273 cat conftest.err
>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try
='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try
='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 srv_cv_thread_db
="-lthread_db"
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.
$ac_ext >&5
4296 if test "$prefix" = "/usr" ||
test "$prefix" = "NONE"; then
4297 thread_db
="/lib/libthread_db.so.1"
4299 thread_db
='$prefix/lib/libthread_db.so.1'
4301 LIBS
="$old_LIBS `eval echo "$thread_db"`"
4302 cat >conftest.
$ac_ext <<_ACEOF
4305 cat confdefs.h
>>conftest.
$ac_ext
4306 cat >>conftest.
$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 void ps_pglobal_lookup() {}
4310 void ps_pdwrite() {}
4311 void ps_lgetregs() {}
4312 void ps_lsetregs() {}
4313 void ps_lgetfpregs() {}
4314 void ps_lsetfpregs() {}
4315 void ps_get_thread_area() {}
4325 rm -f conftest.
$ac_objext conftest
$ac_exeext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>conftest.er1
4329 grep -v '^ *+' conftest.er1
>conftest.err
4331 cat conftest.err
>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try
='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try
='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 srv_cv_thread_db
="$thread_db"
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.
$ac_ext >&5
4354 rm -f conftest.err conftest.
$ac_objext \
4355 conftest
$ac_exeext conftest.
$ac_ext
4358 rm -f conftest.err conftest.
$ac_objext \
4359 conftest
$ac_exeext conftest.
$ac_ext
4363 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4364 echo "${ECHO_T}$srv_cv_thread_db" >&6
4365 if test "$srv_cv_thread_db" = no
; then
4366 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4367 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4368 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4369 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4370 srv_linux_thread_db
=no
4372 srv_libs
="$srv_cv_thread_db"
4373 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4374 echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4375 if test "${srv_cv_tls_get_addr+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 LIBS
="$LIBS $srv_cv_thread_db"
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 void ps_pglobal_lookup() {}
4388 void ps_pdwrite() {}
4389 void ps_lgetregs() {}
4390 void ps_lsetregs() {}
4391 void ps_lgetfpregs() {}
4392 void ps_lsetfpregs() {}
4393 void ps_get_thread_area() {}
4398 td_thr_tls_get_addr();
4403 rm -f conftest.
$ac_objext conftest
$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405 (eval $ac_link) 2>conftest.er1
4407 grep -v '^ *+' conftest.er1
>conftest.err
4409 cat conftest.err
>&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } &&
4412 { ac_try
='test -z "$ac_c_werror_flag"
4413 || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try
='test -s conftest$ac_exeext'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; }; then
4425 srv_cv_tls_get_addr
=yes
4427 echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.
$ac_ext >&5
4430 srv_cv_tls_get_addr
=no
4432 rm -f conftest.err conftest.
$ac_objext \
4433 conftest
$ac_exeext conftest.
$ac_ext
4437 echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4438 echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
4440 old_LDFLAGS
="$LDFLAGS"
4441 LDFLAGS
="$LDFLAGS -rdynamic"
4442 cat >conftest.
$ac_ext <<_ACEOF
4445 cat confdefs.h
>>conftest.
$ac_ext
4446 cat >>conftest.
$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4457 rm -f conftest.
$ac_objext conftest
$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try
='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try
='test -s conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.
$ac_ext >&5
4486 rm -f conftest.err conftest.
$ac_objext \
4487 conftest
$ac_exeext conftest.
$ac_ext
4489 LDFLAGS
="$old_LDFLAGS"
4492 if test "$srv_linux_thread_db" = "yes"; then
4493 srv_thread_depfiles
="thread-db.o proc-service.o"
4494 USE_THREAD_DB
="-DUSE_THREAD_DB"
4495 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4496 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
4497 if test "${gdbsrv_cv_have_td_version+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 cat >conftest.
$ac_ext <<_ACEOF
4503 cat confdefs.h
>>conftest.
$ac_ext
4504 cat >>conftest.
$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <thread_db.h>
4515 rm -f conftest.
$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4519 grep -v '^ *+' conftest.er1
>conftest.err
4521 cat conftest.err
>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try
='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try
='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 gdbsrv_cv_have_td_version
=yes
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4542 gdbsrv_cv_have_td_version
=no
4544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4546 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4547 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
4548 if test $gdbsrv_cv_have_td_version = yes; then
4550 cat >>confdefs.h
<<\_ACEOF
4551 #define HAVE_TD_VERSION 1
4556 if test "$srv_cv_tls_get_addr" = yes; then
4558 cat >>confdefs.h
<<\_ACEOF
4559 #define HAVE_TD_THR_TLS_GET_ADDR 1
4565 if test "$srv_xmlfiles" != ""; then
4566 srv_xmlbuiltin
="xml-builtin.o"
4568 cat >>confdefs.h
<<\_ACEOF
4573 tmp_xmlfiles
=$srv_xmlfiles
4575 for f
in $tmp_xmlfiles; do
4576 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
4580 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4581 GDBSERVER_LIBS
="$srv_libs"
4589 ac_config_files
="$ac_config_files Makefile"
4590 ac_config_commands
="$ac_config_commands default"
4591 cat >confcache
<<\_ACEOF
4592 # This file is a shell script that caches the results of configure
4593 # tests run on this system so they can be shared between configure
4594 # scripts and configure runs, see configure's option --config-cache.
4595 # It is not useful on other systems. If it contains results you don't
4596 # want to keep, you may remove or edit it.
4598 # config.status only pays attention to the cache file if you give it
4599 # the --recheck option to rerun configure.
4601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4607 # The following way of writing the cache mishandles newlines in values,
4608 # but we know of no workaround that is simple, portable, and efficient.
4609 # So, don't put newlines in cache variables' values.
4610 # Ultrix sh set writes to stderr and can't be redirected directly,
4611 # and sets the high bit in the cache file unless we assign to the vars.
4614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4616 # `set' does not quote correctly, so add quotes (double-quote
4617 # substitution turns \\\\ into \\, and sed turns \\ into \).
4620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4623 # `set' quotes correctly as required by POSIX, so do not add quotes.
4625 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4634 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4636 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4637 if test -w $cache_file; then
4638 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4639 cat confcache
>$cache_file
4641 echo "not updating unwritable cache $cache_file"
4646 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4647 # Let make expand exec_prefix.
4648 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4652 # trailing colons and then remove the whole line if VPATH becomes empty
4653 # (actually we leave an empty line to preserve line numbers).
4654 if test "x$srcdir" = x.
; then
4655 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4656 s/:*\$(srcdir):*/:/;
4657 s/:*\${srcdir}:*/:/;
4659 s/^\([^=]*=[ ]*\):*/\1/;
4665 DEFS
=-DHAVE_CONFIG_H
4669 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4670 # 1. Remove the extension, and $U if already installed.
4671 ac_i
=`echo "$ac_i" |
4672 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4674 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4675 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4679 LTLIBOBJS
=$ac_ltlibobjs
4683 : ${CONFIG_STATUS=./config.status}
4684 ac_clean_files_save
=$ac_clean_files
4685 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4686 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4687 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4688 cat >$CONFIG_STATUS <<_ACEOF
4690 # Generated by $as_me.
4691 # Run this file to recreate the current configuration.
4692 # Compiler output produced by configure, useful for debugging
4693 # configure, is in config.log if it exists.
4698 SHELL=\${CONFIG_SHELL-$SHELL}
4701 cat >>$CONFIG_STATUS <<\_ACEOF
4702 ## --------------------- ##
4703 ## M4sh Initialization. ##
4704 ## --------------------- ##
4706 # Be Bourne compatible
4707 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4710 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4711 # is contrary to our usage. Disable this feature.
4712 alias -g '${1+"$@"}'='"$@"'
4713 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4716 DUALCASE
=1; export DUALCASE
# for MKS sh
4718 # Support unset when possible.
4719 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4726 # Work around bugs in pre-3.0 UWIN ksh.
4727 $as_unset ENV MAIL MAILPATH
4734 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4735 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4736 LC_TELEPHONE LC_TIME
4738 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4739 eval $as_var=C
; export $as_var
4745 # Required to use basename.
4746 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4752 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4753 as_basename
=basename
4759 # Name of the executable.
4760 as_me
=`$as_basename "$0" ||
4761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4762 X"$0" : 'X\(//\)$' \| \
4763 X"$0" : 'X\(/\)$' \| \
4764 . : '\(.\)' 2>/dev/null ||
4766 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4767 /^X\/\(\/\/\)$/{ s//\1/; q; }
4768 /^X\/\(\/\).*/{ s//\1/; q; }
4772 # PATH needs CR, and LINENO needs CR and PATH.
4773 # Avoid depending upon Character Ranges.
4774 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4775 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4776 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4777 as_cr_digits
='0123456789'
4778 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4780 # The user is always right.
4781 if test "${PATH_SEPARATOR+set}" != set; then
4782 echo "#! /bin/sh" >conf$$.sh
4783 echo "exit 0" >>conf$$.sh
4785 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4796 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4797 test "x$as_lineno_1" != "x$as_lineno_2" &&
4798 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4799 # Find who we are. Look in the path if we contain no path at all
4802 *[\\/]* ) as_myself
=$0 ;;
4803 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4807 test -z "$as_dir" && as_dir
=.
4808 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4813 # We did not find ourselves, most probably we were run as `sh COMMAND'
4814 # in which case we are not to be found in the path.
4815 if test "x$as_myself" = x
; then
4818 if test ! -f "$as_myself"; then
4819 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4820 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4821 { (exit 1); exit 1; }; }
4823 case $CONFIG_SHELL in
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4826 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4829 test -z "$as_dir" && as_dir
=.
4830 for as_base
in sh bash ksh sh5
; do
4833 if ("$as_dir/$as_base" -c '
4836 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4837 test "x$as_lineno_1" != "x$as_lineno_2" &&
4838 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4839 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4840 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4841 CONFIG_SHELL
=$as_dir/$as_base
4843 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4852 # uniformly replaced by the line number. The first 'sed' inserts a
4853 # line-number line before each line; the second 'sed' does the real
4854 # work. The second script uses 'N' to pair each line-number line
4855 # with the numbered line, and appends trailing '-' during
4856 # substitution so that $LINENO is not a special case at line end.
4857 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4858 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4859 sed '=' <$as_myself |
4864 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4867 s,^['$as_cr_digits']*\n,,
4869 chmod +x
$as_me.lineno ||
4870 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4871 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4872 { (exit 1); exit 1; }; }
4874 # Don't try to exec as it changes $[0], causing all sort of problems
4875 # (the dirname of $[0] is not the place where we might find the
4876 # original and so on. Autoconf is especially sensible to this).
4878 # Exit status is that of the last command.
4883 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4884 *c
*,-n*) ECHO_N
= ECHO_C
='
4886 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4887 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4890 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4896 rm -f conf$$ conf$$.exe conf$$.
file
4898 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4899 # We could just check for DJGPP; but this test a) works b) is more generic
4900 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4901 if test -f conf$$.exe
; then
4902 # Don't use ln at all; we don't have any links
4907 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4912 rm -f conf$$ conf$$.exe conf$$.
file
4914 if mkdir
-p .
2>/dev
/null
; then
4917 test -d .
/-p && rmdir .
/-p
4921 as_executable_p
="test -f"
4923 # Sed expression to map a string onto a valid CPP name.
4924 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4926 # Sed expression to map a string onto a valid variable name.
4927 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4931 # We need space, tab and new line, in precisely that order.
4941 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4942 # report actual input values of CONFIG_FILES etc. instead of their
4943 # values after options handling. Logging --version etc. is OK.
4947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4948 ## Running $as_me. ##
4953 This file was extended by $as_me, which was
4954 generated by GNU Autoconf 2.59. Invocation command line was
4956 CONFIG_FILES = $CONFIG_FILES
4957 CONFIG_HEADERS = $CONFIG_HEADERS
4958 CONFIG_LINKS = $CONFIG_LINKS
4959 CONFIG_COMMANDS = $CONFIG_COMMANDS
4963 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4967 # Files that config.status was made for.
4968 if test -n "$ac_config_files"; then
4969 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4972 if test -n "$ac_config_headers"; then
4973 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4976 if test -n "$ac_config_links"; then
4977 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4980 if test -n "$ac_config_commands"; then
4981 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4984 cat >>$CONFIG_STATUS <<\_ACEOF
4987 \`$as_me' instantiates files from templates according to the
4988 current configuration.
4990 Usage: $0 [OPTIONS] [FILE]...
4992 -h, --help print this help, then exit
4993 -V, --version print version number, then exit
4994 -q, --quiet do not print progress messages
4995 -d, --debug don't remove temporary files
4996 --recheck update $as_me by reconfiguring in the same conditions
4997 --file=FILE[:TEMPLATE]
4998 instantiate the configuration file FILE
4999 --header=FILE[:TEMPLATE]
5000 instantiate the configuration header FILE
5002 Configuration files:
5005 Configuration headers:
5008 Configuration commands:
5011 Report bugs to <bug-autoconf@gnu.org>."
5014 cat >>$CONFIG_STATUS <<_ACEOF
5017 configured by $0, generated by GNU Autoconf 2.59,
5018 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5020 Copyright (C) 2003 Free Software Foundation, Inc.
5021 This config.status script is free software; the Free Software Foundation
5022 gives unlimited permission to copy, distribute and modify it."
5027 cat >>$CONFIG_STATUS <<\_ACEOF
5028 # If no file are specified by the user, then we need to provide default
5029 # value. By we need to know if files were specified by the user.
5035 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5036 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5044 *) # This is not an option, so the user has probably given explicit
5047 ac_need_defaults
=false
;;
5051 # Handling of the options.
5053 cat >>$CONFIG_STATUS <<\_ACEOF
5054 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5056 --version |
--vers* |
-V )
5057 echo "$ac_cs_version"; exit 0 ;;
5059 # Conflict between --help and --header
5060 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5061 Try \`$0 --help' for more information." >&5
5062 echo "$as_me: error: ambiguous option: $1
5063 Try \`$0 --help' for more information." >&2;}
5064 { (exit 1); exit 1; }; };;
5065 --help |
--hel |
-h )
5066 echo "$ac_cs_usage"; exit 0 ;;
5067 --debug |
--d* |
-d )
5069 --file |
--fil |
--fi |
--f )
5071 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5072 ac_need_defaults
=false
;;
5073 --header |
--heade |
--head |
--hea )
5075 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5076 ac_need_defaults
=false
;;
5077 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5078 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5082 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5083 Try \`$0 --help' for more information." >&5
5084 echo "$as_me: error: unrecognized option: $1
5085 Try \`$0 --help' for more information." >&2;}
5086 { (exit 1); exit 1; }; } ;;
5088 *) ac_config_targets
="$ac_config_targets $1" ;;
5094 ac_configure_extra_args
=
5096 if $ac_cs_silent; then
5098 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5102 cat >>$CONFIG_STATUS <<_ACEOF
5103 if \$ac_cs_recheck; then
5104 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5105 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5114 cat >>$CONFIG_STATUS <<\_ACEOF
5115 for ac_config_target
in $ac_config_targets
5117 case "$ac_config_target" in
5118 # Handling of arguments.
5119 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5120 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5121 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5122 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5123 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5124 { (exit 1); exit 1; }; };;
5128 # If the user did not use the arguments to specify the items to instantiate,
5129 # then the envvar interface is used. Set only those that are not.
5130 # We use the long form for the default assignment because of an extremely
5131 # bizarre bug on SunOS 4.1.3.
5132 if $ac_need_defaults; then
5133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5138 # Have a temporary directory for convenience. Make it in the build tree
5139 # simply because there is no reason to put it here, and in addition,
5140 # creating and moving files from /tmp can sometimes cause problems.
5141 # Create a temporary directory, and hook for its removal unless debugging.
5144 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5145 trap '{ (exit 1); exit 1; }' 1 2 13 15
5148 # Create a (secure) tmp directory for tmp files.
5151 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5152 test -n "$tmp" && test -d "$tmp"
5155 tmp
=.
/confstat$$
-$RANDOM
5156 (umask 077 && mkdir
$tmp)
5159 echo "$me: cannot create a temporary directory in ." >&2
5160 { (exit 1); exit 1; }
5165 cat >>$CONFIG_STATUS <<_ACEOF
5168 # CONFIG_FILES section.
5171 # No need to generate the scripts if there are no CONFIG_FILES.
5172 # This happens for instance when ./config.status config.h
5173 if test -n "\$CONFIG_FILES"; then
5174 # Protect against being on the right side of a sed subst in config.status.
5175 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5176 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5177 s,@SHELL@,$SHELL,;t t
5178 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5179 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5180 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5181 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5182 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5183 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5184 s,@exec_prefix@,$exec_prefix,;t t
5185 s,@prefix@,$prefix,;t t
5186 s,@program_transform_name@,$program_transform_name,;t t
5187 s,@bindir@,$bindir,;t t
5188 s,@sbindir@,$sbindir,;t t
5189 s,@libexecdir@,$libexecdir,;t t
5190 s,@datadir@,$datadir,;t t
5191 s,@sysconfdir@,$sysconfdir,;t t
5192 s,@sharedstatedir@,$sharedstatedir,;t t
5193 s,@localstatedir@,$localstatedir,;t t
5194 s,@libdir@,$libdir,;t t
5195 s,@includedir@,$includedir,;t t
5196 s,@oldincludedir@,$oldincludedir,;t t
5197 s,@infodir@,$infodir,;t t
5198 s,@mandir@,$mandir,;t t
5199 s,@build_alias@,$build_alias,;t t
5200 s,@host_alias@,$host_alias,;t t
5201 s,@target_alias@,$target_alias,;t t
5203 s,@ECHO_C@,$ECHO_C,;t t
5204 s,@ECHO_N@,$ECHO_N,;t t
5205 s,@ECHO_T@,$ECHO_T,;t t
5208 s,@CFLAGS@,$CFLAGS,;t t
5209 s,@LDFLAGS@,$LDFLAGS,;t t
5210 s,@CPPFLAGS@,$CPPFLAGS,;t t
5211 s,@ac_ct_CC@,$ac_ct_CC,;t t
5212 s,@EXEEXT@,$EXEEXT,;t t
5213 s,@OBJEXT@,$OBJEXT,;t t
5214 s,@build@,$build,;t t
5215 s,@build_cpu@,$build_cpu,;t t
5216 s,@build_vendor@,$build_vendor,;t t
5217 s,@build_os@,$build_os,;t t
5219 s,@host_cpu@,$host_cpu,;t t
5220 s,@host_vendor@,$host_vendor,;t t
5221 s,@host_os@,$host_os,;t t
5222 s,@target@,$target,;t t
5223 s,@target_cpu@,$target_cpu,;t t
5224 s,@target_vendor@,$target_vendor,;t t
5225 s,@target_os@,$target_os,;t t
5226 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5227 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5228 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5230 s,@EGREP@,$EGREP,;t t
5231 s,@LIBOBJS@,$LIBOBJS,;t t
5232 s,@PKGVERSION@,$PKGVERSION,;t t
5233 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
5234 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5235 s,@RDYNAMIC@,$RDYNAMIC,;t t
5236 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5237 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5238 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
5239 s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5240 s,@srv_xmlfiles@,$srv_xmlfiles,;t t
5241 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5246 cat >>$CONFIG_STATUS <<\_ACEOF
5247 # Split the substitutions into bite-sized pieces for seds with
5248 # small command number limits, like on Digital OSF/1 and HP-UX.
5250 ac_sed_frag
=1 # Number of current file.
5251 ac_beg
=1 # First line for current file.
5252 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5255 while $ac_more_lines; do
5256 if test $ac_beg -gt 1; then
5257 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5259 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5261 if test ! -s $tmp/subs.frag
; then
5264 # The purpose of the label and of the branching condition is to
5265 # speed up the sed processing (if there are no `@' at all, there
5266 # is no need to browse any of the substitutions).
5267 # These are the two extra sed commands mentioned above.
5269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5270 if test -z "$ac_sed_cmds"; then
5271 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5273 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5275 ac_sed_frag
=`expr $ac_sed_frag + 1`
5277 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5280 if test -z "$ac_sed_cmds"; then
5283 fi # test -n "$CONFIG_FILES"
5286 cat >>$CONFIG_STATUS <<\_ACEOF
5287 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5288 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5290 - |
*:- |
*:-:* ) # input from stdin
5292 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5293 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5294 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5295 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5296 * ) ac_file_in
=$ac_file.
in ;;
5299 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5300 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5302 X"$ac_file" : 'X\(//\)[^/]' \| \
5303 X"$ac_file" : 'X\(//\)$' \| \
5304 X"$ac_file" : 'X\(/\)' \| \
5305 . : '\(.\)' 2>/dev/null ||
5307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5309 /^X\(\/\/\)$/{ s//\1/; q; }
5310 /^X\(\/\).*/{ s//\1/; q; }
5312 { if $as_mkdir_p; then
5317 while test ! -d "$as_dir"; do
5318 as_dirs
="$as_dir $as_dirs"
5319 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5321 X"$as_dir" : 'X\(//\)[^/]' \| \
5322 X"$as_dir" : 'X\(//\)$' \| \
5323 X"$as_dir" : 'X\(/\)' \| \
5324 . : '\(.\)' 2>/dev/null ||
5326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5328 /^X\(\/\/\)$/{ s//\1/; q; }
5329 /^X\(\/\).*/{ s//\1/; q; }
5332 test ! -n "$as_dirs" || mkdir
$as_dirs
5333 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5335 { (exit 1); exit 1; }; }; }
5339 if test "$ac_dir" != .
; then
5340 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5341 # A "../" for each directory in $ac_dir_suffix.
5342 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5344 ac_dir_suffix
= ac_top_builddir
=
5348 .
) # No --srcdir option. We are building in place.
5350 if test -z "$ac_top_builddir"; then
5353 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5355 [\\/]* | ?
:[\\/]* ) # Absolute path.
5356 ac_srcdir
=$srcdir$ac_dir_suffix;
5357 ac_top_srcdir
=$srcdir ;;
5359 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5360 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5363 # Do not use `cd foo && pwd` to compute absolute paths, because
5364 # the directories may not exist.
5366 .
) ac_abs_builddir
="$ac_dir";;
5369 .
) ac_abs_builddir
=`pwd`;;
5370 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5371 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5374 case $ac_abs_builddir in
5375 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5377 case ${ac_top_builddir}.
in
5378 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5379 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5380 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5383 case $ac_abs_builddir in
5384 .
) ac_abs_srcdir
=$ac_srcdir;;
5387 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5388 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5389 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5392 case $ac_abs_builddir in
5393 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5395 case $ac_top_srcdir in
5396 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5397 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5398 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5404 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5405 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5408 if test x
"$ac_file" != x-
; then
5409 { echo "$as_me:$LINENO: creating $ac_file" >&5
5410 echo "$as_me: creating $ac_file" >&6;}
5413 # Let's still pretend it is `configure' which instantiates (i.e., don't
5414 # use $as_me), people would be surprised to read:
5415 # /* config.h. Generated by config.status. */
5416 if test x
"$ac_file" = x-
; then
5419 configure_input
="$ac_file. "
5421 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5422 sed 's,.*/,,'` by configure."
5424 # First look for the input files in the build tree, otherwise in the
5426 ac_file_inputs
=`IFS=:
5427 for f in $ac_file_in; do
5429 -) echo $tmp/stdin ;;
5431 # Absolute (can't be DOS-style, as IFS=:)
5432 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5433 echo "$as_me: error: cannot find input file: $f" >&2;}
5434 { (exit 1); exit 1; }; }
5437 if test -f "$f"; then
5440 elif test -f "$srcdir/$f"; then
5445 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5446 echo "$as_me: error: cannot find input file: $f" >&2;}
5447 { (exit 1); exit 1; }; }
5450 done` ||
{ (exit 1); exit 1; }
5452 cat >>$CONFIG_STATUS <<_ACEOF
5456 cat >>$CONFIG_STATUS <<\_ACEOF
5458 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5459 s
,@configure_input@
,$configure_input,;t t
5460 s
,@srcdir@
,$ac_srcdir,;t t
5461 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5462 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5463 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5464 s
,@builddir@
,$ac_builddir,;t t
5465 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5466 s
,@top_builddir@
,$ac_top_builddir,;t t
5467 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5468 s
,@INSTALL@
,$ac_INSTALL,;t t
5469 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5471 if test x"$ac_file" != x-; then
5472 mv $tmp/out $ac_file
5480 cat >>$CONFIG_STATUS <<\_ACEOF
5483 # CONFIG_HEADER section.
5486 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5487 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5489 # ac_d sets the value in "#define NAME VALUE" lines.
5490 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5491 ac_dB
='[ ].*$,\1#\2'
5494 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5495 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5496 ac_uB
='$,\1#\2define\3'
5500 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5503 - |
*:- |
*:-:* ) # input from stdin
5505 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5506 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5507 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5508 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5509 * ) ac_file_in
=$ac_file.
in ;;
5512 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5513 echo "$as_me: creating $ac_file" >&6;}
5515 # First look for the input files in the build tree, otherwise in the
5517 ac_file_inputs
=`IFS=:
5518 for f in $ac_file_in; do
5520 -) echo $tmp/stdin ;;
5522 # Absolute (can't be DOS-style, as IFS=:)
5523 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5524 echo "$as_me: error: cannot find input file: $f" >&2;}
5525 { (exit 1); exit 1; }; }
5526 # Do quote $f, to prevent DOS paths from being IFS'd.
5529 if test -f "$f"; then
5532 elif test -f "$srcdir/$f"; then
5537 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5538 echo "$as_me: error: cannot find input file: $f" >&2;}
5539 { (exit 1); exit 1; }; }
5542 done` ||
{ (exit 1); exit 1; }
5543 # Remove the trailing spaces.
5544 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5548 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5549 # `conftest.undefs', that substitutes the proper values into
5550 # config.h.in to produce config.h. The first handles `#define'
5551 # templates, and the second `#undef' templates.
5552 # And first: Protect against being on the right side of a sed subst in
5553 # config.status. Protect against being in an unquoted here document
5555 rm -f conftest.defines conftest.undefs
5556 # Using a here document instead of a string reduces the quoting nightmare.
5557 # Putting comments in sed scripts is not portable.
5559 # `end' is used to avoid that the second main sed command (meant for
5560 # 0-ary CPP macros) applies to n-ary macro definitions.
5561 # See the Autoconf documentation for `clear'.
5562 cat >confdef2sed.
sed <<\_ACEOF
5567 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5569 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5572 # If some macros were called several times there might be several times
5573 # the same #defines, which is useless. Nevertheless, we may not want to
5574 # sort them, since we want the *last* AC-DEFINE to be honored.
5575 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5576 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5577 rm -f confdef2sed.sed
5579 # This sed command replaces #undef with comments. This is necessary, for
5580 # example, in the case of _POSIX_SOURCE, which is predefined and required
5581 # on some systems where configure will not decide to define it.
5582 cat >>conftest.undefs <<\_ACEOF
5583 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5586 # Break up conftest.defines because some shells have a limit on the size
5587 # of here documents, and old seds have small limits too (100 cmds).
5588 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5589 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5590 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5591 echo ' :' >>$CONFIG_STATUS
5593 while grep . conftest.defines >/dev/null
5595 # Write a limited-size here document to $tmp/defines.sed.
5596 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5597 # Speed up: don't consider the non `#define' lines.
5598 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5599 # Work around the forget-to-reset-the-flag bug.
5600 echo 't clr' >>$CONFIG_STATUS
5601 echo ': clr' >>$CONFIG_STATUS
5602 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5604 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5608 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5609 rm -f conftest.defines
5610 mv conftest.
tail conftest.defines
5612 rm -f conftest.defines
5613 echo ' fi # grep' >>$CONFIG_STATUS
5614 echo >>$CONFIG_STATUS
5616 # Break up conftest.undefs because some shells have a limit on the size
5617 # of here documents, and old seds have small limits too (100 cmds).
5618 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5620 while grep . conftest.undefs
>/dev
/null
5622 # Write a limited-size here document to $tmp/undefs.sed.
5623 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5624 # Speed up: don't consider the non
`#undef'
5625 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5626 # Work around the forget-to-reset-the-flag bug.
5627 echo 't clr' >>$CONFIG_STATUS
5628 echo ': clr' >>$CONFIG_STATUS
5629 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5631 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5635 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5636 rm -f conftest.undefs
5637 mv conftest.tail conftest.undefs
5639 rm -f conftest.undefs
5641 cat >>$CONFIG_STATUS <<\_ACEOF
5642 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5643 # use $as_me), people would be surprised to read:
5644 # /* config.h. Generated by config.status. */
5645 if test x
"$ac_file" = x-
; then
5646 echo "/* Generated by configure. */" >$tmp/config.h
5648 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5650 cat $tmp/in >>$tmp/config.h
5652 if test x
"$ac_file" != x-
; then
5653 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5654 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5655 echo "$as_me: $ac_file is unchanged" >&6;}
5657 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5658 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5659 X"$ac_file" : 'X\(//\)[^/]' \| \
5660 X"$ac_file" : 'X\(//\)$' \| \
5661 X"$ac_file" : 'X\(/\)' \| \
5662 . : '\(.\)' 2>/dev/null ||
5664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5666 /^X\(\/\/\)$/{ s//\1/; q; }
5667 /^X\(\/\).*/{ s//\1/; q; }
5669 { if $as_mkdir_p; then
5674 while test ! -d "$as_dir"; do
5675 as_dirs
="$as_dir $as_dirs"
5676 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5678 X"$as_dir" : 'X\(//\)[^/]' \| \
5679 X"$as_dir" : 'X\(//\)$' \| \
5680 X"$as_dir" : 'X\(/\)' \| \
5681 . : '\(.\)' 2>/dev/null ||
5683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5685 /^X\(\/\/\)$/{ s//\1/; q; }
5686 /^X\(\/\).*/{ s//\1/; q; }
5689 test ! -n "$as_dirs" || mkdir
$as_dirs
5690 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5692 { (exit 1); exit 1; }; }; }
5695 mv $tmp/config.h
$ac_file
5703 cat >>$CONFIG_STATUS <<\_ACEOF
5706 # CONFIG_COMMANDS section.
5708 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5709 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5710 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5711 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5712 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5713 X"$ac_dest" : 'X\(//\)[^/]' \| \
5714 X"$ac_dest" : 'X\(//\)$' \| \
5715 X"$ac_dest" : 'X\(/\)' \| \
5716 . : '\(.\)' 2>/dev/null ||
5718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5720 /^X\(\/\/\)$/{ s//\1/; q; }
5721 /^X\(\/\).*/{ s//\1/; q; }
5723 { if $as_mkdir_p; then
5728 while test ! -d "$as_dir"; do
5729 as_dirs
="$as_dir $as_dirs"
5730 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5732 X"$as_dir" : 'X\(//\)[^/]' \| \
5733 X"$as_dir" : 'X\(//\)$' \| \
5734 X"$as_dir" : 'X\(/\)' \| \
5735 . : '\(.\)' 2>/dev/null ||
5737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5739 /^X\(\/\/\)$/{ s//\1/; q; }
5740 /^X\(\/\).*/{ s//\1/; q; }
5743 test ! -n "$as_dirs" || mkdir
$as_dirs
5744 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5746 { (exit 1); exit 1; }; }; }
5750 if test "$ac_dir" != .
; then
5751 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5752 # A "../" for each directory in $ac_dir_suffix.
5753 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5755 ac_dir_suffix
= ac_top_builddir
=
5759 .
) # No --srcdir option. We are building in place.
5761 if test -z "$ac_top_builddir"; then
5764 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5766 [\\/]* | ?
:[\\/]* ) # Absolute path.
5767 ac_srcdir
=$srcdir$ac_dir_suffix;
5768 ac_top_srcdir
=$srcdir ;;
5770 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5771 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5774 # Do not use `cd foo && pwd` to compute absolute paths, because
5775 # the directories may not exist.
5777 .
) ac_abs_builddir
="$ac_dir";;
5780 .
) ac_abs_builddir
=`pwd`;;
5781 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5782 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5785 case $ac_abs_builddir in
5786 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5788 case ${ac_top_builddir}.
in
5789 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5790 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5791 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5794 case $ac_abs_builddir in
5795 .
) ac_abs_srcdir
=$ac_srcdir;;
5798 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5799 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5800 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5803 case $ac_abs_builddir in
5804 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5806 case $ac_top_srcdir in
5807 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5808 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5809 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5814 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5815 echo "$as_me: executing $ac_dest commands" >&6;}
5817 default
) case x
$CONFIG_HEADERS in
5818 xconfig.h
:config.
in)
5826 cat >>$CONFIG_STATUS <<\_ACEOF
5828 { (exit 0); exit 0; }
5830 chmod +x
$CONFIG_STATUS
5831 ac_clean_files
=$ac_clean_files_save
5834 # configure is writing to config.log, and then calls config.status.
5835 # config.status does its own redirection, appending to config.log.
5836 # Unfortunately, on DOS this fails, as config.log is still kept open
5837 # by configure, so config.status won't be able to write to it; its
5838 # output is simply discarded. So we exec the FD to /dev/null,
5839 # effectively closing config.log, so it can be properly (re)opened and
5840 # appended to by config.status. When coming back to configure, we
5841 # need to make the FD available again.
5842 if test "$no_create" != yes; then
5844 ac_config_status_args
=
5845 test "$silent" = yes &&
5846 ac_config_status_args
="$ac_config_status_args --quiet"
5848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5851 # would make configure fail if this is the last instruction.
5852 $ac_cs_success ||
{ (exit 1); exit 1; }