3 # From configure.in Revision: 1.142
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"
81 --enable-ipv6 enable ipv6 (with ipv4) support
82 --disable-ipv6 disable ipv6 support"
84 --without-crypto disable crypto support"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file
=.
/config.cache
99 program_transform_name
=s
,x
,x
,
107 bindir
='${exec_prefix}/bin'
108 sbindir
='${exec_prefix}/sbin'
109 libexecdir
='${exec_prefix}/libexec'
110 datadir
='${prefix}/share'
111 sysconfdir
='${prefix}/etc'
112 sharedstatedir
='${prefix}/com'
113 localstatedir
='${prefix}/var'
114 libdir
='${exec_prefix}/lib'
115 includedir
='${prefix}/include'
116 oldincludedir
='/usr/include'
117 infodir
='${prefix}/info'
118 mandir
='${prefix}/man'
120 # Initialize some other variables.
123 SHELL
=${CONFIG_SHELL-/bin/sh}
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
149 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
150 bindir
="$ac_optarg" ;;
152 -build |
--build |
--buil |
--bui |
--bu)
154 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
155 build
="$ac_optarg" ;;
157 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
158 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
159 ac_prev
=cache_file
;;
160 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
161 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
162 cache_file
="$ac_optarg" ;;
164 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
166 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
168 datadir
="$ac_optarg" ;;
170 -disable-* |
--disable-*)
171 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* |
--enable-*)
180 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
193 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
194 |
--exec |
--exe |
--ex)
195 ac_prev
=exec_prefix
;;
196 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
197 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
198 |
--exec=* |
--exe=* |
--ex=*)
199 exec_prefix
="$ac_optarg" ;;
201 -gas |
--gas |
--ga |
--g)
202 # Obsolete; use --with-gas.
205 -help |
--help |
--hel |
--he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host |
--host |
--hos |
--ho)
262 -host=* |
--host=* |
--hos=* |
--ho=*)
265 -includedir |
--includedir |
--includedi |
--included |
--include \
266 |
--includ |
--inclu |
--incl |
--inc)
267 ac_prev
=includedir
;;
268 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
269 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
270 includedir
="$ac_optarg" ;;
272 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
274 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
275 infodir
="$ac_optarg" ;;
277 -libdir |
--libdir |
--libdi |
--libd)
279 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
280 libdir
="$ac_optarg" ;;
282 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
283 |
--libexe |
--libex |
--libe)
284 ac_prev
=libexecdir
;;
285 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
286 |
--libexe=* |
--libex=* |
--libe=*)
287 libexecdir
="$ac_optarg" ;;
289 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
290 |
--localstate |
--localstat |
--localsta |
--localst \
291 |
--locals |
--local |
--loca |
--loc |
--lo)
292 ac_prev
=localstatedir
;;
293 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
294 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
295 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
296 localstatedir
="$ac_optarg" ;;
298 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
300 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
301 mandir
="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
311 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
312 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
315 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
316 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
317 |
--oldin |
--oldi |
--old |
--ol |
--o)
318 ac_prev
=oldincludedir
;;
319 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
320 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
321 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
322 oldincludedir
="$ac_optarg" ;;
324 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
326 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
327 prefix
="$ac_optarg" ;;
329 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
330 |
--program-pre |
--program-pr |
--program-p)
331 ac_prev
=program_prefix
;;
332 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
333 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
334 program_prefix
="$ac_optarg" ;;
336 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
337 |
--program-suf |
--program-su |
--program-s)
338 ac_prev
=program_suffix
;;
339 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
340 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
341 program_suffix
="$ac_optarg" ;;
343 -program-transform-name |
--program-transform-name \
344 |
--program-transform-nam |
--program-transform-na \
345 |
--program-transform-n |
--program-transform- \
346 |
--program-transform |
--program-transfor \
347 |
--program-transfo |
--program-transf \
348 |
--program-trans |
--program-tran \
349 |
--progr-tra |
--program-tr |
--program-t)
350 ac_prev
=program_transform_name
;;
351 -program-transform-name=* |
--program-transform-name=* \
352 |
--program-transform-nam=* |
--program-transform-na=* \
353 |
--program-transform-n=* |
--program-transform-=* \
354 |
--program-transform=* |
--program-transfor=* \
355 |
--program-transfo=* |
--program-transf=* \
356 |
--program-trans=* |
--program-tran=* \
357 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
358 program_transform_name
="$ac_optarg" ;;
360 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
361 |
-silent |
--silent |
--silen |
--sile |
--sil)
364 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
366 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
368 sbindir
="$ac_optarg" ;;
370 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
371 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
372 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
374 ac_prev
=sharedstatedir
;;
375 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
376 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
377 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
379 sharedstatedir
="$ac_optarg" ;;
381 -site |
--site |
--sit)
383 -site=* |
--site=* |
--sit=*)
386 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
388 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
389 srcdir
="$ac_optarg" ;;
391 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
392 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
393 ac_prev
=sysconfdir
;;
394 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
395 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
396 sysconfdir
="$ac_optarg" ;;
398 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
400 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
401 target
="$ac_optarg" ;;
403 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
406 -version |
--version |
--versio |
--versi |
--vers)
407 echo "configure generated by autoconf version 2.13"
411 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* |
--without-*)
424 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
437 |
--x-incl |
--x-inc |
--x-in |
--x-i)
438 ac_prev
=x_includes
;;
439 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
440 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
441 x_includes
="$ac_optarg" ;;
443 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
444 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
445 ac_prev
=x_libraries
;;
446 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
447 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
448 x_libraries
="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE
; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
499 |
--no-cr |
--no-c) ;;
500 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
501 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
502 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest
* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file
=tcpdump.c
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted
=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted
=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE
; then
553 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file
in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp
='$CPP $CPPFLAGS'
576 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling
=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
591 ac_n
= ac_c
='\c' ac_t
=
597 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
598 if test -f $ac_dir/install-sh
; then
600 ac_install_sh
="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh
; then
604 ac_install_sh
="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
611 ac_config_guess
=$ac_aux_dir/config.guess
612 ac_config_sub
=$ac_aux_dir/config.sub
613 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
616 # Do some error checking and defaulting for the host and target type.
618 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
621 # 1. You are not allowed to specify --host, --target, and nonopt at the
623 # 2. Host defaults to nonopt.
624 # 3. If nonopt is not specified, then host defaults to the current host,
625 # as determined by config.guess.
626 # 4. Target and build default to nonopt.
627 # 5. If nonopt is not specified, then target and build default to host.
629 # The aliases save the names the user supplied, while $host etc.
630 # will get canonicalized.
631 case $host---$target---$nonopt in
632 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
633 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
637 # Make sure we can run config.sub.
638 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
639 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
642 echo $ac_n "checking host system type""... $ac_c" 1>&6
643 echo "configure:644: checking host system type" >&5
646 case "$host_alias" in
650 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
651 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
653 *) host_alias
=$nonopt ;;
657 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
658 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$host" 1>&6
663 echo $ac_n "checking target system type""... $ac_c" 1>&6
664 echo "configure:665: checking target system type" >&5
667 case "$target_alias" in
670 NONE
) target_alias
=$host_alias ;;
671 *) target_alias
=$nonopt ;;
675 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
676 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$target" 1>&6
681 echo $ac_n "checking build system type""... $ac_c" 1>&6
682 echo "configure:683: checking build system type" >&5
685 case "$build_alias" in
688 NONE
) build_alias
=$host_alias ;;
689 *) build_alias
=$nonopt ;;
693 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
694 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697 echo "$ac_t""$build" 1>&6
699 test "$host_alias" != "$target_alias" &&
700 test "$program_prefix$program_suffix$program_transform_name" = \
702 program_prefix
=${target_alias}-
709 # Check whether --with-gcc or --without-gcc was given.
710 if test "${with_gcc+set}" = set; then
717 if test "${srcdir}" != "." ; then
718 V_INCLS
="-I\$(srcdir)"
720 if test "${CFLAGS+set}" = set; then
723 if test -z "$CC" ; then
727 # Extract the first word of "shlicc2", so it can be a program name with args.
728 set dummy shlicc2
; ac_word
=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$SHLICC2"; then
735 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
737 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
739 for ac_dir
in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir
=.
741 if test -f $ac_dir/$ac_word; then
742 ac_cv_prog_SHLICC2
="yes"
747 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
750 SHLICC2
="$ac_cv_prog_SHLICC2"
751 if test -n "$SHLICC2"; then
752 echo "$ac_t""$SHLICC2" 1>&6
754 echo "$ac_t""no" 1>&6
757 if test $SHLICC2 = yes ; then
764 if test -z "$CC" -a "$with_gcc" = no
; then
768 # Extract the first word of "gcc", so it can be a program name with args.
769 set dummy gcc
; ac_word
=$2
770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
771 echo "configure:772: checking for $ac_word" >&5
772 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
773 echo $ac_n "(cached) $ac_c" 1>&6
775 if test -n "$CC"; then
776 ac_cv_prog_CC
="$CC" # Let the user override the test.
778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
780 for ac_dir
in $ac_dummy; do
781 test -z "$ac_dir" && ac_dir
=.
782 if test -f $ac_dir/$ac_word; then
791 if test -n "$CC"; then
792 echo "$ac_t""$CC" 1>&6
794 echo "$ac_t""no" 1>&6
797 if test -z "$CC"; then
798 # Extract the first word of "cc", so it can be a program name with args.
799 set dummy cc
; ac_word
=$2
800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
801 echo "configure:802: checking for $ac_word" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 if test -n "$CC"; then
806 ac_cv_prog_CC
="$CC" # Let the user override the test.
808 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
811 for ac_dir
in $ac_dummy; do
812 test -z "$ac_dir" && ac_dir
=.
813 if test -f $ac_dir/$ac_word; then
814 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
823 if test $ac_prog_rejected = yes; then
824 # We found a bogon in the path, so make sure we never use it.
825 set dummy
$ac_cv_prog_CC
827 if test $# -gt 0; then
828 # We chose a different compiler from the bogus one.
829 # However, it has the same basename, so the bogon will be chosen
830 # first if we set CC to just the basename; use the full file name.
832 set dummy
"$ac_dir/$ac_word" "$@"
840 if test -n "$CC"; then
841 echo "$ac_t""$CC" 1>&6
843 echo "$ac_t""no" 1>&6
846 if test -z "$CC"; then
849 # Extract the first word of "cl", so it can be a program name with args.
850 set dummy cl
; ac_word
=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 echo "configure:853: checking for $ac_word" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
856 if test -n "$CC"; then
857 ac_cv_prog_CC
="$CC" # Let the user override the test.
859 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
861 for ac_dir
in $ac_dummy; do
862 test -z "$ac_dir" && ac_dir
=.
863 if test -f $ac_dir/$ac_word; then
872 if test -n "$CC"; then
873 echo "$ac_t""$CC" 1>&6
875 echo "$ac_t""no" 1>&6
880 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
883 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
884 echo "configure:885: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
887 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
888 ac_cpp
='$CPP $CPPFLAGS'
889 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
890 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
891 cross_compiling
=$ac_cv_prog_cc_cross
893 cat > conftest.
$ac_ext << EOF
895 #line 896 "configure"
896 #include "confdefs.h"
900 if { (eval echo configure
:901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
901 ac_cv_prog_cc_works
=yes
902 # If we can't run a trivial program, we are probably using a cross compiler.
903 if (.
/conftest
; exit) 2>/dev
/null
; then
904 ac_cv_prog_cc_cross
=no
906 ac_cv_prog_cc_cross
=yes
909 echo "configure: failed program was:" >&5
910 cat conftest.
$ac_ext >&5
911 ac_cv_prog_cc_works
=no
915 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
916 ac_cpp
='$CPP $CPPFLAGS'
917 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
918 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
919 cross_compiling
=$ac_cv_prog_cc_cross
921 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
922 if test $ac_cv_prog_cc_works = no
; then
923 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
927 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
928 cross_compiling
=$ac_cv_prog_cc_cross
930 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
931 echo "configure:932: checking whether we are using GNU C" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 cat > conftest.c
<<EOF
940 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
947 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
949 if test $ac_cv_prog_gcc = yes; then
955 ac_test_CFLAGS
="${CFLAGS+set}"
956 ac_save_CFLAGS
="$CFLAGS"
958 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
959 echo "configure:960: checking whether ${CC-cc} accepts -g" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
963 echo 'void f(){}' > conftest.c
964 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
973 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
974 if test "$ac_test_CFLAGS" = set; then
975 CFLAGS
="$ac_save_CFLAGS"
976 elif test $ac_cv_prog_cc_g = yes; then
977 if test "$GCC" = yes; then
983 if test "$GCC" = yes; then
990 if test "$GCC" = yes ; then
991 if test "$SHLICC2" = yes ; then
995 echo $ac_n "checking gcc version""... $ac_c" 1>&6
996 echo "configure:997: checking gcc version" >&5
997 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
1001 sed -e '/^gcc version /!d' \
1002 -e 's/^gcc version //' \
1003 -e 's/ .*//' -e 's/^[^0-9]*//' \
1007 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1008 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1013 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
1014 echo "configure:1015: checking that $CC handles ansi prototypes" >&5
1015 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
1016 echo $ac_n "(cached) $ac_c" 1>&6
1018 cat > conftest.
$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <sys/types.h>
1023 int frob(int, char *)
1026 if { (eval echo configure
:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1028 ac_cv_lbl_cc_ansi_prototypes
=yes
1030 echo "configure: failed program was:" >&5
1031 cat conftest.
$ac_ext >&5
1033 ac_cv_lbl_cc_ansi_prototypes
=no
1038 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1039 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1040 case "$target_os" in
1043 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1044 echo "configure:1045: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1045 savedcflags
="$CFLAGS"
1046 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1047 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 cat > conftest.
$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1053 #include <sys/types.h>
1055 int frob(int, char *)
1058 if { (eval echo configure
:1059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1060 ac_cv_lbl_cc_hpux_cc_aa
=yes
1062 echo "configure: failed program was:" >&5
1063 cat conftest.
$ac_ext >&5
1065 ac_cv_lbl_cc_hpux_cc_aa
=no
1070 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1071 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1072 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1074 CFLAGS
="$savedcflags"
1075 V_CCOPT
="-Aa $V_CCOPT"
1076 cat >> confdefs.h
<<\EOF
1077 #define _HPUX_SOURCE 1
1083 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1087 V_INCLS
="$V_INCLS -I/usr/local/include"
1088 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1090 case "$target_os" in
1093 V_CCOPT
="$V_CCOPT -xansi -signed -O"
1097 V_CCOPT
="$V_CCOPT -std1 -O"
1101 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1102 echo "configure:1103: checking that Ultrix $CC hacks const in prototypes" >&5
1103 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 cat > conftest.
$ac_ext <<EOF
1107 #line 1108 "configure"
1108 #include "confdefs.h"
1109 #include <sys/types.h>
1111 struct a { int b; };
1112 void c(const struct a *)
1115 if { (eval echo configure
:1116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1117 ac_cv_lbl_cc_const_proto
=yes
1119 echo "configure: failed program was:" >&5
1120 cat conftest.
$ac_ext >&5
1122 ac_cv_lbl_cc_const_proto
=no
1127 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1128 if test $ac_cv_lbl_cc_const_proto = no
; then
1129 cat >> confdefs.h
<<\EOF
1138 echo $ac_n "checking for inline""... $ac_c" 1>&6
1139 echo "configure:1140: checking for inline" >&5
1140 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1141 echo $ac_n "(cached) $ac_c" 1>&6
1144 for ac_kw
in inline __inline__ __inline
; do
1145 cat > conftest.
$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1153 if { (eval echo configure
:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1155 ac_cv_c_inline
=$ac_kw; break
1157 echo "configure: failed program was:" >&5
1158 cat conftest.
$ac_ext >&5
1165 echo "$ac_t""$ac_cv_c_inline" 1>&6
1166 case "$ac_cv_c_inline" in
1168 no
) cat >> confdefs.h
<<\EOF
1172 *) cat >> confdefs.h
<<EOF
1173 #define inline $ac_cv_c_inline
1179 echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1180 echo "configure:1181: checking for __attribute__" >&5
1181 if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftest.
$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1193 static void foo(void) __attribute__ ((noreturn));
1203 if { (eval echo configure
:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1205 ac_cv___attribute__
=yes
1207 echo "configure: failed program was:" >&5
1208 cat conftest.
$ac_ext >&5
1210 ac_cv___attribute__
=no
1215 if test "$ac_cv___attribute__" = "yes"; then
1216 cat >> confdefs.h
<<\EOF
1217 #define HAVE___ATTRIBUTE__ 1
1221 echo "$ac_t""$ac_cv___attribute__" 1>&6
1224 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1225 echo "configure:1226: checking how to run the C preprocessor" >&5
1226 # On Suns, sometimes $CPP names a directory.
1227 if test -n "$CPP" && test -d "$CPP"; then
1230 if test -z "$CPP"; then
1231 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 # This must be in double quotes, not single quotes, because CPP may get
1235 # substituted into the Makefile and "${CC-cc}" will confuse make.
1237 # On the NeXT, cc -E runs the code through the compiler's parser,
1238 # not just through cpp.
1239 cat > conftest.
$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1245 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1246 { (eval echo configure
:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1247 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1248 if test -z "$ac_err"; then
1252 echo "configure: failed program was:" >&5
1253 cat conftest.
$ac_ext >&5
1255 CPP
="${CC-cc} -E -traditional-cpp"
1256 cat > conftest.
$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1263 { (eval echo configure
:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265 if test -z "$ac_err"; then
1269 echo "configure: failed program was:" >&5
1270 cat conftest.
$ac_ext >&5
1272 CPP
="${CC-cc} -nologo -E"
1273 cat > conftest.
$ac_ext <<EOF
1274 #line 1275 "configure"
1275 #include "confdefs.h"
1279 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1280 { (eval echo configure
:1281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1281 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1282 if test -z "$ac_err"; then
1286 echo "configure: failed program was:" >&5
1287 cat conftest.
$ac_ext >&5
1296 ac_cv_prog_CPP
="$CPP"
1298 CPP
="$ac_cv_prog_CPP"
1300 ac_cv_prog_CPP
="$CPP"
1302 echo "$ac_t""$CPP" 1>&6
1304 for ac_hdr
in fcntl.h rpc
/rpcent.h netinet
/if_ether.h
1306 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_hdr" >&5
1309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 cat > conftest.
$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1318 { (eval echo configure
:1319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1320 if test -z "$ac_err"; then
1322 eval "ac_cv_header_$ac_safe=yes"
1325 echo "configure: failed program was:" >&5
1326 cat conftest.
$ac_ext >&5
1328 eval "ac_cv_header_$ac_safe=no"
1332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1335 cat >> confdefs.h
<<EOF
1336 #define $ac_tr_hdr 1
1340 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether time.h and sys/time.h may both be included" >&5
1346 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1352 #include <sys/types.h>
1353 #include <sys/time.h>
1359 if { (eval echo configure
:1360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1361 ac_cv_header_time
=yes
1363 echo "configure: failed program was:" >&5
1364 cat conftest.
$ac_ext >&5
1366 ac_cv_header_time
=no
1371 echo "$ac_t""$ac_cv_header_time" 1>&6
1372 if test $ac_cv_header_time = yes; then
1373 cat >> confdefs.h
<<\EOF
1374 #define TIME_WITH_SYS_TIME 1
1380 case "$target_os" in
1383 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1384 echo "configure:1385: checking Linux kernel version" >&5
1385 if test "$cross_compiling" = yes; then
1386 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 ac_cv_linux_vers
=unknown
1393 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 ac_cv_linux_vers
=`uname -r 2>&1 | \
1397 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1401 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1402 if test $ac_cv_linux_vers = unknown
; then
1403 { echo "configure: error: cannot determine linux version when cross-compiling" 1>&2; exit 1; }
1405 if test $ac_cv_linux_vers -lt 2 ; then
1406 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1417 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_hdr" >&5
1420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 cat > conftest.
$ac_ext <<EOF
1424 #line 1425 "configure"
1425 #include "confdefs.h"
1428 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1429 { (eval echo configure
:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1430 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1431 if test -z "$ac_err"; then
1433 eval "ac_cv_header_$ac_safe=yes"
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 eval "ac_cv_header_$ac_safe=no"
1443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1444 echo "$ac_t""yes" 1>&6
1445 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1446 cat >> confdefs.h
<<EOF
1447 #define $ac_tr_hdr 1
1451 echo "$ac_t""no" 1>&6
1455 echo $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6
1456 echo "configure:1457: checking for smiInit in -lsmi" >&5
1457 ac_lib_var
=`echo smi'_'smiInit | sed 'y%./+-%__p_%'`
1458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 ac_save_LIBS
="$LIBS"
1463 cat > conftest.
$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1466 /* Override any gcc2 internal prototype to avoid an error. */
1467 /* We use char because int might match the return type of a gcc2
1468 builtin and then its argument prototype would still apply. */
1475 if { (eval echo configure
:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1477 eval "ac_cv_lib_$ac_lib_var=yes"
1479 echo "configure: failed program was:" >&5
1480 cat conftest.
$ac_ext >&5
1482 eval "ac_cv_lib_$ac_lib_var=no"
1485 LIBS
="$ac_save_LIBS"
1488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1489 echo "$ac_t""yes" 1>&6
1490 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1491 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1492 cat >> confdefs.h
<<EOF
1493 #define $ac_tr_lib 1
1499 echo "$ac_t""no" 1>&6
1502 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
1504 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1505 echo "configure:1506: checking whether to enable libsmi" >&5
1506 if test "$cross_compiling" = yes; then
1507 echo "$ac_t""not when cross-compiling" 1>&6
1511 cat > conftest.
$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 /* libsmi available check */
1518 int current, revision, age, n;
1519 const int required = 2;
1522 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
1524 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age);
1527 if (required < current - age || required > current)
1533 if { (eval echo configure
:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1535 echo "$ac_t""yes" 1>&6
1536 cat >> confdefs.h
<<\EOF
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1546 1) echo "$ac_t""no - smiInit failed" 1>&6 ;;
1547 2) echo "$ac_t""no - header/library version mismatch" 1>&6 ;;
1548 3) echo "$ac_t""no - can't determine library version" 1>&6 ;;
1549 4) echo "$ac_t""no - too old" 1>&6 ;;
1550 *) echo "$ac_t""no" 1>&6 ;;
1559 echo $ac_n "checking whether to enable the possibly-buggy SMB printer""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether to enable the possibly-buggy SMB printer" >&5
1561 # Check whether --enable-smb or --disable-smb was given.
1562 if test "${enable_smb+set}" = set; then
1563 enableval
="$enable_smb"
1564 case "$enableval" in
1565 yes) echo "$ac_t""yes" 1>&6
1566 echo "configure: warning: The SMB printer may have exploitable buffer overflows!!!" 1>&2
1567 cat >> confdefs.h
<<\EOF
1568 #define TCPDUMP_DO_SMB 1
1571 LOCALSRC
="print-smb.c smbutil.c $LOCALSRC"
1573 *) echo "$ac_t""no" 1>&6
1580 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1581 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1582 echo "configure:1583: checking whether to enable ipv6" >&5
1583 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1584 if test "${enable_ipv6+set}" = set; then
1585 enableval
="$enable_ipv6"
1586 case "$enableval" in
1587 yes) echo "$ac_t""yes" 1>&6
1588 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"
1589 cat >> confdefs.h
<<\EOF
1596 echo "$ac_t""no" 1>&6
1601 if test "$cross_compiling" = yes; then
1602 echo "$ac_t""no" 1>&6
1606 cat > conftest.
$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1609 /* AF_INET6 available check */
1610 #include <sys/types.h>
1611 #include <sys/socket.h>
1614 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1621 if { (eval echo configure
:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1623 echo "$ac_t""yes" 1>&6
1624 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"
1625 cat >> confdefs.h
<<\EOF
1631 echo "configure: failed program was:" >&5
1632 cat conftest.
$ac_ext >&5
1634 echo "$ac_t""no" 1>&6
1647 if test "$ipv6" = "yes"; then
1648 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1649 echo "configure:1650: checking ipv6 stack type" >&5
1650 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1653 cat > conftest.
$ac_ext <<EOF
1654 #line 1655 "configure"
1655 #include "confdefs.h"
1657 #include <netinet/in.h>
1658 #ifdef IPV6_INRIA_VERSION
1662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "yes" >/dev
/null
2>&1; then
1666 CFLAGS
="-DINET6 $CFLAGS"
1672 cat > conftest.
$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1676 #include <netinet/in.h>
1681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1682 egrep "yes" >/dev
/null
2>&1; then
1686 ipv6libdir
=/usr
/local
/v
6/lib
;
1688 CFLAGS
="-DINET6 $CFLAGS"
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1698 #include <features.h>
1699 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1704 egrep "yes" >/dev
/null
2>&1; then
1707 CFLAGS
="-DINET6 $CFLAGS"
1713 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1716 ipv6libdir
=/usr
/inet
6/lib
1718 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1722 cat > conftest.
$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1726 #include <sys/param.h>
1727 #ifdef _TOSHIBA_INET6
1731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1732 egrep "yes" >/dev
/null
2>&1; then
1736 ipv6libdir
=/usr
/local
/v
6/lib
;
1737 CFLAGS
="-DINET6 $CFLAGS"
1743 cat > conftest.
$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1747 #include </usr/local/v6/include/sys/v6config.h>
1752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1753 egrep "yes" >/dev
/null
2>&1; then
1757 ipv6libdir
=/usr
/local
/v
6/lib
;
1758 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1764 cat > conftest.
$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1768 #include <sys/param.h>
1769 #ifdef _ZETA_MINAMI_INET6
1773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1774 egrep "yes" >/dev
/null
2>&1; then
1778 ipv6libdir
=/usr
/local
/v
6/lib
;
1779 CFLAGS
="-DINET6 $CFLAGS"
1785 if test "$ipv6type" != "unknown"; then
1789 echo "$ac_t""$ipv6type" 1>&6
1792 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1793 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1794 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1795 echo "You have $ipv6lib library, using it"
1797 if test "$ipv6trylibc" = "yes"; then
1798 echo "You do not have $ipv6lib library, using libc"
1800 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1801 echo "You need to fetch lib$ipv6lib.a from appropriate"
1802 echo 'ipv6 kit and compile beforehand.'
1809 if test "$ipv6" = "yes"; then
1811 echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6
1812 echo "configure:1813: checking for library containing getaddrinfo" >&5
1813 if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 ac_func_search_save_LIBS
="$LIBS"
1817 ac_cv_search_getaddrinfo
="no"
1818 cat > conftest.
$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1830 if { (eval echo configure
:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1832 ac_cv_search_getaddrinfo
="none required"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.
$ac_ext >&5
1838 test "$ac_cv_search_getaddrinfo" = "no" && for i
in socket
; do
1839 LIBS
="-l$i $ac_func_search_save_LIBS"
1840 cat > conftest.
$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* Override any gcc2 internal prototype to avoid an error. */
1844 /* We use char because int might match the return type of a gcc2
1845 builtin and then its argument prototype would still apply. */
1852 if { (eval echo configure
:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1854 ac_cv_search_getaddrinfo
="-l$i"
1857 echo "configure: failed program was:" >&5
1858 cat conftest.
$ac_ext >&5
1862 LIBS
="$ac_func_search_save_LIBS"
1865 echo "$ac_t""$ac_cv_search_getaddrinfo" 1>&6
1866 if test "$ac_cv_search_getaddrinfo" != "no"; then
1867 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS
="$ac_cv_search_getaddrinfo $LIBS"
1868 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1869 echo "configure:1870: checking getaddrinfo bug" >&5
1870 if test "$cross_compiling" = yes; then
1871 echo "$ac_t""buggy" 1>&6
1872 buggygetaddrinfo
=yes
1874 cat > conftest.
$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1878 #include <sys/types.h>
1881 #include <sys/socket.h>
1882 #include <netinet/in.h>
1886 int passive, gaierr, inet4 = 0, inet6 = 0;
1887 struct addrinfo hints, *ai, *aitop;
1888 char straddr[INET6_ADDRSTRLEN], strport[16];
1890 for (passive = 0; passive <= 1; passive++) {
1891 memset(&hints, 0, sizeof(hints));
1892 hints.ai_family = AF_UNSPEC;
1893 hints.ai_flags = passive ? AI_PASSIVE : 0;
1894 hints.ai_socktype = SOCK_STREAM;
1895 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1896 (void)gai_strerror(gaierr);
1899 for (ai = aitop; ai; ai = ai->ai_next) {
1900 if (ai->ai_addr == NULL ||
1901 ai->ai_addrlen == 0 ||
1902 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1903 straddr, sizeof(straddr), strport, sizeof(strport),
1904 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1907 switch (ai->ai_family) {
1909 if (strcmp(strport, "54321") != 0) {
1913 if (strcmp(straddr, "0.0.0.0") != 0) {
1917 if (strcmp(straddr, "127.0.0.1") != 0) {
1924 if (strcmp(strport, "54321") != 0) {
1928 if (strcmp(straddr, "::") != 0) {
1932 if (strcmp(straddr, "::1") != 0) {
1949 /* another family support? */
1955 /* supported family should be 2, unsupported family should be 0 */
1956 if (!(inet4 == 0 || inet4 == 2))
1958 if (!(inet6 == 0 || inet6 == 2))
1962 freeaddrinfo(aitop);
1967 freeaddrinfo(aitop);
1972 if { (eval echo configure
:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1974 echo "$ac_t""good" 1>&6
1977 echo "configure: failed program was:" >&5
1978 cat conftest.
$ac_ext >&5
1980 echo "$ac_t""buggy" 1>&6
1981 buggygetaddrinfo
=yes
1987 buggygetaddrinfo
=yes
1990 if test "$buggygetaddrinfo" = "yes"; then
1991 if test "$ipv6type" != "linux"; then
1992 echo 'Fatal: You must get working getaddrinfo() function.'
1993 echo ' or you can specify "--disable-ipv6"'.
1996 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1997 echo ' Better upgreade your system library to newest version'
1998 echo ' of GNU C library (aka glibc).'
2001 for ac_func
in getaddrinfo getnameinfo
2003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2004 echo "configure:2005: checking for $ac_func" >&5
2005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.
$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $ac_func(); below. */
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2032 if { (eval echo configure
:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2034 eval "ac_cv_func_$ac_func=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_func_$ac_func=no"
2044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2046 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2047 cat >> confdefs.h
<<EOF
2048 #define $ac_tr_func 1
2052 echo "$ac_t""no" 1>&6
2053 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2059 echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6
2060 echo "configure:2061: checking for inet_ntop" >&5
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 #include <sys/types.h>
2065 #include <sys/socket.h>
2066 #include <netinet/in.h>
2067 #include <arpa/inet.h>
2069 char src[4], dst[128];
2070 inet_ntop(AF_INET, src, dst, sizeof(dst));
2073 if { (eval echo configure
:2074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 echo "$ac_t""yes" 1>&6
2077 echo "configure: failed program was:" >&5
2078 cat conftest.
$ac_ext >&5
2080 echo "$ac_t""no" 1>&6
2081 for ac_func
in inet_ntop
2083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_func" >&5
2085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 /* System header to define __stub macros and hopefully few prototypes,
2092 which can conflict with char $ac_func(); below. */
2094 /* Override any gcc2 internal prototype to avoid an error. */
2095 /* We use char because int might match the return type of a gcc2
2096 builtin and then its argument prototype would still apply. */
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2112 if { (eval echo configure
:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2114 eval "ac_cv_func_$ac_func=yes"
2116 echo "configure: failed program was:" >&5
2117 cat conftest.
$ac_ext >&5
2119 eval "ac_cv_func_$ac_func=no"
2124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2125 echo "$ac_t""yes" 1>&6
2126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2127 cat >> confdefs.h
<<EOF
2128 #define $ac_tr_func 1
2132 echo "$ac_t""no" 1>&6
2133 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2140 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
2141 echo "configure:2142: checking for inet_pton" >&5
2142 cat > conftest.
$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 #include <sys/types.h>
2146 #include <sys/socket.h>
2147 #include <netinet/in.h>
2148 #include <arpa/inet.h>
2150 char src[128], dst[4];
2151 inet_pton(AF_INET, src, dst);
2154 if { (eval echo configure
:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2156 echo "$ac_t""yes" 1>&6
2158 echo "configure: failed program was:" >&5
2159 cat conftest.
$ac_ext >&5
2161 echo "$ac_t""no" 1>&6
2162 for ac_func
in inet_pton
2164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_func" >&5
2166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $ac_func(); below. */
2175 /* Override any gcc2 internal prototype to avoid an error. */
2176 /* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2182 /* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2195 eval "ac_cv_func_$ac_func=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_func_$ac_func=no"
2205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2208 cat >> confdefs.h
<<EOF
2209 #define $ac_tr_func 1
2213 echo "$ac_t""no" 1>&6
2214 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2221 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
2222 echo "configure:2223: checking for inet_aton" >&5
2223 cat > conftest.
$ac_ext <<EOF
2224 #line 2225 "configure"
2225 #include "confdefs.h"
2226 #include <sys/types.h>
2227 #include <netinet/in.h>
2228 #include <arpa/inet.h>
2232 inet_aton(src, &dst);
2235 if { (eval echo configure
:2236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2237 echo "$ac_t""yes" 1>&6
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 echo "$ac_t""no" 1>&6
2243 for ac_func
in inet_aton
2245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_func" >&5
2247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 cat > conftest.
$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 /* System header to define __stub macros and hopefully few prototypes,
2254 which can conflict with char $ac_func(); below. */
2256 /* Override any gcc2 internal prototype to avoid an error. */
2257 /* We use char because int might match the return type of a gcc2
2258 builtin and then its argument prototype would still apply. */
2263 /* The GNU C library defines this for functions which it implements
2264 to always fail with ENOSYS. Some functions are actually named
2265 something starting with __ and the normal name is an alias. */
2266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2274 if { (eval echo configure
:2275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2276 eval "ac_cv_func_$ac_func=yes"
2278 echo "configure: failed program was:" >&5
2279 cat conftest.
$ac_ext >&5
2281 eval "ac_cv_func_$ac_func=no"
2286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2289 cat >> confdefs.h
<<EOF
2290 #define $ac_tr_func 1
2294 echo "$ac_t""no" 1>&6
2295 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2304 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2305 echo "configure:2306: checking if sockaddr struct has sa_len member" >&5
2306 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.
$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2313 # include <sys/types.h>
2314 # include <sys/socket.h>
2316 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2319 if { (eval echo configure
:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 ac_cv_sockaddr_has_sa_len
=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2326 ac_cv_sockaddr_has_sa_len
=no
2331 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2332 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2333 cat >> confdefs.h
<<\EOF
2334 #define HAVE_SOCKADDR_SA_LEN 1
2339 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2340 missing_includes
=yes
2343 echo $ac_n "checking size of char""... $ac_c" 1>&6
2344 echo "configure:2345: checking size of char" >&5
2345 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 if test "$cross_compiling" = yes; then
2351 cat > conftest.
$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2357 FILE *f=fopen("conftestval", "w");
2359 fprintf(f, "%d\n", sizeof(char));
2363 if { (eval echo configure
:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2365 ac_cv_sizeof_char
=`cat conftestval`
2367 echo "configure: failed program was:" >&5
2368 cat conftest.
$ac_ext >&5
2376 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2377 cat >> confdefs.h
<<EOF
2378 #define SIZEOF_CHAR $ac_cv_sizeof_char
2382 echo $ac_n "checking size of short""... $ac_c" 1>&6
2383 echo "configure:2384: checking size of short" >&5
2384 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 if test "$cross_compiling" = yes; then
2388 ac_cv_sizeof_short
=2
2390 cat > conftest.
$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2396 FILE *f=fopen("conftestval", "w");
2398 fprintf(f, "%d\n", sizeof(short));
2402 if { (eval echo configure
:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2404 ac_cv_sizeof_short
=`cat conftestval`
2406 echo "configure: failed program was:" >&5
2407 cat conftest.
$ac_ext >&5
2409 ac_cv_sizeof_short
=0
2415 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2416 cat >> confdefs.h
<<EOF
2417 #define SIZEOF_SHORT $ac_cv_sizeof_short
2421 echo $ac_n "checking size of int""... $ac_c" 1>&6
2422 echo "configure:2423: checking size of int" >&5
2423 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 if test "$cross_compiling" = yes; then
2429 cat > conftest.
$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2435 FILE *f=fopen("conftestval", "w");
2437 fprintf(f, "%d\n", sizeof(int));
2441 if { (eval echo configure
:2442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2443 ac_cv_sizeof_int
=`cat conftestval`
2445 echo "configure: failed program was:" >&5
2446 cat conftest.
$ac_ext >&5
2454 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2455 cat >> confdefs.h
<<EOF
2456 #define SIZEOF_INT $ac_cv_sizeof_int
2460 echo $ac_n "checking size of long""... $ac_c" 1>&6
2461 echo "configure:2462: checking size of long" >&5
2462 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 if test "$cross_compiling" = yes; then
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2474 FILE *f=fopen("conftestval", "w");
2476 fprintf(f, "%d\n", sizeof(long));
2480 if { (eval echo configure
:2481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2482 ac_cv_sizeof_long
=`cat conftestval`
2484 echo "configure: failed program was:" >&5
2485 cat conftest.
$ac_ext >&5
2493 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2494 cat >> confdefs.h
<<EOF
2495 #define SIZEOF_LONG $ac_cv_sizeof_long
2502 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2503 echo "configure:2504: checking for addrinfo" >&5
2504 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.
$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2516 if { (eval echo configure
:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2528 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2529 if test $ac_cv_addrinfo = yes; then
2530 cat >> confdefs.h
<<\EOF
2531 #define HAVE_ADDRINFO 1
2535 cat >> confdefs.h
<<\EOF
2536 #define NEED_ADDRINFO_H 1
2541 if test "$ac_cv_addrinfo" = no
; then
2542 missing_includes
=yes
2546 echo $ac_n "checking for NI_MAXSERV""... $ac_c" 1>&6
2547 echo "configure:2548: checking for NI_MAXSERV" >&5
2548 if eval "test \"`echo '$''{'ac_cv_maxserv'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.
$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2560 egrep "yes" >/dev
/null
2>&1; then
2571 echo "$ac_t""$ac_cv_maxserv" 1>&6
2572 if test $ac_cv_maxserv != yes; then
2573 cat >> confdefs.h
<<\EOF
2574 #define NEED_ADDRINFO_H 1
2579 if test "$ac_cv_maxserv" = no
; then
2580 missing_includes
=yes
2584 echo $ac_n "checking for NI_NAMEREQD""... $ac_c" 1>&6
2585 echo "configure:2586: checking for NI_NAMEREQD" >&5
2586 if eval "test \"`echo '$''{'ac_cv_namereqd'+set}'`\" = set"; then
2587 echo $ac_n "(cached) $ac_c" 1>&6
2589 cat > conftest.
$ac_ext <<EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2598 egrep "yes" >/dev
/null
2>&1; then
2609 echo "$ac_t""$ac_cv_namereqd" 1>&6
2610 if test $ac_cv_namereqd != yes; then
2611 cat >> confdefs.h
<<\EOF
2612 #define NEED_ADDRINFO_H 1
2617 if test "$ac_cv_namereqd" = no
; then
2618 missing_includes
=yes
2622 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2623 echo "configure:2624: checking for sockaddr_storage" >&5
2624 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.
$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2631 # include <sys/types.h>
2632 # include <sys/socket.h>
2634 struct sockaddr_storage s
2637 if { (eval echo configure
:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2639 ac_cv_sa_storage
=yes
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2649 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2650 if test $ac_cv_sa_storage = yes; then
2651 cat >> confdefs.h
<<\EOF
2652 #define HAVE_SOCKADDR_STORAGE 1
2657 if test "$ac_cv_sa_storage" = no
; then
2658 missing_includes
=yes
2663 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2664 echo "configure:2665: checking for INADDRSZ" >&5
2665 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 cat > conftest.
$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2672 # include <arpa/nameser.h>
2677 if { (eval echo configure
:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2681 echo "configure: failed program was:" >&5
2682 cat conftest.
$ac_ext >&5
2689 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2690 if test $ac_cv_inaddrsz = yes; then
2691 cat >> confdefs.h
<<\EOF
2692 #define HAVE_INADDRSZ 1
2698 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2699 echo "configure:2700: checking for IN6ADDRSZ" >&5
2700 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2707 # include <arpa/nameser.h>
2712 if { (eval echo configure
:2713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2724 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2725 if test $ac_cv_in6addrsz = yes; then
2726 cat >> confdefs.h
<<\EOF
2727 #define HAVE_IN6ADDRSZ 1
2734 if test "$ac_cv_addrsz" = no
; then
2735 missing_includes
=yes
2739 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2740 echo "configure:2741: checking for RES_USE_INET6" >&5
2741 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.
$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2748 # include <sys/types.h>
2749 # include <netinet/in.h>
2750 # include <resolv.h>
2752 int a = RES_USE_INET6
2755 if { (eval echo configure
:2756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2767 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2768 if test $ac_cv_res_inet6 = yes; then
2769 cat >> confdefs.h
<<\EOF
2770 #define HAVE_RES_USE_INET6 1
2775 if test "$ac_cv_res_inet6" = no
; then
2776 missing_includes
=yes
2780 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2781 echo "configure:2782: checking for res_state_ext" >&5
2782 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.
$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2789 # include <sys/types.h>
2790 # include <netinet/in.h>
2791 # include <netinet6/in6.h>
2792 # include <resolv.h>
2794 struct __res_state_ext e
2797 if { (eval echo configure
:2798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2799 ac_cv_res_state_ext
=yes
2801 echo "configure: failed program was:" >&5
2802 cat conftest.
$ac_ext >&5
2804 ac_cv_res_state_ext
=no
2809 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2810 if test $ac_cv_res_state_ext = yes; then
2811 cat >> confdefs.h
<<\EOF
2812 #define HAVE_RES_STATE_EXT 1
2817 if test "$ac_cv_res_state_ext" = no
; then
2818 missing_includes
=yes
2822 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2823 echo "configure:2824: checking for nsort in res_state" >&5
2824 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.
$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2831 # include <sys/types.h>
2832 # include <netinet/in.h>
2833 # include <netinet6/in6.h>
2834 # include <resolv.h>
2836 struct __res_state e; e.nsort = 0
2839 if { (eval echo configure
:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843 echo "configure: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2851 echo "$ac_t""$ac_cv_res_state" 1>&6
2852 if test $ac_cv_res_state = yes; then
2853 cat >> confdefs.h
<<\EOF
2854 #define HAVE_NEW_RES_STATE 1
2860 if test "$missing_includes" = "yes"; then
2861 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2862 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2866 for ac_func
in vfprintf strcasecmp strlcat strlcpy strdup
2868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_func" >&5
2870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char $ac_func(); below. */
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2897 if { (eval echo configure
:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2899 eval "ac_cv_func_$ac_func=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.
$ac_ext >&5
2904 eval "ac_cv_func_$ac_func=no"
2909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2912 cat >> confdefs.h
<<EOF
2913 #define $ac_tr_func 1
2917 echo "$ac_t""no" 1>&6
2918 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2923 for ac_func
in ether_ntohost
2925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2926 echo "configure:2927: checking for $ac_func" >&5
2927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* System header to define __stub macros and hopefully few prototypes,
2934 which can conflict with char $ac_func(); below. */
2936 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2954 if { (eval echo configure
:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2956 eval "ac_cv_func_$ac_func=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2961 eval "ac_cv_func_$ac_func=no"
2966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2969 cat >> confdefs.h
<<EOF
2970 #define $ac_tr_func 1
2973 echo $ac_n "checking for buggy ether_ntohost""... $ac_c" 1>&6
2974 echo "configure:2975: checking for buggy ether_ntohost" >&5
2975 if eval "test \"`echo '$''{'ac_cv_buggy_ether_ntohost'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2979 if test "$cross_compiling" = yes; then
2980 ac_cv_buggy_ether_ntohost
=not
while cross-compiling
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2987 #include <sys/types.h>
2988 #include <sys/param.h>
2989 #include <sys/socket.h>
2992 main(int argc, char **argv)
2994 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
2995 char name[MAXHOSTNAMELEN];
2997 ether_ntohost(name, (struct ether_addr *)ea);
3002 if { (eval echo configure
:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3004 ac_cv_buggy_ether_ntohost
=no
3006 echo "configure: failed program was:" >&5
3007 cat conftest.
$ac_ext >&5
3009 ac_cv_buggy_ether_ntohost
=yes
3016 echo "$ac_t""$ac_cv_buggy_ether_ntohost" 1>&6
3017 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
3018 cat >> confdefs.h
<<\EOF
3019 #define USE_ETHER_NTOHOST 1
3025 echo "$ac_t""no" 1>&6
3029 for ac_func
in setlinebuf
3031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_func" >&5
3033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 cat > conftest.
$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 /* System header to define __stub macros and hopefully few prototypes,
3040 which can conflict with char $ac_func(); below. */
3042 /* Override any gcc2 internal prototype to avoid an error. */
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3049 /* The GNU C library defines this for functions which it implements
3050 to always fail with ENOSYS. Some functions are actually named
3051 something starting with __ and the normal name is an alias. */
3052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3060 if { (eval echo configure
:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3062 eval "ac_cv_func_$ac_func=yes"
3064 echo "configure: failed program was:" >&5
3065 cat conftest.
$ac_ext >&5
3067 eval "ac_cv_func_$ac_func=no"
3072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
3074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3075 cat >> confdefs.h
<<EOF
3076 #define $ac_tr_func 1
3080 echo "$ac_t""no" 1>&6
3086 for ac_func
in vsnprintf snprintf
3088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_func" >&5
3090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.
$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 /* System header to define __stub macros and hopefully few prototypes,
3097 which can conflict with char $ac_func(); below. */
3099 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3117 if { (eval echo configure
:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3119 eval "ac_cv_func_$ac_func=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3124 eval "ac_cv_func_$ac_func=no"
3129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3132 cat >> confdefs.h
<<EOF
3133 #define $ac_tr_func 1
3137 echo "$ac_t""no" 1>&6
3142 if test $needsnprintf = yes; then
3143 LIBOBJS
="$LIBOBJS snprintf.o"
3147 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3148 echo "configure:3149: checking return type of signal handlers" >&5
3149 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 cat > conftest.
$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 #include <sys/types.h>
3161 extern "C" void (*signal (int, void (*)(int)))(int);
3163 void (*signal ()) ();
3170 if { (eval echo configure
:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 ac_cv_type_signal
=void
3174 echo "configure: failed program was:" >&5
3175 cat conftest.
$ac_ext >&5
3177 ac_cv_type_signal
=int
3182 echo "$ac_t""$ac_cv_type_signal" 1>&6
3183 cat >> confdefs.h
<<EOF
3184 #define RETSIGTYPE $ac_cv_type_signal
3188 if test "$ac_cv_type_signal" = void
; then
3189 cat >> confdefs.h
<<\EOF
3194 cat >> confdefs.h
<<\EOF
3195 #define RETSIGVAL (0)
3199 case "$target_os" in
3202 cat >> confdefs.h
<<\EOF
3203 #define _BSD_SIGNALS 1
3209 for ac_func
in sigset
3211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3212 echo "configure:3213: checking for $ac_func" >&5
3213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 cat > conftest.
$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 /* System header to define __stub macros and hopefully few prototypes,
3220 which can conflict with char $ac_func(); below. */
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3229 /* The GNU C library defines this for functions which it implements
3230 to always fail with ENOSYS. Some functions are actually named
3231 something starting with __ and the normal name is an alias. */
3232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3240 if { (eval echo configure
:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3242 eval "ac_cv_func_$ac_func=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 eval "ac_cv_func_$ac_func=no"
3252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3253 echo "$ac_t""yes" 1>&6
3254 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3255 cat >> confdefs.h
<<EOF
3256 #define $ac_tr_func 1
3260 echo "$ac_t""no" 1>&6
3264 if test $ac_cv_func_sigset = no
; then
3265 for ac_func
in sigaction
3267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3268 echo "configure:3269: checking for $ac_func" >&5
3269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3272 cat > conftest.
$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3275 /* System header to define __stub macros and hopefully few prototypes,
3276 which can conflict with char $ac_func(); below. */
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3285 /* The GNU C library defines this for functions which it implements
3286 to always fail with ENOSYS. Some functions are actually named
3287 something starting with __ and the normal name is an alias. */
3288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3296 if { (eval echo configure
:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3298 eval "ac_cv_func_$ac_func=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 eval "ac_cv_func_$ac_func=no"
3308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3311 cat >> confdefs.h
<<EOF
3312 #define $ac_tr_func 1
3316 echo "$ac_t""no" 1>&6
3324 echo $ac_n "checking for dnet_htoa in -ldnet""... $ac_c" 1>&6
3325 echo "configure:3326: checking for dnet_htoa in -ldnet" >&5
3326 ac_lib_var
=`echo dnet'_'dnet_htoa | sed 'y%./+-%__p_%'`
3327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 ac_save_LIBS
="$LIBS"
3332 cat > conftest.
$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 /* Override any gcc2 internal prototype to avoid an error. */
3336 /* We use char because int might match the return type of a gcc2
3337 builtin and then its argument prototype would still apply. */
3344 if { (eval echo configure
:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3346 eval "ac_cv_lib_$ac_lib_var=yes"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.
$ac_ext >&5
3351 eval "ac_cv_lib_$ac_lib_var=no"
3354 LIBS
="$ac_save_LIBS"
3357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3358 echo "$ac_t""yes" 1>&6
3359 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3361 cat >> confdefs.h
<<EOF
3362 #define $ac_tr_lib 1
3368 echo "$ac_t""no" 1>&6
3372 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
3373 echo "configure:3374: checking for main in -lrpc" >&5
3374 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
3375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 ac_save_LIBS
="$LIBS"
3380 cat > conftest.
$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3388 if { (eval echo configure
:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3390 eval "ac_cv_lib_$ac_lib_var=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.
$ac_ext >&5
3395 eval "ac_cv_lib_$ac_lib_var=no"
3398 LIBS
="$ac_save_LIBS"
3401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3403 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3405 cat >> confdefs.h
<<EOF
3406 #define $ac_tr_lib 1
3412 echo "$ac_t""no" 1>&6
3416 echo $ac_n "checking for library containing getrpcbynumber""... $ac_c" 1>&6
3417 echo "configure:3418: checking for library containing getrpcbynumber" >&5
3418 if eval "test \"`echo '$''{'ac_cv_search_getrpcbynumber'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 ac_func_search_save_LIBS
="$LIBS"
3422 ac_cv_search_getrpcbynumber
="no"
3423 cat > conftest.
$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3429 char getrpcbynumber();
3435 if { (eval echo configure
:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3437 ac_cv_search_getrpcbynumber
="none required"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.
$ac_ext >&5
3443 test "$ac_cv_search_getrpcbynumber" = "no" && for i
in nsl
; do
3444 LIBS
="-l$i $ac_func_search_save_LIBS"
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3451 char getrpcbynumber();
3457 if { (eval echo configure
:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3459 ac_cv_search_getrpcbynumber
="-l$i"
3462 echo "configure: failed program was:" >&5
3463 cat conftest.
$ac_ext >&5
3467 LIBS
="$ac_func_search_save_LIBS"
3470 echo "$ac_t""$ac_cv_search_getrpcbynumber" 1>&6
3471 if test "$ac_cv_search_getrpcbynumber" != "no"; then
3472 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS
="$ac_cv_search_getrpcbynumber $LIBS"
3480 # Most operating systems have gethostbyname() in the default searched
3481 # libraries (i.e. libc):
3482 # Some OSes (eg. Solaris) place it in libnsl
3483 # Some strange OSes (SINIX) have it in libsocket:
3485 echo $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6
3486 echo "configure:3487: checking for library containing gethostbyname" >&5
3487 if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_func_search_save_LIBS
="$LIBS"
3491 ac_cv_search_gethostbyname
="no"
3492 cat > conftest.
$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3498 char gethostbyname();
3504 if { (eval echo configure
:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3506 ac_cv_search_gethostbyname
="none required"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.
$ac_ext >&5
3512 test "$ac_cv_search_gethostbyname" = "no" && for i
in nsl socket resolv
; do
3513 LIBS
="-l$i $ac_func_search_save_LIBS"
3514 cat > conftest.
$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char gethostbyname();
3526 if { (eval echo configure
:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3528 ac_cv_search_gethostbyname
="-l$i"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.
$ac_ext >&5
3536 LIBS
="$ac_func_search_save_LIBS"
3539 echo "$ac_t""$ac_cv_search_gethostbyname" 1>&6
3540 if test "$ac_cv_search_gethostbyname" != "no"; then
3541 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
3546 # Unfortunately libsocket sometimes depends on libnsl and
3547 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
3548 if test "$ac_cv_search_gethostbyname" = "no"
3550 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3551 echo "configure:3552: checking for gethostbyname in -lsocket" >&5
3552 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
3553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 ac_save_LIBS
="$LIBS"
3557 LIBS
="-lsocket -lnsl $LIBS"
3558 cat > conftest.
$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3564 char gethostbyname();
3570 if { (eval echo configure
:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3572 eval "ac_cv_lib_$ac_lib_var=yes"
3574 echo "configure: failed program was:" >&5
3575 cat conftest.
$ac_ext >&5
3577 eval "ac_cv_lib_$ac_lib_var=no"
3580 LIBS
="$ac_save_LIBS"
3583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3585 LIBS
="-lsocket -lnsl $LIBS"
3587 echo "$ac_t""no" 1>&6
3592 echo $ac_n "checking for library containing socket""... $ac_c" 1>&6
3593 echo "configure:3594: checking for library containing socket" >&5
3594 if eval "test \"`echo '$''{'ac_cv_search_socket'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_func_search_save_LIBS
="$LIBS"
3598 ac_cv_search_socket
="no"
3599 cat > conftest.
$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 /* Override any gcc2 internal prototype to avoid an error. */
3603 /* We use char because int might match the return type of a gcc2
3604 builtin and then its argument prototype would still apply. */
3611 if { (eval echo configure
:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3613 ac_cv_search_socket
="none required"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.
$ac_ext >&5
3619 test "$ac_cv_search_socket" = "no" && for i
in socket
; do
3620 LIBS
="-l$i $ac_func_search_save_LIBS"
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3633 if { (eval echo configure
:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3635 ac_cv_search_socket
="-l$i"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.
$ac_ext >&5
3643 LIBS
="$ac_func_search_save_LIBS"
3646 echo "$ac_t""$ac_cv_search_socket" 1>&6
3647 if test "$ac_cv_search_socket" != "no"; then
3648 test "$ac_cv_search_socket" = "none required" || LIBS
="$ac_cv_search_socket $LIBS"
3651 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3652 echo "configure:3653: checking for socket in -lsocket" >&5
3653 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 ac_save_LIBS
="$LIBS"
3658 LIBS
="-lsocket -lnsl $LIBS"
3659 cat > conftest.
$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 /* Override any gcc2 internal prototype to avoid an error. */
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3671 if { (eval echo configure
:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3673 eval "ac_cv_lib_$ac_lib_var=yes"
3675 echo "configure: failed program was:" >&5
3676 cat conftest.
$ac_ext >&5
3678 eval "ac_cv_lib_$ac_lib_var=no"
3681 LIBS
="$ac_save_LIBS"
3684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3685 echo "$ac_t""yes" 1>&6
3686 LIBS
="-lsocket -lnsl $LIBS"
3688 echo "$ac_t""no" 1>&6
3692 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3694 echo $ac_n "checking for library containing putmsg""... $ac_c" 1>&6
3695 echo "configure:3696: checking for library containing putmsg" >&5
3696 if eval "test \"`echo '$''{'ac_cv_search_putmsg'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3699 ac_func_search_save_LIBS
="$LIBS"
3700 ac_cv_search_putmsg
="no"
3701 cat > conftest.
$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3713 if { (eval echo configure
:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3715 ac_cv_search_putmsg
="none required"
3717 echo "configure: failed program was:" >&5
3718 cat conftest.
$ac_ext >&5
3721 test "$ac_cv_search_putmsg" = "no" && for i
in str
; do
3722 LIBS
="-l$i $ac_func_search_save_LIBS"
3723 cat > conftest.
$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 /* Override any gcc2 internal prototype to avoid an error. */
3727 /* We use char because int might match the return type of a gcc2
3728 builtin and then its argument prototype would still apply. */
3735 if { (eval echo configure
:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3737 ac_cv_search_putmsg
="-l$i"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3745 LIBS
="$ac_func_search_save_LIBS"
3748 echo "$ac_t""$ac_cv_search_putmsg" 1>&6
3749 if test "$ac_cv_search_putmsg" != "no"; then
3750 test "$ac_cv_search_putmsg" = "none required" || LIBS
="$ac_cv_search_putmsg $LIBS"
3758 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3759 if test -f $pfopen ; then
3760 for ac_func
in pfopen
3762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763 echo "configure:3764: checking for $ac_func" >&5
3764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 cat > conftest.
$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* System header to define __stub macros and hopefully few prototypes,
3771 which can conflict with char $ac_func(); below. */
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3780 /* The GNU C library defines this for functions which it implements
3781 to always fail with ENOSYS. Some functions are actually named
3782 something starting with __ and the normal name is an alias. */
3783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3791 if { (eval echo configure
:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3793 eval "ac_cv_func_$ac_func=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3798 eval "ac_cv_func_$ac_func=no"
3803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3806 cat >> confdefs.h
<<EOF
3807 #define $ac_tr_func 1
3811 echo "$ac_t""no" 1>&6
3815 if test $ac_cv_func_pfopen = "no" ; then
3816 echo "$ac_t""Using $pfopen" 1>&6
3817 LIBS
="$LIBS $pfopen"
3820 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3821 echo "configure:3822: checking for local pcap library" >&5
3824 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3825 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3826 for dir
in $places ..
/libpcap libpcap
; do
3827 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3828 if test $lastdir = $basedir ; then
3832 if test -r $dir/libpcap.a
; then
3833 libpcap
=$dir/libpcap.a
3837 if test $libpcap = FAIL
; then
3838 echo "$ac_t""not found" 1>&6
3839 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3840 echo "configure:3841: checking for main in -lpcap" >&5
3841 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3843 echo $ac_n "(cached) $ac_c" 1>&6
3845 ac_save_LIBS
="$LIBS"
3847 cat > conftest.
$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3855 if { (eval echo configure
:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3857 eval "ac_cv_lib_$ac_lib_var=yes"
3859 echo "configure: failed program was:" >&5
3860 cat conftest.
$ac_ext >&5
3862 eval "ac_cv_lib_$ac_lib_var=no"
3865 LIBS
="$ac_save_LIBS"
3868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3872 echo "$ac_t""no" 1>&6
3875 if test $libpcap = FAIL
; then
3876 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3880 places
=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
3881 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
3882 if test -r $d/pcap.h
; then
3883 V_INCLS
="-I$d $V_INCLS"
3884 elif test -r $places/pcap.h
; then
3885 V_INCLS
="-I$places $V_INCLS"
3887 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3889 echo "$ac_t""$libpcap" 1>&6
3891 LIBS
="$libpcap $LIBS"
3892 case "$target_os" in
3895 pseexe
="/lib/pse.exp"
3896 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3897 echo "configure:3898: checking for $pseexe" >&5
3898 if test -f $pseexe ; then
3899 echo "$ac_t""yes" 1>&6
3900 LIBS
="$LIBS -I:$pseexe"
3905 for ac_func
in bpf_dump
3907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3908 echo "configure:3909: checking for $ac_func" >&5
3909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 cat > conftest.
$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* System header to define __stub macros and hopefully few prototypes,
3916 which can conflict with char $ac_func(); below. */
3918 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3925 /* The GNU C library defines this for functions which it implements
3926 to always fail with ENOSYS. Some functions are actually named
3927 something starting with __ and the normal name is an alias. */
3928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3936 if { (eval echo configure
:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3938 eval "ac_cv_func_$ac_func=yes"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.
$ac_ext >&5
3943 eval "ac_cv_func_$ac_func=no"
3948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3951 cat >> confdefs.h
<<EOF
3952 #define $ac_tr_func 1
3956 echo "$ac_t""no" 1>&6
3957 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3963 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3966 case "$target_os" in
3969 cat >> confdefs.h
<<\EOF
3988 if test -f /dev
/bpf0
; then
3992 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3993 echo "configure:3994: checking for u_int8_t using $CC" >&5
3994 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.
$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4001 # include "confdefs.h"
4002 # include <sys/types.h>
4004 # include <stdlib.h>
4005 # include <stddef.h>
4011 if { (eval echo configure
:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4013 ac_cv_lbl_have_u_int8_t
=yes
4015 echo "configure: failed program was:" >&5
4016 cat conftest.
$ac_ext >&5
4018 ac_cv_lbl_have_u_int8_t
=no
4023 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
4024 if test $ac_cv_lbl_have_u_int8_t = no
; then
4025 cat >> confdefs.h
<<\EOF
4026 #define u_int8_t u_char
4030 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
4031 echo "configure:4032: checking for int16_t using $CC" >&5
4032 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.
$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4039 # include "confdefs.h"
4040 # include <sys/types.h>
4042 # include <stdlib.h>
4043 # include <stddef.h>
4049 if { (eval echo configure
:4050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 ac_cv_lbl_have_int16_t
=yes
4053 echo "configure: failed program was:" >&5
4054 cat conftest.
$ac_ext >&5
4056 ac_cv_lbl_have_int16_t
=no
4061 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
4062 if test $ac_cv_lbl_have_int16_t = no
; then
4063 cat >> confdefs.h
<<\EOF
4064 #define int16_t short
4068 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
4069 echo "configure:4070: checking for u_int16_t using $CC" >&5
4070 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 cat > conftest.
$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4077 # include "confdefs.h"
4078 # include <sys/types.h>
4080 # include <stdlib.h>
4081 # include <stddef.h>
4087 if { (eval echo configure
:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4089 ac_cv_lbl_have_u_int16_t
=yes
4091 echo "configure: failed program was:" >&5
4092 cat conftest.
$ac_ext >&5
4094 ac_cv_lbl_have_u_int16_t
=no
4099 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
4100 if test $ac_cv_lbl_have_u_int16_t = no
; then
4101 cat >> confdefs.h
<<\EOF
4102 #define u_int16_t u_short
4106 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
4107 echo "configure:4108: checking for int32_t using $CC" >&5
4108 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4115 # include "confdefs.h"
4116 # include <sys/types.h>
4118 # include <stdlib.h>
4119 # include <stddef.h>
4125 if { (eval echo configure
:4126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 ac_cv_lbl_have_int32_t
=yes
4129 echo "configure: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4132 ac_cv_lbl_have_int32_t
=no
4137 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
4138 if test $ac_cv_lbl_have_int32_t = no
; then
4139 cat >> confdefs.h
<<\EOF
4144 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
4145 echo "configure:4146: checking for u_int32_t using $CC" >&5
4146 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4153 # include "confdefs.h"
4154 # include <sys/types.h>
4156 # include <stdlib.h>
4157 # include <stddef.h>
4163 if { (eval echo configure
:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 ac_cv_lbl_have_u_int32_t
=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 ac_cv_lbl_have_u_int32_t
=no
4175 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
4176 if test $ac_cv_lbl_have_u_int32_t = no
; then
4177 cat >> confdefs.h
<<\EOF
4178 #define u_int32_t u_int
4184 if test "${LBL_CFLAGS+set}" = set; then
4185 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
4187 if test -f .devel
; then
4188 if test "$GCC" = yes ; then
4189 if test "${LBL_CFLAGS+set}" != set; then
4190 if test "$ac_cv_prog_cc_g" = yes ; then
4191 V_CCOPT
="-g $V_CCOPT"
4193 V_CCOPT
="$V_CCOPT -Wall"
4194 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
4195 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
4199 case "$target_os" in
4202 V_CCOPT
="$V_CCOPT -n32"
4209 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4211 if test -f $name ; then
4212 ln -s $name os-proto.h
4213 cat >> confdefs.h
<<\EOF
4214 #define HAVE_OS_PROTO_H 1
4218 echo "configure: warning: can't find $name" 1>&2
4222 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4223 echo "configure:4224: checking if sockaddr struct has sa_len member" >&5
4224 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 cat > conftest.
$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4231 # include <sys/types.h>
4232 # include <sys/socket.h>
4234 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4237 if { (eval echo configure
:4238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4239 ac_cv_lbl_sockaddr_has_sa_len
=yes
4241 echo "configure: failed program was:" >&5
4242 cat conftest.
$ac_ext >&5
4244 ac_cv_lbl_sockaddr_has_sa_len
=no
4249 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4250 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4251 cat >> confdefs.h
<<\EOF
4252 #define HAVE_SOCKADDR_SA_LEN 1
4257 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4258 echo "configure:4259: checking if unaligned accesses fail" >&5
4259 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 case "$target_cpu" in
4264 # XXX: should also check that they don't do weird things (like on arm)
4265 alpha
*|arm
*|hp
*|mips|ia64|sparc
)
4266 ac_cv_lbl_unaligned_fail
=yes
4270 cat >conftest.c
<<EOF
4271 # include <sys/types.h>
4272 # include <sys/wait.h>
4274 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4279 /* avoid "core dumped" message */
4285 pid = waitpid(pid, &status, 0);
4288 exit(!WIFEXITED(status));
4291 i = *(unsigned int *)&a[1];
4296 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4297 conftest.c
$LIBS >/dev
/null
2>&1
4298 if test ! -x conftest
; then
4299 ac_cv_lbl_unaligned_fail
=yes
4301 .
/conftest
>conftest.out
4302 if test ! -s conftest.out
; then
4303 ac_cv_lbl_unaligned_fail
=yes
4305 ac_cv_lbl_unaligned_fail
=no
4308 rm -f conftest
* core core.conftest
4313 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4314 if test $ac_cv_lbl_unaligned_fail = yes ; then
4315 cat >> confdefs.h
<<\EOF
4322 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4323 echo "configure:4324: checking for h_errno" >&5
4324 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 cat > conftest.
$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4331 # include <sys/types.h>
4337 if { (eval echo configure
:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4339 ac_cv_var_h_errno
=yes
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 ac_cv_var_h_errno
=no
4349 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4350 if test "$ac_cv_var_h_errno" = "yes"; then
4351 cat >> confdefs.h
<<\EOF
4352 #define HAVE_H_ERRNO 1
4358 # Check whether --with-crypto or --without-crypto was given.
4359 if test "${with_crypto+set}" = set; then
4360 withval
="$with_crypto"
4364 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4365 echo "configure:4366: checking for SSLeay" >&5
4366 ac_cv_ssleay_path
=no
4368 for dir
in /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4369 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4370 ac_cv_ssleay_path
=$dir
4372 if test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4373 incdir
="-I$dir/include"
4375 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4378 ac_cv_ssleay_path
=no
4382 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4383 if test "$ac_cv_ssleay_path" != no
; then
4384 V_INCLS
="$V_INCLS $incdir"
4385 LDFLAGS
="-L$dir/lib $LDFLAGS"
4386 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4387 LIBS
="$LIBS -lRSAglue"
4389 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4390 LIBS
="$LIBS -lrsaref"
4392 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4393 echo "configure:4394: checking for des_cbc_encrypt in -lcrypto" >&5
4394 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 ac_save_LIBS
="$LIBS"
4399 LIBS
="-lcrypto $LIBS"
4400 cat > conftest.
$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4406 char des_cbc_encrypt();
4412 if { (eval echo configure
:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 eval "ac_cv_lib_$ac_lib_var=no"
4422 LIBS
="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4429 cat >> confdefs.h
<<EOF
4430 #define $ac_tr_lib 1
4433 LIBS
="-lcrypto $LIBS"
4436 echo "$ac_t""no" 1>&6
4440 bak_CPPFLAGS
=$CPPFLAGS
4441 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4442 for ac_hdr
in cast.h
4444 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_hdr" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.
$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4455 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure
:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4458 if test -z "$ac_err"; then
4460 eval "ac_cv_header_$ac_safe=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 eval "ac_cv_header_$ac_safe=no"
4470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4472 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4473 cat >> confdefs.h
<<EOF
4474 #define $ac_tr_hdr 1
4478 echo "$ac_t""no" 1>&6
4483 if test "$ac_cv_header_cast_h" = "yes"; then
4484 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4485 echo "configure:4486: checking for buggy CAST128" >&5
4486 if test "$cross_compiling" = yes; then
4487 buggy_cast128
="cross-compiling, assume yes"
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.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
4513 echo "configure: failed program was:" >&5
4514 cat conftest.
$ac_ext >&5
4521 echo "$ac_t""$buggy_cast128" 1>&6
4522 if test "$buggy_cast128" != no
; then
4523 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4524 echo "disabling CAST128 support."
4525 cat >> confdefs.h
<<\EOF
4526 #define HAVE_BUGGY_CAST128 1
4532 CPPFLAGS
=$bak_CPPFLAGS
4539 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4541 echo "configure:4542: checking for $ac_hdr" >&5
4542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4545 cat > conftest.
$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4550 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4551 { (eval echo configure
:4552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4552 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4553 if test -z "$ac_err"; then
4555 eval "ac_cv_header_$ac_safe=yes"
4558 echo "configure: failed program was:" >&5
4559 cat conftest.
$ac_ext >&5
4561 eval "ac_cv_header_$ac_safe=no"
4565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4567 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4568 cat >> confdefs.h
<<EOF
4569 #define $ac_tr_hdr 1
4573 echo "$ac_t""no" 1>&6
4584 # Find a good install program. We prefer a C program (faster),
4585 # so one script is as good as another. But avoid the broken or
4586 # incompatible versions:
4587 # SysV /etc/install, /usr/sbin/install
4588 # SunOS /usr/etc/install
4589 # IRIX /sbin/install
4591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4594 # ./install, which can be erroneously created by make from ./install.sh.
4595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4596 echo "configure:4597: checking for a BSD compatible install" >&5
4597 if test -z "$INSTALL"; then
4598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4602 for ac_dir
in $PATH; do
4603 # Account for people who put trailing slashes in PATH elements.
4605 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4607 # OSF1 and SCO ODT 3.0 have their own names for install.
4608 # Don't use installbsd from OSF since it installs stuff as root
4610 for ac_prog
in ginstall scoinst
install; do
4611 if test -f $ac_dir/$ac_prog; then
4612 if test $ac_prog = install &&
4613 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4614 # AIX install. It has an incompatible calling convention.
4617 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4628 if test "${ac_cv_path_install+set}" = set; then
4629 INSTALL
="$ac_cv_path_install"
4631 # As a last resort, use the slow shell script. We don't cache a
4632 # path for INSTALL within a source directory, because that will
4633 # break other packages using the cache if that directory is
4634 # removed, or if the path is relative.
4635 INSTALL
="$ac_install_sh"
4638 echo "$ac_t""$INSTALL" 1>&6
4640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4641 # It thinks the first close brace ends the variable substitution.
4642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4646 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4653 cat > confcache
<<\EOF
4654 # This file is a shell script that caches the results of configure
4655 # tests run on this system so they can be shared between configure
4656 # scripts and configure runs. It is not useful on other systems.
4657 # If it contains results you don't want to keep, you may remove or edit it.
4659 # By default, configure uses ./config.cache as the cache file,
4660 # creating it if it does not exist already. You can give configure
4661 # the --cache-file=FILE option to use a different cache file; that is
4662 # what configure does when it calls configure scripts in
4663 # subdirectories, so they share the cache.
4664 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4665 # config.status only pays attention to the cache file if you give it the
4666 # --recheck option to rerun configure.
4669 # The following way of writing the cache mishandles newlines in values,
4670 # but we know of no workaround that is simple, portable, and efficient.
4671 # So, don't put newlines in cache variables' values.
4672 # Ultrix sh set writes to stderr and can't be redirected directly,
4673 # and sets the high bit in the cache file unless we assign to the vars.
4675 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4677 # `set' does not quote correctly, so add quotes (double-quote substitution
4678 # turns \\\\ into \\, and sed turns \\ into \).
4680 -e "s/'/'\\\\''/g" \
4681 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4684 # `set' quotes correctly as required by POSIX, so do not add quotes.
4685 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4688 if cmp -s $cache_file confcache
; then
4691 if test -w $cache_file; then
4692 echo "updating cache $cache_file"
4693 cat confcache
> $cache_file
4695 echo "not updating unwritable cache $cache_file"
4700 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4702 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4703 # Let make expand exec_prefix.
4704 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4706 # Any assignment to VPATH causes Sun make to only execute
4707 # the first set of double-colon rules, so remove it if not needed.
4708 # If there is a colon in the path, we need to keep it.
4709 if test "x$srcdir" = x.
; then
4710 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4713 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4715 DEFS
=-DHAVE_CONFIG_H
4717 # Without the "./", some shells look in PATH for config.status.
4718 : ${CONFIG_STATUS=./config.status}
4720 echo creating
$CONFIG_STATUS
4721 rm -f $CONFIG_STATUS
4722 cat > $CONFIG_STATUS <<EOF
4724 # Generated automatically by configure.
4725 # Run this file to recreate the current configuration.
4726 # This directory was configured as follows,
4727 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4729 # $0 $ac_configure_args
4731 # Compiler output produced by configure, useful for debugging
4732 # configure, is in ./config.log if it exists.
4734 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4737 case "\$ac_option" in
4738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4739 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4740 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4741 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4742 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4744 -help | --help | --hel | --he | --h)
4745 echo "\$ac_cs_usage"; exit 0 ;;
4746 *) echo "\$ac_cs_usage"; exit 1 ;;
4750 ac_given_srcdir=$srcdir
4751 ac_given_INSTALL="$INSTALL"
4753 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4755 cat >> $CONFIG_STATUS <<EOF
4757 # Protect against being on the right side of a sed subst in config.status.
4758 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4759 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4763 s%@CFLAGS@%$CFLAGS%g
4764 s%@CPPFLAGS@%$CPPFLAGS%g
4765 s%@CXXFLAGS@%$CXXFLAGS%g
4766 s%@FFLAGS@%$FFLAGS%g
4768 s%@LDFLAGS@%$LDFLAGS%g
4770 s%@exec_prefix@%$exec_prefix%g
4771 s%@prefix@%$prefix%g
4772 s%@program_transform_name@%$program_transform_name%g
4773 s%@bindir@%$bindir%g
4774 s%@sbindir@%$sbindir%g
4775 s%@libexecdir@%$libexecdir%g
4776 s%@datadir@%$datadir%g
4777 s%@sysconfdir@%$sysconfdir%g
4778 s%@sharedstatedir@%$sharedstatedir%g
4779 s%@localstatedir@%$localstatedir%g
4780 s%@libdir@%$libdir%g
4781 s%@includedir@%$includedir%g
4782 s%@oldincludedir@%$oldincludedir%g
4783 s%@infodir@%$infodir%g
4784 s%@mandir@%$mandir%g
4786 s%@host_alias@%$host_alias%g
4787 s%@host_cpu@%$host_cpu%g
4788 s%@host_vendor@%$host_vendor%g
4789 s%@host_os@%$host_os%g
4790 s%@target@%$target%g
4791 s%@target_alias@%$target_alias%g
4792 s%@target_cpu@%$target_cpu%g
4793 s%@target_vendor@%$target_vendor%g
4794 s%@target_os@%$target_os%g
4796 s%@build_alias@%$build_alias%g
4797 s%@build_cpu@%$build_cpu%g
4798 s%@build_vendor@%$build_vendor%g
4799 s%@build_os@%$build_os%g
4800 s%@SHLICC2@%$SHLICC2%g
4803 s%@LIBOBJS@%$LIBOBJS%g
4804 s%@V_CCOPT@%$V_CCOPT%g
4805 s%@V_GROUP@%$V_GROUP%g
4806 s%@V_INCLS@%$V_INCLS%g
4807 s%@V_PCAPDEP@%$V_PCAPDEP%g
4808 s%@LOCALSRC@%$LOCALSRC%g
4809 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4810 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4811 s%@INSTALL_DATA@%$INSTALL_DATA%g
4816 cat >> $CONFIG_STATUS <<\EOF
4818 # Split the substitutions into bite-sized pieces for seds with
4819 # small command number limits, like on Digital OSF/1 and HP-UX.
4820 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4821 ac_file
=1 # Number of current file.
4822 ac_beg
=1 # First line for current file.
4823 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4826 while $ac_more_lines; do
4827 if test $ac_beg -gt 1; then
4828 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4830 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4832 if test ! -s conftest.s
$ac_file; then
4834 rm -f conftest.s
$ac_file
4836 if test -z "$ac_sed_cmds"; then
4837 ac_sed_cmds
="sed -f conftest.s$ac_file"
4839 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4841 ac_file
=`expr $ac_file + 1`
4843 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4846 if test -z "$ac_sed_cmds"; then
4851 cat >> $CONFIG_STATUS <<EOF
4853 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4855 cat >> $CONFIG_STATUS <<\EOF
4856 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4857 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4859 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4860 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4861 *) ac_file_in
="${ac_file}.in" ;;
4864 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4866 # Remove last slash and all that follows it. Not all systems have dirname.
4867 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4868 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4869 # The file is in a subdirectory.
4870 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4871 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4872 # A "../" for each directory in $ac_dir_suffix.
4873 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4875 ac_dir_suffix
= ac_dots
=
4878 case "$ac_given_srcdir" in
4880 if test -z "$ac_dots"; then top_srcdir
=.
4881 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4882 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4884 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4885 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4888 case "$ac_given_INSTALL" in
4889 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4890 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4893 echo creating
"$ac_file"
4895 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4897 *Makefile
*) ac_comsub
="1i\\
4898 # $configure_input" ;;
4902 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4904 s%@configure_input@%$configure_input%g
4905 s%@srcdir@%$srcdir%g
4906 s%@top_srcdir@%$top_srcdir%g
4907 s%@INSTALL@%$INSTALL%g
4908 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4912 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4913 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4915 # ac_d sets the value in "#define NAME VALUE" lines.
4916 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4917 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4920 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4921 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4922 ac_uB
='\([ ]\)%\1#\2define\3'
4925 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4926 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4927 ac_eB
='$%\1#\2define\3'
4931 if test "${CONFIG_HEADERS+set}" != set; then
4933 cat >> $CONFIG_STATUS <<EOF
4934 CONFIG_HEADERS="config.h"
4936 cat >> $CONFIG_STATUS <<\EOF
4938 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4941 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4942 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4943 *) ac_file_in
="${ac_file}.in" ;;
4946 echo creating
$ac_file
4948 rm -f conftest.frag conftest.
in conftest.out
4949 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4950 cat $ac_file_inputs > conftest.
in
4954 # Transform confdefs.h into a sed script conftest.vals that substitutes
4955 # the proper values into config.h.in to produce config.h. And first:
4956 # Protect against being on the right side of a sed subst in config.status.
4957 # Protect against being in an unquoted here document in config.status.
4959 cat > conftest.hdr
<<\EOF
4962 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4966 sed -n -f conftest.hdr confdefs.h > conftest.vals
4969 # This sed command replaces #undef with comments. This is necessary, for
4970 # example, in the case of _POSIX_SOURCE, which is predefined and required
4971 # on some systems where configure will not decide to define it.
4972 cat >> conftest.vals <<\EOF
4973 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4976 # Break up conftest.vals because some shells have a limit on
4977 # the size of here documents, and old seds have small limits too.
4982 ac_lines=`grep -c . conftest.vals
`
4983 # grep -c gives empty output for an empty file on some AIX systems.
4984 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4985 # Write a limited-size here document to conftest.frag.
4986 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4987 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4989 sed -f conftest.frag conftest.in > conftest.out
4991 mv conftest.out conftest.in
4993 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4995 mv conftest.tail conftest.vals
4999 cat >> $CONFIG_STATUS <<\EOF
5000 rm -f conftest.frag conftest.h
5001 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5002 cat conftest.in >> conftest.h
5004 if cmp -s $ac_file conftest.h 2>/dev/null; then
5005 echo "$ac_file is unchanged"
5008 # Remove last slash and all that follows it. Not all systems have dirname.
5009 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5010 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5011 # The file is in a subdirectory.
5012 test ! -d "$ac_dir" && mkdir "$ac_dir"
5015 mv conftest.h $ac_file
5020 cat >> $CONFIG_STATUS <<EOF
5024 cat >> $CONFIG_STATUS <<\EOF
5025 if test -f .devel; then
5026 echo timestamp > stamp-h
5027 cat Makefile-devel-adds >> Makefile
5033 chmod +x $CONFIG_STATUS
5034 rm -fr confdefs* $ac_clean_files
5035 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1