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 RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --build=BUILD configure
for building on BUILD
[guessed
]
842 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
843 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
847 if test -n "$ac_init_help"; then
851 Some influential environment variables
:
852 CC C compiler
command
853 CFLAGS C compiler flags
854 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
855 nonstandard directory
<lib dir
>
856 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
857 headers
in a nonstandard directory
<include dir
>
860 Use these variables to override the choices made by
`configure' or to help
861 it to find libraries and programs with nonstandard names/locations.
866 if test "$ac_init_help" = "recursive"; then
867 # If there are subdirs, report their specific --help.
869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870 test -d $ac_dir || continue
873 if test "$ac_dir" != .; then
874 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
875 # A "../" for each directory in $ac_dir_suffix.
876 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
878 ac_dir_suffix= ac_top_builddir=
882 .) # No --srcdir option. We are building in place.
884 if test -z "$ac_top_builddir"; then
887 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
889 [\\/]* | ?:[\\/]* ) # Absolute path.
890 ac_srcdir=$srcdir$ac_dir_suffix;
891 ac_top_srcdir=$srcdir ;;
893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894 ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 # Do not use `cd foo
&& pwd` to compute absolute paths, because
898 # the directories may not exist.
900 .) ac_abs_builddir="$ac_dir";;
903 .) ac_abs_builddir=`pwd`;;
904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905 *) ac_abs_builddir=`pwd`/"$ac_dir";;
908 case $ac_abs_builddir in
909 .) ac_abs_top_builddir=${ac_top_builddir}.;;
911 case ${ac_top_builddir}. in
912 .) ac_abs_top_builddir=$ac_abs_builddir;;
913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917 case $ac_abs_builddir in
918 .) ac_abs_srcdir=$ac_srcdir;;
921 .) ac_abs_srcdir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926 case $ac_abs_builddir in
927 .) ac_abs_top_srcdir=$ac_top_srcdir;;
929 case $ac_top_srcdir in
930 .) ac_abs_top_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright (C) 2003 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by $as_me, which was
971 generated by GNU Autoconf 2.59. Invocation command line was
982 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
983 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
984 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
985 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
986 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
988 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
989 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
991 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
992 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
993 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
994 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
995 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
996 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
997 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Strip out --silent because we don't want to record it for future runs.
1024 # Also quote any args containing shell meta-characters.
1025 # Make two passes to allow for proper duplicate-argument suppression.
1030 ac_must_keep_next=false
1036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1040 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1044 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047 if test $ac_must_keep_next = true; then
1048 ac_must_keep_next=false # Got value, back to normal.
1051 *=* | --config-cache | -C | -disable-* | --disable-* \
1052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054 | -with-* | --with-* | -without-* | --without-* | --x)
1055 case "$ac_configure_args0 " in
1056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059 -* ) ac_must_keep_next=true ;;
1062 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063 # Get rid of the leading space.
1069 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072 # When interrupted or exit'd, cleanup temporary files, and complete
1073 # config.log. We remove comments because anyway the quotes in there
1074 # would cause problems or look ugly.
1075 # WARNING: Be sure not to use single quotes in there, as some shells,
1076 # such as our DU 5.0 friend, will then `close
' the trap.
1077 trap 'exit_status
=$?
1078 # Save into config.log some information that might help in debugging.
1083 ## ---------------- ##
1084 ## Cache variables. ##
1085 ## ---------------- ##
1088 # The following way of writing the cache mishandles newlines in values,
1091 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106 ## ----------------- ##
1107 ## Output variables. ##
1108 ## ----------------- ##
1111 for ac_var
in $ac_subst_vars
1113 eval ac_val
=$
`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1118 if test -n "$ac_subst_files"; then
1125 for ac_var
in $ac_subst_files
1127 eval ac_val
=$
`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -s confdefs.h
; then
1140 sed "/^$/d" confdefs.h |
sort
1143 test "$ac_signal" != 0 &&
1144 echo "$as_me: caught signal $ac_signal"
1145 echo "$as_me: exit $exit_status"
1147 rm -f core
*.core
&&
1148 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1151 for ac_signal in 1 2 13 15; do
1152 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1157 rm -rf conftest* confdefs.h
1158 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 # Predefined preprocessor variables.
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_NAME "$PACKAGE_NAME"
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_STRING "$PACKAGE_STRING"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1188 # Let the site file select an alternate cache file if it wants to.
1189 # Prefer explicitly selected file to automatically selected ones.
1190 if test -z "$CONFIG_SITE"; then
1191 if test "x$prefix" != xNONE; then
1192 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197 for ac_site_file in $CONFIG_SITE; do
1198 if test -r "$ac_site_file"; then
1199 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200 echo "$as_me: loading site script $ac_site_file" >&6;}
1201 sed 's
/^
/|
/' "$ac_site_file" >&5
1206 if test -r "$cache_file"; then
1207 # Some versions of bash will fail to source /dev/null (special
1208 # files actually), so we avoid doing that.
1209 if test -f "$cache_file"; then
1210 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211 echo "$as_me: loading cache $cache_file" >&6;}
1213 [\\/]* | ?:[\\/]* ) . $cache_file;;
1214 *) . ./$cache_file;;
1218 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219 echo "$as_me: creating cache $cache_file" >&6;}
1223 # Check that the precious variables saved in the cache have kept the same
1225 ac_cache_corrupted=false
1226 for ac_var in `(set) 2>&1 |
1227 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1228 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229 eval ac_new_set=\$ac_env_${ac_var}_set
1230 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231 eval ac_new_val="\$ac_env_${ac_var}_value"
1232 case $ac_old_set,$ac_new_set in
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1236 ac_cache_corrupted=: ;;
1238 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1243 if test "x$ac_old_val" != "x$ac_new_val"; then
1244 # differences in whitespace do not lead to failure.
1245 ac_old_val_w=`echo x $ac_old_val`
1246 ac_new_val_w=`echo x $ac_new_val`
1247 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1249 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1250 ac_cache_corrupted=:
1252 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1253 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1254 eval $ac_var=\$ac_old_val
1256 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1257 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1258 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1259 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1279 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1286 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307 ac_config_headers="$ac_config_headers config.h:config.in"
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1314 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 if test -n "$ac_tool_prefix"; then
1317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1318 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1319 echo "$as_me:$LINENO: checking for $ac_word" >&5
1320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1321 if test "${ac_cv_prog_CC+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 if test -n "$CC"; then
1325 ac_cv_prog_CC="$CC" # Let the user override the test.
1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1331 test -z "$as_dir" && as_dir=.
1332 for ac_exec_ext in '' $ac_executable_extensions; do
1333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1344 if test -n "$CC"; then
1345 echo "$as_me:$LINENO: result: $CC" >&5
1346 echo "${ECHO_T}$CC" >&6
1348 echo "$as_me:$LINENO: result: no" >&5
1349 echo "${ECHO_T}no" >&6
1353 if test -z "$ac_cv_prog_CC"; then
1355 # Extract the first word of "gcc", so it can be a program name with args.
1356 set dummy gcc; ac_word=$2
1357 echo "$as_me:$LINENO: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 if test -n "$ac_ct_CC"; then
1363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369 test -z "$as_dir" && as_dir=.
1370 for ac_exec_ext in '' $ac_executable_extensions; do
1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1372 ac_cv_prog_ac_ct_CC="gcc"
1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1382 if test -n "$ac_ct_CC"; then
1383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1384 echo "${ECHO_T}$ac_ct_CC" >&6
1386 echo "$as_me:$LINENO: result: no" >&5
1387 echo "${ECHO_T}no" >&6
1395 if test -z "$CC"; then
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}cc; ac_word=$2
1399 echo "$as_me:$LINENO: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 if test -n "$CC"; then
1405 ac_cv_prog_CC="$CC" # Let the user override the test.
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 test -z "$as_dir" && as_dir=.
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414 ac_cv_prog_CC="${ac_tool_prefix}cc"
1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 if test -n "$CC"; then
1425 echo "$as_me:$LINENO: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1428 echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1433 if test -z "$ac_cv_prog_CC"; then
1435 # Extract the first word of "cc", so it can be a program name with args.
1436 set dummy cc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_ac_ct_CC="cc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462 if test -n "$ac_ct_CC"; then
1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1464 echo "${ECHO_T}$ac_ct_CC" >&6
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1476 if test -z "$CC"; then
1477 # Extract the first word of "cc", so it can be a program name with args.
1478 set dummy cc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1496 ac_prog_rejected=yes
1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 if test $ac_prog_rejected = yes; then
1507 # We found a bogon in the path, so make sure we never use it.
1508 set dummy $ac_cv_prog_CC
1510 if test $# != 0; then
1511 # We chose a different compiler from the bogus one.
1512 # However, it has the same basename, so the bogon will be chosen
1513 # first if we set CC to just the basename; use the full file name.
1515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1521 if test -n "$CC"; then
1522 echo "$as_me:$LINENO: result: $CC" >&5
1523 echo "${ECHO_T}$CC" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1530 if test -z "$CC"; then
1531 if test -n "$ac_tool_prefix"; then
1534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1536 echo "$as_me:$LINENO: checking for $ac_word" >&5
1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538 if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 for ac_exec_ext in '' $ac_executable_extensions; do
1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 if test -n "$CC"; then
1562 echo "$as_me:$LINENO: result: $CC" >&5
1563 echo "${ECHO_T}$CC" >&6
1565 echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1569 test -n "$CC" && break
1572 if test -z "$CC"; then
1576 # Extract the first word of "$ac_prog", so it can be a program name with args.
1577 set dummy $ac_prog; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 if test -n "$ac_ct_CC"; then
1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 for ac_exec_ext in '' $ac_executable_extensions; do
1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593 ac_cv_prog_ac_ct_CC="$ac_prog"
1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1607 echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1611 test -n "$ac_ct_CC" && break
1620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1621 See \`config.log' for more details.
" >&5
1622 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1623 See \
`config.log' for more details." >&2;}
1624 { (exit 1); exit 1; }; }
1626 # Provide some information about the compiler.
1627 echo "$as_me:$LINENO:" \
1628 "checking for C compiler version" >&5
1629 ac_compiler=`set X
$ac_compile; echo $2`
1630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1631 (eval $ac_compiler --version </dev/null >&5) 2>&5
1633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1634 (exit $ac_status); }
1635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1636 (eval $ac_compiler -v </dev/null >&5) 2>&5
1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639 (exit $ac_status); }
1640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1641 (eval $ac_compiler -V </dev/null >&5) 2>&5
1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644 (exit $ac_status); }
1646 cat >conftest.$ac_ext <<_ACEOF
1649 cat confdefs.h >>conftest.$ac_ext
1650 cat >>conftest.$ac_ext <<_ACEOF
1651 /* end confdefs.h. */
1661 ac_clean_files_save=$ac_clean_files
1662 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1663 # Try to create an executable without -o first, disregard a.out.
1664 # It will help us diagnose broken compilers, and finding out an intuition
1666 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1667 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1668 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1669 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1670 (eval $ac_link_default) 2>&5
1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1673 (exit $ac_status); }; then
1674 # Find the output, starting from the most likely. This scheme is
1675 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1678 # Be careful to initialize this variable, since it used to be cached.
1679 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1681 # b.out is created by i960 compilers.
1682 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1684 test -f "$ac_file" || continue
1686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1689 # This is the source file.
1692 # We found the default executable, but exeext='' is most
1696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1697 # FIXME: I believe we export ac_cv_exeext for Libtool,
1698 # but it would be cool to find out if it's true. Does anybody
1699 # maintain Libtool? --akim.
1707 echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1711 See \`config.log
' for more details." >&5
1712 echo "$as_me: error: C compiler cannot create executables
1713 See \`config.log' for more details.
" >&2;}
1714 { (exit 77); exit 77; }; }
1717 ac_exeext=$ac_cv_exeext
1718 echo "$as_me:$LINENO: result
: $ac_file" >&5
1719 echo "${ECHO_T}$ac_file" >&6
1721 # Check the compiler produces executables we can run. If not, either
1722 # the compiler is broken, or we cross compile.
1723 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1724 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1725 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1726 # If not cross compiling, check that we can run a simple program.
1727 if test "$cross_compiling" != yes; then
1728 if { ac_try='./$ac_file'
1729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1733 (exit $ac_status); }; }; then
1736 if test "$cross_compiling" = maybe; then
1739 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1740 If you meant to cross compile
, use \
`--host'.
1741 See \`config.log
' for more details." >&5
1742 echo "$as_me: error: cannot run C compiled programs.
1743 If you meant to cross compile, use \`--host'.
1744 See \
`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1749 echo "$as_me:$LINENO: result: yes" >&5
1750 echo "${ECHO_T}yes" >&6
1752 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1753 ac_clean_files=$ac_clean_files_save
1754 # Check the compiler produces executables we can run. If not, either
1755 # the compiler is broken, or we cross compile.
1756 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1757 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1758 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1759 echo "${ECHO_T}$cross_compiling" >&6
1761 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1762 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1764 (eval $ac_link) 2>&5
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }; then
1768 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1769 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1770 # work properly (i.e., refer to `conftest.exe'), while it won't with
1772 for ac_file
in conftest.exe conftest conftest.
*; do
1773 test -f "$ac_file" ||
continue
1775 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1776 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1784 See \`config.log' for more details." >&5
1785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1786 See \`config.log' for more details." >&2;}
1787 { (exit 1); exit 1; }; }
1790 rm -f conftest
$ac_cv_exeext
1791 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1792 echo "${ECHO_T}$ac_cv_exeext" >&6
1794 rm -f conftest.
$ac_ext
1795 EXEEXT
=$ac_cv_exeext
1797 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1799 if test "${ac_cv_objext+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 cat >conftest.
$ac_ext <<_ACEOF
1805 cat confdefs.h
>>conftest.
$ac_ext
1806 cat >>conftest.
$ac_ext <<_ACEOF
1807 /* end confdefs.h. */
1817 rm -f conftest.o conftest.obj
1818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1825 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1826 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.
$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1837 See \`config.log' for more details." >&2;}
1838 { (exit 1); exit 1; }; }
1841 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1843 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1844 echo "${ECHO_T}$ac_cv_objext" >&6
1845 OBJEXT
=$ac_cv_objext
1847 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1848 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1849 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 cat >conftest.
$ac_ext <<_ACEOF
1855 cat confdefs.h
>>conftest.
$ac_ext
1856 cat >>conftest.
$ac_ext <<_ACEOF
1857 /* end confdefs.h. */
1870 rm -f conftest.
$ac_objext
1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1872 (eval $ac_compile) 2>conftest.er1
1874 grep -v '^ *+' conftest.er1
>conftest.err
1876 cat conftest.err
>&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); } &&
1879 { ac_try
='test -z "$ac_c_werror_flag"
1880 || test ! -s conftest.err'
1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; } &&
1886 { ac_try
='test -s conftest.$ac_objext'
1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.
$ac_ext >&5
1899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1900 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1903 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1904 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1905 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1906 ac_test_CFLAGS
=${CFLAGS+set}
1907 ac_save_CFLAGS
=$CFLAGS
1909 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1910 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1911 if test "${ac_cv_prog_cc_g+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 cat >conftest.
$ac_ext <<_ACEOF
1917 cat confdefs.h
>>conftest.
$ac_ext
1918 cat >>conftest.
$ac_ext <<_ACEOF
1919 /* end confdefs.h. */
1929 rm -f conftest.
$ac_objext
1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1933 grep -v '^ *+' conftest.er1
>conftest.err
1935 cat conftest.err
>&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
1938 { ac_try
='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try
='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.
$ac_ext >&5
1958 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1960 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1962 if test "$ac_test_CFLAGS" = set; then
1963 CFLAGS
=$ac_save_CFLAGS
1964 elif test $ac_cv_prog_cc_g = yes; then
1965 if test "$GCC" = yes; then
1971 if test "$GCC" = yes; then
1977 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1978 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1979 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 ac_cv_prog_cc_stdc
=no
1984 cat >conftest.
$ac_ext <<_ACEOF
1987 cat confdefs.h
>>conftest.
$ac_ext
1988 cat >>conftest.
$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1992 #include <sys/types.h>
1993 #include <sys/stat.h>
1994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1995 struct buf { int x; };
1996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1997 static char *e (p, i)
2003 static char *f (char * (*g) (char **, int), char **p, ...)
2008 s = g (p, va_arg (v,int));
2013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2014 function prototypes and stuff, but not '\xHH' hex character constants.
2015 These don't provoke an error unfortunately, instead are silently treated
2016 as 'x'. The following induces an error, until -std1 is added to get
2017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2018 array size at least. It's necessary to write '\x00'==0 to get something
2019 that's true only with -std1. */
2020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2022 int test (int i, double x);
2023 struct s1 {int (*f) (int a);};
2024 struct s2 {int (*f) (double a);};
2025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2036 # Don't try gcc -ansi; that turns off useful extensions and
2037 # breaks some systems' header files.
2038 # AIX -qlanglvl=ansi
2039 # Ultrix and OSF/1 -std1
2040 # HP-UX 10.20 and later -Ae
2041 # HP-UX older versions -Aa -D_HPUX_SOURCE
2042 # SVR4 -Xc -D__EXTENSIONS__
2043 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2045 CC
="$ac_save_CC $ac_arg"
2046 rm -f conftest.
$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048 (eval $ac_compile) 2>conftest.er1
2050 grep -v '^ *+' conftest.er1
>conftest.err
2052 cat conftest.err
>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); } &&
2055 { ac_try
='test -z "$ac_c_werror_flag"
2056 || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try
='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_stdc
=$ac_arg
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.
$ac_ext >&5
2075 rm -f conftest.err conftest.
$ac_objext
2077 rm -f conftest.
$ac_ext conftest.
$ac_objext
2082 case "x$ac_cv_prog_cc_stdc" in
2084 echo "$as_me:$LINENO: result: none needed" >&5
2085 echo "${ECHO_T}none needed" >&6 ;;
2087 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2088 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2089 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2092 # Some people use a C++ compiler to compile C. Since we use `exit',
2093 # in C++ we need to declare it. In case someone uses the same compiler
2094 # for both compiling C and C++ we need to have the C++ compiler decide
2095 # the declaration of exit, since it's the most demanding environment.
2096 cat >conftest.
$ac_ext <<_ACEOF
2101 rm -f conftest.
$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2105 grep -v '^ *+' conftest.er1
>conftest.err
2107 cat conftest.err
>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try
='test -z "$ac_c_werror_flag"
2111 || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try
='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 for ac_declaration
in \
2125 'extern "C" void std::exit (int) throw (); using std::exit;' \
2126 'extern "C" void std::exit (int); using std::exit;' \
2127 'extern "C" void exit (int) throw ();' \
2128 'extern "C" void exit (int);' \
2131 cat >conftest.
$ac_ext <<_ACEOF
2134 cat confdefs.h
>>conftest.
$ac_ext
2135 cat >>conftest.
$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2147 rm -f conftest.
$ac_objext
2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149 (eval $ac_compile) 2>conftest.er1
2151 grep -v '^ *+' conftest.er1
>conftest.err
2153 cat conftest.err
>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); } &&
2156 { ac_try
='test -z "$ac_c_werror_flag"
2157 || test ! -s conftest.err'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; } &&
2163 { ac_try
='test -s conftest.$ac_objext'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2171 echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.
$ac_ext >&5
2176 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2177 cat >conftest.
$ac_ext <<_ACEOF
2180 cat confdefs.h
>>conftest.
$ac_ext
2181 cat >>conftest.
$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2192 rm -f conftest.
$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2196 grep -v '^ *+' conftest.er1
>conftest.err
2198 cat conftest.err
>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try
='test -z "$ac_c_werror_flag"
2202 || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try
='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.
$ac_ext >&5
2220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 if test -n "$ac_declaration"; then
2224 echo '#ifdef __cplusplus' >>confdefs.h
2225 echo $ac_declaration >>confdefs.h
2226 echo '#endif' >>confdefs.h
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.
$ac_ext >&5
2234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 ac_cpp
='$CPP $CPPFLAGS'
2237 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2242 cat >>confdefs.h
<<\_ACEOF
2243 #define _GNU_SOURCE 1
2249 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2250 if test -f $ac_dir/install-sh
; then
2252 ac_install_sh
="$ac_aux_dir/install-sh -c"
2254 elif test -f $ac_dir/install.sh
; then
2256 ac_install_sh
="$ac_aux_dir/install.sh -c"
2258 elif test -f $ac_dir/shtool
; then
2260 ac_install_sh
="$ac_aux_dir/shtool install -c"
2264 if test -z "$ac_aux_dir"; then
2265 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2266 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2267 { (exit 1); exit 1; }; }
2269 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2270 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2271 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2273 # Make sure we can run config.sub.
2274 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2275 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2276 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2277 { (exit 1); exit 1; }; }
2279 echo "$as_me:$LINENO: checking build system type" >&5
2280 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2281 if test "${ac_cv_build+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_cv_build_alias
=$build_alias
2285 test -z "$ac_cv_build_alias" &&
2286 ac_cv_build_alias
=`$ac_config_guess`
2287 test -z "$ac_cv_build_alias" &&
2288 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2289 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2290 { (exit 1); exit 1; }; }
2291 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2292 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2293 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2294 { (exit 1); exit 1; }; }
2297 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2298 echo "${ECHO_T}$ac_cv_build" >&6
2300 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2301 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2302 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2305 echo "$as_me:$LINENO: checking host system type" >&5
2306 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2307 if test "${ac_cv_host+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_cv_host_alias
=$host_alias
2311 test -z "$ac_cv_host_alias" &&
2312 ac_cv_host_alias
=$ac_cv_build_alias
2313 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2314 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2315 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2316 { (exit 1); exit 1; }; }
2319 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2320 echo "${ECHO_T}$ac_cv_host" >&6
2322 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2323 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2324 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2327 echo "$as_me:$LINENO: checking target system type" >&5
2328 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2329 if test "${ac_cv_target+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_cv_target_alias
=$target_alias
2333 test "x$ac_cv_target_alias" = "x" &&
2334 ac_cv_target_alias
=$ac_cv_host_alias
2335 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2336 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2337 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2338 { (exit 1); exit 1; }; }
2341 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2342 echo "${ECHO_T}$ac_cv_target" >&6
2343 target
=$ac_cv_target
2344 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2345 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2346 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2349 # The aliases save the names the user supplied, while $host etc.
2350 # will get canonicalized.
2351 test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2354 program_prefix
=${target_alias}-
2356 # Find a good install program. We prefer a C program (faster),
2357 # so one script is as good as another. But avoid the broken or
2358 # incompatible versions:
2359 # SysV /etc/install, /usr/sbin/install
2360 # SunOS /usr/etc/install
2361 # IRIX /sbin/install
2363 # AmigaOS /C/install, which installs bootblocks on floppy discs
2364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2367 # OS/2's system install, which has a completely different semantic
2368 # ./install, which can be erroneously created by make from ./install.sh.
2369 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2370 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2371 if test -z "$INSTALL"; then
2372 if test "${ac_cv_path_install+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir
=.
2380 # Account for people who put trailing slashes in PATH elements.
2382 .
/ | .
// |
/cC
/* | \
2383 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2384 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2387 # OSF1 and SCO ODT 3.0 have their own names for install.
2388 # Don't use installbsd from OSF since it installs stuff as root
2390 for ac_prog
in ginstall scoinst
install; do
2391 for ac_exec_ext
in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2393 if test $ac_prog = install &&
2394 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2395 # AIX install. It has an incompatible calling convention.
2397 elif test $ac_prog = install &&
2398 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2399 # program-specific install script used by HP pwplus--don't use.
2402 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2414 if test "${ac_cv_path_install+set}" = set; then
2415 INSTALL
=$ac_cv_path_install
2417 # As a last resort, use the slow shell script. We don't cache a
2418 # path for INSTALL within a source directory, because that will
2419 # break other packages using the cache if that directory is
2420 # removed, or if the path is relative.
2421 INSTALL
=$ac_install_sh
2424 echo "$as_me:$LINENO: result: $INSTALL" >&5
2425 echo "${ECHO_T}$INSTALL" >&6
2427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428 # It thinks the first close brace ends the variable substitution.
2429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2433 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2436 test "$program_prefix" != NONE
&&
2437 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
2438 # Use a double $ so make ignores it.
2439 test "$program_suffix" != NONE
&&
2440 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
2441 # Double any \ or $. echo might interpret backslashes.
2442 # By default was `s,x,x', remove it if useless.
2443 cat <<\_ACEOF
>conftest.
sed
2444 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2446 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2452 ac_cpp
='$CPP $CPPFLAGS'
2453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2456 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2458 # On Suns, sometimes $CPP names a directory.
2459 if test -n "$CPP" && test -d "$CPP"; then
2462 if test -z "$CPP"; then
2463 if test "${ac_cv_prog_CPP+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 # Double quotes because CPP needs to be expanded
2467 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2470 for ac_c_preproc_warn_flag
in '' yes
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.
$ac_ext <<_ACEOF
2481 cat confdefs.h
>>conftest.
$ac_ext
2482 cat >>conftest.
$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2485 # include <limits.h>
2487 # include <assert.h>
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1
>conftest.err
2496 cat conftest.err
>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev
/null
; then
2499 if test -s conftest.err
; then
2500 ac_cpp_err
=$ac_c_preproc_warn_flag
2501 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.
$ac_ext >&5
2514 # Broken: fails on valid input.
2517 rm -f conftest.err conftest.
$ac_ext
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.
$ac_ext <<_ACEOF
2524 cat confdefs.h
>>conftest.
$ac_ext
2525 cat >>conftest.
$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1
>conftest.err
2534 cat conftest.err
>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev
/null
; then
2537 if test -s conftest.err
; then
2538 ac_cpp_err
=$ac_c_preproc_warn_flag
2539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.
$ac_ext >&5
2553 # Passes both tests.
2557 rm -f conftest.err conftest.
$ac_ext
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.
$ac_ext
2562 if $ac_preproc_ok; then
2574 echo "$as_me:$LINENO: result: $CPP" >&5
2575 echo "${ECHO_T}$CPP" >&6
2577 for ac_c_preproc_warn_flag
in '' yes
2579 # Use a header file that comes with gcc, so configuring glibc
2580 # with a fresh cross-compiler works.
2581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582 # <limits.h> exists even on freestanding compilers.
2583 # On the NeXT, cc -E runs the code through the compiler's parser,
2584 # not just through cpp. "Syntax error" is here to catch this case.
2585 cat >conftest.
$ac_ext <<_ACEOF
2588 cat confdefs.h
>>conftest.
$ac_ext
2589 cat >>conftest.
$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2592 # include <limits.h>
2594 # include <assert.h>
2598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2599 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1
>conftest.err
2603 cat conftest.err
>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } >/dev
/null
; then
2606 if test -s conftest.err
; then
2607 ac_cpp_err
=$ac_c_preproc_warn_flag
2608 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2615 if test -z "$ac_cpp_err"; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.
$ac_ext >&5
2621 # Broken: fails on valid input.
2624 rm -f conftest.err conftest.
$ac_ext
2626 # OK, works on sane cases. Now check whether non-existent headers
2627 # can be detected and how.
2628 cat >conftest.
$ac_ext <<_ACEOF
2631 cat confdefs.h
>>conftest.
$ac_ext
2632 cat >>conftest.
$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2634 #include <ac_nonexistent.h>
2636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2637 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2639 grep -v '^ *+' conftest.er1
>conftest.err
2641 cat conftest.err
>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } >/dev
/null
; then
2644 if test -s conftest.err
; then
2645 ac_cpp_err
=$ac_c_preproc_warn_flag
2646 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2653 if test -z "$ac_cpp_err"; then
2654 # Broken: success on invalid input.
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.
$ac_ext >&5
2660 # Passes both tests.
2664 rm -f conftest.err conftest.
$ac_ext
2667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2668 rm -f conftest.err conftest.
$ac_ext
2669 if $ac_preproc_ok; then
2672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2673 See \`config.log' for more details." >&5
2674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2680 ac_cpp
='$CPP $CPPFLAGS'
2681 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2686 echo "$as_me:$LINENO: checking for egrep" >&5
2687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2688 if test "${ac_cv_prog_egrep+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2692 then ac_cv_prog_egrep
='grep -E'
2693 else ac_cv_prog_egrep
='egrep'
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2697 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2698 EGREP
=$ac_cv_prog_egrep
2701 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2702 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2703 if test "${ac_cv_header_stdc+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 cat >conftest.
$ac_ext <<_ACEOF
2709 cat confdefs.h
>>conftest.
$ac_ext
2710 cat >>conftest.
$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2725 rm -f conftest.
$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1
>conftest.err
2731 cat conftest.err
>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try
='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try
='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_header_stdc
=yes
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.
$ac_ext >&5
2752 ac_cv_header_stdc
=no
2754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2756 if test $ac_cv_header_stdc = yes; then
2757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2758 cat >conftest.
$ac_ext <<_ACEOF
2761 cat confdefs.h
>>conftest.
$ac_ext
2762 cat >>conftest.
$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768 $EGREP "memchr" >/dev
/null
2>&1; then
2771 ac_cv_header_stdc
=no
2777 if test $ac_cv_header_stdc = yes; then
2778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2779 cat >conftest.
$ac_ext <<_ACEOF
2782 cat confdefs.h
>>conftest.
$ac_ext
2783 cat >>conftest.
$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2789 $EGREP "free" >/dev
/null
2>&1; then
2792 ac_cv_header_stdc
=no
2798 if test $ac_cv_header_stdc = yes; then
2799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2800 if test "$cross_compiling" = yes; then
2803 cat >conftest.
$ac_ext <<_ACEOF
2806 cat confdefs.h
>>conftest.
$ac_ext
2807 cat >>conftest.
$ac_ext <<_ACEOF
2808 /* end confdefs.h. */
2810 #if ((' ' & 0x0FF) == 0x020)
2811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2814 # define ISLOWER(c) \
2815 (('a' <= (c) && (c) <= 'i') \
2816 || ('j' <= (c) && (c) <= 'r') \
2817 || ('s' <= (c) && (c) <= 'z'))
2818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2826 for (i = 0; i < 256; i++)
2827 if (XOR (islower (i), ISLOWER (i))
2828 || toupper (i) != TOUPPER (i))
2833 rm -f conftest
$ac_exeext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2846 echo "$as_me: program exited with status $ac_status" >&5
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.
$ac_ext >&5
2851 ac_cv_header_stdc
=no
2853 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2857 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2858 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2859 if test $ac_cv_header_stdc = yes; then
2861 cat >>confdefs.h
<<\_ACEOF
2862 #define STDC_HEADERS 1
2868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2878 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2879 inttypes.h stdint.h unistd.h
2881 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2882 echo "$as_me:$LINENO: checking for $ac_header" >&5
2883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 cat >conftest.
$ac_ext <<_ACEOF
2890 cat confdefs.h
>>conftest.
$ac_ext
2891 cat >>conftest.
$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893 $ac_includes_default
2895 #include <$ac_header>
2897 rm -f conftest.
$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1
>conftest.err
2903 cat conftest.err
>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try
='test -z "$ac_c_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try
='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 eval "$as_ac_Header=yes"
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.
$ac_ext >&5
2924 eval "$as_ac_Header=no"
2926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2931 cat >>confdefs.h
<<_ACEOF
2932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2963 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
2965 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2967 echo "$as_me:$LINENO: checking for $ac_header" >&5
2968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2975 # Is the header compilable?
2976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2978 cat >conftest.
$ac_ext <<_ACEOF
2981 cat confdefs.h
>>conftest.
$ac_ext
2982 cat >>conftest.
$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 $ac_includes_default
2985 #include <$ac_header>
2987 rm -f conftest.
$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1
>conftest.err
2993 cat conftest.err
>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try
='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try
='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 ac_header_compiler
=yes
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.
$ac_ext >&5
3014 ac_header_compiler
=no
3016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3018 echo "${ECHO_T}$ac_header_compiler" >&6
3020 # Is the header present?
3021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3023 cat >conftest.
$ac_ext <<_ACEOF
3026 cat confdefs.h
>>conftest.
$ac_ext
3027 cat >>conftest.
$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 #include <$ac_header>
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev
/null
; then
3039 if test -s conftest.err
; then
3040 ac_cpp_err
=$ac_c_preproc_warn_flag
3041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3048 if test -z "$ac_cpp_err"; then
3049 ac_header_preproc
=yes
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.
$ac_ext >&5
3054 ac_header_preproc
=no
3056 rm -f conftest.err conftest.
$ac_ext
3057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3058 echo "${ECHO_T}$ac_header_preproc" >&6
3060 # So? What about this header?
3061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3067 ac_header_preproc
=yes
3070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3084 ## ------------------------------------------ ##
3085 ## Report this to the AC_PACKAGE_NAME lists. ##
3086 ## ------------------------------------------ ##
3089 sed "s/^/$as_me: WARNING: /" >&2
3092 echo "$as_me:$LINENO: checking for $ac_header" >&5
3093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 eval "$as_ac_Header=\$ac_header_preproc"
3099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3104 cat >>confdefs.h
<<_ACEOF
3105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3115 for ac_func
in pread pwrite pread64
3117 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3118 echo "$as_me:$LINENO: checking for $ac_func" >&5
3119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3120 if eval "test \"\${$as_ac_var+set}\" = set"; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 cat >conftest.
$ac_ext <<_ACEOF
3126 cat confdefs.h
>>conftest.
$ac_ext
3127 cat >>conftest.
$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3131 #define $ac_func innocuous_$ac_func
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func (); below.
3135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136 <limits.h> exists even on freestanding compilers. */
3139 # include <limits.h>
3141 # include <assert.h>
3146 /* Override any gcc2 internal prototype to avoid an error. */
3151 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
3154 /* The GNU C library defines this for functions which it implements
3155 to always fail with ENOSYS. Some functions are actually named
3156 something starting with __ and the normal name is an alias. */
3157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3160 char (*f) () = $ac_func;
3169 return f != $ac_func;
3174 rm -f conftest.
$ac_objext conftest
$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1
>conftest.err
3180 cat conftest.err
>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try
='test -z "$ac_c_werror_flag"
3184 || test ! -s conftest.err'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try
='test -s conftest$ac_exeext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 eval "$as_ac_var=yes"
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.
$ac_ext >&5
3201 eval "$as_ac_var=no"
3203 rm -f conftest.err conftest.
$ac_objext \
3204 conftest
$ac_exeext conftest.
$ac_ext
3206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3208 if test `eval echo '${'$as_ac_var'}'` = yes; then
3209 cat >>confdefs.h
<<_ACEOF
3210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3217 for ac_func
in memmem
3219 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3220 echo "$as_me:$LINENO: checking for $ac_func" >&5
3221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3222 if eval "test \"\${$as_ac_var+set}\" = set"; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 cat >conftest.
$ac_ext <<_ACEOF
3228 cat confdefs.h
>>conftest.
$ac_ext
3229 cat >>conftest.
$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3233 #define $ac_func innocuous_$ac_func
3235 /* System header to define __stub macros and hopefully few prototypes,
3236 which can conflict with char $ac_func (); below.
3237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 <limits.h> exists even on freestanding compilers. */
3241 # include <limits.h>
3243 # include <assert.h>
3248 /* Override any gcc2 internal prototype to avoid an error. */
3253 /* We use char because int might match the return type of a gcc2
3254 builtin and then its argument prototype would still apply. */
3256 /* The GNU C library defines this for functions which it implements
3257 to always fail with ENOSYS. Some functions are actually named
3258 something starting with __ and the normal name is an alias. */
3259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 char (*f) () = $ac_func;
3271 return f != $ac_func;
3276 rm -f conftest.
$ac_objext conftest
$ac_exeext
3277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3278 (eval $ac_link) 2>conftest.er1
3280 grep -v '^ *+' conftest.er1
>conftest.err
3282 cat conftest.err
>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try
='test -z "$ac_c_werror_flag"
3286 || test ! -s conftest.err'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; } &&
3292 { ac_try
='test -s conftest$ac_exeext'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 eval "$as_ac_var=yes"
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.
$ac_ext >&5
3303 eval "$as_ac_var=no"
3305 rm -f conftest.err conftest.
$ac_objext \
3306 conftest
$ac_exeext conftest.
$ac_ext
3308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3310 if test `eval echo '${'$as_ac_var'}'` = yes; then
3311 cat >>confdefs.h
<<_ACEOF
3312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3317 "$ac_func.$ac_objext" | \
3318 *" $ac_func.$ac_objext" | \
3319 "$ac_func.$ac_objext "* | \
3320 *" $ac_func.$ac_objext "* ) ;;
3321 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
3330 echo "$as_me:$LINENO: checking for errno" >&5
3331 echo $ECHO_N "checking for errno... $ECHO_C" >&6
3332 cat >conftest.
$ac_ext <<_ACEOF
3335 cat confdefs.h
>>conftest.
$ac_ext
3336 cat >>conftest.
$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3345 static int x; x = errno;
3350 rm -f conftest.
$ac_objext conftest
$ac_exeext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3352 (eval $ac_link) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1
>conftest.err
3356 cat conftest.err
>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try
='test -z "$ac_c_werror_flag"
3360 || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try
='test -s conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3373 echo "${ECHO_T}yes - in errno.h" >&6;
3374 cat >>confdefs.h
<<\_ACEOF
3375 #define HAVE_ERRNO 1
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.
$ac_ext >&5
3383 rm -f conftest.err conftest.
$ac_objext \
3384 conftest
$ac_exeext conftest.
$ac_ext
3385 if test $have_errno = no
; then
3386 cat >conftest.
$ac_ext <<_ACEOF
3389 cat confdefs.h
>>conftest.
$ac_ext
3390 cat >>conftest.
$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3399 extern int errno; static int x; x = errno;
3404 rm -f conftest.
$ac_objext conftest
$ac_exeext
3405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3406 (eval $ac_link) 2>conftest.er1
3408 grep -v '^ *+' conftest.er1
>conftest.err
3410 cat conftest.err
>&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } &&
3413 { ac_try
='test -z "$ac_c_werror_flag"
3414 || test ! -s conftest.err'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; } &&
3420 { ac_try
='test -s conftest$ac_exeext'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; }; then
3426 echo "$as_me:$LINENO: result: yes - must define" >&5
3427 echo "${ECHO_T}yes - must define" >&6;
3428 cat >>confdefs.h
<<\_ACEOF
3429 #define HAVE_ERRNO 1
3432 cat >>confdefs.h
<<\_ACEOF
3433 #define MUST_DEFINE_ERRNO 1
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.
$ac_ext >&5
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3443 rm -f conftest.err conftest.
$ac_objext \
3444 conftest
$ac_exeext conftest.
$ac_ext
3447 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3448 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3449 if test "${ac_cv_have_decl_strerror+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 cat >conftest.
$ac_ext <<_ACEOF
3455 cat confdefs.h
>>conftest.
$ac_ext
3456 cat >>conftest.
$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 $ac_includes_default
3463 char *p = (char *) strerror;
3470 rm -f conftest.
$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>conftest.er1
3474 grep -v '^ *+' conftest.er1
>conftest.err
3476 cat conftest.err
>&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } &&
3479 { ac_try
='test -z "$ac_c_werror_flag"
3480 || test ! -s conftest.err'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; } &&
3486 { ac_try
='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_cv_have_decl_strerror
=yes
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.
$ac_ext >&5
3497 ac_cv_have_decl_strerror
=no
3499 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3501 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3502 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3503 if test $ac_cv_have_decl_strerror = yes; then
3505 cat >>confdefs.h
<<_ACEOF
3506 #define HAVE_DECL_STRERROR 1
3511 cat >>confdefs.h
<<_ACEOF
3512 #define HAVE_DECL_STRERROR 0
3517 echo "$as_me:$LINENO: checking whether perror is declared" >&5
3518 echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3519 if test "${ac_cv_have_decl_perror+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 cat >conftest.
$ac_ext <<_ACEOF
3525 cat confdefs.h
>>conftest.
$ac_ext
3526 cat >>conftest.
$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 $ac_includes_default
3533 char *p = (char *) perror;
3540 rm -f conftest.
$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542 (eval $ac_compile) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1
>conftest.err
3546 cat conftest.err
>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try
='test -z "$ac_c_werror_flag"
3550 || test ! -s conftest.err'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; } &&
3556 { ac_try
='test -s conftest.$ac_objext'
3557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }; }; then
3562 ac_cv_have_decl_perror
=yes
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.
$ac_ext >&5
3567 ac_cv_have_decl_perror
=no
3569 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3571 echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3572 echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3573 if test $ac_cv_have_decl_perror = yes; then
3575 cat >>confdefs.h
<<_ACEOF
3576 #define HAVE_DECL_PERROR 1
3581 cat >>confdefs.h
<<_ACEOF
3582 #define HAVE_DECL_PERROR 0
3590 echo "$as_me:$LINENO: checking for socklen_t" >&5
3591 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3592 if test "${ac_cv_type_socklen_t+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 cat >conftest.
$ac_ext <<_ACEOF
3598 cat confdefs.h
>>conftest.
$ac_ext
3599 cat >>conftest.
$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <sys/types.h>
3602 #include <sys/socket.h>
3608 if ((socklen_t *) 0)
3610 if (sizeof (socklen_t))
3616 rm -f conftest.
$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3620 grep -v '^ *+' conftest.er1
>conftest.err
3622 cat conftest.err
>&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try
='test -z "$ac_c_werror_flag"
3626 || test ! -s conftest.err'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try
='test -s conftest.$ac_objext'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; }; then
3638 ac_cv_type_socklen_t
=yes
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 ac_cv_type_socklen_t
=no
3645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3647 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3648 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3649 if test $ac_cv_type_socklen_t = yes; then
3651 cat >>confdefs.h
<<_ACEOF
3652 #define HAVE_SOCKLEN_T 1
3659 .
${srcdir}/configure.srv
3661 if test "${srv_mingwce}" = "yes"; then
3663 elif test "${srv_mingw}" = "yes"; then
3664 LIBS
="$LIBS -lwsock32"
3667 if test "${srv_mingw}" = "yes"; then
3669 cat >>confdefs.h
<<\_ACEOF
3670 #define USE_WIN32API 1
3675 if test "${srv_linux_usrregs}" = "yes"; then
3677 cat >>confdefs.h
<<\_ACEOF
3678 #define HAVE_LINUX_USRREGS 1
3683 if test "${srv_linux_regsets}" = "yes"; then
3685 cat >>confdefs.h
<<\_ACEOF
3686 #define HAVE_LINUX_REGSETS 1
3690 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3691 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3692 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 cat >conftest.
$ac_ext <<_ACEOF
3698 cat confdefs.h
>>conftest.
$ac_ext
3699 cat >>conftest.
$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 #include <sys/ptrace.h>
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 gdbsrv_cv_have_ptrace_getregs
=yes
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.
$ac_ext >&5
3737 gdbsrv_cv_have_ptrace_getregs
=no
3739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3742 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3743 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3744 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3746 cat >>confdefs.h
<<\_ACEOF
3747 #define HAVE_PTRACE_GETREGS 1
3752 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3753 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3754 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 cat >conftest.
$ac_ext <<_ACEOF
3760 cat confdefs.h
>>conftest.
$ac_ext
3761 cat >>conftest.
$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <sys/ptrace.h>
3772 rm -f conftest.
$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1
>conftest.err
3778 cat conftest.err
>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try
='test -z "$ac_c_werror_flag"
3782 || test ! -s conftest.err'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try
='test -s conftest.$ac_objext'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 gdbsrv_cv_have_ptrace_getfpxregs
=yes
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.
$ac_ext >&5
3799 gdbsrv_cv_have_ptrace_getfpxregs
=no
3801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3804 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3805 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3806 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3808 cat >>confdefs.h
<<\_ACEOF
3809 #define HAVE_PTRACE_GETFPXREGS 1
3815 if test "$ac_cv_header_sys_procfs_h" = yes; then
3816 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3817 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3818 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3829 #include <sys/procfs.h>
3838 rm -f conftest.
$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3842 grep -v '^ *+' conftest.er1
>conftest.err
3844 cat conftest.err
>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try
='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try
='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 bfd_cv_have_sys_procfs_type_lwpid_t
=no
3868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3871 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3873 cat >>confdefs.h
<<\_ACEOF
3874 #define HAVE_LWPID_T 1
3878 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3879 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3881 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3882 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3883 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3894 #include <sys/procfs.h>
3903 rm -f conftest.
$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1
>conftest.err
3909 cat conftest.err
>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try
='test -z "$ac_c_werror_flag"
3913 || test ! -s conftest.err'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; } &&
3919 { ac_try
='test -s conftest.$ac_objext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.
$ac_ext >&5
3930 bfd_cv_have_sys_procfs_type_psaddr_t
=no
3933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3936 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
3938 cat >>confdefs.h
<<\_ACEOF
3939 #define HAVE_PSADDR_T 1
3943 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3944 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
3946 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3947 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3948 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 cat >conftest.
$ac_ext <<_ACEOF
3954 cat confdefs.h
>>conftest.
$ac_ext
3955 cat >>conftest.
$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3959 #include <sys/procfs.h>
3968 rm -f conftest.
$ac_objext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>conftest.er1
3972 grep -v '^ *+' conftest.er1
>conftest.err
3974 cat conftest.err
>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try
='test -z "$ac_c_werror_flag"
3978 || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try
='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.
$ac_ext >&5
3995 bfd_cv_have_sys_procfs_type_prgregset_t
=no
3998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4001 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4003 cat >>confdefs.h
<<\_ACEOF
4004 #define HAVE_PRGREGSET_T 1
4008 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4009 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
4011 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4012 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
4013 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 cat >conftest.
$ac_ext <<_ACEOF
4019 cat confdefs.h
>>conftest.
$ac_ext
4020 cat >>conftest.
$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4024 #include <sys/procfs.h>
4033 rm -f conftest.
$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4037 grep -v '^ *+' conftest.er1
>conftest.err
4039 cat conftest.err
>&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try
='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try
='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.
$ac_ext >&5
4060 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
4063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4066 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4068 cat >>confdefs.h
<<\_ACEOF
4069 #define HAVE_ELF_FPREGSET_T 1
4073 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4074 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
4078 srv_thread_depfiles
=
4082 if test "$srv_linux_thread_db" = "yes"; then
4083 echo "$as_me:$LINENO: checking for libthread_db" >&5
4084 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
4085 if test "${srv_cv_thread_db+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 LIBS
="$LIBS -lthread_db"
4090 cat >conftest.
$ac_ext <<_ACEOF
4093 cat confdefs.h
>>conftest.
$ac_ext
4094 cat >>conftest.
$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 void ps_pglobal_lookup() {}
4098 void ps_pdwrite() {}
4099 void ps_lgetregs() {}
4100 void ps_lsetregs() {}
4101 void ps_lgetfpregs() {}
4102 void ps_lsetfpregs() {}
4103 void ps_get_thread_area() {}
4113 rm -f conftest.
$ac_objext conftest
$ac_exeext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115 (eval $ac_link) 2>conftest.er1
4117 grep -v '^ *+' conftest.er1
>conftest.err
4119 cat conftest.err
>&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try
='test -z "$ac_c_werror_flag"
4123 || test ! -s conftest.err'
4124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; } &&
4129 { ac_try
='test -s conftest$ac_exeext'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then
4135 srv_cv_thread_db
="-lthread_db"
4137 echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.
$ac_ext >&5
4142 if test "$prefix" = "/usr" ||
test "$prefix" = "NONE"; then
4143 thread_db
="/lib/libthread_db.so.1"
4145 thread_db
='$prefix/lib/libthread_db.so.1'
4147 LIBS
="$old_LIBS `eval echo "$thread_db"`"
4148 cat >conftest.
$ac_ext <<_ACEOF
4151 cat confdefs.h
>>conftest.
$ac_ext
4152 cat >>conftest.
$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 void ps_pglobal_lookup() {}
4156 void ps_pdwrite() {}
4157 void ps_lgetregs() {}
4158 void ps_lsetregs() {}
4159 void ps_lgetfpregs() {}
4160 void ps_lsetfpregs() {}
4161 void ps_get_thread_area() {}
4171 rm -f conftest.
$ac_objext conftest
$ac_exeext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173 (eval $ac_link) 2>conftest.er1
4175 grep -v '^ *+' conftest.er1
>conftest.err
4177 cat conftest.err
>&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try
='test -z "$ac_c_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try
='test -s conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 srv_cv_thread_db
="$thread_db"
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.
$ac_ext >&5
4200 rm -f conftest.err conftest.
$ac_objext \
4201 conftest
$ac_exeext conftest.
$ac_ext
4204 rm -f conftest.err conftest.
$ac_objext \
4205 conftest
$ac_exeext conftest.
$ac_ext
4209 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4210 echo "${ECHO_T}$srv_cv_thread_db" >&6
4211 if test "$srv_cv_thread_db" = no
; then
4212 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4213 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4214 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4215 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4216 srv_linux_thread_db
=no
4218 srv_libs
="$srv_cv_thread_db"
4219 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4220 echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4221 if test "${srv_cv_tls_get_addr+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 LIBS
="$LIBS $srv_cv_thread_db"
4226 cat >conftest.
$ac_ext <<_ACEOF
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 void ps_pglobal_lookup() {}
4234 void ps_pdwrite() {}
4235 void ps_lgetregs() {}
4236 void ps_lsetregs() {}
4237 void ps_lgetfpregs() {}
4238 void ps_lsetfpregs() {}
4239 void ps_get_thread_area() {}
4244 td_thr_tls_get_addr();
4249 rm -f conftest.
$ac_objext conftest
$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>conftest.er1
4253 grep -v '^ *+' conftest.er1
>conftest.err
4255 cat conftest.err
>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try
='test -z "$ac_c_werror_flag"
4259 || test ! -s conftest.err'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; } &&
4265 { ac_try
='test -s conftest$ac_exeext'
4266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 srv_cv_tls_get_addr
=yes
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.
$ac_ext >&5
4276 srv_cv_tls_get_addr
=no
4278 rm -f conftest.err conftest.
$ac_objext \
4279 conftest
$ac_exeext conftest.
$ac_ext
4283 echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4284 echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
4286 old_LDFLAGS
="$LDFLAGS"
4287 LDFLAGS
="$LDFLAGS -rdynamic"
4288 cat >conftest.
$ac_ext <<_ACEOF
4291 cat confdefs.h
>>conftest.
$ac_ext
4292 cat >>conftest.
$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4303 rm -f conftest.
$ac_objext conftest
$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1
>conftest.err
4309 cat conftest.err
>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try
='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try
='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.
$ac_ext >&5
4332 rm -f conftest.err conftest.
$ac_objext \
4333 conftest
$ac_exeext conftest.
$ac_ext
4335 LDFLAGS
="$old_LDFLAGS"
4338 if test "$srv_linux_thread_db" = "yes"; then
4339 srv_thread_depfiles
="thread-db.o proc-service.o"
4340 USE_THREAD_DB
="-DUSE_THREAD_DB"
4341 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4342 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
4343 if test "${gdbsrv_cv_have_td_version+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 cat >conftest.
$ac_ext <<_ACEOF
4349 cat confdefs.h
>>conftest.
$ac_ext
4350 cat >>conftest.
$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 #include <thread_db.h>
4361 rm -f conftest.
$ac_objext
4362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>conftest.er1
4365 grep -v '^ *+' conftest.er1
>conftest.err
4367 cat conftest.err
>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try
='test -z "$ac_c_werror_flag"
4371 || test ! -s conftest.err'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try
='test -s conftest.$ac_objext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 gdbsrv_cv_have_td_version
=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.
$ac_ext >&5
4388 gdbsrv_cv_have_td_version
=no
4390 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4392 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4393 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
4394 if test $gdbsrv_cv_have_td_version = yes; then
4396 cat >>confdefs.h
<<\_ACEOF
4397 #define HAVE_TD_VERSION 1
4402 if test "$srv_cv_tls_get_addr" = yes; then
4404 cat >>confdefs.h
<<\_ACEOF
4405 #define HAVE_TD_THR_TLS_GET_ADDR 1
4411 if test "$srv_xmlfiles" != ""; then
4412 srv_xmlbuiltin
="xml-builtin.o"
4414 cat >>confdefs.h
<<\_ACEOF
4419 tmp_xmlfiles
=$srv_xmlfiles
4421 for f
in $tmp_xmlfiles; do
4422 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
4426 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4427 GDBSERVER_LIBS
="$srv_libs"
4435 ac_config_files
="$ac_config_files Makefile"
4436 ac_config_commands
="$ac_config_commands default"
4437 cat >confcache
<<\_ACEOF
4438 # This file is a shell script that caches the results of configure
4439 # tests run on this system so they can be shared between configure
4440 # scripts and configure runs, see configure's option --config-cache.
4441 # It is not useful on other systems. If it contains results you don't
4442 # want to keep, you may remove or edit it.
4444 # config.status only pays attention to the cache file if you give it
4445 # the --recheck option to rerun configure.
4447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4453 # The following way of writing the cache mishandles newlines in values,
4454 # but we know of no workaround that is simple, portable, and efficient.
4455 # So, don't put newlines in cache variables' values.
4456 # Ultrix sh set writes to stderr and can't be redirected directly,
4457 # and sets the high bit in the cache file unless we assign to the vars.
4460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4462 # `set' does not quote correctly, so add quotes (double-quote
4463 # substitution turns \\\\ into \\, and sed turns \\ into \).
4466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4469 # `set' quotes correctly as required by POSIX, so do not add quotes.
4471 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4480 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4482 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4483 if test -w $cache_file; then
4484 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4485 cat confcache
>$cache_file
4487 echo "not updating unwritable cache $cache_file"
4492 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4493 # Let make expand exec_prefix.
4494 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4498 # trailing colons and then remove the whole line if VPATH becomes empty
4499 # (actually we leave an empty line to preserve line numbers).
4500 if test "x$srcdir" = x.
; then
4501 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4502 s/:*\$(srcdir):*/:/;
4503 s/:*\${srcdir}:*/:/;
4505 s/^\([^=]*=[ ]*\):*/\1/;
4511 DEFS
=-DHAVE_CONFIG_H
4515 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4516 # 1. Remove the extension, and $U if already installed.
4517 ac_i
=`echo "$ac_i" |
4518 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4520 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4521 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4525 LTLIBOBJS
=$ac_ltlibobjs
4529 : ${CONFIG_STATUS=./config.status}
4530 ac_clean_files_save
=$ac_clean_files
4531 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4532 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4533 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4534 cat >$CONFIG_STATUS <<_ACEOF
4536 # Generated by $as_me.
4537 # Run this file to recreate the current configuration.
4538 # Compiler output produced by configure, useful for debugging
4539 # configure, is in config.log if it exists.
4544 SHELL=\${CONFIG_SHELL-$SHELL}
4547 cat >>$CONFIG_STATUS <<\_ACEOF
4548 ## --------------------- ##
4549 ## M4sh Initialization. ##
4550 ## --------------------- ##
4552 # Be Bourne compatible
4553 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4556 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4557 # is contrary to our usage. Disable this feature.
4558 alias -g '${1+"$@"}'='"$@"'
4559 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4562 DUALCASE
=1; export DUALCASE
# for MKS sh
4564 # Support unset when possible.
4565 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4572 # Work around bugs in pre-3.0 UWIN ksh.
4573 $as_unset ENV MAIL MAILPATH
4580 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4581 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4582 LC_TELEPHONE LC_TIME
4584 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4585 eval $as_var=C
; export $as_var
4591 # Required to use basename.
4592 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4598 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4599 as_basename
=basename
4605 # Name of the executable.
4606 as_me
=`$as_basename "$0" ||
4607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4608 X"$0" : 'X\(//\)$' \| \
4609 X"$0" : 'X\(/\)$' \| \
4610 . : '\(.\)' 2>/dev/null ||
4612 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4613 /^X\/\(\/\/\)$/{ s//\1/; q; }
4614 /^X\/\(\/\).*/{ s//\1/; q; }
4618 # PATH needs CR, and LINENO needs CR and PATH.
4619 # Avoid depending upon Character Ranges.
4620 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4621 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4622 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4623 as_cr_digits
='0123456789'
4624 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4626 # The user is always right.
4627 if test "${PATH_SEPARATOR+set}" != set; then
4628 echo "#! /bin/sh" >conf$$.sh
4629 echo "exit 0" >>conf$$.sh
4631 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4642 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4643 test "x$as_lineno_1" != "x$as_lineno_2" &&
4644 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4645 # Find who we are. Look in the path if we contain no path at all
4648 *[\\/]* ) as_myself
=$0 ;;
4649 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir
=.
4654 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4659 # We did not find ourselves, most probably we were run as `sh COMMAND'
4660 # in which case we are not to be found in the path.
4661 if test "x$as_myself" = x
; then
4664 if test ! -f "$as_myself"; then
4665 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4666 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4667 { (exit 1); exit 1; }; }
4669 case $CONFIG_SHELL in
4671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4672 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4675 test -z "$as_dir" && as_dir
=.
4676 for as_base
in sh bash ksh sh5
; do
4679 if ("$as_dir/$as_base" -c '
4682 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4683 test "x$as_lineno_1" != "x$as_lineno_2" &&
4684 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4685 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4686 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4687 CONFIG_SHELL
=$as_dir/$as_base
4689 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4697 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4698 # uniformly replaced by the line number. The first 'sed' inserts a
4699 # line-number line before each line; the second 'sed' does the real
4700 # work. The second script uses 'N' to pair each line-number line
4701 # with the numbered line, and appends trailing '-' during
4702 # substitution so that $LINENO is not a special case at line end.
4703 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4704 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4705 sed '=' <$as_myself |
4710 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4713 s,^['$as_cr_digits']*\n,,
4715 chmod +x
$as_me.lineno ||
4716 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4717 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4718 { (exit 1); exit 1; }; }
4720 # Don't try to exec as it changes $[0], causing all sort of problems
4721 # (the dirname of $[0] is not the place where we might find the
4722 # original and so on. Autoconf is especially sensible to this).
4724 # Exit status is that of the last command.
4729 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4730 *c
*,-n*) ECHO_N
= ECHO_C
='
4732 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4733 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4736 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4742 rm -f conf$$ conf$$.exe conf$$.
file
4744 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4745 # We could just check for DJGPP; but this test a) works b) is more generic
4746 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4747 if test -f conf$$.exe
; then
4748 # Don't use ln at all; we don't have any links
4753 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4758 rm -f conf$$ conf$$.exe conf$$.
file
4760 if mkdir
-p .
2>/dev
/null
; then
4763 test -d .
/-p && rmdir .
/-p
4767 as_executable_p
="test -f"
4769 # Sed expression to map a string onto a valid CPP name.
4770 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4772 # Sed expression to map a string onto a valid variable name.
4773 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4777 # We need space, tab and new line, in precisely that order.
4787 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4788 # report actual input values of CONFIG_FILES etc. instead of their
4789 # values after options handling. Logging --version etc. is OK.
4793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4794 ## Running $as_me. ##
4799 This file was extended by $as_me, which was
4800 generated by GNU Autoconf 2.59. Invocation command line was
4802 CONFIG_FILES = $CONFIG_FILES
4803 CONFIG_HEADERS = $CONFIG_HEADERS
4804 CONFIG_LINKS = $CONFIG_LINKS
4805 CONFIG_COMMANDS = $CONFIG_COMMANDS
4809 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4813 # Files that config.status was made for.
4814 if test -n "$ac_config_files"; then
4815 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4818 if test -n "$ac_config_headers"; then
4819 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4822 if test -n "$ac_config_links"; then
4823 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4826 if test -n "$ac_config_commands"; then
4827 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4830 cat >>$CONFIG_STATUS <<\_ACEOF
4833 \`$as_me' instantiates files from templates according to the
4834 current configuration.
4836 Usage: $0 [OPTIONS] [FILE]...
4838 -h, --help print this help, then exit
4839 -V, --version print version number, then exit
4840 -q, --quiet do not print progress messages
4841 -d, --debug don't remove temporary files
4842 --recheck update $as_me by reconfiguring in the same conditions
4843 --file=FILE[:TEMPLATE]
4844 instantiate the configuration file FILE
4845 --header=FILE[:TEMPLATE]
4846 instantiate the configuration header FILE
4848 Configuration files:
4851 Configuration headers:
4854 Configuration commands:
4857 Report bugs to <bug-autoconf@gnu.org>."
4860 cat >>$CONFIG_STATUS <<_ACEOF
4863 configured by $0, generated by GNU Autoconf 2.59,
4864 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4866 Copyright (C) 2003 Free Software Foundation, Inc.
4867 This config.status script is free software; the Free Software Foundation
4868 gives unlimited permission to copy, distribute and modify it."
4873 cat >>$CONFIG_STATUS <<\_ACEOF
4874 # If no file are specified by the user, then we need to provide default
4875 # value. By we need to know if files were specified by the user.
4881 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4882 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4890 *) # This is not an option, so the user has probably given explicit
4893 ac_need_defaults
=false
;;
4897 # Handling of the options.
4899 cat >>$CONFIG_STATUS <<\_ACEOF
4900 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4902 --version |
--vers* |
-V )
4903 echo "$ac_cs_version"; exit 0 ;;
4905 # Conflict between --help and --header
4906 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4907 Try \`$0 --help' for more information." >&5
4908 echo "$as_me: error: ambiguous option: $1
4909 Try \`$0 --help' for more information." >&2;}
4910 { (exit 1); exit 1; }; };;
4911 --help |
--hel |
-h )
4912 echo "$ac_cs_usage"; exit 0 ;;
4913 --debug |
--d* |
-d )
4915 --file |
--fil |
--fi |
--f )
4917 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4918 ac_need_defaults
=false
;;
4919 --header |
--heade |
--head |
--hea )
4921 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4922 ac_need_defaults
=false
;;
4923 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4924 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4928 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4929 Try \`$0 --help' for more information." >&5
4930 echo "$as_me: error: unrecognized option: $1
4931 Try \`$0 --help' for more information." >&2;}
4932 { (exit 1); exit 1; }; } ;;
4934 *) ac_config_targets
="$ac_config_targets $1" ;;
4940 ac_configure_extra_args
=
4942 if $ac_cs_silent; then
4944 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4948 cat >>$CONFIG_STATUS <<_ACEOF
4949 if \$ac_cs_recheck; then
4950 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4951 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4960 cat >>$CONFIG_STATUS <<\_ACEOF
4961 for ac_config_target
in $ac_config_targets
4963 case "$ac_config_target" in
4964 # Handling of arguments.
4965 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4966 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
4967 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
4968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4970 { (exit 1); exit 1; }; };;
4974 # If the user did not use the arguments to specify the items to instantiate,
4975 # then the envvar interface is used. Set only those that are not.
4976 # We use the long form for the default assignment because of an extremely
4977 # bizarre bug on SunOS 4.1.3.
4978 if $ac_need_defaults; then
4979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
4984 # Have a temporary directory for convenience. Make it in the build tree
4985 # simply because there is no reason to put it here, and in addition,
4986 # creating and moving files from /tmp can sometimes cause problems.
4987 # Create a temporary directory, and hook for its removal unless debugging.
4990 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4991 trap '{ (exit 1); exit 1; }' 1 2 13 15
4994 # Create a (secure) tmp directory for tmp files.
4997 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4998 test -n "$tmp" && test -d "$tmp"
5001 tmp
=.
/confstat$$
-$RANDOM
5002 (umask 077 && mkdir
$tmp)
5005 echo "$me: cannot create a temporary directory in ." >&2
5006 { (exit 1); exit 1; }
5011 cat >>$CONFIG_STATUS <<_ACEOF
5014 # CONFIG_FILES section.
5017 # No need to generate the scripts if there are no CONFIG_FILES.
5018 # This happens for instance when ./config.status config.h
5019 if test -n "\$CONFIG_FILES"; then
5020 # Protect against being on the right side of a sed subst in config.status.
5021 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5022 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5023 s,@SHELL@,$SHELL,;t t
5024 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5025 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5026 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5027 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5028 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5029 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5030 s,@exec_prefix@,$exec_prefix,;t t
5031 s,@prefix@,$prefix,;t t
5032 s,@program_transform_name@,$program_transform_name,;t t
5033 s,@bindir@,$bindir,;t t
5034 s,@sbindir@,$sbindir,;t t
5035 s,@libexecdir@,$libexecdir,;t t
5036 s,@datadir@,$datadir,;t t
5037 s,@sysconfdir@,$sysconfdir,;t t
5038 s,@sharedstatedir@,$sharedstatedir,;t t
5039 s,@localstatedir@,$localstatedir,;t t
5040 s,@libdir@,$libdir,;t t
5041 s,@includedir@,$includedir,;t t
5042 s,@oldincludedir@,$oldincludedir,;t t
5043 s,@infodir@,$infodir,;t t
5044 s,@mandir@,$mandir,;t t
5045 s,@build_alias@,$build_alias,;t t
5046 s,@host_alias@,$host_alias,;t t
5047 s,@target_alias@,$target_alias,;t t
5049 s,@ECHO_C@,$ECHO_C,;t t
5050 s,@ECHO_N@,$ECHO_N,;t t
5051 s,@ECHO_T@,$ECHO_T,;t t
5054 s,@CFLAGS@,$CFLAGS,;t t
5055 s,@LDFLAGS@,$LDFLAGS,;t t
5056 s,@CPPFLAGS@,$CPPFLAGS,;t t
5057 s,@ac_ct_CC@,$ac_ct_CC,;t t
5058 s,@EXEEXT@,$EXEEXT,;t t
5059 s,@OBJEXT@,$OBJEXT,;t t
5060 s,@build@,$build,;t t
5061 s,@build_cpu@,$build_cpu,;t t
5062 s,@build_vendor@,$build_vendor,;t t
5063 s,@build_os@,$build_os,;t t
5065 s,@host_cpu@,$host_cpu,;t t
5066 s,@host_vendor@,$host_vendor,;t t
5067 s,@host_os@,$host_os,;t t
5068 s,@target@,$target,;t t
5069 s,@target_cpu@,$target_cpu,;t t
5070 s,@target_vendor@,$target_vendor,;t t
5071 s,@target_os@,$target_os,;t t
5072 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5073 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5074 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5076 s,@EGREP@,$EGREP,;t t
5077 s,@LIBOBJS@,$LIBOBJS,;t t
5078 s,@RDYNAMIC@,$RDYNAMIC,;t t
5079 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5080 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5081 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
5082 s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5083 s,@srv_xmlfiles@,$srv_xmlfiles,;t t
5084 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5089 cat >>$CONFIG_STATUS <<\_ACEOF
5090 # Split the substitutions into bite-sized pieces for seds with
5091 # small command number limits, like on Digital OSF/1 and HP-UX.
5093 ac_sed_frag
=1 # Number of current file.
5094 ac_beg
=1 # First line for current file.
5095 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5098 while $ac_more_lines; do
5099 if test $ac_beg -gt 1; then
5100 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5102 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5104 if test ! -s $tmp/subs.frag
; then
5107 # The purpose of the label and of the branching condition is to
5108 # speed up the sed processing (if there are no `@' at all, there
5109 # is no need to browse any of the substitutions).
5110 # These are the two extra sed commands mentioned above.
5112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5113 if test -z "$ac_sed_cmds"; then
5114 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5116 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5118 ac_sed_frag
=`expr $ac_sed_frag + 1`
5120 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5123 if test -z "$ac_sed_cmds"; then
5126 fi # test -n "$CONFIG_FILES"
5129 cat >>$CONFIG_STATUS <<\_ACEOF
5130 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5133 - |
*:- |
*:-:* ) # input from stdin
5135 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5136 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5137 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5138 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5139 * ) ac_file_in
=$ac_file.
in ;;
5142 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5143 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5145 X"$ac_file" : 'X\(//\)[^/]' \| \
5146 X"$ac_file" : 'X\(//\)$' \| \
5147 X"$ac_file" : 'X\(/\)' \| \
5148 . : '\(.\)' 2>/dev/null ||
5150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5152 /^X\(\/\/\)$/{ s//\1/; q; }
5153 /^X\(\/\).*/{ s//\1/; q; }
5155 { if $as_mkdir_p; then
5160 while test ! -d "$as_dir"; do
5161 as_dirs
="$as_dir $as_dirs"
5162 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5164 X"$as_dir" : 'X\(//\)[^/]' \| \
5165 X"$as_dir" : 'X\(//\)$' \| \
5166 X"$as_dir" : 'X\(/\)' \| \
5167 . : '\(.\)' 2>/dev/null ||
5169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5171 /^X\(\/\/\)$/{ s//\1/; q; }
5172 /^X\(\/\).*/{ s//\1/; q; }
5175 test ! -n "$as_dirs" || mkdir
$as_dirs
5176 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5178 { (exit 1); exit 1; }; }; }
5182 if test "$ac_dir" != .
; then
5183 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5184 # A "../" for each directory in $ac_dir_suffix.
5185 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5187 ac_dir_suffix
= ac_top_builddir
=
5191 .
) # No --srcdir option. We are building in place.
5193 if test -z "$ac_top_builddir"; then
5196 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5198 [\\/]* | ?
:[\\/]* ) # Absolute path.
5199 ac_srcdir
=$srcdir$ac_dir_suffix;
5200 ac_top_srcdir
=$srcdir ;;
5202 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5203 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5206 # Do not use `cd foo && pwd` to compute absolute paths, because
5207 # the directories may not exist.
5209 .
) ac_abs_builddir
="$ac_dir";;
5212 .
) ac_abs_builddir
=`pwd`;;
5213 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5214 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5217 case $ac_abs_builddir in
5218 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5220 case ${ac_top_builddir}.
in
5221 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5222 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5223 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5226 case $ac_abs_builddir in
5227 .
) ac_abs_srcdir
=$ac_srcdir;;
5230 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5231 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5232 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5235 case $ac_abs_builddir in
5236 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5238 case $ac_top_srcdir in
5239 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5240 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5241 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5247 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5248 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5251 if test x
"$ac_file" != x-
; then
5252 { echo "$as_me:$LINENO: creating $ac_file" >&5
5253 echo "$as_me: creating $ac_file" >&6;}
5256 # Let's still pretend it is `configure' which instantiates (i.e., don't
5257 # use $as_me), people would be surprised to read:
5258 # /* config.h. Generated by config.status. */
5259 if test x
"$ac_file" = x-
; then
5262 configure_input
="$ac_file. "
5264 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5265 sed 's,.*/,,'` by configure."
5267 # First look for the input files in the build tree, otherwise in the
5269 ac_file_inputs
=`IFS=:
5270 for f in $ac_file_in; do
5272 -) echo $tmp/stdin ;;
5274 # Absolute (can't be DOS-style, as IFS=:)
5275 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5276 echo "$as_me: error: cannot find input file: $f" >&2;}
5277 { (exit 1); exit 1; }; }
5280 if test -f "$f"; then
5283 elif test -f "$srcdir/$f"; then
5288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5289 echo "$as_me: error: cannot find input file: $f" >&2;}
5290 { (exit 1); exit 1; }; }
5293 done` ||
{ (exit 1); exit 1; }
5295 cat >>$CONFIG_STATUS <<_ACEOF
5299 cat >>$CONFIG_STATUS <<\_ACEOF
5301 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5302 s
,@configure_input@
,$configure_input,;t t
5303 s
,@srcdir@
,$ac_srcdir,;t t
5304 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5305 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5306 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5307 s
,@builddir@
,$ac_builddir,;t t
5308 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5309 s
,@top_builddir@
,$ac_top_builddir,;t t
5310 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5311 s
,@INSTALL@
,$ac_INSTALL,;t t
5312 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5314 if test x"$ac_file" != x-; then
5315 mv $tmp/out $ac_file
5323 cat >>$CONFIG_STATUS <<\_ACEOF
5326 # CONFIG_HEADER section.
5329 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5330 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5332 # ac_d sets the value in "#define NAME VALUE" lines.
5333 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5334 ac_dB
='[ ].*$,\1#\2'
5337 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5338 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5339 ac_uB
='$,\1#\2define\3'
5343 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5346 - |
*:- |
*:-:* ) # input from stdin
5348 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5349 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5350 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5351 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5352 * ) ac_file_in
=$ac_file.
in ;;
5355 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5356 echo "$as_me: creating $ac_file" >&6;}
5358 # First look for the input files in the build tree, otherwise in the
5360 ac_file_inputs
=`IFS=:
5361 for f in $ac_file_in; do
5363 -) echo $tmp/stdin ;;
5365 # Absolute (can't be DOS-style, as IFS=:)
5366 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5367 echo "$as_me: error: cannot find input file: $f" >&2;}
5368 { (exit 1); exit 1; }; }
5369 # Do quote $f, to prevent DOS paths from being IFS'd.
5372 if test -f "$f"; then
5375 elif test -f "$srcdir/$f"; then
5380 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5381 echo "$as_me: error: cannot find input file: $f" >&2;}
5382 { (exit 1); exit 1; }; }
5385 done` ||
{ (exit 1); exit 1; }
5386 # Remove the trailing spaces.
5387 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5391 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5392 # `conftest.undefs', that substitutes the proper values into
5393 # config.h.in to produce config.h. The first handles `#define'
5394 # templates, and the second `#undef' templates.
5395 # And first: Protect against being on the right side of a sed subst in
5396 # config.status. Protect against being in an unquoted here document
5398 rm -f conftest.defines conftest.undefs
5399 # Using a here document instead of a string reduces the quoting nightmare.
5400 # Putting comments in sed scripts is not portable.
5402 # `end' is used to avoid that the second main sed command (meant for
5403 # 0-ary CPP macros) applies to n-ary macro definitions.
5404 # See the Autoconf documentation for `clear'.
5405 cat >confdef2sed.
sed <<\_ACEOF
5410 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5412 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5415 # If some macros were called several times there might be several times
5416 # the same #defines, which is useless. Nevertheless, we may not want to
5417 # sort them, since we want the *last* AC-DEFINE to be honored.
5418 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5419 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5420 rm -f confdef2sed.sed
5422 # This sed command replaces #undef with comments. This is necessary, for
5423 # example, in the case of _POSIX_SOURCE, which is predefined and required
5424 # on some systems where configure will not decide to define it.
5425 cat >>conftest.undefs <<\_ACEOF
5426 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5429 # Break up conftest.defines because some shells have a limit on the size
5430 # of here documents, and old seds have small limits too (100 cmds).
5431 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5432 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5433 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5434 echo ' :' >>$CONFIG_STATUS
5436 while grep . conftest.defines >/dev/null
5438 # Write a limited-size here document to $tmp/defines.sed.
5439 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5440 # Speed up: don't consider the non `#define' lines.
5441 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5442 # Work around the forget-to-reset-the-flag bug.
5443 echo 't clr' >>$CONFIG_STATUS
5444 echo ': clr' >>$CONFIG_STATUS
5445 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5447 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5451 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5452 rm -f conftest.defines
5453 mv conftest.
tail conftest.defines
5455 rm -f conftest.defines
5456 echo ' fi # grep' >>$CONFIG_STATUS
5457 echo >>$CONFIG_STATUS
5459 # Break up conftest.undefs because some shells have a limit on the size
5460 # of here documents, and old seds have small limits too (100 cmds).
5461 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5463 while grep . conftest.undefs
>/dev
/null
5465 # Write a limited-size here document to $tmp/undefs.sed.
5466 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5467 # Speed up: don't consider the non
`#undef'
5468 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5469 # Work around the forget-to-reset-the-flag bug.
5470 echo 't clr' >>$CONFIG_STATUS
5471 echo ': clr' >>$CONFIG_STATUS
5472 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5474 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5478 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5479 rm -f conftest.undefs
5480 mv conftest.tail conftest.undefs
5482 rm -f conftest.undefs
5484 cat >>$CONFIG_STATUS <<\_ACEOF
5485 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5486 # use $as_me), people would be surprised to read:
5487 # /* config.h. Generated by config.status. */
5488 if test x
"$ac_file" = x-
; then
5489 echo "/* Generated by configure. */" >$tmp/config.h
5491 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5493 cat $tmp/in >>$tmp/config.h
5495 if test x
"$ac_file" != x-
; then
5496 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5497 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5498 echo "$as_me: $ac_file is unchanged" >&6;}
5500 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5501 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5502 X"$ac_file" : 'X\(//\)[^/]' \| \
5503 X"$ac_file" : 'X\(//\)$' \| \
5504 X"$ac_file" : 'X\(/\)' \| \
5505 . : '\(.\)' 2>/dev/null ||
5507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5509 /^X\(\/\/\)$/{ s//\1/; q; }
5510 /^X\(\/\).*/{ s//\1/; q; }
5512 { if $as_mkdir_p; then
5517 while test ! -d "$as_dir"; do
5518 as_dirs
="$as_dir $as_dirs"
5519 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5521 X"$as_dir" : 'X\(//\)[^/]' \| \
5522 X"$as_dir" : 'X\(//\)$' \| \
5523 X"$as_dir" : 'X\(/\)' \| \
5524 . : '\(.\)' 2>/dev/null ||
5526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5528 /^X\(\/\/\)$/{ s//\1/; q; }
5529 /^X\(\/\).*/{ s//\1/; q; }
5532 test ! -n "$as_dirs" || mkdir
$as_dirs
5533 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5535 { (exit 1); exit 1; }; }; }
5538 mv $tmp/config.h
$ac_file
5546 cat >>$CONFIG_STATUS <<\_ACEOF
5549 # CONFIG_COMMANDS section.
5551 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5552 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5553 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5554 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5555 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5556 X"$ac_dest" : 'X\(//\)[^/]' \| \
5557 X"$ac_dest" : 'X\(//\)$' \| \
5558 X"$ac_dest" : 'X\(/\)' \| \
5559 . : '\(.\)' 2>/dev/null ||
5561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5563 /^X\(\/\/\)$/{ s//\1/; q; }
5564 /^X\(\/\).*/{ s//\1/; q; }
5566 { if $as_mkdir_p; then
5571 while test ! -d "$as_dir"; do
5572 as_dirs
="$as_dir $as_dirs"
5573 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5575 X"$as_dir" : 'X\(//\)[^/]' \| \
5576 X"$as_dir" : 'X\(//\)$' \| \
5577 X"$as_dir" : 'X\(/\)' \| \
5578 . : '\(.\)' 2>/dev/null ||
5580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5582 /^X\(\/\/\)$/{ s//\1/; q; }
5583 /^X\(\/\).*/{ s//\1/; q; }
5586 test ! -n "$as_dirs" || mkdir
$as_dirs
5587 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5589 { (exit 1); exit 1; }; }; }
5593 if test "$ac_dir" != .
; then
5594 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5595 # A "../" for each directory in $ac_dir_suffix.
5596 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5598 ac_dir_suffix
= ac_top_builddir
=
5602 .
) # No --srcdir option. We are building in place.
5604 if test -z "$ac_top_builddir"; then
5607 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5609 [\\/]* | ?
:[\\/]* ) # Absolute path.
5610 ac_srcdir
=$srcdir$ac_dir_suffix;
5611 ac_top_srcdir
=$srcdir ;;
5613 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5614 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5617 # Do not use `cd foo && pwd` to compute absolute paths, because
5618 # the directories may not exist.
5620 .
) ac_abs_builddir
="$ac_dir";;
5623 .
) ac_abs_builddir
=`pwd`;;
5624 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5625 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5628 case $ac_abs_builddir in
5629 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5631 case ${ac_top_builddir}.
in
5632 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5633 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5634 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5637 case $ac_abs_builddir in
5638 .
) ac_abs_srcdir
=$ac_srcdir;;
5641 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5642 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5643 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5646 case $ac_abs_builddir in
5647 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5649 case $ac_top_srcdir in
5650 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5651 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5652 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5657 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5658 echo "$as_me: executing $ac_dest commands" >&6;}
5660 default
) case x
$CONFIG_HEADERS in
5661 xconfig.h
:config.
in)
5669 cat >>$CONFIG_STATUS <<\_ACEOF
5671 { (exit 0); exit 0; }
5673 chmod +x
$CONFIG_STATUS
5674 ac_clean_files
=$ac_clean_files_save
5677 # configure is writing to config.log, and then calls config.status.
5678 # config.status does its own redirection, appending to config.log.
5679 # Unfortunately, on DOS this fails, as config.log is still kept open
5680 # by configure, so config.status won't be able to write to it; its
5681 # output is simply discarded. So we exec the FD to /dev/null,
5682 # effectively closing config.log, so it can be properly (re)opened and
5683 # appended to by config.status. When coming back to configure, we
5684 # need to make the FD available again.
5685 if test "$no_create" != yes; then
5687 ac_config_status_args
=
5688 test "$silent" = yes &&
5689 ac_config_status_args
="$ac_config_status_args --quiet"
5691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5694 # would make configure fail if this is the last instruction.
5695 $ac_cs_success ||
{ (exit 1); exit 1; }