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 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 RDYNAMIC GDBSERVER_DEPFILES GDBSERVER_LIBS USE_THREAD_DB srv_xmlbuiltin srv_xmlfiles srv_xmltarget LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
850 Some influential environment variables
:
851 CC C compiler
command
852 CFLAGS C compiler flags
853 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
854 nonstandard directory
<lib dir
>
855 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
856 headers
in a nonstandard directory
<include dir
>
859 Use these variables to override the choices made by
`configure' or to help
860 it to find libraries and programs with nonstandard names/locations.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
877 ac_dir_suffix= ac_top_builddir=
881 .) # No --srcdir option. We are building in place.
883 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
896 # Do not use `cd foo
&& pwd` to compute absolute paths, because
897 # the directories may not exist.
899 .) ac_abs_builddir="$ac_dir";;
902 .) ac_abs_builddir=`pwd`;;
903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
907 case $ac_abs_builddir in
908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
910 case ${ac_top_builddir}. in
911 .) ac_abs_top_builddir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916 case $ac_abs_builddir in
917 .) ac_abs_srcdir=$ac_srcdir;;
920 .) ac_abs_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925 case $ac_abs_builddir in
926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
928 case $ac_top_srcdir in
929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
958 Copyright (C) 2003 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.59. Invocation command line was
981 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
982 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
983 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
984 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
985 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
987 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
988 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
990 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
992 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
993 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
994 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
996 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Strip out --silent because we don't want to record it for future runs.
1023 # Also quote any args containing shell meta-characters.
1024 # Make two passes to allow for proper duplicate-argument suppression.
1029 ac_must_keep_next=false
1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046 if test $ac_must_keep_next = true; then
1047 ac_must_keep_next=false # Got value, back to normal.
1050 *=* | --config-cache | -C | -disable-* | --disable-* \
1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053 | -with-* | --with-* | -without-* | --without-* | --x)
1054 case "$ac_configure_args0 " in
1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 -* ) ac_must_keep_next=true ;;
1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062 # Get rid of the leading space.
1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close
' the trap.
1076 trap 'exit_status
=$?
1077 # Save into config.log some information that might help in debugging.
1082 ## ---------------- ##
1083 ## Cache variables. ##
1084 ## ---------------- ##
1087 # The following way of writing the cache mishandles newlines in values,
1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105 ## ----------------- ##
1106 ## Output variables. ##
1107 ## ----------------- ##
1110 for ac_var
in $ac_subst_vars
1112 eval ac_val
=$
`echo $ac_var`
1113 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -n "$ac_subst_files"; then
1124 for ac_var
in $ac_subst_files
1126 eval ac_val
=$
`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1132 if test -s confdefs.h
; then
1139 sed "/^$/d" confdefs.h |
sort
1142 test "$ac_signal" != 0 &&
1143 echo "$as_me: caught signal $ac_signal"
1144 echo "$as_me: exit $exit_status"
1146 rm -f core
*.core
&&
1147 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1150 for ac_signal in 1 2 13 15; do
1151 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1156 rm -rf conftest* confdefs.h
1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 # Predefined preprocessor variables.
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 # Let the site file select an alternate cache file if it wants to.
1188 # Prefer explicitly selected file to automatically selected ones.
1189 if test -z "$CONFIG_SITE"; then
1190 if test "x$prefix" != xNONE; then
1191 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 for ac_site_file in $CONFIG_SITE; do
1197 if test -r "$ac_site_file"; then
1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199 echo "$as_me: loading site script $ac_site_file" >&6;}
1200 sed 's
/^
/|
/' "$ac_site_file" >&5
1205 if test -r "$cache_file"; then
1206 # Some versions of bash will fail to source /dev/null (special
1207 # files actually), so we avoid doing that.
1208 if test -f "$cache_file"; then
1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210 echo "$as_me: loading cache $cache_file" >&6;}
1212 [\\/]* | ?:[\\/]* ) . $cache_file;;
1213 *) . ./$cache_file;;
1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218 echo "$as_me: creating cache $cache_file" >&6;}
1222 # Check that the precious variables saved in the cache have kept the same
1224 ac_cache_corrupted=false
1225 for ac_var in `(set) 2>&1 |
1226 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228 eval ac_new_set=\$ac_env_${ac_var}_set
1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230 eval ac_new_val="\$ac_env_${ac_var}_value"
1231 case $ac_old_set,$ac_new_set in
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1235 ac_cache_corrupted=: ;;
1237 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239 ac_cache_corrupted=: ;;
1242 if test "x$ac_old_val" != "x$ac_new_val"; then
1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1244 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246 echo "$as_me: former value: $ac_old_val" >&2;}
1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248 echo "$as_me: current value: $ac_new_val" >&2;}
1249 ac_cache_corrupted=:
1252 # Pass precious variables to config.status.
1253 if test "$ac_new_set" = set; then
1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1257 *) ac_arg=$ac_var=$ac_new_val ;;
1259 case " $ac_configure_args " in
1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265 if $ac_cache_corrupted; then
1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1269 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270 { (exit 1); exit 1; }; }
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1276 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1297 ac_config_headers="$ac_config_headers config.h:config.in"
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1303 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305 if test -n "$ac_tool_prefix"; then
1306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1307 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1308 echo "$as_me:$LINENO: checking for $ac_word" >&5
1309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1310 if test "${ac_cv_prog_CC+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1313 if test -n "$CC"; then
1314 ac_cv_prog_CC="$CC" # Let the user override the test.
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320 test -z "$as_dir" && as_dir=.
1321 for ac_exec_ext in '' $ac_executable_extensions; do
1322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1323 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 if test -n "$CC"; then
1334 echo "$as_me:$LINENO: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1337 echo "$as_me:$LINENO: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$ac_cv_prog_CC"; then
1344 # Extract the first word of "gcc", so it can be a program name with args.
1345 set dummy gcc; ac_word=$2
1346 echo "$as_me:$LINENO: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 if test -n "$ac_ct_CC"; then
1352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1358 test -z "$as_dir" && as_dir=.
1359 for ac_exec_ext in '' $ac_executable_extensions; do
1360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1361 ac_cv_prog_ac_ct_CC="gcc"
1362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1371 if test -n "$ac_ct_CC"; then
1372 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1373 echo "${ECHO_T}$ac_ct_CC" >&6
1375 echo "$as_me:$LINENO: result: no" >&5
1376 echo "${ECHO_T}no" >&6
1384 if test -z "$CC"; then
1385 if test -n "$ac_tool_prefix"; then
1386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1387 set dummy ${ac_tool_prefix}cc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 if test -n "$CC"; then
1394 ac_cv_prog_CC="$CC" # Let the user override the test.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_CC="${ac_tool_prefix}cc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 if test -n "$CC"; then
1414 echo "$as_me:$LINENO: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1422 if test -z "$ac_cv_prog_CC"; then
1424 # Extract the first word of "cc", so it can be a program name with args.
1425 set dummy cc; ac_word=$2
1426 echo "$as_me:$LINENO: checking for $ac_word" >&5
1427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1431 if test -n "$ac_ct_CC"; then
1432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 test -z "$as_dir" && as_dir=.
1439 for ac_exec_ext in '' $ac_executable_extensions; do
1440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441 ac_cv_prog_ac_ct_CC="cc"
1442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1455 echo "$as_me:$LINENO: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1465 if test -z "$CC"; then
1466 # Extract the first word of "cc", so it can be a program name with args.
1467 set dummy cc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1485 ac_prog_rejected=yes
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 if test $ac_prog_rejected = yes; then
1496 # We found a bogon in the path, so make sure we never use it.
1497 set dummy $ac_cv_prog_CC
1499 if test $# != 0; then
1500 # We chose a different compiler from the bogus one.
1501 # However, it has the same basename, so the bogon will be chosen
1502 # first if we set CC to just the basename; use the full file name.
1504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1525 echo "$as_me:$LINENO: checking for $ac_word" >&5
1526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527 if test "${ac_cv_prog_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 if test -n "$CC"; then
1531 ac_cv_prog_CC="$CC" # Let the user override the test.
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550 if test -n "$CC"; then
1551 echo "$as_me:$LINENO: result: $CC" >&5
1552 echo "${ECHO_T}$CC" >&6
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1558 test -n "$CC" && break
1561 if test -z "$CC"; then
1565 # Extract the first word of "$ac_prog", so it can be a program name with args.
1566 set dummy $ac_prog; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="$ac_prog"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1600 test -n "$ac_ct_CC" && break
1609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1610 See \`config.log' for more details.
" >&5
1611 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1612 See \
`config.log' for more details." >&2;}
1613 { (exit 1); exit 1; }; }
1615 # Provide some information about the compiler.
1616 echo "$as_me:$LINENO:" \
1617 "checking for C compiler version" >&5
1618 ac_compiler=`set X
$ac_compile; echo $2`
1619 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1620 (eval $ac_compiler --version </dev/null >&5) 2>&5
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1625 (eval $ac_compiler -v </dev/null >&5) 2>&5
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1630 (eval $ac_compiler -V </dev/null >&5) 2>&5
1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1635 cat >conftest.$ac_ext <<_ACEOF
1638 cat confdefs.h >>conftest.$ac_ext
1639 cat >>conftest.$ac_ext <<_ACEOF
1640 /* end confdefs.h. */
1650 ac_clean_files_save=$ac_clean_files
1651 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1652 # Try to create an executable without -o first, disregard a.out.
1653 # It will help us diagnose broken compilers, and finding out an intuition
1655 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1656 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1657 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1658 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1659 (eval $ac_link_default) 2>&5
1661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662 (exit $ac_status); }; then
1663 # Find the output, starting from the most likely. This scheme is
1664 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1667 # Be careful to initialize this variable, since it used to be cached.
1668 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1670 # b.out is created by i960 compilers.
1671 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1673 test -f "$ac_file" || continue
1675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1678 # This is the source file.
1681 # We found the default executable, but exeext='' is most
1685 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1686 # FIXME: I believe we export ac_cv_exeext for Libtool,
1687 # but it would be cool to find out if it's true. Does anybody
1688 # maintain Libtool? --akim.
1696 echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1700 See \`config.log
' for more details." >&5
1701 echo "$as_me: error: C compiler cannot create executables
1702 See \`config.log' for more details.
" >&2;}
1703 { (exit 77); exit 77; }; }
1706 ac_exeext=$ac_cv_exeext
1707 echo "$as_me:$LINENO: result
: $ac_file" >&5
1708 echo "${ECHO_T}$ac_file" >&6
1710 # Check the compiler produces executables we can run. If not, either
1711 # the compiler is broken, or we cross compile.
1712 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1713 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1714 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1715 # If not cross compiling, check that we can run a simple program.
1716 if test "$cross_compiling" != yes; then
1717 if { ac_try='./$ac_file'
1718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1722 (exit $ac_status); }; }; then
1725 if test "$cross_compiling" = maybe; then
1728 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1729 If you meant to cross compile
, use \
`--host'.
1730 See \`config.log
' for more details." >&5
1731 echo "$as_me: error: cannot run C compiled programs.
1732 If you meant to cross compile, use \`--host'.
1733 See \
`config.log' for more details." >&2;}
1734 { (exit 1); exit 1; }; }
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1741 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1742 ac_clean_files=$ac_clean_files_save
1743 # Check the compiler produces executables we can run. If not, either
1744 # the compiler is broken, or we cross compile.
1745 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1746 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1747 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1748 echo "${ECHO_T}$cross_compiling" >&6
1750 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1751 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1753 (eval $ac_link) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }; then
1757 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1758 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1759 # work properly (i.e., refer to `conftest.exe'), while it won't with
1761 for ac_file
in conftest.exe conftest conftest.
*; do
1762 test -f "$ac_file" ||
continue
1764 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1765 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1772 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1773 See \`config.log' for more details." >&5
1774 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1775 See \`config.log' for more details." >&2;}
1776 { (exit 1); exit 1; }; }
1779 rm -f conftest
$ac_cv_exeext
1780 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1781 echo "${ECHO_T}$ac_cv_exeext" >&6
1783 rm -f conftest.
$ac_ext
1784 EXEEXT
=$ac_cv_exeext
1786 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1787 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1788 if test "${ac_cv_objext+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 cat >conftest.
$ac_ext <<_ACEOF
1794 cat confdefs.h
>>conftest.
$ac_ext
1795 cat >>conftest.
$ac_ext <<_ACEOF
1796 /* end confdefs.h. */
1806 rm -f conftest.o conftest.obj
1807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1808 (eval $ac_compile) 2>&5
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }; then
1812 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1814 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1815 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.
$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1826 See \`config.log' for more details." >&2;}
1827 { (exit 1); exit 1; }; }
1830 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1832 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1833 echo "${ECHO_T}$ac_cv_objext" >&6
1834 OBJEXT
=$ac_cv_objext
1836 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1837 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 cat >conftest.
$ac_ext <<_ACEOF
1844 cat confdefs.h
>>conftest.
$ac_ext
1845 cat >>conftest.
$ac_ext <<_ACEOF
1846 /* end confdefs.h. */
1859 rm -f conftest.
$ac_objext
1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1861 (eval $ac_compile) 2>conftest.er1
1863 grep -v '^ *+' conftest.er1
>conftest.err
1865 cat conftest.err
>&5
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); } &&
1868 { ac_try
='test -z "$ac_c_werror_flag"
1869 || test ! -s conftest.err'
1870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; } &&
1875 { ac_try
='test -s conftest.$ac_objext'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.
$ac_ext >&5
1888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1889 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1892 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1893 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1894 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1895 ac_test_CFLAGS
=${CFLAGS+set}
1896 ac_save_CFLAGS
=$CFLAGS
1898 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1899 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1900 if test "${ac_cv_prog_cc_g+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 cat >conftest.
$ac_ext <<_ACEOF
1906 cat confdefs.h
>>conftest.
$ac_ext
1907 cat >>conftest.
$ac_ext <<_ACEOF
1908 /* end confdefs.h. */
1918 rm -f conftest.
$ac_objext
1919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920 (eval $ac_compile) 2>conftest.er1
1922 grep -v '^ *+' conftest.er1
>conftest.err
1924 cat conftest.err
>&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); } &&
1927 { ac_try
='test -z "$ac_c_werror_flag"
1928 || test ! -s conftest.err'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; } &&
1934 { ac_try
='test -s conftest.$ac_objext'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; }; then
1942 echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.
$ac_ext >&5
1947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1949 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS
=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1967 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1968 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 ac_cv_prog_cc_stdc
=no
1973 cat >conftest.
$ac_ext <<_ACEOF
1976 cat confdefs.h
>>conftest.
$ac_ext
1977 cat >>conftest.
$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1981 #include <sys/types.h>
1982 #include <sys/stat.h>
1983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1984 struct buf { int x; };
1985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1986 static char *e (p, i)
1992 static char *f (char * (*g) (char **, int), char **p, ...)
1997 s = g (p, va_arg (v,int));
2002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2003 function prototypes and stuff, but not '\xHH' hex character constants.
2004 These don't provoke an error unfortunately, instead are silently treated
2005 as 'x'. The following induces an error, until -std1 is added to get
2006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2007 array size at least. It's necessary to write '\x00'==0 to get something
2008 that's true only with -std1. */
2009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2011 int test (int i, double x);
2012 struct s1 {int (*f) (int a);};
2013 struct s2 {int (*f) (double a);};
2014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2025 # Don't try gcc -ansi; that turns off useful extensions and
2026 # breaks some systems' header files.
2027 # AIX -qlanglvl=ansi
2028 # Ultrix and OSF/1 -std1
2029 # HP-UX 10.20 and later -Ae
2030 # HP-UX older versions -Aa -D_HPUX_SOURCE
2031 # SVR4 -Xc -D__EXTENSIONS__
2032 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2034 CC
="$ac_save_CC $ac_arg"
2035 rm -f conftest.
$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>conftest.er1
2039 grep -v '^ *+' conftest.er1
>conftest.err
2041 cat conftest.err
>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try
='test -z "$ac_c_werror_flag"
2045 || test ! -s conftest.err'
2046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }; } &&
2051 { ac_try
='test -s conftest.$ac_objext'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2057 ac_cv_prog_cc_stdc
=$ac_arg
2060 echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.
$ac_ext >&5
2064 rm -f conftest.err conftest.
$ac_objext
2066 rm -f conftest.
$ac_ext conftest.
$ac_objext
2071 case "x$ac_cv_prog_cc_stdc" in
2073 echo "$as_me:$LINENO: result: none needed" >&5
2074 echo "${ECHO_T}none needed" >&6 ;;
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2078 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2081 # Some people use a C++ compiler to compile C. Since we use `exit',
2082 # in C++ we need to declare it. In case someone uses the same compiler
2083 # for both compiling C and C++ we need to have the C++ compiler decide
2084 # the declaration of exit, since it's the most demanding environment.
2085 cat >conftest.
$ac_ext <<_ACEOF
2090 rm -f conftest.
$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2094 grep -v '^ *+' conftest.er1
>conftest.err
2096 cat conftest.err
>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try
='test -z "$ac_c_werror_flag"
2100 || test ! -s conftest.err'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; } &&
2106 { ac_try
='test -s conftest.$ac_objext'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; }; then
2112 for ac_declaration
in \
2114 'extern "C" void std::exit (int) throw (); using std::exit;' \
2115 'extern "C" void std::exit (int); using std::exit;' \
2116 'extern "C" void exit (int) throw ();' \
2117 'extern "C" void exit (int);' \
2120 cat >conftest.
$ac_ext <<_ACEOF
2123 cat confdefs.h
>>conftest.
$ac_ext
2124 cat >>conftest.
$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2136 rm -f conftest.
$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>conftest.er1
2140 grep -v '^ *+' conftest.er1
>conftest.err
2142 cat conftest.err
>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); } &&
2145 { ac_try
='test -z "$ac_c_werror_flag"
2146 || test ! -s conftest.err'
2147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); }; } &&
2152 { ac_try
='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.
$ac_ext >&5
2165 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 cat >conftest.
$ac_ext <<_ACEOF
2169 cat confdefs.h
>>conftest.
$ac_ext
2170 cat >>conftest.
$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2181 rm -f conftest.
$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2185 grep -v '^ *+' conftest.er1
>conftest.err
2187 cat conftest.err
>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try
='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try
='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2205 echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.
$ac_ext >&5
2209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 if test -n "$ac_declaration"; then
2213 echo '#ifdef __cplusplus' >>confdefs.h
2214 echo $ac_declaration >>confdefs.h
2215 echo '#endif' >>confdefs.h
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.
$ac_ext >&5
2223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2225 ac_cpp
='$CPP $CPPFLAGS'
2226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2232 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2233 if test -f $ac_dir/install-sh
; then
2235 ac_install_sh
="$ac_aux_dir/install-sh -c"
2237 elif test -f $ac_dir/install.sh
; then
2239 ac_install_sh
="$ac_aux_dir/install.sh -c"
2241 elif test -f $ac_dir/shtool
; then
2243 ac_install_sh
="$ac_aux_dir/shtool install -c"
2247 if test -z "$ac_aux_dir"; then
2248 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2249 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2250 { (exit 1); exit 1; }; }
2252 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2253 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2254 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2256 # Make sure we can run config.sub.
2257 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2258 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2259 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2260 { (exit 1); exit 1; }; }
2262 echo "$as_me:$LINENO: checking build system type" >&5
2263 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2264 if test "${ac_cv_build+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 ac_cv_build_alias
=$build_alias
2268 test -z "$ac_cv_build_alias" &&
2269 ac_cv_build_alias
=`$ac_config_guess`
2270 test -z "$ac_cv_build_alias" &&
2271 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2272 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2273 { (exit 1); exit 1; }; }
2274 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2275 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2276 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2277 { (exit 1); exit 1; }; }
2280 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2281 echo "${ECHO_T}$ac_cv_build" >&6
2283 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2284 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2285 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2288 echo "$as_me:$LINENO: checking host system type" >&5
2289 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2290 if test "${ac_cv_host+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 ac_cv_host_alias
=$host_alias
2294 test -z "$ac_cv_host_alias" &&
2295 ac_cv_host_alias
=$ac_cv_build_alias
2296 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2297 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2298 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2299 { (exit 1); exit 1; }; }
2302 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6
2305 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2306 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2307 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2310 echo "$as_me:$LINENO: checking target system type" >&5
2311 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2312 if test "${ac_cv_target+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 ac_cv_target_alias
=$target_alias
2316 test "x$ac_cv_target_alias" = "x" &&
2317 ac_cv_target_alias
=$ac_cv_host_alias
2318 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2319 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2320 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2324 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2325 echo "${ECHO_T}$ac_cv_target" >&6
2326 target
=$ac_cv_target
2327 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2328 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2329 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2332 # The aliases save the names the user supplied, while $host etc.
2333 # will get canonicalized.
2334 test -n "$target_alias" &&
2335 test "$program_prefix$program_suffix$program_transform_name" = \
2337 program_prefix
=${target_alias}-
2339 # Find a good install program. We prefer a C program (faster),
2340 # so one script is as good as another. But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2346 # AmigaOS /C/install, which installs bootblocks on floppy discs
2347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350 # OS/2's system install, which has a completely different semantic
2351 # ./install, which can be erroneously created by make from ./install.sh.
2352 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2353 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2354 if test -z "$INSTALL"; then
2355 if test "${ac_cv_path_install+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir
=.
2363 # Account for people who put trailing slashes in PATH elements.
2365 .
/ | .
// |
/cC
/* | \
2366 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2367 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2370 # OSF1 and SCO ODT 3.0 have their own names for install.
2371 # Don't use installbsd from OSF since it installs stuff as root
2373 for ac_prog
in ginstall scoinst
install; do
2374 for ac_exec_ext
in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2376 if test $ac_prog = install &&
2377 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2378 # AIX install. It has an incompatible calling convention.
2380 elif test $ac_prog = install &&
2381 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2382 # program-specific install script used by HP pwplus--don't use.
2385 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2397 if test "${ac_cv_path_install+set}" = set; then
2398 INSTALL
=$ac_cv_path_install
2400 # As a last resort, use the slow shell script. We don't cache a
2401 # path for INSTALL within a source directory, because that will
2402 # break other packages using the cache if that directory is
2403 # removed, or if the path is relative.
2404 INSTALL
=$ac_install_sh
2407 echo "$as_me:$LINENO: result: $INSTALL" >&5
2408 echo "${ECHO_T}$INSTALL" >&6
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2416 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2419 test "$program_prefix" != NONE
&&
2420 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
2421 # Use a double $ so make ignores it.
2422 test "$program_suffix" != NONE
&&
2423 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
2424 # Double any \ or $. echo might interpret backslashes.
2425 # By default was `s,x,x', remove it if useless.
2426 cat <<\_ACEOF
>conftest.
sed
2427 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2429 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2435 ac_cpp
='$CPP $CPPFLAGS'
2436 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2439 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2440 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2441 # On Suns, sometimes $CPP names a directory.
2442 if test -n "$CPP" && test -d "$CPP"; then
2445 if test -z "$CPP"; then
2446 if test "${ac_cv_prog_CPP+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 # Double quotes because CPP needs to be expanded
2450 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2453 for ac_c_preproc_warn_flag
in '' yes
2455 # Use a header file that comes with gcc, so configuring glibc
2456 # with a fresh cross-compiler works.
2457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2458 # <limits.h> exists even on freestanding compilers.
2459 # On the NeXT, cc -E runs the code through the compiler's parser,
2460 # not just through cpp. "Syntax error" is here to catch this case.
2461 cat >conftest.
$ac_ext <<_ACEOF
2464 cat confdefs.h
>>conftest.
$ac_ext
2465 cat >>conftest.
$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2468 # include <limits.h>
2470 # include <assert.h>
2474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2475 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1
>conftest.err
2479 cat conftest.err
>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } >/dev
/null
; then
2482 if test -s conftest.err
; then
2483 ac_cpp_err
=$ac_c_preproc_warn_flag
2484 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2491 if test -z "$ac_cpp_err"; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.
$ac_ext >&5
2497 # Broken: fails on valid input.
2500 rm -f conftest.err conftest.
$ac_ext
2502 # OK, works on sane cases. Now check whether non-existent headers
2503 # can be detected and how.
2504 cat >conftest.
$ac_ext <<_ACEOF
2507 cat confdefs.h
>>conftest.
$ac_ext
2508 cat >>conftest.
$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2510 #include <ac_nonexistent.h>
2512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2515 grep -v '^ *+' conftest.er1
>conftest.err
2517 cat conftest.err
>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } >/dev
/null
; then
2520 if test -s conftest.err
; then
2521 ac_cpp_err
=$ac_c_preproc_warn_flag
2522 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2529 if test -z "$ac_cpp_err"; then
2530 # Broken: success on invalid input.
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.
$ac_ext >&5
2536 # Passes both tests.
2540 rm -f conftest.err conftest.
$ac_ext
2543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2544 rm -f conftest.err conftest.
$ac_ext
2545 if $ac_preproc_ok; then
2557 echo "$as_me:$LINENO: result: $CPP" >&5
2558 echo "${ECHO_T}$CPP" >&6
2560 for ac_c_preproc_warn_flag
in '' yes
2562 # Use a header file that comes with gcc, so configuring glibc
2563 # with a fresh cross-compiler works.
2564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 # <limits.h> exists even on freestanding compilers.
2566 # On the NeXT, cc -E runs the code through the compiler's parser,
2567 # not just through cpp. "Syntax error" is here to catch this case.
2568 cat >conftest.
$ac_ext <<_ACEOF
2571 cat confdefs.h
>>conftest.
$ac_ext
2572 cat >>conftest.
$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2575 # include <limits.h>
2577 # include <assert.h>
2581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2584 grep -v '^ *+' conftest.er1
>conftest.err
2586 cat conftest.err
>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } >/dev
/null
; then
2589 if test -s conftest.err
; then
2590 ac_cpp_err
=$ac_c_preproc_warn_flag
2591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2598 if test -z "$ac_cpp_err"; then
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.
$ac_ext >&5
2604 # Broken: fails on valid input.
2607 rm -f conftest.err conftest.
$ac_ext
2609 # OK, works on sane cases. Now check whether non-existent headers
2610 # can be detected and how.
2611 cat >conftest.
$ac_ext <<_ACEOF
2614 cat confdefs.h
>>conftest.
$ac_ext
2615 cat >>conftest.
$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 #include <ac_nonexistent.h>
2619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1
>conftest.err
2624 cat conftest.err
>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } >/dev
/null
; then
2627 if test -s conftest.err
; then
2628 ac_cpp_err
=$ac_c_preproc_warn_flag
2629 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2636 if test -z "$ac_cpp_err"; then
2637 # Broken: success on invalid input.
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.
$ac_ext >&5
2643 # Passes both tests.
2647 rm -f conftest.err conftest.
$ac_ext
2650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2651 rm -f conftest.err conftest.
$ac_ext
2652 if $ac_preproc_ok; then
2655 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2658 See \`config.log' for more details." >&2;}
2659 { (exit 1); exit 1; }; }
2663 ac_cpp
='$CPP $CPPFLAGS'
2664 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2669 echo "$as_me:$LINENO: checking for egrep" >&5
2670 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2671 if test "${ac_cv_prog_egrep+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2675 then ac_cv_prog_egrep
='grep -E'
2676 else ac_cv_prog_egrep
='egrep'
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2680 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2681 EGREP
=$ac_cv_prog_egrep
2684 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2686 if test "${ac_cv_header_stdc+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2689 cat >conftest.
$ac_ext <<_ACEOF
2692 cat confdefs.h
>>conftest.
$ac_ext
2693 cat >>conftest.
$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2708 rm -f conftest.
$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710 (eval $ac_compile) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1
>conftest.err
2714 cat conftest.err
>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } &&
2717 { ac_try
='test -z "$ac_c_werror_flag"
2718 || test ! -s conftest.err'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try
='test -s conftest.$ac_objext'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; }; then
2730 ac_cv_header_stdc
=yes
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.
$ac_ext >&5
2735 ac_cv_header_stdc
=no
2737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2739 if test $ac_cv_header_stdc = yes; then
2740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2741 cat >conftest.
$ac_ext <<_ACEOF
2744 cat confdefs.h
>>conftest.
$ac_ext
2745 cat >>conftest.
$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2751 $EGREP "memchr" >/dev
/null
2>&1; then
2754 ac_cv_header_stdc
=no
2760 if test $ac_cv_header_stdc = yes; then
2761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2762 cat >conftest.
$ac_ext <<_ACEOF
2765 cat confdefs.h
>>conftest.
$ac_ext
2766 cat >>conftest.
$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2772 $EGREP "free" >/dev
/null
2>&1; then
2775 ac_cv_header_stdc
=no
2781 if test $ac_cv_header_stdc = yes; then
2782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2783 if test "$cross_compiling" = yes; then
2786 cat >conftest.
$ac_ext <<_ACEOF
2789 cat confdefs.h
>>conftest.
$ac_ext
2790 cat >>conftest.
$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2793 #if ((' ' & 0x0FF) == 0x020)
2794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2797 # define ISLOWER(c) \
2798 (('a' <= (c) && (c) <= 'i') \
2799 || ('j' <= (c) && (c) <= 'r') \
2800 || ('s' <= (c) && (c) <= 'z'))
2801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2809 for (i = 0; i < 256; i++)
2810 if (XOR (islower (i), ISLOWER (i))
2811 || toupper (i) != TOUPPER (i))
2816 rm -f conftest
$ac_exeext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818 (eval $ac_link) 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2829 echo "$as_me: program exited with status $ac_status" >&5
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.
$ac_ext >&5
2834 ac_cv_header_stdc
=no
2836 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2840 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2841 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2842 if test $ac_cv_header_stdc = yes; then
2844 cat >>confdefs.h
<<\_ACEOF
2845 #define STDC_HEADERS 1
2851 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2861 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2862 inttypes.h stdint.h unistd.h
2864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2865 echo "$as_me:$LINENO: checking for $ac_header" >&5
2866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 cat >conftest.
$ac_ext <<_ACEOF
2873 cat confdefs.h
>>conftest.
$ac_ext
2874 cat >>conftest.
$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 $ac_includes_default
2878 #include <$ac_header>
2880 rm -f conftest.
$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2884 grep -v '^ *+' conftest.er1
>conftest.err
2886 cat conftest.err
>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try
='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try
='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 eval "$as_ac_Header=yes"
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.
$ac_ext >&5
2907 eval "$as_ac_Header=no"
2909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2914 cat >>confdefs.h
<<_ACEOF
2915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2946 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
2948 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2950 echo "$as_me:$LINENO: checking for $ac_header" >&5
2951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2958 # Is the header compilable?
2959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2961 cat >conftest.
$ac_ext <<_ACEOF
2964 cat confdefs.h
>>conftest.
$ac_ext
2965 cat >>conftest.
$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967 $ac_includes_default
2968 #include <$ac_header>
2970 rm -f conftest.
$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>conftest.er1
2974 grep -v '^ *+' conftest.er1
>conftest.err
2976 cat conftest.err
>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try
='test -z "$ac_c_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try
='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 ac_header_compiler
=yes
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.
$ac_ext >&5
2997 ac_header_compiler
=no
2999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3001 echo "${ECHO_T}$ac_header_compiler" >&6
3003 # Is the header present?
3004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3006 cat >conftest.
$ac_ext <<_ACEOF
3009 cat confdefs.h
>>conftest.
$ac_ext
3010 cat >>conftest.
$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <$ac_header>
3014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3017 grep -v '^ *+' conftest.er1
>conftest.err
3019 cat conftest.err
>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev
/null
; then
3022 if test -s conftest.err
; then
3023 ac_cpp_err
=$ac_c_preproc_warn_flag
3024 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3031 if test -z "$ac_cpp_err"; then
3032 ac_header_preproc
=yes
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.
$ac_ext >&5
3037 ac_header_preproc
=no
3039 rm -f conftest.err conftest.
$ac_ext
3040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3041 echo "${ECHO_T}$ac_header_preproc" >&6
3043 # So? What about this header?
3044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3050 ac_header_preproc
=yes
3053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3067 ## ------------------------------------------ ##
3068 ## Report this to the AC_PACKAGE_NAME lists. ##
3069 ## ------------------------------------------ ##
3072 sed "s/^/$as_me: WARNING: /" >&2
3075 echo "$as_me:$LINENO: checking for $ac_header" >&5
3076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 eval "$as_ac_Header=\$ac_header_preproc"
3082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3087 cat >>confdefs.h
<<_ACEOF
3088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3097 echo "$as_me:$LINENO: checking for errno" >&5
3098 echo $ECHO_N "checking for errno... $ECHO_C" >&6
3099 cat >conftest.
$ac_ext <<_ACEOF
3102 cat confdefs.h
>>conftest.
$ac_ext
3103 cat >>conftest.
$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3112 static int x; x = errno;
3117 rm -f conftest.
$ac_objext conftest
$ac_exeext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3119 (eval $ac_link) 2>conftest.er1
3121 grep -v '^ *+' conftest.er1
>conftest.err
3123 cat conftest.err
>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try
='test -z "$ac_c_werror_flag"
3127 || test ! -s conftest.err'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try
='test -s conftest$ac_exeext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
3140 echo "${ECHO_T}yes - in errno.h" >&6;
3141 cat >>confdefs.h
<<\_ACEOF
3142 #define HAVE_ERRNO 1
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.
$ac_ext >&5
3150 rm -f conftest.err conftest.
$ac_objext \
3151 conftest
$ac_exeext conftest.
$ac_ext
3152 if test $have_errno = no
; then
3153 cat >conftest.
$ac_ext <<_ACEOF
3156 cat confdefs.h
>>conftest.
$ac_ext
3157 cat >>conftest.
$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3166 extern int errno; static int x; x = errno;
3171 rm -f conftest.
$ac_objext conftest
$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>conftest.er1
3175 grep -v '^ *+' conftest.er1
>conftest.err
3177 cat conftest.err
>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try
='test -z "$ac_c_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try
='test -s conftest$ac_exeext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 echo "$as_me:$LINENO: result: yes - must define" >&5
3194 echo "${ECHO_T}yes - must define" >&6;
3195 cat >>confdefs.h
<<\_ACEOF
3196 #define HAVE_ERRNO 1
3199 cat >>confdefs.h
<<\_ACEOF
3200 #define MUST_DEFINE_ERRNO 1
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.
$ac_ext >&5
3207 echo "$as_me:$LINENO: result: no" >&5
3208 echo "${ECHO_T}no" >&6
3210 rm -f conftest.err conftest.
$ac_objext \
3211 conftest
$ac_exeext conftest.
$ac_ext
3214 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
3215 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
3216 if test "${ac_cv_have_decl_strerror+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.
$ac_ext <<_ACEOF
3222 cat confdefs.h
>>conftest.
$ac_ext
3223 cat >>conftest.
$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3225 $ac_includes_default
3230 char *p = (char *) strerror;
3237 rm -f conftest.
$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3241 grep -v '^ *+' conftest.er1
>conftest.err
3243 cat conftest.err
>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try
='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try
='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_have_decl_strerror
=yes
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 ac_cv_have_decl_strerror
=no
3266 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
3269 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
3270 if test $ac_cv_have_decl_strerror = yes; then
3272 cat >>confdefs.h
<<_ACEOF
3273 #define HAVE_DECL_STRERROR 1
3278 cat >>confdefs.h
<<_ACEOF
3279 #define HAVE_DECL_STRERROR 0
3284 echo "$as_me:$LINENO: checking whether perror is declared" >&5
3285 echo $ECHO_N "checking whether perror is declared... $ECHO_C" >&6
3286 if test "${ac_cv_have_decl_perror+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 cat >conftest.
$ac_ext <<_ACEOF
3292 cat confdefs.h
>>conftest.
$ac_ext
3293 cat >>conftest.
$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 $ac_includes_default
3300 char *p = (char *) perror;
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1
>conftest.err
3313 cat conftest.err
>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_cv_have_decl_perror
=yes
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.
$ac_ext >&5
3334 ac_cv_have_decl_perror
=no
3336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3338 echo "$as_me:$LINENO: result: $ac_cv_have_decl_perror" >&5
3339 echo "${ECHO_T}$ac_cv_have_decl_perror" >&6
3340 if test $ac_cv_have_decl_perror = yes; then
3342 cat >>confdefs.h
<<_ACEOF
3343 #define HAVE_DECL_PERROR 1
3348 cat >>confdefs.h
<<_ACEOF
3349 #define HAVE_DECL_PERROR 0
3357 echo "$as_me:$LINENO: checking for socklen_t" >&5
3358 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
3359 if test "${ac_cv_type_socklen_t+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 cat >conftest.
$ac_ext <<_ACEOF
3365 cat confdefs.h
>>conftest.
$ac_ext
3366 cat >>conftest.
$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #include <sys/types.h>
3369 #include <sys/socket.h>
3375 if ((socklen_t *) 0)
3377 if (sizeof (socklen_t))
3383 rm -f conftest.
$ac_objext
3384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1
>conftest.err
3389 cat conftest.err
>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try
='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try
='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_cv_type_socklen_t
=yes
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.
$ac_ext >&5
3410 ac_cv_type_socklen_t
=no
3412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3414 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
3415 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
3416 if test $ac_cv_type_socklen_t = yes; then
3418 cat >>confdefs.h
<<_ACEOF
3419 #define HAVE_SOCKLEN_T 1
3426 # Check for various supplementary target information (beyond the
3427 # triplet) which might affect the choices in configure.srv.
3430 echo "$as_me:$LINENO: checking if iWMMXt is selected" >&5
3431 echo $ECHO_N "checking if iWMMXt is selected... $ECHO_C" >&6
3432 if test "${gdb_cv_arm_iwmmxt+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 save_CPPFLAGS
="$CPPFLAGS"
3436 CPPFLAGS
="$CPPFLAGS $CFLAGS"
3437 cat >conftest.
$ac_ext <<_ACEOF
3440 cat confdefs.h
>>conftest.
$ac_ext
3441 cat >>conftest.
$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 $EGREP "got it" >/dev
/null
2>&1; then
3451 gdb_cv_arm_iwmmxt
=yes
3453 gdb_cv_arm_iwmmxt
=no
3457 CPPFLAGS
="$save_CPPFLAGS"
3459 echo "$as_me:$LINENO: result: $gdb_cv_arm_iwmmxt" >&5
3460 echo "${ECHO_T}$gdb_cv_arm_iwmmxt" >&6
3464 .
${srcdir}/configure.srv
3466 if test "${srv_mingwce}" = "yes"; then
3468 elif test "${srv_mingw}" = "yes"; then
3469 LIBS
="$LIBS -lwsock32"
3472 if test "${srv_mingw}" = "yes"; then
3474 cat >>confdefs.h
<<\_ACEOF
3475 #define USE_WIN32API 1
3480 if test "${srv_linux_usrregs}" = "yes"; then
3482 cat >>confdefs.h
<<\_ACEOF
3483 #define HAVE_LINUX_USRREGS 1
3488 if test "${srv_linux_regsets}" = "yes"; then
3490 cat >>confdefs.h
<<\_ACEOF
3491 #define HAVE_LINUX_REGSETS 1
3495 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
3496 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
3497 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <sys/ptrace.h>
3515 rm -f conftest.
$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1
>conftest.err
3521 cat conftest.err
>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try
='test -z "$ac_c_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try
='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3537 gdbsrv_cv_have_ptrace_getregs
=yes
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.
$ac_ext >&5
3542 gdbsrv_cv_have_ptrace_getregs
=no
3544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3547 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getregs" >&5
3548 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getregs" >&6
3549 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
3551 cat >>confdefs.h
<<\_ACEOF
3552 #define HAVE_PTRACE_GETREGS 1
3557 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
3558 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
3559 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 cat >conftest.
$ac_ext <<_ACEOF
3565 cat confdefs.h
>>conftest.
$ac_ext
3566 cat >>conftest.
$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568 #include <sys/ptrace.h>
3577 rm -f conftest.
$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try
='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3599 gdbsrv_cv_have_ptrace_getfpxregs
=yes
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 gdbsrv_cv_have_ptrace_getfpxregs
=no
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3609 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
3610 echo "${ECHO_T}$gdbsrv_cv_have_ptrace_getfpxregs" >&6
3611 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
3613 cat >>confdefs.h
<<\_ACEOF
3614 #define HAVE_PTRACE_GETFPXREGS 1
3620 if test "$ac_cv_header_sys_procfs_h" = yes; then
3621 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
3622 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
3623 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 cat >conftest.
$ac_ext <<_ACEOF
3629 cat confdefs.h
>>conftest.
$ac_ext
3630 cat >>conftest.
$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3634 #include <sys/procfs.h>
3643 rm -f conftest.
$ac_objext
3644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645 (eval $ac_compile) 2>conftest.er1
3647 grep -v '^ *+' conftest.er1
>conftest.err
3649 cat conftest.err
>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } &&
3652 { ac_try
='test -z "$ac_c_werror_flag"
3653 || test ! -s conftest.err'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; } &&
3659 { ac_try
='test -s conftest.$ac_objext'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; }; then
3665 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.
$ac_ext >&5
3670 bfd_cv_have_sys_procfs_type_lwpid_t
=no
3673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3676 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
3678 cat >>confdefs.h
<<\_ACEOF
3679 #define HAVE_LWPID_T 1
3683 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
3684 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
3686 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
3687 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
3688 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 cat >conftest.
$ac_ext <<_ACEOF
3694 cat confdefs.h
>>conftest.
$ac_ext
3695 cat >>conftest.
$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 #include <sys/procfs.h>
3708 rm -f conftest.
$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1
>conftest.err
3714 cat conftest.err
>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try
='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try
='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 bfd_cv_have_sys_procfs_type_psaddr_t
=no
3738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3741 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
3743 cat >>confdefs.h
<<\_ACEOF
3744 #define HAVE_PSADDR_T 1
3748 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
3749 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
3751 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
3752 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
3753 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 cat >conftest.
$ac_ext <<_ACEOF
3759 cat confdefs.h
>>conftest.
$ac_ext
3760 cat >>conftest.
$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3764 #include <sys/procfs.h>
3773 rm -f conftest.
$ac_objext
3774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3775 (eval $ac_compile) 2>conftest.er1
3777 grep -v '^ *+' conftest.er1
>conftest.err
3779 cat conftest.err
>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } &&
3782 { ac_try
='test -z "$ac_c_werror_flag"
3783 || test ! -s conftest.err'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; } &&
3789 { ac_try
='test -s conftest.$ac_objext'
3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.
$ac_ext >&5
3800 bfd_cv_have_sys_procfs_type_prgregset_t
=no
3803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3806 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
3808 cat >>confdefs.h
<<\_ACEOF
3809 #define HAVE_PRGREGSET_T 1
3813 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
3814 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
3816 echo "$as_me:$LINENO: checking for elf_fpregset_t in sys/procfs.h" >&5
3817 echo $ECHO_N "checking for elf_fpregset_t in sys/procfs.h... $ECHO_C" >&6
3818 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 cat >conftest.
$ac_ext <<_ACEOF
3824 cat confdefs.h
>>conftest.
$ac_ext
3825 cat >>conftest.
$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3829 #include <sys/procfs.h>
3838 rm -f conftest.
$ac_objext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3840 (eval $ac_compile) 2>conftest.er1
3842 grep -v '^ *+' conftest.er1
>conftest.err
3844 cat conftest.err
>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try
='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try
='test -s conftest.$ac_objext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.
$ac_ext >&5
3865 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
3868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3871 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
3873 cat >>confdefs.h
<<\_ACEOF
3874 #define HAVE_ELF_FPREGSET_T 1
3878 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
3879 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6
3883 srv_thread_depfiles
=
3887 if test "$srv_linux_thread_db" = "yes"; then
3888 echo "$as_me:$LINENO: checking for libthread_db" >&5
3889 echo $ECHO_N "checking for libthread_db... $ECHO_C" >&6
3890 if test "${srv_cv_thread_db+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 LIBS
="$LIBS -lthread_db"
3895 cat >conftest.
$ac_ext <<_ACEOF
3898 cat confdefs.h
>>conftest.
$ac_ext
3899 cat >>conftest.
$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3901 void ps_pglobal_lookup() {}
3903 void ps_pdwrite() {}
3904 void ps_lgetregs() {}
3905 void ps_lsetregs() {}
3906 void ps_lgetfpregs() {}
3907 void ps_lsetfpregs() {}
3908 void ps_get_thread_area() {}
3918 rm -f conftest.
$ac_objext conftest
$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>conftest.er1
3922 grep -v '^ *+' conftest.er1
>conftest.err
3924 cat conftest.err
>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try
='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try
='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 srv_cv_thread_db
="-lthread_db"
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.
$ac_ext >&5
3947 if test "$prefix" = "/usr" ||
test "$prefix" = "NONE"; then
3948 thread_db
="/lib/libthread_db.so.1"
3950 thread_db
='$prefix/lib/libthread_db.so.1'
3952 LIBS
="$old_LIBS `eval echo "$thread_db"`"
3953 cat >conftest.
$ac_ext <<_ACEOF
3956 cat confdefs.h
>>conftest.
$ac_ext
3957 cat >>conftest.
$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 void ps_pglobal_lookup() {}
3961 void ps_pdwrite() {}
3962 void ps_lgetregs() {}
3963 void ps_lsetregs() {}
3964 void ps_lgetfpregs() {}
3965 void ps_lsetfpregs() {}
3966 void ps_get_thread_area() {}
3976 rm -f conftest.
$ac_objext conftest
$ac_exeext
3977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3978 (eval $ac_link) 2>conftest.er1
3980 grep -v '^ *+' conftest.er1
>conftest.err
3982 cat conftest.err
>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try
='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try
='test -s conftest$ac_exeext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 srv_cv_thread_db
="$thread_db"
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.
$ac_ext >&5
4005 rm -f conftest.err conftest.
$ac_objext \
4006 conftest
$ac_exeext conftest.
$ac_ext
4009 rm -f conftest.err conftest.
$ac_objext \
4010 conftest
$ac_exeext conftest.
$ac_ext
4014 echo "$as_me:$LINENO: result: $srv_cv_thread_db" >&5
4015 echo "${ECHO_T}$srv_cv_thread_db" >&6
4016 if test "$srv_cv_thread_db" = no
; then
4017 { echo "$as_me:$LINENO: WARNING: Could not find libthread_db." >&5
4018 echo "$as_me: WARNING: Could not find libthread_db." >&2;}
4019 { echo "$as_me:$LINENO: WARNING: Disabling thread support in gdbserver." >&5
4020 echo "$as_me: WARNING: Disabling thread support in gdbserver." >&2;}
4021 srv_linux_thread_db
=no
4023 srv_libs
="$srv_cv_thread_db"
4024 echo "$as_me:$LINENO: checking for thread_db_tls_get_addr" >&5
4025 echo $ECHO_N "checking for thread_db_tls_get_addr... $ECHO_C" >&6
4026 if test "${srv_cv_tls_get_addr+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 LIBS
="$LIBS $srv_cv_thread_db"
4031 cat >conftest.
$ac_ext <<_ACEOF
4034 cat confdefs.h
>>conftest.
$ac_ext
4035 cat >>conftest.
$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 void ps_pglobal_lookup() {}
4039 void ps_pdwrite() {}
4040 void ps_lgetregs() {}
4041 void ps_lsetregs() {}
4042 void ps_lgetfpregs() {}
4043 void ps_lsetfpregs() {}
4044 void ps_get_thread_area() {}
4049 td_thr_tls_get_addr();
4054 rm -f conftest.
$ac_objext conftest
$ac_exeext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4056 (eval $ac_link) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try
='test -s conftest$ac_exeext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 srv_cv_tls_get_addr
=yes
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.
$ac_ext >&5
4081 srv_cv_tls_get_addr
=no
4083 rm -f conftest.err conftest.
$ac_objext \
4084 conftest
$ac_exeext conftest.
$ac_ext
4088 echo "$as_me:$LINENO: result: $srv_cv_tls_get_addr" >&5
4089 echo "${ECHO_T}$srv_cv_tls_get_addr" >&6
4091 old_LDFLAGS
="$LDFLAGS"
4092 LDFLAGS
="$LDFLAGS -rdynamic"
4093 cat >conftest.
$ac_ext <<_ACEOF
4096 cat confdefs.h
>>conftest.
$ac_ext
4097 cat >>conftest.
$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4108 rm -f conftest.
$ac_objext conftest
$ac_exeext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>conftest.er1
4112 grep -v '^ *+' conftest.er1
>conftest.err
4114 cat conftest.err
>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 { ac_try
='test -z "$ac_c_werror_flag"
4118 || test ! -s conftest.err'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; } &&
4124 { ac_try
='test -s conftest$ac_exeext'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.
$ac_ext >&5
4137 rm -f conftest.err conftest.
$ac_objext \
4138 conftest
$ac_exeext conftest.
$ac_ext
4140 LDFLAGS
="$old_LDFLAGS"
4143 if test "$srv_linux_thread_db" = "yes"; then
4144 srv_thread_depfiles
="thread-db.o proc-service.o"
4145 USE_THREAD_DB
="-DUSE_THREAD_DB"
4146 echo "$as_me:$LINENO: checking for TD_VERSION" >&5
4147 echo $ECHO_N "checking for TD_VERSION... $ECHO_C" >&6
4148 if test "${gdbsrv_cv_have_td_version+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 cat >conftest.
$ac_ext <<_ACEOF
4154 cat confdefs.h
>>conftest.
$ac_ext
4155 cat >>conftest.
$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <thread_db.h>
4166 rm -f conftest.
$ac_objext
4167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168 (eval $ac_compile) 2>conftest.er1
4170 grep -v '^ *+' conftest.er1
>conftest.err
4172 cat conftest.err
>&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try
='test -z "$ac_c_werror_flag"
4176 || test ! -s conftest.err'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try
='test -s conftest.$ac_objext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 gdbsrv_cv_have_td_version
=yes
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.
$ac_ext >&5
4193 gdbsrv_cv_have_td_version
=no
4195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4197 echo "$as_me:$LINENO: result: $gdbsrv_cv_have_td_version" >&5
4198 echo "${ECHO_T}$gdbsrv_cv_have_td_version" >&6
4199 if test $gdbsrv_cv_have_td_version = yes; then
4201 cat >>confdefs.h
<<\_ACEOF
4202 #define HAVE_TD_VERSION 1
4207 if test "$srv_cv_tls_get_addr" = yes; then
4209 cat >>confdefs.h
<<\_ACEOF
4210 #define HAVE_TD_THR_TLS_GET_ADDR 1
4216 if test "$srv_xmltarget" != ""; then
4217 srv_xmltarget
="\$(XML_DIR)/$srv_xmltarget"
4218 srv_xmlbuiltin
="xml-builtin.o"
4220 cat >>confdefs.h
<<\_ACEOF
4225 tmp_xmlfiles
=$srv_xmlfiles
4226 srv_xmlfiles
="target.xml"
4227 for f
in $tmp_xmlfiles; do
4228 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
4232 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
4233 GDBSERVER_LIBS
="$srv_libs"
4242 ac_config_files
="$ac_config_files Makefile"
4243 ac_config_commands
="$ac_config_commands default"
4244 cat >confcache
<<\_ACEOF
4245 # This file is a shell script that caches the results of configure
4246 # tests run on this system so they can be shared between configure
4247 # scripts and configure runs, see configure's option --config-cache.
4248 # It is not useful on other systems. If it contains results you don't
4249 # want to keep, you may remove or edit it.
4251 # config.status only pays attention to the cache file if you give it
4252 # the --recheck option to rerun configure.
4254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4260 # The following way of writing the cache mishandles newlines in values,
4261 # but we know of no workaround that is simple, portable, and efficient.
4262 # So, don't put newlines in cache variables' values.
4263 # Ultrix sh set writes to stderr and can't be redirected directly,
4264 # and sets the high bit in the cache file unless we assign to the vars.
4267 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4269 # `set' does not quote correctly, so add quotes (double-quote
4270 # substitution turns \\\\ into \\, and sed turns \\ into \).
4273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4276 # `set' quotes correctly as required by POSIX, so do not add quotes.
4278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4287 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4289 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4290 if test -w $cache_file; then
4291 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4292 cat confcache
>$cache_file
4294 echo "not updating unwritable cache $cache_file"
4299 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4300 # Let make expand exec_prefix.
4301 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4305 # trailing colons and then remove the whole line if VPATH becomes empty
4306 # (actually we leave an empty line to preserve line numbers).
4307 if test "x$srcdir" = x.
; then
4308 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4309 s/:*\$(srcdir):*/:/;
4310 s/:*\${srcdir}:*/:/;
4312 s/^\([^=]*=[ ]*\):*/\1/;
4318 DEFS
=-DHAVE_CONFIG_H
4322 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4323 # 1. Remove the extension, and $U if already installed.
4324 ac_i
=`echo "$ac_i" |
4325 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4327 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4328 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4332 LTLIBOBJS
=$ac_ltlibobjs
4336 : ${CONFIG_STATUS=./config.status}
4337 ac_clean_files_save
=$ac_clean_files
4338 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4339 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4341 cat >$CONFIG_STATUS <<_ACEOF
4343 # Generated by $as_me.
4344 # Run this file to recreate the current configuration.
4345 # Compiler output produced by configure, useful for debugging
4346 # configure, is in config.log if it exists.
4351 SHELL=\${CONFIG_SHELL-$SHELL}
4354 cat >>$CONFIG_STATUS <<\_ACEOF
4355 ## --------------------- ##
4356 ## M4sh Initialization. ##
4357 ## --------------------- ##
4359 # Be Bourne compatible
4360 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4363 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4364 # is contrary to our usage. Disable this feature.
4365 alias -g '${1+"$@"}'='"$@"'
4366 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4369 DUALCASE
=1; export DUALCASE
# for MKS sh
4371 # Support unset when possible.
4372 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4379 # Work around bugs in pre-3.0 UWIN ksh.
4380 $as_unset ENV MAIL MAILPATH
4387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4389 LC_TELEPHONE LC_TIME
4391 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4392 eval $as_var=C
; export $as_var
4398 # Required to use basename.
4399 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4405 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4406 as_basename
=basename
4412 # Name of the executable.
4413 as_me
=`$as_basename "$0" ||
4414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4415 X"$0" : 'X\(//\)$' \| \
4416 X"$0" : 'X\(/\)$' \| \
4417 . : '\(.\)' 2>/dev/null ||
4419 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4420 /^X\/\(\/\/\)$/{ s//\1/; q; }
4421 /^X\/\(\/\).*/{ s//\1/; q; }
4425 # PATH needs CR, and LINENO needs CR and PATH.
4426 # Avoid depending upon Character Ranges.
4427 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4428 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4429 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4430 as_cr_digits
='0123456789'
4431 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4433 # The user is always right.
4434 if test "${PATH_SEPARATOR+set}" != set; then
4435 echo "#! /bin/sh" >conf$$.sh
4436 echo "exit 0" >>conf$$.sh
4438 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4449 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4450 test "x$as_lineno_1" != "x$as_lineno_2" &&
4451 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4452 # Find who we are. Look in the path if we contain no path at all
4455 *[\\/]* ) as_myself
=$0 ;;
4456 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir
=.
4461 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4466 # We did not find ourselves, most probably we were run as `sh COMMAND'
4467 # in which case we are not to be found in the path.
4468 if test "x$as_myself" = x
; then
4471 if test ! -f "$as_myself"; then
4472 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4473 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4474 { (exit 1); exit 1; }; }
4476 case $CONFIG_SHELL in
4478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4479 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4482 test -z "$as_dir" && as_dir
=.
4483 for as_base
in sh bash ksh sh5
; do
4486 if ("$as_dir/$as_base" -c '
4489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4490 test "x$as_lineno_1" != "x$as_lineno_2" &&
4491 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4492 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4493 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4494 CONFIG_SHELL
=$as_dir/$as_base
4496 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4504 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4505 # uniformly replaced by the line number. The first 'sed' inserts a
4506 # line-number line before each line; the second 'sed' does the real
4507 # work. The second script uses 'N' to pair each line-number line
4508 # with the numbered line, and appends trailing '-' during
4509 # substitution so that $LINENO is not a special case at line end.
4510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4511 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4512 sed '=' <$as_myself |
4517 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4520 s,^['$as_cr_digits']*\n,,
4522 chmod +x
$as_me.lineno ||
4523 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4524 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4525 { (exit 1); exit 1; }; }
4527 # Don't try to exec as it changes $[0], causing all sort of problems
4528 # (the dirname of $[0] is not the place where we might find the
4529 # original and so on. Autoconf is especially sensible to this).
4531 # Exit status is that of the last command.
4536 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4537 *c
*,-n*) ECHO_N
= ECHO_C
='
4539 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4540 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4543 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4549 rm -f conf$$ conf$$.exe conf$$.
file
4551 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4552 # We could just check for DJGPP; but this test a) works b) is more generic
4553 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4554 if test -f conf$$.exe
; then
4555 # Don't use ln at all; we don't have any links
4560 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4565 rm -f conf$$ conf$$.exe conf$$.
file
4567 if mkdir
-p .
2>/dev
/null
; then
4570 test -d .
/-p && rmdir .
/-p
4574 as_executable_p
="test -f"
4576 # Sed expression to map a string onto a valid CPP name.
4577 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4579 # Sed expression to map a string onto a valid variable name.
4580 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4584 # We need space, tab and new line, in precisely that order.
4594 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4595 # report actual input values of CONFIG_FILES etc. instead of their
4596 # values after options handling. Logging --version etc. is OK.
4600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4601 ## Running $as_me. ##
4606 This file was extended by $as_me, which was
4607 generated by GNU Autoconf 2.59. Invocation command line was
4609 CONFIG_FILES = $CONFIG_FILES
4610 CONFIG_HEADERS = $CONFIG_HEADERS
4611 CONFIG_LINKS = $CONFIG_LINKS
4612 CONFIG_COMMANDS = $CONFIG_COMMANDS
4616 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4620 # Files that config.status was made for.
4621 if test -n "$ac_config_files"; then
4622 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4625 if test -n "$ac_config_headers"; then
4626 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4629 if test -n "$ac_config_links"; then
4630 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4633 if test -n "$ac_config_commands"; then
4634 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4637 cat >>$CONFIG_STATUS <<\_ACEOF
4640 \`$as_me' instantiates files from templates according to the
4641 current configuration.
4643 Usage: $0 [OPTIONS] [FILE]...
4645 -h, --help print this help, then exit
4646 -V, --version print version number, then exit
4647 -q, --quiet do not print progress messages
4648 -d, --debug don't remove temporary files
4649 --recheck update $as_me by reconfiguring in the same conditions
4650 --file=FILE[:TEMPLATE]
4651 instantiate the configuration file FILE
4652 --header=FILE[:TEMPLATE]
4653 instantiate the configuration header FILE
4655 Configuration files:
4658 Configuration headers:
4661 Configuration commands:
4664 Report bugs to <bug-autoconf@gnu.org>."
4667 cat >>$CONFIG_STATUS <<_ACEOF
4670 configured by $0, generated by GNU Autoconf 2.59,
4671 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4673 Copyright (C) 2003 Free Software Foundation, Inc.
4674 This config.status script is free software; the Free Software Foundation
4675 gives unlimited permission to copy, distribute and modify it."
4680 cat >>$CONFIG_STATUS <<\_ACEOF
4681 # If no file are specified by the user, then we need to provide default
4682 # value. By we need to know if files were specified by the user.
4688 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4689 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4697 *) # This is not an option, so the user has probably given explicit
4700 ac_need_defaults
=false
;;
4704 # Handling of the options.
4706 cat >>$CONFIG_STATUS <<\_ACEOF
4707 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4709 --version |
--vers* |
-V )
4710 echo "$ac_cs_version"; exit 0 ;;
4712 # Conflict between --help and --header
4713 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4714 Try \`$0 --help' for more information." >&5
4715 echo "$as_me: error: ambiguous option: $1
4716 Try \`$0 --help' for more information." >&2;}
4717 { (exit 1); exit 1; }; };;
4718 --help |
--hel |
-h )
4719 echo "$ac_cs_usage"; exit 0 ;;
4720 --debug |
--d* |
-d )
4722 --file |
--fil |
--fi |
--f )
4724 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4725 ac_need_defaults
=false
;;
4726 --header |
--heade |
--head |
--hea )
4728 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4729 ac_need_defaults
=false
;;
4730 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4731 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4735 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4736 Try \`$0 --help' for more information." >&5
4737 echo "$as_me: error: unrecognized option: $1
4738 Try \`$0 --help' for more information." >&2;}
4739 { (exit 1); exit 1; }; } ;;
4741 *) ac_config_targets
="$ac_config_targets $1" ;;
4747 ac_configure_extra_args
=
4749 if $ac_cs_silent; then
4751 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4755 cat >>$CONFIG_STATUS <<_ACEOF
4756 if \$ac_cs_recheck; then
4757 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4758 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4767 cat >>$CONFIG_STATUS <<\_ACEOF
4768 for ac_config_target
in $ac_config_targets
4770 case "$ac_config_target" in
4771 # Handling of arguments.
4772 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4773 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
4774 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
4775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4777 { (exit 1); exit 1; }; };;
4781 # If the user did not use the arguments to specify the items to instantiate,
4782 # then the envvar interface is used. Set only those that are not.
4783 # We use the long form for the default assignment because of an extremely
4784 # bizarre bug on SunOS 4.1.3.
4785 if $ac_need_defaults; then
4786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4788 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
4791 # Have a temporary directory for convenience. Make it in the build tree
4792 # simply because there is no reason to put it here, and in addition,
4793 # creating and moving files from /tmp can sometimes cause problems.
4794 # Create a temporary directory, and hook for its removal unless debugging.
4797 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4798 trap '{ (exit 1); exit 1; }' 1 2 13 15
4801 # Create a (secure) tmp directory for tmp files.
4804 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4805 test -n "$tmp" && test -d "$tmp"
4808 tmp
=.
/confstat$$
-$RANDOM
4809 (umask 077 && mkdir
$tmp)
4812 echo "$me: cannot create a temporary directory in ." >&2
4813 { (exit 1); exit 1; }
4818 cat >>$CONFIG_STATUS <<_ACEOF
4821 # CONFIG_FILES section.
4824 # No need to generate the scripts if there are no CONFIG_FILES.
4825 # This happens for instance when ./config.status config.h
4826 if test -n "\$CONFIG_FILES"; then
4827 # Protect against being on the right side of a sed subst in config.status.
4828 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4829 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4830 s,@SHELL@,$SHELL,;t t
4831 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4832 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4833 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4834 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4835 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4836 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4837 s,@exec_prefix@,$exec_prefix,;t t
4838 s,@prefix@,$prefix,;t t
4839 s,@program_transform_name@,$program_transform_name,;t t
4840 s,@bindir@,$bindir,;t t
4841 s,@sbindir@,$sbindir,;t t
4842 s,@libexecdir@,$libexecdir,;t t
4843 s,@datadir@,$datadir,;t t
4844 s,@sysconfdir@,$sysconfdir,;t t
4845 s,@sharedstatedir@,$sharedstatedir,;t t
4846 s,@localstatedir@,$localstatedir,;t t
4847 s,@libdir@,$libdir,;t t
4848 s,@includedir@,$includedir,;t t
4849 s,@oldincludedir@,$oldincludedir,;t t
4850 s,@infodir@,$infodir,;t t
4851 s,@mandir@,$mandir,;t t
4852 s,@build_alias@,$build_alias,;t t
4853 s,@host_alias@,$host_alias,;t t
4854 s,@target_alias@,$target_alias,;t t
4856 s,@ECHO_C@,$ECHO_C,;t t
4857 s,@ECHO_N@,$ECHO_N,;t t
4858 s,@ECHO_T@,$ECHO_T,;t t
4861 s,@CFLAGS@,$CFLAGS,;t t
4862 s,@LDFLAGS@,$LDFLAGS,;t t
4863 s,@CPPFLAGS@,$CPPFLAGS,;t t
4864 s,@ac_ct_CC@,$ac_ct_CC,;t t
4865 s,@EXEEXT@,$EXEEXT,;t t
4866 s,@OBJEXT@,$OBJEXT,;t t
4867 s,@build@,$build,;t t
4868 s,@build_cpu@,$build_cpu,;t t
4869 s,@build_vendor@,$build_vendor,;t t
4870 s,@build_os@,$build_os,;t t
4872 s,@host_cpu@,$host_cpu,;t t
4873 s,@host_vendor@,$host_vendor,;t t
4874 s,@host_os@,$host_os,;t t
4875 s,@target@,$target,;t t
4876 s,@target_cpu@,$target_cpu,;t t
4877 s,@target_vendor@,$target_vendor,;t t
4878 s,@target_os@,$target_os,;t t
4879 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4880 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4881 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4883 s,@EGREP@,$EGREP,;t t
4884 s,@RDYNAMIC@,$RDYNAMIC,;t t
4885 s,@GDBSERVER_DEPFILES@,$GDBSERVER_DEPFILES,;t t
4886 s,@GDBSERVER_LIBS@,$GDBSERVER_LIBS,;t t
4887 s,@USE_THREAD_DB@,$USE_THREAD_DB,;t t
4888 s,@srv_xmlbuiltin@,$srv_xmlbuiltin,;t t
4889 s,@srv_xmlfiles@,$srv_xmlfiles,;t t
4890 s,@srv_xmltarget@,$srv_xmltarget,;t t
4891 s,@LIBOBJS@,$LIBOBJS,;t t
4892 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4897 cat >>$CONFIG_STATUS <<\_ACEOF
4898 # Split the substitutions into bite-sized pieces for seds with
4899 # small command number limits, like on Digital OSF/1 and HP-UX.
4901 ac_sed_frag
=1 # Number of current file.
4902 ac_beg
=1 # First line for current file.
4903 ac_end
=$ac_max_sed_lines # Line after last line for current file.
4906 while $ac_more_lines; do
4907 if test $ac_beg -gt 1; then
4908 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4910 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4912 if test ! -s $tmp/subs.frag
; then
4915 # The purpose of the label and of the branching condition is to
4916 # speed up the sed processing (if there are no `@' at all, there
4917 # is no need to browse any of the substitutions).
4918 # These are the two extra sed commands mentioned above.
4920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
4921 if test -z "$ac_sed_cmds"; then
4922 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
4924 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4926 ac_sed_frag
=`expr $ac_sed_frag + 1`
4928 ac_end
=`expr $ac_end + $ac_max_sed_lines`
4931 if test -z "$ac_sed_cmds"; then
4934 fi # test -n "$CONFIG_FILES"
4937 cat >>$CONFIG_STATUS <<\_ACEOF
4938 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
4939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4941 - |
*:- |
*:-:* ) # input from stdin
4943 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4944 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4945 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
4946 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
4947 * ) ac_file_in
=$ac_file.
in ;;
4950 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4951 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
4952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4953 X"$ac_file" : 'X\(//\)[^/]' \| \
4954 X"$ac_file" : 'X\(//\)$' \| \
4955 X"$ac_file" : 'X\(/\)' \| \
4956 . : '\(.\)' 2>/dev/null ||
4958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4960 /^X\(\/\/\)$/{ s//\1/; q; }
4961 /^X\(\/\).*/{ s//\1/; q; }
4963 { if $as_mkdir_p; then
4968 while test ! -d "$as_dir"; do
4969 as_dirs
="$as_dir $as_dirs"
4970 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
4971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4972 X"$as_dir" : 'X\(//\)[^/]' \| \
4973 X"$as_dir" : 'X\(//\)$' \| \
4974 X"$as_dir" : 'X\(/\)' \| \
4975 . : '\(.\)' 2>/dev/null ||
4977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4979 /^X\(\/\/\)$/{ s//\1/; q; }
4980 /^X\(\/\).*/{ s//\1/; q; }
4983 test ! -n "$as_dirs" || mkdir
$as_dirs
4984 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4985 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4986 { (exit 1); exit 1; }; }; }
4990 if test "$ac_dir" != .
; then
4991 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4992 # A "../" for each directory in $ac_dir_suffix.
4993 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4995 ac_dir_suffix
= ac_top_builddir
=
4999 .
) # No --srcdir option. We are building in place.
5001 if test -z "$ac_top_builddir"; then
5004 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5006 [\\/]* | ?
:[\\/]* ) # Absolute path.
5007 ac_srcdir
=$srcdir$ac_dir_suffix;
5008 ac_top_srcdir
=$srcdir ;;
5010 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5011 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5014 # Do not use `cd foo && pwd` to compute absolute paths, because
5015 # the directories may not exist.
5017 .
) ac_abs_builddir
="$ac_dir";;
5020 .
) ac_abs_builddir
=`pwd`;;
5021 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5022 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5025 case $ac_abs_builddir in
5026 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5028 case ${ac_top_builddir}.
in
5029 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5030 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5031 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5034 case $ac_abs_builddir in
5035 .
) ac_abs_srcdir
=$ac_srcdir;;
5038 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5039 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5040 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5043 case $ac_abs_builddir in
5044 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5046 case $ac_top_srcdir in
5047 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5048 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5049 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5055 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5056 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5059 if test x
"$ac_file" != x-
; then
5060 { echo "$as_me:$LINENO: creating $ac_file" >&5
5061 echo "$as_me: creating $ac_file" >&6;}
5064 # Let's still pretend it is `configure' which instantiates (i.e., don't
5065 # use $as_me), people would be surprised to read:
5066 # /* config.h. Generated by config.status. */
5067 if test x
"$ac_file" = x-
; then
5070 configure_input
="$ac_file. "
5072 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5073 sed 's,.*/,,'` by configure."
5075 # First look for the input files in the build tree, otherwise in the
5077 ac_file_inputs
=`IFS=:
5078 for f in $ac_file_in; do
5080 -) echo $tmp/stdin ;;
5082 # Absolute (can't be DOS-style, as IFS=:)
5083 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5084 echo "$as_me: error: cannot find input file: $f" >&2;}
5085 { (exit 1); exit 1; }; }
5088 if test -f "$f"; then
5091 elif test -f "$srcdir/$f"; then
5096 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5097 echo "$as_me: error: cannot find input file: $f" >&2;}
5098 { (exit 1); exit 1; }; }
5101 done` ||
{ (exit 1); exit 1; }
5103 cat >>$CONFIG_STATUS <<_ACEOF
5107 cat >>$CONFIG_STATUS <<\_ACEOF
5109 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5110 s
,@configure_input@
,$configure_input,;t t
5111 s
,@srcdir@
,$ac_srcdir,;t t
5112 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5113 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5114 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5115 s
,@builddir@
,$ac_builddir,;t t
5116 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5117 s
,@top_builddir@
,$ac_top_builddir,;t t
5118 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5119 s
,@INSTALL@
,$ac_INSTALL,;t t
5120 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5122 if test x"$ac_file" != x-; then
5123 mv $tmp/out $ac_file
5131 cat >>$CONFIG_STATUS <<\_ACEOF
5134 # CONFIG_HEADER section.
5137 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5138 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5140 # ac_d sets the value in "#define NAME VALUE" lines.
5141 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5142 ac_dB
='[ ].*$,\1#\2'
5145 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5146 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5147 ac_uB
='$,\1#\2define\3'
5151 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5154 - |
*:- |
*:-:* ) # input from stdin
5156 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5157 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5158 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5159 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5160 * ) ac_file_in
=$ac_file.
in ;;
5163 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5164 echo "$as_me: creating $ac_file" >&6;}
5166 # First look for the input files in the build tree, otherwise in the
5168 ac_file_inputs
=`IFS=:
5169 for f in $ac_file_in; do
5171 -) echo $tmp/stdin ;;
5173 # Absolute (can't be DOS-style, as IFS=:)
5174 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5175 echo "$as_me: error: cannot find input file: $f" >&2;}
5176 { (exit 1); exit 1; }; }
5177 # Do quote $f, to prevent DOS paths from being IFS'd.
5180 if test -f "$f"; then
5183 elif test -f "$srcdir/$f"; then
5188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5189 echo "$as_me: error: cannot find input file: $f" >&2;}
5190 { (exit 1); exit 1; }; }
5193 done` ||
{ (exit 1); exit 1; }
5194 # Remove the trailing spaces.
5195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5199 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5200 # `conftest.undefs', that substitutes the proper values into
5201 # config.h.in to produce config.h. The first handles `#define'
5202 # templates, and the second `#undef' templates.
5203 # And first: Protect against being on the right side of a sed subst in
5204 # config.status. Protect against being in an unquoted here document
5206 rm -f conftest.defines conftest.undefs
5207 # Using a here document instead of a string reduces the quoting nightmare.
5208 # Putting comments in sed scripts is not portable.
5210 # `end' is used to avoid that the second main sed command (meant for
5211 # 0-ary CPP macros) applies to n-ary macro definitions.
5212 # See the Autoconf documentation for `clear'.
5213 cat >confdef2sed.
sed <<\_ACEOF
5218 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5220 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5223 # If some macros were called several times there might be several times
5224 # the same #defines, which is useless. Nevertheless, we may not want to
5225 # sort them, since we want the *last* AC-DEFINE to be honored.
5226 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5227 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5228 rm -f confdef2sed.sed
5230 # This sed command replaces #undef with comments. This is necessary, for
5231 # example, in the case of _POSIX_SOURCE, which is predefined and required
5232 # on some systems where configure will not decide to define it.
5233 cat >>conftest.undefs <<\_ACEOF
5234 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5237 # Break up conftest.defines because some shells have a limit on the size
5238 # of here documents, and old seds have small limits too (100 cmds).
5239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5240 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5242 echo ' :' >>$CONFIG_STATUS
5244 while grep . conftest.defines >/dev/null
5246 # Write a limited-size here document to $tmp/defines.sed.
5247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5248 # Speed up: don't consider the non `#define' lines.
5249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5250 # Work around the forget-to-reset-the-flag bug.
5251 echo 't clr' >>$CONFIG_STATUS
5252 echo ': clr' >>$CONFIG_STATUS
5253 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5259 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5260 rm -f conftest.defines
5261 mv conftest.
tail conftest.defines
5263 rm -f conftest.defines
5264 echo ' fi # grep' >>$CONFIG_STATUS
5265 echo >>$CONFIG_STATUS
5267 # Break up conftest.undefs because some shells have a limit on the size
5268 # of here documents, and old seds have small limits too (100 cmds).
5269 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5271 while grep . conftest.undefs
>/dev
/null
5273 # Write a limited-size here document to $tmp/undefs.sed.
5274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5275 # Speed up: don't consider the non
`#undef'
5276 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5277 # Work around the forget-to-reset-the-flag bug.
5278 echo 't clr' >>$CONFIG_STATUS
5279 echo ': clr' >>$CONFIG_STATUS
5280 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5287 rm -f conftest.undefs
5288 mv conftest.tail conftest.undefs
5290 rm -f conftest.undefs
5292 cat >>$CONFIG_STATUS <<\_ACEOF
5293 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5294 # use $as_me), people would be surprised to read:
5295 # /* config.h. Generated by config.status. */
5296 if test x
"$ac_file" = x-
; then
5297 echo "/* Generated by configure. */" >$tmp/config.h
5299 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5301 cat $tmp/in >>$tmp/config.h
5303 if test x
"$ac_file" != x-
; then
5304 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5306 echo "$as_me: $ac_file is unchanged" >&6;}
5308 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5310 X"$ac_file" : 'X\(//\)[^/]' \| \
5311 X"$ac_file" : 'X\(//\)$' \| \
5312 X"$ac_file" : 'X\(/\)' \| \
5313 . : '\(.\)' 2>/dev/null ||
5315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5317 /^X\(\/\/\)$/{ s//\1/; q; }
5318 /^X\(\/\).*/{ s//\1/; q; }
5320 { if $as_mkdir_p; then
5325 while test ! -d "$as_dir"; do
5326 as_dirs
="$as_dir $as_dirs"
5327 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5329 X"$as_dir" : 'X\(//\)[^/]' \| \
5330 X"$as_dir" : 'X\(//\)$' \| \
5331 X"$as_dir" : 'X\(/\)' \| \
5332 . : '\(.\)' 2>/dev/null ||
5334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5336 /^X\(\/\/\)$/{ s//\1/; q; }
5337 /^X\(\/\).*/{ s//\1/; q; }
5340 test ! -n "$as_dirs" || mkdir
$as_dirs
5341 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5342 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5343 { (exit 1); exit 1; }; }; }
5346 mv $tmp/config.h
$ac_file
5354 cat >>$CONFIG_STATUS <<\_ACEOF
5357 # CONFIG_COMMANDS section.
5359 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
5360 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
5361 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5362 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
5363 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5364 X"$ac_dest" : 'X\(//\)[^/]' \| \
5365 X"$ac_dest" : 'X\(//\)$' \| \
5366 X"$ac_dest" : 'X\(/\)' \| \
5367 . : '\(.\)' 2>/dev/null ||
5369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5371 /^X\(\/\/\)$/{ s//\1/; q; }
5372 /^X\(\/\).*/{ s//\1/; q; }
5374 { if $as_mkdir_p; then
5379 while test ! -d "$as_dir"; do
5380 as_dirs
="$as_dir $as_dirs"
5381 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5383 X"$as_dir" : 'X\(//\)[^/]' \| \
5384 X"$as_dir" : 'X\(//\)$' \| \
5385 X"$as_dir" : 'X\(/\)' \| \
5386 . : '\(.\)' 2>/dev/null ||
5388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5390 /^X\(\/\/\)$/{ s//\1/; q; }
5391 /^X\(\/\).*/{ s//\1/; q; }
5394 test ! -n "$as_dirs" || mkdir
$as_dirs
5395 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5397 { (exit 1); exit 1; }; }; }
5401 if test "$ac_dir" != .
; then
5402 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5403 # A "../" for each directory in $ac_dir_suffix.
5404 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5406 ac_dir_suffix
= ac_top_builddir
=
5410 .
) # No --srcdir option. We are building in place.
5412 if test -z "$ac_top_builddir"; then
5415 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5417 [\\/]* | ?
:[\\/]* ) # Absolute path.
5418 ac_srcdir
=$srcdir$ac_dir_suffix;
5419 ac_top_srcdir
=$srcdir ;;
5421 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5422 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5425 # Do not use `cd foo && pwd` to compute absolute paths, because
5426 # the directories may not exist.
5428 .
) ac_abs_builddir
="$ac_dir";;
5431 .
) ac_abs_builddir
=`pwd`;;
5432 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5433 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5436 case $ac_abs_builddir in
5437 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5439 case ${ac_top_builddir}.
in
5440 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5441 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5442 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5445 case $ac_abs_builddir in
5446 .
) ac_abs_srcdir
=$ac_srcdir;;
5449 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5450 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5451 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5454 case $ac_abs_builddir in
5455 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5457 case $ac_top_srcdir in
5458 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5459 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5460 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5465 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5466 echo "$as_me: executing $ac_dest commands" >&6;}
5468 default
) case x
$CONFIG_HEADERS in
5469 xconfig.h
:config.
in)
5477 cat >>$CONFIG_STATUS <<\_ACEOF
5479 { (exit 0); exit 0; }
5481 chmod +x
$CONFIG_STATUS
5482 ac_clean_files
=$ac_clean_files_save
5485 # configure is writing to config.log, and then calls config.status.
5486 # config.status does its own redirection, appending to config.log.
5487 # Unfortunately, on DOS this fails, as config.log is still kept open
5488 # by configure, so config.status won't be able to write to it; its
5489 # output is simply discarded. So we exec the FD to /dev/null,
5490 # effectively closing config.log, so it can be properly (re)opened and
5491 # appended to by config.status. When coming back to configure, we
5492 # need to make the FD available again.
5493 if test "$no_create" != yes; then
5495 ac_config_status_args
=
5496 test "$silent" = yes &&
5497 ac_config_status_args
="$ac_config_status_args --quiet"
5499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5502 # would make configure fail if this is the last instruction.
5503 $ac_cs_success ||
{ (exit 1); exit 1; }