3 # From configure.in Revision: 1.33
58 # Guess values for system-dependent variables and create Makefiles.
59 # Generated automatically using autoconf version 2.13
60 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
62 # This configure script is free software; the Free Software Foundation
63 # gives unlimited permission to copy, distribute and modify it.
67 ac_default_prefix
=/usr
/local
68 # Any additions from configure.in:
70 --without-gcc don't use gcc"
72 --enable-ipv6 enable ipv6 (with ipv4) support
73 --disable-ipv6 disable ipv6 support"
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
79 cache_file
=.
/config.cache
88 program_transform_name
=s
,x
,x
,
96 bindir
='${exec_prefix}/bin'
97 sbindir
='${exec_prefix}/sbin'
98 libexecdir
='${exec_prefix}/libexec'
99 datadir
='${prefix}/share'
100 sysconfdir
='${prefix}/etc'
101 sharedstatedir
='${prefix}/com'
102 localstatedir
='${prefix}/var'
103 libdir
='${exec_prefix}/lib'
104 includedir
='${prefix}/include'
105 oldincludedir
='/usr/include'
106 infodir
='${prefix}/info'
107 mandir
='${prefix}/man'
109 # Initialize some other variables.
112 SHELL
=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
128 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
132 # Accept the important Cygnus configure options, so we can diagnose typos.
136 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
138 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
139 bindir
="$ac_optarg" ;;
141 -build |
--build |
--buil |
--bui |
--bu)
143 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
144 build
="$ac_optarg" ;;
146 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
147 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
148 ac_prev
=cache_file
;;
149 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
150 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
151 cache_file
="$ac_optarg" ;;
153 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
155 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
157 datadir
="$ac_optarg" ;;
159 -disable-* |
--disable-*)
160 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* |
--enable-*)
169 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
182 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
183 |
--exec |
--exe |
--ex)
184 ac_prev
=exec_prefix
;;
185 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
186 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
187 |
--exec=* |
--exe=* |
--ex=*)
188 exec_prefix
="$ac_optarg" ;;
190 -gas |
--gas |
--ga |
--g)
191 # Obsolete; use --with-gas.
194 -help |
--help |
--hel |
--he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
249 -host |
--host |
--hos |
--ho)
251 -host=* |
--host=* |
--hos=* |
--ho=*)
254 -includedir |
--includedir |
--includedi |
--included |
--include \
255 |
--includ |
--inclu |
--incl |
--inc)
256 ac_prev
=includedir
;;
257 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
258 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
259 includedir
="$ac_optarg" ;;
261 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
263 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
264 infodir
="$ac_optarg" ;;
266 -libdir |
--libdir |
--libdi |
--libd)
268 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
269 libdir
="$ac_optarg" ;;
271 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
272 |
--libexe |
--libex |
--libe)
273 ac_prev
=libexecdir
;;
274 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
275 |
--libexe=* |
--libex=* |
--libe=*)
276 libexecdir
="$ac_optarg" ;;
278 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
279 |
--localstate |
--localstat |
--localsta |
--localst \
280 |
--locals |
--local |
--loca |
--loc |
--lo)
281 ac_prev
=localstatedir
;;
282 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
283 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
284 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
285 localstatedir
="$ac_optarg" ;;
287 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
289 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 mandir
="$ac_optarg" ;;
293 # Obsolete; use --without-fp.
296 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
300 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
301 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
304 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
305 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
306 |
--oldin |
--oldi |
--old |
--ol |
--o)
307 ac_prev
=oldincludedir
;;
308 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
309 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
310 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
311 oldincludedir
="$ac_optarg" ;;
313 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
315 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
316 prefix
="$ac_optarg" ;;
318 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
319 |
--program-pre |
--program-pr |
--program-p)
320 ac_prev
=program_prefix
;;
321 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
322 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
323 program_prefix
="$ac_optarg" ;;
325 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
326 |
--program-suf |
--program-su |
--program-s)
327 ac_prev
=program_suffix
;;
328 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
329 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
330 program_suffix
="$ac_optarg" ;;
332 -program-transform-name |
--program-transform-name \
333 |
--program-transform-nam |
--program-transform-na \
334 |
--program-transform-n |
--program-transform- \
335 |
--program-transform |
--program-transfor \
336 |
--program-transfo |
--program-transf \
337 |
--program-trans |
--program-tran \
338 |
--progr-tra |
--program-tr |
--program-t)
339 ac_prev
=program_transform_name
;;
340 -program-transform-name=* |
--program-transform-name=* \
341 |
--program-transform-nam=* |
--program-transform-na=* \
342 |
--program-transform-n=* |
--program-transform-=* \
343 |
--program-transform=* |
--program-transfor=* \
344 |
--program-transfo=* |
--program-transf=* \
345 |
--program-trans=* |
--program-tran=* \
346 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
347 program_transform_name
="$ac_optarg" ;;
349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
350 |
-silent |
--silent |
--silen |
--sile |
--sil)
353 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
355 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
357 sbindir
="$ac_optarg" ;;
359 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
360 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
361 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
363 ac_prev
=sharedstatedir
;;
364 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
365 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
366 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
368 sharedstatedir
="$ac_optarg" ;;
370 -site |
--site |
--sit)
372 -site=* |
--site=* |
--sit=*)
375 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
377 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
378 srcdir
="$ac_optarg" ;;
380 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
381 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
382 ac_prev
=sysconfdir
;;
383 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
384 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
385 sysconfdir
="$ac_optarg" ;;
387 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
389 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
390 target
="$ac_optarg" ;;
392 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
395 -version |
--version |
--versio |
--versi |
--vers)
396 echo "configure generated by autoconf version 2.13"
400 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* |
--without-*)
413 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
422 # Obsolete; use --with-x.
425 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
426 |
--x-incl |
--x-inc |
--x-in |
--x-i)
427 ac_prev
=x_includes
;;
428 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
429 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
430 x_includes
="$ac_optarg" ;;
432 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
433 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
434 ac_prev
=x_libraries
;;
435 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
436 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
437 x_libraries
="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE
; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c) ;;
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
491 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest
* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file
=tcpdump.c
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted
=yes
519 # Try the directory containing this script, then its parent.
521 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
524 if test ! -r $srcdir/$ac_unique_file; then
528 ac_srcdir_defaulted
=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE
; then
542 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
544 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file
in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
558 echo "creating cache $cache_file"
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp
='$CPP $CPPFLAGS'
565 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling
=$ac_cv_prog_cc_cross
571 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
580 ac_n
= ac_c
='\c' ac_t
=
586 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
587 if test -f $ac_dir/install-sh
; then
589 ac_install_sh
="$ac_aux_dir/install-sh -c"
591 elif test -f $ac_dir/install.sh
; then
593 ac_install_sh
="$ac_aux_dir/install.sh -c"
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess
=$ac_aux_dir/config.guess
601 ac_config_sub
=$ac_aux_dir/config.sub
602 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
605 # Do some error checking and defaulting for the host and target type.
607 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
610 # 1. You are not allowed to specify --host, --target, and nonopt at the
612 # 2. Host defaults to nonopt.
613 # 3. If nonopt is not specified, then host defaults to the current host,
614 # as determined by config.guess.
615 # 4. Target and build default to nonopt.
616 # 5. If nonopt is not specified, then target and build default to host.
618 # The aliases save the names the user supplied, while $host etc.
619 # will get canonicalized.
620 case $host---$target---$nonopt in
621 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
622 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
626 # Make sure we can run config.sub.
627 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
628 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631 echo $ac_n "checking host system type""... $ac_c" 1>&6
632 echo "configure:633: checking host system type" >&5
635 case "$host_alias" in
639 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 *) host_alias
=$nonopt ;;
646 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
647 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$host" 1>&6
652 echo $ac_n "checking target system type""... $ac_c" 1>&6
653 echo "configure:654: checking target system type" >&5
656 case "$target_alias" in
659 NONE
) target_alias
=$host_alias ;;
660 *) target_alias
=$nonopt ;;
664 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
665 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo "$ac_t""$target" 1>&6
670 echo $ac_n "checking build system type""... $ac_c" 1>&6
671 echo "configure:672: checking build system type" >&5
674 case "$build_alias" in
677 NONE
) build_alias
=$host_alias ;;
678 *) build_alias
=$nonopt ;;
682 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
683 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
684 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
685 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
686 echo "$ac_t""$build" 1>&6
688 test "$host_alias" != "$target_alias" &&
689 test "$program_prefix$program_suffix$program_transform_name" = \
691 program_prefix
=${target_alias}-
696 if test -z "$PWD" ; then
704 # Check whether --with-gcc or --without-gcc was given.
705 if test "${with_gcc+set}" = set; then
712 if test "${srcdir}" != "." ; then
713 V_INCLS
="-I\$(srcdir)"
715 if test "${CFLAGS+set}" = set; then
718 if test -z "$CC" ; then
722 # Extract the first word of "shlicc2", so it can be a program name with args.
723 set dummy shlicc2
; ac_word
=$2
724 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
725 echo "configure:726: checking for $ac_word" >&5
726 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
727 echo $ac_n "(cached) $ac_c" 1>&6
729 if test -n "$SHLICC2"; then
730 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
732 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
734 for ac_dir
in $ac_dummy; do
735 test -z "$ac_dir" && ac_dir
=.
736 if test -f $ac_dir/$ac_word; then
737 ac_cv_prog_SHLICC2
="yes"
742 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
745 SHLICC2
="$ac_cv_prog_SHLICC2"
746 if test -n "$SHLICC2"; then
747 echo "$ac_t""$SHLICC2" 1>&6
749 echo "$ac_t""no" 1>&6
752 if test $SHLICC2 = yes ; then
759 if test -z "$CC" -a "$with_gcc" = no
; then
763 # Extract the first word of "gcc", so it can be a program name with args.
764 set dummy gcc
; ac_word
=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 echo "configure:767: checking for $ac_word" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 if test -n "$CC"; then
771 ac_cv_prog_CC
="$CC" # Let the user override the test.
773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
775 for ac_dir
in $ac_dummy; do
776 test -z "$ac_dir" && ac_dir
=.
777 if test -f $ac_dir/$ac_word; then
786 if test -n "$CC"; then
787 echo "$ac_t""$CC" 1>&6
789 echo "$ac_t""no" 1>&6
792 if test -z "$CC"; then
793 # Extract the first word of "cc", so it can be a program name with args.
794 set dummy cc
; ac_word
=$2
795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
796 echo "configure:797: checking for $ac_word" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 if test -n "$CC"; then
801 ac_cv_prog_CC
="$CC" # Let the user override the test.
803 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
806 for ac_dir
in $ac_dummy; do
807 test -z "$ac_dir" && ac_dir
=.
808 if test -f $ac_dir/$ac_word; then
809 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
818 if test $ac_prog_rejected = yes; then
819 # We found a bogon in the path, so make sure we never use it.
820 set dummy
$ac_cv_prog_CC
822 if test $# -gt 0; then
823 # We chose a different compiler from the bogus one.
824 # However, it has the same basename, so the bogon will be chosen
825 # first if we set CC to just the basename; use the full file name.
827 set dummy
"$ac_dir/$ac_word" "$@"
835 if test -n "$CC"; then
836 echo "$ac_t""$CC" 1>&6
838 echo "$ac_t""no" 1>&6
841 if test -z "$CC"; then
844 # Extract the first word of "cl", so it can be a program name with args.
845 set dummy cl
; ac_word
=$2
846 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
847 echo "configure:848: checking for $ac_word" >&5
848 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
849 echo $ac_n "(cached) $ac_c" 1>&6
851 if test -n "$CC"; then
852 ac_cv_prog_CC
="$CC" # Let the user override the test.
854 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
856 for ac_dir
in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir
=.
858 if test -f $ac_dir/$ac_word; then
867 if test -n "$CC"; then
868 echo "$ac_t""$CC" 1>&6
870 echo "$ac_t""no" 1>&6
875 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
878 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
879 echo "configure:880: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
883 ac_cpp
='$CPP $CPPFLAGS'
884 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
885 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
886 cross_compiling
=$ac_cv_prog_cc_cross
888 cat > conftest.
$ac_ext << EOF
890 #line 891 "configure"
891 #include "confdefs.h"
895 if { (eval echo configure
:896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
896 ac_cv_prog_cc_works
=yes
897 # If we can't run a trivial program, we are probably using a cross compiler.
898 if (.
/conftest
; exit) 2>/dev
/null
; then
899 ac_cv_prog_cc_cross
=no
901 ac_cv_prog_cc_cross
=yes
904 echo "configure: failed program was:" >&5
905 cat conftest.
$ac_ext >&5
906 ac_cv_prog_cc_works
=no
910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
911 ac_cpp
='$CPP $CPPFLAGS'
912 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
913 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
914 cross_compiling
=$ac_cv_prog_cc_cross
916 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
917 if test $ac_cv_prog_cc_works = no
; then
918 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
920 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
921 echo "configure:922: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
922 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
923 cross_compiling
=$ac_cv_prog_cc_cross
925 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
926 echo "configure:927: checking whether we are using GNU C" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 cat > conftest.c
<<EOF
935 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
942 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
944 if test $ac_cv_prog_gcc = yes; then
950 ac_test_CFLAGS
="${CFLAGS+set}"
951 ac_save_CFLAGS
="$CFLAGS"
953 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
954 echo "configure:955: checking whether ${CC-cc} accepts -g" >&5
955 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 echo 'void f(){}' > conftest.c
959 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
968 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
969 if test "$ac_test_CFLAGS" = set; then
970 CFLAGS
="$ac_save_CFLAGS"
971 elif test $ac_cv_prog_cc_g = yes; then
972 if test "$GCC" = yes; then
978 if test "$GCC" = yes; then
985 if test "$GCC" = yes ; then
986 if test "$SHLICC2" = yes ; then
990 echo $ac_n "checking gcc version""... $ac_c" 1>&6
991 echo "configure:992: checking gcc version" >&5
992 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
996 sed -e '/^gcc version /!d' \
997 -e 's/^gcc version //' \
998 -e 's/ .*//' -e 's/^[^0-9]*//' \
1002 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1003 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1008 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
1009 echo "configure:1010: checking that $CC handles ansi prototypes" >&5
1010 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 cat > conftest.
$ac_ext <<EOF
1014 #line 1015 "configure"
1015 #include "confdefs.h"
1016 #include <sys/types.h>
1018 int frob(int, char *)
1021 if { (eval echo configure
:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1023 ac_cv_lbl_cc_ansi_prototypes
=yes
1025 echo "configure: failed program was:" >&5
1026 cat conftest.
$ac_ext >&5
1028 ac_cv_lbl_cc_ansi_prototypes
=no
1033 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1034 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1035 case "$target_os" in
1038 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1039 echo "configure:1040: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1040 savedcflags
="$CFLAGS"
1041 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1042 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 cat > conftest.
$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1048 #include <sys/types.h>
1050 int frob(int, char *)
1053 if { (eval echo configure
:1054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1055 ac_cv_lbl_cc_hpux_cc_aa
=yes
1057 echo "configure: failed program was:" >&5
1058 cat conftest.
$ac_ext >&5
1060 ac_cv_lbl_cc_hpux_cc_aa
=no
1065 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1066 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1067 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1069 CFLAGS
="$savedcflags"
1070 V_CCOPT
="-Aa $V_CCOPT"
1071 cat >> confdefs.h
<<\EOF
1072 #define _HPUX_SOURCE 1
1078 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1082 V_INCLS
="$V_INCLS -I/usr/local/include"
1083 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1085 case "$target_os" in
1088 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
1092 V_CCOPT
="$V_CCOPT -std1 -g3"
1096 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1097 echo "configure:1098: checking that Ultrix $CC hacks const in prototypes" >&5
1098 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 cat > conftest.
$ac_ext <<EOF
1102 #line 1103 "configure"
1103 #include "confdefs.h"
1104 #include <sys/types.h>
1106 struct a { int b; };
1107 void c(const struct a *)
1110 if { (eval echo configure
:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1112 ac_cv_lbl_cc_const_proto
=yes
1114 echo "configure: failed program was:" >&5
1115 cat conftest.
$ac_ext >&5
1117 ac_cv_lbl_cc_const_proto
=no
1122 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1123 if test $ac_cv_lbl_cc_const_proto = no
; then
1124 cat >> confdefs.h
<<\EOF
1133 echo $ac_n "checking for inline""... $ac_c" 1>&6
1134 echo "configure:1135: checking for inline" >&5
1135 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1139 for ac_kw
in inline __inline__ __inline
; do
1140 cat > conftest.
$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1148 if { (eval echo configure
:1149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1150 ac_cv_c_inline
=$ac_kw; break
1152 echo "configure: failed program was:" >&5
1153 cat conftest.
$ac_ext >&5
1160 echo "$ac_t""$ac_cv_c_inline" 1>&6
1161 case "$ac_cv_c_inline" in
1163 no
) cat >> confdefs.h
<<\EOF
1167 *) cat >> confdefs.h
<<EOF
1168 #define inline $ac_cv_c_inline
1174 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1175 echo "configure:1176: checking how to run the C preprocessor" >&5
1176 # On Suns, sometimes $CPP names a directory.
1177 if test -n "$CPP" && test -d "$CPP"; then
1180 if test -z "$CPP"; then
1181 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 # This must be in double quotes, not single quotes, because CPP may get
1185 # substituted into the Makefile and "${CC-cc}" will confuse make.
1187 # On the NeXT, cc -E runs the code through the compiler's parser,
1188 # not just through cpp.
1189 cat > conftest.
$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1195 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1196 { (eval echo configure
:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1197 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1198 if test -z "$ac_err"; then
1202 echo "configure: failed program was:" >&5
1203 cat conftest.
$ac_ext >&5
1205 CPP
="${CC-cc} -E -traditional-cpp"
1206 cat > conftest.
$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1213 { (eval echo configure
:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1215 if test -z "$ac_err"; then
1219 echo "configure: failed program was:" >&5
1220 cat conftest.
$ac_ext >&5
1222 CPP
="${CC-cc} -nologo -E"
1223 cat > conftest.
$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1230 { (eval echo configure
:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1232 if test -z "$ac_err"; then
1236 echo "configure: failed program was:" >&5
1237 cat conftest.
$ac_ext >&5
1246 ac_cv_prog_CPP
="$CPP"
1248 CPP
="$ac_cv_prog_CPP"
1250 ac_cv_prog_CPP
="$CPP"
1252 echo "$ac_t""$CPP" 1>&6
1254 for ac_hdr
in fcntl.h malloc.h memory.h rpc
/rpcent.h
1256 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_hdr" >&5
1259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1267 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 { (eval echo configure
:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1269 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1270 if test -z "$ac_err"; then
1272 eval "ac_cv_header_$ac_safe=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 eval "ac_cv_header_$ac_safe=no"
1282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1283 echo "$ac_t""yes" 1>&6
1284 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1285 cat >> confdefs.h
<<EOF
1286 #define $ac_tr_hdr 1
1290 echo "$ac_t""no" 1>&6
1294 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1295 echo "configure:1296: checking whether time.h and sys/time.h may both be included" >&5
1296 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 cat > conftest.
$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1302 #include <sys/types.h>
1303 #include <sys/time.h>
1309 if { (eval echo configure
:1310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1311 ac_cv_header_time
=yes
1313 echo "configure: failed program was:" >&5
1314 cat conftest.
$ac_ext >&5
1316 ac_cv_header_time
=no
1321 echo "$ac_t""$ac_cv_header_time" 1>&6
1322 if test $ac_cv_header_time = yes; then
1323 cat >> confdefs.h
<<\EOF
1324 #define TIME_WITH_SYS_TIME 1
1330 case "$target_os" in
1333 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1334 echo "configure:1335: checking Linux kernel version" >&5
1335 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 ac_cv_linux_vers
=`uname -r 2>&1 | \
1339 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1342 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1343 if test $ac_cv_linux_vers -lt 2 ; then
1344 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1346 cat >> confdefs.h
<<\EOF
1347 #define HAVE_NET_SLIP_H 1
1353 for ac_hdr
in net
/slip.h
1355 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_hdr" >&5
1358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1367 { (eval echo configure
:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1369 if test -z "$ac_err"; then
1371 eval "ac_cv_header_$ac_safe=yes"
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 eval "ac_cv_header_$ac_safe=no"
1381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1383 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1384 cat >> confdefs.h
<<EOF
1385 #define $ac_tr_hdr 1
1389 echo "$ac_t""no" 1>&6
1399 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1401 echo "configure:1402: checking for $ac_hdr" >&5
1402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.
$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1411 { (eval echo configure
:1412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1412 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1413 if test -z "$ac_err"; then
1415 eval "ac_cv_header_$ac_safe=yes"
1418 echo "configure: failed program was:" >&5
1419 cat conftest.
$ac_ext >&5
1421 eval "ac_cv_header_$ac_safe=no"
1425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1426 echo "$ac_t""yes" 1>&6
1427 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1428 cat >> confdefs.h
<<EOF
1429 #define $ac_tr_hdr 1
1433 echo "$ac_t""no" 1>&6
1437 echo $ac_n "checking for main in -lsmi""... $ac_c" 1>&6
1438 echo "configure:1439: checking for main in -lsmi" >&5
1439 ac_lib_var
=`echo smi'_'main | sed 'y%./+-%__p_%'`
1440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 ac_save_LIBS
="$LIBS"
1445 cat > conftest.
$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1453 if { (eval echo configure
:1454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1455 eval "ac_cv_lib_$ac_lib_var=yes"
1457 echo "configure: failed program was:" >&5
1458 cat conftest.
$ac_ext >&5
1460 eval "ac_cv_lib_$ac_lib_var=no"
1463 LIBS
="$ac_save_LIBS"
1466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1470 cat >> confdefs.h
<<EOF
1471 #define $ac_tr_lib 1
1477 echo "$ac_t""no" 1>&6
1480 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1481 echo "configure:1482: checking whether to enable libsmi" >&5
1482 if test "$cross_compiling" = yes; then
1483 echo "$ac_t""not when cross-compiling" 1>&6
1487 cat > conftest.
$ac_ext <<EOF
1488 #line 1489 "configure"
1489 #include "confdefs.h"
1490 /* libsmi available check */
1501 if { (eval echo configure
:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1503 echo "$ac_t""yes" 1>&6
1504 cat >> confdefs.h
<<\EOF
1510 echo "configure: failed program was:" >&5
1511 cat conftest.
$ac_ext >&5
1513 echo "$ac_t""no" 1>&6
1521 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1522 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1523 echo "configure:1524: checking whether to enable ipv6" >&5
1524 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1525 if test "${enable_ipv6+set}" = set; then
1526 enableval
="$enable_ipv6"
1527 case "$enableval" in
1528 yes) echo "$ac_t""yes" 1>&6
1529 cat >> confdefs.h
<<\EOF
1530 #define ENABLE_IPV6 1
1533 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"
1534 cat >> confdefs.h
<<\EOF
1541 echo "$ac_t""no" 1>&6
1546 if test "$cross_compiling" = yes; then
1547 echo "$ac_t""no" 1>&6
1551 cat > conftest.
$ac_ext <<EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1554 /* AF_INET6 available check */
1555 #include <sys/types.h>
1556 #include <sys/socket.h>
1559 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1566 if { (eval echo configure
:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1568 echo "$ac_t""yes" 1>&6
1569 cat >> confdefs.h
<<\EOF
1570 #define ENABLE_IPV6 1
1573 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"
1574 cat >> confdefs.h
<<\EOF
1580 echo "configure: failed program was:" >&5
1581 cat conftest.
$ac_ext >&5
1583 echo "$ac_t""no" 1>&6
1596 if test "$ipv6" = "yes"; then
1597 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1598 echo "configure:1599: checking ipv6 stack type" >&5
1599 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1606 #include <netinet/in.h>
1607 #ifdef IPV6_INRIA_VERSION
1611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1612 egrep "yes" >/dev
/null
2>&1; then
1615 CFLAGS
="-DINET6 $CFLAGS"
1621 cat > conftest.
$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1625 #include <netinet/in.h>
1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631 egrep "yes" >/dev
/null
2>&1; then
1635 ipv6libdir
=/usr
/local
/v
6/lib
;
1637 CFLAGS
="-DINET6 $CFLAGS"
1643 cat > conftest.
$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1647 #include <features.h>
1648 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1653 egrep "yes" >/dev
/null
2>&1; then
1656 CFLAGS
="-DINET6 $CFLAGS"
1662 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1665 ipv6libdir
=/usr
/inet
6/lib
1667 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1671 cat > conftest.
$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1675 #include <sys/param.h>
1676 #ifdef _TOSHIBA_INET6
1680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1681 egrep "yes" >/dev
/null
2>&1; then
1685 ipv6libdir
=/usr
/local
/v
6/lib
;
1686 CFLAGS
="-DINET6 $CFLAGS"
1692 cat > conftest.
$ac_ext <<EOF
1693 #line 1694 "configure"
1694 #include "confdefs.h"
1696 #include </usr/local/v6/include/sys/v6config.h>
1701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1702 egrep "yes" >/dev
/null
2>&1; then
1706 ipv6libdir
=/usr
/local
/v
6/lib
;
1707 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1713 cat > conftest.
$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1717 #include <sys/param.h>
1718 #ifdef _ZETA_MINAMI_INET6
1722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1723 egrep "yes" >/dev
/null
2>&1; then
1727 ipv6libdir
=/usr
/local
/v
6/lib
;
1728 CFLAGS
="-DINET6 $CFLAGS"
1734 if test "$ipv6type" != "unknown"; then
1738 echo "$ac_t""$ipv6type" 1>&6
1741 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1742 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1743 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1744 echo "You have $ipv6lib library, using it"
1746 if test "$ipv6trylibc" = "yes"; then
1747 echo "You do not have $ipv6lib library, using libc"
1749 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1750 echo "You need to fetch lib$ipv6lib.a from appropriate"
1751 echo 'ipv6 kit and compile beforehand.'
1758 for ac_func
in getaddrinfo
1760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1761 echo "configure:1762: checking for $ac_func" >&5
1762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $ac_func(); below. */
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1778 /* The GNU C library defines this for functions which it implements
1779 to always fail with ENOSYS. Some functions are actually named
1780 something starting with __ and the normal name is an alias. */
1781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1789 if { (eval echo configure
:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1791 eval "ac_cv_func_$ac_func=yes"
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 eval "ac_cv_func_$ac_func=no"
1801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1804 cat >> confdefs.h
<<EOF
1805 #define $ac_tr_func 1
1807 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1808 echo "configure:1809: checking getaddrinfo bug" >&5
1809 if test "$cross_compiling" = yes; then
1810 echo "$ac_t""buggy" 1>&6
1811 buggygetaddrinfo
=yes
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1817 #include <sys/types.h>
1820 #include <sys/socket.h>
1821 #include <netinet/in.h>
1825 int passive, gaierr, inet4 = 0, inet6 = 0;
1826 struct addrinfo hints, *ai, *aitop;
1827 char straddr[INET6_ADDRSTRLEN], strport[16];
1829 for (passive = 0; passive <= 1; passive++) {
1830 memset(&hints, 0, sizeof(hints));
1831 hints.ai_family = AF_UNSPEC;
1832 hints.ai_flags = passive ? AI_PASSIVE : 0;
1833 hints.ai_socktype = SOCK_STREAM;
1834 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1835 (void)gai_strerror(gaierr);
1838 for (ai = aitop; ai; ai = ai->ai_next) {
1839 if (ai->ai_addr == NULL ||
1840 ai->ai_addrlen == 0 ||
1841 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1842 straddr, sizeof(straddr), strport, sizeof(strport),
1843 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1846 switch (ai->ai_family) {
1848 if (strcmp(strport, "54321") != 0) {
1852 if (strcmp(straddr, "0.0.0.0") != 0) {
1856 if (strcmp(straddr, "127.0.0.1") != 0) {
1863 if (strcmp(strport, "54321") != 0) {
1867 if (strcmp(straddr, "::") != 0) {
1871 if (strcmp(straddr, "::1") != 0) {
1888 /* another family support? */
1894 /* supported family should be 2, unsupported family should be 0 */
1895 if (!(inet4 == 0 || inet4 == 2))
1897 if (!(inet6 == 0 || inet6 == 2))
1901 freeaddrinfo(aitop);
1906 freeaddrinfo(aitop);
1911 if { (eval echo configure
:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1913 echo "$ac_t""good" 1>&6
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1919 echo "$ac_t""buggy" 1>&6
1920 buggygetaddrinfo
=yes
1926 echo "$ac_t""no" 1>&6
1927 buggygetaddrinfo
=yes
1932 if test "$buggygetaddrinfo" = "yes"; then
1933 if test "$ipv6" = "yes" -a "$ipv6type" != "linux"; then
1934 echo 'Fatal: You must get working getaddrinfo() function.'
1935 echo ' or you can specify "--disable-ipv6"'.
1937 elif test "$ipv6type" = "linux"; then
1938 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1939 echo ' Better upgreade your system library to newest version'
1940 echo ' of GNU C library (aka glibc).'
1943 for ac_func
in getaddrinfo getnameinfo inet_ntop inet_pton inet_aton
1945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_func" >&5
1947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.
$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 /* System header to define __stub macros and hopefully few prototypes,
1954 which can conflict with char $ac_func(); below. */
1956 /* Override any gcc2 internal prototype to avoid an error. */
1957 /* We use char because int might match the return type of a gcc2
1958 builtin and then its argument prototype would still apply. */
1963 /* The GNU C library defines this for functions which it implements
1964 to always fail with ENOSYS. Some functions are actually named
1965 something starting with __ and the normal name is an alias. */
1966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1974 if { (eval echo configure
:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1976 eval "ac_cv_func_$ac_func=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 eval "ac_cv_func_$ac_func=no"
1986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1987 echo "$ac_t""yes" 1>&6
1988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1989 cat >> confdefs.h
<<EOF
1990 #define $ac_tr_func 1
1994 echo "$ac_t""no" 1>&6
1995 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2002 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
2003 echo "configure:2004: checking if sockaddr struct has sa_len member" >&5
2004 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.
$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2011 # include <sys/types.h>
2012 # include <sys/socket.h>
2014 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
2017 if { (eval echo configure
:2018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2019 ac_cv_sockaddr_has_sa_len
=yes
2021 echo "configure: failed program was:" >&5
2022 cat conftest.
$ac_ext >&5
2024 ac_cv_sockaddr_has_sa_len
=no
2029 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
2030 if test $ac_cv_sockaddr_has_sa_len = yes ; then
2031 cat >> confdefs.h
<<\EOF
2032 #define HAVE_SOCKADDR_SA_LEN 1
2037 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
2038 missing_includes
=yes
2042 echo $ac_n "checking for __P""... $ac_c" 1>&6
2043 echo "configure:2044: checking for __P" >&5
2044 if eval "test \"`echo '$''{'ac_cv_portable_proto'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2051 # include <unistd.h>
2056 if { (eval echo configure
:2057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2058 ac_cv_portable_proto
=yes
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2063 ac_cv_portable_proto
=no
2068 echo "$ac_t""$ac_cv_portable_proto" 1>&6
2069 if test $ac_cv_portable_proto = yes; then
2070 cat >> confdefs.h
<<\EOF
2071 #define HAVE_PORTABLE_PROTOTYPE 1
2076 if test "$ac_cv_portable_proto" = no
; then
2077 missing_includes
=yes
2080 echo $ac_n "checking size of char""... $ac_c" 1>&6
2081 echo "configure:2082: checking size of char" >&5
2082 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 if test "$cross_compiling" = yes; then
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2094 FILE *f=fopen("conftestval", "w");
2096 fprintf(f, "%d\n", sizeof(char));
2100 if { (eval echo configure
:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2102 ac_cv_sizeof_char
=`cat conftestval`
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2113 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2114 cat >> confdefs.h
<<EOF
2115 #define SIZEOF_CHAR $ac_cv_sizeof_char
2119 echo $ac_n "checking size of short""... $ac_c" 1>&6
2120 echo "configure:2121: checking size of short" >&5
2121 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 if test "$cross_compiling" = yes; then
2125 ac_cv_sizeof_short
=2
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2133 FILE *f=fopen("conftestval", "w");
2135 fprintf(f, "%d\n", sizeof(short));
2139 if { (eval echo configure
:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2141 ac_cv_sizeof_short
=`cat conftestval`
2143 echo "configure: failed program was:" >&5
2144 cat conftest.
$ac_ext >&5
2146 ac_cv_sizeof_short
=0
2152 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2153 cat >> confdefs.h
<<EOF
2154 #define SIZEOF_SHORT $ac_cv_sizeof_short
2158 echo $ac_n "checking size of int""... $ac_c" 1>&6
2159 echo "configure:2160: checking size of int" >&5
2160 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 if test "$cross_compiling" = yes; then
2166 cat > conftest.
$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2172 FILE *f=fopen("conftestval", "w");
2174 fprintf(f, "%d\n", sizeof(int));
2178 if { (eval echo configure
:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2180 ac_cv_sizeof_int
=`cat conftestval`
2182 echo "configure: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2191 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2192 cat >> confdefs.h
<<EOF
2193 #define SIZEOF_INT $ac_cv_sizeof_int
2197 echo $ac_n "checking size of long""... $ac_c" 1>&6
2198 echo "configure:2199: checking size of long" >&5
2199 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 if test "$cross_compiling" = yes; then
2205 cat > conftest.
$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2211 FILE *f=fopen("conftestval", "w");
2213 fprintf(f, "%d\n", sizeof(long));
2217 if { (eval echo configure
:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2219 ac_cv_sizeof_long
=`cat conftestval`
2221 echo "configure: failed program was:" >&5
2222 cat conftest.
$ac_ext >&5
2230 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2231 cat >> confdefs.h
<<EOF
2232 #define SIZEOF_LONG $ac_cv_sizeof_long
2239 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2240 echo "configure:2241: checking for addrinfo" >&5
2241 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2253 if { (eval echo configure
:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2265 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2266 if test $ac_cv_addrinfo = yes; then
2267 cat >> confdefs.h
<<\EOF
2268 #define HAVE_ADDRINFO 1
2273 if test "$ac_cv_addrinfo" = no
; then
2274 missing_includes
=yes
2278 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2279 echo "configure:2280: checking for sockaddr_storage" >&5
2280 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.
$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2287 # include <sys/types.h>
2288 # include <sys/socket.h>
2290 struct sockaddr_storage s
2293 if { (eval echo configure
:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 ac_cv_sa_storage
=yes
2297 echo "configure: failed program was:" >&5
2298 cat conftest.
$ac_ext >&5
2305 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2306 if test $ac_cv_sa_storage = yes; then
2307 cat >> confdefs.h
<<\EOF
2308 #define HAVE_SOCKADDR_STORAGE 1
2313 if test "$ac_cv_sa_storage" = no
; then
2314 missing_includes
=yes
2319 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2320 echo "configure:2321: checking for INADDRSZ" >&5
2321 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.
$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2328 # include <arpa/nameser.h>
2333 if { (eval echo configure
:2334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2337 echo "configure: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2345 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2346 if test $ac_cv_inaddrsz = yes; then
2347 cat >> confdefs.h
<<\EOF
2348 #define HAVE_INADDRSZ 1
2354 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2355 echo "configure:2356: checking for IN6ADDRSZ" >&5
2356 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.
$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2363 # include <arpa/nameser.h>
2368 if { (eval echo configure
:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2372 echo "configure: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2380 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2381 if test $ac_cv_in6addrsz = yes; then
2382 cat >> confdefs.h
<<\EOF
2383 #define HAVE_IN6ADDRSZ 1
2390 if test "$ac_cv_addrsz" = no
; then
2391 missing_includes
=yes
2395 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2396 echo "configure:2397: checking for RES_USE_INET6" >&5
2397 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2404 # include <sys/types.h>
2405 # include <netinet/in.h>
2406 # include <resolv.h>
2408 int a = RES_USE_INET6
2411 if { (eval echo configure
:2412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2423 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2424 if test $ac_cv_res_inet6 = yes; then
2425 cat >> confdefs.h
<<\EOF
2426 #define HAVE_RES_USE_INET6 1
2431 if test "$ac_cv_res_inet6" = no
; then
2432 missing_includes
=yes
2436 echo $ac_n "checking for AAAA""... $ac_c" 1>&6
2437 echo "configure:2438: checking for AAAA" >&5
2438 if eval "test \"`echo '$''{'ac_cv_aaaa'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.
$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2445 # include <sys/types.h>
2446 # include <arpa/nameser.h>
2451 if { (eval echo configure
:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2463 echo "$ac_t""$ac_cv_aaaa" 1>&6
2464 if test $ac_cv_aaaa = yes; then
2465 cat >> confdefs.h
<<\EOF
2471 if test "$ac_cv_aaaa" = no
; then
2472 cat >> confdefs.h
<<\EOF
2479 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2480 echo "configure:2481: checking for res_state_ext" >&5
2481 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.
$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2488 # include <sys/types.h>
2489 # include <netinet/in.h>
2490 # include <netinet6/in6.h>
2491 # include <resolv.h>
2493 struct __res_state_ext e
2496 if { (eval echo configure
:2497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2498 ac_cv_res_state_ext
=yes
2500 echo "configure: failed program was:" >&5
2501 cat conftest.
$ac_ext >&5
2503 ac_cv_res_state_ext
=no
2508 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2509 if test $ac_cv_res_state_ext = yes; then
2510 cat >> confdefs.h
<<\EOF
2511 #define HAVE_RES_STATE_EXT 1
2516 if test "$ac_cv_res_state_ext" = no
; then
2517 missing_includes
=yes
2521 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2522 echo "configure:2523: checking for nsort in res_state" >&5
2523 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2526 cat > conftest.
$ac_ext <<EOF
2527 #line 2528 "configure"
2528 #include "confdefs.h"
2530 # include <sys/types.h>
2531 # include <netinet/in.h>
2532 # include <netinet6/in6.h>
2533 # include <resolv.h>
2535 struct __res_state e; e.nsort = 0
2538 if { (eval echo configure
:2539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2542 echo "configure: failed program was:" >&5
2543 cat conftest.
$ac_ext >&5
2550 echo "$ac_t""$ac_cv_res_state" 1>&6
2551 if test $ac_cv_res_state = yes; then
2552 cat >> confdefs.h
<<\EOF
2553 #define HAVE_NEW_RES_STATE 1
2559 if test "$missing_includes" = "yes"; then
2560 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2561 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2565 for ac_func
in vfprintf strcasecmp
2567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2568 echo "configure:2569: checking for $ac_func" >&5
2569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 cat > conftest.
$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2575 /* System header to define __stub macros and hopefully few prototypes,
2576 which can conflict with char $ac_func(); below. */
2578 /* Override any gcc2 internal prototype to avoid an error. */
2579 /* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2585 /* The GNU C library defines this for functions which it implements
2586 to always fail with ENOSYS. Some functions are actually named
2587 something starting with __ and the normal name is an alias. */
2588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2596 if { (eval echo configure
:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2598 eval "ac_cv_func_$ac_func=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2603 eval "ac_cv_func_$ac_func=no"
2608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2611 cat >> confdefs.h
<<EOF
2612 #define $ac_tr_func 1
2616 echo "$ac_t""no" 1>&6
2617 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2622 for ac_func
in ether_ntohost setlinebuf gethostbyname2
2624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2625 echo "configure:2626: checking for $ac_func" >&5
2626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 /* System header to define __stub macros and hopefully few prototypes,
2633 which can conflict with char $ac_func(); below. */
2635 /* Override any gcc2 internal prototype to avoid an error. */
2636 /* We use char because int might match the return type of a gcc2
2637 builtin and then its argument prototype would still apply. */
2642 /* The GNU C library defines this for functions which it implements
2643 to always fail with ENOSYS. Some functions are actually named
2644 something starting with __ and the normal name is an alias. */
2645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2653 if { (eval echo configure
:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2655 eval "ac_cv_func_$ac_func=yes"
2657 echo "configure: failed program was:" >&5
2658 cat conftest.
$ac_ext >&5
2660 eval "ac_cv_func_$ac_func=no"
2665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2668 cat >> confdefs.h
<<EOF
2669 #define $ac_tr_func 1
2673 echo "$ac_t""no" 1>&6
2679 for ac_func
in vsnprintf snprintf asprintf asnprintf vasprintf vasnprintf
2681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_func" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 cat > conftest.
$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* System header to define __stub macros and hopefully few prototypes,
2690 which can conflict with char $ac_func(); below. */
2692 /* Override any gcc2 internal prototype to avoid an error. */
2693 /* We use char because int might match the return type of a gcc2
2694 builtin and then its argument prototype would still apply. */
2699 /* The GNU C library defines this for functions which it implements
2700 to always fail with ENOSYS. Some functions are actually named
2701 something starting with __ and the normal name is an alias. */
2702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2710 if { (eval echo configure
:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2712 eval "ac_cv_func_$ac_func=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 eval "ac_cv_func_$ac_func=no"
2722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2725 cat >> confdefs.h
<<EOF
2726 #define $ac_tr_func 1
2730 echo "$ac_t""no" 1>&6
2735 if test $needsnprintf = yes; then
2736 LIBOBJS
="$LIBOBJS snprintf.o"
2739 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2740 echo "configure:2741: checking whether byte ordering is bigendian" >&5
2741 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 ac_cv_c_bigendian
=unknown
2745 # See if sys/param.h defines the BYTE_ORDER macro.
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <sys/types.h>
2750 #include <sys/param.h>
2753 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2758 if { (eval echo configure
:2759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2760 # It does; now see whether it defined to BIG_ENDIAN or not.
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <sys/types.h>
2765 #include <sys/param.h>
2768 #if BYTE_ORDER != BIG_ENDIAN
2773 if { (eval echo configure
:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2775 ac_cv_c_bigendian
=yes
2777 echo "configure: failed program was:" >&5
2778 cat conftest.
$ac_ext >&5
2780 ac_cv_c_bigendian
=no
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2788 if test $ac_cv_c_bigendian = unknown
; then
2789 if test "$cross_compiling" = yes; then
2790 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2796 /* Are we little or big endian? From Harbison&Steele. */
2800 char c[sizeof (long)];
2803 exit (u.c[sizeof (long) - 1] == 1);
2806 if { (eval echo configure
:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2808 ac_cv_c_bigendian
=no
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 ac_cv_c_bigendian
=yes
2821 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2822 if test $ac_cv_c_bigendian = yes; then
2823 cat >> confdefs.h
<<\EOF
2824 #define WORDS_BIGENDIAN 1
2830 echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6
2831 echo "configure:2832: checking for main in -ldnet" >&5
2832 ac_lib_var
=`echo dnet'_'main | sed 'y%./+-%__p_%'`
2833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 ac_save_LIBS
="$LIBS"
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2846 if { (eval echo configure
:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2848 eval "ac_cv_lib_$ac_lib_var=yes"
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 eval "ac_cv_lib_$ac_lib_var=no"
2856 LIBS
="$ac_save_LIBS"
2859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2863 cat >> confdefs.h
<<EOF
2864 #define $ac_tr_lib 1
2870 echo "$ac_t""no" 1>&6
2873 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
2874 echo "configure:2875: checking for main in -lrpc" >&5
2875 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
2876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 ac_save_LIBS
="$LIBS"
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2889 if { (eval echo configure
:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2891 eval "ac_cv_lib_$ac_lib_var=yes"
2893 echo "configure: failed program was:" >&5
2894 cat conftest.
$ac_ext >&5
2896 eval "ac_cv_lib_$ac_lib_var=no"
2899 LIBS
="$ac_save_LIBS"
2902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2906 cat >> confdefs.h
<<EOF
2907 #define $ac_tr_lib 1
2913 echo "$ac_t""no" 1>&6
2916 echo $ac_n "checking for uncompress in -lz""... $ac_c" 1>&6
2917 echo "configure:2918: checking for uncompress in -lz" >&5
2918 ac_lib_var
=`echo z'_'uncompress | sed 'y%./+-%__p_%'`
2919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 ac_save_LIBS
="$LIBS"
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* Override any gcc2 internal prototype to avoid an error. */
2928 /* We use char because int might match the return type of a gcc2
2929 builtin and then its argument prototype would still apply. */
2936 if { (eval echo configure
:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2938 eval "ac_cv_lib_$ac_lib_var=yes"
2940 echo "configure: failed program was:" >&5
2941 cat conftest.
$ac_ext >&5
2943 eval "ac_cv_lib_$ac_lib_var=no"
2946 LIBS
="$ac_save_LIBS"
2949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2951 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2953 cat >> confdefs.h
<<EOF
2954 #define $ac_tr_lib 1
2960 echo "$ac_t""no" 1>&6
2963 for ac_hdr
in zlib.h netinet
6/ipcomp.h
2965 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2967 echo "configure:2968: checking for $ac_hdr" >&5
2968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 cat > conftest.
$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2976 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2977 { (eval echo configure
:2978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2978 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2979 if test -z "$ac_err"; then
2981 eval "ac_cv_header_$ac_safe=yes"
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 eval "ac_cv_header_$ac_safe=no"
2991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2994 cat >> confdefs.h
<<EOF
2995 #define $ac_tr_hdr 1
2999 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3006 echo "configure:3007: checking return type of signal handlers" >&5
3007 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 cat > conftest.
$ac_ext <<EOF
3011 #line 3012 "configure"
3012 #include "confdefs.h"
3013 #include <sys/types.h>
3019 extern "C" void (*signal (int, void (*)(int)))(int);
3021 void (*signal ()) ();
3028 if { (eval echo configure
:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 ac_cv_type_signal
=void
3032 echo "configure: failed program was:" >&5
3033 cat conftest.
$ac_ext >&5
3035 ac_cv_type_signal
=int
3040 echo "$ac_t""$ac_cv_type_signal" 1>&6
3041 cat >> confdefs.h
<<EOF
3042 #define RETSIGTYPE $ac_cv_type_signal
3046 if test "$ac_cv_type_signal" = void
; then
3047 cat >> confdefs.h
<<\EOF
3052 cat >> confdefs.h
<<\EOF
3053 #define RETSIGVAL (0)
3057 case "$target_os" in
3060 cat >> confdefs.h
<<\EOF
3061 #define _BSD_SIGNALS 1
3067 for ac_func
in sigset
3069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3070 echo "configure:3071: checking for $ac_func" >&5
3071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 /* System header to define __stub macros and hopefully few prototypes,
3078 which can conflict with char $ac_func(); below. */
3080 /* Override any gcc2 internal prototype to avoid an error. */
3081 /* We use char because int might match the return type of a gcc2
3082 builtin and then its argument prototype would still apply. */
3087 /* The GNU C library defines this for functions which it implements
3088 to always fail with ENOSYS. Some functions are actually named
3089 something starting with __ and the normal name is an alias. */
3090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3098 if { (eval echo configure
:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3100 eval "ac_cv_func_$ac_func=yes"
3102 echo "configure: failed program was:" >&5
3103 cat conftest.
$ac_ext >&5
3105 eval "ac_cv_func_$ac_func=no"
3110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3112 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3113 cat >> confdefs.h
<<EOF
3114 #define $ac_tr_func 1
3118 echo "$ac_t""no" 1>&6
3122 if test $ac_cv_func_sigset = no
; then
3123 for ac_func
in sigaction
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.
$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3154 if { (eval echo configure
:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3156 eval "ac_cv_func_$ac_func=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3161 eval "ac_cv_func_$ac_func=no"
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h
<<EOF
3170 #define $ac_tr_func 1
3174 echo "$ac_t""no" 1>&6
3183 # Most operating systems have gethostbyname() in the default searched
3184 # libraries (i.e. libc):
3185 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3186 echo "configure:3187: checking for gethostbyname" >&5
3187 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.
$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* System header to define __stub macros and hopefully few prototypes,
3194 which can conflict with char gethostbyname(); below. */
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3199 char gethostbyname();
3203 /* The GNU C library defines this for functions which it implements
3204 to always fail with ENOSYS. Some functions are actually named
3205 something starting with __ and the normal name is an alias. */
3206 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3214 if { (eval echo configure
:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3216 eval "ac_cv_func_gethostbyname=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.
$ac_ext >&5
3221 eval "ac_cv_func_gethostbyname=no"
3226 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3230 echo "$ac_t""no" 1>&6
3231 # Some OSes (eg. Solaris) place it in libnsl:
3232 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3233 echo "configure:3234: checking for gethostbyname in -lnsl" >&5
3234 ac_lib_var
=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
3235 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 ac_save_LIBS
="$LIBS"
3240 cat > conftest.
$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3246 char gethostbyname();
3252 if { (eval echo configure
:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3254 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.
$ac_ext >&5
3259 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3262 LIBS
="$ac_save_LIBS"
3265 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3269 cat >> confdefs.h
<<EOF
3270 #define $ac_tr_lib 1
3276 echo "$ac_t""no" 1>&6
3277 # Some strange OSes (SINIX) have it in libsocket:
3278 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3279 echo "configure:3280: checking for gethostbyname in -lsocket" >&5
3280 ac_lib_var
=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
3281 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 ac_save_LIBS
="$LIBS"
3285 LIBS
="-lsocket $LIBS"
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* Override any gcc2 internal prototype to avoid an error. */
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3292 char gethostbyname();
3298 if { (eval echo configure
:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3300 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3308 LIBS
="$ac_save_LIBS"
3311 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3315 cat >> confdefs.h
<<EOF
3316 #define $ac_tr_lib 1
3319 LIBS
="-lsocket $LIBS"
3322 echo "$ac_t""no" 1>&6
3323 # Unfortunately libsocket sometimes depends on libnsl.
3324 # AC_CHECK_LIB's API is essentially broken so the
3325 # following ugliness is necessary:
3326 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3327 echo "configure:3328: checking for gethostbyname in -lsocket" >&5
3328 ac_lib_var
=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
3329 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 ac_save_LIBS
="$LIBS"
3333 LIBS
="-lsocket -lnsl $LIBS"
3334 cat > conftest.
$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3340 char gethostbyname();
3346 if { (eval echo configure
:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3348 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3353 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3356 LIBS
="$ac_save_LIBS"
3359 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 LIBS
="-lsocket -lnsl $LIBS"
3363 echo "$ac_t""no" 1>&6
3364 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3365 echo "configure:3366: checking for gethostbyname in -lresolv" >&5
3366 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 ac_save_LIBS
="$LIBS"
3371 LIBS
="-lresolv $LIBS"
3372 cat > conftest.
$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 /* Override any gcc2 internal prototype to avoid an error. */
3376 /* We use char because int might match the return type of a gcc2
3377 builtin and then its argument prototype would still apply. */
3378 char gethostbyname();
3384 if { (eval echo configure
:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3386 eval "ac_cv_lib_$ac_lib_var=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.
$ac_ext >&5
3391 eval "ac_cv_lib_$ac_lib_var=no"
3394 LIBS
="$ac_save_LIBS"
3397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3398 echo "$ac_t""yes" 1>&6
3399 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3401 cat >> confdefs.h
<<EOF
3402 #define $ac_tr_lib 1
3405 LIBS
="-lresolv $LIBS"
3408 echo "$ac_t""no" 1>&6
3419 echo $ac_n "checking for socket""... $ac_c" 1>&6
3420 echo "configure:3421: checking for socket" >&5
3421 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 /* System header to define __stub macros and hopefully few prototypes,
3428 which can conflict with char socket(); below. */
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3437 /* The GNU C library defines this for functions which it implements
3438 to always fail with ENOSYS. Some functions are actually named
3439 something starting with __ and the normal name is an alias. */
3440 #if defined (__stub_socket) || defined (__stub___socket)
3448 if { (eval echo configure
:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3450 eval "ac_cv_func_socket=yes"
3452 echo "configure: failed program was:" >&5
3453 cat conftest.
$ac_ext >&5
3455 eval "ac_cv_func_socket=no"
3460 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3461 echo "$ac_t""yes" 1>&6
3464 echo "$ac_t""no" 1>&6
3465 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3466 echo "configure:3467: checking for socket in -lsocket" >&5
3467 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 ac_save_LIBS
="$LIBS"
3472 LIBS
="-lsocket $LIBS"
3473 cat > conftest.
$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 /* Override any gcc2 internal prototype to avoid an error. */
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3485 if { (eval echo configure
:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3487 eval "ac_cv_lib_$ac_lib_var=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.
$ac_ext >&5
3492 eval "ac_cv_lib_$ac_lib_var=no"
3495 LIBS
="$ac_save_LIBS"
3498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3502 cat >> confdefs.h
<<EOF
3503 #define $ac_tr_lib 1
3506 LIBS
="-lsocket $LIBS"
3509 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3511 echo "configure:3512: checking for socket in -lsocket" >&5
3512 ac_lib_var
=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
3513 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS
="$LIBS"
3517 LIBS
="-lsocket -lnsl $LIBS"
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure
:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3532 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3537 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3540 LIBS
="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 LIBS
="-lsocket -lnsl $LIBS"
3547 echo "$ac_t""no" 1>&6
3554 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3555 echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6
3556 echo "configure:3557: checking for putmsg in -lstr" >&5
3557 ac_lib_var
=`echo str'_'putmsg | sed 'y%./+-%__p_%'`
3558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 ac_save_LIBS
="$LIBS"
3563 cat > conftest.
$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 /* Override any gcc2 internal prototype to avoid an error. */
3567 /* We use char because int might match the return type of a gcc2
3568 builtin and then its argument prototype would still apply. */
3575 if { (eval echo configure
:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3577 eval "ac_cv_lib_$ac_lib_var=yes"
3579 echo "configure: failed program was:" >&5
3580 cat conftest.
$ac_ext >&5
3582 eval "ac_cv_lib_$ac_lib_var=no"
3585 LIBS
="$ac_save_LIBS"
3588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3589 echo "$ac_t""yes" 1>&6
3590 ac_tr_lib
=HAVE_LIB
`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3592 cat >> confdefs.h
<<EOF
3593 #define $ac_tr_lib 1
3599 echo "$ac_t""no" 1>&6
3605 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3606 if test -f $pfopen ; then
3607 for ac_func
in pfopen
3609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_func" >&5
3611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.
$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 /* System header to define __stub macros and hopefully few prototypes,
3618 which can conflict with char $ac_func(); below. */
3620 /* Override any gcc2 internal prototype to avoid an error. */
3621 /* We use char because int might match the return type of a gcc2
3622 builtin and then its argument prototype would still apply. */
3627 /* The GNU C library defines this for functions which it implements
3628 to always fail with ENOSYS. Some functions are actually named
3629 something starting with __ and the normal name is an alias. */
3630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 if { (eval echo configure
:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3640 eval "ac_cv_func_$ac_func=yes"
3642 echo "configure: failed program was:" >&5
3643 cat conftest.
$ac_ext >&5
3645 eval "ac_cv_func_$ac_func=no"
3650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3651 echo "$ac_t""yes" 1>&6
3652 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3653 cat >> confdefs.h
<<EOF
3654 #define $ac_tr_func 1
3658 echo "$ac_t""no" 1>&6
3662 if test $ac_cv_func_pfopen = "no" ; then
3663 echo "$ac_t""Using $pfopen" 1>&6
3664 LIBS
="$LIBS $pfopen"
3667 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3668 echo "configure:3669: checking for local pcap library" >&5
3671 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3672 egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'`
3673 for dir
in $places ..
/libpcap libpcap
; do
3674 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3675 if test $lastdir = $basedir ; then
3679 if test -r $dir/libpcap.a
; then
3680 libpcap
=$dir/libpcap.a
3684 if test $libpcap = FAIL
; then
3685 echo "$ac_t""not found" 1>&6
3686 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3687 echo "configure:3688: checking for main in -lpcap" >&5
3688 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 ac_save_LIBS
="$LIBS"
3694 cat > conftest.
$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3702 if { (eval echo configure
:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3704 eval "ac_cv_lib_$ac_lib_var=yes"
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 eval "ac_cv_lib_$ac_lib_var=no"
3712 LIBS
="$ac_save_LIBS"
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3719 echo "$ac_t""no" 1>&6
3722 if test $libpcap = FAIL
; then
3723 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3727 if test -r $d/pcap.h
; then
3728 V_INCLS
="-I$d $V_INCLS"
3729 elif test -r $srcdir/..
/libpcap
/pcap.h
; then
3730 V_INCLS
="-I$d -I$srcdir/../libpcap $V_INCLS"
3732 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3734 echo "$ac_t""$libpcap" 1>&6
3736 LIBS
="$libpcap $LIBS"
3737 case "$target_os" in
3740 pseexe
="/lib/pse.exp"
3741 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $pseexe" >&5
3743 if test -f $pseexe ; then
3744 echo "$ac_t""yes" 1>&6
3745 LIBS
="$LIBS -I:$pseexe"
3751 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3754 case "$target_os" in
3757 cat >> confdefs.h
<<\EOF
3768 V_INCLS
="$V_INCLS -I\$(srcdir)/linux-include"
3773 cat >> confdefs.h
<<\EOF
3784 if test -f /dev
/bpf0
; then
3788 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3789 echo "configure:3790: checking for u_int8_t using $CC" >&5
3790 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.
$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3797 # include "confdefs.h"
3798 # include <sys/types.h>
3800 # include <stdlib.h>
3801 # include <stddef.h>
3807 if { (eval echo configure
:3808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3809 ac_cv_lbl_have_u_int8_t
=yes
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3814 ac_cv_lbl_have_u_int8_t
=no
3819 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
3820 if test $ac_cv_lbl_have_u_int8_t = no
; then
3821 cat >> confdefs.h
<<\EOF
3822 #define u_int8_t u_char
3826 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
3827 echo "configure:3828: checking for int16_t using $CC" >&5
3828 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 cat > conftest.
$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3835 # include "confdefs.h"
3836 # include <sys/types.h>
3838 # include <stdlib.h>
3839 # include <stddef.h>
3845 if { (eval echo configure
:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3847 ac_cv_lbl_have_int16_t
=yes
3849 echo "configure: failed program was:" >&5
3850 cat conftest.
$ac_ext >&5
3852 ac_cv_lbl_have_int16_t
=no
3857 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
3858 if test $ac_cv_lbl_have_int16_t = no
; then
3859 cat >> confdefs.h
<<\EOF
3860 #define int16_t short
3864 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
3865 echo "configure:3866: checking for u_int16_t using $CC" >&5
3866 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.
$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3873 # include "confdefs.h"
3874 # include <sys/types.h>
3876 # include <stdlib.h>
3877 # include <stddef.h>
3883 if { (eval echo configure
:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885 ac_cv_lbl_have_u_int16_t
=yes
3887 echo "configure: failed program was:" >&5
3888 cat conftest.
$ac_ext >&5
3890 ac_cv_lbl_have_u_int16_t
=no
3895 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
3896 if test $ac_cv_lbl_have_u_int16_t = no
; then
3897 cat >> confdefs.h
<<\EOF
3898 #define u_int16_t u_short
3902 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
3903 echo "configure:3904: checking for int32_t using $CC" >&5
3904 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.
$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3911 # include "confdefs.h"
3912 # include <sys/types.h>
3914 # include <stdlib.h>
3915 # include <stddef.h>
3921 if { (eval echo configure
:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 ac_cv_lbl_have_int32_t
=yes
3925 echo "configure: failed program was:" >&5
3926 cat conftest.
$ac_ext >&5
3928 ac_cv_lbl_have_int32_t
=no
3933 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
3934 if test $ac_cv_lbl_have_int32_t = no
; then
3935 cat >> confdefs.h
<<\EOF
3940 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
3941 echo "configure:3942: checking for u_int32_t using $CC" >&5
3942 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
3943 echo $ac_n "(cached) $ac_c" 1>&6
3945 cat > conftest.
$ac_ext <<EOF
3946 #line 3947 "configure"
3947 #include "confdefs.h"
3949 # include "confdefs.h"
3950 # include <sys/types.h>
3952 # include <stdlib.h>
3953 # include <stddef.h>
3959 if { (eval echo configure
:3960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3961 ac_cv_lbl_have_u_int32_t
=yes
3963 echo "configure: failed program was:" >&5
3964 cat conftest.
$ac_ext >&5
3966 ac_cv_lbl_have_u_int32_t
=no
3971 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
3972 if test $ac_cv_lbl_have_u_int32_t = no
; then
3973 cat >> confdefs.h
<<\EOF
3974 #define u_int32_t u_int
3980 if test "${LBL_CFLAGS+set}" = set; then
3981 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
3983 if test -f .devel
; then
3984 if test "$GCC" = yes ; then
3985 if test "${LBL_CFLAGS+set}" != set; then
3986 if test "$ac_cv_prog_cc_g" = yes ; then
3987 V_CCOPT
="-g $V_CCOPT"
3989 V_CCOPT
="$V_CCOPT -Wall"
3990 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3991 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
3995 case "$target_os" in
3998 V_CCOPT
="$V_CCOPT -n32"
4005 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
4007 if test -f $name ; then
4008 ln -s $name os-proto.h
4009 cat >> confdefs.h
<<\EOF
4010 #define HAVE_OS_PROTO_H 1
4014 echo "configure: warning: can't find $name" 1>&2
4018 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
4019 echo "configure:4020: checking if sockaddr struct has sa_len member" >&5
4020 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.
$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4027 # include <sys/types.h>
4028 # include <sys/socket.h>
4030 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
4033 if { (eval echo configure
:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4035 ac_cv_lbl_sockaddr_has_sa_len
=yes
4037 echo "configure: failed program was:" >&5
4038 cat conftest.
$ac_ext >&5
4040 ac_cv_lbl_sockaddr_has_sa_len
=no
4045 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
4046 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
4047 cat >> confdefs.h
<<\EOF
4048 #define HAVE_SOCKADDR_SA_LEN 1
4053 echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6
4054 echo "configure:4055: checking if ether_header uses ether_addr structs" >&5
4055 if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 LBL_SAVE_CFLAGS
="$CFLAGS"
4059 CFLAGS
="$CFLAGS $V_INCLS"
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4064 # include <sys/types.h>
4066 /* osf3 has REALLY good prototyes */
4070 # include <sys/socket.h>
4071 # include <net/if.h>
4072 # include <netinet/in.h>
4073 # include <netinet/if_ether.h>
4076 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet)
4079 if { (eval echo configure
:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4081 ac_cv_ether_header_has_ea
=yes
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4086 ac_cv_ether_header_has_ea
=no
4089 CFLAGS
="$LBL_SAVE_CFLAGS"
4092 echo "$ac_t""$ac_cv_ether_header_has_ea" 1>&6
4093 if test $ac_cv_ether_header_has_ea = yes ; then
4094 cat >> confdefs.h
<<\EOF
4095 #define ETHER_HEADER_HAS_EA 1
4100 echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6
4101 echo "configure:4102: checking if ether_arp uses ether_addr structs" >&5
4102 if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 LBL_SAVE_CFLAGS
="$CFLAGS"
4106 CFLAGS
="$CFLAGS $V_INCLS"
4107 cat > conftest.
$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4111 # include <sys/types.h>
4113 /* osf3 has REALLY good prototyes */
4117 # include <sys/socket.h>
4118 # include <net/if.h>
4119 # include <netinet/in.h>
4120 # include <netinet/if_ether.h>
4123 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet)
4126 if { (eval echo configure
:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4128 ac_cv_ether_arp_has_ea
=yes
4130 echo "configure: failed program was:" >&5
4131 cat conftest.
$ac_ext >&5
4133 ac_cv_ether_arp_has_ea
=no
4136 CFLAGS
="$LBL_SAVE_CFLAGS"
4139 echo "$ac_t""$ac_cv_ether_arp_has_ea" 1>&6
4140 if test $ac_cv_ether_arp_has_ea = yes ; then
4141 cat >> confdefs.h
<<\EOF
4142 #define ETHER_ARP_HAS_EA 1
4147 echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6
4148 echo "configure:4149: checking if ether_arp uses erp_xsha member" >&5
4149 if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 LBL_SAVE_CFLAGS
="$CFLAGS"
4153 CFLAGS
="$CFLAGS $V_INCLS"
4154 cat > conftest.
$ac_ext <<EOF
4155 #line 4156 "configure"
4156 #include "confdefs.h"
4158 # include <sys/types.h>
4159 # include <sys/socket.h>
4161 /* osf3 has REALLY good prototyes */
4165 # include <net/if.h>
4166 # include <netinet/in.h>
4167 # include <netinet/if_ether.h>
4169 u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha)
4172 if { (eval echo configure
:4173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 ac_cv_struct_ether_arp_x
=yes
4176 echo "configure: failed program was:" >&5
4177 cat conftest.
$ac_ext >&5
4179 ac_cv_struct_ether_arp_x
=no
4182 CFLAGS
="$LBL_SAVE_CFLAGS"
4185 echo "$ac_t""$ac_cv_struct_ether_arp_x" 1>&6
4186 if test $ac_cv_struct_ether_arp_x = yes ; then
4187 cat >> confdefs.h
<<\EOF
4188 #define ETHER_ARP_HAS_X 1
4193 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4194 echo "configure:4195: checking if unaligned accesses fail" >&5
4195 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 case "$target_cpu" in
4200 alpha|hp
*|mips|sparc
)
4201 ac_cv_lbl_unaligned_fail
=yes
4205 cat >conftest.c
<<EOF
4206 # include <sys/types.h>
4207 # include <sys/wait.h>
4209 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4214 /* avoid "core dumped" message */
4220 pid = waitpid(pid, &status, 0);
4223 exit(!WIFEXITED(status));
4226 i = *(unsigned int *)&a[1];
4231 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4232 conftest.c
$LIBS >/dev
/null
2>&1
4233 if test ! -x conftest
; then
4234 ac_cv_lbl_unaligned_fail
=yes
4236 .
/conftest
>conftest.out
4237 if test ! -s conftest.out
; then
4238 ac_cv_lbl_unaligned_fail
=yes
4240 ac_cv_lbl_unaligned_fail
=no
4243 rm -f conftest
* core core.conftest
4248 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4249 if test $ac_cv_lbl_unaligned_fail = yes ; then
4250 cat >> confdefs.h
<<\EOF
4257 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4258 echo "configure:4259: checking for h_errno" >&5
4259 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.
$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4266 # include <sys/types.h>
4272 if { (eval echo configure
:4273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4274 ac_cv_var_h_errno
=yes
4276 echo "configure: failed program was:" >&5
4277 cat conftest.
$ac_ext >&5
4279 ac_cv_var_h_errno
=no
4284 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4285 if test "$ac_cv_var_h_errno" = "yes"; then
4286 cat >> confdefs.h
<<\EOF
4287 #define HAVE_H_ERRNO 1
4293 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4294 echo "configure:4295: checking for SSLeay" >&5
4295 ac_cv_ssleay_path
=no
4297 for dir
in /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4298 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4299 ac_cv_ssleay_path
=$dir
4301 if test -d $dir/include
/ssleay
-a -f $dir/include
/ssleay
/des.h
; then
4302 incdir
="-I$dir/include/ssleay"
4303 elif test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4304 incdir
="-I$dir/include -I$dir/include/openssl"
4305 elif test -d $dir/include
-a -f $dir/include
/des.h
; then
4306 incdir
="-I$dir/include"
4308 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4311 ac_cv_ssleay_path
=no
4315 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4316 if test "$ac_cv_ssleay_path" != no
; then
4317 V_INCLS
="$V_INCLS $incdir"
4318 LIBS
="$LIBS -L$dir/lib"
4319 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4320 LIBS
="$LIBS -lRSAglue"
4322 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4323 LIBS
="$LIBS -lrsaref"
4325 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4326 echo "configure:4327: checking for des_cbc_encrypt in -lcrypto" >&5
4327 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 ac_save_LIBS
="$LIBS"
4332 LIBS
="-lcrypto $LIBS"
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char des_cbc_encrypt();
4345 if { (eval echo configure
:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4347 eval "ac_cv_lib_$ac_lib_var=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4352 eval "ac_cv_lib_$ac_lib_var=no"
4355 LIBS
="$ac_save_LIBS"
4358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4362 cat >> confdefs.h
<<EOF
4363 #define $ac_tr_lib 1
4366 LIBS
="-lcrypto $LIBS"
4369 echo "$ac_t""no" 1>&6
4373 bak_CPPFLAGS
=$CPPFLAGS
4374 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4375 for ac_hdr
in cast.h rc5.h
4377 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4379 echo "configure:4380: checking for $ac_hdr" >&5
4380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4381 echo $ac_n "(cached) $ac_c" 1>&6
4383 cat > conftest.
$ac_ext <<EOF
4384 #line 4385 "configure"
4385 #include "confdefs.h"
4388 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4389 { (eval echo configure
:4390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4390 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4391 if test -z "$ac_err"; then
4393 eval "ac_cv_header_$ac_safe=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4399 eval "ac_cv_header_$ac_safe=no"
4403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4405 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4406 cat >> confdefs.h
<<EOF
4407 #define $ac_tr_hdr 1
4411 echo "$ac_t""no" 1>&6
4416 if test "$ac_cv_header_cast_h" = "yes"; then
4417 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4418 echo "configure:4419: checking for buggy CAST128" >&5
4419 if test "$cross_compiling" = yes; then
4420 buggy_cast128
="cross-compiling, assume yes"
4422 cat > conftest.
$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4429 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4430 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4431 unsigned char out[sizeof(in)];
4432 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4434 CAST_set_key(&ks, sizeof(key), key);
4435 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4436 if (memcmp(out, ok, sizeof(ok)) != 0)
4442 if { (eval echo configure
:4443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4446 echo "configure: failed program was:" >&5
4447 cat conftest.
$ac_ext >&5
4454 echo "$ac_t""$buggy_cast128" 1>&6
4455 if test "$buggy_cast128" != no
; then
4456 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4457 echo "disabling CAST128 support."
4458 cat >> confdefs.h
<<\EOF
4459 #define HAVE_BUGGY_CAST128 1
4465 CPPFLAGS
=$bak_CPPFLAGS
4468 if test -r ${srcdir}/lbl
/gnuc.h
; then
4470 ln -s ${srcdir}/lbl
/gnuc.h gnuc.h
4479 # Find a good install program. We prefer a C program (faster),
4480 # so one script is as good as another. But avoid the broken or
4481 # incompatible versions:
4482 # SysV /etc/install, /usr/sbin/install
4483 # SunOS /usr/etc/install
4484 # IRIX /sbin/install
4486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4489 # ./install, which can be erroneously created by make from ./install.sh.
4490 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4491 echo "configure:4492: checking for a BSD compatible install" >&5
4492 if test -z "$INSTALL"; then
4493 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4497 for ac_dir
in $PATH; do
4498 # Account for people who put trailing slashes in PATH elements.
4500 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4502 # OSF1 and SCO ODT 3.0 have their own names for install.
4503 # Don't use installbsd from OSF since it installs stuff as root
4505 for ac_prog
in ginstall scoinst
install; do
4506 if test -f $ac_dir/$ac_prog; then
4507 if test $ac_prog = install &&
4508 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4509 # AIX install. It has an incompatible calling convention.
4512 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4523 if test "${ac_cv_path_install+set}" = set; then
4524 INSTALL
="$ac_cv_path_install"
4526 # As a last resort, use the slow shell script. We don't cache a
4527 # path for INSTALL within a source directory, because that will
4528 # break other packages using the cache if that directory is
4529 # removed, or if the path is relative.
4530 INSTALL
="$ac_install_sh"
4533 echo "$ac_t""$INSTALL" 1>&6
4535 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4536 # It thinks the first close brace ends the variable substitution.
4537 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4539 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4541 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4548 cat > confcache
<<\EOF
4549 # This file is a shell script that caches the results of configure
4550 # tests run on this system so they can be shared between configure
4551 # scripts and configure runs. It is not useful on other systems.
4552 # If it contains results you don't want to keep, you may remove or edit it.
4554 # By default, configure uses ./config.cache as the cache file,
4555 # creating it if it does not exist already. You can give configure
4556 # the --cache-file=FILE option to use a different cache file; that is
4557 # what configure does when it calls configure scripts in
4558 # subdirectories, so they share the cache.
4559 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4560 # config.status only pays attention to the cache file if you give it the
4561 # --recheck option to rerun configure.
4564 # The following way of writing the cache mishandles newlines in values,
4565 # but we know of no workaround that is simple, portable, and efficient.
4566 # So, don't put newlines in cache variables' values.
4567 # Ultrix sh set writes to stderr and can't be redirected directly,
4568 # and sets the high bit in the cache file unless we assign to the vars.
4570 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4572 # `set' does not quote correctly, so add quotes (double-quote substitution
4573 # turns \\\\ into \\, and sed turns \\ into \).
4575 -e "s/'/'\\\\''/g" \
4576 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4579 # `set' quotes correctly as required by POSIX, so do not add quotes.
4580 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4583 if cmp -s $cache_file confcache
; then
4586 if test -w $cache_file; then
4587 echo "updating cache $cache_file"
4588 cat confcache
> $cache_file
4590 echo "not updating unwritable cache $cache_file"
4595 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4597 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4598 # Let make expand exec_prefix.
4599 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4601 # Any assignment to VPATH causes Sun make to only execute
4602 # the first set of double-colon rules, so remove it if not needed.
4603 # If there is a colon in the path, we need to keep it.
4604 if test "x$srcdir" = x.
; then
4605 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4608 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4610 DEFS
=-DHAVE_CONFIG_H
4612 # Without the "./", some shells look in PATH for config.status.
4613 : ${CONFIG_STATUS=./config.status}
4615 echo creating
$CONFIG_STATUS
4616 rm -f $CONFIG_STATUS
4617 cat > $CONFIG_STATUS <<EOF
4619 # Generated automatically by configure.
4620 # Run this file to recreate the current configuration.
4621 # This directory was configured as follows,
4622 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4624 # $0 $ac_configure_args
4626 # Compiler output produced by configure, useful for debugging
4627 # configure, is in ./config.log if it exists.
4629 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4632 case "\$ac_option" in
4633 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4634 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4635 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4636 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4637 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4639 -help | --help | --hel | --he | --h)
4640 echo "\$ac_cs_usage"; exit 0 ;;
4641 *) echo "\$ac_cs_usage"; exit 1 ;;
4645 ac_given_srcdir=$srcdir
4646 ac_given_INSTALL="$INSTALL"
4648 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4650 cat >> $CONFIG_STATUS <<EOF
4652 # Protect against being on the right side of a sed subst in config.status.
4653 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4654 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4658 s%@CFLAGS@%$CFLAGS%g
4659 s%@CPPFLAGS@%$CPPFLAGS%g
4660 s%@CXXFLAGS@%$CXXFLAGS%g
4661 s%@FFLAGS@%$FFLAGS%g
4663 s%@LDFLAGS@%$LDFLAGS%g
4665 s%@exec_prefix@%$exec_prefix%g
4666 s%@prefix@%$prefix%g
4667 s%@program_transform_name@%$program_transform_name%g
4668 s%@bindir@%$bindir%g
4669 s%@sbindir@%$sbindir%g
4670 s%@libexecdir@%$libexecdir%g
4671 s%@datadir@%$datadir%g
4672 s%@sysconfdir@%$sysconfdir%g
4673 s%@sharedstatedir@%$sharedstatedir%g
4674 s%@localstatedir@%$localstatedir%g
4675 s%@libdir@%$libdir%g
4676 s%@includedir@%$includedir%g
4677 s%@oldincludedir@%$oldincludedir%g
4678 s%@infodir@%$infodir%g
4679 s%@mandir@%$mandir%g
4681 s%@host_alias@%$host_alias%g
4682 s%@host_cpu@%$host_cpu%g
4683 s%@host_vendor@%$host_vendor%g
4684 s%@host_os@%$host_os%g
4685 s%@target@%$target%g
4686 s%@target_alias@%$target_alias%g
4687 s%@target_cpu@%$target_cpu%g
4688 s%@target_vendor@%$target_vendor%g
4689 s%@target_os@%$target_os%g
4691 s%@build_alias@%$build_alias%g
4692 s%@build_cpu@%$build_cpu%g
4693 s%@build_vendor@%$build_vendor%g
4694 s%@build_os@%$build_os%g
4695 s%@SHLICC2@%$SHLICC2%g
4698 s%@LIBOBJS@%$LIBOBJS%g
4699 s%@V_CCOPT@%$V_CCOPT%g
4700 s%@V_GROUP@%$V_GROUP%g
4701 s%@V_INCLS@%$V_INCLS%g
4702 s%@V_PCAPDEP@%$V_PCAPDEP%g
4703 s%@LOCALSRC@%$LOCALSRC%g
4704 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4705 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4706 s%@INSTALL_DATA@%$INSTALL_DATA%g
4711 cat >> $CONFIG_STATUS <<\EOF
4713 # Split the substitutions into bite-sized pieces for seds with
4714 # small command number limits, like on Digital OSF/1 and HP-UX.
4715 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4716 ac_file
=1 # Number of current file.
4717 ac_beg
=1 # First line for current file.
4718 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4721 while $ac_more_lines; do
4722 if test $ac_beg -gt 1; then
4723 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4725 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4727 if test ! -s conftest.s
$ac_file; then
4729 rm -f conftest.s
$ac_file
4731 if test -z "$ac_sed_cmds"; then
4732 ac_sed_cmds
="sed -f conftest.s$ac_file"
4734 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4736 ac_file
=`expr $ac_file + 1`
4738 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4741 if test -z "$ac_sed_cmds"; then
4746 cat >> $CONFIG_STATUS <<EOF
4748 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4750 cat >> $CONFIG_STATUS <<\EOF
4751 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4752 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4754 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4755 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4756 *) ac_file_in
="${ac_file}.in" ;;
4759 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4761 # Remove last slash and all that follows it. Not all systems have dirname.
4762 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4763 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4764 # The file is in a subdirectory.
4765 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4766 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4767 # A "../" for each directory in $ac_dir_suffix.
4768 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4770 ac_dir_suffix
= ac_dots
=
4773 case "$ac_given_srcdir" in
4775 if test -z "$ac_dots"; then top_srcdir
=.
4776 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4777 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4779 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4780 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4783 case "$ac_given_INSTALL" in
4784 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4785 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4788 echo creating
"$ac_file"
4790 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4792 *Makefile
*) ac_comsub
="1i\\
4793 # $configure_input" ;;
4797 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4799 s%@configure_input@%$configure_input%g
4800 s%@srcdir@%$srcdir%g
4801 s%@top_srcdir@%$top_srcdir%g
4802 s%@INSTALL@%$INSTALL%g
4803 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4807 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4808 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4810 # ac_d sets the value in "#define NAME VALUE" lines.
4811 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4812 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4815 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4816 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4817 ac_uB
='\([ ]\)%\1#\2define\3'
4820 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4821 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4822 ac_eB
='$%\1#\2define\3'
4826 if test "${CONFIG_HEADERS+set}" != set; then
4828 cat >> $CONFIG_STATUS <<EOF
4829 CONFIG_HEADERS="config.h"
4831 cat >> $CONFIG_STATUS <<\EOF
4833 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4836 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4837 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4838 *) ac_file_in
="${ac_file}.in" ;;
4841 echo creating
$ac_file
4843 rm -f conftest.frag conftest.
in conftest.out
4844 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4845 cat $ac_file_inputs > conftest.
in
4849 # Transform confdefs.h into a sed script conftest.vals that substitutes
4850 # the proper values into config.h.in to produce config.h. And first:
4851 # Protect against being on the right side of a sed subst in config.status.
4852 # Protect against being in an unquoted here document in config.status.
4854 cat > conftest.hdr
<<\EOF
4857 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4861 sed -n -f conftest.hdr confdefs.h > conftest.vals
4864 # This sed command replaces #undef with comments. This is necessary, for
4865 # example, in the case of _POSIX_SOURCE, which is predefined and required
4866 # on some systems where configure will not decide to define it.
4867 cat >> conftest.vals <<\EOF
4868 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4871 # Break up conftest.vals because some shells have a limit on
4872 # the size of here documents, and old seds have small limits too.
4877 ac_lines=`grep -c . conftest.vals
`
4878 # grep -c gives empty output for an empty file on some AIX systems.
4879 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4880 # Write a limited-size here document to conftest.frag.
4881 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4882 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4884 sed -f conftest.frag conftest.in > conftest.out
4886 mv conftest.out conftest.in
4888 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4890 mv conftest.tail conftest.vals
4894 cat >> $CONFIG_STATUS <<\EOF
4895 rm -f conftest.frag conftest.h
4896 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4897 cat conftest.in >> conftest.h
4899 if cmp -s $ac_file conftest.h 2>/dev/null; then
4900 echo "$ac_file is unchanged"
4903 # Remove last slash and all that follows it. Not all systems have dirname.
4904 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4905 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4906 # The file is in a subdirectory.
4907 test ! -d "$ac_dir" && mkdir "$ac_dir"
4910 mv conftest.h $ac_file
4915 cat >> $CONFIG_STATUS <<EOF
4919 cat >> $CONFIG_STATUS <<\EOF
4920 if test -f .devel; then
4921 echo timestamp > stamp-h
4922 cat Makefile-devel-adds >> Makefile
4928 chmod +x $CONFIG_STATUS
4929 rm -fr confdefs* $ac_clean_files
4930 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1