2 # From configure.in Revision: 1.188.2.3 .
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 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to
help
870 it to
find libraries and programs with nonstandard names
/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
879 test -d $ac_dir ||
continue
882 if test "$ac_dir" != .
; then
883 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix
= ac_top_builddir
=
891 .
) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?
:[\\/]* ) # Absolute path.
899 ac_srcdir
=$srcdir$ac_dir_suffix;
900 ac_top_srcdir
=$srcdir ;;
902 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu
; then
916 $SHELL $ac_srcdir/configure.gnu
--help=recursive
917 elif test -f $ac_srcdir/configure
; then
919 $SHELL $ac_srcdir/configure
--help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.
in; then
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
935 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation
, Inc.
937 This configure
script is free software
; the Free Software Foundation
938 gives unlimited permission to copy
, distribute and modify it.
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
982 test -z "$as_dir" && as_dir
=.
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1007 ac_must_keep_next
=false
1013 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1015 |
-silent |
--silent |
--silen |
--sile |
--sil)
1017 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1023 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true
; then
1025 ac_must_keep_next
=false
# Got value, back to normal.
1028 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1029 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1030 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1031 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 -* ) ac_must_keep_next
=true
;;
1039 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1046 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1047 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1088 for ac_var in $ac_subst_vars
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1095 if test -n "$ac_subst_files"; then
1102 for ac_var in $ac_subst_files
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1110 if test -s confdefs.h; then
1117 sed "/^$/d" confdefs.h | sort
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1128 for ac_signal
in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest
* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138 # Predefined preprocessor variables.
1140 cat >>confdefs.h
<<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1145 cat >>confdefs.h
<<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150 cat >>confdefs.h
<<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1155 cat >>confdefs.h
<<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1160 cat >>confdefs.h
<<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE
; then
1169 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1171 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 for ac_site_file
in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1190 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1191 *) . .
/$cache_file;;
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1200 # Check that the precious variables saved in the cache have kept the same
1202 ac_cache_corrupted
=false
1203 for ac_var
in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1206 eval ac_new_set
=\
$ac_env_${ac_var}_set
1207 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val
="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted
=: ;;
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted
=: ;;
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted
=:
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1233 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg
=$ac_var=$ac_new_val ;;
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1252 ac_cpp
='$CPP $CPPFLAGS'
1253 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1277 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1278 if test -f $ac_dir/install-sh
; then
1280 ac_install_sh
="$ac_aux_dir/install-sh -c"
1282 elif test -f $ac_dir/install.sh
; then
1284 ac_install_sh
="$ac_aux_dir/install.sh -c"
1286 elif test -f $ac_dir/shtool
; then
1288 ac_install_sh
="$ac_aux_dir/shtool install -c"
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1297 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1312 ac_cv_build_alias
=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias
=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1328 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 ac_cv_host_alias
=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias
=$ac_cv_build_alias
1341 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1350 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS
="-I\$(srcdir)"
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS
="$CFLAGS"
1374 if test -z "$CC" ; then
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2
; ac_word
=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
1388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1392 test -z "$as_dir" && as_dir
=.
1393 for ac_exec_ext
in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2
="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
1405 SHLICC2
=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1414 if test $SHLICC2 = yes ; then
1421 if test -z "$CC" -a "$with_gcc" = no
; then
1426 ac_cpp
='$CPP $CPPFLAGS'
1427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC
="$CC" # Let the user override the test.
1441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir
=.
1446 for ac_exec_ext
in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1467 if test -z "$ac_cv_prog_CC"; then
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc
; ac_word
=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir
=.
1484 for ac_exec_ext
in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC
="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC
="$CC" # Let the user override the test.
1521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir
=.
1526 for ac_exec_ext
in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1547 if test -z "$ac_cv_prog_CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc
; ac_word
=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1563 test -z "$as_dir" && as_dir
=.
1564 for ac_exec_ext
in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC
="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc
; ac_word
=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC
="$CC" # Let the user override the test.
1602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir
=.
1607 for ac_exec_ext
in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected
=yes
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy
$ac_cv_prog_CC
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1629 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC
="$CC" # Let the user override the test.
1658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir
=.
1663 for ac_exec_ext
in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1683 test -n "$CC" && break
1686 if test -z "$CC"; then
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy
$ac_prog; ac_word
=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir
=.
1705 for ac_exec_ext
in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC
="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$ac_ct_CC" && break
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler
=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1760 cat >conftest.
$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1764 cat confdefs.h
>>conftest.
$ac_ext
1765 cat >>conftest.
$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1776 ac_clean_files_save
=$ac_clean_files
1777 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1796 # b.out is created by i960 compilers.
1797 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1799 test -f "$ac_file" ||
continue
1801 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1804 # This is the source file.
1807 # We found the default executable, but exeext='' is most
1811 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.
$ac_ext >&5
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1832 ac_exeext
=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try
='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1851 if test "$cross_compiling" = maybe
; then
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1867 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1868 ac_clean_files
=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1887 for ac_file
in conftest.exe conftest conftest.
*; do
1888 test -f "$ac_file" ||
continue
1890 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1891 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1905 rm -f conftest
$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1909 rm -f conftest.
$ac_ext
1910 EXEEXT
=$ac_cv_exeext
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.
$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1921 cat confdefs.h
>>conftest.
$ac_ext
1922 cat >>conftest.
$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1942 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.
$ac_ext >&5
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1957 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT
=$ac_cv_objext
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 cat >conftest.
$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1972 cat confdefs.h
>>conftest.
$ac_ext
1973 cat >>conftest.
$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1987 rm -f conftest.
$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try
='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.
$ac_ext >&5
2006 rm -f conftest.
$ac_objext conftest.
$ac_ext
2007 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS
=${CFLAGS+set}
2014 ac_save_CFLAGS
=$CFLAGS
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.
$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2025 cat confdefs.h
>>conftest.
$ac_ext
2026 cat >>conftest.
$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2037 rm -f conftest.
$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try
='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.
$ac_ext >&5
2056 rm -f conftest.
$ac_objext conftest.
$ac_ext
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS
=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2069 if test "$GCC" = yes; then
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 ac_cv_prog_cc_stdc
=no
2082 cat >conftest.
$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2086 cat confdefs.h
>>conftest.
$ac_ext
2087 cat >>conftest.
$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2107 s = g (p, va_arg (v,int));
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2134 CC
="$ac_save_CC $ac_arg"
2135 rm -f conftest.
$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try
='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc
=$ac_arg
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.
$ac_ext >&5
2154 rm -f conftest.
$ac_objext
2156 rm -f conftest.
$ac_ext conftest.
$ac_objext
2161 case "x$ac_cv_prog_cc_stdc" in
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.
$ac_ext <<_ACEOF
2180 rm -f conftest.
$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try
='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration
in \
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2201 cat >conftest.
$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2205 cat confdefs.h
>>conftest.
$ac_ext
2206 cat >>conftest.
$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2218 rm -f conftest.
$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try
='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.
$ac_ext >&5
2237 rm -f conftest.
$ac_objext conftest.
$ac_ext
2238 cat >conftest.
$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2242 cat confdefs.h
>>conftest.
$ac_ext
2243 cat >>conftest.
$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2254 rm -f conftest.
$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try
='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.
$ac_ext >&5
2272 rm -f conftest.
$ac_objext conftest.
$ac_ext
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.
$ac_ext >&5
2286 rm -f conftest.
$ac_objext conftest.
$ac_ext
2288 ac_cpp
='$CPP $CPPFLAGS'
2289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers
=2
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.
$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2327 cat confdefs.h
>>conftest.
$ac_ext
2328 cat >>conftest.
$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2334 int frob(int, char *)
2339 rm -f conftest.
$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try
='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes
=yes
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.
$ac_ext >&5
2356 ac_cv_lbl_cc_ansi_prototypes
=no
2358 rm -f conftest.
$ac_objext conftest.
$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags
="$CFLAGS"
2370 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2378 cat confdefs.h
>>conftest.
$ac_ext
2379 cat >>conftest.
$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2385 int frob(int, char *)
2390 rm -f conftest.
$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try
='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa
=yes
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.
$ac_ext >&5
2407 ac_cv_lbl_cc_hpux_cc_aa
=no
2409 rm -f conftest.
$ac_objext conftest.
$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2419 CFLAGS
="$savedcflags"
2420 V_CCOPT
="-Aa $V_CCOPT"
2421 cat >>confdefs.h
<<\_ACEOF
2422 #define _HPUX_SOURCE 1
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2434 V_INCLS
="$V_INCLS -I/usr/local/include"
2435 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
2440 V_CCOPT
="$V_CCOPT -xansi -signed -O"
2444 V_CCOPT
="$V_CCOPT -std1 -O"
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 cat >conftest.
$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2457 cat confdefs.h
>>conftest.
$ac_ext
2458 cat >>conftest.
$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2464 struct a { int b; };
2465 void c(const struct a *)
2470 rm -f conftest.
$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try
='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto
=yes
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.
$ac_ext >&5
2487 ac_cv_lbl_cc_const_proto
=no
2489 rm -f conftest.
$ac_objext conftest.
$ac_ext
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no
; then
2495 cat >>confdefs.h
<<\_ACEOF
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 if test "${ac_cv_c_inline+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 for ac_kw
in inline __inline__ __inline
; do
2511 cat >conftest.
$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2515 cat confdefs.h
>>conftest.
$ac_ext
2516 cat >>conftest.
$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2520 static $ac_kw foo_t static_foo () {return 0; }
2521 $ac_kw foo_t foo () {return 0; }
2525 rm -f conftest.
$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try
='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_c_inline
=$ac_kw; break
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.
$ac_ext >&5
2543 rm -f conftest.
$ac_objext conftest.
$ac_ext
2547 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2548 echo "${ECHO_T}$ac_cv_c_inline" >&6
2549 case $ac_cv_c_inline in
2552 cat >>confdefs.h
<<\_ACEOF
2556 *) cat >>confdefs.h
<<_ACEOF
2557 #define inline $ac_cv_c_inline
2563 echo "$as_me:$LINENO: checking for __attribute__" >&5
2564 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2565 if test "${ac_cv___attribute__+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 cat >conftest.
$ac_ext <<_ACEOF
2570 #line $LINENO "configure"
2573 cat confdefs.h
>>conftest.
$ac_ext
2574 cat >>conftest.
$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2583 static void foo(void) __attribute__ ((noreturn));
2595 rm -f conftest.
$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try
='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 ac_cv___attribute__
=yes
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.
$ac_ext >&5
2612 ac_cv___attribute__
=no
2614 rm -f conftest.
$ac_objext conftest.
$ac_ext
2617 if test "$ac_cv___attribute__" = "yes"; then
2619 cat >>confdefs.h
<<\_ACEOF
2620 #define HAVE___ATTRIBUTE__ 1
2623 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
2625 V_DEFS
="$V_DEFS -D_U_=\"\""
2627 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2628 echo "${ECHO_T}$ac_cv___attribute__" >&6
2631 ac_cpp
='$CPP $CPPFLAGS'
2632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2635 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2636 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2637 # On Suns, sometimes $CPP names a directory.
2638 if test -n "$CPP" && test -d "$CPP"; then
2641 if test -z "$CPP"; then
2642 if test "${ac_cv_prog_CPP+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 # Double quotes because CPP needs to be expanded
2646 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2649 for ac_c_preproc_warn_flag
in '' yes
2651 # Use a header file that comes with gcc, so configuring glibc
2652 # with a fresh cross-compiler works.
2653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2654 # <limits.h> exists even on freestanding compilers.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp. "Syntax error" is here to catch this case.
2657 cat >conftest.
$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2661 cat confdefs.h
>>conftest.
$ac_ext
2662 cat >>conftest.
$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2665 # include <limits.h>
2667 # include <assert.h>
2671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2672 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1
>conftest.err
2676 cat conftest.err
>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } >/dev
/null
; then
2679 if test -s conftest.err
; then
2680 ac_cpp_err
=$ac_c_preproc_warn_flag
2687 if test -z "$ac_cpp_err"; then
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2693 # Broken: fails on valid input.
2696 rm -f conftest.err conftest.
$ac_ext
2698 # OK, works on sane cases. Now check whether non-existent headers
2699 # can be detected and how.
2700 cat >conftest.
$ac_ext <<_ACEOF
2701 #line $LINENO "configure"
2704 cat confdefs.h
>>conftest.
$ac_ext
2705 cat >>conftest.
$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 #include <ac_nonexistent.h>
2709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2710 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2712 grep -v '^ *+' conftest.er1
>conftest.err
2714 cat conftest.err
>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); } >/dev
/null
; then
2717 if test -s conftest.err
; then
2718 ac_cpp_err
=$ac_c_preproc_warn_flag
2725 if test -z "$ac_cpp_err"; then
2726 # Broken: success on invalid input.
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.
$ac_ext >&5
2732 # Passes both tests.
2736 rm -f conftest.err conftest.
$ac_ext
2739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2740 rm -f conftest.err conftest.
$ac_ext
2741 if $ac_preproc_ok; then
2753 echo "$as_me:$LINENO: result: $CPP" >&5
2754 echo "${ECHO_T}$CPP" >&6
2756 for ac_c_preproc_warn_flag
in '' yes
2758 # Use a header file that comes with gcc, so configuring glibc
2759 # with a fresh cross-compiler works.
2760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2761 # <limits.h> exists even on freestanding compilers.
2762 # On the NeXT, cc -E runs the code through the compiler's parser,
2763 # not just through cpp. "Syntax error" is here to catch this case.
2764 cat >conftest.
$ac_ext <<_ACEOF
2765 #line $LINENO "configure"
2768 cat confdefs.h
>>conftest.
$ac_ext
2769 cat >>conftest.
$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2772 # include <limits.h>
2774 # include <assert.h>
2778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2779 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2781 grep -v '^ *+' conftest.er1
>conftest.err
2783 cat conftest.err
>&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } >/dev
/null
; then
2786 if test -s conftest.err
; then
2787 ac_cpp_err
=$ac_c_preproc_warn_flag
2794 if test -z "$ac_cpp_err"; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.
$ac_ext >&5
2800 # Broken: fails on valid input.
2803 rm -f conftest.err conftest.
$ac_ext
2805 # OK, works on sane cases. Now check whether non-existent headers
2806 # can be detected and how.
2807 cat >conftest.
$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2811 cat confdefs.h
>>conftest.
$ac_ext
2812 cat >>conftest.
$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814 #include <ac_nonexistent.h>
2816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2819 grep -v '^ *+' conftest.er1
>conftest.err
2821 cat conftest.err
>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev
/null
; then
2824 if test -s conftest.err
; then
2825 ac_cpp_err
=$ac_c_preproc_warn_flag
2832 if test -z "$ac_cpp_err"; then
2833 # Broken: success on invalid input.
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.
$ac_ext >&5
2839 # Passes both tests.
2843 rm -f conftest.err conftest.
$ac_ext
2846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2847 rm -f conftest.err conftest.
$ac_ext
2848 if $ac_preproc_ok; then
2851 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2854 See \`config.log' for more details." >&2;}
2855 { (exit 1); exit 1; }; }
2859 ac_cpp
='$CPP $CPPFLAGS'
2860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2865 echo "$as_me:$LINENO: checking for egrep" >&5
2866 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2867 if test "${ac_cv_prog_egrep+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2871 then ac_cv_prog_egrep
='grep -E'
2872 else ac_cv_prog_egrep
='egrep'
2875 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2876 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2877 EGREP
=$ac_cv_prog_egrep
2880 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2881 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2882 if test "${ac_cv_header_stdc+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.
$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h
>>conftest.
$ac_ext
2890 cat >>conftest.
$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2905 rm -f conftest.
$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 { ac_try
='test -s conftest.$ac_objext'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 ac_cv_header_stdc
=yes
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.
$ac_ext >&5
2922 ac_cv_header_stdc
=no
2924 rm -f conftest.
$ac_objext conftest.
$ac_ext
2926 if test $ac_cv_header_stdc = yes; then
2927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2928 cat >conftest.
$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2932 cat confdefs.h
>>conftest.
$ac_ext
2933 cat >>conftest.
$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 $EGREP "memchr" >/dev
/null
2>&1; then
2942 ac_cv_header_stdc
=no
2948 if test $ac_cv_header_stdc = yes; then
2949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2950 cat >conftest.
$ac_ext <<_ACEOF
2951 #line $LINENO "configure"
2954 cat confdefs.h
>>conftest.
$ac_ext
2955 cat >>conftest.
$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "free" >/dev
/null
2>&1; then
2964 ac_cv_header_stdc
=no
2970 if test $ac_cv_header_stdc = yes; then
2971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2972 if test "$cross_compiling" = yes; then
2975 cat >conftest.
$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2979 cat confdefs.h
>>conftest.
$ac_ext
2980 cat >>conftest.
$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2983 #if ((' ' & 0x0FF) == 0x020)
2984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2987 # define ISLOWER(c) \
2988 (('a' <= (c) && (c) <= 'i') \
2989 || ('j' <= (c) && (c) <= 'r') \
2990 || ('s' <= (c) && (c) <= 'z'))
2991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2999 for (i = 0; i < 256; i++)
3000 if (XOR (islower (i), ISLOWER (i))
3001 || toupper (i) != TOUPPER (i))
3006 rm -f conftest
$ac_exeext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3008 (eval $ac_link) 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3019 echo "$as_me: program exited with status $ac_status" >&5
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.
$ac_ext >&5
3024 ac_cv_header_stdc
=no
3026 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3032 if test $ac_cv_header_stdc = yes; then
3034 cat >>confdefs.h
<<\_ACEOF
3035 #define STDC_HEADERS 1
3040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3050 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3051 inttypes.h stdint.h unistd.h
3053 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3054 echo "$as_me:$LINENO: checking for $ac_header" >&5
3055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 cat >conftest.
$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 $ac_includes_default
3068 #include <$ac_header>
3070 rm -f conftest.
$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try
='test -s conftest.$ac_objext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 eval "$as_ac_Header=yes"
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.
$ac_ext >&5
3087 eval "$as_ac_Header=no"
3089 rm -f conftest.
$ac_objext conftest.
$ac_ext
3091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3094 cat >>confdefs.h
<<_ACEOF
3095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3106 for ac_header
in fcntl.h rpc
/rpcent.h netdnet
/dnetdb.h
3108 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3110 echo "$as_me:$LINENO: checking for $ac_header" >&5
3111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3118 # Is the header compilable?
3119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3121 cat >conftest.
$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3125 cat confdefs.h
>>conftest.
$ac_ext
3126 cat >>conftest.
$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 $ac_includes_default
3129 #include <$ac_header>
3131 rm -f conftest.
$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try
='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 ac_header_compiler
=yes
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.
$ac_ext >&5
3148 ac_header_compiler
=no
3150 rm -f conftest.
$ac_objext conftest.
$ac_ext
3151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3152 echo "${ECHO_T}$ac_header_compiler" >&6
3154 # Is the header present?
3155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3157 cat >conftest.
$ac_ext <<_ACEOF
3158 #line $LINENO "configure"
3161 cat confdefs.h
>>conftest.
$ac_ext
3162 cat >>conftest.
$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3164 #include <$ac_header>
3166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3169 grep -v '^ *+' conftest.er1
>conftest.err
3171 cat conftest.err
>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } >/dev
/null
; then
3174 if test -s conftest.err
; then
3175 ac_cpp_err
=$ac_c_preproc_warn_flag
3182 if test -z "$ac_cpp_err"; then
3183 ac_header_preproc
=yes
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.
$ac_ext >&5
3188 ac_header_preproc
=no
3190 rm -f conftest.err conftest.
$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3192 echo "${ECHO_T}$ac_header_preproc" >&6
3194 # So? What about this header?
3195 case $ac_header_compiler:$ac_header_preproc in
3197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3203 ## ------------------------------------ ##
3204 ## Report this to bug-autoconf@gnu.org. ##
3205 ## ------------------------------------ ##
3208 sed "s/^/$as_me: WARNING: /" >&2
3211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3219 ## ------------------------------------ ##
3220 ## Report this to bug-autoconf@gnu.org. ##
3221 ## ------------------------------------ ##
3224 sed "s/^/$as_me: WARNING: /" >&2
3227 echo "$as_me:$LINENO: checking for $ac_header" >&5
3228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 eval "$as_ac_Header=$ac_header_preproc"
3234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3239 cat >>confdefs.h
<<_ACEOF
3240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3248 for ac_header
in netinet
/if_ether.h
3250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3251 echo "$as_me:$LINENO: checking for $ac_header" >&5
3252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 cat >conftest.
$ac_ext <<_ACEOF
3257 #line $LINENO "configure"
3260 cat confdefs.h
>>conftest.
$ac_ext
3261 cat >>conftest.
$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #include <sys/types.h>
3264 #include <sys/socket.h>
3266 #include <$ac_header>
3268 rm -f conftest.
$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try
='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 eval "$as_ac_Header=yes"
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.
$ac_ext >&5
3285 eval "$as_ac_Header=no"
3287 rm -f conftest.
$ac_objext conftest.
$ac_ext
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3292 cat >>confdefs.h
<<_ACEOF
3293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3300 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3302 # The simple test didn't work.
3303 # Do we need to include <net/if.h> first?
3304 # Unset ac_cv_header_netinet_if_ether_h so we don't
3305 # treat the previous failure as a cached value and
3306 # suppress the next test.
3308 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3309 echo "$as_me: Rechecking with some additional includes" >&6;}
3310 unset ac_cv_header_netinet_if_ether_h
3312 for ac_header
in netinet
/if_ether.h
3314 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3315 echo "$as_me:$LINENO: checking for $ac_header" >&5
3316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.
$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3324 cat confdefs.h
>>conftest.
$ac_ext
3325 cat >>conftest.
$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <sys/types.h>
3328 #include <sys/socket.h>
3329 #include <netinet/in.h>
3334 #include <$ac_header>
3336 rm -f conftest.
$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338 (eval $ac_compile) 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try
='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 eval "$as_ac_Header=yes"
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.
$ac_ext >&5
3353 eval "$as_ac_Header=no"
3355 rm -f conftest.
$ac_objext conftest.
$ac_ext
3357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3360 cat >>confdefs.h
<<_ACEOF
3361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3370 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3371 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3372 if test "${ac_cv_header_time+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 cat >conftest.
$ac_ext <<_ACEOF
3376 #line $LINENO "configure"
3379 cat confdefs.h
>>conftest.
$ac_ext
3380 cat >>conftest.
$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <sys/types.h>
3383 #include <sys/time.h>
3389 if ((struct tm *) 0)
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try
='test -s conftest.$ac_objext'
3402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 ac_cv_header_time
=yes
3409 echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.
$ac_ext >&5
3412 ac_cv_header_time
=no
3414 rm -f conftest.
$ac_objext conftest.
$ac_ext
3416 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3417 echo "${ECHO_T}$ac_cv_header_time" >&6
3418 if test $ac_cv_header_time = yes; then
3420 cat >>confdefs.h
<<\_ACEOF
3421 #define TIME_WITH_SYS_TIME 1
3430 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3431 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3432 if test "$cross_compiling" = yes; then
3433 if test "${ac_cv_linux_vers+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 ac_cv_linux_vers
=unknown
3440 if test "${ac_cv_linux_vers+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 ac_cv_linux_vers
=`uname -r 2>&1 | \
3444 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3448 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3449 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3450 if test $ac_cv_linux_vers = unknown
; then
3451 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3452 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3453 { (exit 1); exit 1; }; }
3455 if test $ac_cv_linux_vers -lt 2 ; then
3456 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3457 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3458 { (exit 1); exit 1; }; }
3468 for ac_header
in smi.h
3470 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3472 echo "$as_me:$LINENO: checking for $ac_header" >&5
3473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3480 # Is the header compilable?
3481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3483 cat >conftest.
$ac_ext <<_ACEOF
3484 #line $LINENO "configure"
3487 cat confdefs.h
>>conftest.
$ac_ext
3488 cat >>conftest.
$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 $ac_includes_default
3491 #include <$ac_header>
3493 rm -f conftest.
$ac_objext
3494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495 (eval $ac_compile) 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try
='test -s conftest.$ac_objext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_header_compiler
=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.
$ac_ext >&5
3510 ac_header_compiler
=no
3512 rm -f conftest.
$ac_objext conftest.
$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3514 echo "${ECHO_T}$ac_header_compiler" >&6
3516 # Is the header present?
3517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3519 cat >conftest.
$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3523 cat confdefs.h
>>conftest.
$ac_ext
3524 cat >>conftest.
$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3526 #include <$ac_header>
3528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3529 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3531 grep -v '^ *+' conftest.er1
>conftest.err
3533 cat conftest.err
>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev
/null
; then
3536 if test -s conftest.err
; then
3537 ac_cpp_err
=$ac_c_preproc_warn_flag
3544 if test -z "$ac_cpp_err"; then
3545 ac_header_preproc
=yes
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.
$ac_ext >&5
3550 ac_header_preproc
=no
3552 rm -f conftest.err conftest.
$ac_ext
3553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3554 echo "${ECHO_T}$ac_header_preproc" >&6
3556 # So? What about this header?
3557 case $ac_header_compiler:$ac_header_preproc in
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3570 sed "s/^/$as_me: WARNING: /" >&2
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3581 ## ------------------------------------ ##
3582 ## Report this to bug-autoconf@gnu.org. ##
3583 ## ------------------------------------ ##
3586 sed "s/^/$as_me: WARNING: /" >&2
3589 echo "$as_me:$LINENO: checking for $ac_header" >&5
3590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 eval "$as_ac_Header=$ac_header_preproc"
3596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3601 cat >>confdefs.h
<<_ACEOF
3602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3610 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3611 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3612 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 ac_check_lib_save_LIBS
=$LIBS
3617 cat >conftest.
$ac_ext <<_ACEOF
3618 #line $LINENO "configure"
3621 cat confdefs.h
>>conftest.
$ac_ext
3622 cat >>conftest.
$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3625 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3640 rm -f conftest.
$ac_objext conftest
$ac_exeext
3641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try
='test -s conftest$ac_exeext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 ac_cv_lib_smi_smiInit
=yes
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.
$ac_ext >&5
3657 ac_cv_lib_smi_smiInit
=no
3659 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3660 LIBS
=$ac_check_lib_save_LIBS
3662 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3663 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3664 if test $ac_cv_lib_smi_smiInit = yes; then
3665 cat >>confdefs.h
<<_ACEOF
3666 #define HAVE_LIBSMI 1
3673 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3675 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3676 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3677 if test "$cross_compiling" = yes; then
3678 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3679 echo "${ECHO_T}not when cross-compiling" >&6
3683 cat >conftest.
$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 /* libsmi available check */
3694 int current, revision, age, n;
3695 const int required = 2;
3698 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3700 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
3703 if (required < current - age || required > current)
3709 rm -f conftest
$ac_exeext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711 (eval $ac_link) 2>&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3722 cat >>confdefs.h
<<\_ACEOF
3728 echo "$as_me: program exited with status $ac_status" >&5
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.
$ac_ext >&5
3734 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3735 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3736 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3737 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3738 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3739 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3740 4) echo "$as_me:$LINENO: result: no - too old" >&5
3741 echo "${ECHO_T}no - too old" >&6 ;;
3742 *) echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6 ;;
3747 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3751 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3752 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3753 # Check whether --enable-smb or --disable-smb was given.
3754 if test "${enable_smb+set}" = set; then
3755 enableval
="$enable_smb"
3760 case "$enableval" in
3761 yes) echo "$as_me:$LINENO: result: yes" >&5
3762 echo "${ECHO_T}yes" >&6
3763 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3764 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3765 cat >>confdefs.h
<<\_ACEOF
3766 #define TCPDUMP_DO_SMB 1
3769 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
3771 *) echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3777 # Check whether --with-user or --without-user was given.
3778 if test "${with_user+set}" = set; then
3779 withval
="$with_user"
3782 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3783 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3784 if test ! -z "$with_user" ; then
3785 cat >>confdefs.h
<<_ACEOF
3786 #define WITH_USER "$withval"
3789 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3790 echo "${ECHO_T}to \"$withval\"" >&6
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3797 # Check whether --with-chroot or --without-chroot was given.
3798 if test "${with_chroot+set}" = set; then
3799 withval
="$with_chroot"
3802 echo "$as_me:$LINENO: checking whether to chroot" >&5
3803 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3804 if test ! -z "$with_chroot" ; then
3805 cat >>confdefs.h
<<_ACEOF
3806 #define WITH_CHROOT "$withval"
3809 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3810 echo "${ECHO_T}to \"$withval\"" >&6
3812 echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3816 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3817 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3818 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3819 if test "${enable_ipv6+set}" = set; then
3820 enableval
="$enable_ipv6"
3821 case "$enableval" in
3822 yes) echo "$as_me:$LINENO: result: yes" >&5
3823 echo "${ECHO_T}yes" >&6
3824 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"
3825 cat >>confdefs.h
<<\_ACEOF
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3838 if test "$cross_compiling" = yes; then
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3844 cat >conftest.
$ac_ext <<_ACEOF
3845 #line $LINENO "configure"
3848 cat confdefs.h
>>conftest.
$ac_ext
3849 cat >>conftest.
$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 /* AF_INET6 available check */
3852 #include <sys/types.h>
3853 #include <sys/socket.h>
3856 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3863 rm -f conftest
$ac_exeext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865 (eval $ac_link) 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875 echo "${ECHO_T}yes" >&6
3876 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"
3877 cat >>confdefs.h
<<\_ACEOF
3883 echo "$as_me: program exited with status $ac_status" >&5
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.
$ac_ext >&5
3888 echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6
3892 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3900 if test "$ipv6" = "yes"; then
3901 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3902 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3903 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
3906 cat >conftest.
$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3910 cat confdefs.h
>>conftest.
$ac_ext
3911 cat >>conftest.
$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <netinet/in.h>
3914 #ifdef IPV6_INRIA_VERSION
3918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3919 $EGREP "yes" >/dev
/null
2>&1; then
3921 CFLAGS
="-DINET6 $CFLAGS"
3927 cat >conftest.
$ac_ext <<_ACEOF
3928 #line $LINENO "configure"
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 #include <netinet/in.h>
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940 $EGREP "yes" >/dev
/null
2>&1; then
3943 ipv6libdir
=/usr
/local
/v
6/lib
;
3945 CFLAGS
="-DINET6 $CFLAGS"
3951 cat >conftest.
$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3955 cat confdefs.h
>>conftest.
$ac_ext
3956 cat >>conftest.
$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <features.h>
3959 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "yes" >/dev
/null
2>&1; then
3966 CFLAGS
="-DINET6 $CFLAGS"
3972 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
3975 ipv6libdir
=/usr
/inet
6/lib
3977 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
3981 cat >conftest.
$ac_ext <<_ACEOF
3982 #line $LINENO "configure"
3985 cat confdefs.h
>>conftest.
$ac_ext
3986 cat >>conftest.
$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <sys/param.h>
3989 #ifdef _TOSHIBA_INET6
3993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994 $EGREP "yes" >/dev
/null
2>&1; then
3997 ipv6libdir
=/usr
/local
/v
6/lib
;
3998 CFLAGS
="-DINET6 $CFLAGS"
4004 cat >conftest.
$ac_ext <<_ACEOF
4005 #line $LINENO "configure"
4008 cat confdefs.h
>>conftest.
$ac_ext
4009 cat >>conftest.
$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 #include </usr/local/v6/include/sys/v6config.h>
4016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017 $EGREP "yes" >/dev
/null
2>&1; then
4020 ipv6libdir
=/usr
/local
/v
6/lib
;
4021 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
4027 cat >conftest.
$ac_ext <<_ACEOF
4028 #line $LINENO "configure"
4031 cat confdefs.h
>>conftest.
$ac_ext
4032 cat >>conftest.
$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4034 #include <sys/param.h>
4035 #ifdef _ZETA_MINAMI_INET6
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "yes" >/dev
/null
2>&1; then
4043 ipv6libdir
=/usr
/local
/v
6/lib
;
4044 CFLAGS
="-DINET6 $CFLAGS"
4050 if test "$ipv6type" != "unknown"; then
4054 echo "$as_me:$LINENO: result: $ipv6type" >&5
4055 echo "${ECHO_T}$ipv6type" >&6
4058 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4059 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4060 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4061 echo "You have $ipv6lib library, using it"
4063 if test "$ipv6trylibc" = "yes"; then
4064 echo "You do not have $ipv6lib library, using libc"
4066 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4067 echo "You need to fetch lib$ipv6lib.a from appropriate"
4068 echo 'ipv6 kit and compile beforehand.'
4075 if test "$ipv6" = "yes"; then
4077 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4078 # function in libc; there are "ngetaddrinfo()" and
4079 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4080 # "getaddrinfo" to be either "ngetaddrinfo" or
4081 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4082 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4084 # So this test doesn't work on Tru64 5.1, and possibly
4085 # on other 5.x releases. This causes the configure
4086 # script to become confused, and results in libpcap
4087 # being unbuildable.
4089 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4090 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4091 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 ac_func_search_save_LIBS
=$LIBS
4095 ac_cv_search_getaddrinfo
=no
4096 cat >conftest.
$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4100 cat confdefs.h
>>conftest.
$ac_ext
4101 cat >>conftest.
$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4104 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4110 char getaddrinfo ();
4119 rm -f conftest.
$ac_objext conftest
$ac_exeext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try
='test -s conftest$ac_exeext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_search_getaddrinfo
="none required"
4133 echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.
$ac_ext >&5
4137 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4138 if test "$ac_cv_search_getaddrinfo" = no
; then
4139 for ac_lib
in socket
; do
4140 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4141 cat >conftest.
$ac_ext <<_ACEOF
4142 #line $LINENO "configure"
4145 cat confdefs.h
>>conftest.
$ac_ext
4146 cat >>conftest.
$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4149 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155 char getaddrinfo ();
4164 rm -f conftest.
$ac_objext conftest
$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try
='test -s conftest$ac_exeext'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; }; then
4176 ac_cv_search_getaddrinfo
="-l$ac_lib"
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.
$ac_ext >&5
4183 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4186 LIBS
=$ac_func_search_save_LIBS
4188 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4189 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4190 if test "$ac_cv_search_getaddrinfo" != no
; then
4191 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
4192 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4193 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4194 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test "$cross_compiling" = yes; then
4198 td_cv_buggygetaddrinfo
=yes
4200 cat >conftest.
$ac_ext <<_ACEOF
4201 #line $LINENO "configure"
4204 cat confdefs.h
>>conftest.
$ac_ext
4205 cat >>conftest.
$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4208 #include <sys/types.h>
4211 #include <sys/socket.h>
4212 #include <netinet/in.h>
4216 int passive, gaierr, inet4 = 0, inet6 = 0;
4217 struct addrinfo hints, *ai, *aitop;
4218 char straddr[INET6_ADDRSTRLEN], strport[16];
4220 for (passive = 0; passive <= 1; passive++) {
4221 memset(&hints, 0, sizeof(hints));
4222 hints.ai_family = AF_UNSPEC;
4223 hints.ai_flags = passive ? AI_PASSIVE : 0;
4224 hints.ai_socktype = SOCK_STREAM;
4225 hints.ai_protocol = IPPROTO_TCP;
4226 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4227 (void)gai_strerror(gaierr);
4230 for (ai = aitop; ai; ai = ai->ai_next) {
4231 if (ai->ai_addr == NULL ||
4232 ai->ai_addrlen == 0 ||
4233 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4234 straddr, sizeof(straddr), strport, sizeof(strport),
4235 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4238 switch (ai->ai_family) {
4240 if (strcmp(strport, "54321") != 0) {
4244 if (strcmp(straddr, "0.0.0.0") != 0) {
4248 if (strcmp(straddr, "127.0.0.1") != 0) {
4255 if (strcmp(strport, "54321") != 0) {
4259 if (strcmp(straddr, "::") != 0) {
4263 if (strcmp(straddr, "::1") != 0) {
4280 /* another family support? */
4286 /* supported family should be 2, unsupported family should be 0 */
4287 if (!(inet4 == 0 || inet4 == 2))
4289 if (!(inet6 == 0 || inet6 == 2))
4293 freeaddrinfo(aitop);
4298 freeaddrinfo(aitop);
4303 rm -f conftest
$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 td_cv_buggygetaddrinfo
=no
4316 echo "$as_me: program exited with status $ac_status" >&5
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.
$ac_ext >&5
4321 td_cv_buggygetaddrinfo
=yes
4323 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4327 if test "$td_cv_buggygetaddrinfo" = no
; then
4328 echo "$as_me:$LINENO: result: good" >&5
4329 echo "${ECHO_T}good" >&6
4331 echo "$as_me:$LINENO: result: buggy" >&5
4332 echo "${ECHO_T}buggy" >&6
4335 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4337 # XXX - it doesn't appear that "ipv6type" can ever be
4338 # set to "linux". Should this be testing for
4339 # "linux-glibc", or for that *or* "linux-libinet6"?
4340 # If the latter, note that "linux-libinet6" is also
4341 # the type given to some non-Linux OSes.
4343 if test "$ipv6type" != "linux"; then
4344 echo 'Fatal: You must get working getaddrinfo() function.'
4345 echo ' or you can specify "--disable-ipv6"'.
4348 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4349 echo ' Better upgrade your system library to newest version'
4350 echo ' of GNU C library (aka glibc).'
4358 for ac_func
in getaddrinfo getnameinfo
4360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4361 echo "$as_me:$LINENO: checking for $ac_func" >&5
4362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4363 if eval "test \"\${$as_ac_var+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 cat >conftest.
$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4370 cat confdefs.h
>>conftest.
$ac_ext
4371 cat >>conftest.
$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 /* System header to define __stub macros and hopefully few prototypes,
4374 which can conflict with char $ac_func (); below.
4375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 <limits.h> exists even on freestanding compilers. */
4378 # include <limits.h>
4380 # include <assert.h>
4382 /* Override any gcc2 internal prototype to avoid an error. */
4387 /* We use char because int might match the return type of a gcc2
4388 builtin and then its argument prototype would still apply. */
4390 /* The GNU C library defines this for functions which it implements
4391 to always fail with ENOSYS. Some functions are actually named
4392 something starting with __ and the normal name is an alias. */
4393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4396 char (*f) () = $ac_func;
4405 return f != $ac_func;
4410 rm -f conftest.
$ac_objext conftest
$ac_exeext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4412 (eval $ac_link) 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try
='test -s conftest$ac_exeext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 eval "$as_ac_var=yes"
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.
$ac_ext >&5
4427 eval "$as_ac_var=no"
4429 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4433 if test `eval echo '${'$as_ac_var'}'` = yes; then
4434 cat >>confdefs.h
<<_ACEOF
4435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4439 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4446 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4447 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4448 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.
$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4455 cat confdefs.h
>>conftest.
$ac_ext
4456 cat >>conftest.
$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <netdnet/dnetdb.h>
4461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4462 $EGREP "dnet_htoa" >/dev
/null
2>&1; then
4463 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
4465 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
4470 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4471 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4472 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4473 cat >>confdefs.h
<<\_ACEOF
4474 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4479 echo "$as_me:$LINENO: checking for char" >&5
4480 echo $ECHO_N "checking for char... $ECHO_C" >&6
4481 if test "${ac_cv_type_char+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 cat >conftest.
$ac_ext <<_ACEOF
4485 #line $LINENO "configure"
4488 cat confdefs.h
>>conftest.
$ac_ext
4489 cat >>conftest.
$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4491 $ac_includes_default
4503 rm -f conftest.
$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } &&
4509 { ac_try
='test -s conftest.$ac_objext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.
$ac_ext >&5
4522 rm -f conftest.
$ac_objext conftest.
$ac_ext
4524 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4525 echo "${ECHO_T}$ac_cv_type_char" >&6
4527 echo "$as_me:$LINENO: checking size of char" >&5
4528 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4529 if test "${ac_cv_sizeof_char+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 if test "$ac_cv_type_char" = yes; then
4533 # The cast to unsigned long works around a bug in the HP C Compiler
4534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4536 # This bug is HP SR number 8606223364.
4537 if test "$cross_compiling" = yes; then
4538 # Depending upon the size, compute the lo and hi bounds.
4539 cat >conftest.
$ac_ext <<_ACEOF
4540 #line $LINENO "configure"
4543 cat confdefs.h
>>conftest.
$ac_ext
4544 cat >>conftest.
$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 $ac_includes_default
4550 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4557 rm -f conftest.
$ac_objext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try
='test -s conftest.$ac_objext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4571 cat >conftest.
$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4575 cat confdefs.h
>>conftest.
$ac_ext
4576 cat >>conftest.
$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4582 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4589 rm -f conftest.
$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try
='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_hi
=$ac_mid; break
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.
$ac_ext >&5
4606 ac_lo
=`expr $ac_mid + 1`
4607 if test $ac_lo -le $ac_mid; then
4611 ac_mid
=`expr 2 '*' $ac_mid + 1`
4613 rm -f conftest.
$ac_objext conftest.
$ac_ext
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.
$ac_ext >&5
4619 cat >conftest.
$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4623 cat confdefs.h
>>conftest.
$ac_ext
4624 cat >>conftest.
$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4626 $ac_includes_default
4630 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4637 rm -f conftest.
$ac_objext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try
='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4651 cat >conftest.
$ac_ext <<_ACEOF
4652 #line $LINENO "configure"
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 $ac_includes_default
4662 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4669 rm -f conftest.
$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try
='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_lo
=$ac_mid; break
4683 echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4686 ac_hi
=`expr '(' $ac_mid ')' - 1`
4687 if test $ac_mid -le $ac_hi; then
4691 ac_mid
=`expr 2 '*' $ac_mid`
4693 rm -f conftest.
$ac_objext conftest.
$ac_ext
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.
$ac_ext >&5
4701 rm -f conftest.
$ac_objext conftest.
$ac_ext
4703 rm -f conftest.
$ac_objext conftest.
$ac_ext
4704 # Binary search between lo and hi bounds.
4705 while test "x$ac_lo" != "x$ac_hi"; do
4706 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4707 cat >conftest.
$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4711 cat confdefs.h
>>conftest.
$ac_ext
4712 cat >>conftest.
$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4718 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4725 rm -f conftest.
$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try
='test -s conftest.$ac_objext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4739 echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.
$ac_ext >&5
4742 ac_lo
=`expr '(' $ac_mid ')' + 1`
4744 rm -f conftest.
$ac_objext conftest.
$ac_ext
4747 ?
*) ac_cv_sizeof_char
=$ac_lo;;
4748 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4749 See \`config.log' for more details." >&5
4750 echo "$as_me: error: cannot compute sizeof (char), 77
4751 See \`config.log' for more details." >&2;}
4752 { (exit 1); exit 1; }; } ;;
4755 if test "$cross_compiling" = yes; then
4756 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4757 See \`config.log' for more details." >&5
4758 echo "$as_me: error: cannot run test program while cross compiling
4759 See \`config.log' for more details." >&2;}
4760 { (exit 1); exit 1; }; }
4762 cat >conftest.
$ac_ext <<_ACEOF
4763 #line $LINENO "configure"
4766 cat confdefs.h
>>conftest.
$ac_ext
4767 cat >>conftest.
$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 $ac_includes_default
4770 long longval () { return (long) (sizeof (char)); }
4771 unsigned long ulongval () { return (long) (sizeof (char)); }
4778 FILE *f = fopen ("conftest.val", "w");
4781 if (((long) (sizeof (char))) < 0)
4783 long i = longval ();
4784 if (i != ((long) (sizeof (char))))
4786 fprintf (f, "%ld\n", i);
4790 unsigned long i = ulongval ();
4791 if (i != ((long) (sizeof (char))))
4793 fprintf (f, "%lu\n", i);
4795 exit (ferror (f) || fclose (f) != 0);
4801 rm -f conftest
$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_sizeof_char
=`cat conftest.val`
4814 echo "$as_me: program exited with status $ac_status" >&5
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.
$ac_ext >&5
4819 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4820 See \`config.log' for more details." >&5
4821 echo "$as_me: error: cannot compute sizeof (char), 77
4822 See \`config.log' for more details." >&2;}
4823 { (exit 1); exit 1; }; }
4825 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4833 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4834 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4835 cat >>confdefs.h
<<_ACEOF
4836 #define SIZEOF_CHAR $ac_cv_sizeof_char
4840 echo "$as_me:$LINENO: checking for short" >&5
4841 echo $ECHO_N "checking for short... $ECHO_C" >&6
4842 if test "${ac_cv_type_short+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 cat >conftest.
$ac_ext <<_ACEOF
4846 #line $LINENO "configure"
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4864 rm -f conftest.
$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try
='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_cv_type_short
=yes
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.
$ac_ext >&5
4883 rm -f conftest.
$ac_objext conftest.
$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4886 echo "${ECHO_T}$ac_cv_type_short" >&6
4888 echo "$as_me:$LINENO: checking size of short" >&5
4889 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4890 if test "${ac_cv_sizeof_short+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test "$ac_cv_type_short" = yes; then
4894 # The cast to unsigned long works around a bug in the HP C Compiler
4895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4897 # This bug is HP SR number 8606223364.
4898 if test "$cross_compiling" = yes; then
4899 # Depending upon the size, compute the lo and hi bounds.
4900 cat >conftest.
$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4904 cat confdefs.h
>>conftest.
$ac_ext
4905 cat >>conftest.
$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4907 $ac_includes_default
4911 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4918 rm -f conftest.
$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } &&
4924 { ac_try
='test -s conftest.$ac_objext'
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; }; then
4932 cat >conftest.
$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4936 cat confdefs.h
>>conftest.
$ac_ext
4937 cat >>conftest.
$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4943 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4950 rm -f conftest.
$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try
='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_hi
=$ac_mid; break
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.
$ac_ext >&5
4967 ac_lo
=`expr $ac_mid + 1`
4968 if test $ac_lo -le $ac_mid; then
4972 ac_mid
=`expr 2 '*' $ac_mid + 1`
4974 rm -f conftest.
$ac_objext conftest.
$ac_ext
4977 echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.
$ac_ext >&5
4980 cat >conftest.
$ac_ext <<_ACEOF
4981 #line $LINENO "configure"
4984 cat confdefs.h
>>conftest.
$ac_ext
4985 cat >>conftest.
$ac_ext <<_ACEOF
4986 /* end confdefs.h. */
4987 $ac_includes_default
4991 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try
='test -s conftest.$ac_objext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5012 cat >conftest.
$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5016 cat confdefs.h
>>conftest.
$ac_ext
5017 cat >>conftest.
$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5023 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5030 rm -f conftest.
$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try
='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_lo
=$ac_mid; break
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.
$ac_ext >&5
5047 ac_hi
=`expr '(' $ac_mid ')' - 1`
5048 if test $ac_mid -le $ac_hi; then
5052 ac_mid
=`expr 2 '*' $ac_mid`
5054 rm -f conftest.
$ac_objext conftest.
$ac_ext
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.
$ac_ext >&5
5062 rm -f conftest.
$ac_objext conftest.
$ac_ext
5064 rm -f conftest.
$ac_objext conftest.
$ac_ext
5065 # Binary search between lo and hi bounds.
5066 while test "x$ac_lo" != "x$ac_hi"; do
5067 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5068 cat >conftest.
$ac_ext <<_ACEOF
5069 #line $LINENO "configure"
5072 cat confdefs.h
>>conftest.
$ac_ext
5073 cat >>conftest.
$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5079 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5086 rm -f conftest.
$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try
='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.
$ac_ext >&5
5103 ac_lo
=`expr '(' $ac_mid ')' + 1`
5105 rm -f conftest.
$ac_objext conftest.
$ac_ext
5108 ?
*) ac_cv_sizeof_short
=$ac_lo;;
5109 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5110 See \`config.log' for more details." >&5
5111 echo "$as_me: error: cannot compute sizeof (short), 77
5112 See \`config.log' for more details." >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 if test "$cross_compiling" = yes; then
5117 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: cannot run test program while cross compiling
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; }
5123 cat >conftest.
$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5127 cat confdefs.h
>>conftest.
$ac_ext
5128 cat >>conftest.
$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 $ac_includes_default
5131 long longval () { return (long) (sizeof (short)); }
5132 unsigned long ulongval () { return (long) (sizeof (short)); }
5139 FILE *f = fopen ("conftest.val", "w");
5142 if (((long) (sizeof (short))) < 0)
5144 long i = longval ();
5145 if (i != ((long) (sizeof (short))))
5147 fprintf (f, "%ld\n", i);
5151 unsigned long i = ulongval ();
5152 if (i != ((long) (sizeof (short))))
5154 fprintf (f, "%lu\n", i);
5156 exit (ferror (f) || fclose (f) != 0);
5162 rm -f conftest
$ac_exeext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5164 (eval $ac_link) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_sizeof_short
=`cat conftest.val`
5175 echo "$as_me: program exited with status $ac_status" >&5
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.
$ac_ext >&5
5180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5181 See \`config.log' for more details." >&5
5182 echo "$as_me: error: cannot compute sizeof (short), 77
5183 See \`config.log' for more details." >&2;}
5184 { (exit 1); exit 1; }; }
5186 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5191 ac_cv_sizeof_short
=0
5194 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5195 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5196 cat >>confdefs.h
<<_ACEOF
5197 #define SIZEOF_SHORT $ac_cv_sizeof_short
5201 echo "$as_me:$LINENO: checking for int" >&5
5202 echo $ECHO_N "checking for int... $ECHO_C" >&6
5203 if test "${ac_cv_type_int+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 cat >conftest.
$ac_ext <<_ACEOF
5207 #line $LINENO "configure"
5210 cat confdefs.h
>>conftest.
$ac_ext
5211 cat >>conftest.
$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5225 rm -f conftest.
$ac_objext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try
='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5244 rm -f conftest.
$ac_objext conftest.
$ac_ext
5246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5247 echo "${ECHO_T}$ac_cv_type_int" >&6
5249 echo "$as_me:$LINENO: checking size of int" >&5
5250 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5251 if test "${ac_cv_sizeof_int+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 if test "$ac_cv_type_int" = yes; then
5255 # The cast to unsigned long works around a bug in the HP C Compiler
5256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5258 # This bug is HP SR number 8606223364.
5259 if test "$cross_compiling" = yes; then
5260 # Depending upon the size, compute the lo and hi bounds.
5261 cat >conftest.
$ac_ext <<_ACEOF
5262 #line $LINENO "configure"
5265 cat confdefs.h
>>conftest.
$ac_ext
5266 cat >>conftest.
$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5272 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5279 rm -f conftest.
$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } &&
5285 { ac_try
='test -s conftest.$ac_objext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5293 cat >conftest.
$ac_ext <<_ACEOF
5294 #line $LINENO "configure"
5297 cat confdefs.h
>>conftest.
$ac_ext
5298 cat >>conftest.
$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5311 rm -f conftest.
$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi
=$ac_mid; break
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.
$ac_ext >&5
5328 ac_lo
=`expr $ac_mid + 1`
5329 if test $ac_lo -le $ac_mid; then
5333 ac_mid
=`expr 2 '*' $ac_mid + 1`
5335 rm -f conftest.
$ac_objext conftest.
$ac_ext
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.
$ac_ext >&5
5341 cat >conftest.
$ac_ext <<_ACEOF
5342 #line $LINENO "configure"
5345 cat confdefs.h
>>conftest.
$ac_ext
5346 cat >>conftest.
$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 $ac_includes_default
5352 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5359 rm -f conftest.
$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 cat >conftest.
$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5377 cat confdefs.h
>>conftest.
$ac_ext
5378 cat >>conftest.
$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 $ac_includes_default
5384 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5391 rm -f conftest.
$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try
='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_lo
=$ac_mid; break
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.
$ac_ext >&5
5408 ac_hi
=`expr '(' $ac_mid ')' - 1`
5409 if test $ac_mid -le $ac_hi; then
5413 ac_mid
=`expr 2 '*' $ac_mid`
5415 rm -f conftest.
$ac_objext conftest.
$ac_ext
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.
$ac_ext >&5
5423 rm -f conftest.
$ac_objext conftest.
$ac_ext
5425 rm -f conftest.
$ac_objext conftest.
$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429 cat >conftest.
$ac_ext <<_ACEOF
5430 #line $LINENO "configure"
5433 cat confdefs.h
>>conftest.
$ac_ext
5434 cat >>conftest.
$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5447 rm -f conftest.
$ac_objext
5448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5449 (eval $ac_compile) 2>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try
='test -s conftest.$ac_objext'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; }; then
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.
$ac_ext >&5
5464 ac_lo
=`expr '(' $ac_mid ')' + 1`
5466 rm -f conftest.
$ac_objext conftest.
$ac_ext
5469 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5470 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: cannot compute sizeof (int), 77
5473 See \`config.log' for more details." >&2;}
5474 { (exit 1); exit 1; }; } ;;
5477 if test "$cross_compiling" = yes; then
5478 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5479 See \`config.log' for more details." >&5
5480 echo "$as_me: error: cannot run test program while cross compiling
5481 See \`config.log' for more details." >&2;}
5482 { (exit 1); exit 1; }; }
5484 cat >conftest.
$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5488 cat confdefs.h
>>conftest.
$ac_ext
5489 cat >>conftest.
$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 $ac_includes_default
5492 long longval () { return (long) (sizeof (int)); }
5493 unsigned long ulongval () { return (long) (sizeof (int)); }
5500 FILE *f = fopen ("conftest.val", "w");
5503 if (((long) (sizeof (int))) < 0)
5505 long i = longval ();
5506 if (i != ((long) (sizeof (int))))
5508 fprintf (f, "%ld\n", i);
5512 unsigned long i = ulongval ();
5513 if (i != ((long) (sizeof (int))))
5515 fprintf (f, "%lu\n", i);
5517 exit (ferror (f) || fclose (f) != 0);
5523 rm -f conftest
$ac_exeext
5524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525 (eval $ac_link) 2>&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_int
=`cat conftest.val`
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.
$ac_ext >&5
5541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot compute sizeof (int), 77
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5547 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5555 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5557 cat >>confdefs.h
<<_ACEOF
5558 #define SIZEOF_INT $ac_cv_sizeof_int
5562 echo "$as_me:$LINENO: checking for long" >&5
5563 echo $ECHO_N "checking for long... $ECHO_C" >&6
5564 if test "${ac_cv_type_long+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 cat >conftest.
$ac_ext <<_ACEOF
5568 #line $LINENO "configure"
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 $ac_includes_default
5586 rm -f conftest.
$ac_objext
5587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5588 (eval $ac_compile) 2>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try
='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5605 rm -f conftest.
$ac_objext conftest.
$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5608 echo "${ECHO_T}$ac_cv_type_long" >&6
5610 echo "$as_me:$LINENO: checking size of long" >&5
5611 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5612 if test "${ac_cv_sizeof_long+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 if test "$ac_cv_type_long" = yes; then
5616 # The cast to unsigned long works around a bug in the HP C Compiler
5617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5619 # This bug is HP SR number 8606223364.
5620 if test "$cross_compiling" = yes; then
5621 # Depending upon the size, compute the lo and hi bounds.
5622 cat >conftest.
$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5626 cat confdefs.h
>>conftest.
$ac_ext
5627 cat >>conftest.
$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5633 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5640 rm -f conftest.
$ac_objext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5642 (eval $ac_compile) 2>&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try
='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5654 cat >conftest.
$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5672 rm -f conftest.
$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try
='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi
=$ac_mid; break
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5689 ac_lo
=`expr $ac_mid + 1`
5690 if test $ac_lo -le $ac_mid; then
5694 ac_mid
=`expr 2 '*' $ac_mid + 1`
5696 rm -f conftest.
$ac_objext conftest.
$ac_ext
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.
$ac_ext >&5
5702 cat >conftest.
$ac_ext <<_ACEOF
5703 #line $LINENO "configure"
5706 cat confdefs.h
>>conftest.
$ac_ext
5707 cat >>conftest.
$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 $ac_includes_default
5713 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5720 rm -f conftest.
$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try
='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5734 cat >conftest.
$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5738 cat confdefs.h
>>conftest.
$ac_ext
5739 cat >>conftest.
$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5745 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5752 rm -f conftest.
$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try
='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_lo
=$ac_mid; break
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.
$ac_ext >&5
5769 ac_hi
=`expr '(' $ac_mid ')' - 1`
5770 if test $ac_mid -le $ac_hi; then
5774 ac_mid
=`expr 2 '*' $ac_mid`
5776 rm -f conftest.
$ac_objext conftest.
$ac_ext
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.
$ac_ext >&5
5784 rm -f conftest.
$ac_objext conftest.
$ac_ext
5786 rm -f conftest.
$ac_objext conftest.
$ac_ext
5787 # Binary search between lo and hi bounds.
5788 while test "x$ac_lo" != "x$ac_hi"; do
5789 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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. */
5797 $ac_includes_default
5801 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5808 rm -f conftest.
$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try
='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.
$ac_ext >&5
5825 ac_lo
=`expr '(' $ac_mid ')' + 1`
5827 rm -f conftest.
$ac_objext conftest.
$ac_ext
5830 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5831 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5832 See \`config.log' for more details." >&5
5833 echo "$as_me: error: cannot compute sizeof (long), 77
5834 See \`config.log' for more details." >&2;}
5835 { (exit 1); exit 1; }; } ;;
5838 if test "$cross_compiling" = yes; then
5839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5840 See \`config.log' for more details." >&5
5841 echo "$as_me: error: cannot run test program while cross compiling
5842 See \`config.log' for more details." >&2;}
5843 { (exit 1); exit 1; }; }
5845 cat >conftest.
$ac_ext <<_ACEOF
5846 #line $LINENO "configure"
5849 cat confdefs.h
>>conftest.
$ac_ext
5850 cat >>conftest.
$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5853 long longval () { return (long) (sizeof (long)); }
5854 unsigned long ulongval () { return (long) (sizeof (long)); }
5861 FILE *f = fopen ("conftest.val", "w");
5864 if (((long) (sizeof (long))) < 0)
5866 long i = longval ();
5867 if (i != ((long) (sizeof (long))))
5869 fprintf (f, "%ld\n", i);
5873 unsigned long i = ulongval ();
5874 if (i != ((long) (sizeof (long))))
5876 fprintf (f, "%lu\n", i);
5878 exit (ferror (f) || fclose (f) != 0);
5884 rm -f conftest
$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_sizeof_long
=`cat conftest.val`
5897 echo "$as_me: program exited with status $ac_status" >&5
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5902 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5903 See \`config.log' for more details." >&5
5904 echo "$as_me: error: cannot compute sizeof (long), 77
5905 See \`config.log' for more details." >&2;}
5906 { (exit 1); exit 1; }; }
5908 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5916 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5917 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5918 cat >>confdefs.h
<<_ACEOF
5919 #define SIZEOF_LONG $ac_cv_sizeof_long
5923 echo "$as_me:$LINENO: checking for long long" >&5
5924 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5925 if test "${ac_cv_type_long_long+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat >conftest.
$ac_ext <<_ACEOF
5929 #line $LINENO "configure"
5932 cat confdefs.h
>>conftest.
$ac_ext
5933 cat >>conftest.
$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 $ac_includes_default
5939 if ((long long *) 0)
5941 if (sizeof (long long))
5947 rm -f conftest.
$ac_objext
5948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949 (eval $ac_compile) 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } &&
5953 { ac_try
='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_cv_type_long_long
=yes
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.
$ac_ext >&5
5964 ac_cv_type_long_long
=no
5966 rm -f conftest.
$ac_objext conftest.
$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5969 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5971 echo "$as_me:$LINENO: checking size of long long" >&5
5972 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5973 if test "${ac_cv_sizeof_long_long+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 if test "$ac_cv_type_long_long" = yes; then
5977 # The cast to unsigned long works around a bug in the HP C Compiler
5978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5980 # This bug is HP SR number 8606223364.
5981 if test "$cross_compiling" = yes; then
5982 # Depending upon the size, compute the lo and hi bounds.
5983 cat >conftest.
$ac_ext <<_ACEOF
5984 #line $LINENO "configure"
5987 cat confdefs.h
>>conftest.
$ac_ext
5988 cat >>conftest.
$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5994 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6001 rm -f conftest.
$ac_objext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try
='test -s conftest.$ac_objext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6015 cat >conftest.
$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6033 rm -f conftest.
$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try
='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_hi
=$ac_mid; break
6047 echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.
$ac_ext >&5
6050 ac_lo
=`expr $ac_mid + 1`
6051 if test $ac_lo -le $ac_mid; then
6055 ac_mid
=`expr 2 '*' $ac_mid + 1`
6057 rm -f conftest.
$ac_objext conftest.
$ac_ext
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.
$ac_ext >&5
6063 cat >conftest.
$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6074 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6081 rm -f conftest.
$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try
='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6095 cat >conftest.
$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6099 cat confdefs.h
>>conftest.
$ac_ext
6100 cat >>conftest.
$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6113 rm -f conftest.
$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try
='test -s conftest.$ac_objext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_lo
=$ac_mid; break
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.
$ac_ext >&5
6130 ac_hi
=`expr '(' $ac_mid ')' - 1`
6131 if test $ac_mid -le $ac_hi; then
6135 ac_mid
=`expr 2 '*' $ac_mid`
6137 rm -f conftest.
$ac_objext conftest.
$ac_ext
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.
$ac_ext >&5
6145 rm -f conftest.
$ac_objext conftest.
$ac_ext
6147 rm -f conftest.
$ac_objext conftest.
$ac_ext
6148 # Binary search between lo and hi bounds.
6149 while test "x$ac_lo" != "x$ac_hi"; do
6150 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6151 cat >conftest.
$ac_ext <<_ACEOF
6152 #line $LINENO "configure"
6155 cat confdefs.h
>>conftest.
$ac_ext
6156 cat >>conftest.
$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 $ac_includes_default
6162 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6169 rm -f conftest.
$ac_objext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6171 (eval $ac_compile) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try
='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6186 ac_lo
=`expr '(' $ac_mid ')' + 1`
6188 rm -f conftest.
$ac_objext conftest.
$ac_ext
6191 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
6192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: cannot compute sizeof (long long), 77
6195 See \`config.log' for more details." >&2;}
6196 { (exit 1); exit 1; }; } ;;
6199 if test "$cross_compiling" = yes; then
6200 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6201 See \`config.log' for more details." >&5
6202 echo "$as_me: error: cannot run test program while cross compiling
6203 See \`config.log' for more details." >&2;}
6204 { (exit 1); exit 1; }; }
6206 cat >conftest.
$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6210 cat confdefs.h
>>conftest.
$ac_ext
6211 cat >>conftest.
$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 long longval () { return (long) (sizeof (long long)); }
6215 unsigned long ulongval () { return (long) (sizeof (long long)); }
6222 FILE *f = fopen ("conftest.val", "w");
6225 if (((long) (sizeof (long long))) < 0)
6227 long i = longval ();
6228 if (i != ((long) (sizeof (long long))))
6230 fprintf (f, "%ld\n", i);
6234 unsigned long i = ulongval ();
6235 if (i != ((long) (sizeof (long long))))
6237 fprintf (f, "%lu\n", i);
6239 exit (ferror (f) || fclose (f) != 0);
6245 rm -f conftest
$ac_exeext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_sizeof_long_long
=`cat conftest.val`
6258 echo "$as_me: program exited with status $ac_status" >&5
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.
$ac_ext >&5
6263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6264 See \`config.log' for more details." >&5
6265 echo "$as_me: error: cannot compute sizeof (long long), 77
6266 See \`config.log' for more details." >&2;}
6267 { (exit 1); exit 1; }; }
6269 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6274 ac_cv_sizeof_long_long
=0
6277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6278 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6279 cat >>confdefs.h
<<_ACEOF
6280 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6287 echo "$as_me:$LINENO: checking for addrinfo" >&5
6288 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6289 if test "${ac_cv_addrinfo+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.
$ac_ext <<_ACEOF
6293 #line $LINENO "configure"
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6309 rm -f conftest.
$ac_objext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6311 (eval $ac_compile) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try
='test -s conftest.$ac_objext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6328 rm -f conftest.
$ac_objext conftest.
$ac_ext
6331 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6332 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6333 if test $ac_cv_addrinfo = yes; then
6334 cat >>confdefs.h
<<\_ACEOF
6335 #define HAVE_ADDRINFO 1
6339 cat >>confdefs.h
<<\_ACEOF
6340 #define NEED_ADDRINFO_H 1
6345 if test "$ac_cv_addrinfo" = no
; then
6346 missing_includes
=yes
6350 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6351 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6352 if test "${ac_cv_maxserv+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 cat >conftest.
$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6359 cat confdefs.h
>>conftest.
$ac_ext
6360 cat >>conftest.
$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 $EGREP "yes" >/dev
/null
2>&1; then
6377 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6378 echo "${ECHO_T}$ac_cv_maxserv" >&6
6379 if test $ac_cv_maxserv != yes; then
6380 cat >>confdefs.h
<<\_ACEOF
6381 #define NEED_ADDRINFO_H 1
6386 if test "$ac_cv_maxserv" = no
; then
6387 missing_includes
=yes
6391 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6392 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6393 if test "${ac_cv_namereqd+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 cat >conftest.
$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6400 cat confdefs.h
>>conftest.
$ac_ext
6401 cat >>conftest.
$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6409 $EGREP "yes" >/dev
/null
2>&1; then
6418 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6419 echo "${ECHO_T}$ac_cv_namereqd" >&6
6420 if test $ac_cv_namereqd != yes; then
6421 cat >>confdefs.h
<<\_ACEOF
6422 #define NEED_ADDRINFO_H 1
6427 if test "$ac_cv_namereqd" = no
; then
6428 missing_includes
=yes
6432 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6433 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6434 if test "${ac_cv_sa_storage+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 cat >conftest.
$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6441 cat confdefs.h
>>conftest.
$ac_ext
6442 cat >>conftest.
$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 # include <sys/types.h>
6446 # include <sys/socket.h>
6450 struct sockaddr_storage s
6455 rm -f conftest.
$ac_objext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try
='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 ac_cv_sa_storage
=yes
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.
$ac_ext >&5
6474 rm -f conftest.
$ac_objext conftest.
$ac_ext
6477 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6478 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6479 if test $ac_cv_sa_storage = yes; then
6480 cat >>confdefs.h
<<\_ACEOF
6481 #define HAVE_SOCKADDR_STORAGE 1
6486 if test "$ac_cv_sa_storage" = no
; then
6487 missing_includes
=yes
6492 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6493 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6494 if test "${ac_cv_inaddrsz+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 cat >conftest.
$ac_ext <<_ACEOF
6498 #line $LINENO "configure"
6501 cat confdefs.h
>>conftest.
$ac_ext
6502 cat >>conftest.
$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6505 # include <arpa/nameser.h>
6514 rm -f conftest.
$ac_objext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516 (eval $ac_compile) 2>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try
='test -s conftest.$ac_objext'
6521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.
$ac_ext >&5
6533 rm -f conftest.
$ac_objext conftest.
$ac_ext
6536 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6537 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6538 if test $ac_cv_inaddrsz = yes; then
6539 cat >>confdefs.h
<<\_ACEOF
6540 #define HAVE_INADDRSZ 1
6546 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6547 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6548 if test "${ac_cv_in6addrsz+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.
$ac_ext <<_ACEOF
6552 #line $LINENO "configure"
6555 cat confdefs.h
>>conftest.
$ac_ext
6556 cat >>conftest.
$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6559 # include <arpa/nameser.h>
6568 rm -f conftest.
$ac_objext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try
='test -s conftest.$ac_objext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.
$ac_ext >&5
6587 rm -f conftest.
$ac_objext conftest.
$ac_ext
6590 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6591 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6592 if test $ac_cv_in6addrsz = yes; then
6593 cat >>confdefs.h
<<\_ACEOF
6594 #define HAVE_IN6ADDRSZ 1
6601 if test "$ac_cv_addrsz" = no
; then
6602 missing_includes
=yes
6606 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6607 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6608 if test "${ac_cv_res_inet6+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 cat >conftest.
$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6615 cat confdefs.h
>>conftest.
$ac_ext
6616 cat >>conftest.
$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6619 # include <sys/types.h>
6620 # include <netinet/in.h>
6621 # include <resolv.h>
6625 int a = RES_USE_INET6
6630 rm -f conftest.
$ac_objext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6632 (eval $ac_compile) 2>&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); } &&
6636 { ac_try
='test -s conftest.$ac_objext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.
$ac_ext >&5
6649 rm -f conftest.
$ac_objext conftest.
$ac_ext
6652 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6653 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6654 if test $ac_cv_res_inet6 = yes; then
6655 cat >>confdefs.h
<<\_ACEOF
6656 #define HAVE_RES_USE_INET6 1
6661 if test "$ac_cv_res_inet6" = no
; then
6662 missing_includes
=yes
6666 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6667 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6668 if test "${ac_cv_res_state_ext+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 cat >conftest.
$ac_ext <<_ACEOF
6672 #line $LINENO "configure"
6675 cat confdefs.h
>>conftest.
$ac_ext
6676 cat >>conftest.
$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6679 # include <sys/types.h>
6680 # include <netinet/in.h>
6681 # include <netinet6/in6.h>
6682 # include <resolv.h>
6686 struct __res_state_ext e
6691 rm -f conftest.
$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try
='test -s conftest.$ac_objext'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 ac_cv_res_state_ext
=yes
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.
$ac_ext >&5
6708 ac_cv_res_state_ext
=no
6710 rm -f conftest.
$ac_objext conftest.
$ac_ext
6713 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6714 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6715 if test $ac_cv_res_state_ext = yes; then
6716 cat >>confdefs.h
<<\_ACEOF
6717 #define HAVE_RES_STATE_EXT 1
6722 if test "$ac_cv_res_state_ext" = no
; then
6723 missing_includes
=yes
6727 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6728 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6729 if test "${ac_cv_res_state+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 cat >conftest.
$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6736 cat confdefs.h
>>conftest.
$ac_ext
6737 cat >>conftest.
$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6740 # include <sys/types.h>
6741 # include <netinet/in.h>
6742 # include <netinet6/in6.h>
6743 # include <resolv.h>
6747 struct __res_state e; e.nsort = 0
6752 rm -f conftest.
$ac_objext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try
='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.
$ac_ext >&5
6771 rm -f conftest.
$ac_objext conftest.
$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6775 echo "${ECHO_T}$ac_cv_res_state" >&6
6776 if test $ac_cv_res_state = yes; then
6777 cat >>confdefs.h
<<\_ACEOF
6778 #define HAVE_NEW_RES_STATE 1
6791 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
6793 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6794 echo "$as_me:$LINENO: checking for $ac_func" >&5
6795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6796 if eval "test \"\${$as_ac_var+set}\" = set"; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 cat >conftest.
$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6803 cat confdefs.h
>>conftest.
$ac_ext
6804 cat >>conftest.
$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char $ac_func (); below.
6808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809 <limits.h> exists even on freestanding compilers. */
6811 # include <limits.h>
6813 # include <assert.h>
6815 /* Override any gcc2 internal prototype to avoid an error. */
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6829 char (*f) () = $ac_func;
6838 return f != $ac_func;
6843 rm -f conftest.
$ac_objext conftest
$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try
='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 eval "$as_ac_var=yes"
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.
$ac_ext >&5
6860 eval "$as_ac_var=no"
6862 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6866 if test `eval echo '${'$as_ac_var'}'` = yes; then
6867 cat >>confdefs.h
<<_ACEOF
6868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6872 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
6878 for ac_func
in strftime
6880 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6881 echo "$as_me:$LINENO: checking for $ac_func" >&5
6882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6883 if eval "test \"\${$as_ac_var+set}\" = set"; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 cat >conftest.
$ac_ext <<_ACEOF
6887 #line $LINENO "configure"
6890 cat confdefs.h
>>conftest.
$ac_ext
6891 cat >>conftest.
$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 /* System header to define __stub macros and hopefully few prototypes,
6894 which can conflict with char $ac_func (); below.
6895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 <limits.h> exists even on freestanding compilers. */
6898 # include <limits.h>
6900 # include <assert.h>
6902 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6910 /* The GNU C library defines this for functions which it implements
6911 to always fail with ENOSYS. Some functions are actually named
6912 something starting with __ and the normal name is an alias. */
6913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6916 char (*f) () = $ac_func;
6925 return f != $ac_func;
6930 rm -f conftest.
$ac_objext conftest
$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try
='test -s conftest$ac_exeext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 eval "$as_ac_var=yes"
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.
$ac_ext >&5
6947 eval "$as_ac_var=no"
6949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6953 if test `eval echo '${'$as_ac_var'}'` = yes; then
6954 cat >>confdefs.h
<<_ACEOF
6955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6963 for ac_func
in setlinebuf alarm
6965 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6966 echo "$as_me:$LINENO: checking for $ac_func" >&5
6967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6968 if eval "test \"\${$as_ac_var+set}\" = set"; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 cat >conftest.
$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6975 cat confdefs.h
>>conftest.
$ac_ext
6976 cat >>conftest.
$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char $ac_func (); below.
6980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6981 <limits.h> exists even on freestanding compilers. */
6983 # include <limits.h>
6985 # include <assert.h>
6987 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6995 /* The GNU C library defines this for functions which it implements
6996 to always fail with ENOSYS. Some functions are actually named
6997 something starting with __ and the normal name is an alias. */
6998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7001 char (*f) () = $ac_func;
7010 return f != $ac_func;
7015 rm -f conftest.
$ac_objext conftest
$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try
='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 eval "$as_ac_var=yes"
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.
$ac_ext >&5
7032 eval "$as_ac_var=no"
7034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7038 if test `eval echo '${'$as_ac_var'}'` = yes; then
7039 cat >>confdefs.h
<<_ACEOF
7040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7050 for ac_func
in vsnprintf snprintf
7052 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7053 echo "$as_me:$LINENO: checking for $ac_func" >&5
7054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7055 if eval "test \"\${$as_ac_var+set}\" = set"; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.
$ac_ext <<_ACEOF
7059 #line $LINENO "configure"
7062 cat confdefs.h
>>conftest.
$ac_ext
7063 cat >>conftest.
$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 /* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char $ac_func (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */
7070 # include <limits.h>
7072 # include <assert.h>
7074 /* Override any gcc2 internal prototype to avoid an error. */
7079 /* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7082 /* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7088 char (*f) () = $ac_func;
7097 return f != $ac_func;
7102 rm -f conftest.
$ac_objext conftest
$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try
='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 eval "$as_ac_var=yes"
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7119 eval "$as_ac_var=no"
7121 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7125 if test `eval echo '${'$as_ac_var'}'` = yes; then
7126 cat >>confdefs.h
<<_ACEOF
7127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7135 if test $needsnprintf = yes; then
7136 LIBOBJS
="$LIBOBJS snprintf.$ac_objext"
7140 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7141 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7142 if test "${ac_cv_type_signal+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 cat >conftest.
$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7149 cat confdefs.h
>>conftest.
$ac_ext
7150 cat >>conftest.
$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7158 extern "C" void (*signal (int, void (*)(int)))(int);
7160 void (*signal ()) ();
7171 rm -f conftest.
$ac_objext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173 (eval $ac_compile) 2>&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try
='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_type_signal
=void
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.
$ac_ext >&5
7188 ac_cv_type_signal
=int
7190 rm -f conftest.
$ac_objext conftest.
$ac_ext
7192 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7193 echo "${ECHO_T}$ac_cv_type_signal" >&6
7195 cat >>confdefs.h
<<_ACEOF
7196 #define RETSIGTYPE $ac_cv_type_signal
7200 if test "$ac_cv_type_signal" = void
; then
7201 cat >>confdefs.h
<<\_ACEOF
7206 cat >>confdefs.h
<<\_ACEOF
7207 #define RETSIGVAL (0)
7214 cat >>confdefs.h
<<\_ACEOF
7215 #define _BSD_SIGNALS 1
7222 for ac_func
in sigaction
7224 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7225 echo "$as_me:$LINENO: checking for $ac_func" >&5
7226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7227 if eval "test \"\${$as_ac_var+set}\" = set"; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.
$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7234 cat confdefs.h
>>conftest.
$ac_ext
7235 cat >>conftest.
$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char $ac_func (); below.
7239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7240 <limits.h> exists even on freestanding compilers. */
7242 # include <limits.h>
7244 # include <assert.h>
7246 /* Override any gcc2 internal prototype to avoid an error. */
7251 /* We use char because int might match the return type of a gcc2
7252 builtin and then its argument prototype would still apply. */
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260 char (*f) () = $ac_func;
7269 return f != $ac_func;
7274 rm -f conftest.
$ac_objext conftest
$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try
='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 eval "$as_ac_var=yes"
7288 echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.
$ac_ext >&5
7291 eval "$as_ac_var=no"
7293 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7297 if test `eval echo '${'$as_ac_var'}'` = yes; then
7298 cat >>confdefs.h
<<_ACEOF
7299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7305 if test $ac_cv_func_sigaction = no
; then
7307 for ac_func
in sigset
7309 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7310 echo "$as_me:$LINENO: checking for $ac_func" >&5
7311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7312 if eval "test \"\${$as_ac_var+set}\" = set"; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.
$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7319 cat confdefs.h
>>conftest.
$ac_ext
7320 cat >>conftest.
$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7322 /* System header to define __stub macros and hopefully few prototypes,
7323 which can conflict with char $ac_func (); below.
7324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 <limits.h> exists even on freestanding compilers. */
7327 # include <limits.h>
7329 # include <assert.h>
7331 /* Override any gcc2 internal prototype to avoid an error. */
7336 /* We use char because int might match the return type of a gcc2
7337 builtin and then its argument prototype would still apply. */
7339 /* The GNU C library defines this for functions which it implements
7340 to always fail with ENOSYS. Some functions are actually named
7341 something starting with __ and the normal name is an alias. */
7342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7345 char (*f) () = $ac_func;
7354 return f != $ac_func;
7359 rm -f conftest.
$ac_objext conftest
$ac_exeext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7361 (eval $ac_link) 2>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try
='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 eval "$as_ac_var=yes"
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.
$ac_ext >&5
7376 eval "$as_ac_var=no"
7378 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7382 if test `eval echo '${'$as_ac_var'}'` = yes; then
7383 cat >>confdefs.h
<<_ACEOF
7384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7394 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7395 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7396 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_func_search_save_LIBS
=$LIBS
7400 ac_cv_search_dnet_htoa
=no
7401 cat >conftest.
$ac_ext <<_ACEOF
7402 #line $LINENO "configure"
7405 cat confdefs.h
>>conftest.
$ac_ext
7406 cat >>conftest.
$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7409 /* Override any gcc2 internal prototype to avoid an error. */
7413 /* We use char because int might match the return type of a gcc2
7414 builtin and then its argument prototype would still apply. */
7424 rm -f conftest.
$ac_objext conftest
$ac_exeext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426 (eval $ac_link) 2>&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try
='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7436 ac_cv_search_dnet_htoa
="none required"
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7442 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7443 if test "$ac_cv_search_dnet_htoa" = no
; then
7444 for ac_lib
in dnet
; do
7445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7446 cat >conftest.
$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7450 cat confdefs.h
>>conftest.
$ac_ext
7451 cat >>conftest.
$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7454 /* Override any gcc2 internal prototype to avoid an error. */
7458 /* We use char because int might match the return type of a gcc2
7459 builtin and then its argument prototype would still apply. */
7469 rm -f conftest.
$ac_objext conftest
$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471 (eval $ac_link) 2>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try
='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_search_dnet_htoa
="-l$ac_lib"
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.
$ac_ext >&5
7488 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7491 LIBS
=$ac_func_search_save_LIBS
7493 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7494 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7495 if test "$ac_cv_search_dnet_htoa" != no
; then
7496 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
7497 cat >>confdefs.h
<<\_ACEOF
7498 #define HAVE_DNET_HTOA 1
7505 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7506 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7507 if test "${ac_cv_lib_rpc_main+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_check_lib_save_LIBS
=$LIBS
7512 cat >conftest.
$ac_ext <<_ACEOF
7513 #line $LINENO "configure"
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7529 rm -f conftest.
$ac_objext conftest
$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try
='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_lib_rpc_main
=yes
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.
$ac_ext >&5
7546 ac_cv_lib_rpc_main
=no
7548 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7549 LIBS
=$ac_check_lib_save_LIBS
7551 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7552 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7553 if test $ac_cv_lib_rpc_main = yes; then
7554 cat >>confdefs.h
<<_ACEOF
7555 #define HAVE_LIBRPC 1
7562 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7563 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7564 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 ac_func_search_save_LIBS
=$LIBS
7568 ac_cv_search_getrpcbynumber
=no
7569 cat >conftest.
$ac_ext <<_ACEOF
7570 #line $LINENO "configure"
7573 cat confdefs.h
>>conftest.
$ac_ext
7574 cat >>conftest.
$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7577 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7583 char getrpcbynumber ();
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try
='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_search_getrpcbynumber
="none required"
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.
$ac_ext >&5
7610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7611 if test "$ac_cv_search_getrpcbynumber" = no
; then
7612 for ac_lib
in nsl
; do
7613 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7614 cat >conftest.
$ac_ext <<_ACEOF
7615 #line $LINENO "configure"
7618 cat confdefs.h
>>conftest.
$ac_ext
7619 cat >>conftest.
$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7622 /* Override any gcc2 internal prototype to avoid an error. */
7626 /* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7628 char getrpcbynumber ();
7637 rm -f conftest.
$ac_objext conftest
$ac_exeext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try
='test -s conftest$ac_exeext'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; }; then
7649 ac_cv_search_getrpcbynumber
="-l$ac_lib"
7652 echo "$as_me: failed program was:" >&5
7653 sed 's/^/| /' conftest.
$ac_ext >&5
7656 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7659 LIBS
=$ac_func_search_save_LIBS
7661 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7662 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7663 if test "$ac_cv_search_getrpcbynumber" != no
; then
7664 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
7665 cat >>confdefs.h
<<\_ACEOF
7666 #define HAVE_GETRPCBYNUMBER 1
7674 # Most operating systems have gethostbyname() in the default searched
7675 # libraries (i.e. libc):
7676 # Some OSes (eg. Solaris) place it in libnsl
7677 # Some strange OSes (SINIX) have it in libsocket:
7678 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7679 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7680 if test "${ac_cv_search_gethostbyname+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_func_search_save_LIBS
=$LIBS
7684 ac_cv_search_gethostbyname
=no
7685 cat >conftest.
$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7689 cat confdefs.h
>>conftest.
$ac_ext
7690 cat >>conftest.
$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7693 /* Override any gcc2 internal prototype to avoid an error. */
7697 /* We use char because int might match the return type of a gcc2
7698 builtin and then its argument prototype would still apply. */
7699 char gethostbyname ();
7708 rm -f conftest.
$ac_objext conftest
$ac_exeext
7709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7710 (eval $ac_link) 2>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try
='test -s conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_search_gethostbyname
="none required"
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7726 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7727 if test "$ac_cv_search_gethostbyname" = no
; then
7728 for ac_lib
in nsl socket resolv
; do
7729 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7730 cat >conftest.
$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7734 cat confdefs.h
>>conftest.
$ac_ext
7735 cat >>conftest.
$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7738 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7744 char gethostbyname ();
7753 rm -f conftest.
$ac_objext conftest
$ac_exeext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try
='test -s conftest$ac_exeext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_cv_search_gethostbyname
="-l$ac_lib"
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7772 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7775 LIBS
=$ac_func_search_save_LIBS
7777 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7778 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7779 if test "$ac_cv_search_gethostbyname" != no
; then
7780 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
7784 # Unfortunately libsocket sometimes depends on libnsl and
7785 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7786 if test "$ac_cv_search_gethostbyname" = "no"
7788 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7789 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7790 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 ac_check_lib_save_LIBS
=$LIBS
7794 LIBS
="-lsocket -lnsl $LIBS"
7795 cat >conftest.
$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7803 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809 char gethostbyname ();
7818 rm -f conftest.
$ac_objext conftest
$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try
='test -s conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_lib_socket_gethostbyname
=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.
$ac_ext >&5
7835 ac_cv_lib_socket_gethostbyname
=no
7837 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7838 LIBS
=$ac_check_lib_save_LIBS
7840 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7841 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7842 if test $ac_cv_lib_socket_gethostbyname = yes; then
7843 LIBS
="-lsocket -lnsl $LIBS"
7847 echo "$as_me:$LINENO: checking for library containing socket" >&5
7848 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7849 if test "${ac_cv_search_socket+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 ac_func_search_save_LIBS
=$LIBS
7853 ac_cv_search_socket
=no
7854 cat >conftest.
$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7858 cat confdefs.h
>>conftest.
$ac_ext
7859 cat >>conftest.
$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7862 /* Override any gcc2 internal prototype to avoid an error. */
7866 /* We use char because int might match the return type of a gcc2
7867 builtin and then its argument prototype would still apply. */
7877 rm -f conftest.
$ac_objext conftest
$ac_exeext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7879 (eval $ac_link) 2>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try
='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_search_socket
="none required"
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.
$ac_ext >&5
7895 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7896 if test "$ac_cv_search_socket" = no
; then
7897 for ac_lib
in socket
; do
7898 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7899 cat >conftest.
$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7903 cat confdefs.h
>>conftest.
$ac_ext
7904 cat >>conftest.
$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7907 /* Override any gcc2 internal prototype to avoid an error. */
7911 /* We use char because int might match the return type of a gcc2
7912 builtin and then its argument prototype would still apply. */
7922 rm -f conftest.
$ac_objext conftest
$ac_exeext
7923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7924 (eval $ac_link) 2>&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } &&
7928 { ac_try
='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 ac_cv_search_socket
="-l$ac_lib"
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.
$ac_ext >&5
7941 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7944 LIBS
=$ac_func_search_save_LIBS
7946 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7947 echo "${ECHO_T}$ac_cv_search_socket" >&6
7948 if test "$ac_cv_search_socket" != no
; then
7949 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
7952 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7953 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7954 if test "${ac_cv_lib_socket_socket+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 ac_check_lib_save_LIBS
=$LIBS
7958 LIBS
="-lsocket -lnsl $LIBS"
7959 cat >conftest.
$ac_ext <<_ACEOF
7960 #line $LINENO "configure"
7963 cat confdefs.h
>>conftest.
$ac_ext
7964 cat >>conftest.
$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7967 /* Override any gcc2 internal prototype to avoid an error. */
7971 /* We use char because int might match the return type of a gcc2
7972 builtin and then its argument prototype would still apply. */
7982 rm -f conftest.
$ac_objext conftest
$ac_exeext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try
='test -s conftest$ac_exeext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_lib_socket_socket
=yes
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.
$ac_ext >&5
7999 ac_cv_lib_socket_socket
=no
8001 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8002 LIBS
=$ac_check_lib_save_LIBS
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8005 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8006 if test $ac_cv_lib_socket_socket = yes; then
8007 LIBS
="-lsocket -lnsl $LIBS"
8012 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8013 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8014 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8015 if test "${ac_cv_search_putmsg+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 ac_func_search_save_LIBS
=$LIBS
8019 ac_cv_search_putmsg
=no
8020 cat >conftest.
$ac_ext <<_ACEOF
8021 #line $LINENO "configure"
8024 cat confdefs.h
>>conftest.
$ac_ext
8025 cat >>conftest.
$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8028 /* Override any gcc2 internal prototype to avoid an error. */
8032 /* We use char because int might match the return type of a gcc2
8033 builtin and then its argument prototype would still apply. */
8043 rm -f conftest.
$ac_objext conftest
$ac_exeext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8045 (eval $ac_link) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try
='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_search_putmsg
="none required"
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.
$ac_ext >&5
8061 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8062 if test "$ac_cv_search_putmsg" = no
; then
8063 for ac_lib
in str
; do
8064 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8065 cat >conftest.
$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8069 cat confdefs.h
>>conftest.
$ac_ext
8070 cat >>conftest.
$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8073 /* Override any gcc2 internal prototype to avoid an error. */
8077 /* We use char because int might match the return type of a gcc2
8078 builtin and then its argument prototype would still apply. */
8088 rm -f conftest.
$ac_objext conftest
$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try
='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_search_putmsg
="-l$ac_lib"
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.
$ac_ext >&5
8107 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8110 LIBS
=$ac_func_search_save_LIBS
8112 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8113 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8114 if test "$ac_cv_search_putmsg" != no
; then
8115 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
8122 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
8123 if test -f $pfopen ; then
8125 for ac_func
in pfopen
8127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8128 echo "$as_me:$LINENO: checking for $ac_func" >&5
8129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8130 if eval "test \"\${$as_ac_var+set}\" = set"; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 cat >conftest.
$ac_ext <<_ACEOF
8134 #line $LINENO "configure"
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 /* System header to define __stub macros and hopefully few prototypes,
8141 which can conflict with char $ac_func (); below.
8142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8143 <limits.h> exists even on freestanding compilers. */
8145 # include <limits.h>
8147 # include <assert.h>
8149 /* Override any gcc2 internal prototype to avoid an error. */
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8157 /* The GNU C library defines this for functions which it implements
8158 to always fail with ENOSYS. Some functions are actually named
8159 something starting with __ and the normal name is an alias. */
8160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163 char (*f) () = $ac_func;
8172 return f != $ac_func;
8177 rm -f conftest.
$ac_objext conftest
$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 (eval $ac_link) 2>&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try
='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 eval "$as_ac_var=yes"
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.
$ac_ext >&5
8194 eval "$as_ac_var=no"
8196 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8200 if test `eval echo '${'$as_ac_var'}'` = yes; then
8201 cat >>confdefs.h
<<_ACEOF
8202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8208 if test $ac_cv_func_pfopen = "no" ; then
8209 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8210 echo "${ECHO_T}Using $pfopen" >&6
8211 LIBS
="$LIBS $pfopen"
8214 echo "$as_me:$LINENO: checking for local pcap library" >&5
8215 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8218 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8219 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8220 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
8221 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8222 if test $lastdir = $basedir ; then
8226 if test -r $dir/libpcap.a
; then
8227 libpcap
=$dir/libpcap.a
8231 if test $libpcap = FAIL
; then
8232 echo "$as_me:$LINENO: result: not found" >&5
8233 echo "${ECHO_T}not found" >&6
8234 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8235 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8236 if test "${ac_cv_lib_pcap_main+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 ac_check_lib_save_LIBS
=$LIBS
8241 cat >conftest.
$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8245 cat confdefs.h
>>conftest.
$ac_ext
8246 cat >>conftest.
$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8258 rm -f conftest.
$ac_objext conftest
$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try
='test -s conftest$ac_exeext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_cv_lib_pcap_main
=yes
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.
$ac_ext >&5
8275 ac_cv_lib_pcap_main
=no
8277 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8278 LIBS
=$ac_check_lib_save_LIBS
8280 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8281 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8282 if test $ac_cv_lib_pcap_main = yes; then
8286 if test $libpcap = FAIL
; then
8287 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8288 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8289 { (exit 1); exit 1; }; }
8291 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8292 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8293 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
8294 \
( ! -r /usr
/include
/pcap.h \
); then
8295 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
8296 d
="/usr/local/include/pcap"
8297 elif test -r /usr
/include
/pcap
/pcap.h
; then
8298 d
="/usr/include/pcap"
8301 if test -z "$d" ; then
8302 echo "$as_me:$LINENO: result: not found" >&5
8303 echo "${ECHO_T}not found" >&6
8305 V_INCLS
="-I$d $V_INCLS"
8306 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8307 echo "${ECHO_T}found -- -I$d added" >&6
8311 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8312 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8313 if test -r $d/pcap.h
; then
8314 V_INCLS
="-I$d $V_INCLS"
8315 elif test -r $places/pcap.h
; then
8316 V_INCLS
="-I$places $V_INCLS"
8318 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8319 echo "$as_me: error: cannot find pcap.h" >&2;}
8320 { (exit see INSTALL
); exit see INSTALL
; }; }
8322 echo "$as_me:$LINENO: result: $libpcap" >&5
8323 echo "${ECHO_T}$libpcap" >&6
8325 LIBS
="$libpcap $LIBS"
8329 pseexe
="/lib/pse.exp"
8330 echo "$as_me:$LINENO: checking for $pseexe" >&5
8331 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8332 if test -f $pseexe ; then
8333 echo "$as_me:$LINENO: result: yes" >&5
8334 echo "${ECHO_T}yes" >&6
8335 LIBS
="$LIBS -I:$pseexe"
8338 # We need "-lodm" and "-lcfg", as libpcap requires them on
8339 # AIX, and we just build a static libpcap.a and thus can't
8340 # arrange that when you link with libpcap you automatically
8341 # link with those libraries.
8343 LIBS
="$LIBS -lodm -lcfg"
8347 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8348 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8349 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.
$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 /* System header to define __stub macros and hopefully few prototypes,
8360 which can conflict with char pcap_list_datalinks (); below.
8361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8362 <limits.h> exists even on freestanding compilers. */
8364 # include <limits.h>
8366 # include <assert.h>
8368 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8375 char pcap_list_datalinks ();
8376 /* The GNU C library defines this for functions which it implements
8377 to always fail with ENOSYS. Some functions are actually named
8378 something starting with __ and the normal name is an alias. */
8379 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8382 char (*f) () = pcap_list_datalinks;
8391 return f != pcap_list_datalinks;
8396 rm -f conftest.
$ac_objext conftest
$ac_exeext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try
='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_func_pcap_list_datalinks
=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.
$ac_ext >&5
8413 ac_cv_func_pcap_list_datalinks
=no
8415 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8417 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8418 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8419 if test $ac_cv_func_pcap_list_datalinks = yes; then
8420 cat >>confdefs.h
<<\_ACEOF
8421 #define HAVE_PCAP_LIST_DATALINKS 1
8425 LIBOBJS
="$LIBOBJS datalinks.$ac_objext"
8428 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8429 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8430 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 cat >conftest.
$ac_ext <<_ACEOF
8434 #line $LINENO "configure"
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char pcap_set_datalink (); below.
8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8443 <limits.h> exists even on freestanding compilers. */
8445 # include <limits.h>
8447 # include <assert.h>
8449 /* Override any gcc2 internal prototype to avoid an error. */
8454 /* We use char because int might match the return type of a gcc2
8455 builtin and then its argument prototype would still apply. */
8456 char pcap_set_datalink ();
8457 /* The GNU C library defines this for functions which it implements
8458 to always fail with ENOSYS. Some functions are actually named
8459 something starting with __ and the normal name is an alias. */
8460 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8463 char (*f) () = pcap_set_datalink;
8472 return f != pcap_set_datalink;
8477 rm -f conftest.
$ac_objext conftest
$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479 (eval $ac_link) 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try
='test -s conftest$ac_exeext'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; }; then
8489 ac_cv_func_pcap_set_datalink
=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.
$ac_ext >&5
8494 ac_cv_func_pcap_set_datalink
=no
8496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8499 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8500 if test $ac_cv_func_pcap_set_datalink = yes; then
8501 cat >>confdefs.h
<<\_ACEOF
8502 #define HAVE_PCAP_SET_DATALINK 1
8507 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8508 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8509 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.
$ac_ext <<_ACEOF
8513 #line $LINENO "configure"
8516 cat confdefs.h
>>conftest.
$ac_ext
8517 cat >>conftest.
$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 /* System header to define __stub macros and hopefully few prototypes,
8520 which can conflict with char pcap_datalink_name_to_val (); below.
8521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8522 <limits.h> exists even on freestanding compilers. */
8524 # include <limits.h>
8526 # include <assert.h>
8528 /* Override any gcc2 internal prototype to avoid an error. */
8533 /* We use char because int might match the return type of a gcc2
8534 builtin and then its argument prototype would still apply. */
8535 char pcap_datalink_name_to_val ();
8536 /* The GNU C library defines this for functions which it implements
8537 to always fail with ENOSYS. Some functions are actually named
8538 something starting with __ and the normal name is an alias. */
8539 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8542 char (*f) () = pcap_datalink_name_to_val;
8551 return f != pcap_datalink_name_to_val;
8556 rm -f conftest.
$ac_objext conftest
$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try
='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_func_pcap_datalink_name_to_val
=yes
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.
$ac_ext >&5
8573 ac_cv_func_pcap_datalink_name_to_val
=no
8575 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8577 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8578 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8579 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8581 cat >>confdefs.h
<<\_ACEOF
8582 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8585 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8586 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8587 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8590 cat >conftest.
$ac_ext <<_ACEOF
8591 #line $LINENO "configure"
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 /* System header to define __stub macros and hopefully few prototypes,
8598 which can conflict with char pcap_datalink_val_to_description (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8602 # include <limits.h>
8604 # include <assert.h>
8606 /* Override any gcc2 internal prototype to avoid an error. */
8611 /* We use char because int might match the return type of a gcc2
8612 builtin and then its argument prototype would still apply. */
8613 char pcap_datalink_val_to_description ();
8614 /* The GNU C library defines this for functions which it implements
8615 to always fail with ENOSYS. Some functions are actually named
8616 something starting with __ and the normal name is an alias. */
8617 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8620 char (*f) () = pcap_datalink_val_to_description;
8629 return f != pcap_datalink_val_to_description;
8634 rm -f conftest.
$ac_objext conftest
$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636 (eval $ac_link) 2>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try
='test -s conftest$ac_exeext'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_func_pcap_datalink_val_to_description
=yes
8648 echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.
$ac_ext >&5
8651 ac_cv_func_pcap_datalink_val_to_description
=no
8653 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8655 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8656 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8657 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8658 cat >>confdefs.h
<<\_ACEOF
8659 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8663 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8668 LIBOBJS
="$LIBOBJS dlnames.$ac_objext"
8673 for ac_func
in pcap_breakloop
8675 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8676 echo "$as_me:$LINENO: checking for $ac_func" >&5
8677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8678 if eval "test \"\${$as_ac_var+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.
$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8685 cat confdefs.h
>>conftest.
$ac_ext
8686 cat >>conftest.
$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 /* System header to define __stub macros and hopefully few prototypes,
8689 which can conflict with char $ac_func (); below.
8690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8691 <limits.h> exists even on freestanding compilers. */
8693 # include <limits.h>
8695 # include <assert.h>
8697 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8705 /* The GNU C library defines this for functions which it implements
8706 to always fail with ENOSYS. Some functions are actually named
8707 something starting with __ and the normal name is an alias. */
8708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8711 char (*f) () = $ac_func;
8720 return f != $ac_func;
8725 rm -f conftest.
$ac_objext conftest
$ac_exeext
8726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try
='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_var=yes"
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.
$ac_ext >&5
8742 eval "$as_ac_var=no"
8744 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8748 if test `eval echo '${'$as_ac_var'}'` = yes; then
8749 cat >>confdefs.h
<<_ACEOF
8750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8759 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8760 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8762 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8763 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8764 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8765 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8766 # it does not ship with a libc symbol "inet_ntop()", it ships with
8767 # "_inet_ntop()", and has a #define macro in one of the system headers
8770 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8771 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8772 cat >conftest.
$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8776 cat confdefs.h
>>conftest.
$ac_ext
8777 cat >>conftest.
$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <sys/types.h>
8780 #include <sys/socket.h>
8781 #include <netinet/in.h>
8782 #include <arpa/inet.h>
8786 char src[4], dst[128];
8787 inet_ntop(AF_INET, src, dst, sizeof(dst));
8792 rm -f conftest.
$ac_objext conftest
$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try
='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 echo "$as_me:$LINENO: result: yes" >&5
8805 echo "${ECHO_T}yes" >&6
8807 echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.
$ac_ext >&5
8810 echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6
8812 LIBOBJS
="$LIBOBJS inet_ntop.$ac_objext"
8814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8815 echo "$as_me:$LINENO: checking for inet_pton" >&5
8816 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8817 cat >conftest.
$ac_ext <<_ACEOF
8818 #line $LINENO "configure"
8821 cat confdefs.h
>>conftest.
$ac_ext
8822 cat >>conftest.
$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 #include <sys/types.h>
8825 #include <sys/socket.h>
8826 #include <netinet/in.h>
8827 #include <arpa/inet.h>
8831 char src[128], dst[4];
8832 inet_pton(AF_INET, src, dst);
8837 rm -f conftest.
$ac_objext conftest
$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } &&
8843 { ac_try
='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.
$ac_ext >&5
8855 echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8857 LIBOBJS
="$LIBOBJS inet_pton.$ac_objext"
8859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8860 echo "$as_me:$LINENO: checking for inet_aton" >&5
8861 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8862 cat >conftest.
$ac_ext <<_ACEOF
8863 #line $LINENO "configure"
8866 cat confdefs.h
>>conftest.
$ac_ext
8867 cat >>conftest.
$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <sys/types.h>
8870 #include <netinet/in.h>
8871 #include <arpa/inet.h>
8877 inet_aton(src, &dst);
8882 rm -f conftest.
$ac_objext conftest
$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
8888 { ac_try
='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895 echo "${ECHO_T}yes" >&6
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 echo "$as_me:$LINENO: result: no" >&5
8901 echo "${ECHO_T}no" >&6
8902 LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
8904 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8907 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8909 # You are in a twisty little maze of UN*Xes, all different.
8910 # Some might not have ether_ntohost().
8911 # Some might have it, but not declare it in any header file.
8912 # Some might have it, but declare it in <netinet/if_ether.h>.
8913 # Some might have it, but declare it in <netinet/ether.h>
8914 # (And some might have it but document it as something declared in
8915 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8917 # Before you is a C compiler.
8920 for ac_func
in ether_ntohost
8922 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8923 echo "$as_me:$LINENO: checking for $ac_func" >&5
8924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8925 if eval "test \"\${$as_ac_var+set}\" = set"; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 cat >conftest.
$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8932 cat confdefs.h
>>conftest.
$ac_ext
8933 cat >>conftest.
$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8940 # include <limits.h>
8942 # include <assert.h>
8944 /* Override any gcc2 internal prototype to avoid an error. */
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958 char (*f) () = $ac_func;
8967 return f != $ac_func;
8972 rm -f conftest.
$ac_objext conftest
$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try
='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 eval "$as_ac_var=yes"
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.
$ac_ext >&5
8989 eval "$as_ac_var=no"
8991 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8995 if test `eval echo '${'$as_ac_var'}'` = yes; then
8996 cat >>confdefs.h
<<_ACEOF
8997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9000 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9001 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9002 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 if test "$cross_compiling" = yes; then
9007 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
9009 cat >conftest.
$ac_ext <<_ACEOF
9010 #line $LINENO "configure"
9013 cat confdefs.h
>>conftest.
$ac_ext
9014 cat >>conftest.
$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9018 #include <sys/types.h>
9019 #include <sys/param.h>
9020 #include <sys/socket.h>
9023 main(int argc, char **argv)
9025 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9026 char name[MAXHOSTNAMELEN];
9028 ether_ntohost(name, (struct ether_addr *)ea);
9033 rm -f conftest
$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_buggy_ether_ntohost
=no
9046 echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.
$ac_ext >&5
9051 ac_cv_buggy_ether_ntohost
=yes
9053 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9056 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9057 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9058 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9059 cat >>confdefs.h
<<\_ACEOF
9060 #define USE_ETHER_NTOHOST 1
9068 if test "$ac_cv_func_ether_ntohost" = yes -a \
9069 "$ac_cv_buggy_ether_ntohost" = "no"; then
9071 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9073 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9075 # Yes. Does it declare ether_ntohost()?
9077 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9078 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9079 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 cat >conftest.
$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9086 cat confdefs.h
>>conftest.
$ac_ext
9087 cat >>conftest.
$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9090 #include <sys/types.h>
9091 #include <sys/socket.h>
9092 #include <netinet/in.h>
9093 #include <arpa/inet.h>
9097 #include <netinet/if_ether.h>
9103 #ifndef ether_ntohost
9104 char *p = (char *) ether_ntohost;
9111 rm -f conftest.
$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try
='test -s conftest.$ac_objext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_have_decl_ether_ntohost
=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.
$ac_ext >&5
9128 ac_cv_have_decl_ether_ntohost
=no
9130 rm -f conftest.
$ac_objext conftest.
$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9133 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9134 if test $ac_cv_have_decl_ether_ntohost = yes; then
9136 cat >>confdefs.h
<<_ACEOF
9137 #define HAVE_DECL_ETHER_NTOHOST 1
9142 cat >>confdefs.h
<<\_ACEOF
9143 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9148 cat >>confdefs.h
<<_ACEOF
9149 #define HAVE_DECL_ETHER_NTOHOST 0
9160 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9162 # No, how about <netinet/ether.h>, as on Linux?
9165 for ac_header
in netinet
/ether.h
9167 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 # Is the header compilable?
9178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9180 cat >conftest.
$ac_ext <<_ACEOF
9181 #line $LINENO "configure"
9184 cat confdefs.h
>>conftest.
$ac_ext
9185 cat >>conftest.
$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 $ac_includes_default
9188 #include <$ac_header>
9190 rm -f conftest.
$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try
='test -s conftest.$ac_objext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 ac_header_compiler
=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.
$ac_ext >&5
9207 ac_header_compiler
=no
9209 rm -f conftest.
$ac_objext conftest.
$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9211 echo "${ECHO_T}$ac_header_compiler" >&6
9213 # Is the header present?
9214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9216 cat >conftest.
$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9220 cat confdefs.h
>>conftest.
$ac_ext
9221 cat >>conftest.
$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <$ac_header>
9225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9226 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } >/dev
/null
; then
9233 if test -s conftest.err
; then
9234 ac_cpp_err
=$ac_c_preproc_warn_flag
9241 if test -z "$ac_cpp_err"; then
9242 ac_header_preproc
=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.
$ac_ext >&5
9247 ac_header_preproc
=no
9249 rm -f conftest.err conftest.
$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc in
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9262 ## ------------------------------------ ##
9263 ## Report this to bug-autoconf@gnu.org. ##
9264 ## ------------------------------------ ##
9267 sed "s/^/$as_me: WARNING: /" >&2
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9278 ## ------------------------------------ ##
9279 ## Report this to bug-autoconf@gnu.org. ##
9280 ## ------------------------------------ ##
9283 sed "s/^/$as_me: WARNING: /" >&2
9286 echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 eval "$as_ac_Header=$ac_header_preproc"
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9298 cat >>confdefs.h
<<_ACEOF
9299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9306 if test "$ac_cv_header_netinet_ether_h" = yes; then
9308 # We have it - does it declare ether_ntohost()?
9309 # Unset ac_cv_have_decl_ether_ntohost so we don't
9310 # treat the previous failure as a cached value and
9311 # suppress the next test.
9313 unset ac_cv_have_decl_ether_ntohost
9314 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9315 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9316 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 cat >conftest.
$ac_ext <<_ACEOF
9320 #line $LINENO "configure"
9323 cat confdefs.h
>>conftest.
$ac_ext
9324 cat >>conftest.
$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 #include <netinet/ether.h>
9333 #ifndef ether_ntohost
9334 char *p = (char *) ether_ntohost;
9341 rm -f conftest.
$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try
='test -s conftest.$ac_objext'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; }; then
9353 ac_cv_have_decl_ether_ntohost
=yes
9355 echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.
$ac_ext >&5
9358 ac_cv_have_decl_ether_ntohost
=no
9360 rm -f conftest.
$ac_objext conftest.
$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9363 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9364 if test $ac_cv_have_decl_ether_ntohost = yes; then
9366 cat >>confdefs.h
<<_ACEOF
9367 #define HAVE_DECL_ETHER_NTOHOST 1
9372 cat >>confdefs.h
<<\_ACEOF
9373 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9378 cat >>confdefs.h
<<_ACEOF
9379 #define HAVE_DECL_ETHER_NTOHOST 0
9389 # Is ether_ntohost() declared?
9391 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9393 # No, we'll have to declare it ourselves.
9394 # Do we have "struct ether_addr"?
9396 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
9397 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
9398 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.
$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 #include <sys/types.h>
9410 #include <sys/socket.h>
9411 #include <netinet/in.h>
9412 #include <arpa/inet.h>
9416 #include <netinet/if_ether.h>
9422 if ((struct ether_addr *) 0)
9424 if (sizeof (struct ether_addr))
9430 rm -f conftest.
$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432 (eval $ac_compile) 2>&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try
='test -s conftest.$ac_objext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_cv_type_struct_ether_addr
=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.
$ac_ext >&5
9447 ac_cv_type_struct_ether_addr
=no
9449 rm -f conftest.
$ac_objext conftest.
$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
9452 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
9453 if test $ac_cv_type_struct_ether_addr = yes; then
9455 cat >>confdefs.h
<<_ACEOF
9456 #define HAVE_STRUCT_ETHER_ADDR 1
9466 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9467 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9468 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 cat >conftest.
$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9475 cat confdefs.h
>>conftest.
$ac_ext
9476 cat >>conftest.
$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 # include <sys/types.h>
9480 # include <sys/socket.h>
9484 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9489 rm -f conftest.
$ac_objext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9491 (eval $ac_compile) 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try
='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_cv_sockaddr_has_sa_len
=yes
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.
$ac_ext >&5
9506 ac_cv_sockaddr_has_sa_len
=no
9508 rm -f conftest.
$ac_objext conftest.
$ac_ext
9511 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9512 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9513 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9514 cat >>confdefs.h
<<\_ACEOF
9515 #define HAVE_SOCKADDR_SA_LEN 1
9520 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
9521 missing_includes
=yes
9527 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
9529 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 cat >conftest.
$ac_ext <<_ACEOF
9536 #line $LINENO "configure"
9539 cat confdefs.h
>>conftest.
$ac_ext
9540 cat >>conftest.
$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 /* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char $ac_func (); below.
9544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545 <limits.h> exists even on freestanding compilers. */
9547 # include <limits.h>
9549 # include <assert.h>
9551 /* Override any gcc2 internal prototype to avoid an error. */
9556 /* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9559 /* The GNU C library defines this for functions which it implements
9560 to always fail with ENOSYS. Some functions are actually named
9561 something starting with __ and the normal name is an alias. */
9562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9565 char (*f) () = $ac_func;
9574 return f != $ac_func;
9579 rm -f conftest.
$ac_objext conftest
$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581 (eval $ac_link) 2>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } &&
9585 { ac_try
='test -s conftest$ac_exeext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 eval "$as_ac_var=yes"
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.
$ac_ext >&5
9596 eval "$as_ac_var=no"
9598 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9602 if test `eval echo '${'$as_ac_var'}'` = yes; then
9603 cat >>confdefs.h
<<_ACEOF
9604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9610 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9611 savedcflags
="$CFLAGS"
9612 CFLAGS
="$CFLAGS $V_INCLS"
9613 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9614 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9615 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 cat >conftest.
$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9622 cat confdefs.h
>>conftest.
$ac_ext
9623 cat >>conftest.
$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9630 if ((pcap_if_t *) 0)
9632 if (sizeof (pcap_if_t))
9638 rm -f conftest.
$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try
='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_type_pcap_if_t
=yes
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9655 ac_cv_type_pcap_if_t
=no
9657 rm -f conftest.
$ac_objext conftest.
$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9660 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9661 if test $ac_cv_type_pcap_if_t = yes; then
9663 cat >>confdefs.h
<<_ACEOF
9664 #define HAVE_PCAP_IF_T 1
9670 CFLAGS
="$savedcflags"
9673 if test $ac_cv_func_pcap_lib_version = "no" ; then
9674 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9675 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9676 cat >conftest.
$ac_ext <<_ACEOF
9677 #line $LINENO "configure"
9680 cat confdefs.h
>>conftest.
$ac_ext
9681 cat >>conftest.
$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9688 extern char pcap_version[];
9690 return (int)pcap_version;
9696 rm -f conftest.
$ac_objext conftest
$ac_exeext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try
='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_lbl_cv_pcap_version_defined
=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.
$ac_ext >&5
9713 ac_lbl_cv_pcap_version_defined
=no
9715 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9716 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9717 echo "$as_me:$LINENO: result: yes" >&5
9718 echo "${ECHO_T}yes" >&6
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define HAVE_PCAP_VERSION 1
9724 echo "$as_me:$LINENO: result: no" >&5
9725 echo "${ECHO_T}no" >&6
9728 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9729 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9730 cat >conftest.
$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9734 cat confdefs.h
>>conftest.
$ac_ext
9735 cat >>conftest.
$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9742 extern int pcap_debug;
9750 rm -f conftest.
$ac_objext conftest
$ac_exeext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9752 (eval $ac_link) 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try
='test -s conftest$ac_exeext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_lbl_cv_pcap_debug_defined
=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.
$ac_ext >&5
9767 ac_lbl_cv_pcap_debug_defined
=no
9769 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9770 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9771 echo "$as_me:$LINENO: result: yes" >&5
9772 echo "${ECHO_T}yes" >&6
9773 cat >>confdefs.h
<<\_ACEOF
9774 #define HAVE_PCAP_DEBUG 1
9778 echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9781 # OK, what about "yydebug"?
9783 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9784 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9785 cat >conftest.
$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9789 cat confdefs.h
>>conftest.
$ac_ext
9790 cat >>conftest.
$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9805 rm -f conftest.
$ac_objext conftest
$ac_exeext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9807 (eval $ac_link) 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try
='test -s conftest$ac_exeext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_lbl_cv_yydebug_defined
=yes
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.
$ac_ext >&5
9822 ac_lbl_cv_yydebug_defined
=no
9824 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9825 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9826 echo "$as_me:$LINENO: result: yes" >&5
9827 echo "${ECHO_T}yes" >&6
9828 cat >>confdefs.h
<<\_ACEOF
9829 #define HAVE_YYDEBUG 1
9833 echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6
9838 for ac_func
in bpf_dump
9840 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9841 echo "$as_me:$LINENO: checking for $ac_func" >&5
9842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9843 if eval "test \"\${$as_ac_var+set}\" = set"; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 cat >conftest.
$ac_ext <<_ACEOF
9847 #line $LINENO "configure"
9850 cat confdefs.h
>>conftest.
$ac_ext
9851 cat >>conftest.
$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 /* System header to define __stub macros and hopefully few prototypes,
9854 which can conflict with char $ac_func (); below.
9855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9856 <limits.h> exists even on freestanding compilers. */
9858 # include <limits.h>
9860 # include <assert.h>
9862 /* Override any gcc2 internal prototype to avoid an error. */
9867 /* We use char because int might match the return type of a gcc2
9868 builtin and then its argument prototype would still apply. */
9870 /* The GNU C library defines this for functions which it implements
9871 to always fail with ENOSYS. Some functions are actually named
9872 something starting with __ and the normal name is an alias. */
9873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9876 char (*f) () = $ac_func;
9885 return f != $ac_func;
9890 rm -f conftest.
$ac_objext conftest
$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try
='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 eval "$as_ac_var=yes"
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.
$ac_ext >&5
9907 eval "$as_ac_var=no"
9909 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9913 if test `eval echo '${'$as_ac_var'}'` = yes; then
9914 cat >>confdefs.h
<<_ACEOF
9915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9919 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
9925 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
9931 cat >>confdefs.h
<<\_ACEOF
9950 if test -f /dev
/bpf0
; then
9955 for ac_header
in sys
/bitypes.h
9957 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9959 echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9967 # Is the header compilable?
9968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9970 cat >conftest.
$ac_ext <<_ACEOF
9971 #line $LINENO "configure"
9974 cat confdefs.h
>>conftest.
$ac_ext
9975 cat >>conftest.
$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 $ac_includes_default
9978 #include <$ac_header>
9980 rm -f conftest.
$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try
='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_header_compiler
=yes
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.
$ac_ext >&5
9997 ac_header_compiler
=no
9999 rm -f conftest.
$ac_objext conftest.
$ac_ext
10000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10001 echo "${ECHO_T}$ac_header_compiler" >&6
10003 # Is the header present?
10004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10006 cat >conftest.
$ac_ext <<_ACEOF
10007 #line $LINENO "configure"
10010 cat confdefs.h
>>conftest.
$ac_ext
10011 cat >>conftest.
$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <$ac_header>
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1
>conftest.err
10020 cat conftest.err
>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev
/null
; then
10023 if test -s conftest.err
; then
10024 ac_cpp_err
=$ac_c_preproc_warn_flag
10031 if test -z "$ac_cpp_err"; then
10032 ac_header_preproc
=yes
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 ac_header_preproc
=no
10039 rm -f conftest.err conftest.
$ac_ext
10040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6
10043 # So? What about this header?
10044 case $ac_header_compiler:$ac_header_preproc in
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10052 ## ------------------------------------ ##
10053 ## Report this to bug-autoconf@gnu.org. ##
10054 ## ------------------------------------ ##
10057 sed "s/^/$as_me: WARNING: /" >&2
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10068 ## ------------------------------------ ##
10069 ## Report this to bug-autoconf@gnu.org. ##
10070 ## ------------------------------------ ##
10073 sed "s/^/$as_me: WARNING: /" >&2
10076 echo "$as_me:$LINENO: checking for $ac_header" >&5
10077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 eval "$as_ac_Header=$ac_header_preproc"
10083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10088 cat >>confdefs.h
<<_ACEOF
10089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10097 echo "$as_me:$LINENO: checking for int8_t" >&5
10098 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
10099 if test "${ac_cv_type_int8_t+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 cat >conftest.
$ac_ext <<_ACEOF
10103 #line $LINENO "configure"
10106 cat confdefs.h
>>conftest.
$ac_ext
10107 cat >>conftest.
$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 $ac_includes_default
10115 if (sizeof (int8_t))
10121 rm -f conftest.
$ac_objext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try
='test -s conftest.$ac_objext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_type_int8_t
=yes
10135 echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.
$ac_ext >&5
10138 ac_cv_type_int8_t
=no
10140 rm -f conftest.
$ac_objext conftest.
$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
10143 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
10144 if test $ac_cv_type_int8_t = yes; then
10148 cat >>confdefs.h
<<\_ACEOF
10149 #define int8_t signed char
10154 echo "$as_me:$LINENO: checking for u_int8_t" >&5
10155 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
10156 if test "${ac_cv_type_u_int8_t+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.
$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10163 cat confdefs.h
>>conftest.
$ac_ext
10164 cat >>conftest.
$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #ifdef HAVE_SYS_BITYPES_H
10168 #include <sys/bitypes.h>
10174 if ((u_int8_t *) 0)
10176 if (sizeof (u_int8_t))
10182 rm -f conftest.
$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184 (eval $ac_compile) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try
='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_type_u_int8_t
=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10199 ac_cv_type_u_int8_t
=no
10201 rm -f conftest.
$ac_objext conftest.
$ac_ext
10203 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
10204 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
10205 if test $ac_cv_type_u_int8_t = yes; then
10209 cat >>confdefs.h
<<\_ACEOF
10210 #define u_int8_t unsigned char
10215 echo "$as_me:$LINENO: checking for int16_t" >&5
10216 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
10217 if test "${ac_cv_type_int16_t+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 cat >conftest.
$ac_ext <<_ACEOF
10221 #line $LINENO "configure"
10224 cat confdefs.h
>>conftest.
$ac_ext
10225 cat >>conftest.
$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10233 if (sizeof (int16_t))
10239 rm -f conftest.
$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try
='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_type_int16_t
=yes
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.
$ac_ext >&5
10256 ac_cv_type_int16_t
=no
10258 rm -f conftest.
$ac_objext conftest.
$ac_ext
10260 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
10261 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
10262 if test $ac_cv_type_int16_t = yes; then
10266 cat >>confdefs.h
<<\_ACEOF
10267 #define int16_t short
10272 echo "$as_me:$LINENO: checking for u_int16_t" >&5
10273 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
10274 if test "${ac_cv_type_u_int16_t+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 cat >conftest.
$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10281 cat confdefs.h
>>conftest.
$ac_ext
10282 cat >>conftest.
$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 $ac_includes_default
10285 #ifdef HAVE_SYS_BITYPES_H
10286 #include <sys/bitypes.h>
10292 if ((u_int16_t *) 0)
10294 if (sizeof (u_int16_t))
10300 rm -f conftest.
$ac_objext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try
='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_type_u_int16_t
=yes
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.
$ac_ext >&5
10317 ac_cv_type_u_int16_t
=no
10319 rm -f conftest.
$ac_objext conftest.
$ac_ext
10321 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
10322 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
10323 if test $ac_cv_type_u_int16_t = yes; then
10327 cat >>confdefs.h
<<\_ACEOF
10328 #define u_int16_t unsigned short
10333 echo "$as_me:$LINENO: checking for int32_t" >&5
10334 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
10335 if test "${ac_cv_type_int32_t+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 cat >conftest.
$ac_ext <<_ACEOF
10339 #line $LINENO "configure"
10342 cat confdefs.h
>>conftest.
$ac_ext
10343 cat >>conftest.
$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 $ac_includes_default
10351 if (sizeof (int32_t))
10357 rm -f conftest.
$ac_objext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try
='test -s conftest.$ac_objext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_type_int32_t
=yes
10371 echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.
$ac_ext >&5
10374 ac_cv_type_int32_t
=no
10376 rm -f conftest.
$ac_objext conftest.
$ac_ext
10378 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10379 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
10380 if test $ac_cv_type_int32_t = yes; then
10384 cat >>confdefs.h
<<\_ACEOF
10385 #define int32_t int
10390 echo "$as_me:$LINENO: checking for u_int32_t" >&5
10391 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
10392 if test "${ac_cv_type_u_int32_t+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 cat >conftest.
$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10399 cat confdefs.h
>>conftest.
$ac_ext
10400 cat >>conftest.
$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 $ac_includes_default
10403 #ifdef HAVE_SYS_BITYPES_H
10404 #include <sys/bitypes.h>
10410 if ((u_int32_t *) 0)
10412 if (sizeof (u_int32_t))
10418 rm -f conftest.
$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try
='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_type_u_int32_t
=yes
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.
$ac_ext >&5
10435 ac_cv_type_u_int32_t
=no
10437 rm -f conftest.
$ac_objext conftest.
$ac_ext
10439 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
10440 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
10441 if test $ac_cv_type_u_int32_t = yes; then
10445 cat >>confdefs.h
<<\_ACEOF
10446 #define u_int32_t unsigned int
10451 echo "$as_me:$LINENO: checking for int64_t" >&5
10452 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
10453 if test "${ac_cv_type_int64_t+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 cat >conftest.
$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10460 cat confdefs.h
>>conftest.
$ac_ext
10461 cat >>conftest.
$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10469 if (sizeof (int64_t))
10475 rm -f conftest.
$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try
='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_type_int64_t
=yes
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.
$ac_ext >&5
10492 ac_cv_type_int64_t
=no
10494 rm -f conftest.
$ac_objext conftest.
$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10497 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
10498 if test $ac_cv_type_int64_t = yes; then
10502 cat >>confdefs.h
<<\_ACEOF
10503 #define int64_t long long
10508 echo "$as_me:$LINENO: checking for u_int64_t" >&5
10509 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
10510 if test "${ac_cv_type_u_int64_t+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 cat >conftest.
$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10517 cat confdefs.h
>>conftest.
$ac_ext
10518 cat >>conftest.
$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 $ac_includes_default
10521 #ifdef HAVE_SYS_BITYPES_H
10522 #include <sys/bitypes.h>
10528 if ((u_int64_t *) 0)
10530 if (sizeof (u_int64_t))
10536 rm -f conftest.
$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try
='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_type_u_int64_t
=yes
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.
$ac_ext >&5
10553 ac_cv_type_u_int64_t
=no
10555 rm -f conftest.
$ac_objext conftest.
$ac_ext
10557 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
10558 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
10559 if test $ac_cv_type_u_int64_t = yes; then
10563 cat >>confdefs.h
<<\_ACEOF
10564 #define u_int64_t unsigned long long
10571 # We can't just check for <inttypes.h> - some systems have one that
10572 # doesn't define all the PRI[doxu]64 macros.
10575 for ac_header
in inttypes.h
10577 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10579 echo "$as_me:$LINENO: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10587 # Is the header compilable?
10588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10590 cat >conftest.
$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10594 cat confdefs.h
>>conftest.
$ac_ext
10595 cat >>conftest.
$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 #include <$ac_header>
10600 rm -f conftest.
$ac_objext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602 (eval $ac_compile) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try
='test -s conftest.$ac_objext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_header_compiler
=yes
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.
$ac_ext >&5
10617 ac_header_compiler
=no
10619 rm -f conftest.
$ac_objext conftest.
$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6
10623 # Is the header present?
10624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10626 cat >conftest.
$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10630 cat confdefs.h
>>conftest.
$ac_ext
10631 cat >>conftest.
$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 #include <$ac_header>
10635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10636 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10638 grep -v '^ *+' conftest.er1
>conftest.err
10640 cat conftest.err
>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } >/dev
/null
; then
10643 if test -s conftest.err
; then
10644 ac_cpp_err
=$ac_c_preproc_warn_flag
10651 if test -z "$ac_cpp_err"; then
10652 ac_header_preproc
=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.
$ac_ext >&5
10657 ac_header_preproc
=no
10659 rm -f conftest.err conftest.
$ac_ext
10660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10661 echo "${ECHO_T}$ac_header_preproc" >&6
10663 # So? What about this header?
10664 case $ac_header_compiler:$ac_header_preproc in
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10672 ## ------------------------------------ ##
10673 ## Report this to bug-autoconf@gnu.org. ##
10674 ## ------------------------------------ ##
10677 sed "s/^/$as_me: WARNING: /" >&2
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10688 ## ------------------------------------ ##
10689 ## Report this to bug-autoconf@gnu.org. ##
10690 ## ------------------------------------ ##
10693 sed "s/^/$as_me: WARNING: /" >&2
10696 echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 eval "$as_ac_Header=$ac_header_preproc"
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10708 cat >>confdefs.h
<<_ACEOF
10709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10713 # OK, we have inttypes.h, but does it define those macros?
10715 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10716 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10717 cat >conftest.
$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10722 cat confdefs.h
>>conftest.
$ac_ext
10723 cat >>conftest.
$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10726 #include <inttypes.h>
10728 #include <sys/types.h>
10729 #ifdef HAVE_SYS_BITYPES_H
10730 #include <sys/bitypes.h>
10735 printf("%" PRId64 "\n", (u_int64_t)1);
10736 printf("%" PRIo64 "\n", (u_int64_t)1);
10737 printf("%" PRIx64 "\n", (u_int64_t)1);
10738 printf("%" PRIu64 "\n", (u_int64_t)1);
10743 rm -f conftest.
$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745 (eval $ac_compile) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); } &&
10749 { ac_try
='test -s conftest.$ac_objext'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; }; then
10756 echo "$as_me:$LINENO: result: yes" >&5
10757 echo "${ECHO_T}yes" >&6
10758 ac_lbl_inttypes_h_defines_formats
=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.
$ac_ext >&5
10765 echo "$as_me:$LINENO: result: no" >&5
10766 echo "${ECHO_T}no" >&6
10767 ac_lbl_inttypes_h_defines_formats
=no
10770 rm -f conftest.
$ac_objext conftest.
$ac_ext
10775 # We don't have inttypes.h, so it obviously can't define those
10778 ac_lbl_inttypes_h_defines_formats
=no
10784 if test "$ac_lbl_inttypes_h_defines_formats" = no
; then
10786 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
10787 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
10788 if test "$cross_compiling" = yes; then
10789 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10790 See \`config.log' for more details." >&5
10791 echo "$as_me: error: cannot run test program while cross compiling
10792 See \`config.log' for more details." >&2;}
10793 { (exit 1); exit 1; }; }
10795 cat >conftest.
$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10800 cat confdefs.h
>>conftest.
$ac_ext
10801 cat >>conftest.
$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10804 # ifdef HAVE_INTTYPES_H
10805 #include <inttypes.h>
10807 # ifdef HAVE_SYS_BITYPES_H
10808 #include <sys/bitypes.h>
10811 #include <sys/types.h>
10817 sprintf(strbuf, "%016lx", t << 32);
10818 if (strcmp(strbuf, "0000000100000000") == 0)
10826 rm -f conftest
$ac_exeext
10827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10828 (eval $ac_link) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10838 cat >>confdefs.h
<<\_ACEOF
10839 #define PRId64 "ld"
10842 cat >>confdefs.h
<<\_ACEOF
10843 #define PRIo64 "lo"
10846 cat >>confdefs.h
<<\_ACEOF
10847 #define PRIx64 "lx"
10850 cat >>confdefs.h
<<\_ACEOF
10851 #define PRIu64 "lu"
10854 echo "$as_me:$LINENO: result: yes" >&5
10855 echo "${ECHO_T}yes" >&6
10858 echo "$as_me: program exited with status $ac_status" >&5
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.
$ac_ext >&5
10862 ( exit $ac_status )
10864 echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10868 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10869 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10870 if test "$cross_compiling" = yes; then
10871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10872 See \`config.log' for more details." >&5
10873 echo "$as_me: error: cannot run test program while cross compiling
10874 See \`config.log' for more details." >&2;}
10875 { (exit 1); exit 1; }; }
10877 cat >conftest.
$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10882 cat confdefs.h
>>conftest.
$ac_ext
10883 cat >>conftest.
$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10886 # ifdef HAVE_INTTYPES_H
10887 #include <inttypes.h>
10889 # ifdef HAVE_SYS_BITYPES_H
10890 #include <sys/bitypes.h>
10893 #include <sys/types.h>
10899 sprintf(strbuf, "%016llx", t << 32);
10900 if (strcmp(strbuf, "0000000100000000") == 0)
10908 rm -f conftest
$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10920 cat >>confdefs.h
<<\_ACEOF
10921 #define PRId64 "lld"
10924 cat >>confdefs.h
<<\_ACEOF
10925 #define PRIo64 "llo"
10928 cat >>confdefs.h
<<\_ACEOF
10929 #define PRIx64 "llx"
10932 cat >>confdefs.h
<<\_ACEOF
10933 #define PRIu64 "llu"
10936 echo "$as_me:$LINENO: result: yes" >&5
10937 echo "${ECHO_T}yes" >&6
10940 echo "$as_me: program exited with status $ac_status" >&5
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.
$ac_ext >&5
10944 ( exit $ac_status )
10946 echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10950 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10951 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10952 if test "$cross_compiling" = yes; then
10953 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10954 See \`config.log' for more details." >&5
10955 echo "$as_me: error: cannot run test program while cross compiling
10956 See \`config.log' for more details." >&2;}
10957 { (exit 1); exit 1; }; }
10959 cat >conftest.
$ac_ext <<_ACEOF
10961 #line $LINENO "configure"
10964 cat confdefs.h
>>conftest.
$ac_ext
10965 cat >>conftest.
$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 # ifdef HAVE_INTTYPES_H
10969 #include <inttypes.h>
10971 # ifdef HAVE_SYS_BITYPES_H
10972 #include <sys/bitypes.h>
10975 #include <sys/types.h>
10981 sprintf(strbuf, "%016Lx", t << 32);
10982 if (strcmp(strbuf, "0000000100000000") == 0)
10990 rm -f conftest
$ac_exeext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10992 (eval $ac_link) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }; then
11002 cat >>confdefs.h
<<\_ACEOF
11003 #define PRId64 "Ld"
11006 cat >>confdefs.h
<<\_ACEOF
11007 #define PRIo64 "Lo"
11010 cat >>confdefs.h
<<\_ACEOF
11011 #define PRIx64 "Lx"
11014 cat >>confdefs.h
<<\_ACEOF
11015 #define PRIu64 "Lu"
11018 echo "$as_me:$LINENO: result: yes" >&5
11019 echo "${ECHO_T}yes" >&6
11022 echo "$as_me: program exited with status $ac_status" >&5
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.
$ac_ext >&5
11026 ( exit $ac_status )
11028 echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6
11032 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
11033 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
11034 if test "$cross_compiling" = yes; then
11035 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11036 See \`config.log' for more details." >&5
11037 echo "$as_me: error: cannot run test program while cross compiling
11038 See \`config.log' for more details." >&2;}
11039 { (exit 1); exit 1; }; }
11041 cat >conftest.
$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 # ifdef HAVE_INTTYPES_H
11051 #include <inttypes.h>
11053 # ifdef HAVE_SYS_BITYPES_H
11054 #include <sys/bitypes.h>
11057 #include <sys/types.h>
11063 sprintf(strbuf, "%016qx", t << 32);
11064 if (strcmp(strbuf, "0000000100000000") == 0)
11072 rm -f conftest
$ac_exeext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11084 cat >>confdefs.h
<<\_ACEOF
11085 #define PRId64 "qd"
11088 cat >>confdefs.h
<<\_ACEOF
11089 #define PRIo64 "qo"
11092 cat >>confdefs.h
<<\_ACEOF
11093 #define PRIx64 "qx"
11096 cat >>confdefs.h
<<\_ACEOF
11097 #define PRIu64 "qu"
11100 echo "$as_me:$LINENO: result: yes" >&5
11101 echo "${ECHO_T}yes" >&6
11104 echo "$as_me: program exited with status $ac_status" >&5
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.
$ac_ext >&5
11108 ( exit $ac_status )
11110 echo "$as_me:$LINENO: result: no" >&5
11111 echo "${ECHO_T}no" >&6
11113 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
11114 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
11115 { (exit 1); exit 1; }; }
11119 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11125 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11131 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11137 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11143 if test "${LBL_CFLAGS+set}" = set; then
11144 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
11146 if test -f .devel
; then
11147 if test "$GCC" = yes ; then
11148 if test "${LBL_CFLAGS+set}" != set; then
11149 if test "$ac_cv_prog_cc_g" = yes ; then
11150 V_CCOPT
="-g $V_CCOPT"
11152 V_CCOPT
="$V_CCOPT -Wall"
11153 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
11154 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
11161 V_CCOPT
="$V_CCOPT -n32"
11168 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
11169 name
="lbl/os-$os.h"
11170 if test -f $name ; then
11171 ln -s $name os-proto.h
11172 cat >>confdefs.h
<<\_ACEOF
11173 #define HAVE_OS_PROTO_H 1
11177 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
11178 echo "$as_me: WARNING: can't find $name" >&2;}
11182 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
11183 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
11184 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 cat >conftest.
$ac_ext <<_ACEOF
11188 #line $LINENO "configure"
11191 cat confdefs.h
>>conftest.
$ac_ext
11192 cat >>conftest.
$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11195 # include <sys/types.h>
11196 # include <sys/socket.h>
11200 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
11205 rm -f conftest.
$ac_objext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11207 (eval $ac_compile) 2>&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try
='test -s conftest.$ac_objext'
11212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; }; then
11217 ac_cv_lbl_sockaddr_has_sa_len
=yes
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.
$ac_ext >&5
11222 ac_cv_lbl_sockaddr_has_sa_len
=no
11224 rm -f conftest.
$ac_objext conftest.
$ac_ext
11227 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
11228 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
11229 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
11230 cat >>confdefs.h
<<\_ACEOF
11231 #define HAVE_SOCKADDR_SA_LEN 1
11236 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
11237 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
11238 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 case "$host_cpu" in
11244 # These are CPU types where:
11246 # the CPU faults on an unaligned access, but at least some
11247 # OSes that support that CPU catch the fault and simulate
11248 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
11249 # the simulation is slow, so we don't want to use it;
11251 # the CPU, I infer (from the old
11253 # XXX: should also check that they don't do weird things (like on arm)
11255 # comment) doesn't fault on unaligned accesses, but doesn't
11256 # do a normal unaligned fetch, either (e.g., presumably, ARM);
11258 # for whatever reason, the test program doesn't work
11259 # (this has been claimed to be the case for several of those
11260 # CPUs - I don't know what the problem is; the problem
11261 # was reported as "the test program dumps core" for SuperH,
11262 # but that's what the test program is *supposed* to do -
11263 # it dumps core before it writes anything, so the test
11264 # for an empty output file should find an empty output
11265 # file and conclude that unaligned accesses don't work).
11267 # This run-time test won't work if you're cross-compiling, so
11268 # in order to support cross-compiling for a particular CPU,
11269 # we have to wire in the list of CPU types anyway, as far as
11270 # I know, so perhaps we should just have a set of CPUs on
11271 # which we know it doesn't work, a set of CPUs on which we
11272 # know it does work, and have the script just fail on other
11273 # cpu types and update it when such a failure occurs.
11275 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
11276 ac_cv_lbl_unaligned_fail
=yes
11280 cat >conftest.c
<<EOF
11281 # include <sys/types.h>
11282 # include <sys/wait.h>
11283 # include <stdio.h>
11284 unsigned char a[5] = { 1, 2, 3, 4, 5 };
11289 /* avoid "core dumped" message */
11295 pid = waitpid(pid, &status, 0);
11298 exit(!WIFEXITED(status));
11301 i = *(unsigned int *)&a[1];
11306 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
11307 conftest.c
$LIBS >/dev
/null
2>&1
11308 if test ! -x conftest
; then
11309 ac_cv_lbl_unaligned_fail
=yes
11311 .
/conftest
>conftest.out
11312 if test ! -s conftest.out
; then
11313 ac_cv_lbl_unaligned_fail
=yes
11315 ac_cv_lbl_unaligned_fail
=no
11318 rm -f conftest
* core core.conftest
11323 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11324 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11325 if test $ac_cv_lbl_unaligned_fail = yes ; then
11326 cat >>confdefs.h
<<\_ACEOF
11327 #define LBL_ALIGN 1
11333 echo "$as_me:$LINENO: checking for h_errno" >&5
11334 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11335 if test "${ac_cv_var_h_errno+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 cat >conftest.
$ac_ext <<_ACEOF
11339 #line $LINENO "configure"
11342 cat confdefs.h
>>conftest.
$ac_ext
11343 cat >>conftest.
$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11346 # include <sys/types.h>
11347 # include <netdb.h>
11356 rm -f conftest.
$ac_objext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try
='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_cv_var_h_errno
=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.
$ac_ext >&5
11373 ac_cv_var_h_errno
=no
11375 rm -f conftest.
$ac_objext conftest.
$ac_ext
11378 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11379 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11380 if test "$ac_cv_var_h_errno" = "yes"; then
11381 cat >>confdefs.h
<<\_ACEOF
11382 #define HAVE_H_ERRNO 1
11389 # Check whether --with-crypto or --without-crypto was given.
11390 if test "${with_crypto+set}" = set; then
11391 withval
="$with_crypto"
11395 echo "$as_me:$LINENO: checking for SSLeay" >&5
11396 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11397 ac_cv_ssleay_path
=no
11400 Xprefix
=`eval echo $prefix`
11402 for dir
in $Xprefix /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
11404 # XXX - is there a better way to check if a given library is
11405 # in a given directory than checking each of the possible
11406 # shared library suffixes?
11408 # Are there any other suffixes we need to look for? Do we have to
11409 # worry about ".so.{version}"?
11411 # Or should we just look for "libcrypto.*"?
11413 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
11414 -f $dir/lib
/libcrypto.so
-o \
11415 -f $dir/lib
/libcrypto.sl
-o \
11416 -f $dir/lib
/libcrypto.dylib \
); then
11417 ac_cv_ssleay_path
=$dir
11419 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
11420 incdir
="-I$dir/include"
11422 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11425 ac_cv_ssleay_path
=no
11429 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11430 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11431 if test "$ac_cv_ssleay_path" != no
; then
11432 V_INCLS
="$V_INCLS $incdir"
11433 LDFLAGS
="-L$dir/lib $LDFLAGS"
11434 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
11435 LIBS
="$LIBS -lRSAglue"
11437 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
11438 LIBS
="$LIBS -lrsaref"
11441 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11442 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11443 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 ac_check_lib_save_LIBS
=$LIBS
11447 LIBS
="-lcrypto $LIBS"
11448 cat >conftest.
$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11452 cat confdefs.h
>>conftest.
$ac_ext
11453 cat >>conftest.
$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11456 /* Override any gcc2 internal prototype to avoid an error. */
11460 /* We use char because int might match the return type of a gcc2
11461 builtin and then its argument prototype would still apply. */
11462 char DES_cbc_encrypt ();
11466 DES_cbc_encrypt ();
11471 rm -f conftest.
$ac_objext conftest
$ac_exeext
11472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11473 (eval $ac_link) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try
='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_lib_crypto_DES_cbc_encrypt
=yes
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.
$ac_ext >&5
11488 ac_cv_lib_crypto_DES_cbc_encrypt
=no
11490 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11491 LIBS
=$ac_check_lib_save_LIBS
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11494 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11495 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11496 cat >>confdefs.h
<<_ACEOF
11497 #define HAVE_LIBCRYPTO 1
11500 LIBS
="-lcrypto $LIBS"
11505 CPPFLAGS
="$CPPFLAGS $V_INCLS"
11507 for ac_header
in openssl
/evp.h
11509 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11511 echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11519 # Is the header compilable?
11520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11522 cat >conftest.
$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11526 cat confdefs.h
>>conftest.
$ac_ext
11527 cat >>conftest.
$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #include <$ac_header>
11532 rm -f conftest.
$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
11538 { ac_try
='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_header_compiler
=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.
$ac_ext >&5
11549 ac_header_compiler
=no
11551 rm -f conftest.
$ac_objext conftest.
$ac_ext
11552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11553 echo "${ECHO_T}$ac_header_compiler" >&6
11555 # Is the header present?
11556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11558 cat >conftest.
$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11562 cat confdefs.h
>>conftest.
$ac_ext
11563 cat >>conftest.
$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <$ac_header>
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1
>conftest.err
11572 cat conftest.err
>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev
/null
; then
11575 if test -s conftest.err
; then
11576 ac_cpp_err
=$ac_c_preproc_warn_flag
11583 if test -z "$ac_cpp_err"; then
11584 ac_header_preproc
=yes
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.
$ac_ext >&5
11589 ac_header_preproc
=no
11591 rm -f conftest.err conftest.
$ac_ext
11592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11593 echo "${ECHO_T}$ac_header_preproc" >&6
11595 # So? What about this header?
11596 case $ac_header_compiler:$ac_header_preproc in
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11604 ## ------------------------------------ ##
11605 ## Report this to bug-autoconf@gnu.org. ##
11606 ## ------------------------------------ ##
11609 sed "s/^/$as_me: WARNING: /" >&2
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11620 ## ------------------------------------ ##
11621 ## Report this to bug-autoconf@gnu.org. ##
11622 ## ------------------------------------ ##
11625 sed "s/^/$as_me: WARNING: /" >&2
11628 echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 eval "$as_ac_Header=$ac_header_preproc"
11635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h
<<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11652 if test "$missing_includes" = "yes"; then
11653 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
11654 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
11664 # Find a good install program. We prefer a C program (faster),
11665 # so one script is as good as another. But avoid the broken or
11666 # incompatible versions:
11667 # SysV /etc/install, /usr/sbin/install
11668 # SunOS /usr/etc/install
11669 # IRIX /sbin/install
11671 # AmigaOS /C/install, which installs bootblocks on floppy discs
11672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11675 # ./install, which can be erroneously created by make from ./install.sh.
11676 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11677 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11678 if test -z "$INSTALL"; then
11679 if test "${ac_cv_path_install+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11683 for as_dir
in $PATH
11686 test -z "$as_dir" && as_dir
=.
11687 # Account for people who put trailing slashes in PATH elements.
11689 .
/ | .
// |
/cC
/* | \
11690 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
11693 # OSF1 and SCO ODT 3.0 have their own names for install.
11694 # Don't use installbsd from OSF since it installs stuff as root
11696 for ac_prog
in ginstall scoinst
install; do
11697 for ac_exec_ext
in '' $ac_executable_extensions; do
11698 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11699 if test $ac_prog = install &&
11700 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11701 # AIX install. It has an incompatible calling convention.
11703 elif test $ac_prog = install &&
11704 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
11705 # program-specific install script used by HP pwplus--don't use.
11708 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
11720 if test "${ac_cv_path_install+set}" = set; then
11721 INSTALL
=$ac_cv_path_install
11723 # As a last resort, use the slow shell script. We don't cache a
11724 # path for INSTALL within a source directory, because that will
11725 # break other packages using the cache if that directory is
11726 # removed, or if the path is relative.
11727 INSTALL
=$ac_install_sh
11730 echo "$as_me:$LINENO: result: $INSTALL" >&5
11731 echo "${ECHO_T}$INSTALL" >&6
11733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11734 # It thinks the first close brace ends the variable substitution.
11735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
11737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
11739 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
11742 ac_config_headers
="$ac_config_headers config.h"
11745 ac_config_commands
="$ac_config_commands default-1"
11747 ac_config_files
="$ac_config_files Makefile"
11748 cat >confcache
<<\_ACEOF
11749 # This file is a shell script that caches the results of configure
11750 # tests run on this system so they can be shared between configure
11751 # scripts and configure runs, see configure's option --config-cache.
11752 # It is not useful on other systems. If it contains results you don't
11753 # want to keep, you may remove or edit it.
11755 # config.status only pays attention to the cache file if you give it
11756 # the --recheck option to rerun configure.
11758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11760 # following values.
11764 # The following way of writing the cache mishandles newlines in values,
11765 # but we know of no workaround that is simple, portable, and efficient.
11766 # So, don't put newlines in cache variables' values.
11767 # Ultrix sh set writes to stderr and can't be redirected directly,
11768 # and sets the high bit in the cache file unless we assign to the vars.
11771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11773 # `set' does not quote correctly, so add quotes (double-quote
11774 # substitution turns \\\\ into \\, and sed turns \\ into \).
11777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11780 # `set' quotes correctly as required by POSIX, so do not add quotes.
11782 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11791 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11793 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11794 if test -w $cache_file; then
11795 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11796 cat confcache
>$cache_file
11798 echo "not updating unwritable cache $cache_file"
11803 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11804 # Let make expand exec_prefix.
11805 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11809 # trailing colons and then remove the whole line if VPATH becomes empty
11810 # (actually we leave an empty line to preserve line numbers).
11811 if test "x$srcdir" = x.
; then
11812 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11813 s/:*\$(srcdir):*/:/;
11814 s/:*\${srcdir}:*/:/;
11816 s/^\([^=]*=[ ]*\):*/\1/;
11822 DEFS
=-DHAVE_CONFIG_H
11826 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11827 # 1. Remove the extension, and $U if already installed.
11828 ac_i
=`echo "$ac_i" |
11829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11831 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11832 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11834 LIBOBJS
=$ac_libobjs
11836 LTLIBOBJS
=$ac_ltlibobjs
11840 : ${CONFIG_STATUS=./config.status}
11841 ac_clean_files_save
=$ac_clean_files
11842 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11843 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11844 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11845 cat >$CONFIG_STATUS <<_ACEOF
11847 # Generated by $as_me.
11848 # Run this file to recreate the current configuration.
11849 # Compiler output produced by configure, useful for debugging
11850 # configure, is in config.log if it exists.
11853 ac_cs_recheck=false
11855 SHELL=\${CONFIG_SHELL-$SHELL}
11858 cat >>$CONFIG_STATUS <<\_ACEOF
11859 ## --------------------- ##
11860 ## M4sh Initialization. ##
11861 ## --------------------- ##
11863 # Be Bourne compatible
11864 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11867 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11868 # is contrary to our usage. Disable this feature.
11869 alias -g '${1+"$@"}'='"$@"'
11870 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11874 # Support unset when possible.
11875 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11882 # Work around bugs in pre-3.0 UWIN ksh.
11883 $as_unset ENV MAIL MAILPATH
11890 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11891 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11892 LC_TELEPHONE LC_TIME
11894 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11895 eval $as_var=C
; export $as_var
11901 # Required to use basename.
11902 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11908 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11909 as_basename
=basename
11915 # Name of the executable.
11916 as_me
=`$as_basename "$0" ||
11917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11918 X"$0" : 'X\(//\)$' \| \
11919 X"$0" : 'X\(/\)$' \| \
11920 . : '\(.\)' 2>/dev/null ||
11922 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11923 /^X\/\(\/\/\)$/{ s//\1/; q; }
11924 /^X\/\(\/\).*/{ s//\1/; q; }
11928 # PATH needs CR, and LINENO needs CR and PATH.
11929 # Avoid depending upon Character Ranges.
11930 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11931 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11932 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11933 as_cr_digits
='0123456789'
11934 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11936 # The user is always right.
11937 if test "${PATH_SEPARATOR+set}" != set; then
11938 echo "#! /bin/sh" >conf$$.sh
11939 echo "exit 0" >>conf$$.sh
11941 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11950 as_lineno_1
=$LINENO
11951 as_lineno_2
=$LINENO
11952 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11953 test "x$as_lineno_1" != "x$as_lineno_2" &&
11954 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11955 # Find who we are. Look in the path if we contain no path at all
11958 *[\\/]* ) as_myself
=$0 ;;
11959 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11960 for as_dir
in $PATH
11963 test -z "$as_dir" && as_dir
=.
11964 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11969 # We did not find ourselves, most probably we were run as `sh COMMAND'
11970 # in which case we are not to be found in the path.
11971 if test "x$as_myself" = x
; then
11974 if test ! -f "$as_myself"; then
11975 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11976 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11977 { (exit 1); exit 1; }; }
11979 case $CONFIG_SHELL in
11981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11982 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11985 test -z "$as_dir" && as_dir
=.
11986 for as_base
in sh bash ksh sh5
; do
11989 if ("$as_dir/$as_base" -c '
11990 as_lineno_1=$LINENO
11991 as_lineno_2=$LINENO
11992 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11993 test "x$as_lineno_1" != "x$as_lineno_2" &&
11994 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11995 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11996 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11997 CONFIG_SHELL
=$as_dir/$as_base
11998 export CONFIG_SHELL
11999 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12007 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12008 # uniformly replaced by the line number. The first 'sed' inserts a
12009 # line-number line before each line; the second 'sed' does the real
12010 # work. The second script uses 'N' to pair each line-number line
12011 # with the numbered line, and appends trailing '-' during
12012 # substitution so that $LINENO is not a special case at line end.
12013 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12014 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12015 sed '=' <$as_myself |
12020 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12023 s,^['$as_cr_digits']*\n,,
12024 ' >$as_me.lineno
&&
12025 chmod +x
$as_me.lineno ||
12026 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12027 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12028 { (exit 1); exit 1; }; }
12030 # Don't try to exec as it changes $[0], causing all sort of problems
12031 # (the dirname of $[0] is not the place where we might find the
12032 # original and so on. Autoconf is especially sensible to this).
12034 # Exit status is that of the last command.
12039 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12040 *c
*,-n*) ECHO_N
= ECHO_C
='
12042 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12043 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12046 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12052 rm -f conf$$ conf$$.exe conf$$.
file
12054 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12055 # We could just check for DJGPP; but this test a) works b) is more generic
12056 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12057 if test -f conf$$.exe
; then
12058 # Don't use ln at all; we don't have any links
12063 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12068 rm -f conf$$ conf$$.exe conf$$.
file
12070 if mkdir
-p .
2>/dev
/null
; then
12076 as_executable_p
="test -f"
12078 # Sed expression to map a string onto a valid CPP name.
12079 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12081 # Sed expression to map a string onto a valid variable name.
12082 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12086 # We need space, tab and new line, in precisely that order.
12096 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12097 # report actual input values of CONFIG_FILES etc. instead of their
12098 # values after options handling. Logging --version etc. is OK.
12102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12103 ## Running $as_me. ##
12108 This file was extended by $as_me, which was
12109 generated by GNU Autoconf 2.57. Invocation command line was
12111 CONFIG_FILES = $CONFIG_FILES
12112 CONFIG_HEADERS = $CONFIG_HEADERS
12113 CONFIG_LINKS = $CONFIG_LINKS
12114 CONFIG_COMMANDS = $CONFIG_COMMANDS
12118 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12122 # Files that config.status was made for.
12123 if test -n "$ac_config_files"; then
12124 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12127 if test -n "$ac_config_headers"; then
12128 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12131 if test -n "$ac_config_links"; then
12132 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12135 if test -n "$ac_config_commands"; then
12136 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12139 cat >>$CONFIG_STATUS <<\_ACEOF
12142 \`$as_me' instantiates files from templates according to the
12143 current configuration.
12145 Usage: $0 [OPTIONS] [FILE]...
12147 -h, --help print this help, then exit
12148 -V, --version print version number, then exit
12149 -q, --quiet do not print progress messages
12150 -d, --debug don't remove temporary files
12151 --recheck update $as_me by reconfiguring in the same conditions
12152 --file=FILE[:TEMPLATE]
12153 instantiate the configuration file FILE
12154 --header=FILE[:TEMPLATE]
12155 instantiate the configuration header FILE
12157 Configuration files:
12160 Configuration headers:
12163 Configuration commands:
12166 Report bugs to <bug-autoconf@gnu.org>."
12169 cat >>$CONFIG_STATUS <<_ACEOF
12172 configured by $0, generated by GNU Autoconf 2.57,
12173 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12175 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12176 Free Software Foundation, Inc.
12177 This config.status script is free software; the Free Software Foundation
12178 gives unlimited permission to copy, distribute and modify it."
12183 cat >>$CONFIG_STATUS <<\_ACEOF
12184 # If no file are specified by the user, then we need to provide default
12185 # value. By we need to know if files were specified by the user.
12191 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12192 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12200 *) # This is not an option, so the user has probably given explicit
12203 ac_need_defaults
=false
;;
12207 # Handling of the options.
12209 cat >>$CONFIG_STATUS <<\_ACEOF
12210 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12212 --version |
--vers* |
-V )
12213 echo "$ac_cs_version"; exit 0 ;;
12215 # Conflict between --help and --header
12216 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12217 Try \`$0 --help' for more information." >&5
12218 echo "$as_me: error: ambiguous option: $1
12219 Try \`$0 --help' for more information." >&2;}
12220 { (exit 1); exit 1; }; };;
12221 --help |
--hel |
-h )
12222 echo "$ac_cs_usage"; exit 0 ;;
12223 --debug |
--d* |
-d )
12225 --file |
--fil |
--fi |
--f )
12227 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12228 ac_need_defaults
=false
;;
12229 --header |
--heade |
--head |
--hea )
12231 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12232 ac_need_defaults
=false
;;
12233 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12234 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12237 # This is an error.
12238 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12239 Try \`$0 --help' for more information." >&5
12240 echo "$as_me: error: unrecognized option: $1
12241 Try \`$0 --help' for more information." >&2;}
12242 { (exit 1); exit 1; }; } ;;
12244 *) ac_config_targets
="$ac_config_targets $1" ;;
12250 ac_configure_extra_args
=
12252 if $ac_cs_silent; then
12254 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12258 cat >>$CONFIG_STATUS <<_ACEOF
12259 if \$ac_cs_recheck; then
12260 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12261 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12266 cat >>$CONFIG_STATUS <<_ACEOF
12268 # INIT-COMMANDS section.
12277 cat >>$CONFIG_STATUS <<\_ACEOF
12278 for ac_config_target
in $ac_config_targets
12280 case "$ac_config_target" in
12281 # Handling of arguments.
12282 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12283 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12284 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
12285 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12286 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12287 { (exit 1); exit 1; }; };;
12291 # If the user did not use the arguments to specify the items to instantiate,
12292 # then the envvar interface is used. Set only those that are not.
12293 # We use the long form for the default assignment because of an extremely
12294 # bizarre bug on SunOS 4.1.3.
12295 if $ac_need_defaults; then
12296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12301 # Have a temporary directory for convenience. Make it in the build tree
12302 # simply because there is no reason to put it here, and in addition,
12303 # creating and moving files from /tmp can sometimes cause problems.
12304 # Create a temporary directory, and hook for its removal unless debugging.
12307 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12308 trap '{ (exit 1); exit 1; }' 1 2 13 15
12311 # Create a (secure) tmp directory for tmp files.
12314 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12315 test -n "$tmp" && test -d "$tmp"
12318 tmp
=.
/confstat$$
-$RANDOM
12319 (umask 077 && mkdir
$tmp)
12322 echo "$me: cannot create a temporary directory in ." >&2
12323 { (exit 1); exit 1; }
12328 cat >>$CONFIG_STATUS <<_ACEOF
12331 # CONFIG_FILES section.
12334 # No need to generate the scripts if there are no CONFIG_FILES.
12335 # This happens for instance when ./config.status config.h
12336 if test -n "\$CONFIG_FILES"; then
12337 # Protect against being on the right side of a sed subst in config.status.
12338 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12339 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12340 s,@SHELL@,$SHELL,;t t
12341 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12342 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12343 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12344 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12345 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12346 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12347 s,@exec_prefix@,$exec_prefix,;t t
12348 s,@prefix@,$prefix,;t t
12349 s,@program_transform_name@,$program_transform_name,;t t
12350 s,@bindir@,$bindir,;t t
12351 s,@sbindir@,$sbindir,;t t
12352 s,@libexecdir@,$libexecdir,;t t
12353 s,@datadir@,$datadir,;t t
12354 s,@sysconfdir@,$sysconfdir,;t t
12355 s,@sharedstatedir@,$sharedstatedir,;t t
12356 s,@localstatedir@,$localstatedir,;t t
12357 s,@libdir@,$libdir,;t t
12358 s,@includedir@,$includedir,;t t
12359 s,@oldincludedir@,$oldincludedir,;t t
12360 s,@infodir@,$infodir,;t t
12361 s,@mandir@,$mandir,;t t
12362 s,@build_alias@,$build_alias,;t t
12363 s,@host_alias@,$host_alias,;t t
12364 s,@target_alias@,$target_alias,;t t
12365 s,@DEFS@,$DEFS,;t t
12366 s,@ECHO_C@,$ECHO_C,;t t
12367 s,@ECHO_N@,$ECHO_N,;t t
12368 s,@ECHO_T@,$ECHO_T,;t t
12369 s,@LIBS@,$LIBS,;t t
12370 s,@build@,$build,;t t
12371 s,@build_cpu@,$build_cpu,;t t
12372 s,@build_vendor@,$build_vendor,;t t
12373 s,@build_os@,$build_os,;t t
12374 s,@host@,$host,;t t
12375 s,@host_cpu@,$host_cpu,;t t
12376 s,@host_vendor@,$host_vendor,;t t
12377 s,@host_os@,$host_os,;t t
12378 s,@SHLICC2@,$SHLICC2,;t t
12380 s,@CFLAGS@,$CFLAGS,;t t
12381 s,@LDFLAGS@,$LDFLAGS,;t t
12382 s,@CPPFLAGS@,$CPPFLAGS,;t t
12383 s,@ac_ct_CC@,$ac_ct_CC,;t t
12384 s,@EXEEXT@,$EXEEXT,;t t
12385 s,@OBJEXT@,$OBJEXT,;t t
12387 s,@EGREP@,$EGREP,;t t
12388 s,@LIBOBJS@,$LIBOBJS,;t t
12389 s,@V_CCOPT@,$V_CCOPT,;t t
12390 s,@V_DEFS@,$V_DEFS,;t t
12391 s,@V_GROUP@,$V_GROUP,;t t
12392 s,@V_INCLS@,$V_INCLS,;t t
12393 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12394 s,@LOCALSRC@,$LOCALSRC,;t t
12395 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12396 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12397 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12398 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12403 cat >>$CONFIG_STATUS <<\_ACEOF
12404 # Split the substitutions into bite-sized pieces for seds with
12405 # small command number limits, like on Digital OSF/1 and HP-UX.
12406 ac_max_sed_lines
=48
12407 ac_sed_frag
=1 # Number of current file.
12408 ac_beg
=1 # First line for current file.
12409 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12412 while $ac_more_lines; do
12413 if test $ac_beg -gt 1; then
12414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12416 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12418 if test ! -s $tmp/subs.frag
; then
12419 ac_more_lines
=false
12421 # The purpose of the label and of the branching condition is to
12422 # speed up the sed processing (if there are no `@' at all, there
12423 # is no need to browse any of the substitutions).
12424 # These are the two extra sed commands mentioned above.
12426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12427 if test -z "$ac_sed_cmds"; then
12428 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12430 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12432 ac_sed_frag
=`expr $ac_sed_frag + 1`
12434 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12437 if test -z "$ac_sed_cmds"; then
12440 fi # test -n "$CONFIG_FILES"
12443 cat >>$CONFIG_STATUS <<\_ACEOF
12444 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12447 - |
*:- |
*:-:* ) # input from stdin
12449 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12450 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12451 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12452 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12453 * ) ac_file_in
=$ac_file.
in ;;
12456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12457 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12459 X"$ac_file" : 'X\(//\)[^/]' \| \
12460 X"$ac_file" : 'X\(//\)$' \| \
12461 X"$ac_file" : 'X\(/\)' \| \
12462 . : '\(.\)' 2>/dev/null ||
12464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12466 /^X\(\/\/\)$/{ s//\1/; q; }
12467 /^X\(\/\).*/{ s//\1/; q; }
12469 { if $as_mkdir_p; then
12474 while test ! -d "$as_dir"; do
12475 as_dirs
="$as_dir $as_dirs"
12476 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12478 X"$as_dir" : 'X\(//\)[^/]' \| \
12479 X"$as_dir" : 'X\(//\)$' \| \
12480 X"$as_dir" : 'X\(/\)' \| \
12481 . : '\(.\)' 2>/dev/null ||
12483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12485 /^X\(\/\/\)$/{ s//\1/; q; }
12486 /^X\(\/\).*/{ s//\1/; q; }
12489 test ! -n "$as_dirs" || mkdir
$as_dirs
12490 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12492 { (exit 1); exit 1; }; }; }
12496 if test "$ac_dir" != .
; then
12497 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12498 # A "../" for each directory in $ac_dir_suffix.
12499 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12501 ac_dir_suffix
= ac_top_builddir
=
12505 .
) # No --srcdir option. We are building in place.
12507 if test -z "$ac_top_builddir"; then
12510 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12512 [\\/]* | ?
:[\\/]* ) # Absolute path.
12513 ac_srcdir
=$srcdir$ac_dir_suffix;
12514 ac_top_srcdir
=$srcdir ;;
12515 *) # Relative path.
12516 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12517 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12519 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12521 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12522 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12523 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12524 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12528 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12529 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
12532 if test x
"$ac_file" != x-
; then
12533 { echo "$as_me:$LINENO: creating $ac_file" >&5
12534 echo "$as_me: creating $ac_file" >&6;}
12537 # Let's still pretend it is `configure' which instantiates (i.e., don't
12538 # use $as_me), people would be surprised to read:
12539 # /* config.h. Generated by config.status. */
12540 if test x
"$ac_file" = x-
; then
12543 configure_input
="$ac_file. "
12545 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12546 sed 's,.*/,,'` by configure."
12548 # First look for the input files in the build tree, otherwise in the
12550 ac_file_inputs
=`IFS=:
12551 for f in $ac_file_in; do
12553 -) echo $tmp/stdin ;;
12555 # Absolute (can't be DOS-style, as IFS=:)
12556 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12557 echo "$as_me: error: cannot find input file: $f" >&2;}
12558 { (exit 1); exit 1; }; }
12561 if test -f "$f"; then
12564 elif test -f "$srcdir/$f"; then
12569 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12570 echo "$as_me: error: cannot find input file: $f" >&2;}
12571 { (exit 1); exit 1; }; }
12574 done` ||
{ (exit 1); exit 1; }
12576 cat >>$CONFIG_STATUS <<_ACEOF
12580 cat >>$CONFIG_STATUS <<\_ACEOF
12582 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12583 s
,@configure_input@
,$configure_input,;t t
12584 s
,@srcdir@
,$ac_srcdir,;t t
12585 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12586 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12587 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12588 s
,@builddir@
,$ac_builddir,;t t
12589 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12590 s
,@top_builddir@
,$ac_top_builddir,;t t
12591 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12592 s
,@INSTALL@
,$ac_INSTALL,;t t
12593 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12595 if test x"$ac_file" != x-; then
12596 mv $tmp/out $ac_file
12604 cat >>$CONFIG_STATUS <<\_ACEOF
12607 # CONFIG_HEADER section.
12610 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12611 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12613 # ac_d sets the value in "#define NAME VALUE" lines.
12614 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12615 ac_dB
='[ ].*$,\1#\2'
12618 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12619 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12620 ac_uB
='$,\1#\2define\3'
12624 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12627 - |
*:- |
*:-:* ) # input from stdin
12629 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12630 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12631 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12632 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12633 * ) ac_file_in
=$ac_file.
in ;;
12636 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12637 echo "$as_me: creating $ac_file" >&6;}
12639 # First look for the input files in the build tree, otherwise in the
12641 ac_file_inputs
=`IFS=:
12642 for f in $ac_file_in; do
12644 -) echo $tmp/stdin ;;
12646 # Absolute (can't be DOS-style, as IFS=:)
12647 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12648 echo "$as_me: error: cannot find input file: $f" >&2;}
12649 { (exit 1); exit 1; }; }
12652 if test -f "$f"; then
12655 elif test -f "$srcdir/$f"; then
12660 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12661 echo "$as_me: error: cannot find input file: $f" >&2;}
12662 { (exit 1); exit 1; }; }
12665 done` ||
{ (exit 1); exit 1; }
12666 # Remove the trailing spaces.
12667 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12671 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12672 # `conftest.undefs', that substitutes the proper values into
12673 # config.h.in to produce config.h. The first handles `#define'
12674 # templates, and the second `#undef' templates.
12675 # And first: Protect against being on the right side of a sed subst in
12676 # config.status. Protect against being in an unquoted here document
12677 # in config.status.
12678 rm -f conftest.defines conftest.undefs
12679 # Using a here document instead of a string reduces the quoting nightmare.
12680 # Putting comments in sed scripts is not portable.
12682 # `end' is used to avoid that the second main sed command (meant for
12683 # 0-ary CPP macros) applies to n-ary macro definitions.
12684 # See the Autoconf documentation for `clear'.
12685 cat >confdef2sed.
sed <<\_ACEOF
12690 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12692 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12695 # If some macros were called several times there might be several times
12696 # the same #defines, which is useless. Nevertheless, we may not want to
12697 # sort them, since we want the *last* AC-DEFINE to be honored.
12698 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12699 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12700 rm -f confdef2sed.sed
12702 # This sed command replaces #undef with comments. This is necessary, for
12703 # example, in the case of _POSIX_SOURCE, which is predefined and required
12704 # on some systems where configure will not decide to define it.
12705 cat >>conftest.undefs <<\_ACEOF
12706 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12709 # Break up conftest.defines because some shells have a limit on the size
12710 # of here documents, and old seds have small limits too (100 cmds).
12711 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12712 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12713 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12714 echo ' :' >>$CONFIG_STATUS
12715 rm -f conftest.tail
12716 while grep . conftest.defines >/dev/null
12718 # Write a limited-size here document to $tmp/defines.sed.
12719 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12720 # Speed up: don't consider the non `#define' lines.
12721 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12722 # Work around the forget-to-reset-the-flag bug.
12723 echo 't clr' >>$CONFIG_STATUS
12724 echo ': clr' >>$CONFIG_STATUS
12725 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12727 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12729 mv $tmp/out $tmp/in
12731 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12732 rm -f conftest.defines
12733 mv conftest.
tail conftest.defines
12735 rm -f conftest.defines
12736 echo ' fi # grep' >>$CONFIG_STATUS
12737 echo >>$CONFIG_STATUS
12739 # Break up conftest.undefs because some shells have a limit on the size
12740 # of here documents, and old seds have small limits too (100 cmds).
12741 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12742 rm -f conftest.
tail
12743 while grep . conftest.undefs
>/dev
/null
12745 # Write a limited-size here document to $tmp/undefs.sed.
12746 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12747 # Speed up: don't consider the non
`#undef'
12748 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12749 # Work around the forget-to-reset-the-flag bug.
12750 echo 't clr' >>$CONFIG_STATUS
12751 echo ': clr' >>$CONFIG_STATUS
12752 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12754 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12756 mv $tmp/out $tmp/in
12758 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12759 rm -f conftest.undefs
12760 mv conftest.tail conftest.undefs
12762 rm -f conftest.undefs
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12765 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12766 # use $as_me), people would be surprised to read:
12767 # /* config.h. Generated by config.status. */
12768 if test x
"$ac_file" = x-
; then
12769 echo "/* Generated by configure. */" >$tmp/config.h
12771 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12773 cat $tmp/in >>$tmp/config.h
12775 if test x
"$ac_file" != x-
; then
12776 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12777 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12778 echo "$as_me: $ac_file is unchanged" >&6;}
12780 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12782 X"$ac_file" : 'X\(//\)[^/]' \| \
12783 X"$ac_file" : 'X\(//\)$' \| \
12784 X"$ac_file" : 'X\(/\)' \| \
12785 . : '\(.\)' 2>/dev/null ||
12787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12789 /^X\(\/\/\)$/{ s//\1/; q; }
12790 /^X\(\/\).*/{ s//\1/; q; }
12792 { if $as_mkdir_p; then
12797 while test ! -d "$as_dir"; do
12798 as_dirs
="$as_dir $as_dirs"
12799 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12801 X"$as_dir" : 'X\(//\)[^/]' \| \
12802 X"$as_dir" : 'X\(//\)$' \| \
12803 X"$as_dir" : 'X\(/\)' \| \
12804 . : '\(.\)' 2>/dev/null ||
12806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12808 /^X\(\/\/\)$/{ s//\1/; q; }
12809 /^X\(\/\).*/{ s//\1/; q; }
12812 test ! -n "$as_dirs" || mkdir
$as_dirs
12813 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12815 { (exit 1); exit 1; }; }; }
12818 mv $tmp/config.h
$ac_file
12822 rm -f $tmp/config.h
12826 cat >>$CONFIG_STATUS <<\_ACEOF
12829 # CONFIG_COMMANDS section.
12831 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12832 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12833 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12834 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12835 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12836 X"$ac_dest" : 'X\(//\)[^/]' \| \
12837 X"$ac_dest" : 'X\(//\)$' \| \
12838 X"$ac_dest" : 'X\(/\)' \| \
12839 . : '\(.\)' 2>/dev/null ||
12841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12843 /^X\(\/\/\)$/{ s//\1/; q; }
12844 /^X\(\/\).*/{ s//\1/; q; }
12848 if test "$ac_dir" != .
; then
12849 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12850 # A "../" for each directory in $ac_dir_suffix.
12851 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12853 ac_dir_suffix
= ac_top_builddir
=
12857 .
) # No --srcdir option. We are building in place.
12859 if test -z "$ac_top_builddir"; then
12862 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12864 [\\/]* | ?
:[\\/]* ) # Absolute path.
12865 ac_srcdir
=$srcdir$ac_dir_suffix;
12866 ac_top_srcdir
=$srcdir ;;
12867 *) # Relative path.
12868 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12869 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12871 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12873 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12874 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12875 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12876 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12879 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12880 echo "$as_me: executing $ac_dest commands" >&6;}
12882 default-1
) if test -f .devel
; then
12883 echo timestamp
> stamp-h
12884 cat Makefile-devel-adds
>> Makefile
12891 cat >>$CONFIG_STATUS <<\_ACEOF
12893 { (exit 0); exit 0; }
12895 chmod +x
$CONFIG_STATUS
12896 ac_clean_files
=$ac_clean_files_save
12899 # configure is writing to config.log, and then calls config.status.
12900 # config.status does its own redirection, appending to config.log.
12901 # Unfortunately, on DOS this fails, as config.log is still kept open
12902 # by configure, so config.status won't be able to write to it; its
12903 # output is simply discarded. So we exec the FD to /dev/null,
12904 # effectively closing config.log, so it can be properly (re)opened and
12905 # appended to by config.status. When coming back to configure, we
12906 # need to make the FD available again.
12907 if test "$no_create" != yes; then
12909 ac_config_status_args
=
12910 test "$silent" = yes &&
12911 ac_config_status_args
="$ac_config_status_args --quiet"
12913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12916 # would make configure fail if this is the last instruction.
12917 $ac_cs_success ||
{ (exit 1); exit 1; }