3 # From configure.in Revision: 1.171
9 # Try compiling a sample of the type of code that appears in
10 # gencode.c with "inline", "__inline__", and "__inline".
12 # Autoconf's AC_C_INLINE, at least in autoconf 2.13, isn't good enough,
13 # as it just tests whether a function returning "int" can be inlined;
14 # at least some versions of HP's C compiler can inline that, but can't
15 # inline a function that returns a struct pointer.
76 # Guess values for system-dependent variables and create Makefiles.
77 # Generated automatically using autoconf version 2.13
78 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80 # This configure script is free software; the Free Software Foundation
81 # gives unlimited permission to copy, distribute and modify it.
85 ac_default_prefix
=/usr
/local
86 # Any additions from configure.in:
88 --without-gcc don't use gcc"
90 --enable-smb enable possibly-buggy SMB printer [default=yes]
91 --disable-smb disable possibly-buggy SMB printer"
93 --enable-ipv6 enable ipv6 (with ipv4) support
94 --disable-ipv6 disable ipv6 support"
96 --without-crypto disable crypto support"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
102 cache_file
=.
/config.cache
111 program_transform_name
=s
,x
,x
,
119 bindir
='${exec_prefix}/bin'
120 sbindir
='${exec_prefix}/sbin'
121 libexecdir
='${exec_prefix}/libexec'
122 datadir
='${prefix}/share'
123 sysconfdir
='${prefix}/etc'
124 sharedstatedir
='${prefix}/com'
125 localstatedir
='${prefix}/var'
126 libdir
='${exec_prefix}/lib'
127 includedir
='${prefix}/include'
128 oldincludedir
='/usr/include'
129 infodir
='${prefix}/info'
130 mandir
='${prefix}/man'
132 # Initialize some other variables.
135 SHELL
=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
161 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
162 bindir
="$ac_optarg" ;;
164 -build |
--build |
--buil |
--bui |
--bu)
166 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
167 build
="$ac_optarg" ;;
169 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
170 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
171 ac_prev
=cache_file
;;
172 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
173 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
174 cache_file
="$ac_optarg" ;;
176 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
178 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
180 datadir
="$ac_optarg" ;;
182 -disable-* |
--disable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* |
--enable-*)
192 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
205 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
206 |
--exec |
--exe |
--ex)
207 ac_prev
=exec_prefix
;;
208 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
209 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
210 |
--exec=* |
--exe=* |
--ex=*)
211 exec_prefix
="$ac_optarg" ;;
213 -gas |
--gas |
--ga |
--g)
214 # Obsolete; use --with-gas.
217 -help |
--help |
--hel |
--he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host |
--host |
--hos |
--ho)
274 -host=* |
--host=* |
--hos=* |
--ho=*)
277 -includedir |
--includedir |
--includedi |
--included |
--include \
278 |
--includ |
--inclu |
--incl |
--inc)
279 ac_prev
=includedir
;;
280 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
281 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
282 includedir
="$ac_optarg" ;;
284 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
286 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
287 infodir
="$ac_optarg" ;;
289 -libdir |
--libdir |
--libdi |
--libd)
291 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
292 libdir
="$ac_optarg" ;;
294 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
295 |
--libexe |
--libex |
--libe)
296 ac_prev
=libexecdir
;;
297 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
298 |
--libexe=* |
--libex=* |
--libe=*)
299 libexecdir
="$ac_optarg" ;;
301 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
302 |
--localstate |
--localstat |
--localsta |
--localst \
303 |
--locals |
--local |
--loca |
--loc |
--lo)
304 ac_prev
=localstatedir
;;
305 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
306 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
307 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
308 localstatedir
="$ac_optarg" ;;
310 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
312 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
313 mandir
="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
323 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
324 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
327 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
328 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
329 |
--oldin |
--oldi |
--old |
--ol |
--o)
330 ac_prev
=oldincludedir
;;
331 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
332 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
333 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
334 oldincludedir
="$ac_optarg" ;;
336 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
338 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
339 prefix
="$ac_optarg" ;;
341 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
342 |
--program-pre |
--program-pr |
--program-p)
343 ac_prev
=program_prefix
;;
344 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
345 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
346 program_prefix
="$ac_optarg" ;;
348 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
349 |
--program-suf |
--program-su |
--program-s)
350 ac_prev
=program_suffix
;;
351 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
352 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
353 program_suffix
="$ac_optarg" ;;
355 -program-transform-name |
--program-transform-name \
356 |
--program-transform-nam |
--program-transform-na \
357 |
--program-transform-n |
--program-transform- \
358 |
--program-transform |
--program-transfor \
359 |
--program-transfo |
--program-transf \
360 |
--program-trans |
--program-tran \
361 |
--progr-tra |
--program-tr |
--program-t)
362 ac_prev
=program_transform_name
;;
363 -program-transform-name=* |
--program-transform-name=* \
364 |
--program-transform-nam=* |
--program-transform-na=* \
365 |
--program-transform-n=* |
--program-transform-=* \
366 |
--program-transform=* |
--program-transfor=* \
367 |
--program-transfo=* |
--program-transf=* \
368 |
--program-trans=* |
--program-tran=* \
369 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
370 program_transform_name
="$ac_optarg" ;;
372 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
373 |
-silent |
--silent |
--silen |
--sile |
--sil)
376 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
378 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
380 sbindir
="$ac_optarg" ;;
382 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
383 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
384 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
386 ac_prev
=sharedstatedir
;;
387 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
388 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
389 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
391 sharedstatedir
="$ac_optarg" ;;
393 -site |
--site |
--sit)
395 -site=* |
--site=* |
--sit=*)
398 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
400 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
401 srcdir
="$ac_optarg" ;;
403 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
404 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
405 ac_prev
=sysconfdir
;;
406 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
407 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
408 sysconfdir
="$ac_optarg" ;;
410 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
412 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
413 target
="$ac_optarg" ;;
415 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
418 -version |
--version |
--versio |
--versi |
--vers)
419 echo "configure generated by autoconf version 2.13"
423 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* |
--without-*)
436 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package
=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
449 |
--x-incl |
--x-inc |
--x-in |
--x-i)
450 ac_prev
=x_includes
;;
451 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
452 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
453 x_includes
="$ac_optarg" ;;
455 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
456 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
457 ac_prev
=x_libraries
;;
458 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
459 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
460 x_libraries
="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE
; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
511 |
--no-cr |
--no-c) ;;
512 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
513 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
514 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest
* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file
=tcpdump.c
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted
=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted
=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE
; then
565 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file
in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp
='$CPP $CPPFLAGS'
588 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling
=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
603 ac_n
= ac_c
='\c' ac_t
=
609 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
610 if test -f $ac_dir/install-sh
; then
612 ac_install_sh
="$ac_aux_dir/install-sh -c"
614 elif test -f $ac_dir/install.sh
; then
616 ac_install_sh
="$ac_aux_dir/install.sh -c"
620 if test -z "$ac_aux_dir"; then
621 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
623 ac_config_guess
=$ac_aux_dir/config.guess
624 ac_config_sub
=$ac_aux_dir/config.sub
625 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
628 # Make sure we can run config.sub.
629 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
637 case "$host_alias" in
641 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 *) host_alias
=$nonopt ;;
648 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
659 # Check whether --with-gcc or --without-gcc was given.
660 if test "${with_gcc+set}" = set; then
667 if test "${srcdir}" != "." ; then
668 V_INCLS
="-I\$(srcdir)"
670 if test "${CFLAGS+set}" = set; then
673 if test -z "$CC" ; then
677 # Extract the first word of "shlicc2", so it can be a program name with args.
678 set dummy shlicc2
; ac_word
=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$SHLICC2"; then
685 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
687 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
689 for ac_dir
in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir
=.
691 if test -f $ac_dir/$ac_word; then
692 ac_cv_prog_SHLICC2
="yes"
697 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
700 SHLICC2
="$ac_cv_prog_SHLICC2"
701 if test -n "$SHLICC2"; then
702 echo "$ac_t""$SHLICC2" 1>&6
704 echo "$ac_t""no" 1>&6
707 if test $SHLICC2 = yes ; then
714 if test -z "$CC" -a "$with_gcc" = no
; then
718 # Extract the first word of "gcc", so it can be a program name with args.
719 set dummy gcc
; ac_word
=$2
720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
721 echo "configure:722: checking for $ac_word" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 if test -n "$CC"; then
726 ac_cv_prog_CC
="$CC" # Let the user override the test.
728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
730 for ac_dir
in $ac_dummy; do
731 test -z "$ac_dir" && ac_dir
=.
732 if test -f $ac_dir/$ac_word; then
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
747 if test -z "$CC"; then
748 # Extract the first word of "cc", so it can be a program name with args.
749 set dummy cc
; ac_word
=$2
750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
751 echo "configure:752: checking for $ac_word" >&5
752 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 if test -n "$CC"; then
756 ac_cv_prog_CC
="$CC" # Let the user override the test.
758 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
761 for ac_dir
in $ac_dummy; do
762 test -z "$ac_dir" && ac_dir
=.
763 if test -f $ac_dir/$ac_word; then
764 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
773 if test $ac_prog_rejected = yes; then
774 # We found a bogon in the path, so make sure we never use it.
775 set dummy
$ac_cv_prog_CC
777 if test $# -gt 0; then
778 # We chose a different compiler from the bogus one.
779 # However, it has the same basename, so the bogon will be chosen
780 # first if we set CC to just the basename; use the full file name.
782 set dummy
"$ac_dir/$ac_word" "$@"
790 if test -n "$CC"; then
791 echo "$ac_t""$CC" 1>&6
793 echo "$ac_t""no" 1>&6
796 if test -z "$CC"; then
799 # Extract the first word of "cl", so it can be a program name with args.
800 set dummy cl
; ac_word
=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 if test -n "$CC"; then
807 ac_cv_prog_CC
="$CC" # Let the user override the test.
809 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
811 for ac_dir
in $ac_dummy; do
812 test -z "$ac_dir" && ac_dir
=.
813 if test -f $ac_dir/$ac_word; then
822 if test -n "$CC"; then
823 echo "$ac_t""$CC" 1>&6
825 echo "$ac_t""no" 1>&6
830 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
837 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
838 ac_cpp
='$CPP $CPPFLAGS'
839 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
840 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
841 cross_compiling
=$ac_cv_prog_cc_cross
843 cat > conftest.
$ac_ext << EOF
845 #line 846 "configure"
846 #include "confdefs.h"
850 if { (eval echo configure
:851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
851 ac_cv_prog_cc_works
=yes
852 # If we can't run a trivial program, we are probably using a cross compiler.
853 if (.
/conftest
; exit) 2>/dev
/null
; then
854 ac_cv_prog_cc_cross
=no
856 ac_cv_prog_cc_cross
=yes
859 echo "configure: failed program was:" >&5
860 cat conftest.
$ac_ext >&5
861 ac_cv_prog_cc_works
=no
865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
866 ac_cpp
='$CPP $CPPFLAGS'
867 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
868 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
869 cross_compiling
=$ac_cv_prog_cc_cross
871 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
872 if test $ac_cv_prog_cc_works = no
; then
873 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
875 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
876 echo "configure:877: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
877 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
878 cross_compiling
=$ac_cv_prog_cc_cross
880 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
881 echo "configure:882: checking whether we are using GNU C" >&5
882 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 cat > conftest.c
<<EOF
890 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
897 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
899 if test $ac_cv_prog_gcc = yes; then
905 ac_test_CFLAGS
="${CFLAGS+set}"
906 ac_save_CFLAGS
="$CFLAGS"
908 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
909 echo "configure:910: checking whether ${CC-cc} accepts -g" >&5
910 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 echo 'void f(){}' > conftest.c
914 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
923 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
924 if test "$ac_test_CFLAGS" = set; then
925 CFLAGS
="$ac_save_CFLAGS"
926 elif test $ac_cv_prog_cc_g = yes; then
927 if test "$GCC" = yes; then
933 if test "$GCC" = yes; then
940 if test "$GCC" = yes ; then
941 if test "$SHLICC2" = yes ; then
945 echo $ac_n "checking gcc version""... $ac_c" 1>&6
946 echo "configure:947: checking gcc version" >&5
947 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
950 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
951 sed -e '/^gcc version /!d' \
952 -e 's/^gcc version //' \
953 -e 's/ .*//' -e 's/^[^0-9]*//' \
957 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
958 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
963 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
964 echo "configure:965: checking that $CC handles ansi prototypes" >&5
965 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
968 cat > conftest.
$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
971 #include <sys/types.h>
973 int frob(int, char *)
976 if { (eval echo configure
:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
978 ac_cv_lbl_cc_ansi_prototypes
=yes
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
983 ac_cv_lbl_cc_ansi_prototypes
=no
988 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
989 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
993 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
994 echo "configure:995: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
995 savedcflags
="$CFLAGS"
996 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
997 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftest.
$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1003 #include <sys/types.h>
1005 int frob(int, char *)
1008 if { (eval echo configure
:1009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1010 ac_cv_lbl_cc_hpux_cc_aa
=yes
1012 echo "configure: failed program was:" >&5
1013 cat conftest.
$ac_ext >&5
1015 ac_cv_lbl_cc_hpux_cc_aa
=no
1020 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1021 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1022 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1024 CFLAGS
="$savedcflags"
1025 V_CCOPT
="-Aa $V_CCOPT"
1026 cat >> confdefs.h
<<\EOF
1027 #define _HPUX_SOURCE 1
1033 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1037 V_INCLS
="$V_INCLS -I/usr/local/include"
1038 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1043 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1047 V_CCOPT
="$V_CCOPT -std1 -O"
1051 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1052 echo "configure:1053: checking that Ultrix $CC hacks const in prototypes" >&5
1053 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 cat > conftest.
$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 #include <sys/types.h>
1061 struct a { int b; };
1062 void c(const struct a *)
1065 if { (eval echo configure
:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1067 ac_cv_lbl_cc_const_proto
=yes
1069 echo "configure: failed program was:" >&5
1070 cat conftest.
$ac_ext >&5
1072 ac_cv_lbl_cc_const_proto
=no
1077 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1078 if test $ac_cv_lbl_cc_const_proto = no
; then
1079 cat >> confdefs.h
<<\EOF
1088 echo $ac_n "checking for inline""... $ac_c" 1>&6
1089 echo "configure:1090: checking for inline" >&5
1090 if eval "test \"`echo '$''{'ac_cv_lbl_inline'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1096 for ac_lbl_inline
in inline __inline__ __inline
1098 cat > conftest.
$ac_ext <<EOF
1099 #line 1100 "configure"
1100 #include "confdefs.h"
1101 #define inline $ac_lbl_inline
1102 static inline struct iltest *foo(void);
1108 static inline struct iltest *
1111 static struct iltest xxx;
1119 if { (eval echo configure
:1120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1121 ac_lbl_cc_inline
=yes
1123 echo "configure: failed program was:" >&5
1124 cat conftest.
$ac_ext >&5
1127 if test "$ac_lbl_cc_inline" = yes ; then
1131 if test "$ac_lbl_cc_inline" = yes ; then
1132 ac_cv_lbl_inline
=$ac_lbl_inline
1136 if test ! -z "$ac_cv_lbl_inline" ; then
1137 echo "$ac_t""$ac_cv_lbl_inline" 1>&6
1139 echo "$ac_t""no" 1>&6
1141 cat >> confdefs.h
<<EOF
1142 #define inline $ac_cv_lbl_inline
1146 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1147 echo "configure:1148: checking for __attribute__" >&5
1148 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1152 cat > conftest.
$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1160 static void foo(void) __attribute__ ((noreturn));
1170 if { (eval echo configure
:1171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1172 ac_cv___attribute__
=yes
1174 echo "configure: failed program was:" >&5
1175 cat conftest.
$ac_ext >&5
1177 ac_cv___attribute__
=no
1182 if test "$ac_cv___attribute__" = "yes"; then
1183 cat >> confdefs.h
<<\EOF
1184 #define HAVE___ATTRIBUTE__ 1
1187 V_DEFS
="$V_DEFS -D_U_=\"__attribute__((unused))\""
1189 V_DEFS
="$V_DEFS -D_U_=\"\""
1191 echo "$ac_t""$ac_cv___attribute__" 1>&6
1194 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1195 echo "configure:1196: checking how to run the C preprocessor" >&5
1196 # On Suns, sometimes $CPP names a directory.
1197 if test -n "$CPP" && test -d "$CPP"; then
1200 if test -z "$CPP"; then
1201 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 # This must be in double quotes, not single quotes, because CPP may get
1205 # substituted into the Makefile and "${CC-cc}" will confuse make.
1207 # On the NeXT, cc -E runs the code through the compiler's parser,
1208 # not just through cpp.
1209 cat > conftest.
$ac_ext <<EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1216 { (eval echo configure
:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1217 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1218 if test -z "$ac_err"; then
1222 echo "configure: failed program was:" >&5
1223 cat conftest.
$ac_ext >&5
1225 CPP
="${CC-cc} -E -traditional-cpp"
1226 cat > conftest.
$ac_ext <<EOF
1227 #line 1228 "configure"
1228 #include "confdefs.h"
1232 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233 { (eval echo configure
:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235 if test -z "$ac_err"; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1242 CPP
="${CC-cc} -nologo -E"
1243 cat > conftest.
$ac_ext <<EOF
1244 #line 1245 "configure"
1245 #include "confdefs.h"
1249 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250 { (eval echo configure
:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252 if test -z "$ac_err"; then
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1266 ac_cv_prog_CPP
="$CPP"
1268 CPP
="$ac_cv_prog_CPP"
1270 ac_cv_prog_CPP
="$CPP"
1272 echo "$ac_t""$CPP" 1>&6
1274 for ac_hdr
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h netdnet
/dnetdb.h netinet
/ether.h
1276 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_hdr" >&5
1279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 cat > conftest.
$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 { (eval echo configure
:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1289 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1290 if test -z "$ac_err"; then
1292 eval "ac_cv_header_$ac_safe=yes"
1295 echo "configure: failed program was:" >&5
1296 cat conftest.
$ac_ext >&5
1298 eval "ac_cv_header_$ac_safe=no"
1302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1303 echo "$ac_t""yes" 1>&6
1304 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1305 cat >> confdefs.h
<<EOF
1306 #define $ac_tr_hdr 1
1310 echo "$ac_t""no" 1>&6
1314 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether time.h and sys/time.h may both be included" >&5
1316 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 cat > conftest.
$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 #include <sys/types.h>
1323 #include <sys/time.h>
1329 if { (eval echo configure
:1330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1331 ac_cv_header_time
=yes
1333 echo "configure: failed program was:" >&5
1334 cat conftest.
$ac_ext >&5
1336 ac_cv_header_time
=no
1341 echo "$ac_t""$ac_cv_header_time" 1>&6
1342 if test $ac_cv_header_time = yes; then
1343 cat >> confdefs.h
<<\EOF
1344 #define TIME_WITH_SYS_TIME 1
1353 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1354 echo "configure:1355: checking Linux kernel version" >&5
1355 if test "$cross_compiling" = yes; then
1356 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1359 ac_cv_linux_vers
=unknown
1363 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_cv_linux_vers
=`uname -r 2>&1 | \
1367 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1371 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1372 if test $ac_cv_linux_vers = unknown
; then
1373 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1375 if test $ac_cv_linux_vers -lt 2 ; then
1376 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1387 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1389 echo "configure:1390: checking for $ac_hdr" >&5
1390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 cat > conftest.
$ac_ext <<EOF
1394 #line 1395 "configure"
1395 #include "confdefs.h"
1398 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1399 { (eval echo configure
:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1400 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1401 if test -z "$ac_err"; then
1403 eval "ac_cv_header_$ac_safe=yes"
1406 echo "configure: failed program was:" >&5
1407 cat conftest.
$ac_ext >&5
1409 eval "ac_cv_header_$ac_safe=no"
1413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1414 echo "$ac_t""yes" 1>&6
1415 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1416 cat >> confdefs.h
<<EOF
1417 #define $ac_tr_hdr 1
1421 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1426 echo "configure:1427: checking for smiInit in -lsmi" >&5
1427 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 ac_save_LIBS
="$LIBS"
1433 cat > conftest.
$ac_ext <<EOF
1434 #line 1435 "configure"
1435 #include "confdefs.h"
1436 /* Override any gcc2 internal prototype to avoid an error. */
1437 /* We use char because int might match the return type of a gcc2
1438 builtin and then its argument prototype would still apply. */
1445 if { (eval echo configure
:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1447 eval "ac_cv_lib_$ac_lib_var=yes"
1449 echo "configure: failed program was:" >&5
1450 cat conftest.
$ac_ext >&5
1452 eval "ac_cv_lib_$ac_lib_var=no"
1455 LIBS
="$ac_save_LIBS"
1458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1459 echo "$ac_t""yes" 1>&6
1460 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1462 cat >> confdefs.h
<<EOF
1463 #define $ac_tr_lib 1
1469 echo "$ac_t""no" 1>&6
1472 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
1474 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1475 echo "configure:1476: checking whether to enable libsmi" >&5
1476 if test "$cross_compiling" = yes; then
1477 echo "$ac_t""not when cross-compiling" 1>&6
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 /* libsmi available check */
1488 int current, revision, age, n;
1489 const int required = 2;
1492 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1494 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1497 if (required < current - age || required > current)
1503 if { (eval echo configure
:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1505 echo "$ac_t""yes" 1>&6
1506 cat >> confdefs.h
<<\EOF
1512 echo "configure: failed program was:" >&5
1513 cat conftest.
$ac_ext >&5
1516 1) echo "$ac_t""no - smiInit failed" 1>&6 ;;
1517 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;;
1518 3) echo "$ac_t""no - can't determine library version" 1>&6 ;;
1519 4) echo "$ac_t""no - too old" 1>&6 ;;
1520 *) echo "$ac_t""no" 1>&6 ;;
1529 echo $ac_n "checking whether to enable the possibly-buggy SMB printer""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether to enable the possibly-buggy SMB printer" >&5
1531 # Check whether --enable-smb or --disable-smb was given.
1532 if test "${enable_smb+set}" = set; then
1533 enableval
="$enable_smb"
1539 case "$enableval" in
1540 yes) echo "$ac_t""yes" 1>&6
1541 echo "configure: warning: The SMB printer may have exploitable buffer overflows!!!" 1>&2
1542 cat >> confdefs.h
<<\EOF
1543 #define TCPDUMP_DO_SMB 1
1546 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
1548 *) echo "$ac_t""no" 1>&6
1552 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1553 echo "configure:1554: checking whether to enable ipv6" >&5
1554 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1555 if test "${enable_ipv6+set}" = set; then
1556 enableval
="$enable_ipv6"
1557 case "$enableval" in
1558 yes) echo "$ac_t""yes" 1>&6
1559 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"
1560 cat >> confdefs.h
<<\EOF
1567 echo "$ac_t""no" 1>&6
1572 if test "$cross_compiling" = yes; then
1573 echo "$ac_t""no" 1>&6
1577 cat > conftest.
$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1580 /* AF_INET6 available check */
1581 #include <sys/types.h>
1582 #include <sys/socket.h>
1585 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1592 if { (eval echo configure
:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1594 echo "$ac_t""yes" 1>&6
1595 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"
1596 cat >> confdefs.h
<<\EOF
1602 echo "configure: failed program was:" >&5
1603 cat conftest.
$ac_ext >&5
1605 echo "$ac_t""no" 1>&6
1618 if test "$ipv6" = "yes"; then
1619 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1620 echo "configure:1621: checking ipv6 stack type" >&5
1621 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1628 #include <netinet/in.h>
1629 #ifdef IPV6_INRIA_VERSION
1633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1634 egrep "yes" >/dev
/null
2>&1; then
1637 CFLAGS
="-DINET6 $CFLAGS"
1643 cat > conftest.
$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1647 #include <netinet/in.h>
1652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1653 egrep "yes" >/dev
/null
2>&1; then
1657 ipv6libdir
=/usr
/local
/v
6/lib
;
1659 CFLAGS
="-DINET6 $CFLAGS"
1665 cat > conftest.
$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1669 #include <features.h>
1670 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1675 egrep "yes" >/dev
/null
2>&1; then
1678 CFLAGS
="-DINET6 $CFLAGS"
1684 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1687 ipv6libdir
=/usr
/inet
6/lib
1689 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1693 cat > conftest.
$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1697 #include <sys/param.h>
1698 #ifdef _TOSHIBA_INET6
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "yes" >/dev
/null
2>&1; then
1707 ipv6libdir
=/usr
/local
/v
6/lib
;
1708 CFLAGS
="-DINET6 $CFLAGS"
1714 cat > conftest.
$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1718 #include </usr/local/v6/include/sys/v6config.h>
1723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1724 egrep "yes" >/dev
/null
2>&1; then
1728 ipv6libdir
=/usr
/local
/v
6/lib
;
1729 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1735 cat > conftest.
$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1739 #include <sys/param.h>
1740 #ifdef _ZETA_MINAMI_INET6
1744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1745 egrep "yes" >/dev
/null
2>&1; then
1749 ipv6libdir
=/usr
/local
/v
6/lib
;
1750 CFLAGS
="-DINET6 $CFLAGS"
1756 if test "$ipv6type" != "unknown"; then
1760 echo "$ac_t""$ipv6type" 1>&6
1763 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1764 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1765 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1766 echo "You have $ipv6lib library, using it"
1768 if test "$ipv6trylibc" = "yes"; then
1769 echo "You do not have $ipv6lib library, using libc"
1771 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1772 echo "You need to fetch lib$ipv6lib.a from appropriate"
1773 echo 'ipv6 kit and compile beforehand.'
1780 if test "$ipv6" = "yes"; then
1782 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
1783 # function in libc; there are "ngetaddrinfo()" and
1784 # "ogetaddrinfo()" functions, and <netdb.h> #defines
1785 # "getaddrinfo" to be either "ngetaddrinfo" or
1786 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
1787 # or _XOPEN_SOURCE_EXTENDED are defined or not.
1789 # So this test doesn't work on Tru64 5.1, and possibly
1790 # on other 5.x releases. This causes the configure
1791 # script to become confused, and results in libpcap
1792 # being unbuildable.
1795 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1796 echo "configure:1797: checking for library containing getaddrinfo" >&5
1797 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 ac_func_search_save_LIBS
="$LIBS"
1801 ac_cv_search_getaddrinfo
="no"
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1805 /* Override any gcc2 internal prototype to avoid an error. */
1806 /* We use char because int might match the return type of a gcc2
1807 builtin and then its argument prototype would still apply. */
1814 if { (eval echo configure
:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1816 ac_cv_search_getaddrinfo
="none required"
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1822 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1823 LIBS
="-l$i $ac_func_search_save_LIBS"
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1827 /* Override any gcc2 internal prototype to avoid an error. */
1828 /* We use char because int might match the return type of a gcc2
1829 builtin and then its argument prototype would still apply. */
1836 if { (eval echo configure
:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1838 ac_cv_search_getaddrinfo
="-l$i"
1841 echo "configure: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1846 LIBS
="$ac_func_search_save_LIBS"
1849 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1850 if test "$ac_cv_search_getaddrinfo" != "no"; then
1851 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1852 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1853 echo "configure:1854: checking getaddrinfo bug" >&5
1854 if eval "test \"`echo '$''{'td_cv_buggygetaddrinfo'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 if test "$cross_compiling" = yes; then
1858 td_cv_buggygetaddrinfo
=yes
1860 cat > conftest.
$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1864 #include <sys/types.h>
1867 #include <sys/socket.h>
1868 #include <netinet/in.h>
1872 int passive, gaierr, inet4 = 0, inet6 = 0;
1873 struct addrinfo hints, *ai, *aitop;
1874 char straddr[INET6_ADDRSTRLEN], strport[16];
1876 for (passive = 0; passive <= 1; passive++) {
1877 memset(&hints, 0, sizeof(hints));
1878 hints.ai_family = AF_UNSPEC;
1879 hints.ai_flags = passive ? AI_PASSIVE : 0;
1880 hints.ai_socktype = SOCK_STREAM;
1881 hints.ai_protocol = IPPROTO_TCP;
1882 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1883 (void)gai_strerror(gaierr);
1886 for (ai = aitop; ai; ai = ai->ai_next) {
1887 if (ai->ai_addr == NULL ||
1888 ai->ai_addrlen == 0 ||
1889 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1890 straddr, sizeof(straddr), strport, sizeof(strport),
1891 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1894 switch (ai->ai_family) {
1896 if (strcmp(strport, "54321") != 0) {
1900 if (strcmp(straddr, "0.0.0.0") != 0) {
1904 if (strcmp(straddr, "127.0.0.1") != 0) {
1911 if (strcmp(strport, "54321") != 0) {
1915 if (strcmp(straddr, "::") != 0) {
1919 if (strcmp(straddr, "::1") != 0) {
1936 /* another family support? */
1942 /* supported family should be 2, unsupported family should be 0 */
1943 if (!(inet4 == 0 || inet4 == 2))
1945 if (!(inet6 == 0 || inet6 == 2))
1949 freeaddrinfo(aitop);
1954 freeaddrinfo(aitop);
1959 if { (eval echo configure
:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1961 td_cv_buggygetaddrinfo
=no
1963 echo "configure: failed program was:" >&5
1964 cat conftest.
$ac_ext >&5
1966 td_cv_buggygetaddrinfo
=yes
1973 if test "$td_cv_buggygetaddrinfo" = no
; then
1974 echo "$ac_t""good" 1>&6
1976 echo "$ac_t""buggy" 1>&6
1979 if test "$td_cv_buggygetaddrinfo" = "yes"; then
1981 # XXX - it doesn't appear that "ipv6type" can ever be
1982 # set to "linux". Should this be testing for
1983 # "linux-glibc", or for that *or* "linux-libinet6"?
1984 # If the latter, note that "linux-libinet6" is also
1985 # the type given to some non-Linux OSes.
1987 if test "$ipv6type" != "linux"; then
1988 echo 'Fatal: You must get working getaddrinfo() function.'
1989 echo ' or you can specify "--disable-ipv6"'.
1992 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1993 echo ' Better upgrade your system library to newest version'
1994 echo ' of GNU C library (aka glibc).'
2001 for ac_func
in getaddrinfo getnameinfo
2003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2004 echo "configure:2005: checking for $ac_func" >&5
2005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.
$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $ac_func(); below. */
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2032 if { (eval echo configure
:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2034 eval "ac_cv_func_$ac_func=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_func_$ac_func=no"
2044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2047 cat >> confdefs.h
<<EOF
2048 #define $ac_tr_func 1
2052 echo "$ac_t""no" 1>&6
2053 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2060 echo $ac_n "checking for dnet_htoa declaration in netdnet/dnetdb.h""... $ac_c" 1>&6
2061 echo "configure:2062: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
2062 if eval "test \"`echo '$''{'td_cv_decl_netdnet_dnetdb_h_dnet_htoa'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 cat > conftest.
$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <netdnet/dnetdb.h>
2070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2071 egrep "dnet_htoa" >/dev
/null
2>&1; then
2073 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
2076 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
2082 echo "$ac_t""$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" 1>&6
2083 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
2084 cat >> confdefs.h
<<\EOF
2085 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
2090 echo $ac_n "checking size of char""... $ac_c" 1>&6
2091 echo "configure:2092: checking size of char" >&5
2092 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 if test "$cross_compiling" = yes; then
2098 cat > conftest.
$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2104 FILE *f=fopen("conftestval", "w");
2106 fprintf(f, "%d\n", sizeof(char));
2110 if { (eval echo configure
:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2112 ac_cv_sizeof_char
=`cat conftestval`
2114 echo "configure: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2123 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2124 cat >> confdefs.h
<<EOF
2125 #define SIZEOF_CHAR $ac_cv_sizeof_char
2129 echo $ac_n "checking size of short""... $ac_c" 1>&6
2130 echo "configure:2131: checking size of short" >&5
2131 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test "$cross_compiling" = yes; then
2135 ac_cv_sizeof_short
=2
2137 cat > conftest.
$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2143 FILE *f=fopen("conftestval", "w");
2145 fprintf(f, "%d\n", sizeof(short));
2149 if { (eval echo configure
:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2151 ac_cv_sizeof_short
=`cat conftestval`
2153 echo "configure: failed program was:" >&5
2154 cat conftest.
$ac_ext >&5
2156 ac_cv_sizeof_short
=0
2162 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2163 cat >> confdefs.h
<<EOF
2164 #define SIZEOF_SHORT $ac_cv_sizeof_short
2168 echo $ac_n "checking size of int""... $ac_c" 1>&6
2169 echo "configure:2170: checking size of int" >&5
2170 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 if test "$cross_compiling" = yes; then
2176 cat > conftest.
$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2182 FILE *f=fopen("conftestval", "w");
2184 fprintf(f, "%d\n", sizeof(int));
2188 if { (eval echo configure
:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2190 ac_cv_sizeof_int
=`cat conftestval`
2192 echo "configure: failed program was:" >&5
2193 cat conftest.
$ac_ext >&5
2201 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2202 cat >> confdefs.h
<<EOF
2203 #define SIZEOF_INT $ac_cv_sizeof_int
2207 echo $ac_n "checking size of long""... $ac_c" 1>&6
2208 echo "configure:2209: checking size of long" >&5
2209 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 if test "$cross_compiling" = yes; then
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2221 FILE *f=fopen("conftestval", "w");
2223 fprintf(f, "%d\n", sizeof(long));
2227 if { (eval echo configure
:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2229 ac_cv_sizeof_long
=`cat conftestval`
2231 echo "configure: failed program was:" >&5
2232 cat conftest.
$ac_ext >&5
2240 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2241 cat >> confdefs.h
<<EOF
2242 #define SIZEOF_LONG $ac_cv_sizeof_long
2249 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2250 echo "configure:2251: checking for addrinfo" >&5
2251 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2263 if { (eval echo configure
:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2275 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2276 if test $ac_cv_addrinfo = yes; then
2277 cat >> confdefs.h
<<\EOF
2278 #define HAVE_ADDRINFO 1
2282 cat >> confdefs.h
<<\EOF
2283 #define NEED_ADDRINFO_H 1
2288 if test "$ac_cv_addrinfo" = no
; then
2289 missing_includes
=yes
2293 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2294 echo "configure:2295: checking for NI_MAXSERV" >&5
2295 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2298 cat > conftest.
$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2307 egrep "yes" >/dev
/null
2>&1; then
2318 echo "$ac_t""$ac_cv_maxserv" 1>&6
2319 if test $ac_cv_maxserv != yes; then
2320 cat >> confdefs.h
<<\EOF
2321 #define NEED_ADDRINFO_H 1
2326 if test "$ac_cv_maxserv" = no
; then
2327 missing_includes
=yes
2331 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2332 echo "configure:2333: checking for NI_NAMEREQD" >&5
2333 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2345 egrep "yes" >/dev
/null
2>&1; then
2356 echo "$ac_t""$ac_cv_namereqd" 1>&6
2357 if test $ac_cv_namereqd != yes; then
2358 cat >> confdefs.h
<<\EOF
2359 #define NEED_ADDRINFO_H 1
2364 if test "$ac_cv_namereqd" = no
; then
2365 missing_includes
=yes
2369 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2370 echo "configure:2371: checking for sockaddr_storage" >&5
2371 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2378 # include <sys/types.h>
2379 # include <sys/socket.h>
2381 struct sockaddr_storage s
2384 if { (eval echo configure
:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2386 ac_cv_sa_storage
=yes
2388 echo "configure: failed program was:" >&5
2389 cat conftest.
$ac_ext >&5
2396 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2397 if test $ac_cv_sa_storage = yes; then
2398 cat >> confdefs.h
<<\EOF
2399 #define HAVE_SOCKADDR_STORAGE 1
2404 if test "$ac_cv_sa_storage" = no
; then
2405 missing_includes
=yes
2410 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2411 echo "configure:2412: checking for INADDRSZ" >&5
2412 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 cat > conftest.
$ac_ext <<EOF
2416 #line 2417 "configure"
2417 #include "confdefs.h"
2419 # include <arpa/nameser.h>
2424 if { (eval echo configure
:2425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2436 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2437 if test $ac_cv_inaddrsz = yes; then
2438 cat >> confdefs.h
<<\EOF
2439 #define HAVE_INADDRSZ 1
2445 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2446 echo "configure:2447: checking for IN6ADDRSZ" >&5
2447 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2454 # include <arpa/nameser.h>
2459 if { (eval echo configure
:2460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 echo "configure: failed program was:" >&5
2464 cat conftest.
$ac_ext >&5
2471 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2472 if test $ac_cv_in6addrsz = yes; then
2473 cat >> confdefs.h
<<\EOF
2474 #define HAVE_IN6ADDRSZ 1
2481 if test "$ac_cv_addrsz" = no
; then
2482 missing_includes
=yes
2486 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2487 echo "configure:2488: checking for RES_USE_INET6" >&5
2488 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 cat > conftest.
$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2495 # include <sys/types.h>
2496 # include <netinet/in.h>
2497 # include <resolv.h>
2499 int a = RES_USE_INET6
2502 if { (eval echo configure
:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2514 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2515 if test $ac_cv_res_inet6 = yes; then
2516 cat >> confdefs.h
<<\EOF
2517 #define HAVE_RES_USE_INET6 1
2522 if test "$ac_cv_res_inet6" = no
; then
2523 missing_includes
=yes
2527 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2528 echo "configure:2529: checking for res_state_ext" >&5
2529 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.
$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2536 # include <sys/types.h>
2537 # include <netinet/in.h>
2538 # include <netinet6/in6.h>
2539 # include <resolv.h>
2541 struct __res_state_ext e
2544 if { (eval echo configure
:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2546 ac_cv_res_state_ext
=yes
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2551 ac_cv_res_state_ext
=no
2556 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2557 if test $ac_cv_res_state_ext = yes; then
2558 cat >> confdefs.h
<<\EOF
2559 #define HAVE_RES_STATE_EXT 1
2564 if test "$ac_cv_res_state_ext" = no
; then
2565 missing_includes
=yes
2569 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2570 echo "configure:2571: checking for nsort in res_state" >&5
2571 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.
$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2578 # include <sys/types.h>
2579 # include <netinet/in.h>
2580 # include <netinet6/in6.h>
2581 # include <resolv.h>
2583 struct __res_state e; e.nsort = 0
2586 if { (eval echo configure
:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2590 echo "configure: failed program was:" >&5
2591 cat conftest.
$ac_ext >&5
2598 echo "$ac_t""$ac_cv_res_state" 1>&6
2599 if test $ac_cv_res_state = yes; then
2600 cat >> confdefs.h
<<\EOF
2601 #define HAVE_NEW_RES_STATE 1
2608 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup strsep
2610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2611 echo "configure:2612: checking for $ac_func" >&5
2612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.
$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 /* System header to define __stub macros and hopefully few prototypes,
2619 which can conflict with char $ac_func(); below. */
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2628 /* The GNU C library defines this for functions which it implements
2629 to always fail with ENOSYS. Some functions are actually named
2630 something starting with __ and the normal name is an alias. */
2631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2639 if { (eval echo configure
:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2641 eval "ac_cv_func_$ac_func=yes"
2643 echo "configure: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2646 eval "ac_cv_func_$ac_func=no"
2651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2654 cat >> confdefs.h
<<EOF
2655 #define $ac_tr_func 1
2659 echo "$ac_t""no" 1>&6
2660 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2665 for ac_func
in strftime
2667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_func" >&5
2669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* System header to define __stub macros and hopefully few prototypes,
2676 which can conflict with char $ac_func(); below. */
2678 /* Override any gcc2 internal prototype to avoid an error. */
2679 /* We use char because int might match the return type of a gcc2
2680 builtin and then its argument prototype would still apply. */
2685 /* The GNU C library defines this for functions which it implements
2686 to always fail with ENOSYS. Some functions are actually named
2687 something starting with __ and the normal name is an alias. */
2688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2696 if { (eval echo configure
:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2698 eval "ac_cv_func_$ac_func=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 eval "ac_cv_func_$ac_func=no"
2708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2711 cat >> confdefs.h
<<EOF
2712 #define $ac_tr_func 1
2716 echo "$ac_t""no" 1>&6
2720 for ac_func
in ether_ntohost
2722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_func" >&5
2724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 /* System header to define __stub macros and hopefully few prototypes,
2731 which can conflict with char $ac_func(); below. */
2733 /* Override any gcc2 internal prototype to avoid an error. */
2734 /* We use char because int might match the return type of a gcc2
2735 builtin and then its argument prototype would still apply. */
2740 /* The GNU C library defines this for functions which it implements
2741 to always fail with ENOSYS. Some functions are actually named
2742 something starting with __ and the normal name is an alias. */
2743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2751 if { (eval echo configure
:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2753 eval "ac_cv_func_$ac_func=yes"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.
$ac_ext >&5
2758 eval "ac_cv_func_$ac_func=no"
2763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2766 cat >> confdefs.h
<<EOF
2767 #define $ac_tr_func 1
2770 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
2771 echo "configure:2772: checking for buggy ether_ntohost" >&5
2772 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2776 if test "$cross_compiling" = yes; then
2777 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2784 #include <sys/types.h>
2785 #include <sys/param.h>
2786 #include <sys/socket.h>
2789 main(int argc, char **argv)
2791 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
2792 char name[MAXHOSTNAMELEN];
2794 ether_ntohost(name, (struct ether_addr *)ea);
2799 if { (eval echo configure
:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2801 ac_cv_buggy_ether_ntohost
=no
2803 echo "configure: failed program was:" >&5
2804 cat conftest.
$ac_ext >&5
2806 ac_cv_buggy_ether_ntohost
=yes
2813 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
2814 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
2815 cat >> confdefs.h
<<\EOF
2816 #define USE_ETHER_NTOHOST 1
2822 echo "$ac_t""no" 1>&6
2826 for ac_func
in setlinebuf
2828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2829 echo "configure:2830: checking for $ac_func" >&5
2830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 /* System header to define __stub macros and hopefully few prototypes,
2837 which can conflict with char $ac_func(); below. */
2839 /* Override any gcc2 internal prototype to avoid an error. */
2840 /* We use char because int might match the return type of a gcc2
2841 builtin and then its argument prototype would still apply. */
2846 /* The GNU C library defines this for functions which it implements
2847 to always fail with ENOSYS. Some functions are actually named
2848 something starting with __ and the normal name is an alias. */
2849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2857 if { (eval echo configure
:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2859 eval "ac_cv_func_$ac_func=yes"
2861 echo "configure: failed program was:" >&5
2862 cat conftest.
$ac_ext >&5
2864 eval "ac_cv_func_$ac_func=no"
2869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2870 echo "$ac_t""yes" 1>&6
2871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2872 cat >> confdefs.h
<<EOF
2873 #define $ac_tr_func 1
2877 echo "$ac_t""no" 1>&6
2883 for ac_func
in vsnprintf snprintf
2885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_func" >&5
2887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 /* System header to define __stub macros and hopefully few prototypes,
2894 which can conflict with char $ac_func(); below. */
2896 /* Override any gcc2 internal prototype to avoid an error. */
2897 /* We use char because int might match the return type of a gcc2
2898 builtin and then its argument prototype would still apply. */
2903 /* The GNU C library defines this for functions which it implements
2904 to always fail with ENOSYS. Some functions are actually named
2905 something starting with __ and the normal name is an alias. */
2906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2914 if { (eval echo configure
:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2916 eval "ac_cv_func_$ac_func=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.
$ac_ext >&5
2921 eval "ac_cv_func_$ac_func=no"
2926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2929 cat >> confdefs.h
<<EOF
2930 #define $ac_tr_func 1
2934 echo "$ac_t""no" 1>&6
2939 if test $needsnprintf = yes; then
2940 LIBOBJS
="$LIBOBJS snprintf.o"
2944 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2945 echo "configure:2946: checking return type of signal handlers" >&5
2946 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.
$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <sys/types.h>
2958 extern "C" void (*signal (int, void (*)(int)))(int);
2960 void (*signal ()) ();
2967 if { (eval echo configure
:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 ac_cv_type_signal
=void
2971 echo "configure: failed program was:" >&5
2972 cat conftest.
$ac_ext >&5
2974 ac_cv_type_signal
=int
2979 echo "$ac_t""$ac_cv_type_signal" 1>&6
2980 cat >> confdefs.h
<<EOF
2981 #define RETSIGTYPE $ac_cv_type_signal
2985 if test "$ac_cv_type_signal" = void
; then
2986 cat >> confdefs.h
<<\EOF
2991 cat >> confdefs.h
<<\EOF
2992 #define RETSIGVAL (0)
2999 cat >> confdefs.h
<<\EOF
3000 #define _BSD_SIGNALS 1
3006 for ac_func
in sigaction
3008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3009 echo "configure:3010: checking for $ac_func" >&5
3010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 cat > conftest.
$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* System header to define __stub macros and hopefully few prototypes,
3017 which can conflict with char $ac_func(); below. */
3019 /* Override any gcc2 internal prototype to avoid an error. */
3020 /* We use char because int might match the return type of a gcc2
3021 builtin and then its argument prototype would still apply. */
3026 /* The GNU C library defines this for functions which it implements
3027 to always fail with ENOSYS. Some functions are actually named
3028 something starting with __ and the normal name is an alias. */
3029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3037 if { (eval echo configure
:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3039 eval "ac_cv_func_$ac_func=yes"
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 eval "ac_cv_func_$ac_func=no"
3049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3050 echo "$ac_t""yes" 1>&6
3051 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3052 cat >> confdefs.h
<<EOF
3053 #define $ac_tr_func 1
3057 echo "$ac_t""no" 1>&6
3061 if test $ac_cv_func_sigaction = no
; then
3062 for ac_func
in sigset
3064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3065 echo "configure:3066: checking for $ac_func" >&5
3066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* System header to define __stub macros and hopefully few prototypes,
3073 which can conflict with char $ac_func(); below. */
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 /* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3082 /* The GNU C library defines this for functions which it implements
3083 to always fail with ENOSYS. Some functions are actually named
3084 something starting with __ and the normal name is an alias. */
3085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3093 if { (eval echo configure
:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3095 eval "ac_cv_func_$ac_func=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.
$ac_ext >&5
3100 eval "ac_cv_func_$ac_func=no"
3105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3108 cat >> confdefs.h
<<EOF
3109 #define $ac_tr_func 1
3113 echo "$ac_t""no" 1>&6
3122 echo $ac_n "checking for library containing dnet_htoa""... $ac_c" 1>&6
3123 echo "configure:3124: checking for library containing dnet_htoa" >&5
3124 if eval "test \"`echo '$''{'ac_cv_search_dnet_htoa'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 ac_func_search_save_LIBS
="$LIBS"
3128 ac_cv_search_dnet_htoa
="no"
3129 cat > conftest.
$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3132 /* Override any gcc2 internal prototype to avoid an error. */
3133 /* We use char because int might match the return type of a gcc2
3134 builtin and then its argument prototype would still apply. */
3141 if { (eval echo configure
:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3143 ac_cv_search_dnet_htoa
="none required"
3145 echo "configure: failed program was:" >&5
3146 cat conftest.
$ac_ext >&5
3149 test "$ac_cv_search_dnet_htoa" = "no" && for i
in dnet
; do
3150 LIBS
="-l$i $ac_func_search_save_LIBS"
3151 cat > conftest.
$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3163 if { (eval echo configure
:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3165 ac_cv_search_dnet_htoa
="-l$i"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3173 LIBS
="$ac_func_search_save_LIBS"
3176 echo "$ac_t""$ac_cv_search_dnet_htoa" 1>&6
3177 if test "$ac_cv_search_dnet_htoa" != "no"; then
3178 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
3179 cat >> confdefs.h
<<\EOF
3180 #define HAVE_DNET_HTOA 1
3187 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3188 echo "configure:3189: checking for main in -lrpc" >&5
3189 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 ac_save_LIBS
="$LIBS"
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 eval "ac_cv_lib_$ac_lib_var=no"
3213 LIBS
="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3220 cat >> confdefs.h
<<EOF
3221 #define $ac_tr_lib 1
3227 echo "$ac_t""no" 1>&6
3231 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3232 echo "configure:3233: checking for library containing getrpcbynumber" >&5
3233 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 ac_func_search_save_LIBS
="$LIBS"
3237 ac_cv_search_getrpcbynumber
="no"
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* Override any gcc2 internal prototype to avoid an error. */
3242 /* We use char because int might match the return type of a gcc2
3243 builtin and then its argument prototype would still apply. */
3244 char getrpcbynumber();
3250 if { (eval echo configure
:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3252 ac_cv_search_getrpcbynumber
="none required"
3254 echo "configure: failed program was:" >&5
3255 cat conftest.
$ac_ext >&5
3258 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3259 LIBS
="-l$i $ac_func_search_save_LIBS"
3260 cat > conftest.
$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 /* Override any gcc2 internal prototype to avoid an error. */
3264 /* We use char because int might match the return type of a gcc2
3265 builtin and then its argument prototype would still apply. */
3266 char getrpcbynumber();
3272 if { (eval echo configure
:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3274 ac_cv_search_getrpcbynumber
="-l$i"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.
$ac_ext >&5
3282 LIBS
="$ac_func_search_save_LIBS"
3285 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3286 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3287 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3295 # Most operating systems have gethostbyname() in the default searched
3296 # libraries (i.e. libc):
3297 # Some OSes (eg. Solaris) place it in libnsl
3298 # Some strange OSes (SINIX) have it in libsocket:
3300 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3301 echo "configure:3302: checking for library containing gethostbyname" >&5
3302 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 ac_func_search_save_LIBS
="$LIBS"
3306 ac_cv_search_gethostbyname
="no"
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 /* Override any gcc2 internal prototype to avoid an error. */
3311 /* We use char because int might match the return type of a gcc2
3312 builtin and then its argument prototype would still apply. */
3313 char gethostbyname();
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3321 ac_cv_search_gethostbyname
="none required"
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3327 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3328 LIBS
="-l$i $ac_func_search_save_LIBS"
3329 cat > conftest.
$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 /* Override any gcc2 internal prototype to avoid an error. */
3333 /* We use char because int might match the return type of a gcc2
3334 builtin and then its argument prototype would still apply. */
3335 char gethostbyname();
3341 if { (eval echo configure
:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3343 ac_cv_search_gethostbyname
="-l$i"
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3351 LIBS
="$ac_func_search_save_LIBS"
3354 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3355 if test "$ac_cv_search_gethostbyname" != "no"; then
3356 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3361 # Unfortunately libsocket sometimes depends on libnsl and
3362 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3363 if test "$ac_cv_search_gethostbyname" = "no"
3365 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3366 echo "configure:3367: checking for gethostbyname in -lsocket" >&5
3367 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 ac_save_LIBS
="$LIBS"
3372 LIBS
="-lsocket -lnsl $LIBS"
3373 cat > conftest.
$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 /* Override any gcc2 internal prototype to avoid an error. */
3377 /* We use char because int might match the return type of a gcc2
3378 builtin and then its argument prototype would still apply. */
3379 char gethostbyname();
3385 if { (eval echo configure
:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3387 eval "ac_cv_lib_$ac_lib_var=yes"
3389 echo "configure: failed program was:" >&5
3390 cat conftest.
$ac_ext >&5
3392 eval "ac_cv_lib_$ac_lib_var=no"
3395 LIBS
="$ac_save_LIBS"
3398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 LIBS
="-lsocket -lnsl $LIBS"
3402 echo "$ac_t""no" 1>&6
3407 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3408 echo "configure:3409: checking for library containing socket" >&5
3409 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 ac_func_search_save_LIBS
="$LIBS"
3413 ac_cv_search_socket
="no"
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3426 if { (eval echo configure
:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3428 ac_cv_search_socket
="none required"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3434 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3435 LIBS
="-l$i $ac_func_search_save_LIBS"
3436 cat > conftest.
$ac_ext <<EOF
3437 #line 3438 "configure"
3438 #include "confdefs.h"
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3448 if { (eval echo configure
:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3450 ac_cv_search_socket
="-l$i"
3453 echo "configure: failed program was:" >&5
3454 cat conftest.
$ac_ext >&5
3458 LIBS
="$ac_func_search_save_LIBS"
3461 echo "$ac_t""$ac_cv_search_socket" 1>&6
3462 if test "$ac_cv_search_socket" != "no"; then
3463 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3466 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3467 echo "configure:3468: checking for socket in -lsocket" >&5
3468 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_save_LIBS
="$LIBS"
3473 LIBS
="-lsocket -lnsl $LIBS"
3474 cat > conftest.
$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 eval "ac_cv_lib_$ac_lib_var=no"
3496 LIBS
="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 LIBS
="-lsocket -lnsl $LIBS"
3503 echo "$ac_t""no" 1>&6
3507 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3509 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3510 echo "configure:3511: checking for library containing putmsg" >&5
3511 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 ac_func_search_save_LIBS
="$LIBS"
3515 ac_cv_search_putmsg
="no"
3516 cat > conftest.
$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 /* Override any gcc2 internal prototype to avoid an error. */
3520 /* We use char because int might match the return type of a gcc2
3521 builtin and then its argument prototype would still apply. */
3528 if { (eval echo configure
:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3530 ac_cv_search_putmsg
="none required"
3532 echo "configure: failed program was:" >&5
3533 cat conftest.
$ac_ext >&5
3536 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3537 LIBS
="-l$i $ac_func_search_save_LIBS"
3538 cat > conftest.
$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3541 /* Override any gcc2 internal prototype to avoid an error. */
3542 /* We use char because int might match the return type of a gcc2
3543 builtin and then its argument prototype would still apply. */
3550 if { (eval echo configure
:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3552 ac_cv_search_putmsg
="-l$i"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3560 LIBS
="$ac_func_search_save_LIBS"
3563 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3564 if test "$ac_cv_search_putmsg" != "no"; then
3565 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3573 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3574 if test -f $pfopen ; then
3575 for ac_func
in pfopen
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3606 if { (eval echo configure
:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3608 eval "ac_cv_func_$ac_func=yes"
3610 echo "configure: failed program was:" >&5
3611 cat conftest.
$ac_ext >&5
3613 eval "ac_cv_func_$ac_func=no"
3618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3621 cat >> confdefs.h
<<EOF
3622 #define $ac_tr_func 1
3626 echo "$ac_t""no" 1>&6
3630 if test $ac_cv_func_pfopen = "no" ; then
3631 echo "$ac_t""Using $pfopen" 1>&6
3632 LIBS
="$LIBS $pfopen"
3635 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3636 echo "configure:3637: checking for local pcap library" >&5
3639 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3640 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3641 for dir
in $places $srcdir/..
/libpcap
$srcdir/libpcap
; do
3642 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3643 if test $lastdir = $basedir ; then
3647 if test -r $dir/libpcap.a
; then
3648 libpcap
=$dir/libpcap.a
3652 if test $libpcap = FAIL
; then
3653 echo "$ac_t""not found" 1>&6
3654 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3655 echo "configure:3656: checking for main in -lpcap" >&5
3656 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 ac_save_LIBS
="$LIBS"
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3670 if { (eval echo configure
:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3672 eval "ac_cv_lib_$ac_lib_var=yes"
3674 echo "configure: failed program was:" >&5
3675 cat conftest.
$ac_ext >&5
3677 eval "ac_cv_lib_$ac_lib_var=no"
3680 LIBS
="$ac_save_LIBS"
3683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3687 echo "$ac_t""no" 1>&6
3690 if test $libpcap = FAIL
; then
3691 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3693 echo $ac_n "checking for extraneous pcap header directories""... $ac_c" 1>&6
3694 echo "configure:3695: checking for extraneous pcap header directories" >&5
3695 if test \
( ! -r /usr
/local
/include
/pcap.h \
) -a \
3696 \
( ! -r /usr
/include
/pcap.h \
); then
3697 if test -r /usr
/local
/include
/pcap
/pcap.h
; then
3698 d
="/usr/local/include/pcap"
3699 elif test -r /usr
/include
/pcap
/pcap.h
; then
3700 d
="/usr/include/pcap"
3703 if test -z "$d" ; then
3704 echo "$ac_t""not found" 1>&6
3706 V_INCLS
="-I$d $V_INCLS"
3707 echo "$ac_t""found -- -I$d added" 1>&6
3711 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3712 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3713 if test -r $d/pcap.h
; then
3714 V_INCLS
="-I$d $V_INCLS"
3715 elif test -r $places/pcap.h
; then
3716 V_INCLS
="-I$places $V_INCLS"
3718 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3720 echo "$ac_t""$libpcap" 1>&6
3722 LIBS
="$libpcap $LIBS"
3726 pseexe
="/lib/pse.exp"
3727 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $pseexe" >&5
3729 if test -f $pseexe ; then
3730 echo "$ac_t""yes" 1>&6
3731 LIBS
="$LIBS -I:$pseexe"
3734 # We need "-lodm" and "-lcfg", as libpcap requires them on
3735 # AIX, and we just build a static libpcap.a and thus can't
3736 # arrange that when you link with libpcap you automatically
3737 # link with those libraries.
3739 LIBS
="$LIBS -lodm -lcfg"
3743 echo $ac_n "checking for pcap_list_datalinks""... $ac_c" 1>&6
3744 echo "configure:3745: checking for pcap_list_datalinks" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_pcap_list_datalinks'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.
$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char pcap_list_datalinks(); below. */
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757 char pcap_list_datalinks();
3761 /* The GNU C library defines this for functions which it implements
3762 to always fail with ENOSYS. Some functions are actually named
3763 something starting with __ and the normal name is an alias. */
3764 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
3767 pcap_list_datalinks();
3772 if { (eval echo configure
:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3774 eval "ac_cv_func_pcap_list_datalinks=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.
$ac_ext >&5
3779 eval "ac_cv_func_pcap_list_datalinks=no"
3784 if eval "test \"`echo '$ac_cv_func_'pcap_list_datalinks`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 cat >> confdefs.h
<<\EOF
3787 #define HAVE_PCAP_LIST_DATALINKS 1
3791 echo "$ac_t""no" 1>&6
3792 LIBOBJS
="$LIBOBJS datalinks.o"
3795 echo $ac_n "checking for pcap_set_datalink""... $ac_c" 1>&6
3796 echo "configure:3797: checking for pcap_set_datalink" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_pcap_set_datalink'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 cat > conftest.
$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804 which can conflict with char pcap_set_datalink(); below. */
3806 /* Override any gcc2 internal prototype to avoid an error. */
3807 /* We use char because int might match the return type of a gcc2
3808 builtin and then its argument prototype would still apply. */
3809 char pcap_set_datalink();
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
3819 pcap_set_datalink();
3824 if { (eval echo configure
:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3826 eval "ac_cv_func_pcap_set_datalink=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 eval "ac_cv_func_pcap_set_datalink=no"
3836 if eval "test \"`echo '$ac_cv_func_'pcap_set_datalink`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 cat >> confdefs.h
<<\EOF
3839 #define HAVE_PCAP_SET_DATALINK 1
3843 echo "$ac_t""no" 1>&6
3846 echo $ac_n "checking for pcap_datalink_name_to_val""... $ac_c" 1>&6
3847 echo "configure:3848: checking for pcap_datalink_name_to_val" >&5
3848 if eval "test \"`echo '$''{'ac_cv_func_pcap_datalink_name_to_val'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 cat > conftest.
$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 /* System header to define __stub macros and hopefully few prototypes,
3855 which can conflict with char pcap_datalink_name_to_val(); below. */
3857 /* Override any gcc2 internal prototype to avoid an error. */
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3860 char pcap_datalink_name_to_val();
3864 /* The GNU C library defines this for functions which it implements
3865 to always fail with ENOSYS. Some functions are actually named
3866 something starting with __ and the normal name is an alias. */
3867 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
3870 pcap_datalink_name_to_val();
3875 if { (eval echo configure
:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3877 eval "ac_cv_func_pcap_datalink_name_to_val=yes"
3879 echo "configure: failed program was:" >&5
3880 cat conftest.
$ac_ext >&5
3882 eval "ac_cv_func_pcap_datalink_name_to_val=no"
3887 if eval "test \"`echo '$ac_cv_func_'pcap_datalink_name_to_val`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3890 cat >> confdefs.h
<<\EOF
3891 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
3894 echo $ac_n "checking for pcap_datalink_val_to_description""... $ac_c" 1>&6
3895 echo "configure:3896: checking for pcap_datalink_val_to_description" >&5
3896 if eval "test \"`echo '$''{'ac_cv_func_pcap_datalink_val_to_description'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.
$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 /* System header to define __stub macros and hopefully few prototypes,
3903 which can conflict with char pcap_datalink_val_to_description(); below. */
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3908 char pcap_datalink_val_to_description();
3912 /* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
3918 pcap_datalink_val_to_description();
3923 if { (eval echo configure
:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3925 eval "ac_cv_func_pcap_datalink_val_to_description=yes"
3927 echo "configure: failed program was:" >&5
3928 cat conftest.
$ac_ext >&5
3930 eval "ac_cv_func_pcap_datalink_val_to_description=no"
3935 if eval "test \"`echo '$ac_cv_func_'pcap_datalink_val_to_description`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 cat >> confdefs.h
<<\EOF
3938 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
3942 echo "$ac_t""no" 1>&6
3943 LIBOBJS
="$LIBOBJS dlnames.o"
3948 echo "$ac_t""no" 1>&6
3949 LIBOBJS
="$LIBOBJS dlnames.o"
3953 for ac_func
in pcap_breakloop
3955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3956 echo "configure:3957: checking for $ac_func" >&5
3957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* System header to define __stub macros and hopefully few prototypes,
3964 which can conflict with char $ac_func(); below. */
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3973 /* The GNU C library defines this for functions which it implements
3974 to always fail with ENOSYS. Some functions are actually named
3975 something starting with __ and the normal name is an alias. */
3976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3984 if { (eval echo configure
:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3986 eval "ac_cv_func_$ac_func=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.
$ac_ext >&5
3991 eval "ac_cv_func_$ac_func=no"
3996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3997 echo "$ac_t""yes" 1>&6
3998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3999 cat >> confdefs.h
<<EOF
4000 #define $ac_tr_func 1
4004 echo "$ac_t""no" 1>&6
4011 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
4012 # libraries (e.g., "-lsocket -lnsl" on Solaris).
4014 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
4015 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
4016 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
4017 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
4018 # it does not ship with a libc symbol "inet_ntop()", it ships with
4019 # "_inet_ntop()", and has a #define macro in one of the system headers
4022 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
4023 echo "configure:4024: checking for inet_ntop" >&5
4024 cat > conftest.
$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 #include <sys/types.h>
4028 #include <sys/socket.h>
4029 #include <netinet/in.h>
4030 #include <arpa/inet.h>
4032 char src[4], dst[128];
4033 inet_ntop(AF_INET, src, dst, sizeof(dst));
4036 if { (eval echo configure
:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4038 echo "$ac_t""yes" 1>&6
4040 echo "configure: failed program was:" >&5
4041 cat conftest.
$ac_ext >&5
4043 echo "$ac_t""no" 1>&6
4044 LIBOBJS
="$LIBOBJS inet_ntop.o"
4047 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
4048 echo "configure:4049: checking for inet_pton" >&5
4049 cat > conftest.
$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 #include <sys/types.h>
4053 #include <sys/socket.h>
4054 #include <netinet/in.h>
4055 #include <arpa/inet.h>
4057 char src[128], dst[4];
4058 inet_pton(AF_INET, src, dst);
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4063 echo "$ac_t""yes" 1>&6
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 echo "$ac_t""no" 1>&6
4069 LIBOBJS
="$LIBOBJS inet_pton.o"
4072 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4073 echo "configure:4074: checking for inet_aton" >&5
4074 cat > conftest.
$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 #include <sys/types.h>
4078 #include <netinet/in.h>
4079 #include <arpa/inet.h>
4083 inet_aton(src, &dst);
4086 if { (eval echo configure
:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4088 echo "$ac_t""yes" 1>&6
4090 echo "configure: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4093 echo "$ac_t""no" 1>&6
4094 LIBOBJS
="$LIBOBJS inet_aton.o"
4099 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4100 echo "configure:4101: checking if sockaddr struct has sa_len member" >&5
4101 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.
$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4108 # include <sys/types.h>
4109 # include <sys/socket.h>
4111 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4114 if { (eval echo configure
:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4116 ac_cv_sockaddr_has_sa_len
=yes
4118 echo "configure: failed program was:" >&5
4119 cat conftest.
$ac_ext >&5
4121 ac_cv_sockaddr_has_sa_len
=no
4126 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
4127 if test $ac_cv_sockaddr_has_sa_len = yes ; then
4128 cat >> confdefs.h
<<\EOF
4129 #define HAVE_SOCKADDR_SA_LEN 1
4134 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
4135 missing_includes
=yes
4138 for ac_func
in pcap_findalldevs pcap_dump_flush pcap_lib_version
4140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4141 echo "configure:4142: checking for $ac_func" >&5
4142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 cat > conftest.
$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 /* System header to define __stub macros and hopefully few prototypes,
4149 which can conflict with char $ac_func(); below. */
4151 /* Override any gcc2 internal prototype to avoid an error. */
4152 /* We use char because int might match the return type of a gcc2
4153 builtin and then its argument prototype would still apply. */
4158 /* The GNU C library defines this for functions which it implements
4159 to always fail with ENOSYS. Some functions are actually named
4160 something starting with __ and the normal name is an alias. */
4161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4169 if { (eval echo configure
:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4171 eval "ac_cv_func_$ac_func=yes"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.
$ac_ext >&5
4176 eval "ac_cv_func_$ac_func=no"
4181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4182 echo "$ac_t""yes" 1>&6
4183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4184 cat >> confdefs.h
<<EOF
4185 #define $ac_tr_func 1
4189 echo "$ac_t""no" 1>&6
4193 if test $ac_cv_func_pcap_lib_version = "no" ; then
4194 echo $ac_n "checking whether pcap_version is defined by libpcap""... $ac_c" 1>&6
4195 echo "configure:4196: checking whether pcap_version is defined by libpcap" >&5
4196 cat > conftest.
$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4203 return_pcap_version(void)
4205 extern char pcap_version[];
4207 return pcap_version;
4212 if { (eval echo configure
:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4214 ac_lbl_cv_pcap_version_defined
=yes
4216 echo "configure: failed program was:" >&5
4217 cat conftest.
$ac_ext >&5
4219 ac_lbl_cv_pcap_version_defined
=no
4222 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
4223 echo "$ac_t""yes" 1>&6
4224 cat >> confdefs.h
<<\EOF
4225 #define HAVE_PCAP_VERSION 1
4229 echo "$ac_t""no" 1>&6
4232 echo $ac_n "checking whether pcap_debug is defined by libpcap""... $ac_c" 1>&6
4233 echo "configure:4234: checking whether pcap_debug is defined by libpcap" >&5
4234 cat > conftest.
$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4241 return_pcap_debug(void)
4243 extern int pcap_debug;
4250 if { (eval echo configure
:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4252 ac_lbl_cv_pcap_debug_defined
=yes
4254 echo "configure: failed program was:" >&5
4255 cat conftest.
$ac_ext >&5
4257 ac_lbl_cv_pcap_debug_defined
=no
4260 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
4261 echo "$ac_t""yes" 1>&6
4262 cat >> confdefs.h
<<\EOF
4263 #define HAVE_PCAP_DEBUG 1
4267 echo "$ac_t""no" 1>&6
4269 # OK, what about "yydebug"?
4271 echo $ac_n "checking whether yydebug is defined by libpcap""... $ac_c" 1>&6
4272 echo "configure:4273: checking whether yydebug is defined by libpcap" >&5
4273 cat > conftest.
$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4280 return_yydebug(void)
4289 if { (eval echo configure
:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4291 ac_lbl_cv_yydebug_defined
=yes
4293 echo "configure: failed program was:" >&5
4294 cat conftest.
$ac_ext >&5
4296 ac_lbl_cv_yydebug_defined
=no
4299 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
4300 echo "$ac_t""yes" 1>&6
4301 cat >> confdefs.h
<<\EOF
4302 #define HAVE_YYDEBUG 1
4306 echo "$ac_t""no" 1>&6
4309 for ac_func
in bpf_dump
4311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_func" >&5
4313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 cat > conftest.
$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 /* System header to define __stub macros and hopefully few prototypes,
4320 which can conflict with char $ac_func(); below. */
4322 /* Override any gcc2 internal prototype to avoid an error. */
4323 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */
4329 /* The GNU C library defines this for functions which it implements
4330 to always fail with ENOSYS. Some functions are actually named
4331 something starting with __ and the normal name is an alias. */
4332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4340 if { (eval echo configure
:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4342 eval "ac_cv_func_$ac_func=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4347 eval "ac_cv_func_$ac_func=no"
4352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4355 cat >> confdefs.h
<<EOF
4356 #define $ac_tr_func 1
4360 echo "$ac_t""no" 1>&6
4361 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
4367 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
4373 cat >> confdefs.h
<<\EOF
4392 if test -f /dev
/bpf0
; then
4396 echo $ac_n "checking for int8_t using $CC""... $ac_c" 1>&6
4397 echo "configure:4398: checking for int8_t using $CC" >&5
4398 if eval "test \"`echo '$''{'ac_cv_lbl_have_int8_t'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4405 # include "confdefs.h"
4406 # include <sys/types.h>
4408 # include <stdlib.h>
4409 # include <stddef.h>
4415 if { (eval echo configure
:4416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4417 ac_cv_lbl_have_int8_t
=yes
4419 echo "configure: failed program was:" >&5
4420 cat conftest.
$ac_ext >&5
4422 ac_cv_lbl_have_int8_t
=no
4427 echo "$ac_t""$ac_cv_lbl_have_int8_t" 1>&6
4428 if test $ac_cv_lbl_have_int8_t = no
; then
4429 cat >> confdefs.h
<<\EOF
4430 #define int8_t signed char
4434 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
4435 echo "configure:4436: checking for u_int8_t using $CC" >&5
4436 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 cat > conftest.
$ac_ext <<EOF
4440 #line 4441 "configure"
4441 #include "confdefs.h"
4443 # include "confdefs.h"
4444 # include <sys/types.h>
4446 # include <stdlib.h>
4447 # include <stddef.h>
4453 if { (eval echo configure
:4454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4455 ac_cv_lbl_have_u_int8_t
=yes
4457 echo "configure: failed program was:" >&5
4458 cat conftest.
$ac_ext >&5
4460 ac_cv_lbl_have_u_int8_t
=no
4465 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4466 if test $ac_cv_lbl_have_u_int8_t = no
; then
4467 cat >> confdefs.h
<<\EOF
4468 #define u_int8_t u_char
4472 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4473 echo "configure:4474: checking for int16_t using $CC" >&5
4474 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4477 cat > conftest.
$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4481 # include "confdefs.h"
4482 # include <sys/types.h>
4484 # include <stdlib.h>
4485 # include <stddef.h>
4491 if { (eval echo configure
:4492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4493 ac_cv_lbl_have_int16_t
=yes
4495 echo "configure: failed program was:" >&5
4496 cat conftest.
$ac_ext >&5
4498 ac_cv_lbl_have_int16_t
=no
4503 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4504 if test $ac_cv_lbl_have_int16_t = no
; then
4505 cat >> confdefs.h
<<\EOF
4506 #define int16_t short
4510 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4511 echo "configure:4512: checking for u_int16_t using $CC" >&5
4512 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.
$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4519 # include "confdefs.h"
4520 # include <sys/types.h>
4522 # include <stdlib.h>
4523 # include <stddef.h>
4529 if { (eval echo configure
:4530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4531 ac_cv_lbl_have_u_int16_t
=yes
4533 echo "configure: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4536 ac_cv_lbl_have_u_int16_t
=no
4541 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4542 if test $ac_cv_lbl_have_u_int16_t = no
; then
4543 cat >> confdefs.h
<<\EOF
4544 #define u_int16_t u_short
4548 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4549 echo "configure:4550: checking for int32_t using $CC" >&5
4550 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4557 # include "confdefs.h"
4558 # include <sys/types.h>
4560 # include <stdlib.h>
4561 # include <stddef.h>
4567 if { (eval echo configure
:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4569 ac_cv_lbl_have_int32_t
=yes
4571 echo "configure: failed program was:" >&5
4572 cat conftest.
$ac_ext >&5
4574 ac_cv_lbl_have_int32_t
=no
4579 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4580 if test $ac_cv_lbl_have_int32_t = no
; then
4581 cat >> confdefs.h
<<\EOF
4586 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4587 echo "configure:4588: checking for u_int32_t using $CC" >&5
4588 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4591 cat > conftest.
$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4595 # include "confdefs.h"
4596 # include <sys/types.h>
4598 # include <stdlib.h>
4599 # include <stddef.h>
4605 if { (eval echo configure
:4606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4607 ac_cv_lbl_have_u_int32_t
=yes
4609 echo "configure: failed program was:" >&5
4610 cat conftest.
$ac_ext >&5
4612 ac_cv_lbl_have_u_int32_t
=no
4617 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4618 if test $ac_cv_lbl_have_u_int32_t = no
; then
4619 cat >> confdefs.h
<<\EOF
4620 #define u_int32_t u_int
4626 if test "${LBL_CFLAGS+set}" = set; then
4627 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4629 if test -f .devel
; then
4630 if test "$GCC" = yes ; then
4631 if test "${LBL_CFLAGS+set}" != set; then
4632 if test "$ac_cv_prog_cc_g" = yes ; then
4633 V_CCOPT
="-g $V_CCOPT"
4635 V_CCOPT
="$V_CCOPT -Wall"
4636 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4637 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
4644 V_CCOPT
="$V_CCOPT -n32"
4651 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4653 if test -f $name ; then
4654 ln -s $name os-proto.h
4655 cat >> confdefs.h
<<\EOF
4656 #define HAVE_OS_PROTO_H 1
4660 echo "configure: warning: can't find $name" 1>&2
4664 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4665 echo "configure:4666: checking if sockaddr struct has sa_len member" >&5
4666 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.
$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4673 # include <sys/types.h>
4674 # include <sys/socket.h>
4676 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4679 if { (eval echo configure
:4680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4681 ac_cv_lbl_sockaddr_has_sa_len
=yes
4683 echo "configure: failed program was:" >&5
4684 cat conftest.
$ac_ext >&5
4686 ac_cv_lbl_sockaddr_has_sa_len
=no
4691 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4692 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4693 cat >> confdefs.h
<<\EOF
4694 #define HAVE_SOCKADDR_SA_LEN 1
4699 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4700 echo "configure:4701: checking if unaligned accesses fail" >&5
4701 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4707 # These are CPU types where:
4709 # the CPU faults on an unaligned access, but at least some
4710 # OSes that support that CPU catch the fault and simulate
4711 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
4712 # the simulation is slow, so we don't want to use it;
4714 # the CPU, I infer (from the old
4716 # XXX: should also check that they don't do weird things (like on arm)
4718 # comment) doesn't fault on unaligned accesses, but doesn't
4719 # do a normal unaligned fetch, either (e.g., presumably, ARM);
4721 # for whatever reason, the test program doesn't work
4722 # (this has been claimed to be the case for several of those
4723 # CPUs - I don't know what the problem is; the problem
4724 # was reported as "the test program dumps core" for SuperH,
4725 # but that's what the test program is *supposed* to do -
4726 # it dumps core before it writes anything, so the test
4727 # for an empty output file should find an empty output
4728 # file and conclude that unaligned accesses don't work).
4730 # This run-time test won't work if you're cross-compiling, so
4731 # in order to support cross-compiling for a particular CPU,
4732 # we have to wire in the list of CPU types anyway, as far as
4733 # I know, so perhaps we should just have a set of CPUs on
4734 # which we know it doesn't work, a set of CPUs on which we
4735 # know it does work, and have the script just fail on other
4736 # cpu types and update it when such a failure occurs.
4738 alpha
*|arm
*|hp
*|mips
*|sh
*|sparc
*|ia64|nv1
)
4739 ac_cv_lbl_unaligned_fail
=yes
4743 cat >conftest.c
<<EOF
4744 # include <sys/types.h>
4745 # include <sys/wait.h>
4747 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4752 /* avoid "core dumped" message */
4758 pid = waitpid(pid, &status, 0);
4761 exit(!WIFEXITED(status));
4764 i = *(unsigned int *)&a[1];
4769 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4770 conftest.c
$LIBS >/dev
/null
2>&1
4771 if test ! -x conftest
; then
4772 ac_cv_lbl_unaligned_fail
=yes
4774 .
/conftest
>conftest.out
4775 if test ! -s conftest.out
; then
4776 ac_cv_lbl_unaligned_fail
=yes
4778 ac_cv_lbl_unaligned_fail
=no
4781 rm -f conftest
* core core.conftest
4786 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4787 if test $ac_cv_lbl_unaligned_fail = yes ; then
4788 cat >> confdefs.h
<<\EOF
4795 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4796 echo "configure:4797: checking for h_errno" >&5
4797 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 cat > conftest.
$ac_ext <<EOF
4801 #line 4802 "configure"
4802 #include "confdefs.h"
4804 # include <sys/types.h>
4810 if { (eval echo configure
:4811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4812 ac_cv_var_h_errno
=yes
4814 echo "configure: failed program was:" >&5
4815 cat conftest.
$ac_ext >&5
4817 ac_cv_var_h_errno
=no
4822 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4823 if test "$ac_cv_var_h_errno" = "yes"; then
4824 cat >> confdefs.h
<<\EOF
4825 #define HAVE_H_ERRNO 1
4831 # Check whether --with-crypto or --without-crypto was given.
4832 if test "${with_crypto+set}" = set; then
4833 withval
="$with_crypto"
4837 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4838 echo "configure:4839: checking for SSLeay" >&5
4839 ac_cv_ssleay_path
=no
4841 for dir
in /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4843 # XXX - is there a better way to check if a given library is
4844 # in a given directory than checking each of the possible
4845 # shared library suffixes?
4847 # Are there any other suffixes we need to look for? Do we have to
4848 # worry about ".so.{version}"?
4850 # Or should we just look for "libcrypto.*"?
4852 if test -d $dir/lib
-a \
( -f $dir/lib
/libcrypto.a
-o \
4853 -f $dir/lib
/libcrypto.so
-o \
4854 -f $dir/lib
/libcrypto.sl
-o \
4855 -f $dir/lib
/libcrypto.dylib \
); then
4856 ac_cv_ssleay_path
=$dir
4858 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4859 incdir
="-I$dir/include"
4861 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4864 ac_cv_ssleay_path
=no
4868 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4869 if test "$ac_cv_ssleay_path" != no
; then
4870 V_INCLS
="$V_INCLS $incdir"
4871 LDFLAGS
="-L$dir/lib $LDFLAGS"
4872 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4873 LIBS
="$LIBS -lRSAglue"
4875 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4876 LIBS
="$LIBS -lrsaref"
4878 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4879 echo "configure:4880: checking for des_cbc_encrypt in -lcrypto" >&5
4880 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4884 ac_save_LIBS
="$LIBS"
4885 LIBS
="-lcrypto $LIBS"
4886 cat > conftest.
$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 /* Override any gcc2 internal prototype to avoid an error. */
4890 /* We use char because int might match the return type of a gcc2
4891 builtin and then its argument prototype would still apply. */
4892 char des_cbc_encrypt();
4898 if { (eval echo configure
:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4900 eval "ac_cv_lib_$ac_lib_var=yes"
4902 echo "configure: failed program was:" >&5
4903 cat conftest.
$ac_ext >&5
4905 eval "ac_cv_lib_$ac_lib_var=no"
4908 LIBS
="$ac_save_LIBS"
4911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4913 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4915 cat >> confdefs.h
<<EOF
4916 #define $ac_tr_lib 1
4919 LIBS
="-lcrypto $LIBS"
4922 echo "$ac_t""no" 1>&6
4926 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4927 for ac_hdr
in openssl
/evp.h
4929 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4931 echo "configure:4932: checking for $ac_hdr" >&5
4932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 cat > conftest.
$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4940 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4941 { (eval echo configure
:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4942 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4943 if test -z "$ac_err"; then
4945 eval "ac_cv_header_$ac_safe=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.
$ac_ext >&5
4951 eval "ac_cv_header_$ac_safe=no"
4955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4958 cat >> confdefs.h
<<EOF
4959 #define $ac_tr_hdr 1
4963 echo "$ac_t""no" 1>&6
4972 if test "$missing_includes" = "yes"; then
4973 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
4974 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
4984 # Find a good install program. We prefer a C program (faster),
4985 # so one script is as good as another. But avoid the broken or
4986 # incompatible versions:
4987 # SysV /etc/install, /usr/sbin/install
4988 # SunOS /usr/etc/install
4989 # IRIX /sbin/install
4991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4994 # ./install, which can be erroneously created by make from ./install.sh.
4995 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4996 echo "configure:4997: checking for a BSD compatible install" >&5
4997 if test -z "$INSTALL"; then
4998 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5001 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
5002 for ac_dir
in $PATH; do
5003 # Account for people who put trailing slashes in PATH elements.
5005 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5007 # OSF1 and SCO ODT 3.0 have their own names for install.
5008 # Don't use installbsd from OSF since it installs stuff as root
5010 for ac_prog
in ginstall scoinst
install; do
5011 if test -f $ac_dir/$ac_prog; then
5012 if test $ac_prog = install &&
5013 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5014 # AIX install. It has an incompatible calling convention.
5017 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5028 if test "${ac_cv_path_install+set}" = set; then
5029 INSTALL
="$ac_cv_path_install"
5031 # As a last resort, use the slow shell script. We don't cache a
5032 # path for INSTALL within a source directory, because that will
5033 # break other packages using the cache if that directory is
5034 # removed, or if the path is relative.
5035 INSTALL
="$ac_install_sh"
5038 echo "$ac_t""$INSTALL" 1>&6
5040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5041 # It thinks the first close brace ends the variable substitution.
5042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
5046 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5053 cat > confcache
<<\EOF
5054 # This file is a shell script that caches the results of configure
5055 # tests run on this system so they can be shared between configure
5056 # scripts and configure runs. It is not useful on other systems.
5057 # If it contains results you don't want to keep, you may remove or edit it.
5059 # By default, configure uses ./config.cache as the cache file,
5060 # creating it if it does not exist already. You can give configure
5061 # the --cache-file=FILE option to use a different cache file; that is
5062 # what configure does when it calls configure scripts in
5063 # subdirectories, so they share the cache.
5064 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5065 # config.status only pays attention to the cache file if you give it the
5066 # --recheck option to rerun configure.
5069 # The following way of writing the cache mishandles newlines in values,
5070 # but we know of no workaround that is simple, portable, and efficient.
5071 # So, don't put newlines in cache variables' values.
5072 # Ultrix sh set writes to stderr and can't be redirected directly,
5073 # and sets the high bit in the cache file unless we assign to the vars.
5075 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5077 # `set' does not quote correctly, so add quotes (double-quote substitution
5078 # turns \\\\ into \\, and sed turns \\ into \).
5080 -e "s/'/'\\\\''/g" \
5081 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5084 # `set' quotes correctly as required by POSIX, so do not add quotes.
5085 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5088 if cmp -s $cache_file confcache
; then
5091 if test -w $cache_file; then
5092 echo "updating cache $cache_file"
5093 cat confcache
> $cache_file
5095 echo "not updating unwritable cache $cache_file"
5100 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5102 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5103 # Let make expand exec_prefix.
5104 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5106 # Any assignment to VPATH causes Sun make to only execute
5107 # the first set of double-colon rules, so remove it if not needed.
5108 # If there is a colon in the path, we need to keep it.
5109 if test "x$srcdir" = x.
; then
5110 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5113 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5115 DEFS
=-DHAVE_CONFIG_H
5117 # Without the "./", some shells look in PATH for config.status.
5118 : ${CONFIG_STATUS=./config.status}
5120 echo creating
$CONFIG_STATUS
5121 rm -f $CONFIG_STATUS
5122 cat > $CONFIG_STATUS <<EOF
5124 # Generated automatically by configure.
5125 # Run this file to recreate the current configuration.
5126 # This directory was configured as follows,
5127 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5129 # $0 $ac_configure_args
5131 # Compiler output produced by configure, useful for debugging
5132 # configure, is in ./config.log if it exists.
5134 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5137 case "\$ac_option" in
5138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5139 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5140 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5141 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5142 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5144 -help | --help | --hel | --he | --h)
5145 echo "\$ac_cs_usage"; exit 0 ;;
5146 *) echo "\$ac_cs_usage"; exit 1 ;;
5150 ac_given_srcdir=$srcdir
5151 ac_given_INSTALL="$INSTALL"
5153 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5155 cat >> $CONFIG_STATUS <<EOF
5157 # Protect against being on the right side of a sed subst in config.status.
5158 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5159 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5163 s%@CFLAGS@%$CFLAGS%g
5164 s%@CPPFLAGS@%$CPPFLAGS%g
5165 s%@CXXFLAGS@%$CXXFLAGS%g
5166 s%@FFLAGS@%$FFLAGS%g
5168 s%@LDFLAGS@%$LDFLAGS%g
5170 s%@exec_prefix@%$exec_prefix%g
5171 s%@prefix@%$prefix%g
5172 s%@program_transform_name@%$program_transform_name%g
5173 s%@bindir@%$bindir%g
5174 s%@sbindir@%$sbindir%g
5175 s%@libexecdir@%$libexecdir%g
5176 s%@datadir@%$datadir%g
5177 s%@sysconfdir@%$sysconfdir%g
5178 s%@sharedstatedir@%$sharedstatedir%g
5179 s%@localstatedir@%$localstatedir%g
5180 s%@libdir@%$libdir%g
5181 s%@includedir@%$includedir%g
5182 s%@oldincludedir@%$oldincludedir%g
5183 s%@infodir@%$infodir%g
5184 s%@mandir@%$mandir%g
5186 s%@host_alias@%$host_alias%g
5187 s%@host_cpu@%$host_cpu%g
5188 s%@host_vendor@%$host_vendor%g
5189 s%@host_os@%$host_os%g
5190 s%@SHLICC2@%$SHLICC2%g
5193 s%@LIBOBJS@%$LIBOBJS%g
5194 s%@V_CCOPT@%$V_CCOPT%g
5195 s%@V_DEFS@%$V_DEFS%g
5196 s%@V_GROUP@%$V_GROUP%g
5197 s%@V_INCLS@%$V_INCLS%g
5198 s%@V_PCAPDEP@%$V_PCAPDEP%g
5199 s%@LOCALSRC@%$LOCALSRC%g
5200 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5201 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5202 s%@INSTALL_DATA@%$INSTALL_DATA%g
5207 cat >> $CONFIG_STATUS <<\EOF
5209 # Split the substitutions into bite-sized pieces for seds with
5210 # small command number limits, like on Digital OSF/1 and HP-UX.
5211 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5212 ac_file
=1 # Number of current file.
5213 ac_beg
=1 # First line for current file.
5214 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5217 while $ac_more_lines; do
5218 if test $ac_beg -gt 1; then
5219 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5221 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5223 if test ! -s conftest.s
$ac_file; then
5225 rm -f conftest.s
$ac_file
5227 if test -z "$ac_sed_cmds"; then
5228 ac_sed_cmds
="sed -f conftest.s$ac_file"
5230 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5232 ac_file
=`expr $ac_file + 1`
5234 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5237 if test -z "$ac_sed_cmds"; then
5242 cat >> $CONFIG_STATUS <<EOF
5244 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
5246 cat >> $CONFIG_STATUS <<\EOF
5247 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5250 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5251 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5252 *) ac_file_in
="${ac_file}.in" ;;
5255 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5257 # Remove last slash and all that follows it. Not all systems have dirname.
5258 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5259 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5260 # The file is in a subdirectory.
5261 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5262 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5263 # A "../" for each directory in $ac_dir_suffix.
5264 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5266 ac_dir_suffix
= ac_dots
=
5269 case "$ac_given_srcdir" in
5271 if test -z "$ac_dots"; then top_srcdir
=.
5272 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5273 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5275 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5276 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5279 case "$ac_given_INSTALL" in
5280 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5281 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5284 echo creating
"$ac_file"
5286 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5288 *Makefile
*) ac_comsub
="1i\\
5289 # $configure_input" ;;
5293 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5295 s%@configure_input@%$configure_input%g
5296 s%@srcdir@%$srcdir%g
5297 s%@top_srcdir@%$top_srcdir%g
5298 s%@INSTALL@%$INSTALL%g
5299 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5306 # ac_d sets the value in "#define NAME VALUE" lines.
5307 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5308 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5311 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5312 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5313 ac_uB
='\([ ]\)%\1#\2define\3'
5316 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5317 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5318 ac_eB
='$%\1#\2define\3'
5322 if test "${CONFIG_HEADERS+set}" != set; then
5324 cat >> $CONFIG_STATUS <<EOF
5325 CONFIG_HEADERS="config.h"
5327 cat >> $CONFIG_STATUS <<\EOF
5329 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5332 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5333 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5334 *) ac_file_in
="${ac_file}.in" ;;
5337 echo creating
$ac_file
5339 rm -f conftest.frag conftest.
in conftest.out
5340 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5341 cat $ac_file_inputs > conftest.
in
5345 # Transform confdefs.h into a sed script conftest.vals that substitutes
5346 # the proper values into config.h.in to produce config.h. And first:
5347 # Protect against being on the right side of a sed subst in config.status.
5348 # Protect against being in an unquoted here document in config.status.
5350 cat > conftest.hdr
<<\EOF
5353 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5357 sed -n -f conftest.hdr confdefs.h > conftest.vals
5360 # This sed command replaces #undef with comments. This is necessary, for
5361 # example, in the case of _POSIX_SOURCE, which is predefined and required
5362 # on some systems where configure will not decide to define it.
5363 cat >> conftest.vals <<\EOF
5364 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5367 # Break up conftest.vals because some shells have a limit on
5368 # the size of here documents, and old seds have small limits too.
5373 ac_lines=`grep -c . conftest.vals
`
5374 # grep -c gives empty output for an empty file on some AIX systems.
5375 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5376 # Write a limited-size here document to conftest.frag.
5377 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5378 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5380 sed -f conftest.frag conftest.in > conftest.out
5382 mv conftest.out conftest.in
5384 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5386 mv conftest.tail conftest.vals
5390 cat >> $CONFIG_STATUS <<\EOF
5391 rm -f conftest.frag conftest.h
5392 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5393 cat conftest.in >> conftest.h
5395 if cmp -s $ac_file conftest.h 2>/dev/null; then
5396 echo "$ac_file is unchanged"
5399 # Remove last slash and all that follows it. Not all systems have dirname.
5400 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5401 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5402 # The file is in a subdirectory.
5403 test ! -d "$ac_dir" && mkdir "$ac_dir"
5406 mv conftest.h $ac_file
5411 cat >> $CONFIG_STATUS <<EOF
5415 cat >> $CONFIG_STATUS <<\EOF
5416 if test -f .devel; then
5417 echo timestamp > stamp-h
5418 cat Makefile-devel-adds >> Makefile
5424 chmod +x $CONFIG_STATUS
5425 rm -fr confdefs* $ac_clean_files
5426 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1