2 # From configure.in Revision: 1.172 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25 # Support unset when possible.
26 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C
; export $as_var
52 # Required to use basename.
53 if expr a
: '\(a\)' >/dev
/null
2>&1; then
59 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me
=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits
='0123456789'
85 as_cr_alnum
=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
103 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself
=$0 ;;
110 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir
=.
115 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x
; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
132 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir
=.
136 for as_base
in sh bash ksh sh5
; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
145 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
146 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
147 CONFIG_SHELL
=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x
$as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c
*,-n*) ECHO_N
= ECHO_C
='
191 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
192 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
195 if expr a
: '\(a\)' >/dev
/null
2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.
file
203 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe
; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.
file conf$$
2>/dev
/null
; then
217 rm -f conf$$ conf$$.exe conf$$.
file
219 if mkdir
-p .
2>/dev
/null
; then
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="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
="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
="tcpdump.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA 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 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-smb enable possibly-buggy SMB printer default
=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6
(with ipv4
) support
850 --disable-ipv6 disable ipv6 support
853 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
854 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
855 --without-gcc don
't use gcc
856 --without-crypto disable crypto support
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
867 Use these variables to override the choices made by `configure' or to
help
868 it to
find libraries and programs with nonstandard names
/locations.
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
876 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
877 test -d $ac_dir ||
continue
880 if test "$ac_dir" != .
; then
881 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 ac_dir_suffix
= ac_top_builddir
=
889 .
) # No --srcdir option. We are building in place.
891 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
896 [\\/]* | ?
:[\\/]* ) # Absolute path.
897 ac_srcdir
=$srcdir$ac_dir_suffix;
898 ac_top_srcdir
=$srcdir ;;
900 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
905 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu
; then
914 $SHELL $ac_srcdir/configure.gnu
--help=recursive
915 elif test -f $ac_srcdir/configure
; then
917 $SHELL $ac_srcdir/configure
--help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.
in; then
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
933 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934 Free Software Foundation
, Inc.
935 This configure
script is free software
; the Free Software Foundation
936 gives unlimited permission to copy
, distribute and modify it.
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
945 It was created by $as_me, which was
946 generated by GNU Autoconf 2.57. Invocation command line was
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
980 test -z "$as_dir" && as_dir
=.
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1005 ac_must_keep_next
=false
1011 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1015 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1021 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1022 if test $ac_must_keep_next = true
; then
1023 ac_must_keep_next
=false
# Got value, back to normal.
1026 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1027 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1028 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1029 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1030 case "$ac_configure_args0 " in
1031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 -* ) ac_must_keep_next
=true
;;
1037 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1038 # Get rid of the leading space.
1044 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1045 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1063 # The following way of writing the cache mishandles newlines in values,
1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1086 for ac_var in $ac_subst_vars
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1093 if test -n "$ac_subst_files"; then
1100 for ac_var in $ac_subst_files
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1108 if test -s confdefs.h; then
1115 sed "/^$/d" confdefs.h | sort
1118 test "$ac_signal" != 0 &&
1119 echo "$as_me: caught signal $ac_signal"
1120 echo "$as_me: exit $exit_status"
1122 rm -f core core.* *.core &&
1123 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 for ac_signal
in 1 2 13 15; do
1127 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest
* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 # Predefined preprocessor variables.
1138 cat >>confdefs.h
<<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1143 cat >>confdefs.h
<<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148 cat >>confdefs.h
<<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1153 cat >>confdefs.h
<<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1158 cat >>confdefs.h
<<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166 if test "x$prefix" != xNONE
; then
1167 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1169 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 for ac_site_file
in $CONFIG_SITE; do
1173 if test -r "$ac_site_file"; then
1174 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176 sed 's/^/| /' "$ac_site_file" >&5
1181 if test -r "$cache_file"; then
1182 # Some versions of bash will fail to source /dev/null (special
1183 # files actually), so we avoid doing that.
1184 if test -f "$cache_file"; then
1185 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1188 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1189 *) . .
/$cache_file;;
1193 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1198 # Check that the precious variables saved in the cache have kept the same
1200 ac_cache_corrupted
=false
1201 for ac_var
in `(set) 2>&1 |
1202 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1204 eval ac_new_set
=\
$ac_env_${ac_var}_set
1205 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1206 eval ac_new_val
="\$ac_env_${ac_var}_value"
1207 case $ac_old_set,$ac_new_set in
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211 ac_cache_corrupted
=: ;;
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215 ac_cache_corrupted
=: ;;
1218 if test "x$ac_old_val" != "x$ac_new_val"; then
1219 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222 echo "$as_me: former value: $ac_old_val" >&2;}
1223 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224 echo "$as_me: current value: $ac_new_val" >&2;}
1225 ac_cache_corrupted
=:
1228 # Pass precious variables to config.status.
1229 if test "$ac_new_set" = set; then
1231 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 *) ac_arg
=$ac_var=$ac_new_val ;;
1235 case " $ac_configure_args " in
1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1241 if $ac_cache_corrupted; then
1242 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246 { (exit 1); exit 1; }; }
1250 ac_cpp
='$CPP $CPPFLAGS'
1251 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1275 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1276 if test -f $ac_dir/install-sh
; then
1278 ac_install_sh
="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh
; then
1282 ac_install_sh
="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool
; then
1286 ac_install_sh
="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1299 # Make sure we can run config.sub.
1300 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1301 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1302 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1303 { (exit 1); exit 1; }; }
1305 echo "$as_me:$LINENO: checking build system type" >&5
1306 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1307 if test "${ac_cv_build+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 ac_cv_build_alias
=$build_alias
1311 test -z "$ac_cv_build_alias" &&
1312 ac_cv_build_alias
=`$ac_config_guess`
1313 test -z "$ac_cv_build_alias" &&
1314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1316 { (exit 1); exit 1; }; }
1317 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1318 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1319 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1320 { (exit 1); exit 1; }; }
1323 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1324 echo "${ECHO_T}$ac_cv_build" >&6
1326 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331 echo "$as_me:$LINENO: checking host system type" >&5
1332 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1333 if test "${ac_cv_host+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 ac_cv_host_alias
=$host_alias
1337 test -z "$ac_cv_host_alias" &&
1338 ac_cv_host_alias
=$ac_cv_build_alias
1339 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1342 { (exit 1); exit 1; }; }
1345 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1346 echo "${ECHO_T}$ac_cv_host" >&6
1348 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1359 # Check whether --with-gcc or --without-gcc was given.
1360 if test "${with_gcc+set}" = set; then
1366 if test "${srcdir}" != "." ; then
1367 V_INCLS
="-I\$(srcdir)"
1369 if test "${CFLAGS+set}" = set; then
1370 LBL_CFLAGS
="$CFLAGS"
1372 if test -z "$CC" ; then
1376 # Extract the first word of "shlicc2", so it can be a program name with args.
1377 set dummy shlicc2
; ac_word
=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 if test -n "$SHLICC2"; then
1384 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir
=.
1391 for ac_exec_ext
in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_SHLICC2
="yes"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1403 SHLICC2
=$ac_cv_prog_SHLICC2
1404 if test -n "$SHLICC2"; then
1405 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1406 echo "${ECHO_T}$SHLICC2" >&6
1408 echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1412 if test $SHLICC2 = yes ; then
1419 if test -z "$CC" -a "$with_gcc" = no
; then
1424 ac_cpp
='$CPP $CPPFLAGS'
1425 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1426 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1427 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1430 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC
="$CC" # Let the user override the test.
1439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1443 test -z "$as_dir" && as_dir
=.
1444 for ac_exec_ext
in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1456 if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1465 if test -z "$ac_cv_prog_CC"; then
1467 # Extract the first word of "gcc", so it can be a program name with args.
1468 set dummy gcc
; ac_word
=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC
="$ac_ct_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 ac_cv_prog_ac_ct_CC
="gcc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1494 if test -n "$ac_ct_CC"; then
1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496 echo "${ECHO_T}$ac_ct_CC" >&6
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1507 if test -z "$CC"; then
1508 if test -n "$ac_tool_prefix"; then
1509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1510 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC
="$CC" # Let the user override the test.
1519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir
=.
1524 for ac_exec_ext
in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 if test -n "$CC"; then
1537 echo "$as_me:$LINENO: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1545 if test -z "$ac_cv_prog_CC"; then
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc
; ac_word
=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1561 test -z "$as_dir" && as_dir
=.
1562 for ac_exec_ext
in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_ac_ct_CC
="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1574 if test -n "$ac_ct_CC"; then
1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1576 echo "${ECHO_T}$ac_ct_CC" >&6
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1588 if test -z "$CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc
; ac_word
=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC
="$CC" # Let the user override the test.
1600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1604 test -z "$as_dir" && as_dir
=.
1605 for ac_exec_ext
in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1608 ac_prog_rejected
=yes
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 if test $ac_prog_rejected = yes; then
1619 # We found a bogon in the path, so make sure we never use it.
1620 set dummy
$ac_cv_prog_CC
1622 if test $# != 0; then
1623 # We chose a different compiler from the bogus one.
1624 # However, it has the same basename, so the bogon will be chosen
1625 # first if we set CC to just the basename; use the full file name.
1627 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$CC"; then
1643 if test -n "$ac_tool_prefix"; then
1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC
="$CC" # Let the user override the test.
1656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir
=.
1661 for ac_exec_ext
in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 if test -n "$CC"; then
1674 echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1681 test -n "$CC" && break
1684 if test -z "$CC"; then
1688 # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy
$ac_prog; ac_word
=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir
=.
1703 for ac_exec_ext
in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC
="$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$ac_ct_CC" && break
1732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1733 See \`config.log' for more details." >&5
1734 echo "$as_me: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&2;}
1736 { (exit 1); exit 1; }; }
1738 # Provide some information about the compiler.
1739 echo "$as_me:$LINENO:" \
1740 "checking for C compiler version" >&5
1741 ac_compiler
=`set X $ac_compile; echo $2`
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1743 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1748 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1753 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1758 cat >conftest.
$ac_ext <<_ACEOF
1759 #line $LINENO "configure"
1762 cat confdefs.h
>>conftest.
$ac_ext
1763 cat >>conftest.
$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1774 ac_clean_files_save
=$ac_clean_files
1775 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1779 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1780 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1781 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 # b.out is created by i960 compilers.
1795 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1797 test -f "$ac_file" ||
continue
1799 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1802 # This is the source file.
1805 # We found the default executable, but exeext='' is most
1809 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.
$ac_ext >&5
1823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827 { (exit 77); exit 77; }; }
1830 ac_exeext
=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try
='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1849 if test "$cross_compiling" = maybe
; then
1852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1865 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1866 ac_clean_files
=$ac_clean_files_save
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1885 for ac_file
in conftest.exe conftest conftest.
*; do
1886 test -f "$ac_file" ||
continue
1888 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1889 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1903 rm -f conftest
$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1907 rm -f conftest.
$ac_ext
1908 EXEEXT
=$ac_cv_exeext
1910 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1912 if test "${ac_cv_objext+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 cat >conftest.
$ac_ext <<_ACEOF
1916 #line $LINENO "configure"
1919 cat confdefs.h
>>conftest.
$ac_ext
1920 cat >>conftest.
$ac_ext <<_ACEOF
1921 /* end confdefs.h. */
1931 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1939 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1940 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.
$ac_ext >&5
1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1955 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
1959 OBJEXT
=$ac_cv_objext
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 cat >conftest.
$ac_ext <<_ACEOF
1967 #line $LINENO "configure"
1970 cat confdefs.h
>>conftest.
$ac_ext
1971 cat >>conftest.
$ac_ext <<_ACEOF
1972 /* end confdefs.h. */
1985 rm -f conftest.
$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try
='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1999 echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.
$ac_ext >&5
2004 rm -f conftest.
$ac_objext conftest.
$ac_ext
2005 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2008 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2011 ac_test_CFLAGS
=${CFLAGS+set}
2012 ac_save_CFLAGS
=$CFLAGS
2014 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016 if test "${ac_cv_prog_cc_g+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 cat >conftest.
$ac_ext <<_ACEOF
2020 #line $LINENO "configure"
2023 cat confdefs.h
>>conftest.
$ac_ext
2024 cat >>conftest.
$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2035 rm -f conftest.
$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try
='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.
$ac_ext >&5
2054 rm -f conftest.
$ac_objext conftest.
$ac_ext
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS
=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2067 if test "$GCC" = yes; then
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 ac_cv_prog_cc_stdc
=no
2080 cat >conftest.
$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2084 cat confdefs.h
>>conftest.
$ac_ext
2085 cat >>conftest.
$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2089 #include <sys/types.h>
2090 #include <sys/stat.h>
2091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2092 struct buf { int x; };
2093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2094 static char *e (p, i)
2100 static char *f (char * (*g) (char **, int), char **p, ...)
2105 s = g (p, va_arg (v,int));
2109 int test (int i, double x);
2110 struct s1 {int (*f) (int a);};
2111 struct s2 {int (*f) (double a);};
2112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2123 # Don't try gcc -ansi; that turns off useful extensions and
2124 # breaks some systems' header files.
2125 # AIX -qlanglvl=ansi
2126 # Ultrix and OSF/1 -std1
2127 # HP-UX 10.20 and later -Ae
2128 # HP-UX older versions -Aa -D_HPUX_SOURCE
2129 # SVR4 -Xc -D__EXTENSIONS__
2130 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2132 CC
="$ac_save_CC $ac_arg"
2133 rm -f conftest.
$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } &&
2139 { ac_try
='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 ac_cv_prog_cc_stdc
=$ac_arg
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.
$ac_ext >&5
2152 rm -f conftest.
$ac_objext
2154 rm -f conftest.
$ac_ext conftest.
$ac_objext
2159 case "x$ac_cv_prog_cc_stdc" in
2161 echo "$as_me:$LINENO: result: none needed" >&5
2162 echo "${ECHO_T}none needed" >&6 ;;
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2166 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2169 # Some people use a C++ compiler to compile C. Since we use `exit',
2170 # in C++ we need to declare it. In case someone uses the same compiler
2171 # for both compiling C and C++ we need to have the C++ compiler decide
2172 # the declaration of exit, since it's the most demanding environment.
2173 cat >conftest.
$ac_ext <<_ACEOF
2178 rm -f conftest.
$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try
='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 for ac_declaration
in \
2192 '#include <stdlib.h>' \
2193 'extern "C" void std::exit (int) throw (); using std::exit;' \
2194 'extern "C" void std::exit (int); using std::exit;' \
2195 'extern "C" void exit (int) throw ();' \
2196 'extern "C" void exit (int);' \
2199 cat >conftest.
$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2203 cat confdefs.h
>>conftest.
$ac_ext
2204 cat >>conftest.
$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2216 rm -f conftest.
$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try
='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.
$ac_ext >&5
2235 rm -f conftest.
$ac_objext conftest.
$ac_ext
2236 cat >conftest.
$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2240 cat confdefs.h
>>conftest.
$ac_ext
2241 cat >>conftest.
$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2252 rm -f conftest.
$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try
='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.
$ac_ext >&5
2270 rm -f conftest.
$ac_objext conftest.
$ac_ext
2273 if test -n "$ac_declaration"; then
2274 echo '#ifdef __cplusplus' >>confdefs.h
2275 echo $ac_declaration >>confdefs.h
2276 echo '#endif' >>confdefs.h
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.
$ac_ext >&5
2284 rm -f conftest.
$ac_objext conftest.
$ac_ext
2286 ac_cpp
='$CPP $CPPFLAGS'
2287 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2291 if test "$GCC" = yes ; then
2292 if test "$SHLICC2" = yes ; then
2293 ac_cv_lbl_gcc_vers
=2
2296 echo "$as_me:$LINENO: checking gcc version" >&5
2297 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2298 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2302 sed -e '/^gcc version /!d' \
2303 -e 's/^gcc version //' \
2304 -e 's/ .*//' -e 's/^[^0-9]*//' \
2308 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2309 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2310 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2315 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2316 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2317 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.
$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2325 cat confdefs.h
>>conftest.
$ac_ext
2326 cat >>conftest.
$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2328 #include <sys/types.h>
2332 int frob(int, char *)
2337 rm -f conftest.
$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try
='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_lbl_cc_ansi_prototypes
=yes
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.
$ac_ext >&5
2354 ac_cv_lbl_cc_ansi_prototypes
=no
2356 rm -f conftest.
$ac_objext conftest.
$ac_ext
2359 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2360 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2361 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2365 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2366 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2367 savedcflags
="$CFLAGS"
2368 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2369 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 cat >conftest.
$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2376 cat confdefs.h
>>conftest.
$ac_ext
2377 cat >>conftest.
$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2379 #include <sys/types.h>
2383 int frob(int, char *)
2388 rm -f conftest.
$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try
='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_lbl_cc_hpux_cc_aa
=yes
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.
$ac_ext >&5
2405 ac_cv_lbl_cc_hpux_cc_aa
=no
2407 rm -f conftest.
$ac_objext conftest.
$ac_ext
2410 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2411 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2412 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2413 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2414 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2415 { (exit 1); exit 1; }; }
2417 CFLAGS
="$savedcflags"
2418 V_CCOPT
="-Aa $V_CCOPT"
2419 cat >>confdefs.h
<<\_ACEOF
2420 #define _HPUX_SOURCE 1
2426 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2427 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2428 { (exit 1); exit 1; }; }
2432 V_INCLS
="$V_INCLS -I/usr/local/include"
2433 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2438 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2442 V_CCOPT
="$V_CCOPT -std1 -O"
2446 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2447 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2448 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 cat >conftest.
$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2455 cat confdefs.h
>>conftest.
$ac_ext
2456 cat >>conftest.
$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2458 #include <sys/types.h>
2462 struct a { int b; };
2463 void c(const struct a *)
2468 rm -f conftest.
$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try
='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_lbl_cc_const_proto
=yes
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.
$ac_ext >&5
2485 ac_cv_lbl_cc_const_proto
=no
2487 rm -f conftest.
$ac_objext conftest.
$ac_ext
2490 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2491 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2492 if test $ac_cv_lbl_cc_const_proto = no
; then
2493 cat >>confdefs.h
<<\_ACEOF
2502 echo "$as_me:$LINENO: checking for inline" >&5
2503 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2504 if test "${ac_cv_lbl_inline+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 for ac_lbl_inline
in inline __inline__ __inline
2512 cat >conftest.
$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2516 cat confdefs.h
>>conftest.
$ac_ext
2517 cat >>conftest.
$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #define inline $ac_lbl_inline
2520 static inline struct iltest *foo(void);
2526 static inline struct iltest *
2529 static struct iltest xxx;
2541 rm -f conftest.
$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try
='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 ac_lbl_cc_inline
=yes
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.
$ac_ext >&5
2559 rm -f conftest.
$ac_objext conftest.
$ac_ext
2560 if test "$ac_lbl_cc_inline" = yes ; then
2564 if test "$ac_lbl_cc_inline" = yes ; then
2565 ac_cv_lbl_inline
=$ac_lbl_inline
2569 if test ! -z "$ac_cv_lbl_inline" ; then
2570 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2571 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2577 cat >>confdefs.h
<<_ACEOF
2578 #define inline $ac_cv_lbl_inline
2582 echo "$as_me:$LINENO: checking for __attribute__" >&5
2583 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2584 if test "${ac_cv___attribute__+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.
$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2592 cat confdefs.h
>>conftest.
$ac_ext
2593 cat >>conftest.
$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2602 static void foo(void) __attribute__ ((noreturn));
2614 rm -f conftest.
$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try
='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv___attribute__
=yes
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.
$ac_ext >&5
2631 ac_cv___attribute__
=no
2633 rm -f conftest.
$ac_objext conftest.
$ac_ext
2636 if test "$ac_cv___attribute__" = "yes"; then
2638 cat >>confdefs.h
<<\_ACEOF
2639 #define HAVE___ATTRIBUTE__ 1
2642 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2644 V_DEFS
="$V_DEFS -D_U_=\"\""
2646 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2647 echo "${ECHO_T}$ac_cv___attribute__" >&6
2651 ac_cpp
='$CPP $CPPFLAGS'
2652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2661 if test -z "$CPP"; then
2662 if test "${ac_cv_prog_CPP+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 # Double quotes because CPP needs to be expanded
2666 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2669 for ac_c_preproc_warn_flag
in '' yes
2671 # Use a header file that comes with gcc, so configuring glibc
2672 # with a fresh cross-compiler works.
2673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674 # <limits.h> exists even on freestanding compilers.
2675 # On the NeXT, cc -E runs the code through the compiler's parser,
2676 # not just through cpp. "Syntax error" is here to catch this case.
2677 cat >conftest.
$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2681 cat confdefs.h
>>conftest.
$ac_ext
2682 cat >>conftest.
$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2685 # include <limits.h>
2687 # include <assert.h>
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1
>conftest.err
2696 cat conftest.err
>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } >/dev
/null
; then
2699 if test -s conftest.err
; then
2700 ac_cpp_err
=$ac_c_preproc_warn_flag
2707 if test -z "$ac_cpp_err"; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.
$ac_ext >&5
2713 # Broken: fails on valid input.
2716 rm -f conftest.err conftest.
$ac_ext
2718 # OK, works on sane cases. Now check whether non-existent headers
2719 # can be detected and how.
2720 cat >conftest.
$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2724 cat confdefs.h
>>conftest.
$ac_ext
2725 cat >>conftest.
$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <ac_nonexistent.h>
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1
>conftest.err
2734 cat conftest.err
>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev
/null
; then
2737 if test -s conftest.err
; then
2738 ac_cpp_err
=$ac_c_preproc_warn_flag
2745 if test -z "$ac_cpp_err"; then
2746 # Broken: success on invalid input.
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.
$ac_ext >&5
2752 # Passes both tests.
2756 rm -f conftest.err conftest.
$ac_ext
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.
$ac_ext
2761 if $ac_preproc_ok; then
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2776 for ac_c_preproc_warn_flag
in '' yes
2778 # Use a header file that comes with gcc, so configuring glibc
2779 # with a fresh cross-compiler works.
2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781 # <limits.h> exists even on freestanding compilers.
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp. "Syntax error" is here to catch this case.
2784 cat >conftest.
$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2788 cat confdefs.h
>>conftest.
$ac_ext
2789 cat >>conftest.
$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2792 # include <limits.h>
2794 # include <assert.h>
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2801 grep -v '^ *+' conftest.er1
>conftest.err
2803 cat conftest.err
>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev
/null
; then
2806 if test -s conftest.err
; then
2807 ac_cpp_err
=$ac_c_preproc_warn_flag
2814 if test -z "$ac_cpp_err"; then
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.
$ac_ext >&5
2820 # Broken: fails on valid input.
2823 rm -f conftest.err conftest.
$ac_ext
2825 # OK, works on sane cases. Now check whether non-existent headers
2826 # can be detected and how.
2827 cat >conftest.
$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2831 cat confdefs.h
>>conftest.
$ac_ext
2832 cat >>conftest.
$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1
>conftest.err
2841 cat conftest.err
>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev
/null
; then
2844 if test -s conftest.err
; then
2845 ac_cpp_err
=$ac_c_preproc_warn_flag
2852 if test -z "$ac_cpp_err"; then
2853 # Broken: success on invalid input.
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.
$ac_ext >&5
2859 # Passes both tests.
2863 rm -f conftest.err conftest.
$ac_ext
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.
$ac_ext
2868 if $ac_preproc_ok; then
2871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2879 ac_cpp
='$CPP $CPPFLAGS'
2880 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2891 then ac_cv_prog_egrep
='grep -E'
2892 else ac_cv_prog_egrep
='egrep'
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897 EGREP
=$ac_cv_prog_egrep
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 cat >conftest.
$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2909 cat confdefs.h
>>conftest.
$ac_ext
2910 cat >>conftest.
$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2925 rm -f conftest.
$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try
='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_header_stdc
=yes
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.
$ac_ext >&5
2942 ac_cv_header_stdc
=no
2944 rm -f conftest.
$ac_objext conftest.
$ac_ext
2946 if test $ac_cv_header_stdc = yes; then
2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948 cat >conftest.
$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2952 cat confdefs.h
>>conftest.
$ac_ext
2953 cat >>conftest.
$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 $EGREP "memchr" >/dev
/null
2>&1; then
2962 ac_cv_header_stdc
=no
2968 if test $ac_cv_header_stdc = yes; then
2969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970 cat >conftest.
$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2974 cat confdefs.h
>>conftest.
$ac_ext
2975 cat >>conftest.
$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 $EGREP "free" >/dev
/null
2>&1; then
2984 ac_cv_header_stdc
=no
2990 if test $ac_cv_header_stdc = yes; then
2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992 if test "$cross_compiling" = yes; then
2995 cat >conftest.
$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2999 cat confdefs.h
>>conftest.
$ac_ext
3000 cat >>conftest.
$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3007 # define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3026 rm -f conftest
$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3039 echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.
$ac_ext >&5
3044 ac_cv_header_stdc
=no
3046 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3054 cat >>confdefs.h
<<\_ACEOF
3055 #define STDC_HEADERS 1
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3070 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3071 inttypes.h stdint.h unistd.h
3073 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 cat >conftest.
$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3083 cat confdefs.h
>>conftest.
$ac_ext
3084 cat >>conftest.
$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3088 #include <$ac_header>
3090 rm -f conftest.
$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try
='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 eval "$as_ac_Header=yes"
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.
$ac_ext >&5
3107 eval "$as_ac_Header=no"
3109 rm -f conftest.
$ac_objext conftest.
$ac_ext
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114 cat >>confdefs.h
<<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3128 for ac_header
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h netdnet
/dnetdb.h netinet
/ether.h
3130 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3132 echo "$as_me:$LINENO: checking for $ac_header" >&5
3133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3140 # Is the header compilable?
3141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3143 cat >conftest.
$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3147 cat confdefs.h
>>conftest.
$ac_ext
3148 cat >>conftest.
$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 $ac_includes_default
3151 #include <$ac_header>
3153 rm -f conftest.
$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try
='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_header_compiler
=yes
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.
$ac_ext >&5
3170 ac_header_compiler
=no
3172 rm -f conftest.
$ac_objext conftest.
$ac_ext
3173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3174 echo "${ECHO_T}$ac_header_compiler" >&6
3176 # Is the header present?
3177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3179 cat >conftest.
$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <$ac_header>
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev
/null
; then
3196 if test -s conftest.err
; then
3197 ac_cpp_err
=$ac_c_preproc_warn_flag
3204 if test -z "$ac_cpp_err"; then
3205 ac_header_preproc
=yes
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.
$ac_ext >&5
3210 ac_header_preproc
=no
3212 rm -f conftest.err conftest.
$ac_ext
3213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3214 echo "${ECHO_T}$ac_header_preproc" >&6
3216 # So? What about this header?
3217 case $ac_header_compiler:$ac_header_preproc in
3219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3225 ## ------------------------------------ ##
3226 ## Report this to bug-autoconf@gnu.org. ##
3227 ## ------------------------------------ ##
3230 sed "s/^/$as_me: WARNING: /" >&2
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3241 ## ------------------------------------ ##
3242 ## Report this to bug-autoconf@gnu.org. ##
3243 ## ------------------------------------ ##
3246 sed "s/^/$as_me: WARNING: /" >&2
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 eval "$as_ac_Header=$ac_header_preproc"
3256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3261 cat >>confdefs.h
<<_ACEOF
3262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3269 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3271 if test "${ac_cv_header_time+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 cat >conftest.
$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3278 cat confdefs.h
>>conftest.
$ac_ext
3279 cat >>conftest.
$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <sys/types.h>
3282 #include <sys/time.h>
3288 if ((struct tm *) 0)
3294 rm -f conftest.
$ac_objext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3296 (eval $ac_compile) 2>&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try
='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_header_time
=yes
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.
$ac_ext >&5
3311 ac_cv_header_time
=no
3313 rm -f conftest.
$ac_objext conftest.
$ac_ext
3315 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3316 echo "${ECHO_T}$ac_cv_header_time" >&6
3317 if test $ac_cv_header_time = yes; then
3319 cat >>confdefs.h
<<\_ACEOF
3320 #define TIME_WITH_SYS_TIME 1
3329 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3330 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3331 if test "$cross_compiling" = yes; then
3332 if test "${ac_cv_linux_vers+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 ac_cv_linux_vers
=unknown
3339 if test "${ac_cv_linux_vers+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 ac_cv_linux_vers
=`uname -r 2>&1 | \
3343 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3347 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3348 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3349 if test $ac_cv_linux_vers = unknown
; then
3350 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3351 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3352 { (exit 1); exit 1; }; }
3354 if test $ac_cv_linux_vers -lt 2 ; then
3355 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3356 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3357 { (exit 1); exit 1; }; }
3367 for ac_header
in smi.h
3369 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3371 echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3379 # Is the header compilable?
3380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3382 cat >conftest.
$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3386 cat confdefs.h
>>conftest.
$ac_ext
3387 cat >>conftest.
$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 $ac_includes_default
3390 #include <$ac_header>
3392 rm -f conftest.
$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try
='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_header_compiler
=yes
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.
$ac_ext >&5
3409 ac_header_compiler
=no
3411 rm -f conftest.
$ac_objext conftest.
$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3413 echo "${ECHO_T}$ac_header_compiler" >&6
3415 # Is the header present?
3416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3418 cat >conftest.
$ac_ext <<_ACEOF
3419 #line $LINENO "configure"
3422 cat confdefs.h
>>conftest.
$ac_ext
3423 cat >>conftest.
$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <$ac_header>
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3430 grep -v '^ *+' conftest.er1
>conftest.err
3432 cat conftest.err
>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev
/null
; then
3435 if test -s conftest.err
; then
3436 ac_cpp_err
=$ac_c_preproc_warn_flag
3443 if test -z "$ac_cpp_err"; then
3444 ac_header_preproc
=yes
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.
$ac_ext >&5
3449 ac_header_preproc
=no
3451 rm -f conftest.err conftest.
$ac_ext
3452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3453 echo "${ECHO_T}$ac_header_preproc" >&6
3455 # So? What about this header?
3456 case $ac_header_compiler:$ac_header_preproc in
3458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3464 ## ------------------------------------ ##
3465 ## Report this to bug-autoconf@gnu.org. ##
3466 ## ------------------------------------ ##
3469 sed "s/^/$as_me: WARNING: /" >&2
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3480 ## ------------------------------------ ##
3481 ## Report this to bug-autoconf@gnu.org. ##
3482 ## ------------------------------------ ##
3485 sed "s/^/$as_me: WARNING: /" >&2
3488 echo "$as_me:$LINENO: checking for $ac_header" >&5
3489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 eval "$as_ac_Header=$ac_header_preproc"
3495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3500 cat >>confdefs.h
<<_ACEOF
3501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3509 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3510 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3511 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 ac_check_lib_save_LIBS
=$LIBS
3516 cat >conftest.
$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3520 cat confdefs.h
>>conftest.
$ac_ext
3521 cat >>conftest.
$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3524 /* Override any gcc2 internal prototype to avoid an error. */
3528 /* We use char because int might match the return type of a gcc2
3529 builtin and then its argument prototype would still apply. */
3539 rm -f conftest.
$ac_objext conftest
$ac_exeext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3541 (eval $ac_link) 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try
='test -s conftest$ac_exeext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_cv_lib_smi_smiInit
=yes
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.
$ac_ext >&5
3556 ac_cv_lib_smi_smiInit
=no
3558 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3559 LIBS
=$ac_check_lib_save_LIBS
3561 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3562 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3563 if test $ac_cv_lib_smi_smiInit = yes; then
3564 cat >>confdefs.h
<<_ACEOF
3565 #define HAVE_LIBSMI 1
3572 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3574 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3575 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3576 if test "$cross_compiling" = yes; then
3577 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3578 echo "${ECHO_T}not when cross-compiling" >&6
3582 cat >conftest.
$ac_ext <<_ACEOF
3583 #line $LINENO "configure"
3586 cat confdefs.h
>>conftest.
$ac_ext
3587 cat >>conftest.
$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 /* libsmi available check */
3593 int current, revision, age, n;
3594 const int required = 2;
3597 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3599 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3602 if (required < current - age || required > current)
3608 rm -f conftest
$ac_exeext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3610 (eval $ac_link) 2>&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3621 cat >>confdefs.h
<<\_ACEOF
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3633 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3634 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3635 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3636 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3637 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3638 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3639 4) echo "$as_me:$LINENO: result: no - too old" >&5
3640 echo "${ECHO_T}no - too old" >&6 ;;
3641 *) echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6 ;;
3646 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3650 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3651 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3652 # Check whether --enable-smb or --disable-smb was given.
3653 if test "${enable_smb+set}" = set; then
3654 enableval
="$enable_smb"
3659 case "$enableval" in
3660 yes) echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3662 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3663 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3664 cat >>confdefs.h
<<\_ACEOF
3665 #define TCPDUMP_DO_SMB 1
3668 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
3670 *) echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3675 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3676 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3677 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3678 if test "${enable_ipv6+set}" = set; then
3679 enableval
="$enable_ipv6"
3680 case "$enableval" in
3681 yes) echo "$as_me:$LINENO: result: yes" >&5
3682 echo "${ECHO_T}yes" >&6
3683 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3684 cat >>confdefs.h
<<\_ACEOF
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3697 if test "$cross_compiling" = yes; then
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3703 cat >conftest.
$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3707 cat confdefs.h
>>conftest.
$ac_ext
3708 cat >>conftest.
$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* AF_INET6 available check */
3711 #include <sys/types.h>
3712 #include <sys/socket.h>
3715 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3722 rm -f conftest
$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3735 LOCALSRC
="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
3736 cat >>confdefs.h
<<\_ACEOF
3742 echo "$as_me: program exited with status $ac_status" >&5
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.
$ac_ext >&5
3747 echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3751 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3759 if test "$ipv6" = "yes"; then
3760 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3761 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3762 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
3765 cat >conftest.
$ac_ext <<_ACEOF
3766 #line $LINENO "configure"
3769 cat confdefs.h
>>conftest.
$ac_ext
3770 cat >>conftest.
$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 #include <netinet/in.h>
3773 #ifdef IPV6_INRIA_VERSION
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "yes" >/dev
/null
2>&1; then
3780 CFLAGS
="-DINET6 $CFLAGS"
3786 cat >conftest.
$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3790 cat confdefs.h
>>conftest.
$ac_ext
3791 cat >>conftest.
$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 #include <netinet/in.h>
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "yes" >/dev
/null
2>&1; then
3802 ipv6libdir
=/usr
/local
/v
6/lib
;
3804 CFLAGS
="-DINET6 $CFLAGS"
3810 cat >conftest.
$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3814 cat confdefs.h
>>conftest.
$ac_ext
3815 cat >>conftest.
$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <features.h>
3818 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 $EGREP "yes" >/dev
/null
2>&1; then
3825 CFLAGS
="-DINET6 $CFLAGS"
3831 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
3834 ipv6libdir
=/usr
/inet
6/lib
3836 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
3840 cat >conftest.
$ac_ext <<_ACEOF
3841 #line $LINENO "configure"
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <sys/param.h>
3848 #ifdef _TOSHIBA_INET6
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "yes" >/dev
/null
2>&1; then
3856 ipv6libdir
=/usr
/local
/v
6/lib
;
3857 CFLAGS
="-DINET6 $CFLAGS"
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include </usr/local/v6/include/sys/v6config.h>
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "yes" >/dev
/null
2>&1; then
3879 ipv6libdir
=/usr
/local
/v
6/lib
;
3880 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
3886 cat >conftest.
$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3890 cat confdefs.h
>>conftest.
$ac_ext
3891 cat >>conftest.
$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <sys/param.h>
3894 #ifdef _ZETA_MINAMI_INET6
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "yes" >/dev
/null
2>&1; then
3902 ipv6libdir
=/usr
/local
/v
6/lib
;
3903 CFLAGS
="-DINET6 $CFLAGS"
3909 if test "$ipv6type" != "unknown"; then
3913 echo "$as_me:$LINENO: result: $ipv6type" >&5
3914 echo "${ECHO_T}$ipv6type" >&6
3917 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
3918 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
3919 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
3920 echo "You have $ipv6lib library, using it"
3922 if test "$ipv6trylibc" = "yes"; then
3923 echo "You do not have $ipv6lib library, using libc"
3925 echo 'Fatal: no $ipv6lib library found. cannot continue.'
3926 echo "You need to fetch lib$ipv6lib.a from appropriate"
3927 echo 'ipv6 kit and compile beforehand.'
3934 if test "$ipv6" = "yes"; then
3936 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
3937 # function in libc; there are "ngetaddrinfo()" and
3938 # "ogetaddrinfo()" functions, and <netdb.h> #defines
3939 # "getaddrinfo" to be either "ngetaddrinfo" or
3940 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
3941 # or _XOPEN_SOURCE_EXTENDED are defined or not.
3943 # So this test doesn't work on Tru64 5.1, and possibly
3944 # on other 5.x releases. This causes the configure
3945 # script to become confused, and results in libpcap
3946 # being unbuildable.
3948 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
3949 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
3950 if test "${ac_cv_search_getaddrinfo+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 ac_func_search_save_LIBS
=$LIBS
3954 ac_cv_search_getaddrinfo
=no
3955 cat >conftest.
$ac_ext <<_ACEOF
3956 #line $LINENO "configure"
3959 cat confdefs.h
>>conftest.
$ac_ext
3960 cat >>conftest.
$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char getaddrinfo ();
3978 rm -f conftest.
$ac_objext conftest
$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try
='test -s conftest$ac_exeext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_search_getaddrinfo
="none required"
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.
$ac_ext >&5
3996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3997 if test "$ac_cv_search_getaddrinfo" = no
; then
3998 for ac_lib
in socket
; do
3999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4000 cat >conftest.
$ac_ext <<_ACEOF
4001 #line $LINENO "configure"
4004 cat confdefs.h
>>conftest.
$ac_ext
4005 cat >>conftest.
$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4008 /* Override any gcc2 internal prototype to avoid an error. */
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4014 char getaddrinfo ();
4023 rm -f conftest.
$ac_objext conftest
$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try
='test -s conftest$ac_exeext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_search_getaddrinfo
="-l$ac_lib"
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.
$ac_ext >&5
4042 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4045 LIBS
=$ac_func_search_save_LIBS
4047 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4048 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4049 if test "$ac_cv_search_getaddrinfo" != no
; then
4050 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4051 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4052 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4053 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if test "$cross_compiling" = yes; then
4057 td_cv_buggygetaddrinfo
=yes
4059 cat >conftest.
$ac_ext <<_ACEOF
4060 #line $LINENO "configure"
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 #include <sys/types.h>
4070 #include <sys/socket.h>
4071 #include <netinet/in.h>
4075 int passive, gaierr, inet4 = 0, inet6 = 0;
4076 struct addrinfo hints, *ai, *aitop;
4077 char straddr[INET6_ADDRSTRLEN], strport[16];
4079 for (passive = 0; passive <= 1; passive++) {
4080 memset(&hints, 0, sizeof(hints));
4081 hints.ai_family = AF_UNSPEC;
4082 hints.ai_flags = passive ? AI_PASSIVE : 0;
4083 hints.ai_socktype = SOCK_STREAM;
4084 hints.ai_protocol = IPPROTO_TCP;
4085 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4086 (void)gai_strerror(gaierr);
4089 for (ai = aitop; ai; ai = ai->ai_next) {
4090 if (ai->ai_addr == NULL ||
4091 ai->ai_addrlen == 0 ||
4092 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4093 straddr, sizeof(straddr), strport, sizeof(strport),
4094 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4097 switch (ai->ai_family) {
4099 if (strcmp(strport, "54321") != 0) {
4103 if (strcmp(straddr, "0.0.0.0") != 0) {
4107 if (strcmp(straddr, "127.0.0.1") != 0) {
4114 if (strcmp(strport, "54321") != 0) {
4118 if (strcmp(straddr, "::") != 0) {
4122 if (strcmp(straddr, "::1") != 0) {
4139 /* another family support? */
4145 /* supported family should be 2, unsupported family should be 0 */
4146 if (!(inet4 == 0 || inet4 == 2))
4148 if (!(inet6 == 0 || inet6 == 2))
4152 freeaddrinfo(aitop);
4157 freeaddrinfo(aitop);
4162 rm -f conftest
$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 td_cv_buggygetaddrinfo
=no
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.
$ac_ext >&5
4180 td_cv_buggygetaddrinfo
=yes
4182 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4186 if test "$td_cv_buggygetaddrinfo" = no
; then
4187 echo "$as_me:$LINENO: result: good" >&5
4188 echo "${ECHO_T}good" >&6
4190 echo "$as_me:$LINENO: result: buggy" >&5
4191 echo "${ECHO_T}buggy" >&6
4194 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4196 # XXX - it doesn't appear that "ipv6type" can ever be
4197 # set to "linux". Should this be testing for
4198 # "linux-glibc", or for that *or* "linux-libinet6"?
4199 # If the latter, note that "linux-libinet6" is also
4200 # the type given to some non-Linux OSes.
4202 if test "$ipv6type" != "linux"; then
4203 echo 'Fatal: You must get working getaddrinfo() function.'
4204 echo ' or you can specify "--disable-ipv6"'.
4207 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4208 echo ' Better upgrade your system library to newest version'
4209 echo ' of GNU C library (aka glibc).'
4217 for ac_func
in getaddrinfo getnameinfo
4219 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4220 echo "$as_me:$LINENO: checking for $ac_func" >&5
4221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4222 if eval "test \"\${$as_ac_var+set}\" = set"; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 cat >conftest.
$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func (); below.
4234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 <limits.h> exists even on freestanding compilers. */
4237 # include <limits.h>
4239 # include <assert.h>
4241 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4249 /* The GNU C library defines this for functions which it implements
4250 to always fail with ENOSYS. Some functions are actually named
4251 something starting with __ and the normal name is an alias. */
4252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4255 char (*f) () = $ac_func;
4264 return f != $ac_func;
4269 rm -f conftest.
$ac_objext conftest
$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try
='test -s conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 eval "$as_ac_var=yes"
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.
$ac_ext >&5
4286 eval "$as_ac_var=no"
4288 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4292 if test `eval echo '${'$as_ac_var'}'` = yes; then
4293 cat >>confdefs.h
<<_ACEOF
4294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4298 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4305 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4306 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4307 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 cat >conftest.
$ac_ext <<_ACEOF
4311 #line $LINENO "configure"
4314 cat confdefs.h
>>conftest.
$ac_ext
4315 cat >>conftest.
$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <netdnet/dnetdb.h>
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4322 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4324 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4329 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4330 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4331 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4332 cat >>confdefs.h
<<\_ACEOF
4333 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4338 echo "$as_me:$LINENO: checking for char" >&5
4339 echo $ECHO_N "checking for char... $ECHO_C" >&6
4340 if test "${ac_cv_type_char+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.
$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4347 cat confdefs.h
>>conftest.
$ac_ext
4348 cat >>conftest.
$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 $ac_includes_default
4362 rm -f conftest.
$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.
$ac_ext >&5
4381 rm -f conftest.
$ac_objext conftest.
$ac_ext
4383 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4384 echo "${ECHO_T}$ac_cv_type_char" >&6
4386 echo "$as_me:$LINENO: checking size of char" >&5
4387 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4388 if test "${ac_cv_sizeof_char+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test "$ac_cv_type_char" = yes; then
4392 # The cast to unsigned long works around a bug in the HP C Compiler
4393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4395 # This bug is HP SR number 8606223364.
4396 if test "$cross_compiling" = yes; then
4397 # Depending upon the size, compute the lo and hi bounds.
4398 cat >conftest.
$ac_ext <<_ACEOF
4399 #line $LINENO "configure"
4402 cat confdefs.h
>>conftest.
$ac_ext
4403 cat >>conftest.
$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 $ac_includes_default
4409 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4416 rm -f conftest.
$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try
='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4430 cat >conftest.
$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4434 cat confdefs.h
>>conftest.
$ac_ext
4435 cat >>conftest.
$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4441 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4448 rm -f conftest.
$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try
='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_hi
=$ac_mid; break
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.
$ac_ext >&5
4465 ac_lo
=`expr $ac_mid + 1`
4466 if test $ac_lo -le $ac_mid; then
4470 ac_mid
=`expr 2 '*' $ac_mid + 1`
4472 rm -f conftest.
$ac_objext conftest.
$ac_ext
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.
$ac_ext >&5
4478 cat >conftest.
$ac_ext <<_ACEOF
4479 #line $LINENO "configure"
4482 cat confdefs.h
>>conftest.
$ac_ext
4483 cat >>conftest.
$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 $ac_includes_default
4489 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4496 rm -f conftest.
$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try
='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4510 cat >conftest.
$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4514 cat confdefs.h
>>conftest.
$ac_ext
4515 cat >>conftest.
$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4528 rm -f conftest.
$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try
='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_lo
=$ac_mid; break
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.
$ac_ext >&5
4545 ac_hi
=`expr '(' $ac_mid ')' - 1`
4546 if test $ac_mid -le $ac_hi; then
4550 ac_mid
=`expr 2 '*' $ac_mid`
4552 rm -f conftest.
$ac_objext conftest.
$ac_ext
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4560 rm -f conftest.
$ac_objext conftest.
$ac_ext
4562 rm -f conftest.
$ac_objext conftest.
$ac_ext
4563 # Binary search between lo and hi bounds.
4564 while test "x$ac_lo" != "x$ac_hi"; do
4565 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4566 cat >conftest.
$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4570 cat confdefs.h
>>conftest.
$ac_ext
4571 cat >>conftest.
$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4577 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4584 rm -f conftest.
$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try
='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.
$ac_ext >&5
4601 ac_lo
=`expr '(' $ac_mid ')' + 1`
4603 rm -f conftest.
$ac_objext conftest.
$ac_ext
4606 ?
*) ac_cv_sizeof_char
=$ac_lo;;
4607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4608 See \`config.log' for more details." >&5
4609 echo "$as_me: error: cannot compute sizeof (char), 77
4610 See \`config.log' for more details." >&2;}
4611 { (exit 1); exit 1; }; } ;;
4614 if test "$cross_compiling" = yes; then
4615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4616 See \`config.log' for more details." >&5
4617 echo "$as_me: error: cannot run test program while cross compiling
4618 See \`config.log' for more details." >&2;}
4619 { (exit 1); exit 1; }; }
4621 cat >conftest.
$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4625 cat confdefs.h
>>conftest.
$ac_ext
4626 cat >>conftest.
$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 $ac_includes_default
4629 long longval () { return (long) (sizeof (char)); }
4630 unsigned long ulongval () { return (long) (sizeof (char)); }
4637 FILE *f = fopen ("conftest.val", "w");
4640 if (((long) (sizeof (char))) < 0)
4642 long i = longval ();
4643 if (i != ((long) (sizeof (char))))
4645 fprintf (f, "%ld\n", i);
4649 unsigned long i = ulongval ();
4650 if (i != ((long) (sizeof (char))))
4652 fprintf (f, "%lu\n", i);
4654 exit (ferror (f) || fclose (f) != 0);
4660 rm -f conftest
$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662 (eval $ac_link) 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_sizeof_char
=`cat conftest.val`
4673 echo "$as_me: program exited with status $ac_status" >&5
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4679 See \`config.log' for more details." >&5
4680 echo "$as_me: error: cannot compute sizeof (char), 77
4681 See \`config.log' for more details." >&2;}
4682 { (exit 1); exit 1; }; }
4684 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4693 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4694 cat >>confdefs.h
<<_ACEOF
4695 #define SIZEOF_CHAR $ac_cv_sizeof_char
4699 echo "$as_me:$LINENO: checking for short" >&5
4700 echo $ECHO_N "checking for short... $ECHO_C" >&6
4701 if test "${ac_cv_type_short+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 cat >conftest.
$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4708 cat confdefs.h
>>conftest.
$ac_ext
4709 cat >>conftest.
$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4723 rm -f conftest.
$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try
='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_type_short
=yes
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.
$ac_ext >&5
4742 rm -f conftest.
$ac_objext conftest.
$ac_ext
4744 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4745 echo "${ECHO_T}$ac_cv_type_short" >&6
4747 echo "$as_me:$LINENO: checking size of short" >&5
4748 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4749 if test "${ac_cv_sizeof_short+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 if test "$ac_cv_type_short" = yes; then
4753 # The cast to unsigned long works around a bug in the HP C Compiler
4754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4756 # This bug is HP SR number 8606223364.
4757 if test "$cross_compiling" = yes; then
4758 # Depending upon the size, compute the lo and hi bounds.
4759 cat >conftest.
$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4770 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4777 rm -f conftest.
$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try
='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4791 cat >conftest.
$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4795 cat confdefs.h
>>conftest.
$ac_ext
4796 cat >>conftest.
$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 $ac_includes_default
4802 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4809 rm -f conftest.
$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try
='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_hi
=$ac_mid; break
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4826 ac_lo
=`expr $ac_mid + 1`
4827 if test $ac_lo -le $ac_mid; then
4831 ac_mid
=`expr 2 '*' $ac_mid + 1`
4833 rm -f conftest.
$ac_objext conftest.
$ac_ext
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.
$ac_ext >&5
4839 cat >conftest.
$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4843 cat confdefs.h
>>conftest.
$ac_ext
4844 cat >>conftest.
$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 $ac_includes_default
4850 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4857 rm -f conftest.
$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try
='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4871 cat >conftest.
$ac_ext <<_ACEOF
4872 #line $LINENO "configure"
4875 cat confdefs.h
>>conftest.
$ac_ext
4876 cat >>conftest.
$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 $ac_includes_default
4882 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4889 rm -f conftest.
$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try
='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_lo
=$ac_mid; break
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.
$ac_ext >&5
4906 ac_hi
=`expr '(' $ac_mid ')' - 1`
4907 if test $ac_mid -le $ac_hi; then
4911 ac_mid
=`expr 2 '*' $ac_mid`
4913 rm -f conftest.
$ac_objext conftest.
$ac_ext
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.
$ac_ext >&5
4921 rm -f conftest.
$ac_objext conftest.
$ac_ext
4923 rm -f conftest.
$ac_objext conftest.
$ac_ext
4924 # Binary search between lo and hi bounds.
4925 while test "x$ac_lo" != "x$ac_hi"; do
4926 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4927 cat >conftest.
$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4931 cat confdefs.h
>>conftest.
$ac_ext
4932 cat >>conftest.
$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 $ac_includes_default
4938 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.
$ac_ext >&5
4962 ac_lo
=`expr '(' $ac_mid ')' + 1`
4964 rm -f conftest.
$ac_objext conftest.
$ac_ext
4967 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4969 See \`config.log' for more details." >&5
4970 echo "$as_me: error: cannot compute sizeof (short), 77
4971 See \`config.log' for more details." >&2;}
4972 { (exit 1); exit 1; }; } ;;
4975 if test "$cross_compiling" = yes; then
4976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4977 See \`config.log' for more details." >&5
4978 echo "$as_me: error: cannot run test program while cross compiling
4979 See \`config.log' for more details." >&2;}
4980 { (exit 1); exit 1; }; }
4982 cat >conftest.
$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4986 cat confdefs.h
>>conftest.
$ac_ext
4987 cat >>conftest.
$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4990 long longval () { return (long) (sizeof (short)); }
4991 unsigned long ulongval () { return (long) (sizeof (short)); }
4998 FILE *f = fopen ("conftest.val", "w");
5001 if (((long) (sizeof (short))) < 0)
5003 long i = longval ();
5004 if (i != ((long) (sizeof (short))))
5006 fprintf (f, "%ld\n", i);
5010 unsigned long i = ulongval ();
5011 if (i != ((long) (sizeof (short))))
5013 fprintf (f, "%lu\n", i);
5015 exit (ferror (f) || fclose (f) != 0);
5021 rm -f conftest
$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_sizeof_short
=`cat conftest.val`
5034 echo "$as_me: program exited with status $ac_status" >&5
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.
$ac_ext >&5
5039 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: cannot compute sizeof (short), 77
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5045 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5050 ac_cv_sizeof_short
=0
5053 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5054 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5055 cat >>confdefs.h
<<_ACEOF
5056 #define SIZEOF_SHORT $ac_cv_sizeof_short
5060 echo "$as_me:$LINENO: checking for int" >&5
5061 echo $ECHO_N "checking for int... $ECHO_C" >&6
5062 if test "${ac_cv_type_int+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 cat >conftest.
$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5069 cat confdefs.h
>>conftest.
$ac_ext
5070 cat >>conftest.
$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5084 rm -f conftest.
$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try
='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.
$ac_ext >&5
5103 rm -f conftest.
$ac_objext conftest.
$ac_ext
5105 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5106 echo "${ECHO_T}$ac_cv_type_int" >&6
5108 echo "$as_me:$LINENO: checking size of int" >&5
5109 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5110 if test "${ac_cv_sizeof_int+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 if test "$ac_cv_type_int" = yes; then
5114 # The cast to unsigned long works around a bug in the HP C Compiler
5115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5117 # This bug is HP SR number 8606223364.
5118 if test "$cross_compiling" = yes; then
5119 # Depending upon the size, compute the lo and hi bounds.
5120 cat >conftest.
$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5124 cat confdefs.h
>>conftest.
$ac_ext
5125 cat >>conftest.
$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 $ac_includes_default
5131 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5138 rm -f conftest.
$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try
='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5152 cat >conftest.
$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5156 cat confdefs.h
>>conftest.
$ac_ext
5157 cat >>conftest.
$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 $ac_includes_default
5163 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5170 rm -f conftest.
$ac_objext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try
='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_hi
=$ac_mid; break
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.
$ac_ext >&5
5187 ac_lo
=`expr $ac_mid + 1`
5188 if test $ac_lo -le $ac_mid; then
5192 ac_mid
=`expr 2 '*' $ac_mid + 1`
5194 rm -f conftest.
$ac_objext conftest.
$ac_ext
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.
$ac_ext >&5
5200 cat >conftest.
$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 $ac_includes_default
5211 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5218 rm -f conftest.
$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try
='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5232 cat >conftest.
$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5236 cat confdefs.h
>>conftest.
$ac_ext
5237 cat >>conftest.
$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5243 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5250 rm -f conftest.
$ac_objext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5252 (eval $ac_compile) 2>&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try
='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_lo
=$ac_mid; break
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.
$ac_ext >&5
5267 ac_hi
=`expr '(' $ac_mid ')' - 1`
5268 if test $ac_mid -le $ac_hi; then
5272 ac_mid
=`expr 2 '*' $ac_mid`
5274 rm -f conftest.
$ac_objext conftest.
$ac_ext
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.
$ac_ext >&5
5282 rm -f conftest.
$ac_objext conftest.
$ac_ext
5284 rm -f conftest.
$ac_objext conftest.
$ac_ext
5285 # Binary search between lo and hi bounds.
5286 while test "x$ac_lo" != "x$ac_hi"; do
5287 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5288 cat >conftest.
$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5292 cat confdefs.h
>>conftest.
$ac_ext
5293 cat >>conftest.
$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5299 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5306 rm -f conftest.
$ac_objext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308 (eval $ac_compile) 2>&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try
='test -s conftest.$ac_objext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5323 ac_lo
=`expr '(' $ac_mid ')' + 1`
5325 rm -f conftest.
$ac_objext conftest.
$ac_ext
5328 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5329 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: cannot compute sizeof (int), 77
5332 See \`config.log' for more details." >&2;}
5333 { (exit 1); exit 1; }; } ;;
5336 if test "$cross_compiling" = yes; then
5337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: cannot run test program while cross compiling
5340 See \`config.log' for more details." >&2;}
5341 { (exit 1); exit 1; }; }
5343 cat >conftest.
$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 $ac_includes_default
5351 long longval () { return (long) (sizeof (int)); }
5352 unsigned long ulongval () { return (long) (sizeof (int)); }
5359 FILE *f = fopen ("conftest.val", "w");
5362 if (((long) (sizeof (int))) < 0)
5364 long i = longval ();
5365 if (i != ((long) (sizeof (int))))
5367 fprintf (f, "%ld\n", i);
5371 unsigned long i = ulongval ();
5372 if (i != ((long) (sizeof (int))))
5374 fprintf (f, "%lu\n", i);
5376 exit (ferror (f) || fclose (f) != 0);
5382 rm -f conftest
$ac_exeext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384 (eval $ac_link) 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_sizeof_int
=`cat conftest.val`
5395 echo "$as_me: program exited with status $ac_status" >&5
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.
$ac_ext >&5
5400 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5401 See \`config.log' for more details." >&5
5402 echo "$as_me: error: cannot compute sizeof (int), 77
5403 See \`config.log' for more details." >&2;}
5404 { (exit 1); exit 1; }; }
5406 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5414 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5415 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5416 cat >>confdefs.h
<<_ACEOF
5417 #define SIZEOF_INT $ac_cv_sizeof_int
5421 echo "$as_me:$LINENO: checking for long" >&5
5422 echo $ECHO_N "checking for long... $ECHO_C" >&6
5423 if test "${ac_cv_type_long+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 cat >conftest.
$ac_ext <<_ACEOF
5427 #line $LINENO "configure"
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5445 rm -f conftest.
$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447 (eval $ac_compile) 2>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try
='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.
$ac_ext >&5
5464 rm -f conftest.
$ac_objext conftest.
$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5467 echo "${ECHO_T}$ac_cv_type_long" >&6
5469 echo "$as_me:$LINENO: checking size of long" >&5
5470 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5471 if test "${ac_cv_sizeof_long+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test "$ac_cv_type_long" = yes; then
5475 # The cast to unsigned long works around a bug in the HP C Compiler
5476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5478 # This bug is HP SR number 8606223364.
5479 if test "$cross_compiling" = yes; then
5480 # Depending upon the size, compute the lo and hi bounds.
5481 cat >conftest.
$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5485 cat confdefs.h
>>conftest.
$ac_ext
5486 cat >>conftest.
$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5492 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5499 rm -f conftest.
$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try
='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5513 cat >conftest.
$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5517 cat confdefs.h
>>conftest.
$ac_ext
5518 cat >>conftest.
$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5524 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5531 rm -f conftest.
$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try
='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_hi
=$ac_mid; break
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 ac_lo
=`expr $ac_mid + 1`
5549 if test $ac_lo -le $ac_mid; then
5553 ac_mid
=`expr 2 '*' $ac_mid + 1`
5555 rm -f conftest.
$ac_objext conftest.
$ac_ext
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.
$ac_ext >&5
5561 cat >conftest.
$ac_ext <<_ACEOF
5562 #line $LINENO "configure"
5565 cat confdefs.h
>>conftest.
$ac_ext
5566 cat >>conftest.
$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 $ac_includes_default
5572 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5579 rm -f conftest.
$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try
='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5593 cat >conftest.
$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5597 cat confdefs.h
>>conftest.
$ac_ext
5598 cat >>conftest.
$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 $ac_includes_default
5604 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5611 rm -f conftest.
$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try
='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_lo
=$ac_mid; break
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.
$ac_ext >&5
5628 ac_hi
=`expr '(' $ac_mid ')' - 1`
5629 if test $ac_mid -le $ac_hi; then
5633 ac_mid
=`expr 2 '*' $ac_mid`
5635 rm -f conftest.
$ac_objext conftest.
$ac_ext
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.
$ac_ext >&5
5643 rm -f conftest.
$ac_objext conftest.
$ac_ext
5645 rm -f conftest.
$ac_objext conftest.
$ac_ext
5646 # Binary search between lo and hi bounds.
5647 while test "x$ac_lo" != "x$ac_hi"; do
5648 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5649 cat >conftest.
$ac_ext <<_ACEOF
5650 #line $LINENO "configure"
5653 cat confdefs.h
>>conftest.
$ac_ext
5654 cat >>conftest.
$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 $ac_includes_default
5660 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5667 rm -f conftest.
$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try
='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.
$ac_ext >&5
5684 ac_lo
=`expr '(' $ac_mid ')' + 1`
5686 rm -f conftest.
$ac_objext conftest.
$ac_ext
5689 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5691 See \`config.log' for more details." >&5
5692 echo "$as_me: error: cannot compute sizeof (long), 77
5693 See \`config.log' for more details." >&2;}
5694 { (exit 1); exit 1; }; } ;;
5697 if test "$cross_compiling" = yes; then
5698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5699 See \`config.log' for more details." >&5
5700 echo "$as_me: error: cannot run test program while cross compiling
5701 See \`config.log' for more details." >&2;}
5702 { (exit 1); exit 1; }; }
5704 cat >conftest.
$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5708 cat confdefs.h
>>conftest.
$ac_ext
5709 cat >>conftest.
$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5712 long longval () { return (long) (sizeof (long)); }
5713 unsigned long ulongval () { return (long) (sizeof (long)); }
5720 FILE *f = fopen ("conftest.val", "w");
5723 if (((long) (sizeof (long))) < 0)
5725 long i = longval ();
5726 if (i != ((long) (sizeof (long))))
5728 fprintf (f, "%ld\n", i);
5732 unsigned long i = ulongval ();
5733 if (i != ((long) (sizeof (long))))
5735 fprintf (f, "%lu\n", i);
5737 exit (ferror (f) || fclose (f) != 0);
5743 rm -f conftest
$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_sizeof_long
=`cat conftest.val`
5756 echo "$as_me: program exited with status $ac_status" >&5
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.
$ac_ext >&5
5761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5762 See \`config.log' for more details." >&5
5763 echo "$as_me: error: cannot compute sizeof (long), 77
5764 See \`config.log' for more details." >&2;}
5765 { (exit 1); exit 1; }; }
5767 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5776 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5777 cat >>confdefs.h
<<_ACEOF
5778 #define SIZEOF_LONG $ac_cv_sizeof_long
5785 echo "$as_me:$LINENO: checking for addrinfo" >&5
5786 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
5787 if test "${ac_cv_addrinfo+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 cat >conftest.
$ac_ext <<_ACEOF
5791 #line $LINENO "configure"
5794 cat confdefs.h
>>conftest.
$ac_ext
5795 cat >>conftest.
$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5807 rm -f conftest.
$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try
='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.
$ac_ext >&5
5826 rm -f conftest.
$ac_objext conftest.
$ac_ext
5829 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5830 echo "${ECHO_T}$ac_cv_addrinfo" >&6
5831 if test $ac_cv_addrinfo = yes; then
5832 cat >>confdefs.h
<<\_ACEOF
5833 #define HAVE_ADDRINFO 1
5837 cat >>confdefs.h
<<\_ACEOF
5838 #define NEED_ADDRINFO_H 1
5843 if test "$ac_cv_addrinfo" = no
; then
5844 missing_includes
=yes
5848 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5849 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
5850 if test "${ac_cv_maxserv+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 cat >conftest.
$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5857 cat confdefs.h
>>conftest.
$ac_ext
5858 cat >>conftest.
$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "yes" >/dev
/null
2>&1; then
5875 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5876 echo "${ECHO_T}$ac_cv_maxserv" >&6
5877 if test $ac_cv_maxserv != yes; then
5878 cat >>confdefs.h
<<\_ACEOF
5879 #define NEED_ADDRINFO_H 1
5884 if test "$ac_cv_maxserv" = no
; then
5885 missing_includes
=yes
5889 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5890 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
5891 if test "${ac_cv_namereqd+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 cat >conftest.
$ac_ext <<_ACEOF
5895 #line $LINENO "configure"
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907 $EGREP "yes" >/dev
/null
2>&1; then
5916 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5917 echo "${ECHO_T}$ac_cv_namereqd" >&6
5918 if test $ac_cv_namereqd != yes; then
5919 cat >>confdefs.h
<<\_ACEOF
5920 #define NEED_ADDRINFO_H 1
5925 if test "$ac_cv_namereqd" = no
; then
5926 missing_includes
=yes
5930 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5931 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
5932 if test "${ac_cv_sa_storage+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 cat >conftest.
$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5939 cat confdefs.h
>>conftest.
$ac_ext
5940 cat >>conftest.
$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5943 # include <sys/types.h>
5944 # include <sys/socket.h>
5948 struct sockaddr_storage s
5953 rm -f conftest.
$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try
='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_sa_storage
=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.
$ac_ext >&5
5972 rm -f conftest.
$ac_objext conftest.
$ac_ext
5975 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5976 echo "${ECHO_T}$ac_cv_sa_storage" >&6
5977 if test $ac_cv_sa_storage = yes; then
5978 cat >>confdefs.h
<<\_ACEOF
5979 #define HAVE_SOCKADDR_STORAGE 1
5984 if test "$ac_cv_sa_storage" = no
; then
5985 missing_includes
=yes
5990 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
5991 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
5992 if test "${ac_cv_inaddrsz+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 cat >conftest.
$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5999 cat confdefs.h
>>conftest.
$ac_ext
6000 cat >>conftest.
$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6003 # include <arpa/nameser.h>
6012 rm -f conftest.
$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try
='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.
$ac_ext >&5
6031 rm -f conftest.
$ac_objext conftest.
$ac_ext
6034 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6035 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6036 if test $ac_cv_inaddrsz = yes; then
6037 cat >>confdefs.h
<<\_ACEOF
6038 #define HAVE_INADDRSZ 1
6044 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6045 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6046 if test "${ac_cv_in6addrsz+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 cat >conftest.
$ac_ext <<_ACEOF
6050 #line $LINENO "configure"
6053 cat confdefs.h
>>conftest.
$ac_ext
6054 cat >>conftest.
$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6057 # include <arpa/nameser.h>
6066 rm -f conftest.
$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try
='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6085 rm -f conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6089 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6090 if test $ac_cv_in6addrsz = yes; then
6091 cat >>confdefs.h
<<\_ACEOF
6092 #define HAVE_IN6ADDRSZ 1
6099 if test "$ac_cv_addrsz" = no
; then
6100 missing_includes
=yes
6104 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6105 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6106 if test "${ac_cv_res_inet6+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 cat >conftest.
$ac_ext <<_ACEOF
6110 #line $LINENO "configure"
6113 cat confdefs.h
>>conftest.
$ac_ext
6114 cat >>conftest.
$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 # include <sys/types.h>
6118 # include <netinet/in.h>
6119 # include <resolv.h>
6123 int a = RES_USE_INET6
6128 rm -f conftest.
$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try
='test -s conftest.$ac_objext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.
$ac_ext >&5
6147 rm -f conftest.
$ac_objext conftest.
$ac_ext
6150 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6151 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6152 if test $ac_cv_res_inet6 = yes; then
6153 cat >>confdefs.h
<<\_ACEOF
6154 #define HAVE_RES_USE_INET6 1
6159 if test "$ac_cv_res_inet6" = no
; then
6160 missing_includes
=yes
6164 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6165 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6166 if test "${ac_cv_res_state_ext+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 cat >conftest.
$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6173 cat confdefs.h
>>conftest.
$ac_ext
6174 cat >>conftest.
$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6177 # include <sys/types.h>
6178 # include <netinet/in.h>
6179 # include <netinet6/in6.h>
6180 # include <resolv.h>
6184 struct __res_state_ext e
6189 rm -f conftest.
$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try
='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_res_state_ext
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_cv_res_state_ext
=no
6208 rm -f conftest.
$ac_objext conftest.
$ac_ext
6211 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6212 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6213 if test $ac_cv_res_state_ext = yes; then
6214 cat >>confdefs.h
<<\_ACEOF
6215 #define HAVE_RES_STATE_EXT 1
6220 if test "$ac_cv_res_state_ext" = no
; then
6221 missing_includes
=yes
6225 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6226 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6227 if test "${ac_cv_res_state+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.
$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6238 # include <sys/types.h>
6239 # include <netinet/in.h>
6240 # include <netinet6/in6.h>
6241 # include <resolv.h>
6245 struct __res_state e; e.nsort = 0
6250 rm -f conftest.
$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try
='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6269 rm -f conftest.
$ac_objext conftest.
$ac_ext
6272 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6273 echo "${ECHO_T}$ac_cv_res_state" >&6
6274 if test $ac_cv_res_state = yes; then
6275 cat >>confdefs.h
<<\_ACEOF
6276 #define HAVE_NEW_RES_STATE 1
6289 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6291 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6292 echo "$as_me:$LINENO: checking for $ac_func" >&5
6293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6294 if eval "test \"\${$as_ac_var+set}\" = set"; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 cat >conftest.
$ac_ext <<_ACEOF
6298 #line $LINENO "configure"
6301 cat confdefs.h
>>conftest.
$ac_ext
6302 cat >>conftest.
$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 /* System header to define __stub macros and hopefully few prototypes,
6305 which can conflict with char $ac_func (); below.
6306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6307 <limits.h> exists even on freestanding compilers. */
6309 # include <limits.h>
6311 # include <assert.h>
6313 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6321 /* The GNU C library defines this for functions which it implements
6322 to always fail with ENOSYS. Some functions are actually named
6323 something starting with __ and the normal name is an alias. */
6324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6327 char (*f) () = $ac_func;
6336 return f != $ac_func;
6341 rm -f conftest.
$ac_objext conftest
$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try
='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 eval "$as_ac_var=yes"
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.
$ac_ext >&5
6358 eval "$as_ac_var=no"
6360 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6364 if test `eval echo '${'$as_ac_var'}'` = yes; then
6365 cat >>confdefs.h
<<_ACEOF
6366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6370 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6376 for ac_func
in strftime
6378 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6379 echo "$as_me:$LINENO: checking for $ac_func" >&5
6380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_var+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.
$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6388 cat confdefs.h
>>conftest.
$ac_ext
6389 cat >>conftest.
$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char $ac_func (); below.
6393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6394 <limits.h> exists even on freestanding compilers. */
6396 # include <limits.h>
6398 # include <assert.h>
6400 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6414 char (*f) () = $ac_func;
6423 return f != $ac_func;
6428 rm -f conftest.
$ac_objext conftest
$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try
='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 eval "$as_ac_var=yes"
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.
$ac_ext >&5
6445 eval "$as_ac_var=no"
6447 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6451 if test `eval echo '${'$as_ac_var'}'` = yes; then
6452 cat >>confdefs.h
<<_ACEOF
6453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6460 for ac_func
in ether_ntohost
6462 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6463 echo "$as_me:$LINENO: checking for $ac_func" >&5
6464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_var+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 cat >conftest.
$ac_ext <<_ACEOF
6469 #line $LINENO "configure"
6472 cat confdefs.h
>>conftest.
$ac_ext
6473 cat >>conftest.
$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 /* System header to define __stub macros and hopefully few prototypes,
6476 which can conflict with char $ac_func (); below.
6477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6478 <limits.h> exists even on freestanding compilers. */
6480 # include <limits.h>
6482 # include <assert.h>
6484 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6492 /* The GNU C library defines this for functions which it implements
6493 to always fail with ENOSYS. Some functions are actually named
6494 something starting with __ and the normal name is an alias. */
6495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6498 char (*f) () = $ac_func;
6507 return f != $ac_func;
6512 rm -f conftest.
$ac_objext conftest
$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try
='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 eval "$as_ac_var=yes"
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.
$ac_ext >&5
6529 eval "$as_ac_var=no"
6531 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6535 if test `eval echo '${'$as_ac_var'}'` = yes; then
6536 cat >>confdefs.h
<<_ACEOF
6537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6540 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6541 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6542 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 if test "$cross_compiling" = yes; then
6547 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
6549 cat >conftest.
$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6558 #include <sys/types.h>
6559 #include <sys/param.h>
6560 #include <sys/socket.h>
6563 main(int argc, char **argv)
6565 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6566 char name[MAXHOSTNAMELEN];
6568 ether_ntohost(name, (struct ether_addr *)ea);
6573 rm -f conftest
$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_buggy_ether_ntohost
=no
6586 echo "$as_me: program exited with status $ac_status" >&5
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.
$ac_ext >&5
6591 ac_cv_buggy_ether_ntohost
=yes
6593 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
6597 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
6598 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6599 cat >>confdefs.h
<<\_ACEOF
6600 #define USE_ETHER_NTOHOST 1
6609 for ac_func
in setlinebuf
6611 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6612 echo "$as_me:$LINENO: checking for $ac_func" >&5
6613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_var+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 cat >conftest.
$ac_ext <<_ACEOF
6618 #line $LINENO "configure"
6621 cat confdefs.h
>>conftest.
$ac_ext
6622 cat >>conftest.
$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func (); below.
6626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6627 <limits.h> exists even on freestanding compilers. */
6629 # include <limits.h>
6631 # include <assert.h>
6633 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6641 /* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6647 char (*f) () = $ac_func;
6656 return f != $ac_func;
6661 rm -f conftest.
$ac_objext conftest
$ac_exeext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663 (eval $ac_link) 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try
='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 eval "$as_ac_var=yes"
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.
$ac_ext >&5
6678 eval "$as_ac_var=no"
6680 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6684 if test `eval echo '${'$as_ac_var'}'` = yes; then
6685 cat >>confdefs.h
<<_ACEOF
6686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6696 for ac_func
in vsnprintf snprintf
6698 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6699 echo "$as_me:$LINENO: checking for $ac_func" >&5
6700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6701 if eval "test \"\${$as_ac_var+set}\" = set"; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 cat >conftest.
$ac_ext <<_ACEOF
6705 #line $LINENO "configure"
6708 cat confdefs.h
>>conftest.
$ac_ext
6709 cat >>conftest.
$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 /* System header to define __stub macros and hopefully few prototypes,
6712 which can conflict with char $ac_func (); below.
6713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6714 <limits.h> exists even on freestanding compilers. */
6716 # include <limits.h>
6718 # include <assert.h>
6720 /* Override any gcc2 internal prototype to avoid an error. */
6725 /* We use char because int might match the return type of a gcc2
6726 builtin and then its argument prototype would still apply. */
6728 /* The GNU C library defines this for functions which it implements
6729 to always fail with ENOSYS. Some functions are actually named
6730 something starting with __ and the normal name is an alias. */
6731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6734 char (*f) () = $ac_func;
6743 return f != $ac_func;
6748 rm -f conftest.
$ac_objext conftest
$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try
='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 eval "$as_ac_var=yes"
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.
$ac_ext >&5
6765 eval "$as_ac_var=no"
6767 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6771 if test `eval echo '${'$as_ac_var'}'` = yes; then
6772 cat >>confdefs.h
<<_ACEOF
6773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6781 if test $needsnprintf = yes; then
6782 LIBOBJS
="$LIBOBJS snprintf.o.$ac_objext"
6786 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6787 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6788 if test "${ac_cv_type_signal+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 cat >conftest.
$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6795 cat confdefs.h
>>conftest.
$ac_ext
6796 cat >>conftest.
$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <sys/types.h>
6804 extern "C" void (*signal (int, void (*)(int)))(int);
6806 void (*signal ()) ();
6817 rm -f conftest.
$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try
='test -s conftest.$ac_objext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_type_signal
=void
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.
$ac_ext >&5
6834 ac_cv_type_signal
=int
6836 rm -f conftest.
$ac_objext conftest.
$ac_ext
6838 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6839 echo "${ECHO_T}$ac_cv_type_signal" >&6
6841 cat >>confdefs.h
<<_ACEOF
6842 #define RETSIGTYPE $ac_cv_type_signal
6846 if test "$ac_cv_type_signal" = void
; then
6847 cat >>confdefs.h
<<\_ACEOF
6852 cat >>confdefs.h
<<\_ACEOF
6853 #define RETSIGVAL (0)
6860 cat >>confdefs.h
<<\_ACEOF
6861 #define _BSD_SIGNALS 1
6868 for ac_func
in sigaction
6870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6871 echo "$as_me:$LINENO: checking for $ac_func" >&5
6872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6873 if eval "test \"\${$as_ac_var+set}\" = set"; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 cat >conftest.
$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6880 cat confdefs.h
>>conftest.
$ac_ext
6881 cat >>conftest.
$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func (); below.
6885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6886 <limits.h> exists even on freestanding compilers. */
6888 # include <limits.h>
6890 # include <assert.h>
6892 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6900 /* The GNU C library defines this for functions which it implements
6901 to always fail with ENOSYS. Some functions are actually named
6902 something starting with __ and the normal name is an alias. */
6903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6906 char (*f) () = $ac_func;
6915 return f != $ac_func;
6920 rm -f conftest.
$ac_objext conftest
$ac_exeext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6922 (eval $ac_link) 2>&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try
='test -s conftest$ac_exeext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 eval "$as_ac_var=yes"
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.
$ac_ext >&5
6937 eval "$as_ac_var=no"
6939 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6943 if test `eval echo '${'$as_ac_var'}'` = yes; then
6944 cat >>confdefs.h
<<_ACEOF
6945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6951 if test $ac_cv_func_sigaction = no
; then
6953 for ac_func
in sigset
6955 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6956 echo "$as_me:$LINENO: checking for $ac_func" >&5
6957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_var+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 cat >conftest.
$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6965 cat confdefs.h
>>conftest.
$ac_ext
6966 cat >>conftest.
$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func (); below.
6970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 <limits.h> exists even on freestanding compilers. */
6973 # include <limits.h>
6975 # include <assert.h>
6977 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6985 /* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6991 char (*f) () = $ac_func;
7000 return f != $ac_func;
7005 rm -f conftest.
$ac_objext conftest
$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try
='test -s conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 eval "$as_ac_var=yes"
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.
$ac_ext >&5
7022 eval "$as_ac_var=no"
7024 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7028 if test `eval echo '${'$as_ac_var'}'` = yes; then
7029 cat >>confdefs.h
<<_ACEOF
7030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7040 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7041 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7042 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 ac_func_search_save_LIBS
=$LIBS
7046 ac_cv_search_dnet_htoa
=no
7047 cat >conftest.
$ac_ext <<_ACEOF
7048 #line $LINENO "configure"
7051 cat confdefs.h
>>conftest.
$ac_ext
7052 cat >>conftest.
$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7055 /* Override any gcc2 internal prototype to avoid an error. */
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7070 rm -f conftest.
$ac_objext conftest
$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try
='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_search_dnet_htoa
="none required"
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.
$ac_ext >&5
7088 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7089 if test "$ac_cv_search_dnet_htoa" = no
; then
7090 for ac_lib
in dnet
; do
7091 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7092 cat >conftest.
$ac_ext <<_ACEOF
7093 #line $LINENO "configure"
7096 cat confdefs.h
>>conftest.
$ac_ext
7097 cat >>conftest.
$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7100 /* Override any gcc2 internal prototype to avoid an error. */
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7115 rm -f conftest.
$ac_objext conftest
$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try
='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_search_dnet_htoa
="-l$ac_lib"
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7134 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7137 LIBS
=$ac_func_search_save_LIBS
7139 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7140 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7141 if test "$ac_cv_search_dnet_htoa" != no
; then
7142 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
7143 cat >>confdefs.h
<<\_ACEOF
7144 #define HAVE_DNET_HTOA 1
7151 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7152 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7153 if test "${ac_cv_lib_rpc_main+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 ac_check_lib_save_LIBS
=$LIBS
7158 cat >conftest.
$ac_ext <<_ACEOF
7159 #line $LINENO "configure"
7162 cat confdefs.h
>>conftest.
$ac_ext
7163 cat >>conftest.
$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7175 rm -f conftest.
$ac_objext conftest
$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177 (eval $ac_link) 2>&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try
='test -s conftest$ac_exeext'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; }; then
7187 ac_cv_lib_rpc_main
=yes
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.
$ac_ext >&5
7192 ac_cv_lib_rpc_main
=no
7194 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7195 LIBS
=$ac_check_lib_save_LIBS
7197 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7198 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7199 if test $ac_cv_lib_rpc_main = yes; then
7200 cat >>confdefs.h
<<_ACEOF
7201 #define HAVE_LIBRPC 1
7208 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7209 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7210 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_func_search_save_LIBS
=$LIBS
7214 ac_cv_search_getrpcbynumber
=no
7215 cat >conftest.
$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7219 cat confdefs.h
>>conftest.
$ac_ext
7220 cat >>conftest.
$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7223 /* Override any gcc2 internal prototype to avoid an error. */
7227 /* We use char because int might match the return type of a gcc2
7228 builtin and then its argument prototype would still apply. */
7229 char getrpcbynumber ();
7238 rm -f conftest.
$ac_objext conftest
$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try
='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_search_getrpcbynumber
="none required"
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.
$ac_ext >&5
7256 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7257 if test "$ac_cv_search_getrpcbynumber" = no
; then
7258 for ac_lib
in nsl
; do
7259 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7260 cat >conftest.
$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7264 cat confdefs.h
>>conftest.
$ac_ext
7265 cat >>conftest.
$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7268 /* Override any gcc2 internal prototype to avoid an error. */
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274 char getrpcbynumber ();
7283 rm -f conftest.
$ac_objext conftest
$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try
='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_search_getrpcbynumber
="-l$ac_lib"
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.
$ac_ext >&5
7302 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7305 LIBS
=$ac_func_search_save_LIBS
7307 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7308 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7309 if test "$ac_cv_search_getrpcbynumber" != no
; then
7310 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
7317 # Most operating systems have gethostbyname() in the default searched
7318 # libraries (i.e. libc):
7319 # Some OSes (eg. Solaris) place it in libnsl
7320 # Some strange OSes (SINIX) have it in libsocket:
7321 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7322 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7323 if test "${ac_cv_search_gethostbyname+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 ac_func_search_save_LIBS
=$LIBS
7327 ac_cv_search_gethostbyname
=no
7328 cat >conftest.
$ac_ext <<_ACEOF
7329 #line $LINENO "configure"
7332 cat confdefs.h
>>conftest.
$ac_ext
7333 cat >>conftest.
$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7336 /* Override any gcc2 internal prototype to avoid an error. */
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char gethostbyname ();
7351 rm -f conftest.
$ac_objext conftest
$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try
='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_search_gethostbyname
="none required"
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.
$ac_ext >&5
7369 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7370 if test "$ac_cv_search_gethostbyname" = no
; then
7371 for ac_lib
in nsl socket resolv
; do
7372 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7373 cat >conftest.
$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7377 cat confdefs.h
>>conftest.
$ac_ext
7378 cat >>conftest.
$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7381 /* Override any gcc2 internal prototype to avoid an error. */
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7387 char gethostbyname ();
7396 rm -f conftest.
$ac_objext conftest
$ac_exeext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try
='test -s conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_search_gethostbyname
="-l$ac_lib"
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.
$ac_ext >&5
7415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7418 LIBS
=$ac_func_search_save_LIBS
7420 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7421 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7422 if test "$ac_cv_search_gethostbyname" != no
; then
7423 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
7427 # Unfortunately libsocket sometimes depends on libnsl and
7428 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7429 if test "$ac_cv_search_gethostbyname" = "no"
7431 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7432 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7433 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 ac_check_lib_save_LIBS
=$LIBS
7437 LIBS
="-lsocket -lnsl $LIBS"
7438 cat >conftest.
$ac_ext <<_ACEOF
7439 #line $LINENO "configure"
7442 cat confdefs.h
>>conftest.
$ac_ext
7443 cat >>conftest.
$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7452 char gethostbyname ();
7461 rm -f conftest.
$ac_objext conftest
$ac_exeext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463 (eval $ac_link) 2>&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try
='test -s conftest$ac_exeext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_lib_socket_gethostbyname
=yes
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.
$ac_ext >&5
7478 ac_cv_lib_socket_gethostbyname
=no
7480 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7481 LIBS
=$ac_check_lib_save_LIBS
7483 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7484 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7485 if test $ac_cv_lib_socket_gethostbyname = yes; then
7486 LIBS
="-lsocket -lnsl $LIBS"
7490 echo "$as_me:$LINENO: checking for library containing socket" >&5
7491 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7492 if test "${ac_cv_search_socket+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 ac_func_search_save_LIBS
=$LIBS
7496 ac_cv_search_socket
=no
7497 cat >conftest.
$ac_ext <<_ACEOF
7498 #line $LINENO "configure"
7501 cat confdefs.h
>>conftest.
$ac_ext
7502 cat >>conftest.
$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7505 /* Override any gcc2 internal prototype to avoid an error. */
7509 /* We use char because int might match the return type of a gcc2
7510 builtin and then its argument prototype would still apply. */
7520 rm -f conftest.
$ac_objext conftest
$ac_exeext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7522 (eval $ac_link) 2>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try
='test -s conftest$ac_exeext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_search_socket
="none required"
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.
$ac_ext >&5
7538 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7539 if test "$ac_cv_search_socket" = no
; then
7540 for ac_lib
in socket
; do
7541 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7542 cat >conftest.
$ac_ext <<_ACEOF
7543 #line $LINENO "configure"
7546 cat confdefs.h
>>conftest.
$ac_ext
7547 cat >>conftest.
$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7550 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7565 rm -f conftest.
$ac_objext conftest
$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try
='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_search_socket
="-l$ac_lib"
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.
$ac_ext >&5
7584 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7587 LIBS
=$ac_func_search_save_LIBS
7589 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7590 echo "${ECHO_T}$ac_cv_search_socket" >&6
7591 if test "$ac_cv_search_socket" != no
; then
7592 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
7595 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7596 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7597 if test "${ac_cv_lib_socket_socket+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 ac_check_lib_save_LIBS
=$LIBS
7601 LIBS
="-lsocket -lnsl $LIBS"
7602 cat >conftest.
$ac_ext <<_ACEOF
7603 #line $LINENO "configure"
7606 cat confdefs.h
>>conftest.
$ac_ext
7607 cat >>conftest.
$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7610 /* Override any gcc2 internal prototype to avoid an error. */
7614 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7625 rm -f conftest.
$ac_objext conftest
$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try
='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_lib_socket_socket
=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.
$ac_ext >&5
7642 ac_cv_lib_socket_socket
=no
7644 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7645 LIBS
=$ac_check_lib_save_LIBS
7647 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7648 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7649 if test $ac_cv_lib_socket_socket = yes; then
7650 LIBS
="-lsocket -lnsl $LIBS"
7655 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7656 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7657 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
7658 if test "${ac_cv_search_putmsg+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 ac_func_search_save_LIBS
=$LIBS
7662 ac_cv_search_putmsg
=no
7663 cat >conftest.
$ac_ext <<_ACEOF
7664 #line $LINENO "configure"
7667 cat confdefs.h
>>conftest.
$ac_ext
7668 cat >>conftest.
$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7671 /* Override any gcc2 internal prototype to avoid an error. */
7675 /* We use char because int might match the return type of a gcc2
7676 builtin and then its argument prototype would still apply. */
7686 rm -f conftest.
$ac_objext conftest
$ac_exeext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7688 (eval $ac_link) 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try
='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 ac_cv_search_putmsg
="none required"
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.
$ac_ext >&5
7704 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7705 if test "$ac_cv_search_putmsg" = no
; then
7706 for ac_lib
in str
; do
7707 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7708 cat >conftest.
$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7716 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7731 rm -f conftest.
$ac_objext conftest
$ac_exeext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try
='test -s conftest$ac_exeext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 ac_cv_search_putmsg
="-l$ac_lib"
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7750 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7753 LIBS
=$ac_func_search_save_LIBS
7755 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7756 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
7757 if test "$ac_cv_search_putmsg" != no
; then
7758 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
7765 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
7766 if test -f $pfopen ; then
7768 for ac_func
in pfopen
7770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7771 echo "$as_me:$LINENO: checking for $ac_func" >&5
7772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7773 if eval "test \"\${$as_ac_var+set}\" = set"; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 cat >conftest.
$ac_ext <<_ACEOF
7777 #line $LINENO "configure"
7780 cat confdefs.h
>>conftest.
$ac_ext
7781 cat >>conftest.
$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char $ac_func (); below.
7785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 <limits.h> exists even on freestanding compilers. */
7788 # include <limits.h>
7790 # include <assert.h>
7792 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7806 char (*f) () = $ac_func;
7815 return f != $ac_func;
7820 rm -f conftest.
$ac_objext conftest
$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try
='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 eval "$as_ac_var=yes"
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.
$ac_ext >&5
7837 eval "$as_ac_var=no"
7839 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7843 if test `eval echo '${'$as_ac_var'}'` = yes; then
7844 cat >>confdefs.h
<<_ACEOF
7845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7851 if test $ac_cv_func_pfopen = "no" ; then
7852 echo "$as_me:$LINENO: result: Using $pfopen" >&5
7853 echo "${ECHO_T}Using $pfopen" >&6
7854 LIBS
="$LIBS $pfopen"
7857 echo "$as_me:$LINENO: checking for local pcap library" >&5
7858 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
7861 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7862 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7863 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
7864 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
7865 if test $lastdir = $basedir ; then
7869 if test -r $dir/libpcap.a
; then
7870 libpcap
=$dir/libpcap.a
7874 if test $libpcap = FAIL
; then
7875 echo "$as_me:$LINENO: result: not found" >&5
7876 echo "${ECHO_T}not found" >&6
7877 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7878 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
7879 if test "${ac_cv_lib_pcap_main+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 ac_check_lib_save_LIBS
=$LIBS
7884 cat >conftest.
$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7888 cat confdefs.h
>>conftest.
$ac_ext
7889 cat >>conftest.
$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7901 rm -f conftest.
$ac_objext conftest
$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try
='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_lib_pcap_main
=yes
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7918 ac_cv_lib_pcap_main
=no
7920 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7921 LIBS
=$ac_check_lib_save_LIBS
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7924 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
7925 if test $ac_cv_lib_pcap_main = yes; then
7929 if test $libpcap = FAIL
; then
7930 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7931 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7932 { (exit 1); exit 1; }; }
7934 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7935 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
7936 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
7937 \
( ! -r /usr
/include
/pcap.h \
); then
7938 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
7939 d
="/usr/local/include/pcap"
7940 elif test -r /usr
/include
/pcap
/pcap.h
; then
7941 d
="/usr/include/pcap"
7944 if test -z "$d" ; then
7945 echo "$as_me:$LINENO: result: not found" >&5
7946 echo "${ECHO_T}not found" >&6
7948 V_INCLS
="-I$d $V_INCLS"
7949 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7950 echo "${ECHO_T}found -- -I$d added" >&6
7954 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7955 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7956 if test -r $d/pcap.h
; then
7957 V_INCLS
="-I$d $V_INCLS"
7958 elif test -r $places/pcap.h
; then
7959 V_INCLS
="-I$places $V_INCLS"
7961 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7962 echo "$as_me: error: cannot find pcap.h" >&2;}
7963 { (exit see INSTALL
); exit see INSTALL
; }; }
7965 echo "$as_me:$LINENO: result: $libpcap" >&5
7966 echo "${ECHO_T}$libpcap" >&6
7968 LIBS
="$libpcap $LIBS"
7972 pseexe
="/lib/pse.exp"
7973 echo "$as_me:$LINENO: checking for $pseexe" >&5
7974 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
7975 if test -f $pseexe ; then
7976 echo "$as_me:$LINENO: result: yes" >&5
7977 echo "${ECHO_T}yes" >&6
7978 LIBS
="$LIBS -I:$pseexe"
7981 # We need "-lodm" and "-lcfg", as libpcap requires them on
7982 # AIX, and we just build a static libpcap.a and thus can't
7983 # arrange that when you link with libpcap you automatically
7984 # link with those libraries.
7986 LIBS
="$LIBS -lodm -lcfg"
7990 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7991 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
7992 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7995 cat >conftest.
$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7999 cat confdefs.h
>>conftest.
$ac_ext
8000 cat >>conftest.
$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char pcap_list_datalinks (); below.
8004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 <limits.h> exists even on freestanding compilers. */
8007 # include <limits.h>
8009 # include <assert.h>
8011 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char pcap_list_datalinks ();
8019 /* The GNU C library defines this for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8025 char (*f) () = pcap_list_datalinks;
8034 return f != pcap_list_datalinks;
8039 rm -f conftest.
$ac_objext conftest
$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try
='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_func_pcap_list_datalinks
=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.
$ac_ext >&5
8056 ac_cv_func_pcap_list_datalinks
=no
8058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8060 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8061 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8062 if test $ac_cv_func_pcap_list_datalinks = yes; then
8063 cat >>confdefs.h
<<\_ACEOF
8064 #define HAVE_PCAP_LIST_DATALINKS 1
8068 LIBOBJS
="$LIBOBJS datalinks.o.$ac_objext"
8071 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8072 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8073 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 cat >conftest.
$ac_ext <<_ACEOF
8077 #line $LINENO "configure"
8080 cat confdefs.h
>>conftest.
$ac_ext
8081 cat >>conftest.
$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 /* System header to define __stub macros and hopefully few prototypes,
8084 which can conflict with char pcap_set_datalink (); below.
8085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086 <limits.h> exists even on freestanding compilers. */
8088 # include <limits.h>
8090 # include <assert.h>
8092 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8099 char pcap_set_datalink ();
8100 /* The GNU C library defines this for functions which it implements
8101 to always fail with ENOSYS. Some functions are actually named
8102 something starting with __ and the normal name is an alias. */
8103 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8106 char (*f) () = pcap_set_datalink;
8115 return f != pcap_set_datalink;
8120 rm -f conftest.
$ac_objext conftest
$ac_exeext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8122 (eval $ac_link) 2>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try
='test -s conftest$ac_exeext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_func_pcap_set_datalink
=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.
$ac_ext >&5
8137 ac_cv_func_pcap_set_datalink
=no
8139 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8142 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8143 if test $ac_cv_func_pcap_set_datalink = yes; then
8144 cat >>confdefs.h
<<\_ACEOF
8145 #define HAVE_PCAP_SET_DATALINK 1
8150 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8151 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8152 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 cat >conftest.
$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8159 cat confdefs.h
>>conftest.
$ac_ext
8160 cat >>conftest.
$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char pcap_datalink_name_to_val (); below.
8164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165 <limits.h> exists even on freestanding compilers. */
8167 # include <limits.h>
8169 # include <assert.h>
8171 /* Override any gcc2 internal prototype to avoid an error. */
8176 /* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8178 char pcap_datalink_name_to_val ();
8179 /* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8185 char (*f) () = pcap_datalink_name_to_val;
8194 return f != pcap_datalink_name_to_val;
8199 rm -f conftest.
$ac_objext conftest
$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try
='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_func_pcap_datalink_name_to_val
=yes
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.
$ac_ext >&5
8216 ac_cv_func_pcap_datalink_name_to_val
=no
8218 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8220 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8221 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8222 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8224 cat >>confdefs.h
<<\_ACEOF
8225 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8228 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8229 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8230 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.
$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8237 cat confdefs.h
>>conftest.
$ac_ext
8238 cat >>conftest.
$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* System header to define __stub macros and hopefully few prototypes,
8241 which can conflict with char pcap_datalink_val_to_description (); below.
8242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243 <limits.h> exists even on freestanding compilers. */
8245 # include <limits.h>
8247 # include <assert.h>
8249 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256 char pcap_datalink_val_to_description ();
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8263 char (*f) () = pcap_datalink_val_to_description;
8272 return f != pcap_datalink_val_to_description;
8277 rm -f conftest.
$ac_objext conftest
$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try
='test -s conftest$ac_exeext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_func_pcap_datalink_val_to_description
=yes
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8294 ac_cv_func_pcap_datalink_val_to_description
=no
8296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8299 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8300 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8301 cat >>confdefs.h
<<\_ACEOF
8302 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8306 LIBOBJS
="$LIBOBJS dlnames.o.$ac_objext"
8311 LIBOBJS
="$LIBOBJS dlnames.o.$ac_objext"
8316 for ac_func
in pcap_breakloop
8318 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8319 echo "$as_me:$LINENO: checking for $ac_func" >&5
8320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8321 if eval "test \"\${$as_ac_var+set}\" = set"; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.
$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8328 cat confdefs.h
>>conftest.
$ac_ext
8329 cat >>conftest.
$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char $ac_func (); below.
8333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334 <limits.h> exists even on freestanding compilers. */
8336 # include <limits.h>
8338 # include <assert.h>
8340 /* Override any gcc2 internal prototype to avoid an error. */
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8354 char (*f) () = $ac_func;
8363 return f != $ac_func;
8368 rm -f conftest.
$ac_objext conftest
$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try
='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 eval "$as_ac_var=yes"
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8385 eval "$as_ac_var=no"
8387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8391 if test `eval echo '${'$as_ac_var'}'` = yes; then
8392 cat >>confdefs.h
<<_ACEOF
8393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8402 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8403 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8405 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8406 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8407 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8408 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8409 # it does not ship with a libc symbol "inet_ntop()", it ships with
8410 # "_inet_ntop()", and has a #define macro in one of the system headers
8413 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8414 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8415 cat >conftest.
$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8419 cat confdefs.h
>>conftest.
$ac_ext
8420 cat >>conftest.
$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 #include <sys/types.h>
8423 #include <sys/socket.h>
8424 #include <netinet/in.h>
8425 #include <arpa/inet.h>
8429 char src[4], dst[128];
8430 inet_ntop(AF_INET, src, dst, sizeof(dst));
8435 rm -f conftest.
$ac_objext conftest
$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try
='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 echo "$as_me:$LINENO: result: yes" >&5
8448 echo "${ECHO_T}yes" >&6
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.
$ac_ext >&5
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455 LIBOBJS
="$LIBOBJS inet_ntop.o.$ac_objext"
8457 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8458 echo "$as_me:$LINENO: checking for inet_pton" >&5
8459 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8460 cat >conftest.
$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8464 cat confdefs.h
>>conftest.
$ac_ext
8465 cat >>conftest.
$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/socket.h>
8469 #include <netinet/in.h>
8470 #include <arpa/inet.h>
8474 char src[128], dst[4];
8475 inet_pton(AF_INET, src, dst);
8480 rm -f conftest.
$ac_objext conftest
$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try
='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 echo "$as_me:$LINENO: result: yes" >&5
8493 echo "${ECHO_T}yes" >&6
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.
$ac_ext >&5
8498 echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8500 LIBOBJS
="$LIBOBJS inet_pton.o.$ac_objext"
8502 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8503 echo "$as_me:$LINENO: checking for inet_aton" >&5
8504 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8505 cat >conftest.
$ac_ext <<_ACEOF
8506 #line $LINENO "configure"
8509 cat confdefs.h
>>conftest.
$ac_ext
8510 cat >>conftest.
$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 #include <sys/types.h>
8513 #include <netinet/in.h>
8514 #include <arpa/inet.h>
8520 inet_aton(src, &dst);
8525 rm -f conftest.
$ac_objext conftest
$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try
='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 echo "$as_me:$LINENO: result: yes" >&5
8538 echo "${ECHO_T}yes" >&6
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.
$ac_ext >&5
8543 echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6
8545 LIBOBJS
="$LIBOBJS inet_aton.o.$ac_objext"
8547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8550 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8551 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8552 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 cat >conftest.
$ac_ext <<_ACEOF
8556 #line $LINENO "configure"
8559 cat confdefs.h
>>conftest.
$ac_ext
8560 cat >>conftest.
$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8563 # include <sys/types.h>
8564 # include <sys/socket.h>
8568 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8573 rm -f conftest.
$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try
='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_sockaddr_has_sa_len
=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.
$ac_ext >&5
8590 ac_cv_sockaddr_has_sa_len
=no
8592 rm -f conftest.
$ac_objext conftest.
$ac_ext
8595 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8596 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
8597 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8598 cat >>confdefs.h
<<\_ACEOF
8599 #define HAVE_SOCKADDR_SA_LEN 1
8604 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
8605 missing_includes
=yes
8611 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
8613 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8614 echo "$as_me:$LINENO: checking for $ac_func" >&5
8615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_var+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 cat >conftest.
$ac_ext <<_ACEOF
8620 #line $LINENO "configure"
8623 cat confdefs.h
>>conftest.
$ac_ext
8624 cat >>conftest.
$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char $ac_func (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8631 # include <limits.h>
8633 # include <assert.h>
8635 /* Override any gcc2 internal prototype to avoid an error. */
8640 /* We use char because int might match the return type of a gcc2
8641 builtin and then its argument prototype would still apply. */
8643 /* The GNU C library defines this for functions which it implements
8644 to always fail with ENOSYS. Some functions are actually named
8645 something starting with __ and the normal name is an alias. */
8646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 char (*f) () = $ac_func;
8658 return f != $ac_func;
8663 rm -f conftest.
$ac_objext conftest
$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665 (eval $ac_link) 2>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try
='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 eval "$as_ac_var=yes"
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.
$ac_ext >&5
8680 eval "$as_ac_var=no"
8682 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8686 if test `eval echo '${'$as_ac_var'}'` = yes; then
8687 cat >>confdefs.h
<<_ACEOF
8688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8694 if test $ac_cv_func_pcap_lib_version = "no" ; then
8695 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
8696 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
8697 cat >conftest.
$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8701 cat confdefs.h
>>conftest.
$ac_ext
8702 cat >>conftest.
$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8710 return_pcap_version(void)
8712 extern char pcap_version[];
8714 return pcap_version;
8721 rm -f conftest.
$ac_objext conftest
$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try
='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_lbl_cv_pcap_version_defined
=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.
$ac_ext >&5
8738 ac_lbl_cv_pcap_version_defined
=no
8740 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8741 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
8742 echo "$as_me:$LINENO: result: yes" >&5
8743 echo "${ECHO_T}yes" >&6
8744 cat >>confdefs.h
<<\_ACEOF
8745 #define HAVE_PCAP_VERSION 1
8749 echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6
8753 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
8754 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
8755 cat >conftest.
$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8759 cat confdefs.h
>>conftest.
$ac_ext
8760 cat >>conftest.
$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8768 return_pcap_debug(void)
8770 extern int pcap_debug;
8779 rm -f conftest.
$ac_objext conftest
$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try
='test -s conftest$ac_exeext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_lbl_cv_pcap_debug_defined
=yes
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.
$ac_ext >&5
8796 ac_lbl_cv_pcap_debug_defined
=no
8798 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8799 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
8800 echo "$as_me:$LINENO: result: yes" >&5
8801 echo "${ECHO_T}yes" >&6
8802 cat >>confdefs.h
<<\_ACEOF
8803 #define HAVE_PCAP_DEBUG 1
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8810 # OK, what about "yydebug"?
8812 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
8813 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
8814 cat >conftest.
$ac_ext <<_ACEOF
8815 #line $LINENO "configure"
8818 cat confdefs.h
>>conftest.
$ac_ext
8819 cat >>conftest.
$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8827 return_yydebug(void)
8838 rm -f conftest.
$ac_objext conftest
$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try
='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_lbl_cv_yydebug_defined
=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.
$ac_ext >&5
8855 ac_lbl_cv_yydebug_defined
=no
8857 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8858 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
8859 echo "$as_me:$LINENO: result: yes" >&5
8860 echo "${ECHO_T}yes" >&6
8861 cat >>confdefs.h
<<\_ACEOF
8862 #define HAVE_YYDEBUG 1
8866 echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6
8871 for ac_func
in bpf_dump
8873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874 echo "$as_me:$LINENO: checking for $ac_func" >&5
8875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8876 if eval "test \"\${$as_ac_var+set}\" = set"; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 cat >conftest.
$ac_ext <<_ACEOF
8880 #line $LINENO "configure"
8883 cat confdefs.h
>>conftest.
$ac_ext
8884 cat >>conftest.
$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 /* System header to define __stub macros and hopefully few prototypes,
8887 which can conflict with char $ac_func (); below.
8888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889 <limits.h> exists even on freestanding compilers. */
8891 # include <limits.h>
8893 # include <assert.h>
8895 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8903 /* The GNU C library defines this for functions which it implements
8904 to always fail with ENOSYS. Some functions are actually named
8905 something starting with __ and the normal name is an alias. */
8906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8909 char (*f) () = $ac_func;
8918 return f != $ac_func;
8923 rm -f conftest.
$ac_objext conftest
$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925 (eval $ac_link) 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try
='test -s conftest$ac_exeext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 eval "$as_ac_var=yes"
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.
$ac_ext >&5
8940 eval "$as_ac_var=no"
8942 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8946 if test `eval echo '${'$as_ac_var'}'` = yes; then
8947 cat >>confdefs.h
<<_ACEOF
8948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8952 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
8958 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
8964 cat >>confdefs.h
<<\_ACEOF
8983 if test -f /dev
/bpf0
; then
8987 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
8988 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
8989 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.
$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8996 cat confdefs.h
>>conftest.
$ac_ext
8997 cat >>conftest.
$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 # include "confdefs.h"
9001 # include <sys/types.h>
9003 # include <stdlib.h>
9004 # include <stddef.h>
9014 rm -f conftest.
$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try
='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_cv_lbl_have_int8_t
=yes
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.
$ac_ext >&5
9031 ac_cv_lbl_have_int8_t
=no
9033 rm -f conftest.
$ac_objext conftest.
$ac_ext
9036 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9037 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9038 if test $ac_cv_lbl_have_int8_t = no
; then
9039 cat >>confdefs.h
<<\_ACEOF
9040 #define int8_t signed char
9044 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9045 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9046 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 cat >conftest.
$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9053 cat confdefs.h
>>conftest.
$ac_ext
9054 cat >>conftest.
$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9057 # include "confdefs.h"
9058 # include <sys/types.h>
9060 # include <stdlib.h>
9061 # include <stddef.h>
9071 rm -f conftest.
$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try
='test -s conftest.$ac_objext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_lbl_have_u_int8_t
=yes
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.
$ac_ext >&5
9088 ac_cv_lbl_have_u_int8_t
=no
9090 rm -f conftest.
$ac_objext conftest.
$ac_ext
9093 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9094 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9095 if test $ac_cv_lbl_have_u_int8_t = no
; then
9096 cat >>confdefs.h
<<\_ACEOF
9097 #define u_int8_t u_char
9101 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9102 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9103 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 cat >conftest.
$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9110 cat confdefs.h
>>conftest.
$ac_ext
9111 cat >>conftest.
$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9114 # include "confdefs.h"
9115 # include <sys/types.h>
9117 # include <stdlib.h>
9118 # include <stddef.h>
9128 rm -f conftest.
$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try
='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_lbl_have_int16_t
=yes
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.
$ac_ext >&5
9145 ac_cv_lbl_have_int16_t
=no
9147 rm -f conftest.
$ac_objext conftest.
$ac_ext
9150 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9151 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9152 if test $ac_cv_lbl_have_int16_t = no
; then
9153 cat >>confdefs.h
<<\_ACEOF
9154 #define int16_t short
9158 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9159 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9160 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 cat >conftest.
$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9167 cat confdefs.h
>>conftest.
$ac_ext
9168 cat >>conftest.
$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9171 # include "confdefs.h"
9172 # include <sys/types.h>
9174 # include <stdlib.h>
9175 # include <stddef.h>
9185 rm -f conftest.
$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try
='test -s conftest.$ac_objext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_lbl_have_u_int16_t
=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.
$ac_ext >&5
9202 ac_cv_lbl_have_u_int16_t
=no
9204 rm -f conftest.
$ac_objext conftest.
$ac_ext
9207 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9208 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9209 if test $ac_cv_lbl_have_u_int16_t = no
; then
9210 cat >>confdefs.h
<<\_ACEOF
9211 #define u_int16_t u_short
9215 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9216 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9217 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 cat >conftest.
$ac_ext <<_ACEOF
9221 #line $LINENO "configure"
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9228 # include "confdefs.h"
9229 # include <sys/types.h>
9231 # include <stdlib.h>
9232 # include <stddef.h>
9242 rm -f conftest.
$ac_objext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try
='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_lbl_have_int32_t
=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.
$ac_ext >&5
9259 ac_cv_lbl_have_int32_t
=no
9261 rm -f conftest.
$ac_objext conftest.
$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9265 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9266 if test $ac_cv_lbl_have_int32_t = no
; then
9267 cat >>confdefs.h
<<\_ACEOF
9272 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9273 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9274 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 cat >conftest.
$ac_ext <<_ACEOF
9278 #line $LINENO "configure"
9281 cat confdefs.h
>>conftest.
$ac_ext
9282 cat >>conftest.
$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9285 # include "confdefs.h"
9286 # include <sys/types.h>
9288 # include <stdlib.h>
9289 # include <stddef.h>
9299 rm -f conftest.
$ac_objext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9301 (eval $ac_compile) 2>&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try
='test -s conftest.$ac_objext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_lbl_have_u_int32_t
=yes
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.
$ac_ext >&5
9316 ac_cv_lbl_have_u_int32_t
=no
9318 rm -f conftest.
$ac_objext conftest.
$ac_ext
9321 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9322 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9323 if test $ac_cv_lbl_have_u_int32_t = no
; then
9324 cat >>confdefs.h
<<\_ACEOF
9325 #define u_int32_t u_int
9331 if test "${LBL_CFLAGS+set}" = set; then
9332 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
9334 if test -f .devel
; then
9335 if test "$GCC" = yes ; then
9336 if test "${LBL_CFLAGS+set}" != set; then
9337 if test "$ac_cv_prog_cc_g" = yes ; then
9338 V_CCOPT
="-g $V_CCOPT"
9340 V_CCOPT
="$V_CCOPT -Wall"
9341 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9342 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
9349 V_CCOPT
="$V_CCOPT -n32"
9356 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9358 if test -f $name ; then
9359 ln -s $name os-proto.h
9360 cat >>confdefs.h
<<\_ACEOF
9361 #define HAVE_OS_PROTO_H 1
9365 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9366 echo "$as_me: WARNING: can't find $name" >&2;}
9370 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9371 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9372 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 cat >conftest.
$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9383 # include <sys/types.h>
9384 # include <sys/socket.h>
9388 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9393 rm -f conftest.
$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try
='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_lbl_sockaddr_has_sa_len
=yes
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.
$ac_ext >&5
9410 ac_cv_lbl_sockaddr_has_sa_len
=no
9412 rm -f conftest.
$ac_objext conftest.
$ac_ext
9415 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9416 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
9417 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9418 cat >>confdefs.h
<<\_ACEOF
9419 #define HAVE_SOCKADDR_SA_LEN 1
9424 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9425 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
9426 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 # These are CPU types where:
9434 # the CPU faults on an unaligned access, but at least some
9435 # OSes that support that CPU catch the fault and simulate
9436 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9437 # the simulation is slow, so we don't want to use it;
9439 # the CPU, I infer (from the old
9441 # XXX: should also check that they don't do weird things (like on arm)
9443 # comment) doesn't fault on unaligned accesses, but doesn't
9444 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9446 # for whatever reason, the test program doesn't work
9447 # (this has been claimed to be the case for several of those
9448 # CPUs - I don't know what the problem is; the problem
9449 # was reported as "the test program dumps core" for SuperH,
9450 # but that's what the test program is *supposed* to do -
9451 # it dumps core before it writes anything, so the test
9452 # for an empty output file should find an empty output
9453 # file and conclude that unaligned accesses don't work).
9455 # This run-time test won't work if you're cross-compiling, so
9456 # in order to support cross-compiling for a particular CPU,
9457 # we have to wire in the list of CPU types anyway, as far as
9458 # I know, so perhaps we should just have a set of CPUs on
9459 # which we know it doesn't work, a set of CPUs on which we
9460 # know it does work, and have the script just fail on other
9461 # cpu types and update it when such a failure occurs.
9463 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
9464 ac_cv_lbl_unaligned_fail
=yes
9468 cat >conftest.c
<<EOF
9469 # include <sys/types.h>
9470 # include <sys/wait.h>
9472 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9477 /* avoid "core dumped" message */
9483 pid = waitpid(pid, &status, 0);
9486 exit(!WIFEXITED(status));
9489 i = *(unsigned int *)&a[1];
9494 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
9495 conftest.c
$LIBS >/dev
/null
2>&1
9496 if test ! -x conftest
; then
9497 ac_cv_lbl_unaligned_fail
=yes
9499 .
/conftest
>conftest.out
9500 if test ! -s conftest.out
; then
9501 ac_cv_lbl_unaligned_fail
=yes
9503 ac_cv_lbl_unaligned_fail
=no
9506 rm -f conftest
* core core.conftest
9511 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9512 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
9513 if test $ac_cv_lbl_unaligned_fail = yes ; then
9514 cat >>confdefs.h
<<\_ACEOF
9521 echo "$as_me:$LINENO: checking for h_errno" >&5
9522 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9523 if test "${ac_cv_var_h_errno+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 cat >conftest.
$ac_ext <<_ACEOF
9527 #line $LINENO "configure"
9530 cat confdefs.h
>>conftest.
$ac_ext
9531 cat >>conftest.
$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9534 # include <sys/types.h>
9544 rm -f conftest.
$ac_objext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546 (eval $ac_compile) 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try
='test -s conftest.$ac_objext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_var_h_errno
=yes
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.
$ac_ext >&5
9561 ac_cv_var_h_errno
=no
9563 rm -f conftest.
$ac_objext conftest.
$ac_ext
9566 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
9567 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
9568 if test "$ac_cv_var_h_errno" = "yes"; then
9569 cat >>confdefs.h
<<\_ACEOF
9570 #define HAVE_H_ERRNO 1
9577 # Check whether --with-crypto or --without-crypto was given.
9578 if test "${with_crypto+set}" = set; then
9579 withval
="$with_crypto"
9583 echo "$as_me:$LINENO: checking for SSLeay" >&5
9584 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
9585 ac_cv_ssleay_path
=no
9587 for dir
in /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
9589 # XXX - is there a better way to check if a given library is
9590 # in a given directory than checking each of the possible
9591 # shared library suffixes?
9593 # Are there any other suffixes we need to look for? Do we have to
9594 # worry about ".so.{version}"?
9596 # Or should we just look for "libcrypto.*"?
9598 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
9599 -f $dir/lib
/libcrypto.so
-o \
9600 -f $dir/lib
/libcrypto.sl
-o \
9601 -f $dir/lib
/libcrypto.dylib \
); then
9602 ac_cv_ssleay_path
=$dir
9604 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
9605 incdir
="-I$dir/include"
9607 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
9610 ac_cv_ssleay_path
=no
9614 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
9615 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
9616 if test "$ac_cv_ssleay_path" != no
; then
9617 V_INCLS
="$V_INCLS $incdir"
9618 LDFLAGS
="-L$dir/lib $LDFLAGS"
9619 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
9620 LIBS
="$LIBS -lRSAglue"
9622 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
9623 LIBS
="$LIBS -lrsaref"
9626 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9627 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
9628 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 ac_check_lib_save_LIBS
=$LIBS
9632 LIBS
="-lcrypto $LIBS"
9633 cat >conftest.
$ac_ext <<_ACEOF
9634 #line $LINENO "configure"
9637 cat confdefs.h
>>conftest.
$ac_ext
9638 cat >>conftest.
$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9641 /* Override any gcc2 internal prototype to avoid an error. */
9645 /* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9647 char des_cbc_encrypt ();
9656 rm -f conftest.
$ac_objext conftest
$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try
='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_crypto_des_cbc_encrypt
=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.
$ac_ext >&5
9673 ac_cv_lib_crypto_des_cbc_encrypt
=no
9675 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9676 LIBS
=$ac_check_lib_save_LIBS
9678 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9679 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
9680 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
9681 cat >>confdefs.h
<<_ACEOF
9682 #define HAVE_LIBCRYPTO 1
9685 LIBS
="-lcrypto $LIBS"
9690 CPPFLAGS
="$CPPFLAGS $V_INCLS"
9692 for ac_header
in openssl
/evp.h
9694 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9696 echo "$as_me:$LINENO: checking for $ac_header" >&5
9697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9704 # Is the header compilable?
9705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9707 cat >conftest.
$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9711 cat confdefs.h
>>conftest.
$ac_ext
9712 cat >>conftest.
$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 $ac_includes_default
9715 #include <$ac_header>
9717 rm -f conftest.
$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719 (eval $ac_compile) 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try
='test -s conftest.$ac_objext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_header_compiler
=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.
$ac_ext >&5
9734 ac_header_compiler
=no
9736 rm -f conftest.
$ac_objext conftest.
$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9738 echo "${ECHO_T}$ac_header_compiler" >&6
9740 # Is the header present?
9741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9743 cat >conftest.
$ac_ext <<_ACEOF
9744 #line $LINENO "configure"
9747 cat confdefs.h
>>conftest.
$ac_ext
9748 cat >>conftest.
$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #include <$ac_header>
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1
>conftest.err
9757 cat conftest.err
>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } >/dev
/null
; then
9760 if test -s conftest.err
; then
9761 ac_cpp_err
=$ac_c_preproc_warn_flag
9768 if test -z "$ac_cpp_err"; then
9769 ac_header_preproc
=yes
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.
$ac_ext >&5
9774 ac_header_preproc
=no
9776 rm -f conftest.err conftest.
$ac_ext
9777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9778 echo "${ECHO_T}$ac_header_preproc" >&6
9780 # So? What about this header?
9781 case $ac_header_compiler:$ac_header_preproc in
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9789 ## ------------------------------------ ##
9790 ## Report this to bug-autoconf@gnu.org. ##
9791 ## ------------------------------------ ##
9794 sed "s/^/$as_me: WARNING: /" >&2
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805 ## ------------------------------------ ##
9806 ## Report this to bug-autoconf@gnu.org. ##
9807 ## ------------------------------------ ##
9810 sed "s/^/$as_me: WARNING: /" >&2
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 eval "$as_ac_Header=$ac_header_preproc"
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h
<<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9837 if test "$missing_includes" = "yes"; then
9838 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
9839 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
9849 # Find a good install program. We prefer a C program (faster),
9850 # so one script is as good as another. But avoid the broken or
9851 # incompatible versions:
9852 # SysV /etc/install, /usr/sbin/install
9853 # SunOS /usr/etc/install
9854 # IRIX /sbin/install
9856 # AmigaOS /C/install, which installs bootblocks on floppy discs
9857 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9858 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9859 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9860 # ./install, which can be erroneously created by make from ./install.sh.
9861 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9862 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9863 if test -z "$INSTALL"; then
9864 if test "${ac_cv_path_install+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9871 test -z "$as_dir" && as_dir
=.
9872 # Account for people who put trailing slashes in PATH elements.
9874 .
/ | .
// |
/cC
/* | \
9875 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9878 # OSF1 and SCO ODT 3.0 have their own names for install.
9879 # Don't use installbsd from OSF since it installs stuff as root
9881 for ac_prog
in ginstall scoinst
install; do
9882 for ac_exec_ext
in '' $ac_executable_extensions; do
9883 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9884 if test $ac_prog = install &&
9885 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9886 # AIX install. It has an incompatible calling convention.
9888 elif test $ac_prog = install &&
9889 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9890 # program-specific install script used by HP pwplus--don't use.
9893 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9905 if test "${ac_cv_path_install+set}" = set; then
9906 INSTALL
=$ac_cv_path_install
9908 # As a last resort, use the slow shell script. We don't cache a
9909 # path for INSTALL within a source directory, because that will
9910 # break other packages using the cache if that directory is
9911 # removed, or if the path is relative.
9912 INSTALL
=$ac_install_sh
9915 echo "$as_me:$LINENO: result: $INSTALL" >&5
9916 echo "${ECHO_T}$INSTALL" >&6
9918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9919 # It thinks the first close brace ends the variable substitution.
9920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9924 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9927 ac_config_headers
="$ac_config_headers config.h"
9930 ac_config_commands
="$ac_config_commands default-1"
9932 ac_config_files
="$ac_config_files Makefile"
9933 cat >confcache
<<\_ACEOF
9934 # This file is a shell script that caches the results of configure
9935 # tests run on this system so they can be shared between configure
9936 # scripts and configure runs, see configure's option --config-cache.
9937 # It is not useful on other systems. If it contains results you don't
9938 # want to keep, you may remove or edit it.
9940 # config.status only pays attention to the cache file if you give it
9941 # the --recheck option to rerun configure.
9943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9949 # The following way of writing the cache mishandles newlines in values,
9950 # but we know of no workaround that is simple, portable, and efficient.
9951 # So, don't put newlines in cache variables' values.
9952 # Ultrix sh set writes to stderr and can't be redirected directly,
9953 # and sets the high bit in the cache file unless we assign to the vars.
9956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9958 # `set' does not quote correctly, so add quotes (double-quote
9959 # substitution turns \\\\ into \\, and sed turns \\ into \).
9962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9965 # `set' quotes correctly as required by POSIX, so do not add quotes.
9967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9976 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9978 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
9979 if test -w $cache_file; then
9980 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9981 cat confcache
>$cache_file
9983 echo "not updating unwritable cache $cache_file"
9988 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9989 # Let make expand exec_prefix.
9990 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9992 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9993 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9994 # trailing colons and then remove the whole line if VPATH becomes empty
9995 # (actually we leave an empty line to preserve line numbers).
9996 if test "x$srcdir" = x.
; then
9997 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9998 s/:*\$(srcdir):*/:/;
9999 s/:*\${srcdir}:*/:/;
10001 s/^\([^=]*=[ ]*\):*/\1/;
10007 DEFS
=-DHAVE_CONFIG_H
10011 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10012 # 1. Remove the extension, and $U if already installed.
10013 ac_i
=`echo "$ac_i" |
10014 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10016 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10017 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10019 LIBOBJS
=$ac_libobjs
10021 LTLIBOBJS
=$ac_ltlibobjs
10025 : ${CONFIG_STATUS=./config.status}
10026 ac_clean_files_save
=$ac_clean_files
10027 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10028 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10029 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10030 cat >$CONFIG_STATUS <<_ACEOF
10032 # Generated by $as_me.
10033 # Run this file to recreate the current configuration.
10034 # Compiler output produced by configure, useful for debugging
10035 # configure, is in config.log if it exists.
10038 ac_cs_recheck=false
10040 SHELL=\${CONFIG_SHELL-$SHELL}
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10044 ## --------------------- ##
10045 ## M4sh Initialization. ##
10046 ## --------------------- ##
10048 # Be Bourne compatible
10049 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10052 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10053 # is contrary to our usage. Disable this feature.
10054 alias -g '${1+"$@"}'='"$@"'
10055 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10059 # Support unset when possible.
10060 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
10067 # Work around bugs in pre-3.0 UWIN ksh.
10068 $as_unset ENV MAIL MAILPATH
10075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10077 LC_TELEPHONE LC_TIME
10079 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10080 eval $as_var=C
; export $as_var
10086 # Required to use basename.
10087 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10093 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10094 as_basename
=basename
10100 # Name of the executable.
10101 as_me
=`$as_basename "$0" ||
10102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10103 X"$0" : 'X\(//\)$' \| \
10104 X"$0" : 'X\(/\)$' \| \
10105 . : '\(.\)' 2>/dev/null ||
10107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10108 /^X\/\(\/\/\)$/{ s//\1/; q; }
10109 /^X\/\(\/\).*/{ s//\1/; q; }
10113 # PATH needs CR, and LINENO needs CR and PATH.
10114 # Avoid depending upon Character Ranges.
10115 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10116 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10117 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10118 as_cr_digits
='0123456789'
10119 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10121 # The user is always right.
10122 if test "${PATH_SEPARATOR+set}" != set; then
10123 echo "#! /bin/sh" >conf$$.sh
10124 echo "exit 0" >>conf$$.sh
10126 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10135 as_lineno_1
=$LINENO
10136 as_lineno_2
=$LINENO
10137 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10138 test "x$as_lineno_1" != "x$as_lineno_2" &&
10139 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10140 # Find who we are. Look in the path if we contain no path at all
10143 *[\\/]* ) as_myself
=$0 ;;
10144 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10145 for as_dir
in $PATH
10148 test -z "$as_dir" && as_dir
=.
10149 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10154 # We did not find ourselves, most probably we were run as `sh COMMAND'
10155 # in which case we are not to be found in the path.
10156 if test "x$as_myself" = x
; then
10159 if test ! -f "$as_myself"; then
10160 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10161 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10162 { (exit 1); exit 1; }; }
10164 case $CONFIG_SHELL in
10166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10167 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
10170 test -z "$as_dir" && as_dir
=.
10171 for as_base
in sh bash ksh sh5
; do
10174 if ("$as_dir/$as_base" -c '
10175 as_lineno_1=$LINENO
10176 as_lineno_2=$LINENO
10177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10178 test "x$as_lineno_1" != "x$as_lineno_2" &&
10179 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
10180 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
10181 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
10182 CONFIG_SHELL
=$as_dir/$as_base
10183 export CONFIG_SHELL
10184 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10193 # uniformly replaced by the line number. The first 'sed' inserts a
10194 # line-number line before each line; the second 'sed' does the real
10195 # work. The second script uses 'N' to pair each line-number line
10196 # with the numbered line, and appends trailing '-' during
10197 # substitution so that $LINENO is not a special case at line end.
10198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10199 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10200 sed '=' <$as_myself |
10205 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10208 s,^['$as_cr_digits']*\n,,
10209 ' >$as_me.lineno
&&
10210 chmod +x
$as_me.lineno ||
10211 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10212 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10213 { (exit 1); exit 1; }; }
10215 # Don't try to exec as it changes $[0], causing all sort of problems
10216 # (the dirname of $[0] is not the place where we might find the
10217 # original and so on. Autoconf is especially sensible to this).
10219 # Exit status is that of the last command.
10224 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10225 *c
*,-n*) ECHO_N
= ECHO_C
='
10227 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10228 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10231 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10237 rm -f conf$$ conf$$.exe conf$$.
file
10239 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10240 # We could just check for DJGPP; but this test a) works b) is more generic
10241 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10242 if test -f conf$$.exe
; then
10243 # Don't use ln at all; we don't have any links
10248 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10253 rm -f conf$$ conf$$.exe conf$$.
file
10255 if mkdir
-p .
2>/dev
/null
; then
10261 as_executable_p
="test -f"
10263 # Sed expression to map a string onto a valid CPP name.
10264 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10266 # Sed expression to map a string onto a valid variable name.
10267 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10271 # We need space, tab and new line, in precisely that order.
10281 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10282 # report actual input values of CONFIG_FILES etc. instead of their
10283 # values after options handling. Logging --version etc. is OK.
10287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10288 ## Running $as_me. ##
10293 This file was extended by $as_me, which was
10294 generated by GNU Autoconf 2.57. Invocation command line was
10296 CONFIG_FILES = $CONFIG_FILES
10297 CONFIG_HEADERS = $CONFIG_HEADERS
10298 CONFIG_LINKS = $CONFIG_LINKS
10299 CONFIG_COMMANDS = $CONFIG_COMMANDS
10303 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10307 # Files that config.status was made for.
10308 if test -n "$ac_config_files"; then
10309 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10312 if test -n "$ac_config_headers"; then
10313 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10316 if test -n "$ac_config_links"; then
10317 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10320 if test -n "$ac_config_commands"; then
10321 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10324 cat >>$CONFIG_STATUS <<\_ACEOF
10327 \`$as_me' instantiates files from templates according to the
10328 current configuration.
10330 Usage: $0 [OPTIONS] [FILE]...
10332 -h, --help print this help, then exit
10333 -V, --version print version number, then exit
10334 -q, --quiet do not print progress messages
10335 -d, --debug don't remove temporary files
10336 --recheck update $as_me by reconfiguring in the same conditions
10337 --file=FILE[:TEMPLATE]
10338 instantiate the configuration file FILE
10339 --header=FILE[:TEMPLATE]
10340 instantiate the configuration header FILE
10342 Configuration files:
10345 Configuration headers:
10348 Configuration commands:
10351 Report bugs to <bug-autoconf@gnu.org>."
10354 cat >>$CONFIG_STATUS <<_ACEOF
10357 configured by $0, generated by GNU Autoconf 2.57,
10358 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10360 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10361 Free Software Foundation, Inc.
10362 This config.status script is free software; the Free Software Foundation
10363 gives unlimited permission to copy, distribute and modify it."
10368 cat >>$CONFIG_STATUS <<\_ACEOF
10369 # If no file are specified by the user, then we need to provide default
10370 # value. By we need to know if files were specified by the user.
10376 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10377 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10385 *) # This is not an option, so the user has probably given explicit
10388 ac_need_defaults
=false
;;
10392 # Handling of the options.
10394 cat >>$CONFIG_STATUS <<\_ACEOF
10395 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10397 --version |
--vers* |
-V )
10398 echo "$ac_cs_version"; exit 0 ;;
10400 # Conflict between --help and --header
10401 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10402 Try \`$0 --help' for more information." >&5
10403 echo "$as_me: error: ambiguous option: $1
10404 Try \`$0 --help' for more information." >&2;}
10405 { (exit 1); exit 1; }; };;
10406 --help |
--hel |
-h )
10407 echo "$ac_cs_usage"; exit 0 ;;
10408 --debug |
--d* |
-d )
10410 --file |
--fil |
--fi |
--f )
10412 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10413 ac_need_defaults
=false
;;
10414 --header |
--heade |
--head |
--hea )
10416 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10417 ac_need_defaults
=false
;;
10418 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10419 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10422 # This is an error.
10423 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10424 Try \`$0 --help' for more information." >&5
10425 echo "$as_me: error: unrecognized option: $1
10426 Try \`$0 --help' for more information." >&2;}
10427 { (exit 1); exit 1; }; } ;;
10429 *) ac_config_targets
="$ac_config_targets $1" ;;
10435 ac_configure_extra_args
=
10437 if $ac_cs_silent; then
10439 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10443 cat >>$CONFIG_STATUS <<_ACEOF
10444 if \$ac_cs_recheck; then
10445 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10446 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10451 cat >>$CONFIG_STATUS <<_ACEOF
10453 # INIT-COMMANDS section.
10462 cat >>$CONFIG_STATUS <<\_ACEOF
10463 for ac_config_target
in $ac_config_targets
10465 case "$ac_config_target" in
10466 # Handling of arguments.
10467 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10468 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
10469 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10471 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10472 { (exit 1); exit 1; }; };;
10476 # If the user did not use the arguments to specify the items to instantiate,
10477 # then the envvar interface is used. Set only those that are not.
10478 # We use the long form for the default assignment because of an extremely
10479 # bizarre bug on SunOS 4.1.3.
10480 if $ac_need_defaults; then
10481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10486 # Have a temporary directory for convenience. Make it in the build tree
10487 # simply because there is no reason to put it here, and in addition,
10488 # creating and moving files from /tmp can sometimes cause problems.
10489 # Create a temporary directory, and hook for its removal unless debugging.
10492 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10493 trap '{ (exit 1); exit 1; }' 1 2 13 15
10496 # Create a (secure) tmp directory for tmp files.
10499 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10500 test -n "$tmp" && test -d "$tmp"
10503 tmp
=.
/confstat$$
-$RANDOM
10504 (umask 077 && mkdir
$tmp)
10507 echo "$me: cannot create a temporary directory in ." >&2
10508 { (exit 1); exit 1; }
10513 cat >>$CONFIG_STATUS <<_ACEOF
10516 # CONFIG_FILES section.
10519 # No need to generate the scripts if there are no CONFIG_FILES.
10520 # This happens for instance when ./config.status config.h
10521 if test -n "\$CONFIG_FILES"; then
10522 # Protect against being on the right side of a sed subst in config.status.
10523 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10524 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10525 s,@SHELL@,$SHELL,;t t
10526 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10527 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10528 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10529 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10530 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10531 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10532 s,@exec_prefix@,$exec_prefix,;t t
10533 s,@prefix@,$prefix,;t t
10534 s,@program_transform_name@,$program_transform_name,;t t
10535 s,@bindir@,$bindir,;t t
10536 s,@sbindir@,$sbindir,;t t
10537 s,@libexecdir@,$libexecdir,;t t
10538 s,@datadir@,$datadir,;t t
10539 s,@sysconfdir@,$sysconfdir,;t t
10540 s,@sharedstatedir@,$sharedstatedir,;t t
10541 s,@localstatedir@,$localstatedir,;t t
10542 s,@libdir@,$libdir,;t t
10543 s,@includedir@,$includedir,;t t
10544 s,@oldincludedir@,$oldincludedir,;t t
10545 s,@infodir@,$infodir,;t t
10546 s,@mandir@,$mandir,;t t
10547 s,@build_alias@,$build_alias,;t t
10548 s,@host_alias@,$host_alias,;t t
10549 s,@target_alias@,$target_alias,;t t
10550 s,@DEFS@,$DEFS,;t t
10551 s,@ECHO_C@,$ECHO_C,;t t
10552 s,@ECHO_N@,$ECHO_N,;t t
10553 s,@ECHO_T@,$ECHO_T,;t t
10554 s,@LIBS@,$LIBS,;t t
10555 s,@build@,$build,;t t
10556 s,@build_cpu@,$build_cpu,;t t
10557 s,@build_vendor@,$build_vendor,;t t
10558 s,@build_os@,$build_os,;t t
10559 s,@host@,$host,;t t
10560 s,@host_cpu@,$host_cpu,;t t
10561 s,@host_vendor@,$host_vendor,;t t
10562 s,@host_os@,$host_os,;t t
10563 s,@SHLICC2@,$SHLICC2,;t t
10565 s,@CFLAGS@,$CFLAGS,;t t
10566 s,@LDFLAGS@,$LDFLAGS,;t t
10567 s,@CPPFLAGS@,$CPPFLAGS,;t t
10568 s,@ac_ct_CC@,$ac_ct_CC,;t t
10569 s,@EXEEXT@,$EXEEXT,;t t
10570 s,@OBJEXT@,$OBJEXT,;t t
10572 s,@EGREP@,$EGREP,;t t
10573 s,@LIBOBJS@,$LIBOBJS,;t t
10574 s,@V_CCOPT@,$V_CCOPT,;t t
10575 s,@V_DEFS@,$V_DEFS,;t t
10576 s,@V_GROUP@,$V_GROUP,;t t
10577 s,@V_INCLS@,$V_INCLS,;t t
10578 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
10579 s,@LOCALSRC@,$LOCALSRC,;t t
10580 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10581 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10582 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10583 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10588 cat >>$CONFIG_STATUS <<\_ACEOF
10589 # Split the substitutions into bite-sized pieces for seds with
10590 # small command number limits, like on Digital OSF/1 and HP-UX.
10591 ac_max_sed_lines
=48
10592 ac_sed_frag
=1 # Number of current file.
10593 ac_beg
=1 # First line for current file.
10594 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10597 while $ac_more_lines; do
10598 if test $ac_beg -gt 1; then
10599 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10601 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10603 if test ! -s $tmp/subs.frag
; then
10604 ac_more_lines
=false
10606 # The purpose of the label and of the branching condition is to
10607 # speed up the sed processing (if there are no `@' at all, there
10608 # is no need to browse any of the substitutions).
10609 # These are the two extra sed commands mentioned above.
10611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
10612 if test -z "$ac_sed_cmds"; then
10613 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
10615 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10617 ac_sed_frag
=`expr $ac_sed_frag + 1`
10619 ac_end
=`expr $ac_end + $ac_max_sed_lines`
10622 if test -z "$ac_sed_cmds"; then
10625 fi # test -n "$CONFIG_FILES"
10628 cat >>$CONFIG_STATUS <<\_ACEOF
10629 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
10630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10632 - |
*:- |
*:-:* ) # input from stdin
10634 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10635 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10636 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10637 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10638 * ) ac_file_in
=$ac_file.
in ;;
10641 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10642 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10644 X"$ac_file" : 'X\(//\)[^/]' \| \
10645 X"$ac_file" : 'X\(//\)$' \| \
10646 X"$ac_file" : 'X\(/\)' \| \
10647 . : '\(.\)' 2>/dev/null ||
10649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10651 /^X\(\/\/\)$/{ s//\1/; q; }
10652 /^X\(\/\).*/{ s//\1/; q; }
10654 { if $as_mkdir_p; then
10659 while test ! -d "$as_dir"; do
10660 as_dirs
="$as_dir $as_dirs"
10661 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10663 X"$as_dir" : 'X\(//\)[^/]' \| \
10664 X"$as_dir" : 'X\(//\)$' \| \
10665 X"$as_dir" : 'X\(/\)' \| \
10666 . : '\(.\)' 2>/dev/null ||
10668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10670 /^X\(\/\/\)$/{ s//\1/; q; }
10671 /^X\(\/\).*/{ s//\1/; q; }
10674 test ! -n "$as_dirs" || mkdir
$as_dirs
10675 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10676 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10677 { (exit 1); exit 1; }; }; }
10681 if test "$ac_dir" != .
; then
10682 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10683 # A "../" for each directory in $ac_dir_suffix.
10684 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10686 ac_dir_suffix
= ac_top_builddir
=
10690 .
) # No --srcdir option. We are building in place.
10692 if test -z "$ac_top_builddir"; then
10695 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
10697 [\\/]* | ?
:[\\/]* ) # Absolute path.
10698 ac_srcdir
=$srcdir$ac_dir_suffix;
10699 ac_top_srcdir
=$srcdir ;;
10700 *) # Relative path.
10701 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
10702 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
10704 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10706 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
10707 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10708 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10709 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10713 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10714 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
10717 if test x
"$ac_file" != x-
; then
10718 { echo "$as_me:$LINENO: creating $ac_file" >&5
10719 echo "$as_me: creating $ac_file" >&6;}
10722 # Let's still pretend it is `configure' which instantiates (i.e., don't
10723 # use $as_me), people would be surprised to read:
10724 # /* config.h. Generated by config.status. */
10725 if test x
"$ac_file" = x-
; then
10728 configure_input
="$ac_file. "
10730 configure_input
=$configure_input"Generated from `echo $ac_file_in |
10731 sed 's,.*/,,'` by configure."
10733 # First look for the input files in the build tree, otherwise in the
10735 ac_file_inputs
=`IFS=:
10736 for f in $ac_file_in; do
10738 -) echo $tmp/stdin ;;
10740 # Absolute (can't be DOS-style, as IFS=:)
10741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10742 echo "$as_me: error: cannot find input file: $f" >&2;}
10743 { (exit 1); exit 1; }; }
10746 if test -f "$f"; then
10749 elif test -f "$srcdir/$f"; then
10754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10755 echo "$as_me: error: cannot find input file: $f" >&2;}
10756 { (exit 1); exit 1; }; }
10759 done` ||
{ (exit 1); exit 1; }
10761 cat >>$CONFIG_STATUS <<_ACEOF
10765 cat >>$CONFIG_STATUS <<\_ACEOF
10767 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
10768 s
,@configure_input@
,$configure_input,;t t
10769 s
,@srcdir@
,$ac_srcdir,;t t
10770 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
10771 s
,@top_srcdir@
,$ac_top_srcdir,;t t
10772 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
10773 s
,@builddir@
,$ac_builddir,;t t
10774 s
,@abs_builddir@
,$ac_abs_builddir,;t t
10775 s
,@top_builddir@
,$ac_top_builddir,;t t
10776 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
10777 s
,@INSTALL@
,$ac_INSTALL,;t t
10778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10780 if test x"$ac_file" != x-; then
10781 mv $tmp/out $ac_file
10789 cat >>$CONFIG_STATUS <<\_ACEOF
10792 # CONFIG_HEADER section.
10795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
10796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10798 # ac_d sets the value in "#define NAME VALUE" lines.
10799 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10800 ac_dB
='[ ].*$,\1#\2'
10803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10804 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10805 ac_uB
='$,\1#\2define\3'
10809 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
10810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10812 - |
*:- |
*:-:* ) # input from stdin
10814 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10815 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10816 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
10817 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
10818 * ) ac_file_in
=$ac_file.
in ;;
10821 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
10822 echo "$as_me: creating $ac_file" >&6;}
10824 # First look for the input files in the build tree, otherwise in the
10826 ac_file_inputs
=`IFS=:
10827 for f in $ac_file_in; do
10829 -) echo $tmp/stdin ;;
10831 # Absolute (can't be DOS-style, as IFS=:)
10832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10833 echo "$as_me: error: cannot find input file: $f" >&2;}
10834 { (exit 1); exit 1; }; }
10837 if test -f "$f"; then
10840 elif test -f "$srcdir/$f"; then
10845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10846 echo "$as_me: error: cannot find input file: $f" >&2;}
10847 { (exit 1); exit 1; }; }
10850 done` ||
{ (exit 1); exit 1; }
10851 # Remove the trailing spaces.
10852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10857 # `conftest.undefs', that substitutes the proper values into
10858 # config.h.in to produce config.h. The first handles `#define'
10859 # templates, and the second `#undef' templates.
10860 # And first: Protect against being on the right side of a sed subst in
10861 # config.status. Protect against being in an unquoted here document
10862 # in config.status.
10863 rm -f conftest.defines conftest.undefs
10864 # Using a here document instead of a string reduces the quoting nightmare.
10865 # Putting comments in sed scripts is not portable.
10867 # `end' is used to avoid that the second main sed command (meant for
10868 # 0-ary CPP macros) applies to n-ary macro definitions.
10869 # See the Autoconf documentation for `clear'.
10870 cat >confdef2sed.
sed <<\_ACEOF
10875 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10877 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10880 # If some macros were called several times there might be several times
10881 # the same #defines, which is useless. Nevertheless, we may not want to
10882 # sort them, since we want the *last* AC-DEFINE to be honored.
10883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10885 rm -f confdef2sed.sed
10887 # This sed command replaces #undef with comments. This is necessary, for
10888 # example, in the case of _POSIX_SOURCE, which is predefined and required
10889 # on some systems where configure will not decide to define it.
10890 cat >>conftest.undefs <<\_ACEOF
10891 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10894 # Break up conftest.defines because some shells have a limit on the size
10895 # of here documents, and old seds have small limits too (100 cmds).
10896 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10897 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10898 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10899 echo ' :' >>$CONFIG_STATUS
10900 rm -f conftest.tail
10901 while grep . conftest.defines >/dev/null
10903 # Write a limited-size here document to $tmp/defines.sed.
10904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10905 # Speed up: don't consider the non `#define' lines.
10906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10907 # Work around the forget-to-reset-the-flag bug.
10908 echo 't clr' >>$CONFIG_STATUS
10909 echo ': clr' >>$CONFIG_STATUS
10910 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
10912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10914 mv $tmp/out $tmp/in
10916 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
10917 rm -f conftest.defines
10918 mv conftest.
tail conftest.defines
10920 rm -f conftest.defines
10921 echo ' fi # grep' >>$CONFIG_STATUS
10922 echo >>$CONFIG_STATUS
10924 # Break up conftest.undefs because some shells have a limit on the size
10925 # of here documents, and old seds have small limits too (100 cmds).
10926 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10927 rm -f conftest.
tail
10928 while grep . conftest.undefs
>/dev
/null
10930 # Write a limited-size here document to $tmp/undefs.sed.
10931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10932 # Speed up: don't consider the non
`#undef'
10933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10934 # Work around the forget-to-reset-the-flag bug.
10935 echo 't clr' >>$CONFIG_STATUS
10936 echo ': clr' >>$CONFIG_STATUS
10937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10941 mv $tmp/out $tmp/in
10943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10944 rm -f conftest.undefs
10945 mv conftest.tail conftest.undefs
10947 rm -f conftest.undefs
10949 cat >>$CONFIG_STATUS <<\_ACEOF
10950 # Let's still pretend it is `configure
' which instantiates (i.e., don't
10951 # use $as_me), people would be surprised to read:
10952 # /* config.h. Generated by config.status. */
10953 if test x
"$ac_file" = x-
; then
10954 echo "/* Generated by configure. */" >$tmp/config.h
10956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10958 cat $tmp/in >>$tmp/config.h
10960 if test x
"$ac_file" != x-
; then
10961 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
10962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10963 echo "$as_me: $ac_file is unchanged" >&6;}
10965 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
10966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10967 X"$ac_file" : 'X\(//\)[^/]' \| \
10968 X"$ac_file" : 'X\(//\)$' \| \
10969 X"$ac_file" : 'X\(/\)' \| \
10970 . : '\(.\)' 2>/dev/null ||
10972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10974 /^X\(\/\/\)$/{ s//\1/; q; }
10975 /^X\(\/\).*/{ s//\1/; q; }
10977 { if $as_mkdir_p; then
10982 while test ! -d "$as_dir"; do
10983 as_dirs
="$as_dir $as_dirs"
10984 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
10985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10986 X"$as_dir" : 'X\(//\)[^/]' \| \
10987 X"$as_dir" : 'X\(//\)$' \| \
10988 X"$as_dir" : 'X\(/\)' \| \
10989 . : '\(.\)' 2>/dev/null ||
10991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10993 /^X\(\/\/\)$/{ s//\1/; q; }
10994 /^X\(\/\).*/{ s//\1/; q; }
10997 test ! -n "$as_dirs" || mkdir
$as_dirs
10998 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11000 { (exit 1); exit 1; }; }; }
11003 mv $tmp/config.h
$ac_file
11007 rm -f $tmp/config.h
11011 cat >>$CONFIG_STATUS <<\_ACEOF
11014 # CONFIG_COMMANDS section.
11016 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
11017 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
11018 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11019 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
11020 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11021 X"$ac_dest" : 'X\(//\)[^/]' \| \
11022 X"$ac_dest" : 'X\(//\)$' \| \
11023 X"$ac_dest" : 'X\(/\)' \| \
11024 . : '\(.\)' 2>/dev/null ||
11026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11028 /^X\(\/\/\)$/{ s//\1/; q; }
11029 /^X\(\/\).*/{ s//\1/; q; }
11033 if test "$ac_dir" != .
; then
11034 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11035 # A "../" for each directory in $ac_dir_suffix.
11036 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11038 ac_dir_suffix
= ac_top_builddir
=
11042 .
) # No --srcdir option. We are building in place.
11044 if test -z "$ac_top_builddir"; then
11047 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11049 [\\/]* | ?
:[\\/]* ) # Absolute path.
11050 ac_srcdir
=$srcdir$ac_dir_suffix;
11051 ac_top_srcdir
=$srcdir ;;
11052 *) # Relative path.
11053 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11054 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11058 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
11059 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11060 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11061 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11064 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11065 echo "$as_me: executing $ac_dest commands" >&6;}
11067 default-1
) if test -f .devel
; then
11068 echo timestamp
> stamp-h
11069 cat Makefile-devel-adds
>> Makefile
11076 cat >>$CONFIG_STATUS <<\_ACEOF
11078 { (exit 0); exit 0; }
11080 chmod +x
$CONFIG_STATUS
11081 ac_clean_files
=$ac_clean_files_save
11084 # configure is writing to config.log, and then calls config.status.
11085 # config.status does its own redirection, appending to config.log.
11086 # Unfortunately, on DOS this fails, as config.log is still kept open
11087 # by configure, so config.status won't be able to write to it; its
11088 # output is simply discarded. So we exec the FD to /dev/null,
11089 # effectively closing config.log, so it can be properly (re)opened and
11090 # appended to by config.status. When coming back to configure, we
11091 # need to make the FD available again.
11092 if test "$no_create" != yes; then
11094 ac_config_status_args
=
11095 test "$silent" = yes &&
11096 ac_config_status_args
="$ac_config_status_args --quiet"
11098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11101 # would make configure fail if this is the last instruction.
11102 $ac_cs_success ||
{ (exit 1); exit 1; }