3 # From configure.in Revision: 1.27
57 # Guess values for system-dependent variables and create Makefiles.
58 # Generated automatically using autoconf version 2.13
59 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
61 # This configure script is free software; the Free Software Foundation
62 # gives unlimited permission to copy, distribute and modify it.
66 ac_default_prefix
=/usr
/local
67 # Any additions from configure.in:
69 --without-gcc don't use gcc"
71 --enable-ipv6 enable ipv6 (with ipv4) support
72 --disable-ipv6 disable ipv6 support"
74 # Initialize some variables set by options.
75 # The variables have the same names as the options, with
76 # dashes changed to underlines.
78 cache_file
=.
/config.cache
87 program_transform_name
=s
,x
,x
,
95 bindir
='${exec_prefix}/bin'
96 sbindir
='${exec_prefix}/sbin'
97 libexecdir
='${exec_prefix}/libexec'
98 datadir
='${prefix}/share'
99 sysconfdir
='${prefix}/etc'
100 sharedstatedir
='${prefix}/com'
101 localstatedir
='${prefix}/var'
102 libdir
='${exec_prefix}/lib'
103 includedir
='${prefix}/include'
104 oldincludedir
='/usr/include'
105 infodir
='${prefix}/info'
106 mandir
='${prefix}/man'
108 # Initialize some other variables.
111 SHELL
=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
119 # If the previous option needs an argument, assign it.
120 if test -n "$ac_prev"; then
121 eval "$ac_prev=\$ac_option"
127 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 # Accept the important Cygnus configure options, so we can diagnose typos.
135 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
137 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
138 bindir
="$ac_optarg" ;;
140 -build |
--build |
--buil |
--bui |
--bu)
142 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
143 build
="$ac_optarg" ;;
145 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
146 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
147 ac_prev
=cache_file
;;
148 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
149 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
150 cache_file
="$ac_optarg" ;;
152 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
154 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
156 datadir
="$ac_optarg" ;;
158 -disable-* |
--disable-*)
159 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}=no" ;;
167 -enable-* |
--enable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}='$ac_optarg'" ;;
180 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
181 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
182 |
--exec |
--exe |
--ex)
183 ac_prev
=exec_prefix
;;
184 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
185 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
186 |
--exec=* |
--exe=* |
--ex=*)
187 exec_prefix
="$ac_optarg" ;;
189 -gas |
--gas |
--ga |
--g)
190 # Obsolete; use --with-gas.
193 -help |
--help |
--hel |
--he)
194 # Omit some internal or obsolete options to make the list less imposing.
195 # This message is too long to be a string in the A/UX 3.1 sh.
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
200 --cache-file=FILE cache test results in FILE
201 --help print this message
202 --no-create do not create output files
203 --quiet, --silent do not print \`checking...' messages
204 --version print the version of autoconf that created configure
205 Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --infodir=DIR info documentation in DIR [PREFIX/info]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235 Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
248 -host |
--host |
--hos |
--ho)
250 -host=* |
--host=* |
--hos=* |
--ho=*)
253 -includedir |
--includedir |
--includedi |
--included |
--include \
254 |
--includ |
--inclu |
--incl |
--inc)
255 ac_prev
=includedir
;;
256 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
257 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
258 includedir
="$ac_optarg" ;;
260 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
262 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
263 infodir
="$ac_optarg" ;;
265 -libdir |
--libdir |
--libdi |
--libd)
267 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
268 libdir
="$ac_optarg" ;;
270 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
271 |
--libexe |
--libex |
--libe)
272 ac_prev
=libexecdir
;;
273 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
274 |
--libexe=* |
--libex=* |
--libe=*)
275 libexecdir
="$ac_optarg" ;;
277 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
278 |
--localstate |
--localstat |
--localsta |
--localst \
279 |
--locals |
--local |
--loca |
--loc |
--lo)
280 ac_prev
=localstatedir
;;
281 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
282 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
283 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
284 localstatedir
="$ac_optarg" ;;
286 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
288 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
289 mandir
="$ac_optarg" ;;
292 # Obsolete; use --without-fp.
295 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
299 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
300 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
303 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
304 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
305 |
--oldin |
--oldi |
--old |
--ol |
--o)
306 ac_prev
=oldincludedir
;;
307 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
308 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
309 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
310 oldincludedir
="$ac_optarg" ;;
312 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
314 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
315 prefix
="$ac_optarg" ;;
317 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
318 |
--program-pre |
--program-pr |
--program-p)
319 ac_prev
=program_prefix
;;
320 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
321 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
322 program_prefix
="$ac_optarg" ;;
324 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
325 |
--program-suf |
--program-su |
--program-s)
326 ac_prev
=program_suffix
;;
327 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
328 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
329 program_suffix
="$ac_optarg" ;;
331 -program-transform-name |
--program-transform-name \
332 |
--program-transform-nam |
--program-transform-na \
333 |
--program-transform-n |
--program-transform- \
334 |
--program-transform |
--program-transfor \
335 |
--program-transfo |
--program-transf \
336 |
--program-trans |
--program-tran \
337 |
--progr-tra |
--program-tr |
--program-t)
338 ac_prev
=program_transform_name
;;
339 -program-transform-name=* |
--program-transform-name=* \
340 |
--program-transform-nam=* |
--program-transform-na=* \
341 |
--program-transform-n=* |
--program-transform-=* \
342 |
--program-transform=* |
--program-transfor=* \
343 |
--program-transfo=* |
--program-transf=* \
344 |
--program-trans=* |
--program-tran=* \
345 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
346 program_transform_name
="$ac_optarg" ;;
348 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
349 |
-silent |
--silent |
--silen |
--sile |
--sil)
352 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
354 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
356 sbindir
="$ac_optarg" ;;
358 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
359 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
360 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
362 ac_prev
=sharedstatedir
;;
363 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
364 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
365 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
367 sharedstatedir
="$ac_optarg" ;;
369 -site |
--site |
--sit)
371 -site=* |
--site=* |
--sit=*)
374 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
376 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
377 srcdir
="$ac_optarg" ;;
379 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
380 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
381 ac_prev
=sysconfdir
;;
382 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
383 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
384 sysconfdir
="$ac_optarg" ;;
386 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
388 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
389 target
="$ac_optarg" ;;
391 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
394 -version |
--version |
--versio |
--versi |
--vers)
395 echo "configure generated by autoconf version 2.13"
399 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package
=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* |
--without-*)
412 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
421 # Obsolete; use --with-x.
424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
426 ac_prev
=x_includes
;;
427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
429 x_includes
="$ac_optarg" ;;
431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
433 ac_prev
=x_libraries
;;
434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
436 x_libraries
="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE
; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c) ;;
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
490 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest
* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file
=tcpdump.c
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted
=yes
518 # Try the directory containing this script, then its parent.
520 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
523 if test ! -r $srcdir/$ac_unique_file; then
527 ac_srcdir_defaulted
=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 for ac_site_file
in $CONFIG_SITE; do
547 if test -r "$ac_site_file"; then
548 echo "loading site script $ac_site_file"
553 if test -r "$cache_file"; then
554 echo "loading cache $cache_file"
557 echo "creating cache $cache_file"
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp
='$CPP $CPPFLAGS'
564 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling
=$ac_cv_prog_cc_cross
570 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
579 ac_n
= ac_c
='\c' ac_t
=
585 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
586 if test -f $ac_dir/install-sh
; then
588 ac_install_sh
="$ac_aux_dir/install-sh -c"
590 elif test -f $ac_dir/install.sh
; then
592 ac_install_sh
="$ac_aux_dir/install.sh -c"
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess
=$ac_aux_dir/config.guess
600 ac_config_sub
=$ac_aux_dir/config.sub
601 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
604 # Do some error checking and defaulting for the host and target type.
606 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
609 # 1. You are not allowed to specify --host, --target, and nonopt at the
611 # 2. Host defaults to nonopt.
612 # 3. If nonopt is not specified, then host defaults to the current host,
613 # as determined by config.guess.
614 # 4. Target and build default to nonopt.
615 # 5. If nonopt is not specified, then target and build default to host.
617 # The aliases save the names the user supplied, while $host etc.
618 # will get canonicalized.
619 case $host---$target---$nonopt in
620 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
621 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
625 # Make sure we can run config.sub.
626 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
627 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
630 echo $ac_n "checking host system type""... $ac_c" 1>&6
631 echo "configure:632: checking host system type" >&5
634 case "$host_alias" in
638 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
639 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
641 *) host_alias
=$nonopt ;;
645 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
646 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$host" 1>&6
651 echo $ac_n "checking target system type""... $ac_c" 1>&6
652 echo "configure:653: checking target system type" >&5
655 case "$target_alias" in
658 NONE
) target_alias
=$host_alias ;;
659 *) target_alias
=$nonopt ;;
663 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
664 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$target" 1>&6
669 echo $ac_n "checking build system type""... $ac_c" 1>&6
670 echo "configure:671: checking build system type" >&5
673 case "$build_alias" in
676 NONE
) build_alias
=$host_alias ;;
677 *) build_alias
=$nonopt ;;
681 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
682 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$build" 1>&6
687 test "$host_alias" != "$target_alias" &&
688 test "$program_prefix$program_suffix$program_transform_name" = \
690 program_prefix
=${target_alias}-
695 if test -z "$PWD" ; then
703 # Check whether --with-gcc or --without-gcc was given.
704 if test "${with_gcc+set}" = set; then
711 if test "${srcdir}" != "." ; then
712 V_INCLS
="-I\$(srcdir)"
714 if test "${CFLAGS+set}" = set; then
717 if test -z "$CC" ; then
721 # Extract the first word of "shlicc2", so it can be a program name with args.
722 set dummy shlicc2
; ac_word
=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 if test -n "$SHLICC2"; then
729 ac_cv_prog_SHLICC2
="$SHLICC2" # Let the user override the test.
731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
733 for ac_dir
in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir
=.
735 if test -f $ac_dir/$ac_word; then
736 ac_cv_prog_SHLICC2
="yes"
741 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2
="no"
744 SHLICC2
="$ac_cv_prog_SHLICC2"
745 if test -n "$SHLICC2"; then
746 echo "$ac_t""$SHLICC2" 1>&6
748 echo "$ac_t""no" 1>&6
751 if test $SHLICC2 = yes ; then
758 if test -z "$CC" -a "$with_gcc" = no
; then
762 # Extract the first word of "gcc", so it can be a program name with args.
763 set dummy gcc
; ac_word
=$2
764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
765 echo "configure:766: checking for $ac_word" >&5
766 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 if test -n "$CC"; then
770 ac_cv_prog_CC
="$CC" # Let the user override the test.
772 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
774 for ac_dir
in $ac_dummy; do
775 test -z "$ac_dir" && ac_dir
=.
776 if test -f $ac_dir/$ac_word; then
785 if test -n "$CC"; then
786 echo "$ac_t""$CC" 1>&6
788 echo "$ac_t""no" 1>&6
791 if test -z "$CC"; then
792 # Extract the first word of "cc", so it can be a program name with args.
793 set dummy cc
; ac_word
=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 if test -n "$CC"; then
800 ac_cv_prog_CC
="$CC" # Let the user override the test.
802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
805 for ac_dir
in $ac_dummy; do
806 test -z "$ac_dir" && ac_dir
=.
807 if test -f $ac_dir/$ac_word; then
808 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
817 if test $ac_prog_rejected = yes; then
818 # We found a bogon in the path, so make sure we never use it.
819 set dummy
$ac_cv_prog_CC
821 if test $# -gt 0; then
822 # We chose a different compiler from the bogus one.
823 # However, it has the same basename, so the bogon will be chosen
824 # first if we set CC to just the basename; use the full file name.
826 set dummy
"$ac_dir/$ac_word" "$@"
834 if test -n "$CC"; then
835 echo "$ac_t""$CC" 1>&6
837 echo "$ac_t""no" 1>&6
840 if test -z "$CC"; then
843 # Extract the first word of "cl", so it can be a program name with args.
844 set dummy cl
; ac_word
=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 if test -n "$CC"; then
851 ac_cv_prog_CC
="$CC" # Let the user override the test.
853 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
855 for ac_dir
in $ac_dummy; do
856 test -z "$ac_dir" && ac_dir
=.
857 if test -f $ac_dir/$ac_word; then
866 if test -n "$CC"; then
867 echo "$ac_t""$CC" 1>&6
869 echo "$ac_t""no" 1>&6
874 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
877 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
878 echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
881 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
882 ac_cpp
='$CPP $CPPFLAGS'
883 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
884 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
885 cross_compiling
=$ac_cv_prog_cc_cross
887 cat > conftest.
$ac_ext << EOF
889 #line 890 "configure"
890 #include "confdefs.h"
894 if { (eval echo configure
:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
895 ac_cv_prog_cc_works
=yes
896 # If we can't run a trivial program, we are probably using a cross compiler.
897 if (.
/conftest
; exit) 2>/dev
/null
; then
898 ac_cv_prog_cc_cross
=no
900 ac_cv_prog_cc_cross
=yes
903 echo "configure: failed program was:" >&5
904 cat conftest.
$ac_ext >&5
905 ac_cv_prog_cc_works
=no
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp
='$CPP $CPPFLAGS'
911 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling
=$ac_cv_prog_cc_cross
915 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
916 if test $ac_cv_prog_cc_works = no
; then
917 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
921 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
922 cross_compiling
=$ac_cv_prog_cc_cross
924 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
925 echo "configure:926: checking whether we are using GNU C" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 cat > conftest.c
<<EOF
934 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
941 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
943 if test $ac_cv_prog_gcc = yes; then
949 ac_test_CFLAGS
="${CFLAGS+set}"
950 ac_save_CFLAGS
="$CFLAGS"
952 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
953 echo "configure:954: checking whether ${CC-cc} accepts -g" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 echo 'void f(){}' > conftest.c
958 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
967 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
968 if test "$ac_test_CFLAGS" = set; then
969 CFLAGS
="$ac_save_CFLAGS"
970 elif test $ac_cv_prog_cc_g = yes; then
971 if test "$GCC" = yes; then
977 if test "$GCC" = yes; then
984 if test "$GCC" = yes ; then
985 if test "$SHLICC2" = yes ; then
989 echo $ac_n "checking gcc version""... $ac_c" 1>&6
990 echo "configure:991: checking gcc version" >&5
991 if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 ac_cv_lbl_gcc_vers
=`$CC -v 2>&1 | \
995 sed -e '/^gcc version /!d' \
996 -e 's/^gcc version //' \
997 -e 's/ .*//' -e 's/^[^0-9]*//' \
1001 echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
1002 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1007 echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
1008 echo "configure:1009: checking that $CC handles ansi prototypes" >&5
1009 if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.
$ac_ext <<EOF
1013 #line 1014 "configure"
1014 #include "confdefs.h"
1015 #include <sys/types.h>
1017 int frob(int, char *)
1020 if { (eval echo configure
:1021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1022 ac_cv_lbl_cc_ansi_prototypes
=yes
1024 echo "configure: failed program was:" >&5
1025 cat conftest.
$ac_ext >&5
1027 ac_cv_lbl_cc_ansi_prototypes
=no
1032 echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
1033 if test $ac_cv_lbl_cc_ansi_prototypes = no
; then
1034 case "$target_os" in
1037 echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
1038 echo "configure:1039: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
1039 savedcflags
="$CFLAGS"
1040 CFLAGS
="-Aa -D_HPUX_SOURCE $CFLAGS"
1041 if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 cat > conftest.
$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1047 #include <sys/types.h>
1049 int frob(int, char *)
1052 if { (eval echo configure
:1053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1054 ac_cv_lbl_cc_hpux_cc_aa
=yes
1056 echo "configure: failed program was:" >&5
1057 cat conftest.
$ac_ext >&5
1059 ac_cv_lbl_cc_hpux_cc_aa
=no
1064 echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
1065 if test $ac_cv_lbl_cc_hpux_cc_aa = no
; then
1066 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1068 CFLAGS
="$savedcflags"
1069 V_CCOPT
="-Aa $V_CCOPT"
1070 cat >> confdefs.h
<<\EOF
1071 #define _HPUX_SOURCE 1
1077 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
1081 V_INCLS
="$V_INCLS -I/usr/local/include"
1082 LDFLAGS
="$LDFLAGS -L/usr/local/lib"
1084 case "$target_os" in
1087 V_CCOPT
="$V_CCOPT -xansi -signed -g3"
1091 V_CCOPT
="$V_CCOPT -std1 -g3"
1095 echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
1096 echo "configure:1097: checking that Ultrix $CC hacks const in prototypes" >&5
1097 if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftest.
$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1103 #include <sys/types.h>
1105 struct a { int b; };
1106 void c(const struct a *)
1109 if { (eval echo configure
:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1111 ac_cv_lbl_cc_const_proto
=yes
1113 echo "configure: failed program was:" >&5
1114 cat conftest.
$ac_ext >&5
1116 ac_cv_lbl_cc_const_proto
=no
1121 echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1122 if test $ac_cv_lbl_cc_const_proto = no
; then
1123 cat >> confdefs.h
<<\EOF
1132 echo $ac_n "checking for inline""... $ac_c" 1>&6
1133 echo "configure:1134: checking for inline" >&5
1134 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1138 for ac_kw
in inline __inline__ __inline
; do
1139 cat > conftest.
$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1147 if { (eval echo configure
:1148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1149 ac_cv_c_inline
=$ac_kw; break
1151 echo "configure: failed program was:" >&5
1152 cat conftest.
$ac_ext >&5
1159 echo "$ac_t""$ac_cv_c_inline" 1>&6
1160 case "$ac_cv_c_inline" in
1162 no
) cat >> confdefs.h
<<\EOF
1166 *) cat >> confdefs.h
<<EOF
1167 #define inline $ac_cv_c_inline
1173 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1174 echo "configure:1175: checking how to run the C preprocessor" >&5
1175 # On Suns, sometimes $CPP names a directory.
1176 if test -n "$CPP" && test -d "$CPP"; then
1179 if test -z "$CPP"; then
1180 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 # This must be in double quotes, not single quotes, because CPP may get
1184 # substituted into the Makefile and "${CC-cc}" will confuse make.
1186 # On the NeXT, cc -E runs the code through the compiler's parser,
1187 # not just through cpp.
1188 cat > conftest.
$ac_ext <<EOF
1189 #line 1190 "configure"
1190 #include "confdefs.h"
1194 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1195 { (eval echo configure
:1196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1196 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1197 if test -z "$ac_err"; then
1201 echo "configure: failed program was:" >&5
1202 cat conftest.
$ac_ext >&5
1204 CPP
="${CC-cc} -E -traditional-cpp"
1205 cat > conftest.
$ac_ext <<EOF
1206 #line 1207 "configure"
1207 #include "confdefs.h"
1211 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1212 { (eval echo configure
:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1213 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1214 if test -z "$ac_err"; then
1218 echo "configure: failed program was:" >&5
1219 cat conftest.
$ac_ext >&5
1221 CPP
="${CC-cc} -nologo -E"
1222 cat > conftest.
$ac_ext <<EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1228 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1229 { (eval echo configure
:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1230 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1231 if test -z "$ac_err"; then
1235 echo "configure: failed program was:" >&5
1236 cat conftest.
$ac_ext >&5
1245 ac_cv_prog_CPP
="$CPP"
1247 CPP
="$ac_cv_prog_CPP"
1249 ac_cv_prog_CPP
="$CPP"
1251 echo "$ac_t""$CPP" 1>&6
1253 for ac_hdr
in fcntl.h malloc.h memory.h rpc
/rpcent.h
1255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_hdr" >&5
1258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 cat > conftest.
$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267 { (eval echo configure
:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269 if test -z "$ac_err"; then
1271 eval "ac_cv_header_$ac_safe=yes"
1274 echo "configure: failed program was:" >&5
1275 cat conftest.
$ac_ext >&5
1277 eval "ac_cv_header_$ac_safe=no"
1281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1282 echo "$ac_t""yes" 1>&6
1283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1284 cat >> confdefs.h
<<EOF
1285 #define $ac_tr_hdr 1
1289 echo "$ac_t""no" 1>&6
1293 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1294 echo "configure:1295: checking whether time.h and sys/time.h may both be included" >&5
1295 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.
$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 #include <sys/types.h>
1302 #include <sys/time.h>
1308 if { (eval echo configure
:1309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1310 ac_cv_header_time
=yes
1312 echo "configure: failed program was:" >&5
1313 cat conftest.
$ac_ext >&5
1315 ac_cv_header_time
=no
1320 echo "$ac_t""$ac_cv_header_time" 1>&6
1321 if test $ac_cv_header_time = yes; then
1322 cat >> confdefs.h
<<\EOF
1323 #define TIME_WITH_SYS_TIME 1
1329 case "$target_os" in
1332 echo $ac_n "checking Linux kernel version""... $ac_c" 1>&6
1333 echo "configure:1334: checking Linux kernel version" >&5
1334 if eval "test \"`echo '$''{'ac_cv_linux_vers'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 ac_cv_linux_vers
=`uname -r 2>&1 | \
1338 sed -n -e '$s/.* //' -e '$s/\..*//p'`
1341 echo "$ac_t""$ac_cv_linux_vers" 1>&6
1342 if test $ac_cv_linux_vers -lt 2 ; then
1343 { echo "configure: error: version 2 or higher required; see the INSTALL doc for more info" 1>&2; exit 1; }
1345 cat >> confdefs.h
<<\EOF
1346 #define HAVE_NET_SLIP_H 1
1352 for ac_hdr
in net
/slip.h
1354 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1356 echo "configure:1357: checking for $ac_hdr" >&5
1357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.
$ac_ext <<EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1365 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1366 { (eval echo configure
:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1367 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1368 if test -z "$ac_err"; then
1370 eval "ac_cv_header_$ac_safe=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.
$ac_ext >&5
1376 eval "ac_cv_header_$ac_safe=no"
1380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1381 echo "$ac_t""yes" 1>&6
1382 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1383 cat >> confdefs.h
<<EOF
1384 #define $ac_tr_hdr 1
1388 echo "$ac_t""no" 1>&6
1398 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_hdr" >&5
1401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 cat > conftest.
$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1409 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure
:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1412 if test -z "$ac_err"; then
1414 eval "ac_cv_header_$ac_safe=yes"
1417 echo "configure: failed program was:" >&5
1418 cat conftest.
$ac_ext >&5
1420 eval "ac_cv_header_$ac_safe=no"
1424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1425 echo "$ac_t""yes" 1>&6
1426 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1427 cat >> confdefs.h
<<EOF
1428 #define $ac_tr_hdr 1
1432 echo "$ac_t""no" 1>&6
1436 echo $ac_n "checking for main in -lsmi""... $ac_c" 1>&6
1437 echo "configure:1438: checking for main in -lsmi" >&5
1438 ac_lib_var
=`echo smi'_'main | sed 'y%./+-%__p_%'`
1439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 ac_save_LIBS
="$LIBS"
1444 cat > conftest.
$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1452 if { (eval echo configure
:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1454 eval "ac_cv_lib_$ac_lib_var=yes"
1456 echo "configure: failed program was:" >&5
1457 cat conftest.
$ac_ext >&5
1459 eval "ac_cv_lib_$ac_lib_var=no"
1462 LIBS
="$ac_save_LIBS"
1465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1467 ac_tr_lib
=HAVE_LIB
`echo smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1469 cat >> confdefs.h
<<EOF
1470 #define $ac_tr_lib 1
1476 echo "$ac_t""no" 1>&6
1479 echo $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6
1480 echo "configure:1481: checking whether to enable libsmi" >&5
1481 if test "$cross_compiling" = yes; then
1482 echo "$ac_t""not when cross-compiling" 1>&6
1486 cat > conftest.
$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 /* libsmi available check */
1500 if { (eval echo configure
:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1502 echo "$ac_t""yes" 1>&6
1503 cat >> confdefs.h
<<\EOF
1509 echo "configure: failed program was:" >&5
1510 cat conftest.
$ac_ext >&5
1512 echo "$ac_t""no" 1>&6
1520 CFLAGS
="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
1521 echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6
1522 echo "configure:1523: checking whether to enable ipv6" >&5
1523 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1524 if test "${enable_ipv6+set}" = set; then
1525 enableval
="$enable_ipv6"
1526 case "$enableval" in
1527 yes) echo "$ac_t""yes" 1>&6
1528 cat >> confdefs.h
<<\EOF
1529 #define ENABLE_IPV6 1
1532 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"
1533 cat >> confdefs.h
<<\EOF
1540 echo "$ac_t""no" 1>&6
1545 if test "$cross_compiling" = yes; then
1546 echo "$ac_t""no" 1>&6
1550 cat > conftest.
$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 /* AF_INET6 available check */
1554 #include <sys/types.h>
1555 #include <sys/socket.h>
1558 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
1565 if { (eval echo configure
:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1567 echo "$ac_t""yes" 1>&6
1568 cat >> confdefs.h
<<\EOF
1569 #define ENABLE_IPV6 1
1572 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"
1573 cat >> confdefs.h
<<\EOF
1579 echo "configure: failed program was:" >&5
1580 cat conftest.
$ac_ext >&5
1582 echo "$ac_t""no" 1>&6
1595 if test "$ipv6" = "yes"; then
1596 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
1597 echo "configure:1598: checking ipv6 stack type" >&5
1598 for i
in inria kame linux-glibc linux-libinet6 toshiba v6d zeta
; do
1601 cat > conftest.
$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1605 #include <netinet/in.h>
1606 #ifdef IPV6_INRIA_VERSION
1610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1611 egrep "yes" >/dev
/null
2>&1; then
1614 CFLAGS
="-DINET6 $CFLAGS"
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1624 #include <netinet/in.h>
1629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1630 egrep "yes" >/dev
/null
2>&1; then
1634 ipv6libdir
=/usr
/local
/v
6/lib
;
1636 CFLAGS
="-DINET6 $CFLAGS"
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 #include <features.h>
1647 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
1651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1652 egrep "yes" >/dev
/null
2>&1; then
1655 CFLAGS
="-DINET6 $CFLAGS"
1661 if test -d /usr
/inet6
-o -f /usr
/include
/netinet
/ip6.h
; then
1664 ipv6libdir
=/usr
/inet
6/lib
1666 CFLAGS
="-DINET6 -I/usr/inet6/include $CFLAGS"
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1674 #include <sys/param.h>
1675 #ifdef _TOSHIBA_INET6
1679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1680 egrep "yes" >/dev
/null
2>&1; then
1684 ipv6libdir
=/usr
/local
/v
6/lib
;
1685 CFLAGS
="-DINET6 $CFLAGS"
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1695 #include </usr/local/v6/include/sys/v6config.h>
1700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1701 egrep "yes" >/dev
/null
2>&1; then
1705 ipv6libdir
=/usr
/local
/v
6/lib
;
1706 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1716 #include <sys/param.h>
1717 #ifdef _ZETA_MINAMI_INET6
1721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1722 egrep "yes" >/dev
/null
2>&1; then
1726 ipv6libdir
=/usr
/local
/v
6/lib
;
1727 CFLAGS
="-DINET6 $CFLAGS"
1733 if test "$ipv6type" != "unknown"; then
1737 echo "$ac_t""$ipv6type" 1>&6
1740 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
1741 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
1742 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
1743 echo "You have $ipv6lib library, using it"
1745 if test "$ipv6trylibc" = "yes"; then
1746 echo "You do not have $ipv6lib library, using libc"
1748 echo 'Fatal: no $ipv6lib library found. cannot continue.'
1749 echo "You need to fetch lib$ipv6lib.a from appropriate"
1750 echo 'ipv6 kit and compile beforehand.'
1757 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
1758 echo "configure:1759: checking getaddrinfo bug" >&5
1759 if test "$cross_compiling" = yes; then
1760 echo "$ac_t""buggy" 1>&6
1761 buggygetaddrinfo
=yes
1763 cat > conftest.
$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1767 #include <sys/types.h>
1770 #include <sys/socket.h>
1771 #include <netinet/in.h>
1775 int passive, gaierr, inet4 = 0, inet6 = 0;
1776 struct addrinfo hints, *ai, *aitop;
1777 char straddr[INET6_ADDRSTRLEN], strport[16];
1779 for (passive = 0; passive <= 1; passive++) {
1780 memset(&hints, 0, sizeof(hints));
1781 hints.ai_family = AF_UNSPEC;
1782 hints.ai_flags = passive ? AI_PASSIVE : 0;
1783 hints.ai_socktype = SOCK_STREAM;
1784 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
1785 (void)gai_strerror(gaierr);
1788 for (ai = aitop; ai; ai = ai->ai_next) {
1789 if (ai->ai_addr == NULL ||
1790 ai->ai_addrlen == 0 ||
1791 getnameinfo(ai->ai_addr, ai->ai_addrlen,
1792 straddr, sizeof(straddr), strport, sizeof(strport),
1793 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
1796 switch (ai->ai_family) {
1798 if (strcmp(strport, "54321") != 0) {
1802 if (strcmp(straddr, "0.0.0.0") != 0) {
1806 if (strcmp(straddr, "127.0.0.1") != 0) {
1813 if (strcmp(strport, "54321") != 0) {
1817 if (strcmp(straddr, "::") != 0) {
1821 if (strcmp(straddr, "::1") != 0) {
1838 /* another family support? */
1844 if (inet6 != 2 || inet4 != 2)
1848 freeaddrinfo(aitop);
1853 freeaddrinfo(aitop);
1858 if { (eval echo configure
:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1860 echo "$ac_t""good" 1>&6
1863 echo "configure: failed program was:" >&5
1864 cat conftest.
$ac_ext >&5
1866 echo "$ac_t""buggy" 1>&6
1867 buggygetaddrinfo
=yes
1873 if test "$buggygetaddrinfo" = "yes"; then
1874 if test "$ipv6" = "yes" -a "$ipv6type" != "linux"; then
1875 echo 'Fatal: You must get working getaddrinfo() function.'
1876 echo ' or you can specify "--disable-ipv6"'.
1878 elif test "$ipv6type" = "linux"; then
1879 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
1880 echo ' Better upgreade your system library to newest version'
1881 echo ' of GNU C library (aka glibc).'
1884 for ac_func
in getaddrinfo getnameinfo inet_ntop inet_pton inet_aton
1886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_func" >&5
1888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $ac_func(); below. */
1897 /* Override any gcc2 internal prototype to avoid an error. */
1898 /* We use char because int might match the return type of a gcc2
1899 builtin and then its argument prototype would still apply. */
1904 /* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1915 if { (eval echo configure
:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1917 eval "ac_cv_func_$ac_func=yes"
1919 echo "configure: failed program was:" >&5
1920 cat conftest.
$ac_ext >&5
1922 eval "ac_cv_func_$ac_func=no"
1927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1928 echo "$ac_t""yes" 1>&6
1929 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1930 cat >> confdefs.h
<<EOF
1931 #define $ac_tr_func 1
1935 echo "$ac_t""no" 1>&6
1936 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
1943 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
1944 echo "configure:1945: checking if sockaddr struct has sa_len member" >&5
1945 if eval "test \"`echo '$''{'ac_cv_sockaddr_has_sa_len'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 cat > conftest.
$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1952 # include <sys/types.h>
1953 # include <sys/socket.h>
1955 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
1958 if { (eval echo configure
:1959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1960 ac_cv_sockaddr_has_sa_len
=yes
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 ac_cv_sockaddr_has_sa_len
=no
1970 echo "$ac_t""$ac_cv_sockaddr_has_sa_len" 1>&6
1971 if test $ac_cv_sockaddr_has_sa_len = yes ; then
1972 cat >> confdefs.h
<<\EOF
1973 #define HAVE_SOCKADDR_SA_LEN 1
1978 if test "$ac_cv_sockaddr_has_sa_len" = no
; then
1979 missing_includes
=yes
1983 echo $ac_n "checking for __P""... $ac_c" 1>&6
1984 echo "configure:1985: checking for __P" >&5
1985 if eval "test \"`echo '$''{'ac_cv_portable_proto'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1992 # include <unistd.h>
1997 if { (eval echo configure
:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999 ac_cv_portable_proto
=yes
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2004 ac_cv_portable_proto
=no
2009 echo "$ac_t""$ac_cv_portable_proto" 1>&6
2010 if test $ac_cv_portable_proto = yes; then
2011 cat >> confdefs.h
<<\EOF
2012 #define HAVE_PORTABLE_PROTOTYPE 1
2017 if test "$ac_cv_portable_proto" = no
; then
2018 missing_includes
=yes
2021 echo $ac_n "checking size of char""... $ac_c" 1>&6
2022 echo "configure:2023: checking size of char" >&5
2023 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 if test "$cross_compiling" = yes; then
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2035 FILE *f=fopen("conftestval", "w");
2037 fprintf(f, "%d\n", sizeof(char));
2041 if { (eval echo configure
:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2043 ac_cv_sizeof_char
=`cat conftestval`
2045 echo "configure: failed program was:" >&5
2046 cat conftest.
$ac_ext >&5
2054 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2055 cat >> confdefs.h
<<EOF
2056 #define SIZEOF_CHAR $ac_cv_sizeof_char
2060 echo $ac_n "checking size of short""... $ac_c" 1>&6
2061 echo "configure:2062: checking size of short" >&5
2062 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 if test "$cross_compiling" = yes; then
2066 ac_cv_sizeof_short
=2
2068 cat > conftest.
$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2074 FILE *f=fopen("conftestval", "w");
2076 fprintf(f, "%d\n", sizeof(short));
2080 if { (eval echo configure
:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2082 ac_cv_sizeof_short
=`cat conftestval`
2084 echo "configure: failed program was:" >&5
2085 cat conftest.
$ac_ext >&5
2087 ac_cv_sizeof_short
=0
2093 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2094 cat >> confdefs.h
<<EOF
2095 #define SIZEOF_SHORT $ac_cv_sizeof_short
2099 echo $ac_n "checking size of int""... $ac_c" 1>&6
2100 echo "configure:2101: checking size of int" >&5
2101 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test "$cross_compiling" = yes; then
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2113 FILE *f=fopen("conftestval", "w");
2115 fprintf(f, "%d\n", sizeof(int));
2119 if { (eval echo configure
:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2121 ac_cv_sizeof_int
=`cat conftestval`
2123 echo "configure: failed program was:" >&5
2124 cat conftest.
$ac_ext >&5
2132 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2133 cat >> confdefs.h
<<EOF
2134 #define SIZEOF_INT $ac_cv_sizeof_int
2138 echo $ac_n "checking size of long""... $ac_c" 1>&6
2139 echo "configure:2140: checking size of long" >&5
2140 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 if test "$cross_compiling" = yes; then
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2152 FILE *f=fopen("conftestval", "w");
2154 fprintf(f, "%d\n", sizeof(long));
2158 if { (eval echo configure
:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2160 ac_cv_sizeof_long
=`cat conftestval`
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2171 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2172 cat >> confdefs.h
<<EOF
2173 #define SIZEOF_LONG $ac_cv_sizeof_long
2180 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
2181 echo "configure:2182: checking for addrinfo" >&5
2182 if eval "test \"`echo '$''{'ac_cv_addrinfo'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.
$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2194 if { (eval echo configure
:2195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 echo "configure: failed program was:" >&5
2199 cat conftest.
$ac_ext >&5
2206 echo "$ac_t""$ac_cv_addrinfo" 1>&6
2207 if test $ac_cv_addrinfo = yes; then
2208 cat >> confdefs.h
<<\EOF
2209 #define HAVE_ADDRINFO 1
2214 if test "$ac_cv_addrinfo" = no
; then
2215 missing_includes
=yes
2219 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
2220 echo "configure:2221: checking for sockaddr_storage" >&5
2221 if eval "test \"`echo '$''{'ac_cv_sa_storage'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2228 # include <sys/types.h>
2229 # include <sys/socket.h>
2231 struct sockaddr_storage s
2234 if { (eval echo configure
:2235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2236 ac_cv_sa_storage
=yes
2238 echo "configure: failed program was:" >&5
2239 cat conftest.
$ac_ext >&5
2246 echo "$ac_t""$ac_cv_sa_storage" 1>&6
2247 if test $ac_cv_sa_storage = yes; then
2248 cat >> confdefs.h
<<\EOF
2249 #define HAVE_SOCKADDR_STORAGE 1
2254 if test "$ac_cv_sa_storage" = no
; then
2255 missing_includes
=yes
2260 echo $ac_n "checking for INADDRSZ""... $ac_c" 1>&6
2261 echo "configure:2262: checking for INADDRSZ" >&5
2262 if eval "test \"`echo '$''{'ac_cv_inaddrsz'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.
$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2269 # include <arpa/nameser.h>
2274 if { (eval echo configure
:2275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2278 echo "configure: failed program was:" >&5
2279 cat conftest.
$ac_ext >&5
2286 echo "$ac_t""$ac_cv_inaddrsz" 1>&6
2287 if test $ac_cv_inaddrsz = yes; then
2288 cat >> confdefs.h
<<\EOF
2289 #define HAVE_INADDRSZ 1
2295 echo $ac_n "checking for IN6ADDRSZ""... $ac_c" 1>&6
2296 echo "configure:2297: checking for IN6ADDRSZ" >&5
2297 if eval "test \"`echo '$''{'ac_cv_in6addrsz'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2304 # include <arpa/nameser.h>
2309 if { (eval echo configure
:2310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2321 echo "$ac_t""$ac_cv_in6addrsz" 1>&6
2322 if test $ac_cv_in6addrsz = yes; then
2323 cat >> confdefs.h
<<\EOF
2324 #define HAVE_IN6ADDRSZ 1
2331 if test "$ac_cv_addrsz" = no
; then
2332 missing_includes
=yes
2336 echo $ac_n "checking for RES_USE_INET6""... $ac_c" 1>&6
2337 echo "configure:2338: checking for RES_USE_INET6" >&5
2338 if eval "test \"`echo '$''{'ac_cv_res_inet6'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 cat > conftest.
$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2345 # include <sys/types.h>
2346 # include <netinet/in.h>
2347 # include <resolv.h>
2349 int a = RES_USE_INET6
2352 if { (eval echo configure
:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2364 echo "$ac_t""$ac_cv_res_inet6" 1>&6
2365 if test $ac_cv_res_inet6 = yes; then
2366 cat >> confdefs.h
<<\EOF
2367 #define HAVE_RES_USE_INET6 1
2372 if test "$ac_cv_res_inet6" = no
; then
2373 missing_includes
=yes
2377 echo $ac_n "checking for AAAA""... $ac_c" 1>&6
2378 echo "configure:2379: checking for AAAA" >&5
2379 if eval "test \"`echo '$''{'ac_cv_aaaa'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 cat > conftest.
$ac_ext <<EOF
2383 #line 2384 "configure"
2384 #include "confdefs.h"
2386 # include <sys/types.h>
2387 # include <arpa/nameser.h>
2392 if { (eval echo configure
:2393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2396 echo "configure: failed program was:" >&5
2397 cat conftest.
$ac_ext >&5
2404 echo "$ac_t""$ac_cv_aaaa" 1>&6
2405 if test $ac_cv_aaaa = yes; then
2406 cat >> confdefs.h
<<\EOF
2412 if test "$ac_cv_aaaa" = no
; then
2413 cat >> confdefs.h
<<\EOF
2420 echo $ac_n "checking for res_state_ext""... $ac_c" 1>&6
2421 echo "configure:2422: checking for res_state_ext" >&5
2422 if eval "test \"`echo '$''{'ac_cv_res_state_ext'+set}'`\" = set"; then
2423 echo $ac_n "(cached) $ac_c" 1>&6
2425 cat > conftest.
$ac_ext <<EOF
2426 #line 2427 "configure"
2427 #include "confdefs.h"
2429 # include <sys/types.h>
2430 # include <netinet/in.h>
2431 # include <netinet6/in6.h>
2432 # include <resolv.h>
2434 struct __res_state_ext e
2437 if { (eval echo configure
:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 ac_cv_res_state_ext
=yes
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 ac_cv_res_state_ext
=no
2449 echo "$ac_t""$ac_cv_res_state_ext" 1>&6
2450 if test $ac_cv_res_state_ext = yes; then
2451 cat >> confdefs.h
<<\EOF
2452 #define HAVE_RES_STATE_EXT 1
2457 if test "$ac_cv_res_state_ext" = no
; then
2458 missing_includes
=yes
2462 echo $ac_n "checking for nsort in res_state""... $ac_c" 1>&6
2463 echo "configure:2464: checking for nsort in res_state" >&5
2464 if eval "test \"`echo '$''{'ac_cv_res_state'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2471 # include <sys/types.h>
2472 # include <netinet/in.h>
2473 # include <netinet6/in6.h>
2474 # include <resolv.h>
2476 struct __res_state e; e.nsort = 0
2479 if { (eval echo configure
:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2491 echo "$ac_t""$ac_cv_res_state" 1>&6
2492 if test $ac_cv_res_state = yes; then
2493 cat >> confdefs.h
<<\EOF
2494 #define HAVE_NEW_RES_STATE 1
2500 if test "$missing_includes" = "yes"; then
2501 CPPFLAGS
="$CPPFLAGS -I\$(srcdir)/missing"
2502 V_INCLS
="$V_INCLS -I\$(srcdir)/missing"
2506 for ac_func
in vfprintf strcasecmp
2508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_func" >&5
2510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 cat > conftest.
$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2516 /* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $ac_func(); below. */
2519 /* Override any gcc2 internal prototype to avoid an error. */
2520 /* We use char because int might match the return type of a gcc2
2521 builtin and then its argument prototype would still apply. */
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2537 if { (eval echo configure
:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2539 eval "ac_cv_func_$ac_func=yes"
2541 echo "configure: failed program was:" >&5
2542 cat conftest.
$ac_ext >&5
2544 eval "ac_cv_func_$ac_func=no"
2549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2550 echo "$ac_t""yes" 1>&6
2551 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2552 cat >> confdefs.h
<<EOF
2553 #define $ac_tr_func 1
2557 echo "$ac_t""no" 1>&6
2558 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
2563 for ac_func
in ether_ntohost setlinebuf gethostbyname2
2565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_func" >&5
2567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $ac_func(); below. */
2576 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2594 if { (eval echo configure
:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2596 eval "ac_cv_func_$ac_func=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 eval "ac_cv_func_$ac_func=no"
2606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2609 cat >> confdefs.h
<<EOF
2610 #define $ac_tr_func 1
2614 echo "$ac_t""no" 1>&6
2620 for ac_func
in vsnprintf snprintf asprintf asnprintf vasprintf vasnprintf
2622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_func" >&5
2624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.
$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2630 /* System header to define __stub macros and hopefully few prototypes,
2631 which can conflict with char $ac_func(); below. */
2633 /* Override any gcc2 internal prototype to avoid an error. */
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2640 /* The GNU C library defines this for functions which it implements
2641 to always fail with ENOSYS. Some functions are actually named
2642 something starting with __ and the normal name is an alias. */
2643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2651 if { (eval echo configure
:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2653 eval "ac_cv_func_$ac_func=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.
$ac_ext >&5
2658 eval "ac_cv_func_$ac_func=no"
2663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2664 echo "$ac_t""yes" 1>&6
2665 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2666 cat >> confdefs.h
<<EOF
2667 #define $ac_tr_func 1
2671 echo "$ac_t""no" 1>&6
2676 if test $needsnprintf = yes; then
2677 LIBOBJS
="$LIBOBJS snprintf.o"
2680 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2681 echo "configure:2682: checking whether byte ordering is bigendian" >&5
2682 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 ac_cv_c_bigendian
=unknown
2686 # See if sys/param.h defines the BYTE_ORDER macro.
2687 cat > conftest.
$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 #include <sys/types.h>
2691 #include <sys/param.h>
2694 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2699 if { (eval echo configure
:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2701 # It does; now see whether it defined to BIG_ENDIAN or not.
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <sys/types.h>
2706 #include <sys/param.h>
2709 #if BYTE_ORDER != BIG_ENDIAN
2714 if { (eval echo configure
:2715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2716 ac_cv_c_bigendian
=yes
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 ac_cv_c_bigendian
=no
2725 echo "configure: failed program was:" >&5
2726 cat conftest.
$ac_ext >&5
2729 if test $ac_cv_c_bigendian = unknown
; then
2730 if test "$cross_compiling" = yes; then
2731 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2737 /* Are we little or big endian? From Harbison&Steele. */
2741 char c[sizeof (long)];
2744 exit (u.c[sizeof (long) - 1] == 1);
2747 if { (eval echo configure
:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2749 ac_cv_c_bigendian
=no
2751 echo "configure: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2754 ac_cv_c_bigendian
=yes
2762 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2763 if test $ac_cv_c_bigendian = yes; then
2764 cat >> confdefs.h
<<\EOF
2765 #define WORDS_BIGENDIAN 1
2771 echo $ac_n "checking for main in -ldnet""... $ac_c" 1>&6
2772 echo "configure:2773: checking for main in -ldnet" >&5
2773 ac_lib_var
=`echo dnet'_'main | sed 'y%./+-%__p_%'`
2774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 ac_save_LIBS
="$LIBS"
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2787 if { (eval echo configure
:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2789 eval "ac_cv_lib_$ac_lib_var=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 eval "ac_cv_lib_$ac_lib_var=no"
2797 LIBS
="$ac_save_LIBS"
2800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2804 cat >> confdefs.h
<<EOF
2805 #define $ac_tr_lib 1
2811 echo "$ac_t""no" 1>&6
2814 echo $ac_n "checking for main in -lrpc""... $ac_c" 1>&6
2815 echo "configure:2816: checking for main in -lrpc" >&5
2816 ac_lib_var
=`echo rpc'_'main | sed 'y%./+-%__p_%'`
2817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 ac_save_LIBS
="$LIBS"
2822 cat > conftest.
$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2830 if { (eval echo configure
:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2832 eval "ac_cv_lib_$ac_lib_var=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2837 eval "ac_cv_lib_$ac_lib_var=no"
2840 LIBS
="$ac_save_LIBS"
2843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_lib
=HAVE_LIB
`echo rpc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2847 cat >> confdefs.h
<<EOF
2848 #define $ac_tr_lib 1
2854 echo "$ac_t""no" 1>&6
2857 echo $ac_n "checking for uncompress in -lz""... $ac_c" 1>&6
2858 echo "configure:2859: checking for uncompress in -lz" >&5
2859 ac_lib_var
=`echo z'_'uncompress | sed 'y%./+-%__p_%'`
2860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 ac_save_LIBS
="$LIBS"
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868 /* Override any gcc2 internal prototype to avoid an error. */
2869 /* We use char because int might match the return type of a gcc2
2870 builtin and then its argument prototype would still apply. */
2877 if { (eval echo configure
:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2879 eval "ac_cv_lib_$ac_lib_var=yes"
2881 echo "configure: failed program was:" >&5
2882 cat conftest.
$ac_ext >&5
2884 eval "ac_cv_lib_$ac_lib_var=no"
2887 LIBS
="$ac_save_LIBS"
2890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2891 echo "$ac_t""yes" 1>&6
2892 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2893 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2894 cat >> confdefs.h
<<EOF
2895 #define $ac_tr_lib 1
2901 echo "$ac_t""no" 1>&6
2904 for ac_hdr
in zlib.h netinet
6/ipcomp.h
2906 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2908 echo "configure:2909: checking for $ac_hdr" >&5
2909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 cat > conftest.
$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2917 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2918 { (eval echo configure
:2919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2919 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2920 if test -z "$ac_err"; then
2922 eval "ac_cv_header_$ac_safe=yes"
2925 echo "configure: failed program was:" >&5
2926 cat conftest.
$ac_ext >&5
2928 eval "ac_cv_header_$ac_safe=no"
2932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2935 cat >> confdefs.h
<<EOF
2936 #define $ac_tr_hdr 1
2940 echo "$ac_t""no" 1>&6
2946 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2947 echo "configure:2948: checking return type of signal handlers" >&5
2948 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.
$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2960 extern "C" void (*signal (int, void (*)(int)))(int);
2962 void (*signal ()) ();
2969 if { (eval echo configure
:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 ac_cv_type_signal
=void
2973 echo "configure: failed program was:" >&5
2974 cat conftest.
$ac_ext >&5
2976 ac_cv_type_signal
=int
2981 echo "$ac_t""$ac_cv_type_signal" 1>&6
2982 cat >> confdefs.h
<<EOF
2983 #define RETSIGTYPE $ac_cv_type_signal
2987 if test "$ac_cv_type_signal" = void
; then
2988 cat >> confdefs.h
<<\EOF
2993 cat >> confdefs.h
<<\EOF
2994 #define RETSIGVAL (0)
2998 case "$target_os" in
3001 cat >> confdefs.h
<<\EOF
3002 #define _BSD_SIGNALS 1
3008 for ac_func
in sigset
3010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_func" >&5
3012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 /* System header to define __stub macros and hopefully few prototypes,
3019 which can conflict with char $ac_func(); below. */
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3028 /* The GNU C library defines this for functions which it implements
3029 to always fail with ENOSYS. Some functions are actually named
3030 something starting with __ and the normal name is an alias. */
3031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3039 if { (eval echo configure
:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3041 eval "ac_cv_func_$ac_func=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 eval "ac_cv_func_$ac_func=no"
3051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3054 cat >> confdefs.h
<<EOF
3055 #define $ac_tr_func 1
3059 echo "$ac_t""no" 1>&6
3063 if test $ac_cv_func_sigset = no
; then
3064 for ac_func
in sigaction
3066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3067 echo "configure:3068: checking for $ac_func" >&5
3068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 cat > conftest.
$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3074 /* System header to define __stub macros and hopefully few prototypes,
3075 which can conflict with char $ac_func(); below. */
3077 /* Override any gcc2 internal prototype to avoid an error. */
3078 /* We use char because int might match the return type of a gcc2
3079 builtin and then its argument prototype would still apply. */
3084 /* The GNU C library defines this for functions which it implements
3085 to always fail with ENOSYS. Some functions are actually named
3086 something starting with __ and the normal name is an alias. */
3087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3095 if { (eval echo configure
:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3097 eval "ac_cv_func_$ac_func=yes"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.
$ac_ext >&5
3102 eval "ac_cv_func_$ac_func=no"
3107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3108 echo "$ac_t""yes" 1>&6
3109 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3110 cat >> confdefs.h
<<EOF
3111 #define $ac_tr_func 1
3115 echo "$ac_t""no" 1>&6
3124 # Most operating systems have gethostbyname() in the default searched
3125 # libraries (i.e. libc):
3126 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3127 echo "configure:3128: checking for gethostbyname" >&5
3128 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* System header to define __stub macros and hopefully few prototypes,
3135 which can conflict with char gethostbyname(); below. */
3137 /* Override any gcc2 internal prototype to avoid an error. */
3138 /* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
3140 char gethostbyname();
3144 /* The GNU C library defines this for functions which it implements
3145 to always fail with ENOSYS. Some functions are actually named
3146 something starting with __ and the normal name is an alias. */
3147 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3155 if { (eval echo configure
:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3157 eval "ac_cv_func_gethostbyname=yes"
3159 echo "configure: failed program was:" >&5
3160 cat conftest.
$ac_ext >&5
3162 eval "ac_cv_func_gethostbyname=no"
3167 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3171 echo "$ac_t""no" 1>&6
3172 # Some OSes (eg. Solaris) place it in libnsl:
3173 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3174 echo "configure:3175: checking for gethostbyname in -lnsl" >&5
3175 ac_lib_var
=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
3176 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 ac_save_LIBS
="$LIBS"
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* Override any gcc2 internal prototype to avoid an error. */
3185 /* We use char because int might match the return type of a gcc2
3186 builtin and then its argument prototype would still apply. */
3187 char gethostbyname();
3193 if { (eval echo configure
:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3195 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3203 LIBS
="$ac_save_LIBS"
3206 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3207 echo "$ac_t""yes" 1>&6
3208 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3210 cat >> confdefs.h
<<EOF
3211 #define $ac_tr_lib 1
3217 echo "$ac_t""no" 1>&6
3218 # Some strange OSes (SINIX) have it in libsocket:
3219 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3220 echo "configure:3221: checking for gethostbyname in -lsocket" >&5
3221 ac_lib_var
=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
3222 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3223 echo $ac_n "(cached) $ac_c" 1>&6
3225 ac_save_LIBS
="$LIBS"
3226 LIBS
="-lsocket $LIBS"
3227 cat > conftest.
$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3233 char gethostbyname();
3239 if { (eval echo configure
:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3241 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3243 echo "configure: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3246 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3249 LIBS
="$ac_save_LIBS"
3252 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3253 echo "$ac_t""yes" 1>&6
3254 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3256 cat >> confdefs.h
<<EOF
3257 #define $ac_tr_lib 1
3260 LIBS
="-lsocket $LIBS"
3263 echo "$ac_t""no" 1>&6
3264 # Unfortunately libsocket sometimes depends on libnsl.
3265 # AC_CHECK_LIB's API is essentially broken so the
3266 # following ugliness is necessary:
3267 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
3268 echo "configure:3269: checking for gethostbyname in -lsocket" >&5
3269 ac_lib_var
=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
3270 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_save_LIBS
="$LIBS"
3274 LIBS
="-lsocket -lnsl $LIBS"
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3281 char gethostbyname();
3287 if { (eval echo configure
:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3289 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3291 echo "configure: failed program was:" >&5
3292 cat conftest.
$ac_ext >&5
3294 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3297 LIBS
="$ac_save_LIBS"
3300 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3302 LIBS
="-lsocket -lnsl $LIBS"
3304 echo "$ac_t""no" 1>&6
3305 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3306 echo "configure:3307: checking for gethostbyname in -lresolv" >&5
3307 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 ac_save_LIBS
="$LIBS"
3312 LIBS
="-lresolv $LIBS"
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3319 char gethostbyname();
3325 if { (eval echo configure
:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3327 eval "ac_cv_lib_$ac_lib_var=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.
$ac_ext >&5
3332 eval "ac_cv_lib_$ac_lib_var=no"
3335 LIBS
="$ac_save_LIBS"
3338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3341 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3342 cat >> confdefs.h
<<EOF
3343 #define $ac_tr_lib 1
3346 LIBS
="-lresolv $LIBS"
3349 echo "$ac_t""no" 1>&6
3360 echo $ac_n "checking for socket""... $ac_c" 1>&6
3361 echo "configure:3362: checking for socket" >&5
3362 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.
$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* System header to define __stub macros and hopefully few prototypes,
3369 which can conflict with char socket(); below. */
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3378 /* The GNU C library defines this for functions which it implements
3379 to always fail with ENOSYS. Some functions are actually named
3380 something starting with __ and the normal name is an alias. */
3381 #if defined (__stub_socket) || defined (__stub___socket)
3389 if { (eval echo configure
:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3391 eval "ac_cv_func_socket=yes"
3393 echo "configure: failed program was:" >&5
3394 cat conftest.
$ac_ext >&5
3396 eval "ac_cv_func_socket=no"
3401 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3405 echo "$ac_t""no" 1>&6
3406 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3407 echo "configure:3408: checking for socket in -lsocket" >&5
3408 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 ac_save_LIBS
="$LIBS"
3413 LIBS
="-lsocket $LIBS"
3414 cat > conftest.
$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3426 if { (eval echo configure
:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3428 eval "ac_cv_lib_$ac_lib_var=yes"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.
$ac_ext >&5
3433 eval "ac_cv_lib_$ac_lib_var=no"
3436 LIBS
="$ac_save_LIBS"
3439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3443 cat >> confdefs.h
<<EOF
3444 #define $ac_tr_lib 1
3447 LIBS
="-lsocket $LIBS"
3450 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3452 echo "configure:3453: checking for socket in -lsocket" >&5
3453 ac_lib_var
=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
3454 if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 ac_save_LIBS
="$LIBS"
3458 LIBS
="-lsocket -lnsl $LIBS"
3459 cat > conftest.
$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3471 if { (eval echo configure
:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3473 eval "ac_cv_lbl_lib_$ac_lib_var=yes"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.
$ac_ext >&5
3478 eval "ac_cv_lbl_lib_$ac_lib_var=no"
3481 LIBS
="$ac_save_LIBS"
3484 if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 LIBS
="-lsocket -lnsl $LIBS"
3488 echo "$ac_t""no" 1>&6
3495 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
3496 echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6
3497 echo "configure:3498: checking for putmsg in -lstr" >&5
3498 ac_lib_var
=`echo str'_'putmsg | sed 'y%./+-%__p_%'`
3499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 ac_save_LIBS
="$LIBS"
3504 cat > conftest.
$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 /* Override any gcc2 internal prototype to avoid an error. */
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3516 if { (eval echo configure
:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3518 eval "ac_cv_lib_$ac_lib_var=yes"
3520 echo "configure: failed program was:" >&5
3521 cat conftest.
$ac_ext >&5
3523 eval "ac_cv_lib_$ac_lib_var=no"
3526 LIBS
="$ac_save_LIBS"
3529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3530 echo "$ac_t""yes" 1>&6
3531 ac_tr_lib
=HAVE_LIB
`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3533 cat >> confdefs.h
<<EOF
3534 #define $ac_tr_lib 1
3540 echo "$ac_t""no" 1>&6
3546 pfopen
=/usr
/examples
/packetfilter
/pfopen.c
3547 if test -f $pfopen ; then
3548 for ac_func
in pfopen
3550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_func" >&5
3552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char $ac_func(); below. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3568 /* The GNU C library defines this for functions which it implements
3569 to always fail with ENOSYS. Some functions are actually named
3570 something starting with __ and the normal name is an alias. */
3571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3579 if { (eval echo configure
:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3581 eval "ac_cv_func_$ac_func=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3586 eval "ac_cv_func_$ac_func=no"
3591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3594 cat >> confdefs.h
<<EOF
3595 #define $ac_tr_func 1
3599 echo "$ac_t""no" 1>&6
3603 if test $ac_cv_func_pfopen = "no" ; then
3604 echo "$ac_t""Using $pfopen" 1>&6
3605 LIBS
="$LIBS $pfopen"
3608 echo $ac_n "checking for local pcap library""... $ac_c" 1>&6
3609 echo "configure:3610: checking for local pcap library" >&5
3612 places
=`ls .. | sed -e 's,/$,,' -e 's,^,../,' | \
3613 egrep '/libpcap-[0-9]*\.[0-9]*(\.[0-9]*)?([ab][0-9]*)?$'`
3614 for dir
in $places ..
/libpcap libpcap
; do
3615 basedir
=`echo $dir | sed -e 's/[ab][0-9]*$//'`
3616 if test $lastdir = $basedir ; then
3620 if test -r $dir/libpcap.a
; then
3621 libpcap
=$dir/libpcap.a
3625 if test $libpcap = FAIL
; then
3626 echo "$ac_t""not found" 1>&6
3627 echo $ac_n "checking for main in -lpcap""... $ac_c" 1>&6
3628 echo "configure:3629: checking for main in -lpcap" >&5
3629 ac_lib_var
=`echo pcap'_'main | sed 'y%./+-%__p_%'`
3630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 ac_save_LIBS
="$LIBS"
3635 cat > conftest.
$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3643 if { (eval echo configure
:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.
$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS
="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3660 echo "$ac_t""no" 1>&6
3663 if test $libpcap = FAIL
; then
3664 { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
3668 if test -r $d/pcap.h
; then
3669 V_INCLS
="-I$d $V_INCLS"
3670 elif test -r $srcdir/..
/libpcap
/pcap.h
; then
3671 V_INCLS
="-I$d -I$srcdir/../libpcap $V_INCLS"
3673 { echo "configure: error: cannot find pcap.h" 1>&2; exit 1; }
3675 echo "$ac_t""$libpcap" 1>&6
3677 LIBS
="$libpcap $LIBS"
3678 case "$target_os" in
3681 pseexe
="/lib/pse.exp"
3682 echo $ac_n "checking for $pseexe""... $ac_c" 1>&6
3683 echo "configure:3684: checking for $pseexe" >&5
3684 if test -f $pseexe ; then
3685 echo "$ac_t""yes" 1>&6
3686 LIBS
="$LIBS -I:$pseexe"
3692 if test -f /etc
/group
-a ! -z "`grep '^wheel:' /etc/group`" ; then
3695 case "$target_os" in
3698 cat >> confdefs.h
<<\EOF
3709 V_INCLS
="$V_INCLS -I\$(srcdir)/linux-include"
3714 cat >> confdefs.h
<<\EOF
3725 if test -f /dev
/bpf0
; then
3729 echo $ac_n "checking for u_int8_t using $CC""... $ac_c" 1>&6
3730 echo "configure:3731: checking for u_int8_t using $CC" >&5
3731 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int8_t'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 cat > conftest.
$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3738 # include "confdefs.h"
3739 # include <sys/types.h>
3741 # include <stdlib.h>
3742 # include <stddef.h>
3748 if { (eval echo configure
:3749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3750 ac_cv_lbl_have_u_int8_t
=yes
3752 echo "configure: failed program was:" >&5
3753 cat conftest.
$ac_ext >&5
3755 ac_cv_lbl_have_u_int8_t
=no
3760 echo "$ac_t""$ac_cv_lbl_have_u_int8_t" 1>&6
3761 if test $ac_cv_lbl_have_u_int8_t = no
; then
3762 cat >> confdefs.h
<<\EOF
3763 #define u_int8_t u_char
3767 echo $ac_n "checking for int16_t using $CC""... $ac_c" 1>&6
3768 echo "configure:3769: checking for int16_t using $CC" >&5
3769 if eval "test \"`echo '$''{'ac_cv_lbl_have_int16_t'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 cat > conftest.
$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3776 # include "confdefs.h"
3777 # include <sys/types.h>
3779 # include <stdlib.h>
3780 # include <stddef.h>
3786 if { (eval echo configure
:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 ac_cv_lbl_have_int16_t
=yes
3790 echo "configure: failed program was:" >&5
3791 cat conftest.
$ac_ext >&5
3793 ac_cv_lbl_have_int16_t
=no
3798 echo "$ac_t""$ac_cv_lbl_have_int16_t" 1>&6
3799 if test $ac_cv_lbl_have_int16_t = no
; then
3800 cat >> confdefs.h
<<\EOF
3801 #define int16_t short
3805 echo $ac_n "checking for u_int16_t using $CC""... $ac_c" 1>&6
3806 echo "configure:3807: checking for u_int16_t using $CC" >&5
3807 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int16_t'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3814 # include "confdefs.h"
3815 # include <sys/types.h>
3817 # include <stdlib.h>
3818 # include <stddef.h>
3824 if { (eval echo configure
:3825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3826 ac_cv_lbl_have_u_int16_t
=yes
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 ac_cv_lbl_have_u_int16_t
=no
3836 echo "$ac_t""$ac_cv_lbl_have_u_int16_t" 1>&6
3837 if test $ac_cv_lbl_have_u_int16_t = no
; then
3838 cat >> confdefs.h
<<\EOF
3839 #define u_int16_t u_short
3843 echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
3844 echo "configure:3845: checking for int32_t using $CC" >&5
3845 if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3852 # include "confdefs.h"
3853 # include <sys/types.h>
3855 # include <stdlib.h>
3856 # include <stddef.h>
3862 if { (eval echo configure
:3863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3864 ac_cv_lbl_have_int32_t
=yes
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 ac_cv_lbl_have_int32_t
=no
3874 echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
3875 if test $ac_cv_lbl_have_int32_t = no
; then
3876 cat >> confdefs.h
<<\EOF
3881 echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
3882 echo "configure:3883: checking for u_int32_t using $CC" >&5
3883 if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3890 # include "confdefs.h"
3891 # include <sys/types.h>
3893 # include <stdlib.h>
3894 # include <stddef.h>
3900 if { (eval echo configure
:3901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3902 ac_cv_lbl_have_u_int32_t
=yes
3904 echo "configure: failed program was:" >&5
3905 cat conftest.
$ac_ext >&5
3907 ac_cv_lbl_have_u_int32_t
=no
3912 echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
3913 if test $ac_cv_lbl_have_u_int32_t = no
; then
3914 cat >> confdefs.h
<<\EOF
3915 #define u_int32_t u_int
3921 if test "${LBL_CFLAGS+set}" = set; then
3922 V_CCOPT
="$V_CCOPT ${LBL_CFLAGS}"
3924 if test -f .devel
; then
3925 if test "$GCC" = yes ; then
3926 if test "${LBL_CFLAGS+set}" != set; then
3927 if test "$ac_cv_prog_cc_g" = yes ; then
3928 V_CCOPT
="-g $V_CCOPT"
3930 V_CCOPT
="$V_CCOPT -Wall"
3931 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
3932 V_CCOPT
="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
3936 case "$target_os" in
3939 V_CCOPT
="$V_CCOPT -n32"
3946 os
=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
3948 if test -f $name ; then
3949 ln -s $name os-proto.h
3950 cat >> confdefs.h
<<\EOF
3951 #define HAVE_OS_PROTO_H 1
3955 echo "configure: warning: can't find $name" 1>&2
3959 echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
3960 echo "configure:3961: checking if sockaddr struct has sa_len member" >&5
3961 if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3964 cat > conftest.
$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3968 # include <sys/types.h>
3969 # include <sys/socket.h>
3971 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
3974 if { (eval echo configure
:3975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3976 ac_cv_lbl_sockaddr_has_sa_len
=yes
3978 echo "configure: failed program was:" >&5
3979 cat conftest.
$ac_ext >&5
3981 ac_cv_lbl_sockaddr_has_sa_len
=no
3986 echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
3987 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
3988 cat >> confdefs.h
<<\EOF
3989 #define HAVE_SOCKADDR_SA_LEN 1
3994 echo $ac_n "checking if ether_header uses ether_addr structs""... $ac_c" 1>&6
3995 echo "configure:3996: checking if ether_header uses ether_addr structs" >&5
3996 if eval "test \"`echo '$''{'ac_cv_ether_header_has_ea'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 LBL_SAVE_CFLAGS
="$CFLAGS"
4000 CFLAGS
="$CFLAGS $V_INCLS"
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4005 # include <sys/types.h>
4007 /* osf3 has REALLY good prototyes */
4011 # include <sys/socket.h>
4012 # include <net/if.h>
4013 # include <netinet/in.h>
4014 # include <netinet/if_ether.h>
4017 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet)
4020 if { (eval echo configure
:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4022 ac_cv_ether_header_has_ea
=yes
4024 echo "configure: failed program was:" >&5
4025 cat conftest.
$ac_ext >&5
4027 ac_cv_ether_header_has_ea
=no
4030 CFLAGS
="$LBL_SAVE_CFLAGS"
4033 echo "$ac_t""$ac_cv_ether_header_has_ea" 1>&6
4034 if test $ac_cv_ether_header_has_ea = yes ; then
4035 cat >> confdefs.h
<<\EOF
4036 #define ETHER_HEADER_HAS_EA 1
4041 echo $ac_n "checking if ether_arp uses ether_addr structs""... $ac_c" 1>&6
4042 echo "configure:4043: checking if ether_arp uses ether_addr structs" >&5
4043 if eval "test \"`echo '$''{'ac_cv_ether_arp_has_ea'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 LBL_SAVE_CFLAGS
="$CFLAGS"
4047 CFLAGS
="$CFLAGS $V_INCLS"
4048 cat > conftest.
$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4052 # include <sys/types.h>
4054 /* osf3 has REALLY good prototyes */
4058 # include <sys/socket.h>
4059 # include <net/if.h>
4060 # include <netinet/in.h>
4061 # include <netinet/if_ether.h>
4064 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet)
4067 if { (eval echo configure
:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 ac_cv_ether_arp_has_ea
=yes
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 ac_cv_ether_arp_has_ea
=no
4077 CFLAGS
="$LBL_SAVE_CFLAGS"
4080 echo "$ac_t""$ac_cv_ether_arp_has_ea" 1>&6
4081 if test $ac_cv_ether_arp_has_ea = yes ; then
4082 cat >> confdefs.h
<<\EOF
4083 #define ETHER_ARP_HAS_EA 1
4088 echo $ac_n "checking if ether_arp uses erp_xsha member""... $ac_c" 1>&6
4089 echo "configure:4090: checking if ether_arp uses erp_xsha member" >&5
4090 if eval "test \"`echo '$''{'ac_cv_struct_ether_arp_x'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 LBL_SAVE_CFLAGS
="$CFLAGS"
4094 CFLAGS
="$CFLAGS $V_INCLS"
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4099 # include <sys/types.h>
4100 # include <sys/socket.h>
4102 /* osf3 has REALLY good prototyes */
4106 # include <net/if.h>
4107 # include <netinet/in.h>
4108 # include <netinet/if_ether.h>
4110 u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha)
4113 if { (eval echo configure
:4114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 ac_cv_struct_ether_arp_x
=yes
4117 echo "configure: failed program was:" >&5
4118 cat conftest.
$ac_ext >&5
4120 ac_cv_struct_ether_arp_x
=no
4123 CFLAGS
="$LBL_SAVE_CFLAGS"
4126 echo "$ac_t""$ac_cv_struct_ether_arp_x" 1>&6
4127 if test $ac_cv_struct_ether_arp_x = yes ; then
4128 cat >> confdefs.h
<<\EOF
4129 #define ETHER_ARP_HAS_X 1
4134 echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
4135 echo "configure:4136: checking if unaligned accesses fail" >&5
4136 if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 case "$target_cpu" in
4141 alpha|hp
*|mips|sparc
)
4142 ac_cv_lbl_unaligned_fail
=yes
4146 cat >conftest.c
<<EOF
4147 # include <sys/types.h>
4148 # include <sys/wait.h>
4150 unsigned char a[5] = { 1, 2, 3, 4, 5 };
4155 /* avoid "core dumped" message */
4161 pid = waitpid(pid, &status, 0);
4164 exit(!WIFEXITED(status));
4167 i = *(unsigned int *)&a[1];
4172 ${CC-cc} -o conftest
$CFLAGS $CPPFLAGS $LDFLAGS \
4173 conftest.c
$LIBS >/dev
/null
2>&1
4174 if test ! -x conftest
; then
4175 ac_cv_lbl_unaligned_fail
=yes
4177 .
/conftest
>conftest.out
4178 if test ! -s conftest.out
; then
4179 ac_cv_lbl_unaligned_fail
=yes
4181 ac_cv_lbl_unaligned_fail
=no
4184 rm -f conftest
* core core.conftest
4189 echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
4190 if test $ac_cv_lbl_unaligned_fail = yes ; then
4191 cat >> confdefs.h
<<\EOF
4198 echo $ac_n "checking for h_errno""... $ac_c" 1>&6
4199 echo "configure:4200: checking for h_errno" >&5
4200 if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.
$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4207 # include <sys/types.h>
4213 if { (eval echo configure
:4214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4215 ac_cv_var_h_errno
=yes
4217 echo "configure: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4220 ac_cv_var_h_errno
=no
4225 echo "$ac_t""$ac_cv_var_h_errno" 1>&6
4226 if test "$ac_cv_var_h_errno" = "yes"; then
4227 cat >> confdefs.h
<<\EOF
4228 #define HAVE_H_ERRNO 1
4234 echo $ac_n "checking for SSLeay""... $ac_c" 1>&6
4235 echo "configure:4236: checking for SSLeay" >&5
4236 ac_cv_ssleay_path
=no
4238 for dir
in /usr
/usr
/local /usr
/local
/ssl
/usr
/pkg
; do
4239 if test -d $dir/lib
-a -f $dir/lib
/libcrypto.a
; then
4240 ac_cv_ssleay_path
=$dir
4242 if test -d $dir/include
/ssleay
-a -f $dir/include
/ssleay
/des.h
; then
4243 incdir
="-I$dir/include/ssleay"
4244 elif test -d $dir/include
/openssl
-a -f $dir/include
/openssl
/des.h
; then
4245 incdir
="-I$dir/include -I$dir/include/openssl"
4246 elif test -d $dir/include
-a -f $dir/include
/des.h
; then
4247 incdir
="-I$dir/include"
4249 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
4252 ac_cv_ssleay_path
=no
4256 echo "$ac_t""$ac_cv_ssleay_path" 1>&6
4257 if test "$ac_cv_ssleay_path" != no
; then
4258 V_INCLS
="$V_INCLS $incdir"
4259 LIBS
="$LIBS -L$dir/lib"
4260 if test -f $ac_cv_ssleay_path/lib
/libRSAglue.a
; then
4261 LIBS
="$LIBS -lRSAglue"
4263 if test -f $ac_cv_ssleay_path/lib
/librsaref.a
; then
4264 LIBS
="$LIBS -lrsaref"
4266 echo $ac_n "checking for des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
4267 echo "configure:4268: checking for des_cbc_encrypt in -lcrypto" >&5
4268 ac_lib_var
=`echo crypto'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
4269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 ac_save_LIBS
="$LIBS"
4273 LIBS
="-lcrypto $LIBS"
4274 cat > conftest.
$ac_ext <<EOF
4275 #line 4276 "configure"
4276 #include "confdefs.h"
4277 /* Override any gcc2 internal prototype to avoid an error. */
4278 /* We use char because int might match the return type of a gcc2
4279 builtin and then its argument prototype would still apply. */
4280 char des_cbc_encrypt();
4286 if { (eval echo configure
:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4288 eval "ac_cv_lib_$ac_lib_var=yes"
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4293 eval "ac_cv_lib_$ac_lib_var=no"
4296 LIBS
="$ac_save_LIBS"
4299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4301 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4303 cat >> confdefs.h
<<EOF
4304 #define $ac_tr_lib 1
4307 LIBS
="-lcrypto $LIBS"
4310 echo "$ac_t""no" 1>&6
4314 bak_CPPFLAGS
=$CPPFLAGS
4315 CPPFLAGS
="$CPPFLAGS $V_INCLS"
4316 for ac_hdr
in cast.h rc5.h
4318 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4320 echo "configure:4321: checking for $ac_hdr" >&5
4321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4324 cat > conftest.
$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4329 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4330 { (eval echo configure
:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4331 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4332 if test -z "$ac_err"; then
4334 eval "ac_cv_header_$ac_safe=yes"
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 eval "ac_cv_header_$ac_safe=no"
4344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4346 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4347 cat >> confdefs.h
<<EOF
4348 #define $ac_tr_hdr 1
4352 echo "$ac_t""no" 1>&6
4357 if test "$ac_cv_header_cast_h" = "yes"; then
4358 echo $ac_n "checking for buggy CAST128""... $ac_c" 1>&6
4359 echo "configure:4360: checking for buggy CAST128" >&5
4360 if test "$cross_compiling" = yes; then
4361 buggy_cast128
="cross-compiling, assume yes"
4363 cat > conftest.
$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4370 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
4371 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
4372 unsigned char out[sizeof(in)];
4373 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
4375 CAST_set_key(&ks, sizeof(key), key);
4376 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
4377 if (memcmp(out, ok, sizeof(ok)) != 0)
4383 if { (eval echo configure
:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4387 echo "configure: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4395 echo "$ac_t""$buggy_cast128" 1>&6
4396 if test "$buggy_cast128" != no
; then
4397 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
4398 echo "disabling CAST128 support."
4399 cat >> confdefs.h
<<\EOF
4400 #define HAVE_BUGGY_CAST128 1
4406 CPPFLAGS
=$bak_CPPFLAGS
4409 if test -r ${srcdir}/lbl
/gnuc.h
; then
4411 ln -s ${srcdir}/lbl
/gnuc.h gnuc.h
4420 # Find a good install program. We prefer a C program (faster),
4421 # so one script is as good as another. But avoid the broken or
4422 # incompatible versions:
4423 # SysV /etc/install, /usr/sbin/install
4424 # SunOS /usr/etc/install
4425 # IRIX /sbin/install
4427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4430 # ./install, which can be erroneously created by make from ./install.sh.
4431 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4432 echo "configure:4433: checking for a BSD compatible install" >&5
4433 if test -z "$INSTALL"; then
4434 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4438 for ac_dir
in $PATH; do
4439 # Account for people who put trailing slashes in PATH elements.
4441 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4443 # OSF1 and SCO ODT 3.0 have their own names for install.
4444 # Don't use installbsd from OSF since it installs stuff as root
4446 for ac_prog
in ginstall scoinst
install; do
4447 if test -f $ac_dir/$ac_prog; then
4448 if test $ac_prog = install &&
4449 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4450 # AIX install. It has an incompatible calling convention.
4453 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4464 if test "${ac_cv_path_install+set}" = set; then
4465 INSTALL
="$ac_cv_path_install"
4467 # As a last resort, use the slow shell script. We don't cache a
4468 # path for INSTALL within a source directory, because that will
4469 # break other packages using the cache if that directory is
4470 # removed, or if the path is relative.
4471 INSTALL
="$ac_install_sh"
4474 echo "$ac_t""$INSTALL" 1>&6
4476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4477 # It thinks the first close brace ends the variable substitution.
4478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4482 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4488 cat > confcache
<<\EOF
4489 # This file is a shell script that caches the results of configure
4490 # tests run on this system so they can be shared between configure
4491 # scripts and configure runs. It is not useful on other systems.
4492 # If it contains results you don't want to keep, you may remove or edit it.
4494 # By default, configure uses ./config.cache as the cache file,
4495 # creating it if it does not exist already. You can give configure
4496 # the --cache-file=FILE option to use a different cache file; that is
4497 # what configure does when it calls configure scripts in
4498 # subdirectories, so they share the cache.
4499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4500 # config.status only pays attention to the cache file if you give it the
4501 # --recheck option to rerun configure.
4504 # The following way of writing the cache mishandles newlines in values,
4505 # but we know of no workaround that is simple, portable, and efficient.
4506 # So, don't put newlines in cache variables' values.
4507 # Ultrix sh set writes to stderr and can't be redirected directly,
4508 # and sets the high bit in the cache file unless we assign to the vars.
4510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4512 # `set' does not quote correctly, so add quotes (double-quote substitution
4513 # turns \\\\ into \\, and sed turns \\ into \).
4515 -e "s/'/'\\\\''/g" \
4516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4519 # `set' quotes correctly as required by POSIX, so do not add quotes.
4520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4523 if cmp -s $cache_file confcache
; then
4526 if test -w $cache_file; then
4527 echo "updating cache $cache_file"
4528 cat confcache
> $cache_file
4530 echo "not updating unwritable cache $cache_file"
4535 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4537 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4538 # Let make expand exec_prefix.
4539 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4541 # Any assignment to VPATH causes Sun make to only execute
4542 # the first set of double-colon rules, so remove it if not needed.
4543 # If there is a colon in the path, we need to keep it.
4544 if test "x$srcdir" = x.
; then
4545 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4548 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4550 DEFS
=-DHAVE_CONFIG_H
4552 # Without the "./", some shells look in PATH for config.status.
4553 : ${CONFIG_STATUS=./config.status}
4555 echo creating
$CONFIG_STATUS
4556 rm -f $CONFIG_STATUS
4557 cat > $CONFIG_STATUS <<EOF
4559 # Generated automatically by configure.
4560 # Run this file to recreate the current configuration.
4561 # This directory was configured as follows,
4562 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4564 # $0 $ac_configure_args
4566 # Compiler output produced by configure, useful for debugging
4567 # configure, is in ./config.log if it exists.
4569 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4572 case "\$ac_option" in
4573 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4574 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4575 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4576 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4577 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4579 -help | --help | --hel | --he | --h)
4580 echo "\$ac_cs_usage"; exit 0 ;;
4581 *) echo "\$ac_cs_usage"; exit 1 ;;
4585 ac_given_srcdir=$srcdir
4586 ac_given_INSTALL="$INSTALL"
4588 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4590 cat >> $CONFIG_STATUS <<EOF
4592 # Protect against being on the right side of a sed subst in config.status.
4593 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4594 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4598 s%@CFLAGS@%$CFLAGS%g
4599 s%@CPPFLAGS@%$CPPFLAGS%g
4600 s%@CXXFLAGS@%$CXXFLAGS%g
4601 s%@FFLAGS@%$FFLAGS%g
4603 s%@LDFLAGS@%$LDFLAGS%g
4605 s%@exec_prefix@%$exec_prefix%g
4606 s%@prefix@%$prefix%g
4607 s%@program_transform_name@%$program_transform_name%g
4608 s%@bindir@%$bindir%g
4609 s%@sbindir@%$sbindir%g
4610 s%@libexecdir@%$libexecdir%g
4611 s%@datadir@%$datadir%g
4612 s%@sysconfdir@%$sysconfdir%g
4613 s%@sharedstatedir@%$sharedstatedir%g
4614 s%@localstatedir@%$localstatedir%g
4615 s%@libdir@%$libdir%g
4616 s%@includedir@%$includedir%g
4617 s%@oldincludedir@%$oldincludedir%g
4618 s%@infodir@%$infodir%g
4619 s%@mandir@%$mandir%g
4621 s%@host_alias@%$host_alias%g
4622 s%@host_cpu@%$host_cpu%g
4623 s%@host_vendor@%$host_vendor%g
4624 s%@host_os@%$host_os%g
4625 s%@target@%$target%g
4626 s%@target_alias@%$target_alias%g
4627 s%@target_cpu@%$target_cpu%g
4628 s%@target_vendor@%$target_vendor%g
4629 s%@target_os@%$target_os%g
4631 s%@build_alias@%$build_alias%g
4632 s%@build_cpu@%$build_cpu%g
4633 s%@build_vendor@%$build_vendor%g
4634 s%@build_os@%$build_os%g
4635 s%@SHLICC2@%$SHLICC2%g
4638 s%@LIBOBJS@%$LIBOBJS%g
4639 s%@V_CCOPT@%$V_CCOPT%g
4640 s%@V_GROUP@%$V_GROUP%g
4641 s%@V_INCLS@%$V_INCLS%g
4642 s%@V_PCAPDEP@%$V_PCAPDEP%g
4643 s%@LOCALSRC@%$LOCALSRC%g
4644 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4645 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4646 s%@INSTALL_DATA@%$INSTALL_DATA%g
4651 cat >> $CONFIG_STATUS <<\EOF
4653 # Split the substitutions into bite-sized pieces for seds with
4654 # small command number limits, like on Digital OSF/1 and HP-UX.
4655 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4656 ac_file
=1 # Number of current file.
4657 ac_beg
=1 # First line for current file.
4658 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4661 while $ac_more_lines; do
4662 if test $ac_beg -gt 1; then
4663 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4665 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4667 if test ! -s conftest.s
$ac_file; then
4669 rm -f conftest.s
$ac_file
4671 if test -z "$ac_sed_cmds"; then
4672 ac_sed_cmds
="sed -f conftest.s$ac_file"
4674 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4676 ac_file
=`expr $ac_file + 1`
4678 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4681 if test -z "$ac_sed_cmds"; then
4686 cat >> $CONFIG_STATUS <<EOF
4688 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4690 cat >> $CONFIG_STATUS <<\EOF
4691 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4694 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4695 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4696 *) ac_file_in
="${ac_file}.in" ;;
4699 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4701 # Remove last slash and all that follows it. Not all systems have dirname.
4702 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4704 # The file is in a subdirectory.
4705 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4706 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4707 # A "../" for each directory in $ac_dir_suffix.
4708 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4710 ac_dir_suffix
= ac_dots
=
4713 case "$ac_given_srcdir" in
4715 if test -z "$ac_dots"; then top_srcdir
=.
4716 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4717 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4719 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4720 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4723 case "$ac_given_INSTALL" in
4724 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4725 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4728 echo creating
"$ac_file"
4730 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4732 *Makefile
*) ac_comsub
="1i\\
4733 # $configure_input" ;;
4737 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4739 s%@configure_input@%$configure_input%g
4740 s%@srcdir@%$srcdir%g
4741 s%@top_srcdir@%$top_srcdir%g
4742 s%@INSTALL@%$INSTALL%g
4743 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4747 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4748 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4750 # ac_d sets the value in "#define NAME VALUE" lines.
4751 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4752 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4755 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4756 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4757 ac_uB
='\([ ]\)%\1#\2define\3'
4760 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4761 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4762 ac_eB
='$%\1#\2define\3'
4766 if test "${CONFIG_HEADERS+set}" != set; then
4768 cat >> $CONFIG_STATUS <<EOF
4769 CONFIG_HEADERS="config.h"
4771 cat >> $CONFIG_STATUS <<\EOF
4773 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4774 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4776 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4777 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4778 *) ac_file_in
="${ac_file}.in" ;;
4781 echo creating
$ac_file
4783 rm -f conftest.frag conftest.
in conftest.out
4784 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4785 cat $ac_file_inputs > conftest.
in
4789 # Transform confdefs.h into a sed script conftest.vals that substitutes
4790 # the proper values into config.h.in to produce config.h. And first:
4791 # Protect against being on the right side of a sed subst in config.status.
4792 # Protect against being in an unquoted here document in config.status.
4794 cat > conftest.hdr
<<\EOF
4797 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4801 sed -n -f conftest.hdr confdefs.h > conftest.vals
4804 # This sed command replaces #undef with comments. This is necessary, for
4805 # example, in the case of _POSIX_SOURCE, which is predefined and required
4806 # on some systems where configure will not decide to define it.
4807 cat >> conftest.vals <<\EOF
4808 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4811 # Break up conftest.vals because some shells have a limit on
4812 # the size of here documents, and old seds have small limits too.
4817 ac_lines=`grep -c . conftest.vals
`
4818 # grep -c gives empty output for an empty file on some AIX systems.
4819 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4820 # Write a limited-size here document to conftest.frag.
4821 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4822 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4824 sed -f conftest.frag conftest.in > conftest.out
4826 mv conftest.out conftest.in
4828 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4830 mv conftest.tail conftest.vals
4834 cat >> $CONFIG_STATUS <<\EOF
4835 rm -f conftest.frag conftest.h
4836 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4837 cat conftest.in >> conftest.h
4839 if cmp -s $ac_file conftest.h 2>/dev/null; then
4840 echo "$ac_file is unchanged"
4843 # Remove last slash and all that follows it. Not all systems have dirname.
4844 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4846 # The file is in a subdirectory.
4847 test ! -d "$ac_dir" && mkdir "$ac_dir"
4850 mv conftest.h $ac_file
4855 cat >> $CONFIG_STATUS <<EOF
4858 cat >> $CONFIG_STATUS <<\EOF
4862 chmod +x $CONFIG_STATUS
4863 rm -fr confdefs* $ac_clean_files
4864 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1