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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1245 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1246 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1247 echo "$as_me: former value: $ac_old_val" >&2;}
1248 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1249 echo "$as_me: current value: $ac_new_val" >&2;}
1250 ac_cache_corrupted=:
1253 # Pass precious variables to config.status.
1254 if test "$ac_new_set" = set; then
1256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1258 *) ac_arg=$ac_var=$ac_new_val ;;
1260 case " $ac_configure_args " in
1261 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1262 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1266 if $ac_cache_corrupted; then
1267 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1270 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271 { (exit 1); exit 1; }; }
1275 ac_cpp='$CPP $CPPFLAGS'
1276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1277 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298 ac_config_headers="$ac_config_headers config.h:config.in"
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1305 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307 if test -n "$ac_tool_prefix"; then
1308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1309 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1310 echo "$as_me:$LINENO: checking for $ac_word" >&5
1311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1312 if test "${ac_cv_prog_CC+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 if test -n "$CC"; then
1316 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322 test -z "$as_dir" && as_dir=.
1323 for ac_exec_ext in '' $ac_executable_extensions; do
1324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1325 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335 if test -n "$CC"; then
1336 echo "$as_me:$LINENO: result: $CC" >&5
1337 echo "${ECHO_T}$CC" >&6
1339 echo "$as_me:$LINENO: result: no" >&5
1340 echo "${ECHO_T}no" >&6
1344 if test -z "$ac_cv_prog_CC"; then
1346 # Extract the first word of "gcc", so it can be a program name with args.
1347 set dummy gcc; ac_word=$2
1348 echo "$as_me:$LINENO: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$ac_ct_CC"; then
1354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 test -z "$as_dir" && as_dir=.
1361 for ac_exec_ext in '' $ac_executable_extensions; do
1362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1363 ac_cv_prog_ac_ct_CC="gcc"
1364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1373 if test -n "$ac_ct_CC"; then
1374 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1375 echo "${ECHO_T}$ac_ct_CC" >&6
1377 echo "$as_me:$LINENO: result: no" >&5
1378 echo "${ECHO_T}no" >&6
1386 if test -z "$CC"; then
1387 if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1389 set dummy ${ac_tool_prefix}cc; ac_word=$2
1390 echo "$as_me:$LINENO: checking for $ac_word" >&5
1391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392 if test "${ac_cv_prog_CC+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 if test -n "$CC"; then
1396 ac_cv_prog_CC="$CC" # Let the user override the test.
1398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402 test -z "$as_dir" && as_dir=.
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405 ac_cv_prog_CC="${ac_tool_prefix}cc"
1406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415 if test -n "$CC"; then
1416 echo "$as_me:$LINENO: result: $CC" >&5
1417 echo "${ECHO_T}$CC" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1424 if test -z "$ac_cv_prog_CC"; then
1426 # Extract the first word of "cc", so it can be a program name with args.
1427 set dummy cc; ac_word=$2
1428 echo "$as_me:$LINENO: checking for $ac_word" >&5
1429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 if test -n "$ac_ct_CC"; then
1434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 test -z "$as_dir" && as_dir=.
1441 for ac_exec_ext in '' $ac_executable_extensions; do
1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443 ac_cv_prog_ac_ct_CC="cc"
1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1457 echo "$as_me:$LINENO: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1467 if test -z "$CC"; then
1468 # Extract the first word of "cc", so it can be a program name with args.
1469 set dummy cc; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1487 ac_prog_rejected=yes
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 if test $ac_prog_rejected = yes; then
1498 # We found a bogon in the path, so make sure we never use it.
1499 set dummy $ac_cv_prog_CC
1501 if test $# != 0; then
1502 # We chose a different compiler from the bogus one.
1503 # However, it has the same basename, so the bogon will be chosen
1504 # first if we set CC to just the basename; use the full file name.
1506 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1512 if test -n "$CC"; then
1513 echo "$as_me:$LINENO: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1521 if test -z "$CC"; then
1522 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1560 test -n "$CC" && break
1563 if test -z "$CC"; then
1567 # Extract the first word of "$ac_prog", so it can be a program name with args.
1568 set dummy $ac_prog; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="$ac_prog"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1602 test -n "$ac_ct_CC" && break
1611 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1612 See \`config.log' for more details.
" >&5
1613 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1614 See \
`config.log' for more details." >&2;}
1615 { (exit 1); exit 1; }; }
1617 # Provide some information about the compiler.
1618 echo "$as_me:$LINENO:" \
1619 "checking for C compiler version" >&5
1620 ac_compiler=`set X
$ac_compile; echo $2`
1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1622 (eval $ac_compiler --version </dev/null >&5) 2>&5
1624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1627 (eval $ac_compiler -v </dev/null >&5) 2>&5
1629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630 (exit $ac_status); }
1631 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1632 (eval $ac_compiler -V </dev/null >&5) 2>&5
1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635 (exit $ac_status); }
1637 cat >conftest.$ac_ext <<_ACEOF
1640 cat confdefs.h >>conftest.$ac_ext
1641 cat >>conftest.$ac_ext <<_ACEOF
1642 /* end confdefs.h. */
1652 ac_clean_files_save=$ac_clean_files
1653 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1654 # Try to create an executable without -o first, disregard a.out.
1655 # It will help us diagnose broken compilers, and finding out an intuition
1657 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1658 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1659 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1660 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1661 (eval $ac_link_default) 2>&5
1663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1664 (exit $ac_status); }; then
1665 # Find the output, starting from the most likely. This scheme is
1666 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1669 # Be careful to initialize this variable, since it used to be cached.
1670 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1672 # b.out is created by i960 compilers.
1673 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1675 test -f "$ac_file" || continue
1677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1680 # This is the source file.
1683 # We found the default executable, but exeext='' is most
1687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1688 # FIXME: I believe we export ac_cv_exeext for Libtool,
1689 # but it would be cool to find out if it's true. Does anybody
1690 # maintain Libtool? --akim.
1698 echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1702 See \`config.log
' for more details." >&5
1703 echo "$as_me: error: C compiler cannot create executables
1704 See \`config.log' for more details.
" >&2;}
1705 { (exit 77); exit 77; }; }
1708 ac_exeext=$ac_cv_exeext
1709 echo "$as_me:$LINENO: result
: $ac_file" >&5
1710 echo "${ECHO_T}$ac_file" >&6
1712 # Check the compiler produces executables we can run. If not, either
1713 # the compiler is broken, or we cross compile.
1714 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1715 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1716 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1717 # If not cross compiling, check that we can run a simple program.
1718 if test "$cross_compiling" != yes; then
1719 if { ac_try='./$ac_file'
1720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1724 (exit $ac_status); }; }; then
1727 if test "$cross_compiling" = maybe; then
1730 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1731 If you meant to cross compile
, use \
`--host'.
1732 See \`config.log
' for more details." >&5
1733 echo "$as_me: error: cannot run C compiled programs.
1734 If you meant to cross compile, use \`--host'.
1735 See \
`config.log' for more details." >&2;}
1736 { (exit 1); exit 1; }; }
1740 echo "$as_me:$LINENO: result: yes" >&5
1741 echo "${ECHO_T}yes" >&6
1743 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1744 ac_clean_files=$ac_clean_files_save
1745 # Check the compiler produces executables we can run. If not, either
1746 # the compiler is broken, or we cross compile.
1747 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1748 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1749 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1750 echo "${ECHO_T}$cross_compiling" >&6
1752 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1753 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1755 (eval $ac_link) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1760 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1761 # work properly (i.e., refer to `conftest.exe'), while it won't with
1763 for ac_file
in conftest.exe conftest conftest.
*; do
1764 test -f "$ac_file" ||
continue
1766 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1767 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1774 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1777 See \`config.log' for more details." >&2;}
1778 { (exit 1); exit 1; }; }
1781 rm -f conftest
$ac_cv_exeext
1782 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1783 echo "${ECHO_T}$ac_cv_exeext" >&6
1785 rm -f conftest.
$ac_ext
1786 EXEEXT
=$ac_cv_exeext
1788 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1789 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1790 if test "${ac_cv_objext+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 cat >conftest.
$ac_ext <<_ACEOF
1796 cat confdefs.h
>>conftest.
$ac_ext
1797 cat >>conftest.
$ac_ext <<_ACEOF
1798 /* end confdefs.h. */
1808 rm -f conftest.o conftest.obj
1809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1810 (eval $ac_compile) 2>&5
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; then
1814 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1816 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1817 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.
$ac_ext >&5
1825 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1828 See \`config.log' for more details." >&2;}
1829 { (exit 1); exit 1; }; }
1832 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1834 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1835 echo "${ECHO_T}$ac_cv_objext" >&6
1836 OBJEXT
=$ac_cv_objext
1838 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1839 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1840 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 cat >conftest.
$ac_ext <<_ACEOF
1846 cat confdefs.h
>>conftest.
$ac_ext
1847 cat >>conftest.
$ac_ext <<_ACEOF
1848 /* end confdefs.h. */
1861 rm -f conftest.
$ac_objext
1862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1863 (eval $ac_compile) 2>conftest.er1
1865 grep -v '^ *+' conftest.er1
>conftest.err
1867 cat conftest.err
>&5
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); } &&
1870 { ac_try
='test -z "$ac_c_werror_flag"
1871 || test ! -s conftest.err'
1872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; } &&
1877 { ac_try
='test -s conftest.$ac_objext'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1885 echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.
$ac_ext >&5
1890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1891 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1894 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1895 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1896 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1897 ac_test_CFLAGS
=${CFLAGS+set}
1898 ac_save_CFLAGS
=$CFLAGS
1900 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1901 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1902 if test "${ac_cv_prog_cc_g+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 cat >conftest.
$ac_ext <<_ACEOF
1908 cat confdefs.h
>>conftest.
$ac_ext
1909 cat >>conftest.
$ac_ext <<_ACEOF
1910 /* end confdefs.h. */
1920 rm -f conftest.
$ac_objext
1921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1922 (eval $ac_compile) 2>conftest.er1
1924 grep -v '^ *+' conftest.er1
>conftest.err
1926 cat conftest.err
>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } &&
1929 { ac_try
='test -z "$ac_c_werror_flag"
1930 || test ! -s conftest.err'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; } &&
1936 { ac_try
='test -s conftest.$ac_objext'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.
$ac_ext >&5
1949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1951 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1952 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1953 if test "$ac_test_CFLAGS" = set; then
1954 CFLAGS
=$ac_save_CFLAGS
1955 elif test $ac_cv_prog_cc_g = yes; then
1956 if test "$GCC" = yes; then
1962 if test "$GCC" = yes; then
1968 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1969 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1970 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 ac_cv_prog_cc_stdc
=no
1975 cat >conftest.
$ac_ext <<_ACEOF
1978 cat confdefs.h
>>conftest.
$ac_ext
1979 cat >>conftest.
$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1983 #include <sys/types.h>
1984 #include <sys/stat.h>
1985 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1986 struct buf { int x; };
1987 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1988 static char *e (p, i)
1994 static char *f (char * (*g) (char **, int), char **p, ...)
1999 s = g (p, va_arg (v,int));
2004 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2005 function prototypes and stuff, but not '\xHH' hex character constants.
2006 These don't provoke an error unfortunately, instead are silently treated
2007 as 'x'. The following induces an error, until -std1 is added to get
2008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2009 array size at least. It's necessary to write '\x00'==0 to get something
2010 that's true only with -std1. */
2011 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2013 int test (int i, double x);
2014 struct s1 {int (*f) (int a);};
2015 struct s2 {int (*f) (double a);};
2016 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2022 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2027 # Don't try gcc -ansi; that turns off useful extensions and
2028 # breaks some systems' header files.
2029 # AIX -qlanglvl=ansi
2030 # Ultrix and OSF/1 -std1
2031 # HP-UX 10.20 and later -Ae
2032 # HP-UX older versions -Aa -D_HPUX_SOURCE
2033 # SVR4 -Xc -D__EXTENSIONS__
2034 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2036 CC
="$ac_save_CC $ac_arg"
2037 rm -f conftest.
$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>conftest.er1
2041 grep -v '^ *+' conftest.er1
>conftest.err
2043 cat conftest.err
>&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try
='test -z "$ac_c_werror_flag"
2047 || test ! -s conftest.err'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; } &&
2053 { ac_try
='test -s conftest.$ac_objext'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2059 ac_cv_prog_cc_stdc
=$ac_arg
2062 echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.
$ac_ext >&5
2066 rm -f conftest.err conftest.
$ac_objext
2068 rm -f conftest.
$ac_ext conftest.
$ac_objext
2073 case "x$ac_cv_prog_cc_stdc" in
2075 echo "$as_me:$LINENO: result: none needed" >&5
2076 echo "${ECHO_T}none needed" >&6 ;;
2078 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2079 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2080 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2083 # Some people use a C++ compiler to compile C. Since we use `exit',
2084 # in C++ we need to declare it. In case someone uses the same compiler
2085 # for both compiling C and C++ we need to have the C++ compiler decide
2086 # the declaration of exit, since it's the most demanding environment.
2087 cat >conftest.
$ac_ext <<_ACEOF
2092 rm -f conftest.
$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>conftest.er1
2096 grep -v '^ *+' conftest.er1
>conftest.err
2098 cat conftest.err
>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try
='test -z "$ac_c_werror_flag"
2102 || test ! -s conftest.err'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; } &&
2108 { ac_try
='test -s conftest.$ac_objext'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; }; then
2114 for ac_declaration
in \
2116 'extern "C" void std::exit (int) throw (); using std::exit;' \
2117 'extern "C" void std::exit (int); using std::exit;' \
2118 'extern "C" void exit (int) throw ();' \
2119 'extern "C" void exit (int);' \
2122 cat >conftest.
$ac_ext <<_ACEOF
2125 cat confdefs.h
>>conftest.
$ac_ext
2126 cat >>conftest.
$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2138 rm -f conftest.
$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2142 grep -v '^ *+' conftest.er1
>conftest.err
2144 cat conftest.err
>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try
='test -z "$ac_c_werror_flag"
2148 || test ! -s conftest.err'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; } &&
2154 { ac_try
='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.
$ac_ext >&5
2167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2168 cat >conftest.
$ac_ext <<_ACEOF
2171 cat confdefs.h
>>conftest.
$ac_ext
2172 cat >>conftest.
$ac_ext <<_ACEOF
2173 /* end confdefs.h. */
2183 rm -f conftest.
$ac_objext
2184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185 (eval $ac_compile) 2>conftest.er1
2187 grep -v '^ *+' conftest.er1
>conftest.err
2189 cat conftest.err
>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try
='test -z "$ac_c_werror_flag"
2193 || test ! -s conftest.err'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; } &&
2199 { ac_try
='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 if test -n "$ac_declaration"; then
2215 echo '#ifdef __cplusplus' >>confdefs.h
2216 echo $ac_declaration >>confdefs.h
2217 echo '#endif' >>confdefs.h
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.
$ac_ext >&5
2225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2227 ac_cpp
='$CPP $CPPFLAGS'
2228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2233 cat >>confdefs.h
<<\_ACEOF
2234 #define _GNU_SOURCE 1
2240 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2241 if test -f $ac_dir/install-sh
; then
2243 ac_install_sh
="$ac_aux_dir/install-sh -c"
2245 elif test -f $ac_dir/install.sh
; then
2247 ac_install_sh
="$ac_aux_dir/install.sh -c"
2249 elif test -f $ac_dir/shtool
; then
2251 ac_install_sh
="$ac_aux_dir/shtool install -c"
2255 if test -z "$ac_aux_dir"; then
2256 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2257 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2258 { (exit 1); exit 1; }; }
2260 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2261 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2262 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2264 # Make sure we can run config.sub.
2265 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2266 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2267 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2268 { (exit 1); exit 1; }; }
2270 echo "$as_me:$LINENO: checking build system type" >&5
2271 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2272 if test "${ac_cv_build+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 ac_cv_build_alias
=$build_alias
2276 test -z "$ac_cv_build_alias" &&
2277 ac_cv_build_alias
=`$ac_config_guess`
2278 test -z "$ac_cv_build_alias" &&
2279 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2280 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2281 { (exit 1); exit 1; }; }
2282 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2283 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2284 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2285 { (exit 1); exit 1; }; }
2288 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2289 echo "${ECHO_T}$ac_cv_build" >&6
2291 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2292 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2293 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2296 echo "$as_me:$LINENO: checking host system type" >&5
2297 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2298 if test "${ac_cv_host+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 ac_cv_host_alias
=$host_alias
2302 test -z "$ac_cv_host_alias" &&
2303 ac_cv_host_alias
=$ac_cv_build_alias
2304 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2305 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2306 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2307 { (exit 1); exit 1; }; }
2310 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2311 echo "${ECHO_T}$ac_cv_host" >&6
2313 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2314 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2315 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2318 echo "$as_me:$LINENO: checking target system type" >&5
2319 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2320 if test "${ac_cv_target+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 ac_cv_target_alias
=$target_alias
2324 test "x$ac_cv_target_alias" = "x" &&
2325 ac_cv_target_alias
=$ac_cv_host_alias
2326 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2328 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2329 { (exit 1); exit 1; }; }
2332 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2333 echo "${ECHO_T}$ac_cv_target" >&6
2334 target
=$ac_cv_target
2335 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2336 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2337 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2340 # The aliases save the names the user supplied, while $host etc.
2341 # will get canonicalized.
2342 test -n "$target_alias" &&
2343 test "$program_prefix$program_suffix$program_transform_name" = \
2345 program_prefix
=${target_alias}-
2347 # Find a good install program. We prefer a C program (faster),
2348 # so one script is as good as another. But avoid the broken or
2349 # incompatible versions:
2350 # SysV /etc/install, /usr/sbin/install
2351 # SunOS /usr/etc/install
2352 # IRIX /sbin/install
2354 # AmigaOS /C/install, which installs bootblocks on floppy discs
2355 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2356 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2357 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2358 # OS/2's system install, which has a completely different semantic
2359 # ./install, which can be erroneously created by make from ./install.sh.
2360 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2361 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2362 if test -z "$INSTALL"; then
2363 if test "${ac_cv_path_install+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir
=.
2371 # Account for people who put trailing slashes in PATH elements.
2373 .
/ | .
// |
/cC
/* | \
2374 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2375 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2378 # OSF1 and SCO ODT 3.0 have their own names for install.
2379 # Don't use installbsd from OSF since it installs stuff as root
2381 for ac_prog
in ginstall scoinst
install; do
2382 for ac_exec_ext
in '' $ac_executable_extensions; do
2383 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2384 if test $ac_prog = install &&
2385 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2386 # AIX install. It has an incompatible calling convention.
2388 elif test $ac_prog = install &&
2389 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2390 # program-specific install script used by HP pwplus--don't use.
2393 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2405 if test "${ac_cv_path_install+set}" = set; then
2406 INSTALL
=$ac_cv_path_install
2408 # As a last resort, use the slow shell script. We don't cache a
2409 # path for INSTALL within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the path is relative.
2412 INSTALL
=$ac_install_sh
2415 echo "$as_me:$LINENO: result: $INSTALL" >&5
2416 echo "${ECHO_T}$INSTALL" >&6
2418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2419 # It thinks the first close brace ends the variable substitution.
2420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2424 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2427 test "$program_prefix" != NONE
&&
2428 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE
&&
2431 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
2432 # Double any \ or $. echo might interpret backslashes.
2433 # By default was `s,x,x', remove it if useless.
2434 cat <<\_ACEOF
>conftest.
sed
2435 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2437 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2443 ac_cpp
='$CPP $CPPFLAGS'
2444 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2447 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2448 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2449 # On Suns, sometimes $CPP names a directory.
2450 if test -n "$CPP" && test -d "$CPP"; then
2453 if test -z "$CPP"; then
2454 if test "${ac_cv_prog_CPP+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 # Double quotes because CPP needs to be expanded
2458 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2461 for ac_c_preproc_warn_flag
in '' yes
2463 # Use a header file that comes with gcc, so configuring glibc
2464 # with a fresh cross-compiler works.
2465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2466 # <limits.h> exists even on freestanding compilers.
2467 # On the NeXT, cc -E runs the code through the compiler's parser,
2468 # not just through cpp. "Syntax error" is here to catch this case.
2469 cat >conftest.
$ac_ext <<_ACEOF
2472 cat confdefs.h
>>conftest.
$ac_ext
2473 cat >>conftest.
$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2476 # include <limits.h>
2478 # include <assert.h>
2482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2485 grep -v '^ *+' conftest.er1
>conftest.err
2487 cat conftest.err
>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } >/dev
/null
; then
2490 if test -s conftest.err
; then
2491 ac_cpp_err
=$ac_c_preproc_warn_flag
2492 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2499 if test -z "$ac_cpp_err"; then
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.
$ac_ext >&5
2505 # Broken: fails on valid input.
2508 rm -f conftest.err conftest.
$ac_ext
2510 # OK, works on sane cases. Now check whether non-existent headers
2511 # can be detected and how.
2512 cat >conftest.
$ac_ext <<_ACEOF
2515 cat confdefs.h
>>conftest.
$ac_ext
2516 cat >>conftest.
$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2518 #include <ac_nonexistent.h>
2520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1
>conftest.err
2525 cat conftest.err
>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } >/dev
/null
; then
2528 if test -s conftest.err
; then
2529 ac_cpp_err
=$ac_c_preproc_warn_flag
2530 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2537 if test -z "$ac_cpp_err"; then
2538 # Broken: success on invalid input.
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.
$ac_ext >&5
2544 # Passes both tests.
2548 rm -f conftest.err conftest.
$ac_ext
2551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2552 rm -f conftest.err conftest.
$ac_ext
2553 if $ac_preproc_ok; then
2565 echo "$as_me:$LINENO: result: $CPP" >&5
2566 echo "${ECHO_T}$CPP" >&6
2568 for ac_c_preproc_warn_flag
in '' yes
2570 # Use a header file that comes with gcc, so configuring glibc
2571 # with a fresh cross-compiler works.
2572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2573 # <limits.h> exists even on freestanding compilers.
2574 # On the NeXT, cc -E runs the code through the compiler's parser,
2575 # not just through cpp. "Syntax error" is here to catch this case.
2576 cat >conftest.
$ac_ext <<_ACEOF
2579 cat confdefs.h
>>conftest.
$ac_ext
2580 cat >>conftest.
$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2583 # include <limits.h>
2585 # include <assert.h>
2589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2590 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2592 grep -v '^ *+' conftest.er1
>conftest.err
2594 cat conftest.err
>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } >/dev
/null
; then
2597 if test -s conftest.err
; then
2598 ac_cpp_err
=$ac_c_preproc_warn_flag
2599 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2606 if test -z "$ac_cpp_err"; then
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.
$ac_ext >&5
2612 # Broken: fails on valid input.
2615 rm -f conftest.err conftest.
$ac_ext
2617 # OK, works on sane cases. Now check whether non-existent headers
2618 # can be detected and how.
2619 cat >conftest.
$ac_ext <<_ACEOF
2622 cat confdefs.h
>>conftest.
$ac_ext
2623 cat >>conftest.
$ac_ext <<_ACEOF
2624 /* end confdefs.h. */
2625 #include <ac_nonexistent.h>
2627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2628 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2630 grep -v '^ *+' conftest.er1
>conftest.err
2632 cat conftest.err
>&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } >/dev
/null
; then
2635 if test -s conftest.err
; then
2636 ac_cpp_err
=$ac_c_preproc_warn_flag
2637 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2644 if test -z "$ac_cpp_err"; then
2645 # Broken: success on invalid input.
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.
$ac_ext >&5
2651 # Passes both tests.
2655 rm -f conftest.err conftest.
$ac_ext
2658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2659 rm -f conftest.err conftest.
$ac_ext
2660 if $ac_preproc_ok; then
2663 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2666 See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2671 ac_cpp
='$CPP $CPPFLAGS'
2672 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2677 echo "$as_me:$LINENO: checking for egrep" >&5
2678 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2679 if test "${ac_cv_prog_egrep+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2683 then ac_cv_prog_egrep
='grep -E'
2684 else ac_cv_prog_egrep
='egrep'
2687 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2688 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2689 EGREP
=$ac_cv_prog_egrep
2692 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2694 if test "${ac_cv_header_stdc+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 cat >conftest.
$ac_ext <<_ACEOF
2700 cat confdefs.h
>>conftest.
$ac_ext
2701 cat >>conftest.
$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2716 rm -f conftest.
$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2720 grep -v '^ *+' conftest.er1
>conftest.err
2722 cat conftest.err
>&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try
='test -z "$ac_c_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try
='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_header_stdc
=yes
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2743 ac_cv_header_stdc
=no
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 if test $ac_cv_header_stdc = yes; then
2748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2749 cat >conftest.
$ac_ext <<_ACEOF
2752 cat confdefs.h
>>conftest.
$ac_ext
2753 cat >>conftest.
$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 $EGREP "memchr" >/dev
/null
2>&1; then
2762 ac_cv_header_stdc
=no
2768 if test $ac_cv_header_stdc = yes; then
2769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2770 cat >conftest.
$ac_ext <<_ACEOF
2773 cat confdefs.h
>>conftest.
$ac_ext
2774 cat >>conftest.
$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2780 $EGREP "free" >/dev
/null
2>&1; then
2783 ac_cv_header_stdc
=no
2789 if test $ac_cv_header_stdc = yes; then
2790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2791 if test "$cross_compiling" = yes; then
2794 cat >conftest.
$ac_ext <<_ACEOF
2797 cat confdefs.h
>>conftest.
$ac_ext
2798 cat >>conftest.
$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2801 #if ((' ' & 0x0FF) == 0x020)
2802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2805 # define ISLOWER(c) \
2806 (('a' <= (c) && (c) <= 'i') \
2807 || ('j' <= (c) && (c) <= 'r') \
2808 || ('s' <= (c) && (c) <= 'z'))
2809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2817 for (i = 0; i < 256; i++)
2818 if (XOR (islower (i), ISLOWER (i))
2819 || toupper (i) != TOUPPER (i))
2824 rm -f conftest
$ac_exeext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2826 (eval $ac_link) 2>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2837 echo "$as_me: program exited with status $ac_status" >&5
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.
$ac_ext >&5
2842 ac_cv_header_stdc
=no
2844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2848 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2849 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2850 if test $ac_cv_header_stdc = yes; then
2852 cat >>confdefs.h
<<\_ACEOF
2853 #define STDC_HEADERS 1
2859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2869 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2870 inttypes.h stdint.h unistd.h
2872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2873 echo "$as_me:$LINENO: checking for $ac_header" >&5
2874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 $ac_includes_default
2886 #include <$ac_header>
2888 rm -f conftest.
$ac_objext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890 (eval $ac_compile) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1
>conftest.err
2894 cat conftest.err
>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try
='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try
='test -s conftest.$ac_objext'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; }; then
2910 eval "$as_ac_Header=yes"
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.
$ac_ext >&5
2915 eval "$as_ac_Header=no"
2917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2922 cat >>confdefs.h
<<_ACEOF
2923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2954 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
2956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2958 echo "$as_me:$LINENO: checking for $ac_header" >&5
2959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2966 # Is the header compilable?
2967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 $ac_includes_default
2976 #include <$ac_header>
2978 rm -f conftest.
$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2982 grep -v '^ *+' conftest.er1
>conftest.err
2984 cat conftest.err
>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try
='test -z "$ac_c_werror_flag"
2988 || test ! -s conftest.err'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try
='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_header_compiler
=yes
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.
$ac_ext >&5
3005 ac_header_compiler
=no
3007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3009 echo "${ECHO_T}$ac_header_compiler" >&6
3011 # Is the header present?
3012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3014 cat >conftest.
$ac_ext <<_ACEOF
3017 cat confdefs.h
>>conftest.
$ac_ext
3018 cat >>conftest.
$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <$ac_header>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1
>conftest.err
3027 cat conftest.err
>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev
/null
; then
3030 if test -s conftest.err
; then
3031 ac_cpp_err
=$ac_c_preproc_warn_flag
3032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3039 if test -z "$ac_cpp_err"; then
3040 ac_header_preproc
=yes
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.
$ac_ext >&5
3045 ac_header_preproc
=no
3047 rm -f conftest.err conftest.
$ac_ext
3048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3049 echo "${ECHO_T}$ac_header_preproc" >&6
3051 # So? What about this header?
3052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3058 ac_header_preproc
=yes
3061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3075 ## ------------------------------------------ ##
3076 ## Report this to the AC_PACKAGE_NAME lists. ##
3077 ## ------------------------------------------ ##
3080 sed "s/^/$as_me: WARNING: /" >&2
3083 echo "$as_me:$LINENO: checking for $ac_header" >&5
3084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 eval "$as_ac_Header=\$ac_header_preproc"
3090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3095 cat >>confdefs.h
<<_ACEOF
3096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3106 for ac_func
in pread pwrite pread64
3108 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3109 echo "$as_me:$LINENO: checking for $ac_func" >&5
3110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3111 if eval "test \"\${$as_ac_var+set}\" = set"; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 cat >conftest.
$ac_ext <<_ACEOF
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3122 #define $ac_func innocuous_$ac_func
3124 /* System header to define __stub macros and hopefully few prototypes,
3125 which can conflict with char $ac_func (); below.
3126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127 <limits.h> exists even on freestanding compilers. */
3130 # include <limits.h>
3132 # include <assert.h>
3137 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3145 /* The GNU C library defines this for functions which it implements
3146 to always fail with ENOSYS. Some functions are actually named
3147 something starting with __ and the normal name is an alias. */
3148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3151 char (*f) () = $ac_func;
3160 return f != $ac_func;
3165 rm -f conftest.
$ac_objext conftest
$ac_exeext
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>conftest.er1
3169 grep -v '^ *+' conftest.er1
>conftest.err
3171 cat conftest.err
>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try
='test -z "$ac_c_werror_flag"
3175 || test ! -s conftest.err'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try
='test -s conftest$ac_exeext'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 eval "$as_ac_var=yes"
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.
$ac_ext >&5
3192 eval "$as_ac_var=no"
3194 rm -f conftest.err conftest.
$ac_objext \
3195 conftest
$ac_exeext conftest.
$ac_ext
3197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3199 if test `eval echo '${'$as_ac_var'}'` = yes; then
3200 cat >>confdefs.h
<<_ACEOF
3201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3208 for ac_func
in memmem
3210 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3211 echo "$as_me:$LINENO: checking for $ac_func" >&5
3212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3213 if eval "test \"\${$as_ac_var+set}\" = set"; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 cat >conftest.
$ac_ext <<_ACEOF
3219 cat confdefs.h
>>conftest.
$ac_ext
3220 cat >>conftest.
$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3224 #define $ac_func innocuous_$ac_func
3226 /* System header to define __stub macros and hopefully few prototypes,
3227 which can conflict with char $ac_func (); below.
3228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3229 <limits.h> exists even on freestanding compilers. */
3232 # include <limits.h>
3234 # include <assert.h>
3239 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3247 /* The GNU C library defines this for functions which it implements
3248 to always fail with ENOSYS. Some functions are actually named
3249 something starting with __ and the normal name is an alias. */
3250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3253 char (*f) () = $ac_func;
3262 return f != $ac_func;
3267 rm -f conftest.
$ac_objext conftest
$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3271 grep -v '^ *+' conftest.er1
>conftest.err
3273 cat conftest.err
>&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try
='test -z "$ac_c_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try
='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 eval "$as_ac_var=yes"
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.
$ac_ext >&5
3294 eval "$as_ac_var=no"
3296 rm -f conftest.err conftest.
$ac_objext \
3297 conftest
$ac_exeext conftest.
$ac_ext
3299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3301 if test `eval echo '${'$as_ac_var'}'` = yes; then
3302 cat >>confdefs.h
<<_ACEOF
3303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3308 "$ac_func.$ac_objext" | \
3309 *" $ac_func.$ac_objext" | \
3310 "$ac_func.$ac_objext "* | \
3311 *" $ac_func.$ac_objext "* ) ;;
3312 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
3321 echo "$as_me:$LINENO: checking for errno" >&5
3322 echo $ECHO_N "checking for errno... $ECHO_C" >&6
3323 cat >conftest.
$ac_ext <<_ACEOF
3326 cat confdefs.h
>>conftest.
$ac_ext
3327 cat >>conftest.
$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3336 static int x; x = errno;
3341 rm -f conftest.
$ac_objext conftest
$ac_exeext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3343 (eval $ac_link) 2>conftest.er1
3345 grep -v '^ *+' conftest.er1
>conftest.err
3347 cat conftest.err
>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } &&
3350 { ac_try
='test -z "$ac_c_werror_flag"
3351 || test ! -s conftest.err'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try
='test -s conftest$ac_exeext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3364 echo "${ECHO_T}yes - in errno.h" >&6;
3365 cat >>confdefs.h
<<\_ACEOF
3366 #define HAVE_ERRNO 1
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.
$ac_ext >&5
3374 rm -f conftest.err conftest.
$ac_objext \
3375 conftest
$ac_exeext conftest.
$ac_ext
3376 if test $have_errno = no
; then
3377 cat >conftest.
$ac_ext <<_ACEOF
3380 cat confdefs.h
>>conftest.
$ac_ext
3381 cat >>conftest.
$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3390 extern int errno; static int x; x = errno;
3395 rm -f conftest.
$ac_objext conftest
$ac_exeext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397 (eval $ac_link) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try
='test -s conftest$ac_exeext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 echo "$as_me:$LINENO: result: yes - must define" >&5
3418 echo "${ECHO_T}yes - must define" >&6;
3419 cat >>confdefs.h
<<\_ACEOF
3420 #define HAVE_ERRNO 1
3423 cat >>confdefs.h
<<\_ACEOF
3424 #define MUST_DEFINE_ERRNO 1
3428 echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.
$ac_ext >&5
3431 echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3434 rm -f conftest.err conftest.
$ac_objext \
3435 conftest
$ac_exeext conftest.
$ac_ext
3438 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3439 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3440 if test "${ac_cv_have_decl_strerror+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 cat >conftest.
$ac_ext <<_ACEOF
3446 cat confdefs.h
>>conftest.
$ac_ext
3447 cat >>conftest.
$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3449 $ac_includes_default
3454 char *p = (char *) strerror;
3461 rm -f conftest.
$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>conftest.er1
3465 grep -v '^ *+' conftest.er1
>conftest.err
3467 cat conftest.err
>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try
='test -z "$ac_c_werror_flag"
3471 || test ! -s conftest.err'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; } &&
3477 { ac_try
='test -s conftest.$ac_objext'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_have_decl_strerror
=yes
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.
$ac_ext >&5
3488 ac_cv_have_decl_strerror
=no
3490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3492 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3493 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3494 if test $ac_cv_have_decl_strerror = yes; then
3496 cat >>confdefs.h
<<_ACEOF
3497 #define HAVE_DECL_STRERROR 1
3502 cat >>confdefs.h
<<_ACEOF
3503 #define HAVE_DECL_STRERROR 0
3508 echo "$as_me:$LINENO: checking whether perror is declared" >&5
3509 echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3510 if test "${ac_cv_have_decl_perror+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 cat >conftest.
$ac_ext <<_ACEOF
3516 cat confdefs.h
>>conftest.
$ac_ext
3517 cat >>conftest.
$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519 $ac_includes_default
3524 char *p = (char *) perror;
3531 rm -f conftest.
$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1
>conftest.err
3537 cat conftest.err
>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try
='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try
='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_cv_have_decl_perror
=yes
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.
$ac_ext >&5
3558 ac_cv_have_decl_perror
=no
3560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3562 echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3563 echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3564 if test $ac_cv_have_decl_perror = yes; then
3566 cat >>confdefs.h
<<_ACEOF
3567 #define HAVE_DECL_PERROR 1
3572 cat >>confdefs.h
<<_ACEOF
3573 #define HAVE_DECL_PERROR 0
3581 echo "$as_me:$LINENO: checking for socklen_t" >&5
3582 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3583 if test "${ac_cv_type_socklen_t+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 cat >conftest.
$ac_ext <<_ACEOF
3589 cat confdefs.h
>>conftest.
$ac_ext
3590 cat >>conftest.
$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #include <sys/types.h>
3593 #include <sys/socket.h>
3599 if ((socklen_t *) 0)
3601 if (sizeof (socklen_t))
3607 rm -f conftest.
$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1
>conftest.err
3613 cat conftest.err
>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try
='test -z "$ac_c_werror_flag"
3617 || test ! -s conftest.err'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; } &&
3623 { ac_try
='test -s conftest.$ac_objext'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3629 ac_cv_type_socklen_t
=yes
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.
$ac_ext >&5
3634 ac_cv_type_socklen_t
=no
3636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3639 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3640 if test $ac_cv_type_socklen_t = yes; then
3642 cat >>confdefs.h
<<_ACEOF
3643 #define HAVE_SOCKLEN_T 1
3650 .
${srcdir}/configure.srv
3652 if test "${srv_mingwce}" = "yes"; then
3654 elif test "${srv_mingw}" = "yes"; then
3655 LIBS
="$LIBS -lwsock32"
3658 if test "${srv_mingw}" = "yes"; then
3660 cat >>confdefs.h
<<\_ACEOF
3661 #define USE_WIN32API 1
3666 if test "${srv_linux_usrregs}" = "yes"; then
3668 cat >>confdefs.h
<<\_ACEOF
3669 #define HAVE_LINUX_USRREGS 1
3674 if test "${srv_linux_regsets}" = "yes"; then
3676 cat >>confdefs.h
<<\_ACEOF
3677 #define HAVE_LINUX_REGSETS 1
3681 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3682 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3683 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 cat >conftest.
$ac_ext <<_ACEOF
3689 cat confdefs.h
>>conftest.
$ac_ext
3690 cat >>conftest.
$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <sys/ptrace.h>
3701 rm -f conftest.
$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1
>conftest.err
3707 cat conftest.err
>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try
='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try
='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 gdbsrv_cv_have_ptrace_getregs
=yes
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.
$ac_ext >&5
3728 gdbsrv_cv_have_ptrace_getregs
=no
3730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3733 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3734 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3735 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3737 cat >>confdefs.h
<<\_ACEOF
3738 #define HAVE_PTRACE_GETREGS 1
3743 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3744 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3745 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 cat >conftest.
$ac_ext <<_ACEOF
3751 cat confdefs.h
>>conftest.
$ac_ext
3752 cat >>conftest.
$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 #include <sys/ptrace.h>
3763 rm -f conftest.
$ac_objext
3764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765 (eval $ac_compile) 2>conftest.er1
3767 grep -v '^ *+' conftest.er1
>conftest.err
3769 cat conftest.err
>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try
='test -z "$ac_c_werror_flag"
3773 || test ! -s conftest.err'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; } &&
3779 { ac_try
='test -s conftest.$ac_objext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 gdbsrv_cv_have_ptrace_getfpxregs
=yes
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.
$ac_ext >&5
3790 gdbsrv_cv_have_ptrace_getfpxregs
=no
3792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3795 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3796 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3797 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3799 cat >>confdefs.h
<<\_ACEOF
3800 #define HAVE_PTRACE_GETFPXREGS 1
3806 if test "$ac_cv_header_sys_procfs_h" = yes; then
3807 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3808 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3809 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3820 #include <sys/procfs.h>
3829 rm -f conftest.
$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831 (eval $ac_compile) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1
>conftest.err
3835 cat conftest.err
>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try
='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try
='test -s conftest.$ac_objext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.
$ac_ext >&5
3856 bfd_cv_have_sys_procfs_type_lwpid_t
=no
3859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3862 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3864 cat >>confdefs.h
<<\_ACEOF
3865 #define HAVE_LWPID_T 1
3869 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3870 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3872 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3873 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3874 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 cat >conftest.
$ac_ext <<_ACEOF
3880 cat confdefs.h
>>conftest.
$ac_ext
3881 cat >>conftest.
$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3885 #include <sys/procfs.h>
3894 rm -f conftest.
$ac_objext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3896 (eval $ac_compile) 2>conftest.er1
3898 grep -v '^ *+' conftest.er1
>conftest.err
3900 cat conftest.err
>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } &&
3903 { ac_try
='test -z "$ac_c_werror_flag"
3904 || test ! -s conftest.err'
3905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try
='test -s conftest.$ac_objext'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3916 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.
$ac_ext >&5
3921 bfd_cv_have_sys_procfs_type_psaddr_t
=no
3924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3927 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
3929 cat >>confdefs.h
<<\_ACEOF
3930 #define HAVE_PSADDR_T 1
3934 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3935 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
3937 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3938 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3939 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3950 #include <sys/procfs.h>
3959 rm -f conftest.
$ac_objext
3960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3961 (eval $ac_compile) 2>conftest.er1
3963 grep -v '^ *+' conftest.er1
>conftest.err
3965 cat conftest.err
>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try
='test -z "$ac_c_werror_flag"
3969 || test ! -s conftest.err'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try
='test -s conftest.$ac_objext'
3976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); }; }; then
3981 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 bfd_cv_have_sys_procfs_type_prgregset_t
=no
3989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3992 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
3994 cat >>confdefs.h
<<\_ACEOF
3995 #define HAVE_PRGREGSET_T 1
3999 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4000 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
4002 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
4003 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
4004 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.
$ac_ext <<_ACEOF
4010 cat confdefs.h
>>conftest.
$ac_ext
4011 cat >>conftest.
$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4015 #include <sys/procfs.h>
4024 rm -f conftest.
$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>conftest.er1
4028 grep -v '^ *+' conftest.er1
>conftest.err
4030 cat conftest.err
>&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } &&
4033 { ac_try
='test -z "$ac_c_werror_flag"
4034 || test ! -s conftest.err'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try
='test -s conftest.$ac_objext'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.
$ac_ext >&5
4051 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
4054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4057 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4059 cat >>confdefs.h
<<\_ACEOF
4060 #define HAVE_ELF_FPREGSET_T 1
4064 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4065 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
4069 srv_thread_depfiles
=
4073 if test "$srv_linux_thread_db" = "yes"; then
4074 echo "$as_me:$LINENO: checking for libthread_db" >&5
4075 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
4076 if test "${srv_cv_thread_db+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 LIBS
="$LIBS -lthread_db"
4081 cat >conftest.
$ac_ext <<_ACEOF
4084 cat confdefs.h
>>conftest.
$ac_ext
4085 cat >>conftest.
$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087 void ps_pglobal_lookup() {}
4089 void ps_pdwrite() {}
4090 void ps_lgetregs() {}
4091 void ps_lsetregs() {}
4092 void ps_lgetfpregs() {}
4093 void ps_lsetfpregs() {}
4094 void ps_get_thread_area() {}
4104 rm -f conftest.
$ac_objext conftest
$ac_exeext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4106 (eval $ac_link) 2>conftest.er1
4108 grep -v '^ *+' conftest.er1
>conftest.err
4110 cat conftest.err
>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try
='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try
='test -s conftest$ac_exeext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 srv_cv_thread_db
="-lthread_db"
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.
$ac_ext >&5
4133 if test "$prefix" = "/usr" ||
test "$prefix" = "NONE"; then
4134 thread_db
="/lib/libthread_db.so.1"
4136 thread_db
='$prefix/lib/libthread_db.so.1'
4138 LIBS
="$old_LIBS `eval echo "$thread_db"`"
4139 cat >conftest.
$ac_ext <<_ACEOF
4142 cat confdefs.h
>>conftest.
$ac_ext
4143 cat >>conftest.
$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 void ps_pglobal_lookup() {}
4147 void ps_pdwrite() {}
4148 void ps_lgetregs() {}
4149 void ps_lsetregs() {}
4150 void ps_lgetfpregs() {}
4151 void ps_lsetfpregs() {}
4152 void ps_get_thread_area() {}
4162 rm -f conftest.
$ac_objext conftest
$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>conftest.er1
4166 grep -v '^ *+' conftest.er1
>conftest.err
4168 cat conftest.err
>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try
='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try
='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 srv_cv_thread_db
="$thread_db"
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.
$ac_ext >&5
4191 rm -f conftest.err conftest.
$ac_objext \
4192 conftest
$ac_exeext conftest.
$ac_ext
4195 rm -f conftest.err conftest.
$ac_objext \
4196 conftest
$ac_exeext conftest.
$ac_ext
4200 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4201 echo "${ECHO_T}$srv_cv_thread_db" >&6
4202 if test "$srv_cv_thread_db" = no
; then
4203 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4204 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4205 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4206 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4207 srv_linux_thread_db
=no
4209 srv_libs
="$srv_cv_thread_db"
4210 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4211 echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4212 if test "${srv_cv_tls_get_addr+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 LIBS
="$LIBS $srv_cv_thread_db"
4217 cat >conftest.
$ac_ext <<_ACEOF
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 void ps_pglobal_lookup() {}
4225 void ps_pdwrite() {}
4226 void ps_lgetregs() {}
4227 void ps_lsetregs() {}
4228 void ps_lgetfpregs() {}
4229 void ps_lsetfpregs() {}
4230 void ps_get_thread_area() {}
4235 td_thr_tls_get_addr();
4240 rm -f conftest.
$ac_objext conftest
$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1
>conftest.err
4246 cat conftest.err
>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try
='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try
='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 srv_cv_tls_get_addr
=yes
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.
$ac_ext >&5
4267 srv_cv_tls_get_addr
=no
4269 rm -f conftest.err conftest.
$ac_objext \
4270 conftest
$ac_exeext conftest.
$ac_ext
4274 echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4275 echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
4277 old_LDFLAGS
="$LDFLAGS"
4278 LDFLAGS
="$LDFLAGS -rdynamic"
4279 cat >conftest.
$ac_ext <<_ACEOF
4282 cat confdefs.h
>>conftest.
$ac_ext
4283 cat >>conftest.
$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4294 rm -f conftest.
$ac_objext conftest
$ac_exeext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296 (eval $ac_link) 2>conftest.er1
4298 grep -v '^ *+' conftest.er1
>conftest.err
4300 cat conftest.err
>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try
='test -z "$ac_c_werror_flag"
4304 || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try
='test -s conftest$ac_exeext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.
$ac_ext >&5
4323 rm -f conftest.err conftest.
$ac_objext \
4324 conftest
$ac_exeext conftest.
$ac_ext
4326 LDFLAGS
="$old_LDFLAGS"
4329 if test "$srv_linux_thread_db" = "yes"; then
4330 srv_thread_depfiles
="thread-db.o proc-service.o"
4331 USE_THREAD_DB
="-DUSE_THREAD_DB"
4332 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4333 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
4334 if test "${gdbsrv_cv_have_td_version+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 cat >conftest.
$ac_ext <<_ACEOF
4340 cat confdefs.h
>>conftest.
$ac_ext
4341 cat >>conftest.
$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #include <thread_db.h>
4352 rm -f conftest.
$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354 (eval $ac_compile) 2>conftest.er1
4356 grep -v '^ *+' conftest.er1
>conftest.err
4358 cat conftest.err
>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try
='test -z "$ac_c_werror_flag"
4362 || test ! -s conftest.err'
4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; } &&
4368 { ac_try
='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 gdbsrv_cv_have_td_version
=yes
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.
$ac_ext >&5
4379 gdbsrv_cv_have_td_version
=no
4381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4383 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4384 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
4385 if test $gdbsrv_cv_have_td_version = yes; then
4387 cat >>confdefs.h
<<\_ACEOF
4388 #define HAVE_TD_VERSION 1
4393 if test "$srv_cv_tls_get_addr" = yes; then
4395 cat >>confdefs.h
<<\_ACEOF
4396 #define HAVE_TD_THR_TLS_GET_ADDR 1
4402 if test "$srv_xmlfiles" != ""; then
4403 srv_xmlbuiltin
="xml-builtin.o"
4405 cat >>confdefs.h
<<\_ACEOF
4410 tmp_xmlfiles
=$srv_xmlfiles
4412 for f
in $tmp_xmlfiles; do
4413 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
4417 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4418 GDBSERVER_LIBS
="$srv_libs"
4426 ac_config_files
="$ac_config_files Makefile"
4427 ac_config_commands
="$ac_config_commands default"
4428 cat >confcache
<<\_ACEOF
4429 # This file is a shell script that caches the results of configure
4430 # tests run on this system so they can be shared between configure
4431 # scripts and configure runs, see configure's option --config-cache.
4432 # It is not useful on other systems. If it contains results you don't
4433 # want to keep, you may remove or edit it.
4435 # config.status only pays attention to the cache file if you give it
4436 # the --recheck option to rerun configure.
4438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4444 # The following way of writing the cache mishandles newlines in values,
4445 # but we know of no workaround that is simple, portable, and efficient.
4446 # So, don't put newlines in cache variables' values.
4447 # Ultrix sh set writes to stderr and can't be redirected directly,
4448 # and sets the high bit in the cache file unless we assign to the vars.
4451 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4453 # `set' does not quote correctly, so add quotes (double-quote
4454 # substitution turns \\\\ into \\, and sed turns \\ into \).
4457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4460 # `set' quotes correctly as required by POSIX, so do not add quotes.
4462 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4469 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4471 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4473 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4474 if test -w $cache_file; then
4475 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4476 cat confcache
>$cache_file
4478 echo "not updating unwritable cache $cache_file"
4483 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4484 # Let make expand exec_prefix.
4485 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4487 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4488 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4489 # trailing colons and then remove the whole line if VPATH becomes empty
4490 # (actually we leave an empty line to preserve line numbers).
4491 if test "x$srcdir" = x.
; then
4492 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4493 s/:*\$(srcdir):*/:/;
4494 s/:*\${srcdir}:*/:/;
4496 s/^\([^=]*=[ ]*\):*/\1/;
4502 DEFS
=-DHAVE_CONFIG_H
4506 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4507 # 1. Remove the extension, and $U if already installed.
4508 ac_i
=`echo "$ac_i" |
4509 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4511 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4512 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4516 LTLIBOBJS
=$ac_ltlibobjs
4520 : ${CONFIG_STATUS=./config.status}
4521 ac_clean_files_save
=$ac_clean_files
4522 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4523 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4525 cat >$CONFIG_STATUS <<_ACEOF
4527 # Generated by $as_me.
4528 # Run this file to recreate the current configuration.
4529 # Compiler output produced by configure, useful for debugging
4530 # configure, is in config.log if it exists.
4535 SHELL=\${CONFIG_SHELL-$SHELL}
4538 cat >>$CONFIG_STATUS <<\_ACEOF
4539 ## --------------------- ##
4540 ## M4sh Initialization. ##
4541 ## --------------------- ##
4543 # Be Bourne compatible
4544 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4547 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4548 # is contrary to our usage. Disable this feature.
4549 alias -g '${1+"$@"}'='"$@"'
4550 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4553 DUALCASE
=1; export DUALCASE
# for MKS sh
4555 # Support unset when possible.
4556 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4563 # Work around bugs in pre-3.0 UWIN ksh.
4564 $as_unset ENV MAIL MAILPATH
4571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4573 LC_TELEPHONE LC_TIME
4575 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4576 eval $as_var=C
; export $as_var
4582 # Required to use basename.
4583 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4589 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4590 as_basename
=basename
4596 # Name of the executable.
4597 as_me
=`$as_basename "$0" ||
4598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4599 X"$0" : 'X\(//\)$' \| \
4600 X"$0" : 'X\(/\)$' \| \
4601 . : '\(.\)' 2>/dev/null ||
4603 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4604 /^X\/\(\/\/\)$/{ s//\1/; q; }
4605 /^X\/\(\/\).*/{ s//\1/; q; }
4609 # PATH needs CR, and LINENO needs CR and PATH.
4610 # Avoid depending upon Character Ranges.
4611 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4612 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4613 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4614 as_cr_digits
='0123456789'
4615 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4617 # The user is always right.
4618 if test "${PATH_SEPARATOR+set}" != set; then
4619 echo "#! /bin/sh" >conf$$.sh
4620 echo "exit 0" >>conf$$.sh
4622 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4633 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4634 test "x$as_lineno_1" != "x$as_lineno_2" &&
4635 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4636 # Find who we are. Look in the path if we contain no path at all
4639 *[\\/]* ) as_myself
=$0 ;;
4640 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4650 # We did not find ourselves, most probably we were run as `sh COMMAND'
4651 # in which case we are not to be found in the path.
4652 if test "x$as_myself" = x
; then
4655 if test ! -f "$as_myself"; then
4656 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4657 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4658 { (exit 1); exit 1; }; }
4660 case $CONFIG_SHELL in
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4663 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4666 test -z "$as_dir" && as_dir
=.
4667 for as_base
in sh bash ksh sh5
; do
4670 if ("$as_dir/$as_base" -c '
4673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4674 test "x$as_lineno_1" != "x$as_lineno_2" &&
4675 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4676 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4677 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4678 CONFIG_SHELL
=$as_dir/$as_base
4680 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4689 # uniformly replaced by the line number. The first 'sed' inserts a
4690 # line-number line before each line; the second 'sed' does the real
4691 # work. The second script uses 'N' to pair each line-number line
4692 # with the numbered line, and appends trailing '-' during
4693 # substitution so that $LINENO is not a special case at line end.
4694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4695 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4696 sed '=' <$as_myself |
4701 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4704 s,^['$as_cr_digits']*\n,,
4706 chmod +x
$as_me.lineno ||
4707 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4708 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4709 { (exit 1); exit 1; }; }
4711 # Don't try to exec as it changes $[0], causing all sort of problems
4712 # (the dirname of $[0] is not the place where we might find the
4713 # original and so on. Autoconf is especially sensible to this).
4715 # Exit status is that of the last command.
4720 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4721 *c
*,-n*) ECHO_N
= ECHO_C
='
4723 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4724 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4727 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4733 rm -f conf$$ conf$$.exe conf$$.
file
4735 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4736 # We could just check for DJGPP; but this test a) works b) is more generic
4737 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4738 if test -f conf$$.exe
; then
4739 # Don't use ln at all; we don't have any links
4744 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4749 rm -f conf$$ conf$$.exe conf$$.
file
4751 if mkdir
-p .
2>/dev
/null
; then
4754 test -d .
/-p && rmdir .
/-p
4758 as_executable_p
="test -f"
4760 # Sed expression to map a string onto a valid CPP name.
4761 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4763 # Sed expression to map a string onto a valid variable name.
4764 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4768 # We need space, tab and new line, in precisely that order.
4778 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4779 # report actual input values of CONFIG_FILES etc. instead of their
4780 # values after options handling. Logging --version etc. is OK.
4784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4785 ## Running $as_me. ##
4790 This file was extended by $as_me, which was
4791 generated by GNU Autoconf 2.59. Invocation command line was
4793 CONFIG_FILES = $CONFIG_FILES
4794 CONFIG_HEADERS = $CONFIG_HEADERS
4795 CONFIG_LINKS = $CONFIG_LINKS
4796 CONFIG_COMMANDS = $CONFIG_COMMANDS
4800 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4804 # Files that config.status was made for.
4805 if test -n "$ac_config_files"; then
4806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4809 if test -n "$ac_config_headers"; then
4810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4813 if test -n "$ac_config_links"; then
4814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4817 if test -n "$ac_config_commands"; then
4818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4821 cat >>$CONFIG_STATUS <<\_ACEOF
4824 \`$as_me' instantiates files from templates according to the
4825 current configuration.
4827 Usage: $0 [OPTIONS] [FILE]...
4829 -h, --help print this help, then exit
4830 -V, --version print version number, then exit
4831 -q, --quiet do not print progress messages
4832 -d, --debug don't remove temporary files
4833 --recheck update $as_me by reconfiguring in the same conditions
4834 --file=FILE[:TEMPLATE]
4835 instantiate the configuration file FILE
4836 --header=FILE[:TEMPLATE]
4837 instantiate the configuration header FILE
4839 Configuration files:
4842 Configuration headers:
4845 Configuration commands:
4848 Report bugs to <bug-autoconf@gnu.org>."
4851 cat >>$CONFIG_STATUS <<_ACEOF
4854 configured by $0, generated by GNU Autoconf 2.59,
4855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4857 Copyright (C) 2003 Free Software Foundation, Inc.
4858 This config.status script is free software; the Free Software Foundation
4859 gives unlimited permission to copy, distribute and modify it."
4864 cat >>$CONFIG_STATUS <<\_ACEOF
4865 # If no file are specified by the user, then we need to provide default
4866 # value. By we need to know if files were specified by the user.
4872 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4873 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4881 *) # This is not an option, so the user has probably given explicit
4884 ac_need_defaults
=false
;;
4888 # Handling of the options.
4890 cat >>$CONFIG_STATUS <<\_ACEOF
4891 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4893 --version |
--vers* |
-V )
4894 echo "$ac_cs_version"; exit 0 ;;
4896 # Conflict between --help and --header
4897 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4898 Try \`$0 --help' for more information." >&5
4899 echo "$as_me: error: ambiguous option: $1
4900 Try \`$0 --help' for more information." >&2;}
4901 { (exit 1); exit 1; }; };;
4902 --help |
--hel |
-h )
4903 echo "$ac_cs_usage"; exit 0 ;;
4904 --debug |
--d* |
-d )
4906 --file |
--fil |
--fi |
--f )
4908 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4909 ac_need_defaults
=false
;;
4910 --header |
--heade |
--head |
--hea )
4912 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4913 ac_need_defaults
=false
;;
4914 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4915 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4919 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4920 Try \`$0 --help' for more information." >&5
4921 echo "$as_me: error: unrecognized option: $1
4922 Try \`$0 --help' for more information." >&2;}
4923 { (exit 1); exit 1; }; } ;;
4925 *) ac_config_targets
="$ac_config_targets $1" ;;
4931 ac_configure_extra_args
=
4933 if $ac_cs_silent; then
4935 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4939 cat >>$CONFIG_STATUS <<_ACEOF
4940 if \$ac_cs_recheck; then
4941 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4942 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4951 cat >>$CONFIG_STATUS <<\_ACEOF
4952 for ac_config_target
in $ac_config_targets
4954 case "$ac_config_target" in
4955 # Handling of arguments.
4956 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4957 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
4958 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
4959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4961 { (exit 1); exit 1; }; };;
4965 # If the user did not use the arguments to specify the items to instantiate,
4966 # then the envvar interface is used. Set only those that are not.
4967 # We use the long form for the default assignment because of an extremely
4968 # bizarre bug on SunOS 4.1.3.
4969 if $ac_need_defaults; then
4970 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4971 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4972 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
4975 # Have a temporary directory for convenience. Make it in the build tree
4976 # simply because there is no reason to put it here, and in addition,
4977 # creating and moving files from /tmp can sometimes cause problems.
4978 # Create a temporary directory, and hook for its removal unless debugging.
4981 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4982 trap '{ (exit 1); exit 1; }' 1 2 13 15
4985 # Create a (secure) tmp directory for tmp files.
4988 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4989 test -n "$tmp" && test -d "$tmp"
4992 tmp
=.
/confstat$$
-$RANDOM
4993 (umask 077 && mkdir
$tmp)
4996 echo "$me: cannot create a temporary directory in ." >&2
4997 { (exit 1); exit 1; }
5002 cat >>$CONFIG_STATUS <<_ACEOF
5005 # CONFIG_FILES section.
5008 # No need to generate the scripts if there are no CONFIG_FILES.
5009 # This happens for instance when ./config.status config.h
5010 if test -n "\$CONFIG_FILES"; then
5011 # Protect against being on the right side of a sed subst in config.status.
5012 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5013 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5014 s,@SHELL@,$SHELL,;t t
5015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5021 s,@exec_prefix@,$exec_prefix,;t t
5022 s,@prefix@,$prefix,;t t
5023 s,@program_transform_name@,$program_transform_name,;t t
5024 s,@bindir@,$bindir,;t t
5025 s,@sbindir@,$sbindir,;t t
5026 s,@libexecdir@,$libexecdir,;t t
5027 s,@datadir@,$datadir,;t t
5028 s,@sysconfdir@,$sysconfdir,;t t
5029 s,@sharedstatedir@,$sharedstatedir,;t t
5030 s,@localstatedir@,$localstatedir,;t t
5031 s,@libdir@,$libdir,;t t
5032 s,@includedir@,$includedir,;t t
5033 s,@oldincludedir@,$oldincludedir,;t t
5034 s,@infodir@,$infodir,;t t
5035 s,@mandir@,$mandir,;t t
5036 s,@build_alias@,$build_alias,;t t
5037 s,@host_alias@,$host_alias,;t t
5038 s,@target_alias@,$target_alias,;t t
5040 s,@ECHO_C@,$ECHO_C,;t t
5041 s,@ECHO_N@,$ECHO_N,;t t
5042 s,@ECHO_T@,$ECHO_T,;t t
5045 s,@CFLAGS@,$CFLAGS,;t t
5046 s,@LDFLAGS@,$LDFLAGS,;t t
5047 s,@CPPFLAGS@,$CPPFLAGS,;t t
5048 s,@ac_ct_CC@,$ac_ct_CC,;t t
5049 s,@EXEEXT@,$EXEEXT,;t t
5050 s,@OBJEXT@,$OBJEXT,;t t
5051 s,@build@,$build,;t t
5052 s,@build_cpu@,$build_cpu,;t t
5053 s,@build_vendor@,$build_vendor,;t t
5054 s,@build_os@,$build_os,;t t
5056 s,@host_cpu@,$host_cpu,;t t
5057 s,@host_vendor@,$host_vendor,;t t
5058 s,@host_os@,$host_os,;t t
5059 s,@target@,$target,;t t
5060 s,@target_cpu@,$target_cpu,;t t
5061 s,@target_vendor@,$target_vendor,;t t
5062 s,@target_os@,$target_os,;t t
5063 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5064 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5065 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5067 s,@EGREP@,$EGREP,;t t
5068 s,@LIBOBJS@,$LIBOBJS,;t t
5069 s,@RDYNAMIC@,$RDYNAMIC,;t t
5070 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
5071 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
5072 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
5073 s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
5074 s,@srv_xmlfiles@,$srv_xmlfiles,;t t
5075 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5080 cat >>$CONFIG_STATUS <<\_ACEOF
5081 # Split the substitutions into bite-sized pieces for seds with
5082 # small command number limits, like on Digital OSF/1 and HP-UX.
5084 ac_sed_frag
=1 # Number of current file.
5085 ac_beg
=1 # First line for current file.
5086 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5089 while $ac_more_lines; do
5090 if test $ac_beg -gt 1; then
5091 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5093 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5095 if test ! -s $tmp/subs.frag
; then
5098 # The purpose of the label and of the branching condition is to
5099 # speed up the sed processing (if there are no `@' at all, there
5100 # is no need to browse any of the substitutions).
5101 # These are the two extra sed commands mentioned above.
5103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5104 if test -z "$ac_sed_cmds"; then
5105 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5107 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5109 ac_sed_frag
=`expr $ac_sed_frag + 1`
5111 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5114 if test -z "$ac_sed_cmds"; then
5117 fi # test -n "$CONFIG_FILES"
5120 cat >>$CONFIG_STATUS <<\_ACEOF
5121 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5124 - |
*:- |
*:-:* ) # input from stdin
5126 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5127 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5128 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5129 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5130 * ) ac_file_in
=$ac_file.
in ;;
5133 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5134 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5136 X"$ac_file" : 'X\(//\)[^/]' \| \
5137 X"$ac_file" : 'X\(//\)$' \| \
5138 X"$ac_file" : 'X\(/\)' \| \
5139 . : '\(.\)' 2>/dev/null ||
5141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5143 /^X\(\/\/\)$/{ s//\1/; q; }
5144 /^X\(\/\).*/{ s//\1/; q; }
5146 { if $as_mkdir_p; then
5151 while test ! -d "$as_dir"; do
5152 as_dirs
="$as_dir $as_dirs"
5153 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5155 X"$as_dir" : 'X\(//\)[^/]' \| \
5156 X"$as_dir" : 'X\(//\)$' \| \
5157 X"$as_dir" : 'X\(/\)' \| \
5158 . : '\(.\)' 2>/dev/null ||
5160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5162 /^X\(\/\/\)$/{ s//\1/; q; }
5163 /^X\(\/\).*/{ s//\1/; q; }
5166 test ! -n "$as_dirs" || mkdir
$as_dirs
5167 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5169 { (exit 1); exit 1; }; }; }
5173 if test "$ac_dir" != .
; then
5174 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5175 # A "../" for each directory in $ac_dir_suffix.
5176 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5178 ac_dir_suffix
= ac_top_builddir
=
5182 .
) # No --srcdir option. We are building in place.
5184 if test -z "$ac_top_builddir"; then
5187 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5189 [\\/]* | ?
:[\\/]* ) # Absolute path.
5190 ac_srcdir
=$srcdir$ac_dir_suffix;
5191 ac_top_srcdir
=$srcdir ;;
5193 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5194 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5197 # Do not use `cd foo && pwd` to compute absolute paths, because
5198 # the directories may not exist.
5200 .
) ac_abs_builddir
="$ac_dir";;
5203 .
) ac_abs_builddir
=`pwd`;;
5204 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5205 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5208 case $ac_abs_builddir in
5209 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5211 case ${ac_top_builddir}.
in
5212 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5213 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5214 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5217 case $ac_abs_builddir in
5218 .
) ac_abs_srcdir
=$ac_srcdir;;
5221 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5222 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5223 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5226 case $ac_abs_builddir in
5227 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5229 case $ac_top_srcdir in
5230 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5231 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5232 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5238 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5239 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5242 if test x
"$ac_file" != x-
; then
5243 { echo "$as_me:$LINENO: creating $ac_file" >&5
5244 echo "$as_me: creating $ac_file" >&6;}
5247 # Let's still pretend it is `configure' which instantiates (i.e., don't
5248 # use $as_me), people would be surprised to read:
5249 # /* config.h. Generated by config.status. */
5250 if test x
"$ac_file" = x-
; then
5253 configure_input
="$ac_file. "
5255 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5256 sed 's,.*/,,'` by configure."
5258 # First look for the input files in the build tree, otherwise in the
5260 ac_file_inputs
=`IFS=:
5261 for f in $ac_file_in; do
5263 -) echo $tmp/stdin ;;
5265 # Absolute (can't be DOS-style, as IFS=:)
5266 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5267 echo "$as_me: error: cannot find input file: $f" >&2;}
5268 { (exit 1); exit 1; }; }
5271 if test -f "$f"; then
5274 elif test -f "$srcdir/$f"; then
5279 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5280 echo "$as_me: error: cannot find input file: $f" >&2;}
5281 { (exit 1); exit 1; }; }
5284 done` ||
{ (exit 1); exit 1; }
5286 cat >>$CONFIG_STATUS <<_ACEOF
5290 cat >>$CONFIG_STATUS <<\_ACEOF
5292 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5293 s
,@configure_input@
,$configure_input,;t t
5294 s
,@srcdir@
,$ac_srcdir,;t t
5295 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5296 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5297 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5298 s
,@builddir@
,$ac_builddir,;t t
5299 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5300 s
,@top_builddir@
,$ac_top_builddir,;t t
5301 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5302 s
,@INSTALL@
,$ac_INSTALL,;t t
5303 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5305 if test x"$ac_file" != x-; then
5306 mv $tmp/out $ac_file
5314 cat >>$CONFIG_STATUS <<\_ACEOF
5317 # CONFIG_HEADER section.
5320 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5321 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5323 # ac_d sets the value in "#define NAME VALUE" lines.
5324 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5325 ac_dB
='[ ].*$,\1#\2'
5328 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5329 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5330 ac_uB
='$,\1#\2define\3'
5334 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5337 - |
*:- |
*:-:* ) # input from stdin
5339 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5340 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5341 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5342 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5343 * ) ac_file_in
=$ac_file.
in ;;
5346 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5347 echo "$as_me: creating $ac_file" >&6;}
5349 # First look for the input files in the build tree, otherwise in the
5351 ac_file_inputs
=`IFS=:
5352 for f in $ac_file_in; do
5354 -) echo $tmp/stdin ;;
5356 # Absolute (can't be DOS-style, as IFS=:)
5357 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5358 echo "$as_me: error: cannot find input file: $f" >&2;}
5359 { (exit 1); exit 1; }; }
5360 # Do quote $f, to prevent DOS paths from being IFS'd.
5363 if test -f "$f"; then
5366 elif test -f "$srcdir/$f"; then
5371 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5372 echo "$as_me: error: cannot find input file: $f" >&2;}
5373 { (exit 1); exit 1; }; }
5376 done` ||
{ (exit 1); exit 1; }
5377 # Remove the trailing spaces.
5378 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5382 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5383 # `conftest.undefs', that substitutes the proper values into
5384 # config.h.in to produce config.h. The first handles `#define'
5385 # templates, and the second `#undef' templates.
5386 # And first: Protect against being on the right side of a sed subst in
5387 # config.status. Protect against being in an unquoted here document
5389 rm -f conftest.defines conftest.undefs
5390 # Using a here document instead of a string reduces the quoting nightmare.
5391 # Putting comments in sed scripts is not portable.
5393 # `end' is used to avoid that the second main sed command (meant for
5394 # 0-ary CPP macros) applies to n-ary macro definitions.
5395 # See the Autoconf documentation for `clear'.
5396 cat >confdef2sed.
sed <<\_ACEOF
5401 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5403 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5406 # If some macros were called several times there might be several times
5407 # the same #defines, which is useless. Nevertheless, we may not want to
5408 # sort them, since we want the *last* AC-DEFINE to be honored.
5409 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5410 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5411 rm -f confdef2sed.sed
5413 # This sed command replaces #undef with comments. This is necessary, for
5414 # example, in the case of _POSIX_SOURCE, which is predefined and required
5415 # on some systems where configure will not decide to define it.
5416 cat >>conftest.undefs <<\_ACEOF
5417 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5420 # Break up conftest.defines because some shells have a limit on the size
5421 # of here documents, and old seds have small limits too (100 cmds).
5422 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5423 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5424 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5425 echo ' :' >>$CONFIG_STATUS
5427 while grep . conftest.defines >/dev/null
5429 # Write a limited-size here document to $tmp/defines.sed.
5430 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5431 # Speed up: don't consider the non `#define' lines.
5432 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5433 # Work around the forget-to-reset-the-flag bug.
5434 echo 't clr' >>$CONFIG_STATUS
5435 echo ': clr' >>$CONFIG_STATUS
5436 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5438 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5442 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5443 rm -f conftest.defines
5444 mv conftest.
tail conftest.defines
5446 rm -f conftest.defines
5447 echo ' fi # grep' >>$CONFIG_STATUS
5448 echo >>$CONFIG_STATUS
5450 # Break up conftest.undefs because some shells have a limit on the size
5451 # of here documents, and old seds have small limits too (100 cmds).
5452 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5454 while grep . conftest.undefs
>/dev
/null
5456 # Write a limited-size here document to $tmp/undefs.sed.
5457 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5458 # Speed up: don't consider the non
`#undef'
5459 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5460 # Work around the forget-to-reset-the-flag bug.
5461 echo 't clr' >>$CONFIG_STATUS
5462 echo ': clr' >>$CONFIG_STATUS
5463 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5465 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5469 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5470 rm -f conftest.undefs
5471 mv conftest.tail conftest.undefs
5473 rm -f conftest.undefs
5475 cat >>$CONFIG_STATUS <<\_ACEOF
5476 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5477 # use $as_me), people would be surprised to read:
5478 # /* config.h. Generated by config.status. */
5479 if test x
"$ac_file" = x-
; then
5480 echo "/* Generated by configure. */" >$tmp/config.h
5482 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5484 cat $tmp/in >>$tmp/config.h
5486 if test x
"$ac_file" != x-
; then
5487 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5488 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5489 echo "$as_me: $ac_file is unchanged" >&6;}
5491 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5493 X"$ac_file" : 'X\(//\)[^/]' \| \
5494 X"$ac_file" : 'X\(//\)$' \| \
5495 X"$ac_file" : 'X\(/\)' \| \
5496 . : '\(.\)' 2>/dev/null ||
5498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5500 /^X\(\/\/\)$/{ s//\1/; q; }
5501 /^X\(\/\).*/{ s//\1/; q; }
5503 { if $as_mkdir_p; then
5508 while test ! -d "$as_dir"; do
5509 as_dirs
="$as_dir $as_dirs"
5510 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5512 X"$as_dir" : 'X\(//\)[^/]' \| \
5513 X"$as_dir" : 'X\(//\)$' \| \
5514 X"$as_dir" : 'X\(/\)' \| \
5515 . : '\(.\)' 2>/dev/null ||
5517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5519 /^X\(\/\/\)$/{ s//\1/; q; }
5520 /^X\(\/\).*/{ s//\1/; q; }
5523 test ! -n "$as_dirs" || mkdir
$as_dirs
5524 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5525 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5526 { (exit 1); exit 1; }; }; }
5529 mv $tmp/config.h
$ac_file
5537 cat >>$CONFIG_STATUS <<\_ACEOF
5540 # CONFIG_COMMANDS section.
5542 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5543 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5544 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5545 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5546 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5547 X"$ac_dest" : 'X\(//\)[^/]' \| \
5548 X"$ac_dest" : 'X\(//\)$' \| \
5549 X"$ac_dest" : 'X\(/\)' \| \
5550 . : '\(.\)' 2>/dev/null ||
5552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5554 /^X\(\/\/\)$/{ s//\1/; q; }
5555 /^X\(\/\).*/{ s//\1/; q; }
5557 { if $as_mkdir_p; then
5562 while test ! -d "$as_dir"; do
5563 as_dirs
="$as_dir $as_dirs"
5564 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5566 X"$as_dir" : 'X\(//\)[^/]' \| \
5567 X"$as_dir" : 'X\(//\)$' \| \
5568 X"$as_dir" : 'X\(/\)' \| \
5569 . : '\(.\)' 2>/dev/null ||
5571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5573 /^X\(\/\/\)$/{ s//\1/; q; }
5574 /^X\(\/\).*/{ s//\1/; q; }
5577 test ! -n "$as_dirs" || mkdir
$as_dirs
5578 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5579 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5580 { (exit 1); exit 1; }; }; }
5584 if test "$ac_dir" != .
; then
5585 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5586 # A "../" for each directory in $ac_dir_suffix.
5587 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5589 ac_dir_suffix
= ac_top_builddir
=
5593 .
) # No --srcdir option. We are building in place.
5595 if test -z "$ac_top_builddir"; then
5598 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5600 [\\/]* | ?
:[\\/]* ) # Absolute path.
5601 ac_srcdir
=$srcdir$ac_dir_suffix;
5602 ac_top_srcdir
=$srcdir ;;
5604 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5605 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5608 # Do not use `cd foo && pwd` to compute absolute paths, because
5609 # the directories may not exist.
5611 .
) ac_abs_builddir
="$ac_dir";;
5614 .
) ac_abs_builddir
=`pwd`;;
5615 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5616 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5619 case $ac_abs_builddir in
5620 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5622 case ${ac_top_builddir}.
in
5623 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5624 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5625 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5628 case $ac_abs_builddir in
5629 .
) ac_abs_srcdir
=$ac_srcdir;;
5632 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5633 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5634 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5637 case $ac_abs_builddir in
5638 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5640 case $ac_top_srcdir in
5641 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5642 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5643 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5648 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5649 echo "$as_me: executing $ac_dest commands" >&6;}
5651 default
) case x
$CONFIG_HEADERS in
5652 xconfig.h
:config.
in)
5660 cat >>$CONFIG_STATUS <<\_ACEOF
5662 { (exit 0); exit 0; }
5664 chmod +x
$CONFIG_STATUS
5665 ac_clean_files
=$ac_clean_files_save
5668 # configure is writing to config.log, and then calls config.status.
5669 # config.status does its own redirection, appending to config.log.
5670 # Unfortunately, on DOS this fails, as config.log is still kept open
5671 # by configure, so config.status won't be able to write to it; its
5672 # output is simply discarded. So we exec the FD to /dev/null,
5673 # effectively closing config.log, so it can be properly (re)opened and
5674 # appended to by config.status. When coming back to configure, we
5675 # need to make the FD available again.
5676 if test "$no_create" != yes; then
5678 ac_config_status_args
=
5679 test "$silent" = yes &&
5680 ac_config_status_args
="$ac_config_status_args --quiet"
5682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5685 # would make configure fail if this is the last instruction.
5686 $ac_cs_success ||
{ (exit 1); exit 1; }