3 # From configure.in Revision: 1.149
65 # Guess values for system-dependent variables and create Makefiles.
66 # Generated automatically using autoconf version 2.13
67 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
69 # This configure script is free software; the Free Software Foundation
70 # gives unlimited permission to copy, distribute and modify it.
74 ac_default_prefix
=/usr
/local
75 # Any additions from configure.in:
77 --without-gcc don't use gcc"
79 --enable-smb enable possibly-buggy SMB printer [default=yes]
80 --disable-smb disable possibly-buggy SMB printer"
82 --enable-ipv6 enable ipv6 (with ipv4) support
83 --disable-ipv6 disable ipv6 support"
85 --without-crypto disable crypto support"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=tcpdump.c
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
598 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
599 if test -f $ac_dir/install-sh
; then
601 ac_install_sh
="$ac_aux_dir/install-sh -c"
603 elif test -f $ac_dir/install.sh
; then
605 ac_install_sh
="$ac_aux_dir/install.sh -c"
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
612 ac_config_guess
=$ac_aux_dir/config.guess
613 ac_config_sub
=$ac_aux_dir/config.sub
614 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
617 # Make sure we can run config.sub.
618 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
619 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
622 echo $ac_n "checking host system type""... $ac_c" 1>&6
623 echo "configure:624: checking host system type" >&5
626 case "$host_alias" in
630 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
631 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
633 *) host_alias
=$nonopt ;;
637 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
638 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$host" 1>&6
648 # Check whether --with-gcc or --without-gcc was given.
649 if test "${with_gcc+set}" = set; then
656 if test "${srcdir}" != "." ; then
657 V_INCLS
="-I\$(srcdir)"
659 if test "${CFLAGS+set}" = set; then
662 if test -z "$CC" ; then
666 # Extract the first word of "shlicc2", so it can be a program name with args.
667 set dummy shlicc2
; ac_word
=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$SHLICC2"; then
674 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
676 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
678 for ac_dir
in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir
=.
680 if test -f $ac_dir/$ac_word; then
681 ac_cv_prog_SHLICC2
="yes"
686 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
689 SHLICC2
="$ac_cv_prog_SHLICC2"
690 if test -n "$SHLICC2"; then
691 echo "$ac_t""$SHLICC2" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test $SHLICC2 = yes ; then
703 if test -z "$CC" -a "$with_gcc" = no
; then
707 # Extract the first word of "gcc", so it can be a program name with args.
708 set dummy gcc
; ac_word
=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 echo "configure:711: checking for $ac_word" >&5
711 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
714 if test -n "$CC"; then
715 ac_cv_prog_CC
="$CC" # Let the user override the test.
717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
719 for ac_dir
in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir
=.
721 if test -f $ac_dir/$ac_word; then
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
737 # Extract the first word of "cc", so it can be a program name with args.
738 set dummy cc
; ac_word
=$2
739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
740 echo "configure:741: checking for $ac_word" >&5
741 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 if test -n "$CC"; then
745 ac_cv_prog_CC
="$CC" # Let the user override the test.
747 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
750 for ac_dir
in $ac_dummy; do
751 test -z "$ac_dir" && ac_dir
=.
752 if test -f $ac_dir/$ac_word; then
753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
762 if test $ac_prog_rejected = yes; then
763 # We found a bogon in the path, so make sure we never use it.
764 set dummy
$ac_cv_prog_CC
766 if test $# -gt 0; then
767 # We chose a different compiler from the bogus one.
768 # However, it has the same basename, so the bogon will be chosen
769 # first if we set CC to just the basename; use the full file name.
771 set dummy
"$ac_dir/$ac_word" "$@"
779 if test -n "$CC"; then
780 echo "$ac_t""$CC" 1>&6
782 echo "$ac_t""no" 1>&6
785 if test -z "$CC"; then
788 # Extract the first word of "cl", so it can be a program name with args.
789 set dummy cl
; ac_word
=$2
790 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
791 echo "configure:792: checking for $ac_word" >&5
792 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 if test -n "$CC"; then
796 ac_cv_prog_CC
="$CC" # Let the user override the test.
798 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
800 for ac_dir
in $ac_dummy; do
801 test -z "$ac_dir" && ac_dir
=.
802 if test -f $ac_dir/$ac_word; then
811 if test -n "$CC"; then
812 echo "$ac_t""$CC" 1>&6
814 echo "$ac_t""no" 1>&6
819 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
822 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
823 echo "configure:824: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
826 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
827 ac_cpp
='$CPP $CPPFLAGS'
828 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
829 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
830 cross_compiling
=$ac_cv_prog_cc_cross
832 cat > conftest.
$ac_ext << EOF
834 #line 835 "configure"
835 #include "confdefs.h"
839 if { (eval echo configure
:840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
840 ac_cv_prog_cc_works
=yes
841 # If we can't run a trivial program, we are probably using a cross compiler.
842 if (.
/conftest
; exit) 2>/dev
/null
; then
843 ac_cv_prog_cc_cross
=no
845 ac_cv_prog_cc_cross
=yes
848 echo "configure: failed program was:" >&5
849 cat conftest.
$ac_ext >&5
850 ac_cv_prog_cc_works
=no
854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
855 ac_cpp
='$CPP $CPPFLAGS'
856 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
857 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
858 cross_compiling
=$ac_cv_prog_cc_cross
860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
861 if test $ac_cv_prog_cc_works = no
; then
862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
865 echo "configure:866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
867 cross_compiling
=$ac_cv_prog_cc_cross
869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
870 echo "configure:871: checking whether we are using GNU C" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 cat > conftest.c
<<EOF
879 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
886 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
888 if test $ac_cv_prog_gcc = yes; then
894 ac_test_CFLAGS
="${CFLAGS+set}"
895 ac_save_CFLAGS
="$CFLAGS"
897 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${CC-cc} accepts -g" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 echo 'void f(){}' > conftest.c
903 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
912 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
913 if test "$ac_test_CFLAGS" = set; then
914 CFLAGS
="$ac_save_CFLAGS"
915 elif test $ac_cv_prog_cc_g = yes; then
916 if test "$GCC" = yes; then
922 if test "$GCC" = yes; then
929 if test "$GCC" = yes ; then
930 if test "$SHLICC2" = yes ; then
934 echo $ac_n "checking gcc version""... $ac_c" 1>&6
935 echo "configure:936: checking gcc version" >&5
936 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
940 sed -e '/^gcc version /!d' \
941 -e 's/^gcc version //' \
942 -e 's/ .*//' -e 's/^[^0-9]*//' \
946 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
947 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
952 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
953 echo "configure:954: checking that $CC handles ansi prototypes" >&5
954 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.
$ac_ext <<EOF
958 #line 959 "configure"
959 #include "confdefs.h"
960 #include <sys/types.h>
962 int frob(int, char *)
965 if { (eval echo configure
:966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
967 ac_cv_lbl_cc_ansi_prototypes
=yes
969 echo "configure: failed program was:" >&5
970 cat conftest.
$ac_ext >&5
972 ac_cv_lbl_cc_ansi_prototypes
=no
977 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
978 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
982 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
983 echo "configure:984: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
984 savedcflags
="$CFLAGS"
985 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
986 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftest.
$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
992 #include <sys/types.h>
994 int frob(int, char *)
997 if { (eval echo configure
:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
999 ac_cv_lbl_cc_hpux_cc_aa
=yes
1001 echo "configure: failed program was:" >&5
1002 cat conftest.
$ac_ext >&5
1004 ac_cv_lbl_cc_hpux_cc_aa
=no
1009 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1010 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1011 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1013 CFLAGS
="$savedcflags"
1014 V_CCOPT
="-Aa $V_CCOPT"
1015 cat >> confdefs.h
<<\EOF
1016 #define _HPUX_SOURCE 1
1022 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1026 V_INCLS
="$V_INCLS -I/usr/local/include"
1027 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1032 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1036 V_CCOPT
="$V_CCOPT -std1 -O"
1040 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1041 echo "configure:1042: checking that Ultrix $CC hacks const in prototypes" >&5
1042 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.
$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <sys/types.h>
1050 struct a { int b; };
1051 void c(const struct a *)
1054 if { (eval echo configure
:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1056 ac_cv_lbl_cc_const_proto
=yes
1058 echo "configure: failed program was:" >&5
1059 cat conftest.
$ac_ext >&5
1061 ac_cv_lbl_cc_const_proto
=no
1066 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1067 if test $ac_cv_lbl_cc_const_proto = no
; then
1068 cat >> confdefs.h
<<\EOF
1077 echo $ac_n "checking for inline""... $ac_c" 1>&6
1078 echo "configure:1079: checking for inline" >&5
1079 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1083 for ac_kw
in inline __inline__ __inline
; do
1084 cat > conftest.
$ac_ext <<EOF
1085 #line 1086 "configure"
1086 #include "confdefs.h"
1092 if { (eval echo configure
:1093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094 ac_cv_c_inline
=$ac_kw; break
1096 echo "configure: failed program was:" >&5
1097 cat conftest.
$ac_ext >&5
1104 echo "$ac_t""$ac_cv_c_inline" 1>&6
1105 case "$ac_cv_c_inline" in
1107 no
) cat >> confdefs.h
<<\EOF
1111 *) cat >> confdefs.h
<<EOF
1112 #define inline $ac_cv_c_inline
1118 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1119 echo "configure:1120: checking for __attribute__" >&5
1120 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1124 cat > conftest.
$ac_ext <<EOF
1125 #line 1126 "configure"
1126 #include "confdefs.h"
1132 static void foo(void) __attribute__ ((noreturn));
1142 if { (eval echo configure
:1143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1144 ac_cv___attribute__
=yes
1146 echo "configure: failed program was:" >&5
1147 cat conftest.
$ac_ext >&5
1149 ac_cv___attribute__
=no
1154 if test "$ac_cv___attribute__" = "yes"; then
1155 cat >> confdefs.h
<<\EOF
1156 #define HAVE___ATTRIBUTE__ 1
1160 echo "$ac_t""$ac_cv___attribute__" 1>&6
1163 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1164 echo "configure:1165: checking how to run the C preprocessor" >&5
1165 # On Suns, sometimes $CPP names a directory.
1166 if test -n "$CPP" && test -d "$CPP"; then
1169 if test -z "$CPP"; then
1170 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 # This must be in double quotes, not single quotes, because CPP may get
1174 # substituted into the Makefile and "${CC-cc}" will confuse make.
1176 # On the NeXT, cc -E runs the code through the compiler's parser,
1177 # not just through cpp.
1178 cat > conftest.
$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1184 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1185 { (eval echo configure
:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1186 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1187 if test -z "$ac_err"; then
1191 echo "configure: failed program was:" >&5
1192 cat conftest.
$ac_ext >&5
1194 CPP
="${CC-cc} -E -traditional-cpp"
1195 cat > conftest.
$ac_ext <<EOF
1196 #line 1197 "configure"
1197 #include "confdefs.h"
1201 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1202 { (eval echo configure
:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1203 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1204 if test -z "$ac_err"; then
1208 echo "configure: failed program was:" >&5
1209 cat conftest.
$ac_ext >&5
1211 CPP
="${CC-cc} -nologo -E"
1212 cat > conftest.
$ac_ext <<EOF
1213 #line 1214 "configure"
1214 #include "confdefs.h"
1218 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1219 { (eval echo configure
:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1220 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1221 if test -z "$ac_err"; then
1225 echo "configure: failed program was:" >&5
1226 cat conftest.
$ac_ext >&5
1235 ac_cv_prog_CPP
="$CPP"
1237 CPP
="$ac_cv_prog_CPP"
1239 ac_cv_prog_CPP
="$CPP"
1241 echo "$ac_t""$CPP" 1>&6
1243 for ac_hdr
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h netdnet
/dnetdb.h
1245 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_hdr" >&5
1248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.
$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1256 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure
:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1259 if test -z "$ac_err"; then
1261 eval "ac_cv_header_$ac_safe=yes"
1264 echo "configure: failed program was:" >&5
1265 cat conftest.
$ac_ext >&5
1267 eval "ac_cv_header_$ac_safe=no"
1271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1272 echo "$ac_t""yes" 1>&6
1273 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1274 cat >> confdefs.h
<<EOF
1275 #define $ac_tr_hdr 1
1279 echo "$ac_t""no" 1>&6
1283 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether time.h and sys/time.h may both be included" >&5
1285 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1291 #include <sys/types.h>
1292 #include <sys/time.h>
1298 if { (eval echo configure
:1299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1300 ac_cv_header_time
=yes
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 ac_cv_header_time
=no
1310 echo "$ac_t""$ac_cv_header_time" 1>&6
1311 if test $ac_cv_header_time = yes; then
1312 cat >> confdefs.h
<<\EOF
1313 #define TIME_WITH_SYS_TIME 1
1322 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1323 echo "configure:1324: checking Linux kernel version" >&5
1324 if test "$cross_compiling" = yes; then
1325 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 ac_cv_linux_vers
=unknown
1332 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 ac_cv_linux_vers
=`uname -r 2>&1 | \
1336 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1340 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1341 if test $ac_cv_linux_vers = unknown
; then
1342 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1344 if test $ac_cv_linux_vers -lt 2 ; then
1345 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1356 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_hdr" >&5
1359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftest.
$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1368 { (eval echo configure
:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1369 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1370 if test -z "$ac_err"; then
1372 eval "ac_cv_header_$ac_safe=yes"
1375 echo "configure: failed program was:" >&5
1376 cat conftest.
$ac_ext >&5
1378 eval "ac_cv_header_$ac_safe=no"
1382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1383 echo "$ac_t""yes" 1>&6
1384 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1385 cat >> confdefs.h
<<EOF
1386 #define $ac_tr_hdr 1
1390 echo "$ac_t""no" 1>&6
1394 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1395 echo "configure:1396: checking for smiInit in -lsmi" >&5
1396 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1400 ac_save_LIBS
="$LIBS"
1402 cat > conftest.
$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1405 /* Override any gcc2 internal prototype to avoid an error. */
1406 /* We use char because int might match the return type of a gcc2
1407 builtin and then its argument prototype would still apply. */
1414 if { (eval echo configure
:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1416 eval "ac_cv_lib_$ac_lib_var=yes"
1418 echo "configure: failed program was:" >&5
1419 cat conftest.
$ac_ext >&5
1421 eval "ac_cv_lib_$ac_lib_var=no"
1424 LIBS
="$ac_save_LIBS"
1427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1429 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1431 cat >> confdefs.h
<<EOF
1432 #define $ac_tr_lib 1
1438 echo "$ac_t""no" 1>&6
1441 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
1443 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether to enable libsmi" >&5
1445 if test "$cross_compiling" = yes; then
1446 echo "$ac_t""not when cross-compiling" 1>&6
1450 cat > conftest.
$ac_ext <<EOF
1451 #line 1452 "configure"
1452 #include "confdefs.h"
1453 /* libsmi available check */
1457 int current, revision, age, n;
1458 const int required = 2;
1461 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1463 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1466 if (required < current - age || required > current)
1472 if { (eval echo configure
:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1474 echo "$ac_t""yes" 1>&6
1475 cat >> confdefs.h
<<\EOF
1481 echo "configure: failed program was:" >&5
1482 cat conftest.
$ac_ext >&5
1485 1) echo "$ac_t""no - smiInit failed" 1>&6 ;;
1486 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;;
1487 3) echo "$ac_t""no - can't determine library version" 1>&6 ;;
1488 4) echo "$ac_t""no - too old" 1>&6 ;;
1489 *) echo "$ac_t""no" 1>&6 ;;
1498 echo $ac_n "checking whether to enable the possibly-buggy SMB printer""... $ac_c" 1>&6
1499 echo "configure:1500: checking whether to enable the possibly-buggy SMB printer" >&5
1500 # Check whether --enable-smb or --disable-smb was given.
1501 if test "${enable_smb+set}" = set; then
1502 enableval
="$enable_smb"
1508 case "$enableval" in
1509 yes) echo "$ac_t""yes" 1>&6
1510 echo "configure: warning: The SMB printer may have exploitable buffer overflows!!!" 1>&2
1511 cat >> confdefs.h
<<\EOF
1512 #define TCPDUMP_DO_SMB 1
1515 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
1517 *) echo "$ac_t""no" 1>&6
1521 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1522 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether to enable ipv6" >&5
1524 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1525 if test "${enable_ipv6+set}" = set; then
1526 enableval
="$enable_ipv6"
1527 case "$enableval" in
1528 yes) echo "$ac_t""yes" 1>&6
1529 LOCALSRC
="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1530 cat >> confdefs.h
<<\EOF
1537 echo "$ac_t""no" 1>&6
1542 if test "$cross_compiling" = yes; then
1543 echo "$ac_t""no" 1>&6
1547 cat > conftest.
$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* AF_INET6 available check */
1551 #include <sys/types.h>
1552 #include <sys/socket.h>
1555 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1562 if { (eval echo configure
:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1564 echo "$ac_t""yes" 1>&6
1565 LOCALSRC
="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
1566 cat >> confdefs.h
<<\EOF
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 echo "$ac_t""no" 1>&6
1588 if test "$ipv6" = "yes"; then
1589 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1590 echo "configure:1591: checking ipv6 stack type" >&5
1591 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1594 cat > conftest.
$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1598 #include <netinet/in.h>
1599 #ifdef IPV6_INRIA_VERSION
1603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1604 egrep "yes" >/dev
/null
2>&1; then
1607 CFLAGS
="-DINET6 $CFLAGS"
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1617 #include <netinet/in.h>
1622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1623 egrep "yes" >/dev
/null
2>&1; then
1627 ipv6libdir
=/usr
/local
/v
6/lib
;
1629 CFLAGS
="-DINET6 $CFLAGS"
1635 cat > conftest.
$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1639 #include <features.h>
1640 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1645 egrep "yes" >/dev
/null
2>&1; then
1648 CFLAGS
="-DINET6 $CFLAGS"
1654 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1657 ipv6libdir
=/usr
/inet
6/lib
1659 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1663 cat > conftest.
$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1667 #include <sys/param.h>
1668 #ifdef _TOSHIBA_INET6
1672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1673 egrep "yes" >/dev
/null
2>&1; then
1677 ipv6libdir
=/usr
/local
/v
6/lib
;
1678 CFLAGS
="-DINET6 $CFLAGS"
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1688 #include </usr/local/v6/include/sys/v6config.h>
1693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1694 egrep "yes" >/dev
/null
2>&1; then
1698 ipv6libdir
=/usr
/local
/v
6/lib
;
1699 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1709 #include <sys/param.h>
1710 #ifdef _ZETA_MINAMI_INET6
1714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1715 egrep "yes" >/dev
/null
2>&1; then
1719 ipv6libdir
=/usr
/local
/v
6/lib
;
1720 CFLAGS
="-DINET6 $CFLAGS"
1726 if test "$ipv6type" != "unknown"; then
1730 echo "$ac_t""$ipv6type" 1>&6
1733 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1734 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1735 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1736 echo "You have $ipv6lib library, using it"
1738 if test "$ipv6trylibc" = "yes"; then
1739 echo "You do not have $ipv6lib library, using libc"
1741 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1742 echo "You need to fetch lib$ipv6lib.a from appropriate"
1743 echo 'ipv6 kit and compile beforehand.'
1750 if test "$ipv6" = "yes"; then
1752 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1753 echo "configure:1754: checking for library containing getaddrinfo" >&5
1754 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_func_search_save_LIBS
="$LIBS"
1758 ac_cv_search_getaddrinfo
="no"
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1763 /* We use char because int might match the return type of a gcc2
1764 builtin and then its argument prototype would still apply. */
1771 if { (eval echo configure
:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1773 ac_cv_search_getaddrinfo
="none required"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1779 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1780 LIBS
="-l$i $ac_func_search_save_LIBS"
1781 cat > conftest.
$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 /* Override any gcc2 internal prototype to avoid an error. */
1785 /* We use char because int might match the return type of a gcc2
1786 builtin and then its argument prototype would still apply. */
1793 if { (eval echo configure
:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1795 ac_cv_search_getaddrinfo
="-l$i"
1798 echo "configure: failed program was:" >&5
1799 cat conftest.
$ac_ext >&5
1803 LIBS
="$ac_func_search_save_LIBS"
1806 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1807 if test "$ac_cv_search_getaddrinfo" != "no"; then
1808 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1809 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1810 echo "configure:1811: checking getaddrinfo bug" >&5
1811 if eval "test \"`echo '$''{'td_cv_buggygetaddrinfo'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 if test "$cross_compiling" = yes; then
1815 td_cv_buggygetaddrinfo
=yes
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1821 #include <sys/types.h>
1824 #include <sys/socket.h>
1825 #include <netinet/in.h>
1829 int passive, gaierr, inet4 = 0, inet6 = 0;
1830 struct addrinfo hints, *ai, *aitop;
1831 char straddr[INET6_ADDRSTRLEN], strport[16];
1833 for (passive = 0; passive <= 1; passive++) {
1834 memset(&hints, 0, sizeof(hints));
1835 hints.ai_family = AF_UNSPEC;
1836 hints.ai_flags = passive ? AI_PASSIVE : 0;
1837 hints.ai_socktype = SOCK_STREAM;
1838 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1839 (void)gai_strerror(gaierr);
1842 for (ai = aitop; ai; ai = ai->ai_next) {
1843 if (ai->ai_addr == NULL ||
1844 ai->ai_addrlen == 0 ||
1845 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1846 straddr, sizeof(straddr), strport, sizeof(strport),
1847 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1850 switch (ai->ai_family) {
1852 if (strcmp(strport, "54321") != 0) {
1856 if (strcmp(straddr, "0.0.0.0") != 0) {
1860 if (strcmp(straddr, "127.0.0.1") != 0) {
1867 if (strcmp(strport, "54321") != 0) {
1871 if (strcmp(straddr, "::") != 0) {
1875 if (strcmp(straddr, "::1") != 0) {
1892 /* another family support? */
1898 /* supported family should be 2, unsupported family should be 0 */
1899 if (!(inet4 == 0 || inet4 == 2))
1901 if (!(inet6 == 0 || inet6 == 2))
1905 freeaddrinfo(aitop);
1910 freeaddrinfo(aitop);
1915 if { (eval echo configure
:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1917 td_cv_buggygetaddrinfo
=no
1919 echo "configure: failed program was:" >&5
1920 cat conftest.
$ac_ext >&5
1922 td_cv_buggygetaddrinfo
=yes
1929 if test "$td_cv_buggygetaddrinfo" = no
; then
1930 echo "$ac_t""good" 1>&6
1932 echo "$ac_t""buggy" 1>&6
1935 if test "$td_cv_buggygetaddrinfo" = "yes"; then
1936 if test "$ipv6type" != "linux"; then
1937 echo 'Fatal: You must get working getaddrinfo() function.'
1938 echo ' or you can specify "--disable-ipv6"'.
1941 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1942 echo ' Better upgreade your system library to newest version'
1943 echo ' of GNU C library (aka glibc).'
1950 for ac_func
in getaddrinfo getnameinfo
1952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1953 echo "configure:1954: checking for $ac_func" >&5
1954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 cat > conftest.
$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1960 /* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $ac_func(); below. */
1963 /* Override any gcc2 internal prototype to avoid an error. */
1964 /* We use char because int might match the return type of a gcc2
1965 builtin and then its argument prototype would still apply. */
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1981 if { (eval echo configure
:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1983 eval "ac_cv_func_$ac_func=yes"
1985 echo "configure: failed program was:" >&5
1986 cat conftest.
$ac_ext >&5
1988 eval "ac_cv_func_$ac_func=no"
1993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1996 cat >> confdefs.h
<<EOF
1997 #define $ac_tr_func 1
2001 echo "$ac_t""no" 1>&6
2002 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2008 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
2009 echo "configure:2010: checking for inet_ntop" >&5
2010 cat > conftest.
$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 #include <sys/types.h>
2014 #include <sys/socket.h>
2015 #include <netinet/in.h>
2016 #include <arpa/inet.h>
2018 char src[4], dst[128];
2019 inet_ntop(AF_INET, src, dst, sizeof(dst));
2022 if { (eval echo configure
:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2024 echo "$ac_t""yes" 1>&6
2026 echo "configure: failed program was:" >&5
2027 cat conftest.
$ac_ext >&5
2029 echo "$ac_t""no" 1>&6
2030 for ac_func
in inet_ntop
2032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2033 echo "configure:2034: checking for $ac_func" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char $ac_func(); below. */
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2061 if { (eval echo configure
:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2063 eval "ac_cv_func_$ac_func=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_func_$ac_func=no"
2073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2075 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2076 cat >> confdefs.h
<<EOF
2077 #define $ac_tr_func 1
2081 echo "$ac_t""no" 1>&6
2082 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2089 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
2090 echo "configure:2091: checking for inet_pton" >&5
2091 cat > conftest.
$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 #include <sys/types.h>
2095 #include <sys/socket.h>
2096 #include <netinet/in.h>
2097 #include <arpa/inet.h>
2099 char src[128], dst[4];
2100 inet_pton(AF_INET, src, dst);
2103 if { (eval echo configure
:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2105 echo "$ac_t""yes" 1>&6
2107 echo "configure: failed program was:" >&5
2108 cat conftest.
$ac_ext >&5
2110 echo "$ac_t""no" 1>&6
2111 for ac_func
in inet_pton
2113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2114 echo "configure:2115: checking for $ac_func" >&5
2115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.
$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $ac_func(); below. */
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2142 if { (eval echo configure
:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2144 eval "ac_cv_func_$ac_func=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 eval "ac_cv_func_$ac_func=no"
2154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2157 cat >> confdefs.h
<<EOF
2158 #define $ac_tr_func 1
2162 echo "$ac_t""no" 1>&6
2163 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2170 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
2171 echo "configure:2172: checking for inet_aton" >&5
2172 cat > conftest.
$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 #include <sys/types.h>
2176 #include <netinet/in.h>
2177 #include <arpa/inet.h>
2181 inet_aton(src, &dst);
2184 if { (eval echo configure
:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2186 echo "$ac_t""yes" 1>&6
2188 echo "configure: failed program was:" >&5
2189 cat conftest.
$ac_ext >&5
2191 echo "$ac_t""no" 1>&6
2192 for ac_func
in inet_aton
2194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_func" >&5
2196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.
$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $ac_func(); below. */
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2212 /* The GNU C library defines this for functions which it implements
2213 to always fail with ENOSYS. Some functions are actually named
2214 something starting with __ and the normal name is an alias. */
2215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2223 if { (eval echo configure
:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2225 eval "ac_cv_func_$ac_func=yes"
2227 echo "configure: failed program was:" >&5
2228 cat conftest.
$ac_ext >&5
2230 eval "ac_cv_func_$ac_func=no"
2235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2238 cat >> confdefs.h
<<EOF
2239 #define $ac_tr_func 1
2243 echo "$ac_t""no" 1>&6
2244 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2253 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2254 echo "configure:2255: checking if sockaddr struct has sa_len member" >&5
2255 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2262 # include <sys/types.h>
2263 # include <sys/socket.h>
2265 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2268 if { (eval echo configure
:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2270 ac_cv_sockaddr_has_sa_len
=yes
2272 echo "configure: failed program was:" >&5
2273 cat conftest.
$ac_ext >&5
2275 ac_cv_sockaddr_has_sa_len
=no
2280 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2281 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2282 cat >> confdefs.h
<<\EOF
2283 #define HAVE_SOCKADDR_SA_LEN 1
2288 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2289 missing_includes
=yes
2292 echo $ac_n "checking for dnet_htoa declaration in netdnet/dnetdb.h""... $ac_c" 1>&6
2293 echo "configure:2294: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
2294 if eval "test \"`echo '$''{'td_cv_decl_netdnet_dnetdb_h_dnet_htoa'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.
$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2300 #include <netdnet/dnetdb.h>
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "dnet_htoa" >/dev
/null
2>&1; then
2305 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=yes
2308 td_cv_decl_netdnet_dnetdb_h_dnet_htoa
=no
2314 echo "$ac_t""$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" 1>&6
2315 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
2316 cat >> confdefs.h
<<\EOF
2317 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
2322 echo $ac_n "checking size of char""... $ac_c" 1>&6
2323 echo "configure:2324: checking size of char" >&5
2324 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 if test "$cross_compiling" = yes; then
2330 cat > conftest.
$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2336 FILE *f=fopen("conftestval", "w");
2338 fprintf(f, "%d\n", sizeof(char));
2342 if { (eval echo configure
:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2344 ac_cv_sizeof_char
=`cat conftestval`
2346 echo "configure: failed program was:" >&5
2347 cat conftest.
$ac_ext >&5
2355 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2356 cat >> confdefs.h
<<EOF
2357 #define SIZEOF_CHAR $ac_cv_sizeof_char
2361 echo $ac_n "checking size of short""... $ac_c" 1>&6
2362 echo "configure:2363: checking size of short" >&5
2363 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 if test "$cross_compiling" = yes; then
2367 ac_cv_sizeof_short
=2
2369 cat > conftest.
$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2375 FILE *f=fopen("conftestval", "w");
2377 fprintf(f, "%d\n", sizeof(short));
2381 if { (eval echo configure
:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2383 ac_cv_sizeof_short
=`cat conftestval`
2385 echo "configure: failed program was:" >&5
2386 cat conftest.
$ac_ext >&5
2388 ac_cv_sizeof_short
=0
2394 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2395 cat >> confdefs.h
<<EOF
2396 #define SIZEOF_SHORT $ac_cv_sizeof_short
2400 echo $ac_n "checking size of int""... $ac_c" 1>&6
2401 echo "configure:2402: checking size of int" >&5
2402 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 if test "$cross_compiling" = yes; then
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2414 FILE *f=fopen("conftestval", "w");
2416 fprintf(f, "%d\n", sizeof(int));
2420 if { (eval echo configure
:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2422 ac_cv_sizeof_int
=`cat conftestval`
2424 echo "configure: failed program was:" >&5
2425 cat conftest.
$ac_ext >&5
2433 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2434 cat >> confdefs.h
<<EOF
2435 #define SIZEOF_INT $ac_cv_sizeof_int
2439 echo $ac_n "checking size of long""... $ac_c" 1>&6
2440 echo "configure:2441: checking size of long" >&5
2441 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 if test "$cross_compiling" = yes; then
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2453 FILE *f=fopen("conftestval", "w");
2455 fprintf(f, "%d\n", sizeof(long));
2459 if { (eval echo configure
:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2461 ac_cv_sizeof_long
=`cat conftestval`
2463 echo "configure: failed program was:" >&5
2464 cat conftest.
$ac_ext >&5
2472 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2473 cat >> confdefs.h
<<EOF
2474 #define SIZEOF_LONG $ac_cv_sizeof_long
2481 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2482 echo "configure:2483: checking for addrinfo" >&5
2483 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.
$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2495 if { (eval echo configure
:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2499 echo "configure: failed program was:" >&5
2500 cat conftest.
$ac_ext >&5
2507 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2508 if test $ac_cv_addrinfo = yes; then
2509 cat >> confdefs.h
<<\EOF
2510 #define HAVE_ADDRINFO 1
2514 cat >> confdefs.h
<<\EOF
2515 #define NEED_ADDRINFO_H 1
2520 if test "$ac_cv_addrinfo" = no
; then
2521 missing_includes
=yes
2525 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2526 echo "configure:2527: checking for NI_MAXSERV" >&5
2527 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 cat > conftest.
$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2539 egrep "yes" >/dev
/null
2>&1; then
2550 echo "$ac_t""$ac_cv_maxserv" 1>&6
2551 if test $ac_cv_maxserv != yes; then
2552 cat >> confdefs.h
<<\EOF
2553 #define NEED_ADDRINFO_H 1
2558 if test "$ac_cv_maxserv" = no
; then
2559 missing_includes
=yes
2563 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2564 echo "configure:2565: checking for NI_NAMEREQD" >&5
2565 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.
$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2577 egrep "yes" >/dev
/null
2>&1; then
2588 echo "$ac_t""$ac_cv_namereqd" 1>&6
2589 if test $ac_cv_namereqd != yes; then
2590 cat >> confdefs.h
<<\EOF
2591 #define NEED_ADDRINFO_H 1
2596 if test "$ac_cv_namereqd" = no
; then
2597 missing_includes
=yes
2601 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2602 echo "configure:2603: checking for sockaddr_storage" >&5
2603 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2610 # include <sys/types.h>
2611 # include <sys/socket.h>
2613 struct sockaddr_storage s
2616 if { (eval echo configure
:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2618 ac_cv_sa_storage
=yes
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2628 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2629 if test $ac_cv_sa_storage = yes; then
2630 cat >> confdefs.h
<<\EOF
2631 #define HAVE_SOCKADDR_STORAGE 1
2636 if test "$ac_cv_sa_storage" = no
; then
2637 missing_includes
=yes
2642 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2643 echo "configure:2644: checking for INADDRSZ" >&5
2644 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2651 # include <arpa/nameser.h>
2656 if { (eval echo configure
:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2660 echo "configure: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2668 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2669 if test $ac_cv_inaddrsz = yes; then
2670 cat >> confdefs.h
<<\EOF
2671 #define HAVE_INADDRSZ 1
2677 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2678 echo "configure:2679: checking for IN6ADDRSZ" >&5
2679 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 cat > conftest.
$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2686 # include <arpa/nameser.h>
2691 if { (eval echo configure
:2692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2695 echo "configure: failed program was:" >&5
2696 cat conftest.
$ac_ext >&5
2703 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2704 if test $ac_cv_in6addrsz = yes; then
2705 cat >> confdefs.h
<<\EOF
2706 #define HAVE_IN6ADDRSZ 1
2713 if test "$ac_cv_addrsz" = no
; then
2714 missing_includes
=yes
2718 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2719 echo "configure:2720: checking for RES_USE_INET6" >&5
2720 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2721 echo $ac_n "(cached) $ac_c" 1>&6
2723 cat > conftest.
$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2727 # include <sys/types.h>
2728 # include <netinet/in.h>
2729 # include <resolv.h>
2731 int a = RES_USE_INET6
2734 if { (eval echo configure
:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2738 echo "configure: failed program was:" >&5
2739 cat conftest.
$ac_ext >&5
2746 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2747 if test $ac_cv_res_inet6 = yes; then
2748 cat >> confdefs.h
<<\EOF
2749 #define HAVE_RES_USE_INET6 1
2754 if test "$ac_cv_res_inet6" = no
; then
2755 missing_includes
=yes
2759 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2760 echo "configure:2761: checking for res_state_ext" >&5
2761 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2768 # include <sys/types.h>
2769 # include <netinet/in.h>
2770 # include <netinet6/in6.h>
2771 # include <resolv.h>
2773 struct __res_state_ext e
2776 if { (eval echo configure
:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2778 ac_cv_res_state_ext
=yes
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 ac_cv_res_state_ext
=no
2788 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2789 if test $ac_cv_res_state_ext = yes; then
2790 cat >> confdefs.h
<<\EOF
2791 #define HAVE_RES_STATE_EXT 1
2796 if test "$ac_cv_res_state_ext" = no
; then
2797 missing_includes
=yes
2801 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2802 echo "configure:2803: checking for nsort in res_state" >&5
2803 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.
$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2810 # include <sys/types.h>
2811 # include <netinet/in.h>
2812 # include <netinet6/in6.h>
2813 # include <resolv.h>
2815 struct __res_state e; e.nsort = 0
2818 if { (eval echo configure
:2819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2822 echo "configure: failed program was:" >&5
2823 cat conftest.
$ac_ext >&5
2830 echo "$ac_t""$ac_cv_res_state" 1>&6
2831 if test $ac_cv_res_state = yes; then
2832 cat >> confdefs.h
<<\EOF
2833 #define HAVE_NEW_RES_STATE 1
2839 if test "$missing_includes" = "yes"; then
2840 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2841 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2845 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup
2847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2848 echo "configure:2849: checking for $ac_func" >&5
2849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 /* System header to define __stub macros and hopefully few prototypes,
2856 which can conflict with char $ac_func(); below. */
2858 /* Override any gcc2 internal prototype to avoid an error. */
2859 /* We use char because int might match the return type of a gcc2
2860 builtin and then its argument prototype would still apply. */
2865 /* The GNU C library defines this for functions which it implements
2866 to always fail with ENOSYS. Some functions are actually named
2867 something starting with __ and the normal name is an alias. */
2868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2876 if { (eval echo configure
:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2878 eval "ac_cv_func_$ac_func=yes"
2880 echo "configure: failed program was:" >&5
2881 cat conftest.
$ac_ext >&5
2883 eval "ac_cv_func_$ac_func=no"
2888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2889 echo "$ac_t""yes" 1>&6
2890 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2891 cat >> confdefs.h
<<EOF
2892 #define $ac_tr_func 1
2896 echo "$ac_t""no" 1>&6
2897 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2902 for ac_func
in ether_ntohost
2904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_func" >&5
2906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.
$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 /* System header to define __stub macros and hopefully few prototypes,
2913 which can conflict with char $ac_func(); below. */
2915 /* Override any gcc2 internal prototype to avoid an error. */
2916 /* We use char because int might match the return type of a gcc2
2917 builtin and then its argument prototype would still apply. */
2922 /* The GNU C library defines this for functions which it implements
2923 to always fail with ENOSYS. Some functions are actually named
2924 something starting with __ and the normal name is an alias. */
2925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2933 if { (eval echo configure
:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2935 eval "ac_cv_func_$ac_func=yes"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.
$ac_ext >&5
2940 eval "ac_cv_func_$ac_func=no"
2945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2946 echo "$ac_t""yes" 1>&6
2947 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2948 cat >> confdefs.h
<<EOF
2949 #define $ac_tr_func 1
2952 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
2953 echo "configure:2954: checking for buggy ether_ntohost" >&5
2954 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2958 if test "$cross_compiling" = yes; then
2959 ac_cv_buggy_ether_ntohost
="not while cross-compiling"
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2966 #include <sys/types.h>
2967 #include <sys/param.h>
2968 #include <sys/socket.h>
2971 main(int argc, char **argv)
2973 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
2974 char name[MAXHOSTNAMELEN];
2976 ether_ntohost(name, (struct ether_addr *)ea);
2981 if { (eval echo configure
:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2983 ac_cv_buggy_ether_ntohost
=no
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2988 ac_cv_buggy_ether_ntohost
=yes
2995 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
2996 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
2997 cat >> confdefs.h
<<\EOF
2998 #define USE_ETHER_NTOHOST 1
3004 echo "$ac_t""no" 1>&6
3008 for ac_func
in setlinebuf
3010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_func" >&5
3012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 /* System header to define __stub macros and hopefully few prototypes,
3019 which can conflict with char $ac_func(); below. */
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3028 /* The GNU C library defines this for functions which it implements
3029 to always fail with ENOSYS. Some functions are actually named
3030 something starting with __ and the normal name is an alias. */
3031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3039 if { (eval echo configure
:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3041 eval "ac_cv_func_$ac_func=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 eval "ac_cv_func_$ac_func=no"
3051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3054 cat >> confdefs.h
<<EOF
3055 #define $ac_tr_func 1
3059 echo "$ac_t""no" 1>&6
3065 for ac_func
in vsnprintf snprintf
3067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3068 echo "configure:3069: checking for $ac_func" >&5
3069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3070 echo $ac_n "(cached) $ac_c" 1>&6
3072 cat > conftest.
$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 /* System header to define __stub macros and hopefully few prototypes,
3076 which can conflict with char $ac_func(); below. */
3078 /* Override any gcc2 internal prototype to avoid an error. */
3079 /* We use char because int might match the return type of a gcc2
3080 builtin and then its argument prototype would still apply. */
3085 /* The GNU C library defines this for functions which it implements
3086 to always fail with ENOSYS. Some functions are actually named
3087 something starting with __ and the normal name is an alias. */
3088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3096 if { (eval echo configure
:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3098 eval "ac_cv_func_$ac_func=yes"
3100 echo "configure: failed program was:" >&5
3101 cat conftest.
$ac_ext >&5
3103 eval "ac_cv_func_$ac_func=no"
3108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3109 echo "$ac_t""yes" 1>&6
3110 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3111 cat >> confdefs.h
<<EOF
3112 #define $ac_tr_func 1
3116 echo "$ac_t""no" 1>&6
3121 if test $needsnprintf = yes; then
3122 LIBOBJS
="$LIBOBJS snprintf.o"
3126 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3127 echo "configure:3128: checking return type of signal handlers" >&5
3128 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <sys/types.h>
3140 extern "C" void (*signal (int, void (*)(int)))(int);
3142 void (*signal ()) ();
3149 if { (eval echo configure
:3150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3151 ac_cv_type_signal
=void
3153 echo "configure: failed program was:" >&5
3154 cat conftest.
$ac_ext >&5
3156 ac_cv_type_signal
=int
3161 echo "$ac_t""$ac_cv_type_signal" 1>&6
3162 cat >> confdefs.h
<<EOF
3163 #define RETSIGTYPE $ac_cv_type_signal
3167 if test "$ac_cv_type_signal" = void
; then
3168 cat >> confdefs.h
<<\EOF
3173 cat >> confdefs.h
<<\EOF
3174 #define RETSIGVAL (0)
3181 cat >> confdefs.h
<<\EOF
3182 #define _BSD_SIGNALS 1
3188 for ac_func
in sigaction
3190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3191 echo "configure:3192: checking for $ac_func" >&5
3192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* System header to define __stub macros and hopefully few prototypes,
3199 which can conflict with char $ac_func(); below. */
3201 /* Override any gcc2 internal prototype to avoid an error. */
3202 /* We use char because int might match the return type of a gcc2
3203 builtin and then its argument prototype would still apply. */
3208 /* The GNU C library defines this for functions which it implements
3209 to always fail with ENOSYS. Some functions are actually named
3210 something starting with __ and the normal name is an alias. */
3211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3219 if { (eval echo configure
:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3221 eval "ac_cv_func_$ac_func=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.
$ac_ext >&5
3226 eval "ac_cv_func_$ac_func=no"
3231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3234 cat >> confdefs.h
<<EOF
3235 #define $ac_tr_func 1
3239 echo "$ac_t""no" 1>&6
3243 if test $ac_cv_func_sigaction = no
; then
3244 for ac_func
in sigset
3246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_func" >&5
3248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 cat > conftest.
$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 /* System header to define __stub macros and hopefully few prototypes,
3255 which can conflict with char $ac_func(); below. */
3257 /* Override any gcc2 internal prototype to avoid an error. */
3258 /* We use char because int might match the return type of a gcc2
3259 builtin and then its argument prototype would still apply. */
3264 /* The GNU C library defines this for functions which it implements
3265 to always fail with ENOSYS. Some functions are actually named
3266 something starting with __ and the normal name is an alias. */
3267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3275 if { (eval echo configure
:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3277 eval "ac_cv_func_$ac_func=yes"
3279 echo "configure: failed program was:" >&5
3280 cat conftest.
$ac_ext >&5
3282 eval "ac_cv_func_$ac_func=no"
3287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3290 cat >> confdefs.h
<<EOF
3291 #define $ac_tr_func 1
3295 echo "$ac_t""no" 1>&6
3304 echo $ac_n "checking for library containing dnet_htoa""... $ac_c" 1>&6
3305 echo "configure:3306: checking for library containing dnet_htoa" >&5
3306 if eval "test \"`echo '$''{'ac_cv_search_dnet_htoa'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_func_search_save_LIBS
="$LIBS"
3310 ac_cv_search_dnet_htoa
="no"
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3323 if { (eval echo configure
:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3325 ac_cv_search_dnet_htoa
="none required"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.
$ac_ext >&5
3331 test "$ac_cv_search_dnet_htoa" = "no" && for i
in dnet
; do
3332 LIBS
="-l$i $ac_func_search_save_LIBS"
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */
3345 if { (eval echo configure
:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3347 ac_cv_search_dnet_htoa
="-l$i"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3355 LIBS
="$ac_func_search_save_LIBS"
3358 echo "$ac_t""$ac_cv_search_dnet_htoa" 1>&6
3359 if test "$ac_cv_search_dnet_htoa" != "no"; then
3360 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS
="$ac_cv_search_dnet_htoa $LIBS"
3361 cat >> confdefs.h
<<\EOF
3362 #define HAVE_DNET_HTOA 1
3369 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3370 echo "configure:3371: checking for main in -lrpc" >&5
3371 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 ac_save_LIBS
="$LIBS"
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
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 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3402 cat >> confdefs.h
<<EOF
3403 #define $ac_tr_lib 1
3409 echo "$ac_t""no" 1>&6
3413 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3414 echo "configure:3415: checking for library containing getrpcbynumber" >&5
3415 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_func_search_save_LIBS
="$LIBS"
3419 ac_cv_search_getrpcbynumber
="no"
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 /* Override any gcc2 internal prototype to avoid an error. */
3424 /* We use char because int might match the return type of a gcc2
3425 builtin and then its argument prototype would still apply. */
3426 char getrpcbynumber();
3432 if { (eval echo configure
:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3434 ac_cv_search_getrpcbynumber
="none required"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.
$ac_ext >&5
3440 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3441 LIBS
="-l$i $ac_func_search_save_LIBS"
3442 cat > conftest.
$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char getrpcbynumber();
3454 if { (eval echo configure
:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3456 ac_cv_search_getrpcbynumber
="-l$i"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.
$ac_ext >&5
3464 LIBS
="$ac_func_search_save_LIBS"
3467 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3468 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3469 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3477 # Most operating systems have gethostbyname() in the default searched
3478 # libraries (i.e. libc):
3479 # Some OSes (eg. Solaris) place it in libnsl
3480 # Some strange OSes (SINIX) have it in libsocket:
3482 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3483 echo "configure:3484: checking for library containing gethostbyname" >&5
3484 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 ac_func_search_save_LIBS
="$LIBS"
3488 ac_cv_search_gethostbyname
="no"
3489 cat > conftest.
$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3495 char gethostbyname();
3501 if { (eval echo configure
:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3503 ac_cv_search_gethostbyname
="none required"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.
$ac_ext >&5
3509 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3510 LIBS
="-l$i $ac_func_search_save_LIBS"
3511 cat > conftest.
$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* Override any gcc2 internal prototype to avoid an error. */
3515 /* We use char because int might match the return type of a gcc2
3516 builtin and then its argument prototype would still apply. */
3517 char gethostbyname();
3523 if { (eval echo configure
:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3525 ac_cv_search_gethostbyname
="-l$i"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3533 LIBS
="$ac_func_search_save_LIBS"
3536 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3537 if test "$ac_cv_search_gethostbyname" != "no"; then
3538 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3543 # Unfortunately libsocket sometimes depends on libnsl and
3544 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3545 if test "$ac_cv_search_gethostbyname" = "no"
3547 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3548 echo "configure:3549: checking for gethostbyname in -lsocket" >&5
3549 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_save_LIBS
="$LIBS"
3554 LIBS
="-lsocket -lnsl $LIBS"
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 /* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3561 char gethostbyname();
3567 if { (eval echo configure
:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3574 eval "ac_cv_lib_$ac_lib_var=no"
3577 LIBS
="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 LIBS
="-lsocket -lnsl $LIBS"
3584 echo "$ac_t""no" 1>&6
3589 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3590 echo "configure:3591: checking for library containing socket" >&5
3591 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 ac_func_search_save_LIBS
="$LIBS"
3595 ac_cv_search_socket
="no"
3596 cat > conftest.
$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3608 if { (eval echo configure
:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3610 ac_cv_search_socket
="none required"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.
$ac_ext >&5
3616 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3617 LIBS
="-l$i $ac_func_search_save_LIBS"
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3630 if { (eval echo configure
:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3632 ac_cv_search_socket
="-l$i"
3635 echo "configure: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3640 LIBS
="$ac_func_search_save_LIBS"
3643 echo "$ac_t""$ac_cv_search_socket" 1>&6
3644 if test "$ac_cv_search_socket" != "no"; then
3645 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3648 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3649 echo "configure:3650: checking for socket in -lsocket" >&5
3650 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 ac_save_LIBS
="$LIBS"
3655 LIBS
="-lsocket -lnsl $LIBS"
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3668 if { (eval echo configure
:3669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3670 eval "ac_cv_lib_$ac_lib_var=yes"
3672 echo "configure: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3675 eval "ac_cv_lib_$ac_lib_var=no"
3678 LIBS
="$ac_save_LIBS"
3681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3682 echo "$ac_t""yes" 1>&6
3683 LIBS
="-lsocket -lnsl $LIBS"
3685 echo "$ac_t""no" 1>&6
3689 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3691 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3692 echo "configure:3693: checking for library containing putmsg" >&5
3693 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_func_search_save_LIBS
="$LIBS"
3697 ac_cv_search_putmsg
="no"
3698 cat > conftest.
$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3710 if { (eval echo configure
:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3712 ac_cv_search_putmsg
="none required"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.
$ac_ext >&5
3718 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3719 LIBS
="-l$i $ac_func_search_save_LIBS"
3720 cat > conftest.
$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* Override any gcc2 internal prototype to avoid an error. */
3724 /* We use char because int might match the return type of a gcc2
3725 builtin and then its argument prototype would still apply. */
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3734 ac_cv_search_putmsg
="-l$i"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.
$ac_ext >&5
3742 LIBS
="$ac_func_search_save_LIBS"
3745 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3746 if test "$ac_cv_search_putmsg" != "no"; then
3747 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3755 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3756 if test -f $pfopen ; then
3757 for ac_func
in pfopen
3759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_func" >&5
3761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* System header to define __stub macros and hopefully few prototypes,
3768 which can conflict with char $ac_func(); below. */
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3777 /* The GNU C library defines this for functions which it implements
3778 to always fail with ENOSYS. Some functions are actually named
3779 something starting with __ and the normal name is an alias. */
3780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3788 if { (eval echo configure
:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3790 eval "ac_cv_func_$ac_func=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.
$ac_ext >&5
3795 eval "ac_cv_func_$ac_func=no"
3800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3803 cat >> confdefs.h
<<EOF
3804 #define $ac_tr_func 1
3808 echo "$ac_t""no" 1>&6
3812 if test $ac_cv_func_pfopen = "no" ; then
3813 echo "$ac_t""Using $pfopen" 1>&6
3814 LIBS
="$LIBS $pfopen"
3817 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3818 echo "configure:3819: checking for local pcap library" >&5
3821 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3822 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3823 for dir
in $places ..
/libpcap libpcap
; do
3824 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3825 if test $lastdir = $basedir ; then
3829 if test -r $dir/libpcap.a
; then
3830 libpcap
=$dir/libpcap.a
3834 if test $libpcap = FAIL
; then
3835 echo "$ac_t""not found" 1>&6
3836 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3837 echo "configure:3838: checking for main in -lpcap" >&5
3838 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 ac_save_LIBS
="$LIBS"
3844 cat > conftest.
$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3852 if { (eval echo configure
:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS
="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3869 echo "$ac_t""no" 1>&6
3872 if test $libpcap = FAIL
; then
3873 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3877 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3878 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3879 if test -r $d/pcap.h
; then
3880 V_INCLS
="-I$d $V_INCLS"
3881 elif test -r $places/pcap.h
; then
3882 V_INCLS
="-I$places $V_INCLS"
3884 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3886 echo "$ac_t""$libpcap" 1>&6
3888 LIBS
="$libpcap $LIBS"
3892 pseexe
="/lib/pse.exp"
3893 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3894 echo "configure:3895: checking for $pseexe" >&5
3895 if test -f $pseexe ; then
3896 echo "$ac_t""yes" 1>&6
3897 LIBS
="$LIBS -I:$pseexe"
3902 for ac_func
in bpf_dump
3904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3905 echo "configure:3906: checking for $ac_func" >&5
3906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.
$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 /* System header to define __stub macros and hopefully few prototypes,
3913 which can conflict with char $ac_func(); below. */
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3922 /* The GNU C library defines this for functions which it implements
3923 to always fail with ENOSYS. Some functions are actually named
3924 something starting with __ and the normal name is an alias. */
3925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3933 if { (eval echo configure
:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3935 eval "ac_cv_func_$ac_func=yes"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.
$ac_ext >&5
3940 eval "ac_cv_func_$ac_func=no"
3945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3947 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3948 cat >> confdefs.h
<<EOF
3949 #define $ac_tr_func 1
3953 echo "$ac_t""no" 1>&6
3954 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3960 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3966 cat >> confdefs.h
<<\EOF
3985 if test -f /dev
/bpf0
; then
3989 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3990 echo "configure:3991: checking for u_int8_t using $CC" >&5
3991 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.
$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3998 # include "confdefs.h"
3999 # include <sys/types.h>
4001 # include <stdlib.h>
4002 # include <stddef.h>
4008 if { (eval echo configure
:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4010 ac_cv_lbl_have_u_int8_t
=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 ac_cv_lbl_have_u_int8_t
=no
4020 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4021 if test $ac_cv_lbl_have_u_int8_t = no
; then
4022 cat >> confdefs.h
<<\EOF
4023 #define u_int8_t u_char
4027 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4028 echo "configure:4029: checking for int16_t using $CC" >&5
4029 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4032 cat > conftest.
$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4036 # include "confdefs.h"
4037 # include <sys/types.h>
4039 # include <stdlib.h>
4040 # include <stddef.h>
4046 if { (eval echo configure
:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4048 ac_cv_lbl_have_int16_t
=yes
4050 echo "configure: failed program was:" >&5
4051 cat conftest.
$ac_ext >&5
4053 ac_cv_lbl_have_int16_t
=no
4058 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4059 if test $ac_cv_lbl_have_int16_t = no
; then
4060 cat >> confdefs.h
<<\EOF
4061 #define int16_t short
4065 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4066 echo "configure:4067: checking for u_int16_t using $CC" >&5
4067 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4070 cat > conftest.
$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4074 # include "confdefs.h"
4075 # include <sys/types.h>
4077 # include <stdlib.h>
4078 # include <stddef.h>
4084 if { (eval echo configure
:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 ac_cv_lbl_have_u_int16_t
=yes
4088 echo "configure: failed program was:" >&5
4089 cat conftest.
$ac_ext >&5
4091 ac_cv_lbl_have_u_int16_t
=no
4096 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4097 if test $ac_cv_lbl_have_u_int16_t = no
; then
4098 cat >> confdefs.h
<<\EOF
4099 #define u_int16_t u_short
4103 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4104 echo "configure:4105: checking for int32_t using $CC" >&5
4105 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.
$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4112 # include "confdefs.h"
4113 # include <sys/types.h>
4115 # include <stdlib.h>
4116 # include <stddef.h>
4122 if { (eval echo configure
:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4124 ac_cv_lbl_have_int32_t
=yes
4126 echo "configure: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 ac_cv_lbl_have_int32_t
=no
4134 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4135 if test $ac_cv_lbl_have_int32_t = no
; then
4136 cat >> confdefs.h
<<\EOF
4141 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4142 echo "configure:4143: checking for u_int32_t using $CC" >&5
4143 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.
$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4150 # include "confdefs.h"
4151 # include <sys/types.h>
4153 # include <stdlib.h>
4154 # include <stddef.h>
4160 if { (eval echo configure
:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 ac_cv_lbl_have_u_int32_t
=yes
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 ac_cv_lbl_have_u_int32_t
=no
4172 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4173 if test $ac_cv_lbl_have_u_int32_t = no
; then
4174 cat >> confdefs.h
<<\EOF
4175 #define u_int32_t u_int
4181 if test "${LBL_CFLAGS+set}" = set; then
4182 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4184 if test -f .devel
; then
4185 if test "$GCC" = yes ; then
4186 if test "${LBL_CFLAGS+set}" != set; then
4187 if test "$ac_cv_prog_cc_g" = yes ; then
4188 V_CCOPT
="-g $V_CCOPT"
4190 V_CCOPT
="$V_CCOPT -Wall"
4191 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4192 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4199 V_CCOPT
="$V_CCOPT -n32"
4206 os
=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4208 if test -f $name ; then
4209 ln -s $name os-proto.h
4210 cat >> confdefs.h
<<\EOF
4211 #define HAVE_OS_PROTO_H 1
4215 echo "configure: warning: can't find $name" 1>&2
4219 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4220 echo "configure:4221: checking if sockaddr struct has sa_len member" >&5
4221 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4228 # include <sys/types.h>
4229 # include <sys/socket.h>
4231 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4234 if { (eval echo configure
:4235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4236 ac_cv_lbl_sockaddr_has_sa_len
=yes
4238 echo "configure: failed program was:" >&5
4239 cat conftest.
$ac_ext >&5
4241 ac_cv_lbl_sockaddr_has_sa_len
=no
4246 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4247 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4248 cat >> confdefs.h
<<\EOF
4249 #define HAVE_SOCKADDR_SA_LEN 1
4254 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4255 echo "configure:4256: checking if unaligned accesses fail" >&5
4256 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4257 echo $ac_n "(cached) $ac_c" 1>&6
4261 # XXX: should also check that they don't do weird things (like on arm)
4262 alpha
*|arm
*|hp
*|mips
*|sparc
*|ia64
)
4263 ac_cv_lbl_unaligned_fail
=yes
4267 cat >conftest.c
<<EOF
4268 # include <sys/types.h>
4269 # include <sys/wait.h>
4271 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4276 /* avoid "core dumped" message */
4282 pid = waitpid(pid, &status, 0);
4285 exit(!WIFEXITED(status));
4288 i = *(unsigned int *)&a[1];
4293 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4294 conftest.c
$LIBS >/dev
/null
2>&1
4295 if test ! -x conftest
; then
4296 ac_cv_lbl_unaligned_fail
=yes
4298 .
/conftest
>conftest.out
4299 if test ! -s conftest.out
; then
4300 ac_cv_lbl_unaligned_fail
=yes
4302 ac_cv_lbl_unaligned_fail
=no
4305 rm -f conftest
* core core.conftest
4310 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4311 if test $ac_cv_lbl_unaligned_fail = yes ; then
4312 cat >> confdefs.h
<<\EOF
4319 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4320 echo "configure:4321: checking for h_errno" >&5
4321 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 cat > conftest.
$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4328 # include <sys/types.h>
4334 if { (eval echo configure
:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 ac_cv_var_h_errno
=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 ac_cv_var_h_errno
=no
4346 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4347 if test "$ac_cv_var_h_errno" = "yes"; then
4348 cat >> confdefs.h
<<\EOF
4349 #define HAVE_H_ERRNO 1
4355 # Check whether --with-crypto or --without-crypto was given.
4356 if test "${with_crypto+set}" = set; then
4357 withval
="$with_crypto"
4361 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4362 echo "configure:4363: checking for SSLeay" >&5
4363 ac_cv_ssleay_path
=no
4365 for dir
in /usr
/${host_alias} /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4366 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4367 ac_cv_ssleay_path
=$dir
4369 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4370 incdir
="-I$dir/include"
4372 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4375 ac_cv_ssleay_path
=no
4379 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4380 if test "$ac_cv_ssleay_path" != no
; then
4381 V_INCLS
="$V_INCLS $incdir"
4382 LDFLAGS
="-L$dir/lib $LDFLAGS"
4383 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4384 LIBS
="$LIBS -lRSAglue"
4386 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4387 LIBS
="$LIBS -lrsaref"
4389 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4390 echo "configure:4391: checking for des_cbc_encrypt in -lcrypto" >&5
4391 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 ac_save_LIBS
="$LIBS"
4396 LIBS
="-lcrypto $LIBS"
4397 cat > conftest.
$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4403 char des_cbc_encrypt();
4409 if { (eval echo configure
:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4411 eval "ac_cv_lib_$ac_lib_var=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 eval "ac_cv_lib_$ac_lib_var=no"
4419 LIBS
="$ac_save_LIBS"
4422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4426 cat >> confdefs.h
<<EOF
4427 #define $ac_tr_lib 1
4430 LIBS
="-lcrypto $LIBS"
4433 echo "$ac_t""no" 1>&6
4437 bak_CPPFLAGS
=$CPPFLAGS
4438 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4439 for ac_hdr
in openssl
/cast.h
4441 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_hdr" >&5
4444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.
$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4452 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4453 { (eval echo configure
:4454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4454 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4455 if test -z "$ac_err"; then
4457 eval "ac_cv_header_$ac_safe=yes"
4460 echo "configure: failed program was:" >&5
4461 cat conftest.
$ac_ext >&5
4463 eval "ac_cv_header_$ac_safe=no"
4467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4469 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4470 cat >> confdefs.h
<<EOF
4471 #define $ac_tr_hdr 1
4475 echo "$ac_t""no" 1>&6
4480 if test "$ac_cv_header_openssl_cast_h" = "yes"; then
4481 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4482 echo "configure:4483: checking for buggy CAST128" >&5
4483 if eval "test \"`echo '$''{'td_cv_buggy_cast128'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 if test "$cross_compiling" = yes; then
4487 td_cv_buggy_cast128
="cross-compiling, assume yes"
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4493 #include <openssl/cast.h>
4496 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4497 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4498 unsigned char out[sizeof(in)];
4499 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4501 CAST_set_key(&ks, sizeof(key), key);
4502 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4503 if (memcmp(out, ok, sizeof(ok)) != 0)
4509 if { (eval echo configure
:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4511 td_cv_buggy_cast128
=yes
4513 echo "configure: failed program was:" >&5
4514 cat conftest.
$ac_ext >&5
4516 td_cv_buggy_cast128
=no
4523 echo "$ac_t""$td_cv_buggy_cast128" 1>&6
4524 if test "$td_cv_buggy_cast128" != no
; then
4525 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4526 echo "disabling CAST128 support."
4527 cat >> confdefs.h
<<\EOF
4528 #define HAVE_BUGGY_CAST128 1
4534 CPPFLAGS
=$bak_CPPFLAGS
4539 for ac_hdr
in openssl
/rc5.h
4541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_hdr" >&5
4544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.
$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4553 { (eval echo configure
:4554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4555 if test -z "$ac_err"; then
4557 eval "ac_cv_header_$ac_safe=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4563 eval "ac_cv_header_$ac_safe=no"
4567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4570 cat >> confdefs.h
<<EOF
4571 #define $ac_tr_hdr 1
4575 echo "$ac_t""no" 1>&6
4586 # Find a good install program. We prefer a C program (faster),
4587 # so one script is as good as another. But avoid the broken or
4588 # incompatible versions:
4589 # SysV /etc/install, /usr/sbin/install
4590 # SunOS /usr/etc/install
4591 # IRIX /sbin/install
4593 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4596 # ./install, which can be erroneously created by make from ./install.sh.
4597 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4598 echo "configure:4599: checking for a BSD compatible install" >&5
4599 if test -z "$INSTALL"; then
4600 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4604 for ac_dir
in $PATH; do
4605 # Account for people who put trailing slashes in PATH elements.
4607 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4609 # OSF1 and SCO ODT 3.0 have their own names for install.
4610 # Don't use installbsd from OSF since it installs stuff as root
4612 for ac_prog
in ginstall scoinst
install; do
4613 if test -f $ac_dir/$ac_prog; then
4614 if test $ac_prog = install &&
4615 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4616 # AIX install. It has an incompatible calling convention.
4619 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4630 if test "${ac_cv_path_install+set}" = set; then
4631 INSTALL
="$ac_cv_path_install"
4633 # As a last resort, use the slow shell script. We don't cache a
4634 # path for INSTALL within a source directory, because that will
4635 # break other packages using the cache if that directory is
4636 # removed, or if the path is relative.
4637 INSTALL
="$ac_install_sh"
4640 echo "$ac_t""$INSTALL" 1>&6
4642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4643 # It thinks the first close brace ends the variable substitution.
4644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4648 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4655 cat > confcache
<<\EOF
4656 # This file is a shell script that caches the results of configure
4657 # tests run on this system so they can be shared between configure
4658 # scripts and configure runs. It is not useful on other systems.
4659 # If it contains results you don't want to keep, you may remove or edit it.
4661 # By default, configure uses ./config.cache as the cache file,
4662 # creating it if it does not exist already. You can give configure
4663 # the --cache-file=FILE option to use a different cache file; that is
4664 # what configure does when it calls configure scripts in
4665 # subdirectories, so they share the cache.
4666 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4667 # config.status only pays attention to the cache file if you give it the
4668 # --recheck option to rerun configure.
4671 # The following way of writing the cache mishandles newlines in values,
4672 # but we know of no workaround that is simple, portable, and efficient.
4673 # So, don't put newlines in cache variables' values.
4674 # Ultrix sh set writes to stderr and can't be redirected directly,
4675 # and sets the high bit in the cache file unless we assign to the vars.
4677 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4679 # `set' does not quote correctly, so add quotes (double-quote substitution
4680 # turns \\\\ into \\, and sed turns \\ into \).
4682 -e "s/'/'\\\\''/g" \
4683 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4686 # `set' quotes correctly as required by POSIX, so do not add quotes.
4687 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4690 if cmp -s $cache_file confcache
; then
4693 if test -w $cache_file; then
4694 echo "updating cache $cache_file"
4695 cat confcache
> $cache_file
4697 echo "not updating unwritable cache $cache_file"
4702 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4704 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4705 # Let make expand exec_prefix.
4706 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4708 # Any assignment to VPATH causes Sun make to only execute
4709 # the first set of double-colon rules, so remove it if not needed.
4710 # If there is a colon in the path, we need to keep it.
4711 if test "x$srcdir" = x.
; then
4712 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4715 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4717 DEFS
=-DHAVE_CONFIG_H
4719 # Without the "./", some shells look in PATH for config.status.
4720 : ${CONFIG_STATUS=./config.status}
4722 echo creating
$CONFIG_STATUS
4723 rm -f $CONFIG_STATUS
4724 cat > $CONFIG_STATUS <<EOF
4726 # Generated automatically by configure.
4727 # Run this file to recreate the current configuration.
4728 # This directory was configured as follows,
4729 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4731 # $0 $ac_configure_args
4733 # Compiler output produced by configure, useful for debugging
4734 # configure, is in ./config.log if it exists.
4736 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4739 case "\$ac_option" in
4740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4741 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4742 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4743 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4744 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4746 -help | --help | --hel | --he | --h)
4747 echo "\$ac_cs_usage"; exit 0 ;;
4748 *) echo "\$ac_cs_usage"; exit 1 ;;
4752 ac_given_srcdir=$srcdir
4753 ac_given_INSTALL="$INSTALL"
4755 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4757 cat >> $CONFIG_STATUS <<EOF
4759 # Protect against being on the right side of a sed subst in config.status.
4760 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4761 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4765 s%@CFLAGS@%$CFLAGS%g
4766 s%@CPPFLAGS@%$CPPFLAGS%g
4767 s%@CXXFLAGS@%$CXXFLAGS%g
4768 s%@FFLAGS@%$FFLAGS%g
4770 s%@LDFLAGS@%$LDFLAGS%g
4772 s%@exec_prefix@%$exec_prefix%g
4773 s%@prefix@%$prefix%g
4774 s%@program_transform_name@%$program_transform_name%g
4775 s%@bindir@%$bindir%g
4776 s%@sbindir@%$sbindir%g
4777 s%@libexecdir@%$libexecdir%g
4778 s%@datadir@%$datadir%g
4779 s%@sysconfdir@%$sysconfdir%g
4780 s%@sharedstatedir@%$sharedstatedir%g
4781 s%@localstatedir@%$localstatedir%g
4782 s%@libdir@%$libdir%g
4783 s%@includedir@%$includedir%g
4784 s%@oldincludedir@%$oldincludedir%g
4785 s%@infodir@%$infodir%g
4786 s%@mandir@%$mandir%g
4788 s%@host_alias@%$host_alias%g
4789 s%@host_cpu@%$host_cpu%g
4790 s%@host_vendor@%$host_vendor%g
4791 s%@host_os@%$host_os%g
4792 s%@SHLICC2@%$SHLICC2%g
4795 s%@LIBOBJS@%$LIBOBJS%g
4796 s%@V_CCOPT@%$V_CCOPT%g
4797 s%@V_GROUP@%$V_GROUP%g
4798 s%@V_INCLS@%$V_INCLS%g
4799 s%@V_PCAPDEP@%$V_PCAPDEP%g
4800 s%@LOCALSRC@%$LOCALSRC%g
4801 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4802 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4803 s%@INSTALL_DATA@%$INSTALL_DATA%g
4808 cat >> $CONFIG_STATUS <<\EOF
4810 # Split the substitutions into bite-sized pieces for seds with
4811 # small command number limits, like on Digital OSF/1 and HP-UX.
4812 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4813 ac_file
=1 # Number of current file.
4814 ac_beg
=1 # First line for current file.
4815 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4818 while $ac_more_lines; do
4819 if test $ac_beg -gt 1; then
4820 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4822 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4824 if test ! -s conftest.s
$ac_file; then
4826 rm -f conftest.s
$ac_file
4828 if test -z "$ac_sed_cmds"; then
4829 ac_sed_cmds
="sed -f conftest.s$ac_file"
4831 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4833 ac_file
=`expr $ac_file + 1`
4835 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4838 if test -z "$ac_sed_cmds"; then
4843 cat >> $CONFIG_STATUS <<EOF
4845 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4847 cat >> $CONFIG_STATUS <<\EOF
4848 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4851 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4852 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4853 *) ac_file_in
="${ac_file}.in" ;;
4856 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4858 # Remove last slash and all that follows it. Not all systems have dirname.
4859 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4860 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4861 # The file is in a subdirectory.
4862 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4863 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4864 # A "../" for each directory in $ac_dir_suffix.
4865 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4867 ac_dir_suffix
= ac_dots
=
4870 case "$ac_given_srcdir" in
4872 if test -z "$ac_dots"; then top_srcdir
=.
4873 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4874 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4876 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4877 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4880 case "$ac_given_INSTALL" in
4881 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4882 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4885 echo creating
"$ac_file"
4887 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4889 *Makefile
*) ac_comsub
="1i\\
4890 # $configure_input" ;;
4894 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4896 s%@configure_input@%$configure_input%g
4897 s%@srcdir@%$srcdir%g
4898 s%@top_srcdir@%$top_srcdir%g
4899 s%@INSTALL@%$INSTALL%g
4900 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4904 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4905 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4907 # ac_d sets the value in "#define NAME VALUE" lines.
4908 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4909 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4912 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4913 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4914 ac_uB
='\([ ]\)%\1#\2define\3'
4917 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4918 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4919 ac_eB
='$%\1#\2define\3'
4923 if test "${CONFIG_HEADERS+set}" != set; then
4925 cat >> $CONFIG_STATUS <<EOF
4926 CONFIG_HEADERS="config.h"
4928 cat >> $CONFIG_STATUS <<\EOF
4930 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4933 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4934 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4935 *) ac_file_in
="${ac_file}.in" ;;
4938 echo creating
$ac_file
4940 rm -f conftest.frag conftest.
in conftest.out
4941 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4942 cat $ac_file_inputs > conftest.
in
4946 # Transform confdefs.h into a sed script conftest.vals that substitutes
4947 # the proper values into config.h.in to produce config.h. And first:
4948 # Protect against being on the right side of a sed subst in config.status.
4949 # Protect against being in an unquoted here document in config.status.
4951 cat > conftest.hdr
<<\EOF
4954 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4958 sed -n -f conftest.hdr confdefs.h > conftest.vals
4961 # This sed command replaces #undef with comments. This is necessary, for
4962 # example, in the case of _POSIX_SOURCE, which is predefined and required
4963 # on some systems where configure will not decide to define it.
4964 cat >> conftest.vals <<\EOF
4965 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4968 # Break up conftest.vals because some shells have a limit on
4969 # the size of here documents, and old seds have small limits too.
4974 ac_lines=`grep -c . conftest.vals
`
4975 # grep -c gives empty output for an empty file on some AIX systems.
4976 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4977 # Write a limited-size here document to conftest.frag.
4978 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4979 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4981 sed -f conftest.frag conftest.in > conftest.out
4983 mv conftest.out conftest.in
4985 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4987 mv conftest.tail conftest.vals
4991 cat >> $CONFIG_STATUS <<\EOF
4992 rm -f conftest.frag conftest.h
4993 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4994 cat conftest.in >> conftest.h
4996 if cmp -s $ac_file conftest.h 2>/dev/null; then
4997 echo "$ac_file is unchanged"
5000 # Remove last slash and all that follows it. Not all systems have dirname.
5001 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5002 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5003 # The file is in a subdirectory.
5004 test ! -d "$ac_dir" && mkdir "$ac_dir"
5007 mv conftest.h $ac_file
5012 cat >> $CONFIG_STATUS <<EOF
5016 cat >> $CONFIG_STATUS <<\EOF
5017 if test -f .devel; then
5018 echo timestamp > stamp-h
5019 cat Makefile-devel-adds >> Makefile
5025 chmod +x $CONFIG_STATUS
5026 rm -fr confdefs* $ac_clean_files
5027 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1